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.
9 lines
305 B
SQL
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'));
|