@pstdio/pocketcoder-cli 0.6.0 → 0.6.2

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,23 @@
1
+ CREATE TABLE "workspace_conversation_messages" (
2
+ "workspace_id" uuid,
3
+ "seq" bigint,
4
+ "message_id" text NOT NULL,
5
+ "role" text NOT NULL,
6
+ "content" text NOT NULL,
7
+ "occurred_at" timestamp with time zone NOT NULL,
8
+ "metadata" jsonb DEFAULT '{}' NOT NULL,
9
+ "created_at" timestamp with time zone NOT NULL,
10
+ CONSTRAINT "workspace_conversation_messages_pkey" PRIMARY KEY("workspace_id","seq"),
11
+ CONSTRAINT "workspace_conversation_messages_workspace_id_message_id_unique" UNIQUE("workspace_id","message_id")
12
+ );
13
+ --> statement-breakpoint
14
+ CREATE TABLE "workspace_conversations" (
15
+ "workspace_id" uuid PRIMARY KEY,
16
+ "status" text NOT NULL,
17
+ "expires_at" timestamp with time zone,
18
+ "deleted_at" timestamp with time zone,
19
+ "updated_at" timestamp with time zone NOT NULL
20
+ );
21
+ --> statement-breakpoint
22
+ ALTER TABLE "workspace_conversation_messages" ADD CONSTRAINT "workspace_conversation_messages_workspace_id_workspaces_id_fkey" FOREIGN KEY ("workspace_id") REFERENCES "workspaces"("id");--> statement-breakpoint
23
+ ALTER TABLE "workspace_conversations" ADD CONSTRAINT "workspace_conversations_workspace_id_workspaces_id_fkey" FOREIGN KEY ("workspace_id") REFERENCES "workspaces"("id");