数据库表设计之区域表system_district:省市县街道四级地址表(附建表脚本及数据)...


区域表[system_district]

数据模型

image

建表脚本
-- ----------------------------
-- 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='区域表';
附件(建表脚本及数据)

system_district.sql

转载于:https://www.cnblogs.com/tartary/p/7560253.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值