refactor: remove canvas, automations, and custom statuses; simplify notification and status model
This commit is contained in:
@@ -1,14 +0,0 @@
|
||||
CREATE TABLE "automation_rules" (
|
||||
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
|
||||
"project_id" uuid NOT NULL,
|
||||
"name" text NOT NULL,
|
||||
"active" boolean DEFAULT true,
|
||||
"trigger" jsonb NOT NULL,
|
||||
"conditions" jsonb DEFAULT '[]'::jsonb,
|
||||
"actions" jsonb NOT NULL,
|
||||
"created_at" timestamp with time zone DEFAULT now() NOT NULL,
|
||||
"updated_at" timestamp with time zone DEFAULT now() NOT NULL
|
||||
);
|
||||
--> statement-breakpoint
|
||||
ALTER TABLE "automation_rules" ADD CONSTRAINT "automation_rules_project_id_projects_id_fk" FOREIGN KEY ("project_id") REFERENCES "public"."projects"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
||||
CREATE INDEX "automation_rules_project_id_idx" ON "automation_rules" USING btree ("project_id");
|
||||
Reference in New Issue
Block a user