浏览代码

Merge branch 'master' of http://git.yvanui.com/hust/wuhan_epi

guojing 5 年之前
父节点
当前提交
574bd15dfb
共有 4 个文件被更改,包括 109 次插入14 次删除
  1. 29 0
      whepi-doc/login.sql
  2. 37 0
      whepi-doc/mrsb.sql
  3. 42 0
      whepi-doc/task.sql
  4. 1 14
      whepi-doc/xgfy.sql

+ 29 - 0
whepi-doc/login.sql

@@ -0,0 +1,29 @@
+-- ----------------------------
+-- Table structure for sys_user
+-- ----------------------------
+drop table if exists sys_user;
+create table sys_user
+(
+  user_id             BIGINT          not null             comment '用户编号',
+  weixin_id          VARCHAR(50)     not null default ''  comment '微信ID',
+  token               VARCHAR(50)     not null default ''  comment 'token',
+  version             CHAR(19)        not null             comment 'token版本',
+  create_at TIMESTAMP NOT NULL COMMENT '建立时间',
+  update_at TIMESTAMP NOT NULL COMMENT '更新日期',
+  primary key ( user_id )
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT = '微信用户关联';
+
+-- ----------------------------
+-- Table structure for sys_user_role
+-- ----------------------------
+DROP TABLE IF EXISTS sys_user_role;
+CREATE TABLE sys_user_role  (
+  ur_id 		bigint(20) NOT NULL COMMENT '用户角色关系ID',
+  user_id 		bigint(20) NOT NULL COMMENT '用户ID',
+  role_id 		int(11) NOT NULL COMMENT '角色ID:1居民,2业委会,3商家',
+  user_create 	bigint(20) NOT NULL DEFAULT 0 COMMENT '新增人',
+  time_create 	datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '新增时间',
+  user_update 	bigint(20) NOT NULL DEFAULT 0 COMMENT '修改人',
+  time_update 	datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0) ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '修改时间',
+  PRIMARY KEY (ur_id) USING BTREE
+) ENGINE = InnoDB default charset=utf8 comment = '用户角色关系表';

+ 37 - 0
whepi-doc/mrsb.sql

@@ -0,0 +1,37 @@
+-- ----------------------------
+-- Table structure for ms_report
+-- ----------------------------
+DROP TABLE IF EXISTS ms_report;
+CREATE TABLE ms_report  (
+  report_id         bigint(20) NOT NULL DEFAULT 0                           COMMENT '上报ID',
+  resident_id       bigint(20) NOT NULL DEFAULT 0                           COMMENT '居民ID',
+  safety_num        int(11) NOT NULL DEFAULT 0                              COMMENT '平安人数',
+  suspected_num     int(11) NOT NULL DEFAULT 0                              COMMENT '疑似人数',
+  remarks           varchar(100)  NOT NULL DEFAULT ''                       COMMENT '异常备注',
+  ms_status         int(11) NOT NULL DEFAULT 1                              COMMENT '健康状态:1正常,2异常',
+  user_create       bigint(20) NOT NULL DEFAULT 0                           COMMENT '新增人',
+  time_create       datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0)       COMMENT '新增时间',
+  user_update       bigint(20) NOT NULL DEFAULT 0                           COMMENT '修改人',
+  time_update       datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0) ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '修改时间',
+  PRIMARY KEY (report_id) USING BTREE
+) ENGINE = InnoDB default charset=utf8 comment = '每日上报表'
+
+
+-- ----------------------------
+-- Table structure for ms_suspected
+-- ----------------------------
+DROP TABLE IF EXISTS ms_suspected;
+CREATE TABLE ms_suspected  (
+  suspected_id      bigint(20) NOT NULL DEFAULT 0                           COMMENT '疑似ID',
+  resident_id       bigint(20) NOT NULL DEFAULT 0                           COMMENT '居民ID',
+  family_relative   int(11)    NOT NULL DEFAULT 1                           COMMENT '是否家庭成员:1是,2暂住亲友',
+  medical           int(11)    NOT NULL DEFAULT 1                           COMMENT '是否就医:1否,1是',
+  condition_status  int(11)    NOT NULL DEFAULT 0                           COMMENT '疑似情况:1咳嗽,2发烧,3腹泻,4胸痛,5咽痛,6其他 ',
+  remarks           varchar(100)  NOT NULL DEFAULT ''                       COMMENT '异常备注',
+
+  user_create       bigint(20) NOT NULL DEFAULT 0                           COMMENT '新增人',
+  time_create       datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0)       COMMENT '新增时间',
+  user_update       bigint(20) NOT NULL DEFAULT 0                           COMMENT '修改人',
+  time_update       datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0) ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '修改时间',
+  PRIMARY KEY (suspected_id) USING BTREE
+) ENGINE = InnoDB default charset=utf8 comment = '家庭疑似表';

+ 42 - 0
whepi-doc/task.sql

