Files
soaricarus_api/test_migrations/20261120185858_playbackQueue.sql
T
phoenix 6ca17357dc
pr CI / Test Suite (pull_request) Successful in 2m1s
tsk-271: Making migration available in test
2026-11-20 16:04:52 -05:00

17 lines
500 B
SQL

-- 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 (device_type IN ('BROWSER', 'MOBILE')),
user_id UUID NOT NULL,
date_created timestamptz DEFAULT now()
);
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,
date_created timestamptz DEFAULT now()
);