Database DesignLOGIN

Database Design

1, Database design

##CREATE TABLE `global_region` (

`region_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,

`parent_id` smallint(5) unsigned NOT NULL DEFAULT '0',

`region_name` varchar(120 ) NOT NULL DEFAULT '',

## `region_type` tinyint(1) NOT NULL DEFAULT '2',

PRIMARY KEY (`region_id `),

KEY `parent_id` (`parent_id`),

KEY `region_type` (`region_type`)

) ENGINE=MyISAM DEFAULT CHARSET=utf8;

The data table is as follows:

微信图片_20180310123806.png

Insert data:

Link: https://pan.baidu.com/s/10P2ueF8JpJ5v2W4HsJtfWQ Password: 5q7i

Download and execute Just

Next Section

<?php echo "数据库设计";
submitReset Code
ChapterCourseware