-- AlterTable
ALTER TABLE "GuildSettings" ADD COLUMN     "birthdayConfig" JSONB,
ADD COLUMN     "birthdayEnabled" BOOLEAN,
ADD COLUMN     "reactionRolesConfig" JSONB,
ADD COLUMN     "reactionRolesEnabled" BOOLEAN,
ADD COLUMN     "statuspageConfig" JSONB,
ADD COLUMN     "statuspageEnabled" BOOLEAN;

-- CreateTable
CREATE TABLE "Birthday" (
    "id" TEXT NOT NULL,
    "userId" TEXT NOT NULL,
    "guildId" TEXT NOT NULL,
    "birthDate" TEXT NOT NULL,
    "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
    "updatedAt" TIMESTAMP(3) NOT NULL,

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

-- CreateTable
CREATE TABLE "ReactionRoleSet" (
    "id" TEXT NOT NULL,
    "guildId" TEXT NOT NULL,
    "channelId" TEXT NOT NULL,
    "messageId" TEXT,
    "title" TEXT,
    "description" TEXT,
    "entries" JSONB NOT NULL,
    "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
    "updatedAt" TIMESTAMP(3) NOT NULL,

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

-- CreateIndex
CREATE INDEX "Birthday_guildId_idx" ON "Birthday"("guildId");

-- CreateIndex
CREATE UNIQUE INDEX "Birthday_userId_guildId_key" ON "Birthday"("userId", "guildId");

-- CreateIndex
CREATE INDEX "ReactionRoleSet_guildId_idx" ON "ReactionRoleSet"("guildId");

-- CreateIndex
CREATE INDEX "ReactionRoleSet_guildId_messageId_idx" ON "ReactionRoleSet"("guildId", "messageId");
