城市公交系统
城市公交系统mysql数据库创建语句
城市公交系统oracle数据库创建语句
城市公交系统sqlserver数据库创建语句
城市公交系统spring+springMVC+hibernate框架对象(javaBean,pojo)设计
城市公交系统spring+springMVC+mybatis框架对象(javaBean,pojo)设计
城市公交系统mysql数据库版本源码:
超级管理员表创建语句如下:
create table t_admin(
id int primary key auto_increment comment ‘主键’,
username varchar(100) comment ‘超级管理员账号’,
password varchar(100) comment ‘超级管理员密码’
) comment ‘超级管理员’;
insert into t_admin(username,password) values(‘admin’,‘123456’);
SQLCopy
建议表创建语句如下:
create table t_contact(
id int primary key auto_increment comment ‘主键’,
customerId int comment ‘用户’,
phone varchar(100) comment ‘联系方式’,
content varchar(100) comment ‘内容’,
insertDate datetime comment ‘日期’,
userId int comment ‘’
) comment ‘建议’;
SQLCopy
用户表创建语句如下:
create table t_customer(
id int primary key auto_increment comment ‘主键’,
username varchar(100) comment ‘账号’,
password varchar(100) comment ‘密码’,
customerName varchar(100) comment ‘姓名’,
sex varchar(100) comment ‘性别’,
address varchar(100) comment ‘地址’,
phone varchar(100) comment ‘手机’,
account int comment ‘账户’,
jf int comment ‘积分’,
headPic varchar(100) comment ‘头像’
) comment ‘用户’;
SQLCopy
公交线路表创建语句如下:
create table t_gjxl(
id int primary key auto_increment comment ‘主键’,
userId int comment ‘司机’,
xlmc varchar(100) comment ‘线路名称’,
xlxx varchar(100) comment ‘线路详细’,
pj int comment ‘票价’
) comment ‘公交线路’;
SQLCopy
公交站点表创建语句如下:
create table t_gjzd(
id int primary key auto_increment comment ‘主键’,
gjxlId int comment ‘所属公交线路’,
gjzdName varchar(100) comment ‘公交站点名称’,
wz varchar(100) comment ‘位置’,
px varchar(100) comment ‘排序’
) comment ‘公交站点’;
SQLCopy
工资表创建语句如下:
create table t_gz(
id int primary key auto_increment comment ‘主键’,
userId int comment ‘司机’,
jbgz int comment ‘基本工资’,
jj int comment ‘奖金’,
kq int comment ‘考勤’,
showDate varchar(100) comment ‘月份’,
remark varchar(100) comment ‘备注’
) comment ‘工资’;
SQLCopy
订单表创建语句如下:
create table t_order(
id int primary key auto_increment comment ‘主键’,
customerId int comment ‘用户’,
productDetail varchar(100) comment ‘订单详细’,
allPrice varchar(100) comment ‘订单总价格’,
status varchar(100) comment ‘状态’,
orderNum varchar(100) comment ‘订单编号’,
userId int comment ‘’,
orderDate varchar(100) comment ‘’
) comment ‘订单’;
SQLCopy
评价表创建语句如下:
create table t_pj(
id int primary key auto_increment comment ‘主键’,
userId int comment ‘司机’,
customerId int comment ‘用户’,
content varchar(100) comment ‘评价内容’
) comment ‘评价’;
SQLCopy
投诉表创建语句如下:
create table t_ts(
id int primary key auto_increment comment ‘主键’,
userId int comment ‘司机’,
customerId int comment ‘用户’,
content varchar(100) comment ‘投诉内容’
) comment ‘投诉’;
SQLCopy
司机表创建语句如下:
create table t_user(
id int primary key auto_increment comment ‘主键’,
username varchar(100) comment ‘账号’,
password varchar(100) comment ‘密码’,
name varchar(100) comment ‘姓名’,
gh varchar(100) comment ‘工号’,
mobile varchar(100) comment ‘手机’,
headPic varchar(100) comment ‘头像’
) comment ‘司机’;
SQLCopy
消息表创建语句如下:
create table t_xiaoxi(
id int primary key auto_increment comment ‘主键’,
customerId int comment ‘用户’,
title varchar(100) comment ‘标题’,
content varchar(100) comment ‘内容’,
insertDate datetime comment ‘日期’
) comment ‘消息’;
SQLCopy
新闻公告表创建语句如下:
create table t_zx(
id int primary key auto_increment comment ‘主键’,
title varchar(100) comment ‘标题’,
content varchar(100) comment ‘内容’,
pic varchar(100) comment ‘图片’
) comment ‘新闻公告’;
SQLCopy
城市公交系统oracle数据库版本源码:
超级管理员表创建语句如下:
create table t_admin(
id integer,
username varchar(100),
password varchar(100)
);
insert into t_admin(id,username,password) values(1,‘admin’,‘123456’);
–超级管理员字段加注释
comment on column t_admin.id is ‘主键’;
comment on column t_admin.username is ‘超级管理员账号’;
comment on column t_admin.password is ‘超级管理员密码’;
–超级管理员表加注释
comment on table t_admin is ‘超级管理员’;
SQLCopy
建议表创建语句如下:
create table t_contact(
id integer,
customerId int,
phone varchar(100),
content varchar(100),
insertDate datetime,
userId int
);
–建议字段加注释
comment on column t_contact.id is ‘主键’;
comment on column t_contact.customerId is ‘用户’;
comment on column t_contact.phone is ‘联系方式’;
comment on column t_contact.content is ‘内容’;
comment on column t_contact.insertDate is ‘日期’;
comment on column t_contact.userId is ‘’;
–建议表加注释
comment on table t_contact is ‘建议’;
SQLCopy
用户表创建语句如下:
create table t_customer(
id integer,
username varchar(100),
password varchar(100),
customerName varchar(100),
sex varchar(100),
address varchar(100),
phone varchar(100),
account int,
jf int,
headPic varchar(100)
);
–用户字段加注释
comment on column t_customer.id is ‘主键’;
comment on column t_customer.username is ‘账号’;
comment on column t_customer.password is ‘密码’;
comment on column t_customer.customerName is ‘姓名’;
comment on column t_customer.sex is ‘性别’;
comment on column t_customer.address is ‘地址’;
comment on column t_customer.phone is ‘手机’;
comment on column t_customer.account is ‘账户’;
comment on column t_customer.jf is ‘积分’;
comment on column t_customer.headPic is ‘头像’;
–用户表加注释
comment on table t_customer is ‘用户’;
SQLCopy
公交线路表创建语句如下:
create table t_gjxl(
id integer,
userId int,
xlmc varchar(100),
xlxx varchar(100),
pj int
);
–公交线路字段加注释
comment on column t_gjxl.id is ‘主键’;
comment on column t_gjxl.userId is ‘司机’;
comment on column t_gjxl.xlmc is ‘线路名称’;
comment on column t_gjxl.xlxx is ‘线路详细’;
comment on column t_gjxl.pj is ‘票价’;
–公交线路表加注释
comment on table t_gjxl is ‘公交线路’;
SQLCopy
公交站点表创建语句如下:
create table t_gjzd(
id integer,
gjxlId int,
gjzdName varchar(100),
wz varchar(100),
px varchar(100)
);
–公交站点字段加注释
comment on column t_gjzd.id is ‘主键’;
comment on column t_gjzd.gjxlId is ‘所属公交线路’;
comment on column t_gjzd.gjzdName is ‘公交站点名称’;
comment on column t_gjzd.wz is ‘位置’;
comment on column t_gjzd.px is ‘排序’;
–公交站点表加注释
comment on table t_gjzd is ‘公交站点’;
SQLCopy
工资表创建语句如下:
create table t_gz(
id integer,
userId int,
jbgz int,
jj int,
kq int,
showDate varchar(100),
remark varchar(100)
);
–工资字段加注释
comment on column t_gz.id is ‘主键’;
comment on column t_gz.userId is ‘司机’;
comment on column t_gz.jbgz is ‘基本工资’;
comment on column t_gz.jj is ‘奖金’;
comment on column t_gz.kq is ‘考勤’;
comment on column t_gz.showDate is ‘月份’;
comment on column t_gz.remark is ‘备注’;
–工资表加注释
comment on table t_gz is ‘工资’;
SQLCopy
订单表创建语句如下:
create table t_order(
id integer,
customerId int,
productDetail varchar(100),
allPrice varchar(100),
status varchar(100),
orderNum varchar(100),
userId int,
orderDate varchar(100)
);
–订单字段加注释
comment on column t_order.id is ‘主键’;
comment on column t_order.customerId is ‘用户’;
comment on column t_order.productDetail is ‘订单详细’;
comment on column t_order.allPrice is ‘订单总价格’;
comment on column t_order.status is ‘状态’;
comment on column t_order.orderNum is ‘订单编号’;
comment on column t_order.userId is ‘’;
comment on column t_order.orderDate is ‘’;
–订单表加注释
comment on table t_order is ‘订单’;
SQLCopy
评价表创建语句如下:
create table t_pj(
id integer,
userId int,
customerId int,
content varchar(100)
);
–评价字段加注释
comment on column t_pj.id is ‘主键’;
comment on column t_pj.userId is ‘司机’;
comment on column t_pj.customerId is ‘用户’;
comment on column t_pj.content is ‘评价内容’;
–评价表加注释
comment on table t_pj is ‘评价’;
SQLCopy