diff --git a/epmet-module/open-data-worker/open-data-worker-server/src/main/resources/db/migration/V0.0.9__create_ca_resident_user_table.sql b/epmet-module/open-data-worker/open-data-worker-server/src/main/resources/db/migration/V0.0.9__create_ca_resident_user_table.sql new file mode 100644 index 0000000000..83328c08be --- /dev/null +++ b/epmet-module/open-data-worker/open-data-worker-server/src/main/resources/db/migration/V0.0.9__create_ca_resident_user_table.sql @@ -0,0 +1,14 @@ +DROP TABLE IF EXISTS `ca_resident_user`; +CREATE TABLE `ca_resident_user` ( + `id` varchar(64) NOT NULL, + `id_card` varchar(64) DEFAULT NULL COMMENT '身份证号', + `ic_resi_user_id` varchar(255) DEFAULT NULL COMMENT 'ic_resi_user表id', + `home_id` varchar(200) DEFAULT NULL COMMENT '绑定的房屋id', + `created_by` varchar(64) DEFAULT NULL COMMENT '创建人', + `CREATED_TIME` datetime DEFAULT NULL COMMENT '创建时间', + `updated_by` varchar(64) DEFAULT NULL COMMENT '最后修改人', + `updated_time` datetime DEFAULT NULL COMMENT '最后修改时间', + `del_flag` varchar(1) DEFAULT NULL COMMENT '删除标记,normal', + `revision` int(11) DEFAULT '1' COMMENT '乐观锁', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;