14_20240625.sql 978 B

1234567891011121314151617
  1. ALTER TABLE trade_order_item
  2. ADD COLUMN `promotion_fee` INT ( 11 ) DEFAULT NULL COMMENT '推广费, 单位: 分',
  3. ADD COLUMN `cost_price` INT ( 11 ) DEFAULT '-1' COMMENT '成本价,单位: 分';
  4. ALTER TABLE distri_daily_award_records
  5. ADD COLUMN `generate_user_id` bigint(20) DEFAULT NULL COMMENT '产生积分的用户ID,例如:下订单的用户ID';
  6. ALTER TABLE distri_daily_bill
  7. ADD COLUMN `refund_price` bigint NOT NULL DEFAULT '0' COMMENT '退款金额, 单位: 分',
  8. ADD COLUMN `integral` bigint NOT NULL DEFAULT '0' COMMENT '积分',
  9. ADD COLUMN `received_integral` bigint NOT NULL DEFAULT '0' COMMENT '确收积分',
  10. ADD COLUMN `refund_integral` bigint NOT NULL DEFAULT '0' COMMENT '退款积分',
  11. ADD COLUMN `order_calc_time` date NOT NULL COMMENT '订单所属日期';
  12. ALTER TABLE trade_order_item
  13. ADD COLUMN `computation_bill` bit(1) DEFAULT b'0' COMMENT '是否已经计算每日账单,已计算是1,未计算为0';