-- AlterEnum
CREATE TYPE "SubscriptionStatus" AS ENUM ('free', 'pro');

-- AlterTable
ALTER TABLE "User" ADD COLUMN "subscriptionStatus" "SubscriptionStatus" NOT NULL DEFAULT 'free';
ALTER TABLE "User" ADD COLUMN "createdVideoCount" INTEGER NOT NULL DEFAULT 0;

-- Backfill from existing Plan
UPDATE "User" SET "subscriptionStatus" = 'pro' WHERE "plan" = 'PREMIUM';
UPDATE "User" SET "subscriptionStatus" = 'free' WHERE "plan" = 'FREE';
