@cat-factory/node-server 0.62.2 → 0.64.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,17 @@
1
+ CREATE TABLE "initiatives" (
2
+ "workspace_id" text,
3
+ "id" text,
4
+ "block_id" text NOT NULL,
5
+ "slug" text NOT NULL,
6
+ "status" text NOT NULL,
7
+ "rev" integer NOT NULL,
8
+ "doc" text NOT NULL,
9
+ "created_at" bigint NOT NULL,
10
+ "updated_at" bigint NOT NULL,
11
+ CONSTRAINT "initiatives_pkey" PRIMARY KEY("workspace_id","id")
12
+ );
13
+ --> statement-breakpoint
14
+ ALTER TABLE "blocks" ADD COLUMN "initiative_id" text;--> statement-breakpoint
15
+ CREATE INDEX "idx_blocks_initiative" ON "blocks" ("workspace_id","initiative_id");--> statement-breakpoint
16
+ CREATE UNIQUE INDEX "idx_initiatives_block" ON "initiatives" ("workspace_id","block_id");--> statement-breakpoint
17
+ CREATE INDEX "idx_initiatives_status" ON "initiatives" ("status");