Files
llm-intelligence/db/migrations/011_subscription_plan_package_family.sql
phamnazage-jpg 958245537a feat(imports): add real pricing and subscription collectors
Add plan catalog and subscription schema support, seed baselines, and real importers for core domestic subscriptions plus stable official pricing sources.

This commit also hardens the shared fetch layers so the importers can support live collection and database writes instead of relying on manual placeholders alone.
2026-05-15 22:32:57 +08:00

9 lines
305 B
SQL

-- 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'));