@@ -0,0 +1,42 @@
+-- ----------------------------
+-- Table structure for qz_task
+-- ----------------------------
+drop table if exists qz_task;
+create table qz_task (
+    task_id         bigint(20)      NOT NULL DEFAULT 0          COMMENT '求助任务ID',
+    task_target     varchar(20)     NOT NULL DEFAULT ''         COMMENT '求助对象:A业委会,B居委会,C物业,D志愿者',
+    task_type       int(11)         NOT NULL DEFAULT 0          COMMENT '求助类型:1生活必需品,2医药求助,3其他求助',
+    task_status     int(11)         NOT NULL DEFAULT 0          COMMENT '求助状态:1未解决,2处理中,3已处理',
+    remark          varchar(100)    NOT NULL DEFAULT ''         COMMENT '备注',
+    user_id         bigint(20)      NOT NULL DEFAULT 0          COMMENT '用户ID',
+    house_id        bigint(20)      NOT NULL DEFAULT 0          COMMENT '家庭ID',
+    house_number    varchar(20)     NOT NULL DEFAULT ''         COMMENT '门牌号',
+
+    user_create     bigint(20)      NOT NULL DEFAULT 0          COMMENT '新增人',
+    time_create     datetime(0)     NOT NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '新增时间',
+    user_update     bigint(20)      NOT NULL DEFAULT 0          COMMENT '修改人',
+    time_update     datetime(0)     NOT NULL DEFAULT CURRENT_TIMESTAMP(0) ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '修改时间',
+    PRIMARY KEY (task_id) USING BTREE,
+    INDEX user_id(user_id) USING BTREE
+)
+ENGINE = InnoDB
+DEFAULT CHARSET = utf8
+COMMENT = '家庭求助表'
+;
+
+-- ----------------------------
+-- Table structure for qz_task_reply
+-- ----------------------------
+DROP TABLE IF EXISTS qz_task_reply;
+CREATE TABLE qz_task_reply (
+    reply_id          bigint(20)    NOT NULL DEFAULT 0      COMMENT '回复ID',
+    task_id           bigint(20)    NOT NULL DEFAULT 0      COMMENT '求助ID',
+    user_id           bigint(20)    NOT NULL DEFAULT 0      COMMENT '回复用户ID',
+    reply_content     varchar(100)  NOT NULL DEFAULT ''     COMMENT '回复内容',
+
+    user_create       bigint(20)    NOT NULL DEFAULT 0      COMMENT '新增人',
+    time_create       datetime(0)   NOT NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '新增时间',
+    user_update       bigint(20)    NOT NULL DEFAULT 0      COMMENT '修改人',
+    time_update       datetime(0)   NOT NULL DEFAULT CURRENT_TIMESTAMP(0) ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '修改时间',
+    PRIMARY KEY (reply_id) USING BTREE
+) ENGINE = InnoDB default charset=utf8 comment = '家庭求助回复表';

+ 1 - 14
whepi-doc/xgfy.sql

@@ -110,9 +110,9 @@ CREATE TABLE sh_shop  (
   phone             varchar(20)  NOT NULL DEFAULT '' COMMENT '商店电话',
   phone             varchar(20)  NOT NULL DEFAULT '' COMMENT '商店电话',
   housing_estate    bigint(20) NOT NULL DEFAULT 0 COMMENT '小区,下拉选ID',
   housing_estate    bigint(20) NOT NULL DEFAULT 0 COMMENT '小区,下拉选ID',
   addr              varchar(100)  NOT NULL DEFAULT '' COMMENT '商店地址',
   addr              varchar(100)  NOT NULL DEFAULT '' COMMENT '商店地址',
-  image             varchar(100)  NOT NULL DEFAULT '' COMMENT '商店图片(根据实际使用)',
   start_date        varchar(10)  NOT NULL DEFAULT '' COMMENT '营业开始日期',
   start_date        varchar(10)  NOT NULL DEFAULT '' COMMENT '营业开始日期',
   end_date          varchar(10)  NOT NULL DEFAULT '' COMMENT '营业结束日期',
   end_date          varchar(10)  NOT NULL DEFAULT '' COMMENT '营业结束日期',
+  message           varchar(100)  NOT NULL DEFAULT '' COMMENT '每日消息',
   status            int(11) NOT NULL DEFAULT 0 COMMENT '状态:1正常,0草稿,-1删除',
   status            int(11) NOT NULL DEFAULT 0 COMMENT '状态:1正常,0草稿,-1删除',
   user_create       bigint(20) NOT NULL DEFAULT 0 COMMENT '新增人',
   user_create       bigint(20) NOT NULL DEFAULT 0 COMMENT '新增人',
   time_create       datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '新增时间',
   time_create       datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '新增时间',
@@ -139,22 +139,6 @@ CREATE TABLE sh_shop_mat  (
 ) ENGINE = InnoDB default charset=utf8 comment = '商店物资信息';
 ) ENGINE = InnoDB default charset=utf8 comment = '商店物资信息';
 
 
 -- ----------------------------
 -- ----------------------------
-DROP TABLE IF EXISTS sh_shop_message;
-CREATE TABLE sh_shop_message  (
-  msg_id            bigint(20) NOT NULL DEFAULT 0 COMMENT '消息ID',
-  shop_id           bigint(20) NOT NULL DEFAULT 0 COMMENT '商店ID',
-  status            int(11) NOT NULL DEFAULT 0 COMMENT '状态:1正常,0草稿,-1删除',
-  content           varchar(100)  NOT NULL DEFAULT '' COMMENT '消息内容',
-  user_create       bigint(20) NOT NULL DEFAULT 0 COMMENT '新增人',
-  time_create       datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '新增时间',
-  user_update       bigint(20) NOT NULL DEFAULT 0 COMMENT '修改人',
-  time_update       datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0) ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '修改时间',
-  PRIMARY KEY (msg_id) USING BTREE
-) ENGINE = InnoDB default charset=utf8 comment = '商店推送信息';
-
 -- Table structure for sys_file
 -- Table structure for sys_file
 -- ----------------------------
 -- ----------------------------
 DROP TABLE IF EXISTS sys_file;
 DROP TABLE IF EXISTS sys_file;