14 lines
446 B
SQL
14 lines
446 B
SQL
-- CreateTable
|
|
-- Single-row settings table; the app always reads/writes the row at id
|
|
-- 'singleton'. No row is created here -- absence of a row just means "AI
|
|
-- generation isn't configured yet" (see lib/ai-settings.ts).
|
|
CREATE TABLE "AiSettings" (
|
|
"id" TEXT NOT NULL DEFAULT 'singleton',
|
|
"apiUrl" TEXT,
|
|
"apiKey" TEXT,
|
|
"model" TEXT,
|
|
"updatedAt" TIMESTAMP(3) NOT NULL,
|
|
|
|
CONSTRAINT "AiSettings_pkey" PRIMARY KEY ("id")
|
|
);
|