区域表[system_district]
数据模型
建表脚本
-- ---------------------------- -- Table structure for system_district -- ---------------------------- DROP TABLE IF EXISTS `system_district`; CREATE TABLE `system_district` ( `district_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT ‘区域ID‘, `parent_id` bigint(20) unsigned NOT NULL COMMENT ‘父ID‘, `district_name` varchar(200) NOT NULL COMMENT ‘区域名称‘, `short_name` varchar(200) NOT NULL COMMENT ‘简称‘, `longitude` decimal(10,7) NOT NULL DEFAULT ‘0.0000000‘ COMMENT ‘经度‘, `latitude` decimal(10,7) NOT NULL DEFAULT ‘0.0000000‘ COMMENT ‘维度‘, `level` int(11) NOT NULL DEFAULT ‘1‘ COMMENT ‘等级‘, `sort` int(11) NOT NULL DEFAULT ‘0‘ COMMENT ‘排序‘, `is_deleted` tinyint(1) NOT NULL DEFAULT ‘0‘ COMMENT ‘删除标志: 0未删除,1已删除‘, `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT ‘创建时间‘, `update_time` timestamp NOT NULL DEFAULT ‘0000-00-00 00:00:00‘ COMMENT ‘修改时间‘, PRIMARY KEY (`district_id`) ) ENGINE=InnoDB AUTO_INCREMENT=659004503 DEFAULT CHARSET=utf8 COMMENT=‘区域表‘;
附件(建表脚本及数据)
时间: 2024-10-03 22:40:01