@rudderhq/db 0.3.6-canary.25 → 0.3.6-canary.27

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,8 @@
1
+ ALTER TABLE "chat_conversations" ADD COLUMN "forked_from_conversation_id" uuid;--> statement-breakpoint
2
+ ALTER TABLE "chat_conversations" ADD COLUMN "forked_from_message_id" uuid;--> statement-breakpoint
3
+ ALTER TABLE "chat_conversations" ADD COLUMN "fork_root_conversation_id" uuid;--> statement-breakpoint
4
+ ALTER TABLE "chat_conversations" ADD CONSTRAINT "chat_conversations_forked_from_conversation_id_chat_conversations_id_fk" FOREIGN KEY ("forked_from_conversation_id") REFERENCES "public"."chat_conversations"("id") ON DELETE set null ON UPDATE no action;--> statement-breakpoint
5
+ ALTER TABLE "chat_conversations" ADD CONSTRAINT "chat_conversations_forked_from_message_id_chat_messages_id_fk" FOREIGN KEY ("forked_from_message_id") REFERENCES "public"."chat_messages"("id") ON DELETE set null ON UPDATE no action;--> statement-breakpoint
6
+ ALTER TABLE "chat_conversations" ADD CONSTRAINT "chat_conversations_fork_root_conversation_id_chat_conversations_id_fk" FOREIGN KEY ("fork_root_conversation_id") REFERENCES "public"."chat_conversations"("id") ON DELETE set null ON UPDATE no action;--> statement-breakpoint
7
+ CREATE INDEX "chat_conversations_forked_from_conversation_idx" ON "chat_conversations" USING btree ("forked_from_conversation_id");--> statement-breakpoint
8
+ CREATE INDEX "chat_conversations_fork_root_idx" ON "chat_conversations" USING btree ("fork_root_conversation_id");