Difference between revisions of "Account (Database Table)"

From SWGANH Wiki
Jump to: navigation, search
(Table Structure)
(Table Structure)
Line 10: Line 10:
 
|-
 
|-
 
||account_id||bigint(20)||align="center"|[[Image:Symbol OK.png|10px]]||align="center"|[[Image:Symbol OK.png|10px]]||NO||Primary||Null||Account ID
 
||account_id||bigint(20)||align="center"|[[Image:Symbol OK.png|10px]]||align="center"|[[Image:Symbol OK.png|10px]]||NO||Primary||Null||Account ID
 +
|-
 +
||username||char(32)||align="center"| ||align="center"| ||NO||Unique|| ||
 
|-
 
|-
 +
|}
 +
| password          | char(32)            | NO  |    |                    |                |
 +
| station_id        | bigint(20) unsigned | NO  |    | 0                  |                |
 +
| csr                | tinyint(1)          | NO  |    | 0                  |                |
 +
| banned            | tinyint(1)          | NO  |    | 0                  |                |
 +
| email              | char(64)            | NO  |    |                    |                |
 +
| joindate          | datetime            | NO  |    | 0000-00-00 00:00:00 |                |
 +
| lastlogin          | timestamp          | YES  |    | NULL                |                |
 +
| active            | tinyint(1)          | YES  |    | NULL                |                |
 +
| loggedin          | int(1)              | NO  |    | 0                  |                |
 +
| authenticated      | tinyint(1)          | NO  |    | 0                  |                |
 +
| characters_allowed | tinyint(3) unsigned | NO  |    | 2                  |                |
 
|}
 
|}
 
|}
 
|}

Revision as of 12:02, 5 June 2007

Database Table - Accounts

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
account_id bigint(20) Symbol OK.png Symbol OK.png NO Primary Null Account ID
username char(32) NO Unique
char(32) | NO | | | | bigint(20) unsigned | NO | | 0 | | tinyint(1) | NO | | 0 | | tinyint(1) | NO | | 0 | | char(64) | NO | | | | datetime | NO | | 0000-00-00 00:00:00 | | timestamp | YES | | NULL | | tinyint(1) | YES | | NULL | | int(1) | NO | | 0 | | tinyint(1) | NO | | 0 | | tinyint(3) unsigned | NO | | 2 | |

|}

Table Create Script


Table Describe

mysql> describe account;
+--------------------+---------------------+------+-----+---------------------+----------------+
| Field              | Type                | Null | Key | Default             | Extra          |
+--------------------+---------------------+------+-----+---------------------+----------------+
| account_id         | bigint(20) unsigned | NO   | PRI | NULL                | auto_increment | 
| username           | char(32)            | NO   | UNI |                     |                | 
| password           | char(32)            | NO   |     |                     |                | 
| station_id         | bigint(20) unsigned | NO   |     | 0                   |                | 
| csr                | tinyint(1)          | NO   |     | 0                   |                | 
| banned             | tinyint(1)          | NO   |     | 0                   |                | 
| email              | char(64)            | NO   |     |                     |                | 
| joindate           | datetime            | NO   |     | 0000-00-00 00:00:00 |                | 
| lastlogin          | timestamp           | YES  |     | NULL                |                | 
| active             | tinyint(1)          | YES  |     | NULL                |                | 
| loggedin           | int(1)              | NO   |     | 0                   |                | 
| authenticated      | tinyint(1)          | NO   |     | 0                   |                | 
| characters_allowed | tinyint(3) unsigned | NO   |     | 2                   |                | 
+--------------------+---------------------+------+-----+---------------------+----------------+
13 rows in set (0.00 sec)