mirror of
https://github.com/SrIzan10/vinci.git
synced 2026-06-06 01:07:00 +00:00
20 lines
540 B
SQL
20 lines
540 B
SQL
/*
|
|
Warnings:
|
|
|
|
- You are about to drop the `AIMessage` table. If the table is not empty, all the data it contains will be lost.
|
|
|
|
*/
|
|
-- DropTable
|
|
PRAGMA foreign_keys=off;
|
|
DROP TABLE "AIMessage";
|
|
PRAGMA foreign_keys=on;
|
|
|
|
-- CreateTable
|
|
CREATE TABLE "AiMessage" (
|
|
"id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
|
|
"role" TEXT NOT NULL,
|
|
"content" TEXT NOT NULL,
|
|
"aiChatId" INTEGER NOT NULL,
|
|
CONSTRAINT "AiMessage_aiChatId_fkey" FOREIGN KEY ("aiChatId") REFERENCES "ai_chats" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
|
|
);
|