Commit db7a7666 by 杨林龙

仲利工单配置文件

1 parent c6d5be3b
# 需要添加的表
CREATE TABLE if not exists `t_vehicle_log`
(
`id` int(11) NOT NULL AUTO_INCREMENT,
`vehicle_id` int(11) DEFAULT NULL COMMENT '关联工单id',
`operate_content` varchar(100) DEFAULT NULL COMMENT '操作内容',
`remark` varchar(64) DEFAULT NULL COMMENT '备注',
`del_flag` tinyint(4) DEFAULT '0' COMMENT '是否删除 0=正常 -1=删除',
`created_date` datetime DEFAULT NULL COMMENT '创建时间',
`created_by` int(11) DEFAULT NULL COMMENT '创建人用户id',
`updated_date` datetime DEFAULT NULL COMMENT '更新时间',
`updated_by` int(11) DEFAULT NULL COMMENT '更新人用户id',
PRIMARY KEY (`id`),
KEY `vehicle_id_index` (`vehicle_id`)
) ENGINE = InnoDB
AUTO_INCREMENT = 1
DEFAULT CHARSET = utf8 COMMENT ='新e盾|车辆操作日志表';
create table t_workorder_vehicle_device
(
id int auto_increment primary key,
workorder_id int not null comment '关联工单id',
vehicle_id int null comment '工单车辆id',
sn varchar(32) null comment '设备sn',
wire_type tinyint(2) null comment '有线无线类型:1有线,0无线',
position varchar(100) null comment '设备安装位置',
del_flag tinyint default 0 null comment '是否删除 0=正常 -1=删除',
created_date datetime null comment '创建时间',
created_by int null comment '创建人用户id',
updated_date datetime null comment '更新时间',
updated_by int null comment '更新人用户id'
)
comment '新e盾|工单车辆设备附属表';
create table t_workorder_activate_log
(
id int auto_increment comment 'id' primary key,
workorder_id int not null comment '关联工单id',
service_provider varchar(100) null comment '服务商名称',
service_provider_phone varchar(20) null comment '服务商电话',
mechanic_name varchar(100) null comment '技工名称',
mechanic_phone varchar(20) null comment '技工电话',
syn_channel varchar(16) default '' null comment '激活渠道(App;BGH(包活干))',
remark varchar(500) null comment '备注',
del_flag tinyint default 0 null comment '是否删除 0=正常 -1=删除',
created_date datetime null comment '创建时间',
created_by int null comment '创建人用户id',
updated_date datetime null comment '更新时间',
updated_by int null comment '更新人用户id'
) comment '工单激活日志';
create table t_workorder_activate_location
(
id int auto_increment comment 'id' primary key,
workorder_id int not null comment '关联工单id',
vehicle_id int not null comment '车辆id',
sn varchar(32) not null comment '设备sn',
position varchar(100) null comment '设备安装位置',
lnglat varchar(128) null comment '经纬度坐标',
address varchar(100) null comment '解析地址',
up_time datetime null comment '上点时间',
del_flag tinyint default 0 null comment '是否删除 0=正常 -1=删除',
created_date datetime null comment '创建时间',
created_by int null comment '创建人用户id',
updated_date datetime null comment '更新时间',
updated_by int null comment '更新人用户id'
) comment '工单激活位置信息';
alter table t_workorder
add column finished_time datetime null comment '工单完成时间' after finished_remark,
modify finished_remark varchar(512) null comment '工单完成备注';
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!