edit-order-opt
This commit is contained in:
@@ -135,3 +135,23 @@ create table lc_app_deal_apply (
|
||||
u_time timestamp not null default current_timestamp on update current_timestamp comment '更新时间',
|
||||
primary key (id)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='分销-申请表';
|
||||
|
||||
-- ----------------------------
|
||||
-- Title:审核数据
|
||||
-- Author:lcc
|
||||
-- Table:lc_app_checkdata
|
||||
-- ---------------------------
|
||||
create table lc_app_checkdata (
|
||||
id int(10) unsigned not null auto_increment comment '自增id',
|
||||
cf_id int(10) unsigned not null default '0' comment '来源id,详见haodian项目app.sql',
|
||||
app_id int(10) unsigned not null default '0' comment '应用id',
|
||||
type int(10) unsigned not null default '0' comment '审核类型,详见haodian项目app.sql',
|
||||
datatype char(10) not null default '0' comment '数据类型 img video',
|
||||
dataurl char(200) not null default '' comment '资源地址',
|
||||
ifcheck tinyint(1) not null default '0' comment '审核状态,-1审核未通过,0未审核,1审核通过',
|
||||
descrip text not null comment '描述',
|
||||
jsondata text not null comment '附加字段',
|
||||
c_time int(10) unsigned not null default '0' comment '创建时间',
|
||||
u_time timestamp not null default current_timestamp on update current_timestamp,
|
||||
primary key (id)
|
||||
) engine=innodb default charset=utf8mb4 collate=utf8mb4_0900_ai_ci comment='审核数据'
|
||||
|
||||
+28
-21
@@ -67,30 +67,37 @@ create table lc_app_liche_udata (
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='狸车用户数据表';
|
||||
alter table lc_app_liche_udata add app_uid int(10) unsigned not null default 0 comment '用户id' after cf_id;
|
||||
|
||||
|
||||
-- ----------------------------
|
||||
-- Title:用户购车订单
|
||||
-- Author:lcc
|
||||
-- Table:lc_app_liche_orders
|
||||
-- ---------------------------
|
||||
drop table if exists lc_app_liche_orders;
|
||||
create table lc_app_liche_orders (
|
||||
id int(10) unsigned not null auto_increment comment '自增id',
|
||||
o_id int(10) unsigned not null default '0' comment '订单表id',
|
||||
uid int(10) unsigned not null default '0' comment '用户id',
|
||||
sid varchar(32) not null default '' comment '订单号',
|
||||
mch_id varchar(30) not null default '' comment '支付商户号',
|
||||
pid int(10) unsigned not null default '0' comment '父订单id',
|
||||
brand_id int(10) not null default '0' comment '品牌id',
|
||||
s_id int(10) unsigned not null default '0' comment '车系id',
|
||||
v_id int(10) unsigned not null default '0' comment '车型号',
|
||||
cor_id int(10) not null default '0' comment '车身颜色id',
|
||||
incor_id int(10) unsigned not null default '0' comment '内饰颜色id',
|
||||
total_price decimal(12,2) not null default '0.00' comment '订单价格',
|
||||
pay_price decimal(12,2) not null default '0.00' comment '实付金额',
|
||||
type tinyint(2) unsigned not null default '0' comment '订单类型 1定金 2服务费 3尾款 4意向金 5后台添加',
|
||||
status tinyint(1) not null default '0' comment '支付状态 0未支付 1已支付',
|
||||
pay_time timestamp not null default '0000-00-00 00:00:00' comment '付款时间',
|
||||
c_time int(10) unsigned not null default '0' comment '创建时间',
|
||||
u_time timestamp null default current_timestamp on update current_timestamp,
|
||||
primary key (id)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='用户购车订单';
|
||||
alter table lc_app_liche_orders add descrip varchar(255) not null default '' comment '备注/描述' after pay_price;
|
||||
id int(10) unsigned not null auto_increment comment '自增id',
|
||||
o_id int(10) unsigned not null default '0' comment '订单表id',
|
||||
uid int(10) unsigned not null default '0' comment '用户id',
|
||||
entrust_uid int(10) not null default '0' comment '委托人用户id',
|
||||
pay_uid int(10) not null default '0' comment '付款人用户id',
|
||||
sid varchar(32) not null default '' comment '订单号',
|
||||
mch_id varchar(30) not null default '' comment '支付商户号',
|
||||
pid int(10) unsigned not null default '0' comment '父订单id',
|
||||
brand_id int(10) not null default '0' comment '品牌id',
|
||||
s_id int(10) unsigned not null default '0' comment '车系id',
|
||||
v_id int(10) unsigned not null default '0' comment '车型号',
|
||||
cor_id int(10) not null default '0' comment '车身颜色id',
|
||||
incor_id int(10) unsigned not null default '0' comment '内饰颜色id',
|
||||
company_id int(11) not null default '0' comment '公司id',
|
||||
total_price decimal(12,2) not null default '0.00' comment '订单价格',
|
||||
pay_price decimal(12,2) not null default '0.00' comment '实付金额',
|
||||
descrip varchar(255) not null default '' comment '备注/描述',
|
||||
type tinyint(2) unsigned not null default '0' comment '订单类型 1定金 2服务费 3尾款 4意向金 5后台添加',
|
||||
status tinyint(1) not null default '0' comment '支付状态 0未支付 1已支付',
|
||||
pay_time timestamp not null default '0000-00-00 00:00:00' comment '付款时间',
|
||||
c_time int(10) unsigned not null default '0' comment '创建时间',
|
||||
u_time timestamp null default current_timestamp on update current_timestamp,
|
||||
primary key (id)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='用户购车订单'
|
||||
alter table lc_app_liche_orders add img varchar(100) not null default '' comment '支付截图' after descrip;
|
||||
alter table lc_app_liche_orders add admin_id int(10) not null default 0 comment '管理员id' after uid;
|
||||
|
||||
+2
-1
@@ -30,7 +30,8 @@ create table lc_biz (
|
||||
alter table lc_biz add column type tinyint(1) not null default 0 comment '类型:1-合伙店,2-加盟店,3-代理店' after floor;
|
||||
alter table lc_biz add column company_id int not null default 0 comment '公司ID' after type;
|
||||
alter table lc_biz add column jsondata json null comment '其他数据' after company_id;
|
||||
alter table lc_biz add srv_company_id int(11) not null default 0 comment '收服务费公司ID' after company_id;
|
||||
alter table lc_biz add srv_company_id int(10) not null default 0 comment '收服务费公司ID' after company_id;
|
||||
alter table lc_biz add car_brand_id int(10) not null default 0 comment '车辆品牌' after type;
|
||||
|
||||
-- ----------------------------
|
||||
-- Title:品牌表
|
||||
|
||||
@@ -161,7 +161,7 @@ create table lc_receiver_order_signs (
|
||||
-- Table:lc_receiver_orders
|
||||
--- jsondata if_fine 是否选择精品尊享包
|
||||
-- info_json entrust_name 代办人姓名 entrust_idcard 代办人身份证 name 姓名 sex 性别 nation 民族 birth 出生日期 address 家庭地址 cardid 身份证 c_address 创建时输入的地址 c_cardid 创建时输入的身份证
|
||||
-- money_json price_car 裸车价 price_book 定金 price_insure 保险价格 price_fine 精品报价 price_finance 金融报价 price_loan贷款金额 price_discount优惠金额 price_intention意向金 price_fine_discount精品优惠金额
|
||||
-- money_json price_car 裸车价 price_book 定金 price_insure 保险价格 price_fine 精品报价 price_finance 金融报价 price_loan贷款金额 price_discount优惠金额 price_intention意向金 price_fine_discount精品优惠金额 price_fine_select精品选装总金额
|
||||
-- ---------------------------
|
||||
drop table if exists lc_receiver_orders;
|
||||
create table lc_receiver_orders (
|
||||
|
||||
@@ -206,6 +206,8 @@ create table lc_sys_company (
|
||||
alter table lc_sys_company add column credit_code varchar(18) not null default '' comment '统一社会信用代码' after short;
|
||||
alter table lc_sys_company add column wx_mchid varchar(10) not null default '' comment '微信商户号' after credit_code;
|
||||
alter table lc_sys_company add column img_seal varchar(128) not null default '' comment '公章' after wx_mchid;
|
||||
alter table lc_sys_company add column city_id int(10) unsigned not null default '0' comment '城市id' after wx_mchid;
|
||||
alter table lc_sys_company add column type tinyint(1) not null default 0 comment '公司类型(0服务公司 1销售公司)' after status;
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user