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 e40f0c6831 - Show all commits
+11
View File
@@ -32,3 +32,14 @@ CREATE TABLE IF NOT EXISTS "scheduled_message_events" (
scheduled_message_id UUID NOT NULL,
created timestamptz DEFAULT now()
);
CREATE TABLE IF NOT EXISTS "message_event_responses" (
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
scheduled_message_event_id UUID NULL,
response JSONB NOT NULL,
user_id UUID NOT NULL,
sent timestamptz NOT NULL,
contact_id UUID NULL,
message_id UUID NULL,
status TEXT CHECK (status IN ('INSTANT', 'SCHEDULED'))
);