|
@@ -26,4 +26,90 @@ CREATE TABLE sys_user_role (
|
|
|
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 = '用户角色关系表';
|
|
|
+) ENGINE = InnoDB default charset=utf8 comment = '用户角色关系表';
|
|
|
+
|
|
|
+-- ----------------------------
|
|
|
+-- Table structure for user_owner
|
|
|
+-- ----------------------------
|
|
|
+DROP TABLE IF EXISTS user_owner;
|
|
|
+CREATE TABLE user_owner (
|
|
|
+ owner_id bigint(20) NOT NULL DEFAULT 0 COMMENT '业主ID(user_id)',
|
|
|
+ linkman varchar(10) NOT NULL DEFAULT '' COMMENT '联系人名称',
|
|
|
+ phone varchar(20) NOT NULL DEFAULT '' COMMENT '联系人电话',
|
|
|
+ uptown_id bigint(20) NOT NULL DEFAULT 0 COMMENT '小区ID,下拉选ID',
|
|
|
+ addr 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 (owner_id) USING BTREE
|
|
|
+) ENGINE = InnoDB default charset=utf8 comment = '业委会';
|
|
|
+
|
|
|
+-- ----------------------------
|
|
|
+-- Table structure for user_resident
|
|
|
+-- ----------------------------
|
|
|
+DROP TABLE IF EXISTS user_resident;
|
|
|
+CREATE TABLE user_resident (
|
|
|
+ resident_id bigint(20) NOT NULL DEFAULT 0 COMMENT '居民ID(user_id)',
|
|
|
+ house_id bigint(20) NOT NULL DEFAULT 0 COMMENT '门牌ID',
|
|
|
+ linkman varchar(10) NOT NULL DEFAULT '' COMMENT '联系人名称',
|
|
|
+ phone varchar(20) NOT NULL DEFAULT '' COMMENT '联系人电话',
|
|
|
+ young int(11) NOT NULL DEFAULT 0 COMMENT '家庭年前人数',
|
|
|
+ middle int(11) NOT NULL DEFAULT 0 COMMENT '家庭中年人数',
|
|
|
+ old int(11) NOT NULL DEFAULT 0 COMMENT '家庭老年人数',
|
|
|
+ remark 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 (resident_id) USING BTREE
|
|
|
+) ENGINE = InnoDB default charset=utf8 comment = '居民表';
|
|
|
+
|
|
|
+-- ----------------------------
|
|
|
+-- Table structure for sys_area
|
|
|
+-- ----------------------------
|
|
|
+DROP TABLE IF EXISTS sys_area;
|
|
|
+CREATE TABLE sys_area (
|
|
|
+ area_id bigint(20) NOT NULL DEFAULT 0 COMMENT '地区ID',
|
|
|
+ province varchar(20) NOT NULL DEFAULT '' COMMENT '省',
|
|
|
+ city varchar(10) NOT NULL DEFAULT '' COMMENT '市',
|
|
|
+ area varchar(20) NOT NULL DEFAULT '' COMMENT '区',
|
|
|
+ status int(11) NOT NULL DEFAULT 0 COMMENT '状态:1正常,0草稿,-1删除',
|
|
|
+ time_create datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '新增时间',
|
|
|
+ time_update datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0) ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '修改时间',
|
|
|
+ PRIMARY KEY (area_id) USING BTREE
|
|
|
+) ENGINE = InnoDB default charset=utf8 comment = '居民表';
|
|
|
+
|
|
|
+-- ----------------------------
|
|
|
+-- Table structure for sys_uptown
|
|
|
+-- ----------------------------
|
|
|
+DROP TABLE IF EXISTS sys_uptown;
|
|
|
+CREATE TABLE sys_uptown (
|
|
|
+ uptown_id bigint(20) NOT NULL DEFAULT 0 COMMENT '小区ID',
|
|
|
+ uptown_name varchar(20) NOT NULL DEFAULT '' COMMENT '小区名称',
|
|
|
+ uptown_addr varchar(100) NOT NULL DEFAULT '' COMMENT '小区地址',
|
|
|
+ longitude varchar(20) NOT NULL DEFAULT '' COMMENT '经度',
|
|
|
+ latitude varchar(20) NOT NULL DEFAULT '' COMMENT '纬度',
|
|
|
+ area varchar(20) NOT NULL DEFAULT '' COMMENT '区',
|
|
|
+ status int(11) NOT NULL DEFAULT 0 COMMENT '状态:1正常,0草稿,-1删除',
|
|
|
+ time_create datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '新增时间',
|
|
|
+ time_update datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0) ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '修改时间',
|
|
|
+ PRIMARY KEY (uptown_id) USING BTREE
|
|
|
+) ENGINE = InnoDB default charset=utf8 comment = '小区表';
|
|
|
+
|
|
|
+
|
|
|
+-- ----------------------------
|
|
|
+-- Table structure for sys_uptown_house
|
|
|
+-- ----------------------------
|
|
|
+DROP TABLE IF EXISTS sys_uptown_house;
|
|
|
+CREATE TABLE sys_uptown_house (
|
|
|
+ house_id bigint(20) NOT NULL DEFAULT 0 COMMENT '门牌ID',
|
|
|
+ uptown_id bigint(20) NOT NULL DEFAULT 0 COMMENT '小区ID',
|
|
|
+ ridgepole int(11) NOT NULL DEFAULT 0 COMMENT '栋',
|
|
|
+ unit int(11) NOT NULL DEFAULT 0 COMMENT '单元',
|
|
|
+ doorplate varchar(20) NOT NULL DEFAULT '' COMMENT '门牌',
|
|
|
+ status int(11) NOT NULL DEFAULT 0 COMMENT '状态:1正常,0草稿,-1删除',
|
|
|
+ time_create datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '新增时间',
|
|
|
+ time_update datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0) ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '修改时间',
|
|
|
+ PRIMARY KEY (house_id) USING BTREE
|
|
|
+) ENGINE = InnoDB default charset=utf8 comment = '小区门牌表';
|