Create scheduled message event #17

Merged
phoenix merged 28 commits from create_scheduled_message_event into alot_of_changes 2026-06-18 18:39:24 -04:00
Showing only changes of commit cae25a84e7 - Show all commits
+8
View File
@@ -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()
);