migrate.sql 1.3 KB

1234567891011121314151617181920
  1. ALTER TABLE qimall_addons_electron_coupon add reward_money decimal(12,2) not null default 0.00 COMMENT '奖励金额';
  2. ALTER TABLE qimall_addons_electron_coupon add `share_expiry` int(11) NOT NULL DEFAULT '0' COMMENT '分享有效期,单位小时';
  3. ALTER TABLE qimall_addons_electron_coupon add `give_quantity` int(11) NOT NULL DEFAULT '0' COMMENT '赠送数量';
  4. CREATE TABLE `qimall_addons_electron_coupon_give_logs` (
  5. `id` int(11) NOT NULL AUTO_INCREMENT,
  6. `mall_id` int(11) NOT NULL COMMENT '商城id',
  7. `e_coupon_id` int(11) NOT NULL COMMENT '电子券id',
  8. `user_e_coupon_id` int(11) NOT NULL COMMENT '赠送者会员电子券id',
  9. `accept_user_e_coupon_id` int(11) NOT NULL DEFAULT '0' COMMENT '接收者会员电子券id',
  10. `user_id` int(11) NOT NULL COMMENT '接收者id',
  11. `give_user_id` int(11) NOT NULL COMMENT '赠送者id',
  12. `active_time` int(11) NOT NULL COMMENT '激活时间',
  13. `use_time` int(11) NOT NULL COMMENT '使用时间',
  14. `share_expiry` int(11) NOT NULL DEFAULT '0' COMMENT '分享有效期,单位小时',
  15. `created_at` int(11) NOT NULL DEFAULT '0',
  16. `updated_at` int(11) NOT NULL DEFAULT '0',
  17. `status` tinyint(4) DEFAULT '1' COMMENT '状态[-1:删除;0:禁用;1启用]',
  18. PRIMARY KEY (`id`) USING BTREE
  19. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT COMMENT='电子券赠送记录s';