1. 程式人生 > >數據庫表:區域表system_district

數據庫表:區域表system_district

decimal note number inno git cto 刪除 gin lin


區域表[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=‘區域表‘;

附件(建表腳本及數據)

system_district.sql

數據庫表:區域表system_district