From 4403f3c7d200d3c3b847a6d0f13cf535ef4664ff Mon Sep 17 00:00:00 2001 From: phoenix Date: Fri, 20 Nov 2026 14:36:53 -0500 Subject: [PATCH] tsk-271: Updated migration --- migrations/20261120185858_playbackQueue.sql | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/migrations/20261120185858_playbackQueue.sql b/migrations/20261120185858_playbackQueue.sql index fa10f3a..bb492c4 100644 --- a/migrations/20261120185858_playbackQueue.sql +++ b/migrations/20261120185858_playbackQueue.sql @@ -3,12 +3,14 @@ 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 + 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 + playback_queue_id UUID NOT NULL, + date_created timestamptz DEFAULT now(), );