liche update for admin auto cars manage

This commit is contained in:
xxb
2021-08-06 17:43:41 +08:00
committed by lccsw
parent f49f0eb8b9
commit 88ebf7e954
8 changed files with 767 additions and 1 deletions
+28
View File
@@ -47,3 +47,31 @@ create table lc_auto_attr (
primary key (id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='车型属性';
alter table lc_auto_attr add status tinyint(1) not null default 1 comment '状态(-1删除 0禁用 1正常)' after jsondata;
-- ----------------------------
-- Title:车型库
-- Author:xusir
-- Table:lc_auto_cars
-- ----------------------------
-- attrs:属性组合,颜色ID_型号ID_内饰ID
-- ----------------------------
drop table if exists lc_auto_cars;
create table lc_auto_cars (
id int(10) not null auto_increment comment '自增id',
brand_id int(11) not null comment '品牌id',
s_id int(10) not null comment '车系id',
attrs char(30) not null comment '属性组合:{type0id}_{type1id}_{type2id}',
price_car double(10,2) not null default 0.0 comment '裸车报价',
price_insure double(10,2) not null default 0.0 comment '保险报价',
price_fine double(10,2) not null default 0.0 comment '精品报价',
price_finance double(10,2) not null default 0.0 comment '金融报价',
first_pay double(10,2) not null default 0.0 comment '分期首付',
price_coplus double(10,2) not null default 0.0 comment '公司加价',
brokerage_1 double(10,2) not null default 0.0 comment '一级分销佣金',
brokerage_2 double(10,2) not null default 0.0 comment '二级分销佣金',
status tinyint(1) not null default '0' comment '状态(1开启 0关闭 -1删除)',
u_time timestamp not null default current_timestamp on update current_timestamp comment '更新时间',
c_time int(10) not null default '0' comment '创建时间',
primary key (id),
unique(attrs)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='车型库';