浏览代码

xielianghe

lange 5 年之前
父节点
当前提交
46075529f0
共有 1 个文件被更改,包括 42 次插入1 次删除
  1. 42 1
      whepi-doc/mrsb.sql

+ 42 - 1
whepi-doc/mrsb.sql

@@ -53,4 +53,45 @@ CREATE TABLE ms_suspected  (
   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=utf8mb4 comment = '家庭疑似表';
+) ENGINE = InnoDB default charset=utf8mb4 comment = '家庭疑似表';
+
+
+-- ----------------------------
+-- Table structure for ms_trip
+-- ----------------------------
+DROP TABLE IF EXISTS ms_trip;
+CREATE TABLE ms_trip  (
+  trip_id           bigint(20) NOT NULL DEFAULT 0                           COMMENT '出行ID:和疑似ID一对一关系',
+  work_local        bigint(20) NOT NULL DEFAULT 0                           COMMENT '工作驻地:0未填写,1武汉市,2宜昌市,3当阳市,其他地点',
+  work_local_other  varchar(50)  NOT NULL DEFAULT ''                        COMMENT '工作驻地其他地点',
+  today_local       bigint(20) NOT NULL DEFAULT 0                           COMMENT '今日驻地:0未填写,1武汉市,2宜昌市,3当阳市,其他地点',
+  today_local_other varchar(50)  NOT NULL DEFAULT ''                        COMMENT '今日驻地其他地点',
+  is_trip           int(11)    NOT NULL DEFAULT 0                           COMMENT '是否出行:0否,1是',
+  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 (trip_id) USING BTREE
+) ENGINE = InnoDB default charset=utf8mb4 comment = '家庭出行表';
+
+
+-- ----------------------------
+-- Table structure for ms_trip_det
+-- ----------------------------
+DROP TABLE IF EXISTS ms_trip_det;
+CREATE TABLE ms_trip_det  (
+  trip_det_id       bigint(20) NOT NULL DEFAULT 0                           COMMENT '出行详细ID',
+  trip_id           bigint(20) NOT NULL DEFAULT 0                           COMMENT '出行ID:和疑似ID一对一关系',
+  sort              int(11)    NOT NULL DEFAULT 0                           COMMENT '序号',
+  start_local       bigint(20) NOT NULL DEFAULT 0                           COMMENT '出发地:0未填写,1武汉市,2宜昌市,3当阳市,其他地点',
+  start_local_other varchar(50)  NOT NULL DEFAULT ''                        COMMENT '出发地其他地点',
+  end_local         bigint(20) NOT NULL DEFAULT 0                           COMMENT '目的地:0未填写,1武汉市,2宜昌市,3当阳市,其他地点',
+  end_local_other   varchar(50)  NOT NULL DEFAULT ''                        COMMENT '目的地其他地点',
+  trip_type         int(11)    NOT NULL DEFAULT 0                           COMMENT '出行方式:0未填写,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 (trip_det_id) USING BTREE
+) ENGINE = InnoDB default charset=utf8mb4 comment = '家庭出行详细表';
+