-- Phase 2: 订阅套餐表支持 package_plan

ALTER TABLE subscription_plan
    DROP CONSTRAINT IF EXISTS subscription_plan_plan_family_check;

ALTER TABLE subscription_plan
    ADD CONSTRAINT subscription_plan_plan_family_check
    CHECK (plan_family IN ('token_plan', 'coding_plan', 'package_plan'));
