行政区域表
CREATE TABLE `base_region` ( `id` VARCHAR(36) NOT NULL, `region_code` VARCHAR(36) NOT NULL COMMENT '区域编码', `region_name` VARCHAR(36) NOT NULL COMMENT '区域名称', `region_type` VARCHAR(36) NOT NULL COMMENT '省province,市city,区/县district', `parent_id` VARCHAR(36) NOT NULL DEFAULT '-1', `crt_time` DATETIME NULL DEFAULT NULL, `upd_time` DATETIME NULL DEFAULT NULL, `crt_user` VARCHAR(255) NULL DEFAULT NULL, `crt_name` VARCHAR(255) NULL DEFAULT NULL, `upd_user` VARCHAR(255) NULL DEFAULT NULL, `upd_name` VARCHAR(255) NULL DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `region_code` (`region_code`),
UNIQUE KEY `u_name_city` (`region_name`,`region_city`) ) COMMENT='行政区域表(系统表)' COLLATE='utf8mb4_general_ci' ENGINE=InnoDB;
添加列
ALTER TABLE `city` ADD COLUMN `crt_time` DATETIME NULL DEFAULT NULL, ADD COLUMN `upd_time` DATETIME NULL DEFAULT NULL, ADD COLUMN `crt_user_id` VARCHAR(255) NULL DEFAULT NULL, ADD COLUMN `crt_user_name` VARCHAR(255) NULL DEFAULT NULL, ADD COLUMN `upd_user_id` VARCHAR(255) NULL DEFAULT NULL, ADD COLUMN `upd_user_name` VARCHAR(255) NULL DEFAULT NULL