-- CreateEnum
CREATE TYPE "BannerMediaType" AS ENUM ('IMAGE', 'VIDEO');

-- CreateTable
CREATE TABLE "HomepageBanner" (
    "id" SERIAL NOT NULL,
    "title" TEXT,
    "subtitle" TEXT,
    "mediaType" "BannerMediaType" NOT NULL,
    "desktopMediaUrl" TEXT NOT NULL,
    "mobileMediaUrl" TEXT,
    "buttonText" TEXT,
    "buttonLink" TEXT,
    "openInNewTab" BOOLEAN NOT NULL DEFAULT false,
    "textAlignment" TEXT DEFAULT 'left',
    "sortOrder" INTEGER NOT NULL DEFAULT 1000,
    "isActive" BOOLEAN NOT NULL DEFAULT true,
    "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
    "updatedAt" TIMESTAMP(3) NOT NULL,

    CONSTRAINT "HomepageBanner_pkey" PRIMARY KEY ("id")
);
