CREATE TABLE `qimall_addons_rand_fee_order` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `mall_id` int(10) NOT NULL DEFAULT '0', `trade_id` int(10) NOT NULL DEFAULT '0' COMMENT '支付流水ID', `order_id` int(10) NOT NULL DEFAULT '0' COMMENT '订单ID', `order_no` varchar(64) NOT NULL DEFAULT '' COMMENT '订单号', `user_id` int(10) NOT NULL DEFAULT '0' COMMENT '会员ID', `rand_fee` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '订单减免金额', `total_rand_fee` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '减免金额', `order_type` varchar(32) NOT NULL DEFAULT '' COMMENT '订单类型', `status` tinyint(1) unsigned NOT NULL DEFAULT '0', `created_at` int(10) unsigned NOT NULL DEFAULT '0', `updated_at` int(10) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COMMENT='随机减订单';