added position column to playlist_songs table

This commit is contained in:
2024-05-04 19:43:43 -04:00
parent 9c2cd94955
commit 4d734ef594
5 changed files with 9 additions and 6 deletions

View File

@ -8,5 +8,6 @@ CREATE TABLE playlists (
CREATE TABLE playlist_songs (
playlist_id INTEGER REFERENCES playlists(id) ON DELETE CASCADE NOT NULL,
song_id INTEGER REFERENCES songs(id) ON DELETE CASCADE NOT NULL,
position INTEGER NOT NULL,
PRIMARY KEY (playlist_id, song_id)
);