@rudderhq/db 0.4.5 → 0.4.6-canary.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.
- package/dist/migrations/0098_cool_menace.sql +1 -0
- package/dist/migrations/0099_chat_work_manifest.sql +30 -0
- package/dist/migrations/meta/0098_snapshot.json +18478 -0
- package/dist/migrations/meta/0099_snapshot.json +18758 -0
- package/dist/migrations/meta/_journal.json +15 -1
- package/dist/schema/chat_work_manifest_items.d.ts +316 -0
- package/dist/schema/chat_work_manifest_items.d.ts.map +1 -0
- package/dist/schema/chat_work_manifest_items.js +32 -0
- package/dist/schema/chat_work_manifest_items.js.map +1 -0
- package/dist/schema/index.d.ts +1 -0
- package/dist/schema/index.d.ts.map +1 -1
- package/dist/schema/index.js +1 -0
- package/dist/schema/index.js.map +1 -1
- package/dist/schema/instance_settings.d.ts +19 -0
- package/dist/schema/instance_settings.d.ts.map +1 -1
- package/dist/schema/instance_settings.js +1 -0
- package/dist/schema/instance_settings.js.map +1 -1
- package/dist/schema/plugins.d.ts +2 -2
- package/package.json +4 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ALTER TABLE "instance_settings" ADD COLUMN "browser" jsonb DEFAULT '{}'::jsonb NOT NULL;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
CREATE TABLE "chat_work_manifest_items" (
|
|
2
|
+
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
|
|
3
|
+
"org_id" uuid NOT NULL,
|
|
4
|
+
"conversation_id" uuid NOT NULL,
|
|
5
|
+
"project_id" uuid,
|
|
6
|
+
"message_id" uuid,
|
|
7
|
+
"run_id" uuid,
|
|
8
|
+
"category" text NOT NULL,
|
|
9
|
+
"target_type" text NOT NULL,
|
|
10
|
+
"target_key" text NOT NULL,
|
|
11
|
+
"title" text NOT NULL,
|
|
12
|
+
"url" text,
|
|
13
|
+
"status" text DEFAULT 'ready' NOT NULL,
|
|
14
|
+
"source_role" text,
|
|
15
|
+
"created_by_agent_id" uuid,
|
|
16
|
+
"created_by_user_id" text,
|
|
17
|
+
"metadata" jsonb,
|
|
18
|
+
"created_at" timestamp with time zone DEFAULT now() NOT NULL,
|
|
19
|
+
"updated_at" timestamp with time zone DEFAULT now() NOT NULL
|
|
20
|
+
);
|
|
21
|
+
--> statement-breakpoint
|
|
22
|
+
ALTER TABLE "chat_work_manifest_items" ADD CONSTRAINT "chat_work_manifest_items_org_id_organizations_id_fk" FOREIGN KEY ("org_id") REFERENCES "public"."organizations"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
23
|
+
ALTER TABLE "chat_work_manifest_items" ADD CONSTRAINT "chat_work_manifest_items_conversation_id_chat_conversations_id_fk" FOREIGN KEY ("conversation_id") REFERENCES "public"."chat_conversations"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
24
|
+
ALTER TABLE "chat_work_manifest_items" ADD CONSTRAINT "chat_work_manifest_items_project_id_projects_id_fk" FOREIGN KEY ("project_id") REFERENCES "public"."projects"("id") ON DELETE set null ON UPDATE no action;--> statement-breakpoint
|
|
25
|
+
ALTER TABLE "chat_work_manifest_items" ADD CONSTRAINT "chat_work_manifest_items_message_id_chat_messages_id_fk" FOREIGN KEY ("message_id") REFERENCES "public"."chat_messages"("id") ON DELETE set null ON UPDATE no action;--> statement-breakpoint
|
|
26
|
+
ALTER TABLE "chat_work_manifest_items" ADD CONSTRAINT "chat_work_manifest_items_run_id_heartbeat_runs_id_fk" FOREIGN KEY ("run_id") REFERENCES "public"."heartbeat_runs"("id") ON DELETE set null ON UPDATE no action;--> statement-breakpoint
|
|
27
|
+
ALTER TABLE "chat_work_manifest_items" ADD CONSTRAINT "chat_work_manifest_items_created_by_agent_id_agents_id_fk" FOREIGN KEY ("created_by_agent_id") REFERENCES "public"."agents"("id") ON DELETE set null ON UPDATE no action;--> statement-breakpoint
|
|
28
|
+
CREATE UNIQUE INDEX "chat_work_manifest_items_conversation_target_uq" ON "chat_work_manifest_items" USING btree ("conversation_id","target_key");--> statement-breakpoint
|
|
29
|
+
CREATE INDEX "chat_work_manifest_items_org_conversation_category_idx" ON "chat_work_manifest_items" USING btree ("org_id","conversation_id","category");--> statement-breakpoint
|
|
30
|
+
CREATE INDEX "chat_work_manifest_items_org_project_category_idx" ON "chat_work_manifest_items" USING btree ("org_id","project_id","category");
|