DDL生成器会自动为timestamp类型添加DEFAULT CURRENT_TIMESTAMP, 显式指定会导致重复DEFAULT声明,MySQL报错1067。 修复的表: - discount_marketing (created_at, updated_at) - discount_promo_code (created_at) - discount_customer_bind (created_at)
- 新增3个数据模型: discount_marketing, discount_promo_code, discount_customer_bind - 新增CRUD定义: marketing/promo_code/customer_bind 的list和api - 新增init/data.json: appcodes编码(促销码类型、绑定方式) - init.py: bind_customer支持customerid参数覆盖(注册场景) - 折扣校验放宽至 0 < discount <= 1