diff --git a/sql/app/app.sql b/sql/app/app.sql index be2ba24f..e1abc3f7 100644 --- a/sql/app/app.sql +++ b/sql/app/app.sql @@ -9,7 +9,7 @@ create table lc_app ( id int(11) not null auto_increment, name char(30) not null default '' comment '名称', logo varchar(128) not null default '' comment 'logo', - jsondata text not null default '' comment '更多数据', + jsondata text comment '更多数据', c_time int(10) not null default '0' comment '创建时间', u_time timestamp not null default current_timestamp on update current_timestamp comment '更新时间', primary key (id) @@ -49,4 +49,4 @@ create table lc_app_wxpaylog ( notify_param text comment '回调参数', u_time timestamp not null default current_timestamp comment '更新时间', primary key (id) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='支付回调日志' +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='支付回调日志'; diff --git a/sql/app/liche.sql b/sql/app/liche.sql index ee347a5d..e3251ee3 100644 --- a/sql/app/liche.sql +++ b/sql/app/liche.sql @@ -17,7 +17,7 @@ create table lc_app_liche_users ( 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='狸车小程序用户表' +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='狸车小程序用户表'; -- ---------------------------- diff --git a/sql/app/licheb.sql b/sql/app/licheb.sql index 2eb9a670..304528fb 100644 --- a/sql/app/licheb.sql +++ b/sql/app/licheb.sql @@ -20,5 +20,5 @@ create table lc_app_licheb_users ( 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='狸车宝用户表' +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='狸车宝用户表'; diff --git a/sql/app/subject.sql b/sql/app/subject.sql index 35e3b511..ad8c9ea9 100644 --- a/sql/app/subject.sql +++ b/sql/app/subject.sql @@ -11,7 +11,7 @@ create table lc_subjects( title varchar(32) not null default '' comment '标题', cover text comment '封面(多图用逗号隔开,包含图片信息)', imgs text comment '图片信息(多图用逗号隔开,包含图片信息)', - content text not null comment '内容', + content text comment '内容', cate_id int(10) unsigned not null default '0' comment '图片信息', biz_id int(10) unsigned not null default '0' comment '商家id', address varchar(255) not null default '' comment '定位地址', diff --git a/sql/auto.sql b/sql/auto.sql index a2e9878d..2a642cb5 100644 --- a/sql/auto.sql +++ b/sql/auto.sql @@ -27,7 +27,7 @@ create table lc_auto_series ( 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='车型库_车系' +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='车型库_车系'; -- ---------------------------- -- Title:车型属性 diff --git a/sql/biz.sql b/sql/biz.sql index e92d637f..0617bb19 100644 --- a/sql/biz.sql +++ b/sql/biz.sql @@ -23,7 +23,7 @@ create table lc_biz ( c_time int(11) not null default '0' comment '创建时间', 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='商家表' +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='商家表'; -- ---------------------------- -- Title:品牌表 @@ -39,7 +39,7 @@ create table lc_biz_brand ( 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='品牌表' +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='品牌表'; -- ---------------------------- -- Title:商家标签关系 @@ -52,4 +52,4 @@ create table lc_biz_tagdata ( tag_id int(10) unsigned not null comment '标签id', type tinyint(1) not null default '1' comment '1亮点标签 2附加标签', primary key (biz_id,tag_id) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='商家标签关系' +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='商家标签关系'; diff --git a/sql/common.sql b/sql/common.sql index d2fa0c95..8834b4e7 100644 --- a/sql/common.sql +++ b/sql/common.sql @@ -14,4 +14,4 @@ create table lc_area( county_name varchar(32) not null comment '区名称', primary key(id) )ENGINE=InnoDB default CHARSET=utf8mb4 COMMENT='行政区域表'; -alter table lc_area add firstchar varchar(4) not null default '' comment '城市大写首字母' +alter table lc_area add firstchar varchar(4) not null default '' comment '城市大写首字母'; diff --git a/sql/item.sql b/sql/item.sql index 325b8ca7..fabea774 100644 --- a/sql/item.sql +++ b/sql/item.sql @@ -32,5 +32,5 @@ create table lc_items ( c_time int(10) not null default '0' comment '创建时间', u_time timestamp not null default current_timestamp on update current_timestamp comment '更新时间', primary key (id) -) ENGINE=InnoDB AUTO_INCREMENT=30 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='商品表' +) ENGINE=InnoDB AUTO_INCREMENT=30 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='商品表'; diff --git a/sql/order.sql b/sql/order.sql index 1c724b09..a70f6aa7 100644 --- a/sql/order.sql +++ b/sql/order.sql @@ -15,7 +15,7 @@ create table `lc_order_purchase` ( `item_num` int(10) unsigned not null default '1' comment '商品/服务数量', `item_price` decimal(12,2) not null default '0.00' comment '商品/服务价格', `biz_id` int(11) not null default '0' comment '商家id', - `carriage` int(10) unsigned not null default '0', comment '运费', + `carriage` int(10) unsigned not null default '0' comment '运费', `total_price` decimal(12,2) not null default '0.00' comment '订单价格', `pay_price` decimal(12,2) not null default '0.00' comment '实付金额', `uname` varchar(16) not null default '' comment '订单用户姓名', diff --git a/sql/receiver/order.sql b/sql/receiver/order.sql index d13a97f6..c312e870 100644 --- a/sql/receiver/order.sql +++ b/sql/receiver/order.sql @@ -28,8 +28,8 @@ drop table if exists lc_receiver_order_bills; create table lc_receiver_order_bills ( id int(10) unsigned not null auto_increment comment '自增id', o_id int(10) unsigned not null default '0' comment '订单表id', - cardida varchar(100) not null default '' comment '省份证正面图片', - cardidb varchar(100) not null default '' comment '省份证正面图片', + cardida varchar(100) not null default '' comment '身份证正面图片', + cardidb varchar(100) not null default '' comment '身份证正面图片', money decimal(10,2) not null default '0.00' comment '到账金额', file varchar(100) not null default '' comment 'pdf文件', jsondata json default null comment 'json数据', diff --git a/sql/sys.sql b/sql/sys.sql index 3de04bc6..e2e8b311 100644 --- a/sql/sys.sql +++ b/sql/sys.sql @@ -13,7 +13,7 @@ create table lc_sys_admin( mobile varchar(11) not null default '' comment '手机号码', password varchar(255) not null comment '用户密码', role_id int unsigned not null default 0 comment '角色id', - other_json text not null default '' comment '行业、城市归属 json格式 {cate_id: [1,2]}', + other_json text comment '行业、城市归属 json格式 {cate_id: [1,2]}', status tinyint(1) not null default 1 comment '状态 -1删除 0:禁用 1:启用', c_time int unsigned not null default 0 comment '创建时间', u_time timestamp not null default current_timestamp on update current_timestamp, @@ -36,7 +36,7 @@ create table lc_sys_admin_log( descrip varchar(255) not null comment '操作描述', action varchar(32) not null comment '操作节点', ip varchar(32) not null default '' comment 'ip', - jsondata text not null default '' comment '更多数据', + jsondata text comment '更多数据', u_time timestamp not null default current_timestamp on update current_timestamp, primary key(id) )ENGINE=InnoDB default CHARSET=utf8mb4 COMMENT='管理日志表'; @@ -101,7 +101,7 @@ drop table if exists lc_sys_config; create table lc_sys_config( id int unsigned not null auto_increment comment '自增id', k varchar(32) not null comment '配置key', - v text not null default '' comment '配置', + v text comment '配置', c_time int unsigned not null default 0 comment '创建时间', u_time timestamp not null default current_timestamp on update current_timestamp, primary key(id) @@ -138,8 +138,8 @@ drop table if exists lc_sys_role; create table lc_sys_role( id int unsigned not null auto_increment comment '角色id', name varchar(32) not null comment '角色名称', - menu_ids text not null default '' comment '菜单id 都会隔开', - action_json text not null default '' comment '操作权限 json格式 {菜单id: [1,2]}', + menu_ids text comment '菜单id 都会隔开', + action_json text comment '操作权限 json格式 {菜单id: [1,2]}', descrip varchar(255) not null default '' comment '角色描述', status tinyint(1) not null default 1 comment '状态 -1删除 0:禁用 1:启用', primary key(id) @@ -172,7 +172,7 @@ create table lc_sys_content_tags ( tag_id int(10) unsigned not null comment '标签id', status tinyint(1) not null default '1' comment '状态:-1删除,0禁用,1正常', primary key (id) -) ENGINE=INNODB DEFAULT CHARSET=UTF8MB4 COLLATE=UTF8MB4_0900_AI_CI COMMENT='系统内容标签表' +) ENGINE=INNODB DEFAULT CHARSET=UTF8MB4 COLLATE=UTF8MB4_0900_AI_CI COMMENT='系统内容标签表'; -- ---------------------------- -- Title:系统内容标签表 @@ -186,4 +186,4 @@ create table lc_sys_tag_category ( name varchar(32) not null default '' comment '分类名称', status tinyint(1) not null default '1' comment '状态:-1删除,0禁用,1正常', primary key (id) -) ENGINE=INNODB DEFAULT CHARSET=UTF8MB4 COLLATE=UTF8MB4_0900_AI_CI COMMENT='系统标签分类表' +) ENGINE=INNODB DEFAULT CHARSET=UTF8MB4 COLLATE=UTF8MB4_0900_AI_CI COMMENT='系统标签分类表';