diff --git a/migrations/20260613211440_init.sql b/migrations/20260613211440_init.sql index 48d8e47..0ab6ba3 100644 --- a/migrations/20260613211440_init.sql +++ b/migrations/20260613211440_init.sql @@ -24,3 +24,11 @@ CREATE TABLE IF NOT EXISTS "scheduled_messages" ( status TEXT CHECK (status IN ('PENDING', 'READY', 'PROCESSING', 'DONE')), user_id UUID NOT NULL ); + +CREATE TABLE IF NOT EXISTS "scheduled_message_events" ( + id UUID PRIMARY KEY DEFAULT gen_random_uuid(), + contact_id UUID NOT NULL, + message_id UUID NOT NULL, + scheduled_message_id UUID NOT NULL, + created timestamptz DEFAULT now() +);