-- CreateEnum
CREATE TYPE "TelegramBotType" AS ENUM ('FACEBOOK_TOKEN_CHECK');

-- CreateTable
CREATE TABLE "telegram_bot_type" (
    "id" SERIAL NOT NULL,
    "type" "TelegramBotType" NOT NULL,
    "telegramBotId" INTEGER,

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

-- AddForeignKey
ALTER TABLE "telegram_bot_type" ADD CONSTRAINT "telegram_bot_type_telegramBotId_fkey" FOREIGN KEY ("telegramBotId") REFERENCES "telegram_bot"("id") ON DELETE SET NULL ON UPDATE CASCADE;
