@pstdio/pocketcoder-cli 0.5.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.
- package/README.md +11 -0
- package/dist/drizzle/20260730103433_initial/migration.sql +109 -0
- package/dist/drizzle/20260730103433_initial/snapshot.json +1360 -0
- package/dist/drizzle/20260730113243_regular_pretty_boy/migration.sql +99 -0
- package/dist/drizzle/20260730113243_regular_pretty_boy/snapshot.json +2614 -0
- package/dist/drizzle/20260730132750_workspace-change-diagnostics/migration.sql +5 -0
- package/dist/drizzle/20260730132750_workspace-change-diagnostics/snapshot.json +2679 -0
- package/dist/drizzle/20260803081501_warm-workspace-pool/migration.sql +25 -0
- package/dist/drizzle/20260803081501_warm-workspace-pool/snapshot.json +3033 -0
- package/dist/drizzle/20260803092834_durable-conversations/migration.sql +23 -0
- package/dist/drizzle/20260803092834_durable-conversations/snapshot.json +3281 -0
- package/dist/drizzle/20260804093525_petite_morlun/migration.sql +39 -0
- package/dist/drizzle/20260804093525_petite_morlun/snapshot.json +3670 -0
- package/dist/drizzle/20260805123328_sloppy_brother_voodoo/migration.sql +16 -0
- package/dist/drizzle/20260805123328_sloppy_brother_voodoo/snapshot.json +3879 -0
- package/dist/index.js +33042 -32706
- package/package.json +51 -51
|
@@ -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");
|