Adding message_event_responses table

This commit is contained in:
2026-06-18 16:25:33 -04:00
parent cae25a84e7
commit e40f0c6831
+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'))
);