叶君翔 3 tahun lalu
induk
melakukan
16cd5e6aaf
3 mengubah file dengan 0 tambahan dan 64 penghapusan
  1. 0 3
      doc/20211014_billing.sql
  2. 0 16
      doc/local.sql
  3. 0 45
      doc/new.sql

+ 0 - 3
doc/20211014_billing.sql

@@ -1,3 +0,0 @@
-ALTER TABLE `lb_order` ADD COLUMN `save_flag` tinyint(1) DEFAULT 0 COMMENT '手动发单保存标识(普通预约单手动发单此字段有效 0-非预约发单保存 1-预约发单保存)' AFTER `cancel_type`;
-ALTER TABLE `lb_order` ADD COLUMN `invoice_title` varchar(255) DEFAULT NULL COMMENT '发票抬头' AFTER `cancel_type`;
-ALTER TABLE `lb_order` ADD COLUMN `taxpayer_id` varchar(255) DEFAULT NULL COMMENT '发票税号' AFTER `cancel_type`;

+ 0 - 16
doc/local.sql

@@ -1,16 +0,0 @@
-
-alter table `lb_order_delivery` add column  `commission`  decimal(12,2) NOT NULL DEFAULT '0.00' COMMENT '佣金';
-
-alter table `lb_order_delivery` add column  `is_mine`  int(11) DEFAULT '2' COMMENT '支付使用的平台 0->猎豹平台,1->自己运力平台,2->未知';
-
-
-alter table `lb_order_delivery` add column  `origin_amount`  decimal(12,2) NOT NULL DEFAULT '0.00' COMMENT '原始支付金额';
-
-
-alter table `lb_order_delivery` add column  `hll_status` int(11) DEFAULT NULL COMMENT '货拉拉订单状态';
-
-
-
-alter table `lb_profits_detail` add column  `origin_source` tinyint(2) NOT NULL DEFAULT '0' COMMENT '来源:1->第三方支付订单,0->平台支付订单';
-
-alter table `lb_profits_detail` add column  `type` tinyint(2) NOT NULL DEFAULT '0' COMMENT '分佣固定类型:1->金额,0->比例';

+ 0 - 45
doc/new.sql

@@ -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->测试数据';