1
This commit is contained in:
89
_sql/insert_pricing_plans_data.sql
Normal file
89
_sql/insert_pricing_plans_data.sql
Normal file
@@ -0,0 +1,89 @@
|
||||
-- 插入初始价格套餐数据
|
||||
-- 基于原有前端接口 /config/pricing-plans 中的硬编码数据
|
||||
|
||||
INSERT INTO `pricing_plans` (
|
||||
`name`,
|
||||
`duration`,
|
||||
`days`,
|
||||
`price`,
|
||||
`original_price`,
|
||||
`unit`,
|
||||
`discount`,
|
||||
`features`,
|
||||
`featured`,
|
||||
`is_active`,
|
||||
`sort_order`,
|
||||
`create_time`,
|
||||
`last_modify_time`,
|
||||
`is_delete`
|
||||
) VALUES
|
||||
(
|
||||
'体验套餐',
|
||||
'7天',
|
||||
7,
|
||||
28.00,
|
||||
28.00,
|
||||
'元',
|
||||
NULL,
|
||||
'["7天使用权限", "全功能体验", "技术支持"]',
|
||||
0,
|
||||
1,
|
||||
1,
|
||||
NOW(),
|
||||
NOW(),
|
||||
0
|
||||
),
|
||||
(
|
||||
'月度套餐',
|
||||
'30天',
|
||||
30,
|
||||
99.00,
|
||||
120.00,
|
||||
'元',
|
||||
'约8.3折',
|
||||
'["30天使用权限", "全功能使用", "优先技术支持", "性价比最高"]',
|
||||
1,
|
||||
1,
|
||||
2,
|
||||
NOW(),
|
||||
NOW(),
|
||||
0
|
||||
),
|
||||
(
|
||||
'季度套餐',
|
||||
'90天',
|
||||
90,
|
||||
269.00,
|
||||
360.00,
|
||||
'元',
|
||||
'7.5折',
|
||||
'["90天使用权限", "全功能使用", "优先技术支持", "更优惠价格"]',
|
||||
0,
|
||||
1,
|
||||
3,
|
||||
NOW(),
|
||||
NOW(),
|
||||
0
|
||||
),
|
||||
(
|
||||
'终生套餐',
|
||||
'永久',
|
||||
-1,
|
||||
888.00,
|
||||
NULL,
|
||||
'元',
|
||||
'超值',
|
||||
'["永久使用权限", "全功能使用", "终身技术支持", "一次购买,终身使用", "最划算选择"]',
|
||||
0,
|
||||
1,
|
||||
4,
|
||||
NOW(),
|
||||
NOW(),
|
||||
0
|
||||
);
|
||||
|
||||
-- 查询验证插入结果
|
||||
SELECT id, name, duration, price, original_price, featured, is_active, sort_order
|
||||
FROM pricing_plans
|
||||
WHERE is_delete = 0
|
||||
ORDER BY sort_order ASC;
|
||||
Reference in New Issue
Block a user