@pstdio/pocketcoder-cli 0.6.0 → 0.6.1

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,25 @@
1
+ CREATE TABLE "warm_pool_runtimes" (
2
+ "id" uuid PRIMARY KEY,
3
+ "template_id" uuid NOT NULL,
4
+ "template_name" text NOT NULL,
5
+ "template_version" text NOT NULL,
6
+ "template_digest" text NOT NULL,
7
+ "driver_kind" text NOT NULL,
8
+ "eligibility_fingerprint" text NOT NULL,
9
+ "state" text NOT NULL,
10
+ "provider_ref" jsonb,
11
+ "enrollment_digest" bytea,
12
+ "enrollment_expires_at" timestamp with time zone,
13
+ "workspace_id" uuid,
14
+ "created_at" timestamp with time zone NOT NULL,
15
+ "updated_at" timestamp with time zone NOT NULL,
16
+ "ready_at" timestamp with time zone,
17
+ "leased_at" timestamp with time zone,
18
+ "failure_code" text
19
+ );
20
+ --> statement-breakpoint
21
+ ALTER TABLE "workspaces" ADD COLUMN "provisioning_mode" text;--> statement-breakpoint
22
+ CREATE INDEX "warm_pool_eligible" ON "warm_pool_runtimes" ("template_digest","driver_kind","eligibility_fingerprint","state","ready_at");--> statement-breakpoint
23
+ CREATE UNIQUE INDEX "warm_pool_workspace_once" ON "warm_pool_runtimes" ("workspace_id");--> statement-breakpoint
24
+ ALTER TABLE "warm_pool_runtimes" ADD CONSTRAINT "warm_pool_runtimes_template_id_templates_id_fkey" FOREIGN KEY ("template_id") REFERENCES "templates"("id");--> statement-breakpoint
25
+ ALTER TABLE "warm_pool_runtimes" ADD CONSTRAINT "warm_pool_runtimes_workspace_id_workspaces_id_fkey" FOREIGN KEY ("workspace_id") REFERENCES "workspaces"("id");