Files
as-daycard-openapi/db/price-config-3layer.sql
zhaogd 30198c7191 初始化天卡开放平台后端项目
包含完整功能模块:
- 设备激活(直销激活码模式 + 代销免激活码模式)
- 微信支付 + 天卡订单
- 天卡池管理 + 异步橘视厅SDK激活
- 第三方合作伙伴接口(代销模式)
  - 签名鉴权(appKey/appSecret + nonce防重放)
  - 天卡消耗(事务 + 幂等 + 并发控制)
  - 媒资接口(三级授权过滤)
  - 审计日志
- 定价策略(3层:门店 > 渠道 > 平台)
- 分账(微信分账 + 分润规则)
- Docker部署(含Redis容器)
2026-07-26 12:34:13 +08:00

14 lines
726 B
SQL
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- ===========================================================
-- price-config-3layer.sql
-- 定价策略升级为 3 层维度:门店配置价 > 渠道配置价 > 平台默认价兜底
-- 同时取消时长约束(天卡固定 24 小时,不再按配置存时长)
-- ===========================================================
-- 1. 新增门店组织ID列(空=渠道级或平台级)
ALTER TABLE `day_card_price_config`
ADD COLUMN `store_org_id` BIGINT DEFAULT NULL COMMENT '门店组织ID(空=渠道级/平台级)' AFTER `channel_org_id`,
ADD INDEX `idx_store_org_id` (`store_org_id`);
-- 2. 取消时长约束,删除 duration_hours 列
ALTER TABLE `day_card_price_config` DROP COLUMN `duration_hours`;