-- Add all missing User columns that were in schema but never migrated
ALTER TABLE "User" ADD COLUMN IF NOT EXISTS "lightTheme" JSONB;
ALTER TABLE "User" ADD COLUMN IF NOT EXISTS "darkTheme" JSONB;
ALTER TABLE "User" ADD COLUMN IF NOT EXISTS "emailVerificationCode" TEXT;
ALTER TABLE "User" ADD COLUMN IF NOT EXISTS "mobileFontScale" DOUBLE PRECISION NOT NULL DEFAULT 1.0;
ALTER TABLE "User" ADD COLUMN IF NOT EXISTS "viewSettings" JSONB;
ALTER TABLE "User" ADD COLUMN IF NOT EXISTS "weatherEnabled" BOOLEAN NOT NULL DEFAULT false;
ALTER TABLE "User" ADD COLUMN IF NOT EXISTS "weatherLat" DOUBLE PRECISION;
ALTER TABLE "User" ADD COLUMN IF NOT EXISTS "weatherLon" DOUBLE PRECISION;
ALTER TABLE "User" ADD COLUMN IF NOT EXISTS "weatherLocation" TEXT;
ALTER TABLE "User" ADD COLUMN IF NOT EXISTS "notificationsEnabled" BOOLEAN NOT NULL DEFAULT false;
