-- CreateTable
CREATE TABLE "AppSettings" (
    "id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
    "shopDomain" TEXT NOT NULL,
    "widgetId" TEXT,
    "widgetEnabled" BOOLEAN NOT NULL DEFAULT false,
    "ratingEnabled" BOOLEAN NOT NULL DEFAULT false,
    "termsPageEnabled" BOOLEAN NOT NULL DEFAULT false,
    "privacyPageEnabled" BOOLEAN NOT NULL DEFAULT false,
    "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
    "updatedAt" DATETIME NOT NULL
);

-- CreateIndex
CREATE UNIQUE INDEX "AppSettings_shopDomain_key" ON "AppSettings"("shopDomain");
