|
@@ -1,45 +0,0 @@
|
|
-
|
|
|
|
-
|
|
|
|
-alter table `lb_member` add column `agent_source` tinyint(4) DEFAULT NULL COMMENT '代理商来源:1->直属 2->邀请';
|
|
|
|
-alter table `lb_order` add column `agent_Id` int(11) DEFAULT NULL COMMENT '代理商ID';
|
|
|
|
-alter table `lb_order` add column `agent_Id_source` tinyint(4) DEFAULT NULL COMMENT '代理商来源: 1->直属 2->邀请 3->区域';
|
|
|
|
-
|
|
|
|
-CREATE TABLE `lb_profits_detail` (
|
|
|
|
- `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
|
|
|
- `order_id` int(11) NOT NULL COMMENT '订单id',
|
|
|
|
- `order_pay_amount` decimal(11,2) NOT NULL DEFAULT '0.00' COMMENT '订单支付金额',
|
|
|
|
- `agent_id` int(11) DEFAULT NULL COMMENT '参与分佣代理商ID',
|
|
|
|
- `agent_Id_source` tinyint(4) DEFAULT NULL COMMENT '代理商来源: 1->直属 2->邀请 3->区域 4-> 间接',
|
|
|
|
- `dsp_id` int(11) DEFAULT NULL COMMENT '参与分佣渠道ID',
|
|
|
|
- `order_type` int(11) DEFAULT '0' COMMENT '1->外卖订单 2->配送订单',
|
|
|
|
- `amount` decimal(11,2) NOT NULL DEFAULT '0.00' COMMENT '参与分佣总金额',
|
|
|
|
- `commission` decimal(11,2) NOT NULL DEFAULT '0.00' COMMENT '收益金额',
|
|
|
|
- `source` int(11) DEFAULT '0' COMMENT '分佣来源:1->自己分钱记录 2->上级分钱记录',
|
|
|
|
- `rate` decimal(11,2) DEFAULT NULL COMMENT '佣金比例(百分比)',
|
|
|
|
- `delivery_type` int(11) DEFAULT '0' COMMENT '配送类型:参照DeliveryTypeEnums枚举',
|
|
|
|
- `delivery_name` varchar(30) DEFAULT NULL COMMENT '配送平台名称',
|
|
|
|
- `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
|
|
|
- `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间',
|
|
|
|
- `deleted` tinyint(2) NOT NULL DEFAULT '0',
|
|
|
|
- PRIMARY KEY (`id`) USING BTREE
|
|
|
|
-) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='代理商/渠道分佣明细';
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
--------------------------------04-25
|
|
|
|
-alter table `lb_coupon` add column `member_recive_num` int(11) DEFAULT '1' COMMENT '用户领取数量';
|
|
|
|
-
|
|
|
|
-
|
|
|
|
--------------------------------0506
|
|
|
|
-alter table `lb_shop` add column `biz_license` varchar(255) DEFAULT NULL COMMENT '营业执照';
|
|
|
|
-alter table `lb_shop` add column `biz_license_no` varchar(30) DEFAULT NULL COMMENT '营业执照号码';
|
|
|
|
-alter table `lb_shop` add column `legal_person` varchar(20) DEFAULT NULL COMMENT '法人姓名';
|
|
|
|
-alter table `lb_shop` add column `idcard_no` varchar(20) DEFAULT NULL COMMENT '身份证号码';
|
|
|
|
-alter table `lb_shop` add column `idcard_front` varchar(255) DEFAULT NULL COMMENT '法人身份证正面照片';
|
|
|
|
-alter table `lb_shop` add column `idcard_back` varchar(255) DEFAULT NULL COMMENT '法人身份证反面照片';
|
|
|
|
-alter table `lb_shop` add column `biz_license_idcard` varchar(255) DEFAULT NULL COMMENT '门店拥有人手持身份证、营业执照图片(蜂鸟)';
|
|
|
|
-
|
|
|
|
-ALTER TABLE `lb_member_balance_log`
|
|
|
|
-ADD COLUMN `merchant_id` int NULL AFTER `deleted`;
|
|
|
|
-
|
|
|
|
-alter table `lb_profits_detail` add column `is_source` tinyint(2) NOT NULL DEFAULT '0' COMMENT '0->正式数据 1->测试数据';
|
|
|