tsk-271: Added migrations for playbackQueue
This commit is contained in:
1 file changed
+14
@@ -0,0 +1,14 @@
|
||||
-- Add migration script here
|
||||
CREATE TABLE IF NOT EXISTS "playbackQueue" (
|
||||
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
|
||||
name TEXT NOT NULL,
|
||||
device_type TEXT CHECK (status IN ('BROWSER', 'MOBILE')),
|
||||
user_id UUID NOT NULL
|
||||
);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS "playbackQueueItem" (
|
||||
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
|
||||
queue_index INT NOT NULL,
|
||||
song_id UUID NOT NULL,
|
||||
playback_queue_id UUID NOT NULL
|
||||
);
|
||||
Reference in new issue
Block a user