-- AlterTable
ALTER TABLE "Task" ADD COLUMN     "externalId" TEXT,
ADD COLUMN     "externalListId" TEXT,
ADD COLUMN     "externalProvider" TEXT,
ADD COLUMN     "lastSyncedAt" TIMESTAMP(3);

-- AlterTable
ALTER TABLE "User" ADD COLUMN     "bodyFont" TEXT NOT NULL DEFAULT 'Inter',
ADD COLUMN     "cellDuration" INTEGER NOT NULL DEFAULT 30,
ADD COLUMN     "dateColor" TEXT DEFAULT '#888888',
ADD COLUMN     "dateFontFamily" TEXT DEFAULT 'Inter',
ADD COLUMN     "dateFontSize" TEXT DEFAULT '0.65rem',
ADD COLUMN     "dateFontWeight" TEXT DEFAULT '400',
ADD COLUMN     "eventFontFamily" TEXT DEFAULT 'Inter',
ADD COLUMN     "eventFontSize" TEXT DEFAULT '0.85rem',
ADD COLUMN     "eventFontWeight" TEXT DEFAULT '400',
ADD COLUMN     "focusBreakDuration" INTEGER NOT NULL DEFAULT 5,
ADD COLUMN     "fontSize" TEXT NOT NULL DEFAULT 'M',
ADD COLUMN     "fontWeight" TEXT NOT NULL DEFAULT '400',
ADD COLUMN     "headlineFont" TEXT NOT NULL DEFAULT 'Inter',
ADD COLUMN     "headlineFontSize" TEXT DEFAULT '1.25rem',
ADD COLUMN     "headlineFontWeight" TEXT DEFAULT '900',
ADD COLUMN     "pastDayColor" TEXT DEFAULT '#a6a6a7',
ADD COLUMN     "showAllDayEvents" BOOLEAN NOT NULL DEFAULT true,
ADD COLUMN     "showSchedule" BOOLEAN NOT NULL DEFAULT true,
ADD COLUMN     "showSomeday" BOOLEAN NOT NULL DEFAULT true,
ADD COLUMN     "showTimeGrid" BOOLEAN NOT NULL DEFAULT true,
ADD COLUMN     "taskColor" TEXT DEFAULT '#333333',
ADD COLUMN     "taskFontFamily" TEXT DEFAULT 'Inter',
ADD COLUMN     "taskFontSize" TEXT DEFAULT '0.9rem',
ADD COLUMN     "taskFontWeight" TEXT DEFAULT '400',
ADD COLUMN     "timeTaskFontFamily" TEXT DEFAULT 'Inter',
ADD COLUMN     "timeTaskFontSize" TEXT DEFAULT '0.75rem',
ADD COLUMN     "timeTaskFontWeight" TEXT DEFAULT '500',
ADD COLUMN     "todayHighlightColor" TEXT DEFAULT '#f0fafa',
ADD COLUMN     "viewDays" INTEGER NOT NULL DEFAULT 7,
ADD COLUMN     "viewStyle" TEXT NOT NULL DEFAULT 'grid',
ADD COLUMN     "weekdayColor" TEXT DEFAULT '#888888',
ADD COLUMN     "weekendColorSat" TEXT DEFAULT '#666666',
ADD COLUMN     "weekendColorSun" TEXT DEFAULT '#dc2626',
ALTER COLUMN "endHour" SET DEFAULT 18;

-- CreateIndex
CREATE INDEX "Task_userId_externalId_idx" ON "Task"("userId", "externalId");
