-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtable.sql
77 lines (63 loc) · 3.11 KB
/
table.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
-- 接口
-- https://www.autohome.com.cn/ashx/AjaxIndexCarFind.ashx?type=1
-- https://www.autohome.com.cn/ashx/AjaxIndexCarFind.ashx?type=3&value=3
-- https://www.autohome.com.cn/ashx/AjaxIndexCarFind.ashx?type=5&value=4259
-- https://car.m.autohome.com.cn/ashx/car/GetModelConfigNew.ashx?seriesId=4212
--多文件拼接成一个文件
--type F:\tools\eclipse\eclipse-jee-2019-09-R-win32-x86_64\eclipse-workspace\test\sql\*.sql >> F:\tools\eclipse\eclipse-jee-2019-09-R-win32-x86_64\eclipse-workspace\test\all.sql
drop table if exists t_car_brand;
/*==============================================================*/
/* Table: t_car_brand */
/*==============================================================*/
create table t_car_brand
(
cb_id bigint(20) not null auto_increment comment '车牌品牌编号',
cb_name varchar(100) comment '品牌名称',
cb_letter varchar(10) comment '英文首字母',
cb_logo varchar(100) comment 'logo',
primary key (cb_id)
);
alter table t_car_brand comment '车牌品牌';
drop table if exists t_car_brand_factory;
/*==============================================================*/
/* Table: t_car_brand_factory */
/*==============================================================*/
create table t_car_brand_factory
(
cbf_id bigint(20) not null auto_increment comment '车牌品牌厂家编号',
cb_id bigint(20) comment '车牌品牌编号',
cbf_name varchar(100) comment '子品牌名称',
cbf_letter varchar(10) comment '英文首字母',
cbf_logo varchar(100) comment 'logo',
primary key (cbf_id)
);
alter table t_car_brand_factory comment '车牌品牌厂家';
drop table if exists t_car_series;
/*==============================================================*/
/* Table: t_car_series */
/*==============================================================*/
create table t_car_series
(
cs_id bigint(20) not null auto_increment comment '编号',
cbf_id bigint(20) comment '车牌品牌厂家编号',
cs_name varchar(100) comment '车系名称',
cs_order bigint(20) comment '排序',
cs_letter varchar(10) comment '英文首字母',
primary key (cs_id)
);
alter table t_car_series comment '车系';
drop table if exists t_car_model;
/*==============================================================*/
/* Table: t_car_model */
/*==============================================================*/
create table t_car_model
(
cm_id bigint(20) not null auto_increment comment '编号',
cs_id bigint(20) comment '车牌品牌编号',
cm_name varchar(100) comment '车系名称',
cm_order bigint(20) comment '排序',
cm_state bigint(10) comment '状态',
cm_type varchar(100) comment '类型',
primary key (cm_id)
);
alter table t_car_model comment '车型';