@cat-factory/node-server 0.44.3 → 0.46.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,24 @@
1
+ -- Per-service provision type + per-type infra handlers (slice 2b, breaking). Reshape
2
+ -- environment_connections from a single per-workspace provider binding into a multi-row
3
+ -- per-provision-type handler table keyed by (workspace_id, provision_type, manifest_id).
4
+ -- Backwards compatibility is NOT a goal (CLAUDE.md): clean DROP/CREATE, stale rows dropped.
5
+ DROP TABLE IF EXISTS "environment_connections" CASCADE;
6
+ --> statement-breakpoint
7
+ CREATE TABLE "environment_connections" (
8
+ "workspace_id" text,
9
+ "provision_type" text,
10
+ "manifest_id" text DEFAULT '',
11
+ "engine" text NOT NULL,
12
+ "backend_kind" text NOT NULL,
13
+ "provider_id" text NOT NULL,
14
+ "label" text NOT NULL,
15
+ "base_url" text NOT NULL,
16
+ "handler_json" text NOT NULL,
17
+ "accepts_manifest_id" text,
18
+ "secrets_cipher" text NOT NULL,
19
+ "created_at" bigint NOT NULL,
20
+ "deleted_at" bigint,
21
+ CONSTRAINT "environment_connections_pkey" PRIMARY KEY("workspace_id","provision_type","manifest_id")
22
+ );
23
+ --> statement-breakpoint
24
+ CREATE INDEX "idx_environment_conn_workspace" ON "environment_connections" ("workspace_id") WHERE "deleted_at" IS NULL;