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