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, primary key (playlist_id, track_id) );