Initial BizOne portal setup
This commit is contained in:
16
prisma/migrations/0014_message_templates/migration.sql
Normal file
16
prisma/migrations/0014_message_templates/migration.sql
Normal file
@ -0,0 +1,16 @@
|
||||
CREATE TABLE "message_templates" (
|
||||
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid(),
|
||||
"name" text NOT NULL UNIQUE,
|
||||
"category" text NOT NULL,
|
||||
"status" text NOT NULL,
|
||||
"language" text NOT NULL,
|
||||
"header_text" text,
|
||||
"body_text" text NOT NULL,
|
||||
"footer_text" text,
|
||||
"buttons_json" jsonb,
|
||||
"created_at" timestamptz NOT NULL DEFAULT now(),
|
||||
"updated_at" timestamptz NOT NULL DEFAULT now()
|
||||
);
|
||||
|
||||
CREATE INDEX "message_templates_status_category_language_idx"
|
||||
ON "message_templates" ("status", "category", "language");
|
||||
Reference in New Issue
Block a user