-- AlterTable
ALTER TABLE "licenses" ADD COLUMN "languages_allowed" INTEGER NOT NULL DEFAULT 1;

-- Set defaults based on existing plan_tier
UPDATE "licenses" SET "languages_allowed" = CASE
    WHEN "plan_tier" = 'starter' THEN 1
    WHEN "plan_tier" = 'professional' THEN 5
    WHEN "plan_tier" = 'enterprise' THEN -1
    ELSE 1
END;
