Commit b20a398d by 杨林龙

增加开发内容说明

1 parent 003a419b
use neshield;
alter table t_device_freq add user_type int(2) default 1 comment '1:有账户的用户 2:分享的用户' after support_freq;
ALTER TABLE t_device_freq MODIFY channel INT(2) DEFAULT NULL COMMENT '操作渠道1 APP端 ; 2 虎哥E盾系统;3 FRMS系统 4 新E盾系统 5 小程序';
create table neshield.t_cust_user
(
id int auto_increment comment '用户id'
primary key,
token varchar(256) null comment '登录token',
expire_in int null comment 'token过期时间',
try_times int default 0 null comment '登录失败次数',
rel_user_id int null comment '关联人(账户)id',
blacklist tinyint default 0 null comment '黑名单状态:1白名单,2临时封禁,3永久封禁',
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 'C端客户表';
create table neshield.t_cust_user_auth_rel
(
id int auto_increment comment '主键'
primary key,
user_id int not null comment '用户id',
auth_id int not null comment '认证id',
auth_type varchar(10) not null comment '验证类型:local,third',
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',
constraint t_cust_user_auth_rel_user_id_auth_id_auth_type_uindex
unique (user_id, auth_id, auth_type)
)
comment '用户登录认证关联表';
create table neshield.t_cust_user_local_account
(
id int auto_increment comment '主键'
primary key,
auth_id int not null comment '认证id',
union_id varchar(64) null comment '平台id',
username varchar(50) null comment '用户名/昵称',
avatar varchar(256) 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',
constraint t_cust_user_local_account_auth_id_uindex
unique (auth_id)
)
comment '用户本地账户表';
create table neshield.t_cust_user_local_auth
(
id int auto_increment comment '认证id'
primary key,
account varchar(64) null comment '用户账号',
password varchar(255) 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 neshield.t_cust_user_shared_data
(
id int auto_increment comment '主键'
primary key,
content_id int null comment '授权数据id',
content_type tinyint default 0 not null comment '内容类型:0车辆',
permit_type varchar(5) default 'r' not null comment '权限类型 r=只读 wr=读写',
effective_date datetime null comment '生效时间',
expiration_date datetime null comment '失效时间',
enable_status tinyint(2) default 0 not null comment '状态:0默认,1有效,2失效',
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盾|C端用户分享数据记录表';
create table neshield.t_cust_user_third_auth
(
id int auto_increment comment '认证id'
primary key,
openid varchar(64) null comment '第三方用户唯一标识',
login_type varchar(32) null comment '第三方平台标识(qq、wechat...)',
access_token varchar(256) null comment '第三方获取的access_token,校验使用',
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 neshield.t_cust_user_wechat_account
(
id int auto_increment comment '主键'
primary key,
auth_id int not null comment '认证id',
union_id varchar(64) null comment '平台id',
wechat_avatar varchar(256) null comment '微信头像',
wechat_name varchar(64) 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 neshield.t_vehicle_shared
(
id int auto_increment comment '主键'
primary key,
shared_id int not null comment '分享id',
accorder_id int null comment '授权人id,对应t_cust_user表id',
receiver_id int null comment '获权人id,对应t_cust_user表id',
content_id int null comment '授权数据id',
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盾|车辆分享表';
use newgps;
ALTER TABLE `d_track_alarm_rec`
ADD INDEX idx_alarmType (`alarmType`);
\ No newline at end of file
......@@ -4,21 +4,18 @@
## 一、需求列表
1、新E盾小程序
1、根据组织指定授权
2、工单关联车辆
## 二、涉及应用列表
```properties
svn://192.168.3.233/frms/code/hhx-gps-task-web 主干
http://192.168.3.233:8090/eshiled-new/ne-shield-miniappserver.git 主干
http://192.168.3.233:8090/eshiled-new/ne-shield-trialdrive-admin.git develop
http://192.168.3.233:8090/eshiled-new/ne-shield-devicemonitor-api.git develop
http://192.168.3.233:8090/eshiled-new/ne-shield-devicemonitor.git develop
http://192.168.3.233:8090/eshiled-new/ne-shield-alarmcenter.git develop
http://192.168.3.233:8090/eshiled-new/ne-shield-gateway-server.git develop
http://192.168.3.233:8090/eshiled-new/ne-shield-trialdrive-admin-api.git develop
http://192.168.3.233:8090/eshiled-new/ne-shield-usercenter.git develop
```
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!