-- CreateEnum
CREATE TYPE "ThemePreference" AS ENUM ('LIGHT', 'DARK', 'SYSTEM');

-- CreateTable
CREATE TABLE "user_preference" (
    "user_profile_id" INTEGER NOT NULL,
    "theme" "ThemePreference" NOT NULL DEFAULT 'SYSTEM',

    CONSTRAINT "user_preference_pkey" PRIMARY KEY ("user_profile_id")
);

-- AddForeignKey
ALTER TABLE "user_preference" ADD CONSTRAINT "user_preference_user_profile_id_fkey" FOREIGN KEY ("user_profile_id") REFERENCES "user_profiles"("id") ON DELETE CASCADE ON UPDATE CASCADE;
