-- CreateEnum
CREATE TYPE "ApiAccessType" AS ENUM ('FACEBOOK_COST', 'FACEBOOK_AGENCY', 'TIKTOK_AGENCY', 'TIKTOK_COST');

-- CreateTable
CREATE TABLE "api_access" (
    "id" SERIAL NOT NULL,
    "type" "ApiAccessType" NOT NULL,
    "name" TEXT NOT NULL DEFAULT '',
    "token" TEXT,
    "active" BOOLEAN NOT NULL DEFAULT true,

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