Add backend

This commit is contained in:
2023-09-23 18:23:46 +02:00
parent a894717e52
commit 95dbb74b47
45 changed files with 6831 additions and 28 deletions

View File

@ -0,0 +1,2 @@
DROP TABLE custom_list_entry;
DROP TABLE custom_list;

View File

@ -0,0 +1,10 @@
CREATE TABLE custom_list (
id SERIAL PRIMARY KEY,
name TEXT UNIQUE NOT NULL
);
CREATE TABLE custom_list_entry (
list_id SERIAL REFERENCES custom_list(id),
song_hash TEXT NOT NULL REFERENCES song(song_hash),
PRIMARY KEY (list_id, song_hash)
);