Navicat建表
create table tbl_driver
(
id int auto_increment primary key,
name varchar(20) not null,
mobile char(11) not null,
car_type char(20) not null,
car_num char(8) not null,
night_ornot char(1) not null,
create_time TIMESTAMP not null,
states char(1) not null,
password char(200) not null
);
create table tbl_customserver
(
keyss int auto_increment primary key,
phone_num char(11) not null,
password char(200) not null,
states char(1) not null,
names varchar(20) not null
);
create table tbl_task
(
ID_KEY int auto_increment primary key,
phone_num char(11) not null,
tstation char(20) not null,
ttime TIMESTAMP not null,
driver varchar(20) not null,
state char(1) not null
);
create table tbl_station
(
KEY_ID int auto_increment primary key,
station_name char(20) not null,
statess char(1) not null
);
create table tbl_message
(
MAY_ID int auto_increment primary key,
ttime TIMESTAMP not null,
message char(140) not null
);
模型图: