edit-order-opt

This commit is contained in:
lccsw
2021-12-30 17:09:11 +08:00
committed by lccsw
parent 199f6a20da
commit 02b38fd74b
85 changed files with 10346 additions and 291 deletions
+20
View File
@@ -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
View File
@@ -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;