/*
 Navicat Premium Data Transfer

 Source Server         : 智慧社区dev
 Source Server Type    : MySQL
 Source Server Version : 50729
 Source Host           : 10.1.241.110:3306
 Source Schema         : normal_scommunity

 Target Server Type    : MySQL
 Target Server Version : 50729
 File Encoding         : 65001

 Date: 28/06/2022 16:54:10
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for res_resident_quit_decode
-- ----------------------------
DROP TABLE IF EXISTS `res_resident_quit_decode`;
CREATE TABLE `res_resident_quit_decode`  (
  `resident_quit_id` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '迁出id',
  `community_id` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '小区id',
  `resident_id` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '住户id',
  `resident_name` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '住户姓名',
  `gender` smallint(1) NOT NULL COMMENT '性别:1-女; 2-男',
  `image` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '头像',
  `phone_no` char(13) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '电话号码加*',
  `phone_no_encode` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '电话号码(加密)',
  `age` int(3) DEFAULT NULL COMMENT '年龄',
  `nation` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '民族 ',
  `id_type` int(1) NOT NULL COMMENT '1-身份证、2-居住证、3-签证、4-护照、5-户口本、6-军人证、7-团员证、8-党员证、9-港澳通行证',
  `id_no` char(18) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '证件号',
  `id_no_encode` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '证件号(加密)',
  `resident_type` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '住户类型：1-业主;2-租客; 3-商住;4-访客',
  `house_id` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '曾住房屋id',
  `house` varchar(1024) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '曾住房屋(楼栋/单元/房间号)，分号分割',
  `tag` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '人员标签，分号分割',
  `entry_time` datetime(0) DEFAULT NULL COMMENT '录入时间',
  `quit_time` datetime(0) DEFAULT NULL COMMENT '迁出时间',
  PRIMARY KEY (`resident_quit_id`) USING BTREE,
  INDEX `quit_time_idx`(`quit_time`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '人员迁出表' ROW_FORMAT = Dynamic;

SET FOREIGN_KEY_CHECKS = 1;
