Browse Source

求助增加house_id

Longlin 5 years ago
parent
commit
c3ae45d2ca
1 changed files with 3 additions and 1 deletions
  1. 3 1
      whepi-doc/task.sql

+ 3 - 1
whepi-doc/task.sql

@@ -11,6 +11,7 @@ create table qz_task (
     user_id         bigint(20)      NOT NULL DEFAULT 0          COMMENT '用户ID',
     user_name       varchar(20)     NOT NULL DEFAULT ''         COMMENT '用户名称',
     house_number    varchar(20)     NOT NULL DEFAULT ''         COMMENT '门牌号',
+    house_id        varchar(20)     NOT NULL DEFAULT ''         COMMENT '门牌号ID',
 
     user_create     bigint(20)      NOT NULL DEFAULT 0          COMMENT '新增人',
     time_create     datetime(0)     NOT NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '新增时间',
@@ -38,5 +39,6 @@ CREATE TABLE qz_task_reply (
     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
+    PRIMARY KEY (reply_id) USING BTREE,
+    INDEX task_id(task_id) USING BTREE
 ) ENGINE = InnoDB default charset=utf8 comment = '家庭求助回复表';