Difference between revisions of "Zone regions (Database Table)"
From SWGANH Wiki
(New page: {{PageHeader|Database Table|Accounts}} {| border="0" width="90%" cellpadding=6 |- |valign=top| ==Table Structure== {| align="center" |- || {| class = "anhsmalltable" |- align="center" sty...) |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
− | {{PageHeader|Database Table| | + | {{PageHeader|Database Table|Zone regions}} |
{| border="0" width="90%" cellpadding=6 | {| border="0" width="90%" cellpadding=6 | ||
|- | |- | ||
Line 11: | Line 11: | ||
|width="100px"|'''Field'''||width="60px"|'''Type'''||width="60px"|'''Unsigned'''||width="60px"|'''Autoinc'''||width="40px"|'''Null'''||width="40px"|'''Key'''||width="100px"|'''Default Value'''||width="200px"|'''Description''' | |width="100px"|'''Field'''||width="60px"|'''Type'''||width="60px"|'''Unsigned'''||width="60px"|'''Autoinc'''||width="40px"|'''Null'''||width="40px"|'''Key'''||width="100px"|'''Default Value'''||width="200px"|'''Description''' | ||
|- align="center" | |- align="center" | ||
− | |align="left"| | + | |align="left"|id||int(11)||align="center"|[[Image:Symbol OK.png|10px]]||align="center"|[[Image:Symbol OK.png|10px]]||NO||Primary|| ||Zone Region ID |
|- align="center" style="background-color:#F1F1F1;" | |- align="center" style="background-color:#F1F1F1;" | ||
− | |align="left"| | + | |align="left"|region_id||int(11)||align="center"|[[Image:Symbol OK.png|10px]]||align="center"| ||NO|| ||1||Region ID |
|- align="center" | |- align="center" | ||
− | |align="left"| | + | |align="left"|planet_id||int(2)||align="center"| ||align="center"| ||NO|| ||0||Planet ID |
|- align="center" style="background-color:#F1F1F1;" | |- align="center" style="background-color:#F1F1F1;" | ||
− | |align="left"| | + | |align="left"|qtDepth||int(2)||align="center"|[[Image:Symbol OK.png|10px]]||align="center"| ||NO|| ||8||Quad Tree Depth |
|- align="center" | |- align="center" | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|} | |} | ||
|} | |} |
Latest revision as of 13:00, 26 December 2008
Database Table - Zone regions
SWGANH Wiki is a repository of Star Wars Galaxies Developer information. This site is only meant to be used by SWGANH Developer team.
Table Create Script
DROP TABLE IF EXISTS `zone_regions`; CREATE TABLE `zone_regions` ( `Id` int(11) unsigned NOT NULL auto_increment, `region_id` int(11) unsigned NOT NULL default '1', `planet_id` int(2) NOT NULL default '0', `qtDepth` int(2) unsigned NOT NULL default '8', PRIMARY KEY (`Id`), KEY `fk_zone_region` (`region_id`), KEY `fk_zone_planet` (`planet_id`), CONSTRAINT `fk_zone_region` FOREIGN KEY (`region_id`) REFERENCES `planet_regions` (`region_id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `fk_zone_planet` FOREIGN KEY (`planet_id`) REFERENCES `planet` (`planet_id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8;
Table Describe
mysql> desc zone_regions; +-----------+------------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +-----------+------------------+------+-----+---------+----------------+ | Id | int(11) unsigned | NO | PRI | NULL | auto_increment | | region_id | int(11) unsigned | NO | MUL | 1 | | | planet_id | int(2) | NO | MUL | 0 | | | qtDepth | int(2) unsigned | NO | | 8 | | +-----------+------------------+------+-----+---------+----------------+ 4 rows in set (0.01 sec)