|
|
@ -1,6 +1,6 @@ |
|
|
/*==============================================================*/ |
|
|
/*==============================================================*/ |
|
|
/* DBMS name: MySQL 5.0 */ |
|
|
/* DBMS name: MySQL 5.0 */ |
|
|
/* Created on: 2018/6/13 11:38:18 */ |
|
|
|
|
|
|
|
|
/* Created on: 2018/6/28 18:05:16 */ |
|
|
/*==============================================================*/ |
|
|
/*==============================================================*/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -28,6 +28,8 @@ drop table if exists book_log; |
|
|
|
|
|
|
|
|
drop table if exists channel; |
|
|
drop table if exists channel; |
|
|
|
|
|
|
|
|
|
|
|
drop table if exists cleaner_blacklists; |
|
|
|
|
|
|
|
|
drop table if exists cleaner_district; |
|
|
drop table if exists cleaner_district; |
|
|
|
|
|
|
|
|
drop table if exists cleaner_info; |
|
|
drop table if exists cleaner_info; |
|
|
@ -354,6 +356,7 @@ create table book_detail |
|
|
( |
|
|
( |
|
|
id bigint unsigned not null, |
|
|
id bigint unsigned not null, |
|
|
cleaner_info_id bigint, |
|
|
cleaner_info_id bigint, |
|
|
|
|
|
default_cleaner_id bigint comment '默认保洁师id', |
|
|
service_card_id bigint not null comment '主键ID', |
|
|
service_card_id bigint not null comment '主键ID', |
|
|
merchant_no national varchar(32) not null comment '商家编号', |
|
|
merchant_no national varchar(32) not null comment '商家编号', |
|
|
card_type tinyint default 0 comment '服务卡类型', |
|
|
card_type tinyint default 0 comment '服务卡类型', |
|
|
@ -425,9 +428,30 @@ create table channel |
|
|
update_at bigint comment '更新时间', |
|
|
update_at bigint comment '更新时间', |
|
|
update_by varchar(32) comment '更新者', |
|
|
update_by varchar(32) comment '更新者', |
|
|
remark text comment '备注', |
|
|
remark text comment '备注', |
|
|
|
|
|
del_flag tinyint comment '删除标志:0-有效,1-已删除', |
|
|
primary key (id) |
|
|
primary key (id) |
|
|
); |
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
/*==============================================================*/ |
|
|
|
|
|
/* Table: cleaner_blacklists */ |
|
|
|
|
|
/*==============================================================*/ |
|
|
|
|
|
create table cleaner_blacklists |
|
|
|
|
|
( |
|
|
|
|
|
id int not null auto_increment comment 'id', |
|
|
|
|
|
cleaner_id bigint not null comment '保洁师id', |
|
|
|
|
|
consumer_id bigint not null comment '消费者id', |
|
|
|
|
|
cp_cleaner_name varchar(32) comment '保洁师名称', |
|
|
|
|
|
create_at bigint comment '创建时间', |
|
|
|
|
|
create_by varchar(32) comment '创建人', |
|
|
|
|
|
update_at bigint comment '更新时间', |
|
|
|
|
|
update_by varchar(32) comment '更新人', |
|
|
|
|
|
remark varchar(100) comment '备注', |
|
|
|
|
|
del_flag tinyint comment '删除标识:0-未删除,1-已删除', |
|
|
|
|
|
primary key (id) |
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
alter table cleaner_blacklists comment '保洁师黑名单'; |
|
|
|
|
|
|
|
|
/*==============================================================*/ |
|
|
/*==============================================================*/ |
|
|
/* Table: cleaner_district */ |
|
|
/* Table: cleaner_district */ |
|
|
/*==============================================================*/ |
|
|
/*==============================================================*/ |
|
|
@ -467,8 +491,8 @@ create table cleaner_info |
|
|
district_id int default 0 comment '区id', |
|
|
district_id int default 0 comment '区id', |
|
|
detail_address national varchar(128) comment '详细地址', |
|
|
detail_address national varchar(128) comment '详细地址', |
|
|
full_address national varchar(128) comment '完整住址', |
|
|
full_address national varchar(128) comment '完整住址', |
|
|
lat decimal(10,6) default 0.000000 comment '纬度', |
|
|
|
|
|
lng decimal(10,6) default 0.000000 comment '经度', |
|
|
|
|
|
|
|
|
lat decimal(10,6) default 0.000000 comment '百度纬度', |
|
|
|
|
|
lng decimal(10,6) default 0.000000 comment '百度经度', |
|
|
head_url national varchar(50) comment '头像', |
|
|
head_url national varchar(50) comment '头像', |
|
|
entry_date date comment '入职时间', |
|
|
entry_date date comment '入职时间', |
|
|
last_arrange_date date comment '最后排班时间', |
|
|
last_arrange_date date comment '最后排班时间', |
|
|
@ -481,6 +505,9 @@ create table cleaner_info |
|
|
update_by national varchar(20) comment '更新者', |
|
|
update_by national varchar(20) comment '更新者', |
|
|
del_flag tinyint default 0 comment '删除标志', |
|
|
del_flag tinyint default 0 comment '删除标志', |
|
|
token national varchar(32) comment '登录标识', |
|
|
token national varchar(32) comment '登录标识', |
|
|
|
|
|
departure_at bigint comment '离职时间,默认0,大于0为已离职', |
|
|
|
|
|
amap_lng decimal(10,6) comment '高德经度', |
|
|
|
|
|
amap_lat decimal(10,6) comment '高德纬度', |
|
|
primary key (id) |
|
|
primary key (id) |
|
|
); |
|
|
); |
|
|
|
|
|
|
|
|
@ -1005,11 +1032,13 @@ create table service_card |
|
|
full_address national varchar(128) comment '全地址', |
|
|
full_address national varchar(128) comment '全地址', |
|
|
address_telephone national varchar(16) comment '联系电话', |
|
|
address_telephone national varchar(16) comment '联系电话', |
|
|
linkman national varchar(32) comment '联系人', |
|
|
linkman national varchar(32) comment '联系人', |
|
|
lat decimal(10,6) default 0.000000 comment '纬度', |
|
|
|
|
|
lng decimal(10,6) default 0.000000 comment '经度', |
|
|
|
|
|
|
|
|
lat decimal(10,6) default 0.000000 comment '百度纬度', |
|
|
|
|
|
lng decimal(10,6) default 0.000000 comment '百度经度', |
|
|
remark national varchar(255) not null comment '服务备注', |
|
|
remark national varchar(255) not null comment '服务备注', |
|
|
address_id bigint default 0 comment '地址id', |
|
|
address_id bigint default 0 comment '地址id', |
|
|
square int default 0 comment '房屋面积', |
|
|
square int default 0 comment '房屋面积', |
|
|
|
|
|
amap_lng decimal(10,6) default 0.000000 comment '高德经度', |
|
|
|
|
|
amap_lat decimal(10,6) default 0.000000 comment '高德纬度', |
|
|
primary key (id) |
|
|
primary key (id) |
|
|
); |
|
|
); |
|
|
|
|
|
|
|
|
|