Difference between revisions of "Character bind (Database Table)"

From SWGANH Wiki
Jump to: navigation, search
(Related Tags)
(Table Describe)
 
(One intermediate revision by the same user not shown)
Line 49: Line 49:
 
   `id` bigint(20) NOT NULL auto_increment COMMENT 'ID',
 
   `id` bigint(20) NOT NULL auto_increment COMMENT 'ID',
 
   `character_id` bigint(20) unsigned NOT NULL COMMENT 'Character ID',
 
   `character_id` bigint(20) unsigned NOT NULL COMMENT 'Character ID',
   `bank_planet_id` int(2) default NULL COMMENT 'Planet ID for Bank',
+
   `bank_planet_id` int(2) default '255' COMMENT 'Planet ID for Bank',
 
   `bind_oX` float(10,6) default NULL COMMENT 'X Location - Bind',
 
   `bind_oX` float(10,6) default NULL COMMENT 'X Location - Bind',
 
   `bind_oY` float(10,6) default NULL COMMENT 'Y Location - Bind',
 
   `bind_oY` float(10,6) default NULL COMMENT 'Y Location - Bind',
Line 72: Line 72:
 
| id            | bigint(20)          | NO  | PRI | NULL    | auto_increment |  
 
| id            | bigint(20)          | NO  | PRI | NULL    | auto_increment |  
 
| character_id  | bigint(20) unsigned | NO  | MUL |        |                |  
 
| character_id  | bigint(20) unsigned | NO  | MUL |        |                |  
| bank_planet_id | int(2)              | NO  | MUL |         |                |  
+
| bank_planet_id | int(2)              | YES  | MUL | 255    |                |  
| bind_oX        | float(10,6)        | NO  |    |         |                |  
+
| bind_oX        | float(10,6)        | YES  |    | NULL    |                |  
| bind_oY        | float(10,6)        | NO  |    |         |                |  
+
| bind_oY        | float(10,6)        | YES  |    | NULL    |                |  
| bind_oZ        | float(10,6)        | NO  |    |         |                |  
+
| bind_oZ        | float(10,6)        | YES  |    | NULL    |                |  
| clone_city_id  | int(10) unsigned    | NO  | MUL |         |                |  
+
| clone_city_id  | int(10) unsigned    | YES  | MUL | NULL    |                |  
 
+----------------+---------------------+------+-----+---------+----------------+
 
+----------------+---------------------+------+-----+---------+----------------+
 
7 rows in set (0.00 sec)
 
7 rows in set (0.00 sec)
 
</pre>
 
</pre>

Latest revision as of 14:27, 7 September 2007

Database Table - biography_faction

SWGANH Wiki is a repository of Star Wars Galaxies Developer information. This site is only meant to be used by SWGANH Developer team.


Table Structure

Field Type Unsigned Autoinc Null Key Default Value Description
id BIGINT(20) Symbol OK.png NULL ID
character_id BIGINT(20) Symbol OK.png Symbol OK.png Symbol OK.png Character ID (swganh.characters)
bank_planet_id INT(2) Symbol OK.png NULL Planet ID (swganh.planets)
bind_oX FLOAT(10,6) Symbol OK.png NULL Bind Location X
bind_oY FLOAT(10,6) Symbol OK.png NULL Bind Location Y
bind_oZ FLOAT(10,6) Symbol OK.png NULL Bind Location Z
clone_city_id INT(10) Symbol OK.png Symbol OK.png NULL Clone Location (swganh.spawn_clone)

Related Tags

100% This document is complete.

Database This document relates to the SWGANH Database Schema.

DB Table This document relates to the SWGANH Database Schema.

Table Create Script

CREATE TABLE `character_bind` (
  `id` bigint(20) NOT NULL auto_increment COMMENT 'ID',
  `character_id` bigint(20) unsigned NOT NULL COMMENT 'Character ID',
  `bank_planet_id` int(2) default '255' COMMENT 'Planet ID for Bank',
  `bind_oX` float(10,6) default NULL COMMENT 'X Location - Bind',
  `bind_oY` float(10,6) default NULL COMMENT 'Y Location - Bind',
  `bind_oZ` float(10,6) default NULL COMMENT 'Z Location - Bind',
  `clone_city_id` int(10) unsigned default NULL COMMENT 'Clone City ID',
  PRIMARY KEY  (`id`),
  KEY `FK_character_bind_1` (`character_id`),
  KEY `FK_character_bind_2` (`bank_planet_id`),
  KEY `FK_character_bind_3` (`clone_city_id`),
  CONSTRAINT `FK_character_bind_1` FOREIGN KEY (`character_id`) REFERENCES `characters` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_character_bind_2` FOREIGN KEY (`bank_planet_id`) REFERENCES `planet` (`planet_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_character_bind_3` FOREIGN KEY (`clone_city_id`) REFERENCES `spawn_clone` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Character Bind Data';

Table Describe

mysql> desc character_bind;
+----------------+---------------------+------+-----+---------+----------------+
| Field          | Type                | Null | Key | Default | Extra          |
+----------------+---------------------+------+-----+---------+----------------+
| id             | bigint(20)          | NO   | PRI | NULL    | auto_increment | 
| character_id   | bigint(20) unsigned | NO   | MUL |         |                | 
| bank_planet_id | int(2)              | YES  | MUL | 255     |                | 
| bind_oX        | float(10,6)         | YES  |     | NULL    |                | 
| bind_oY        | float(10,6)         | YES  |     | NULL    |                | 
| bind_oZ        | float(10,6)         | YES  |     | NULL    |                | 
| clone_city_id  | int(10) unsigned    | YES  | MUL | NULL    |                | 
+----------------+---------------------+------+-----+---------+----------------+
7 rows in set (0.00 sec)