api/migrations/2023-12-31-104741_artists_tracks/up.sql

9 lines
245 B
MySQL
Raw Permalink Normal View History

2024-01-01 02:18:33 +00:00
-- Your SQL goes here
create table if not exists artists_tracks
(
artist_id varchar(24) references artists (id) on delete cascade,
track_id varchar(24) references tracks (id) on delete cascade,
primary key (artist_id, track_id)
);