api/migrations/2023-12-30-214938_playlists_tracks/up.sql
2024-01-07 15:43:56 +01:00

7 lines
282 B
SQL

create table if not exists playlists_tracks
(
playlist_id varchar(24) references playlists (id) on delete cascade,
track_id varchar(24) references tracks (id) on delete cascade,
added_at timestamp default now() not null,
primary key (playlist_id, track_id)
);