DB:Auth:account: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{| align="right" | {| align="right" | ||
| __TOC__ | | __TOC__ | ||
|} | |} | ||
{{Back-to: | {{Back-to:Characters}} | ||
<big>'''The `account_data` table'''</big> | |||
Contains data about client account and settings. | |||
<big>'''Structure'''</big> | |||
{| border="1" | {| border="1" | ||
|'''Field''' | |||
|'''Type''' | |||
|'''Attributes''' | |||
|'''Key''' | |||
|'''Null''' | |||
|'''Default''' | |||
|'''Extra''' | |||
|'''Comment''' | |||
|- | |- | ||
|[[#account|account]] | |||
|int(10) | |||
|unsigned | |||
|PRI | |||
|NO | |||
|0 | |||
| | |||
| | |||
| [[# | |||
| int(10) | |||
| unsigned | |||
| PRI | |||
| NO | |||
| | |||
| | |||
| | |||
|- | |- | ||
| [[# | |[[#type|type]] | ||
| | |tinyint(3) | ||
| | |unsigned | ||
| | |PRI | ||
| NO | |NO | ||
| | |0 | ||
| | | | ||
| | | | ||
|- | |- | ||
| [[# | |[[#time|time]] | ||
| int(10) | |int(10) | ||
| unsigned | |unsigned | ||
| | | | ||
| NO | |NO | ||
| 0 | |0 | ||
| | | | ||
| | | | ||
|- | |- | ||
| [[# | |[[#data|data]] | ||
| | |blob | ||
|signed | |||
| | |||
|NO | |||
| | |||
| | |||
| | |||
| signed | |||
| | |||
| NO | |||
| | |||
| | |||
| | |||
|} | |} | ||
<big>'''Description of the fields'''</big> | |||
==== | ==== account ==== | ||
[[DB:Auth:account#id|Account.id]]. | |||
==== | ==== type ==== | ||
* 0 = Global-account config cache | |||
* 2 = Global-account bindings cache | |||
* 4 = Global-account macros cache | |||
==== | ==== time ==== | ||
Time of last modification in Unixtime | |||
==== | ==== data ==== | ||
No description can be written. You just must understand it's data. | |||
==== | ==== SQL Table Query ==== | ||
<pre>CREATE TABLE `account_data` ( | |||
`accountId` INT(10) UNSIGNED NOT NULL DEFAULT '0', | |||
`type` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0', | |||
`time` INT(10) UNSIGNED NOT NULL DEFAULT '0', | |||
`data` BLOB NOT NULL, | |||
PRIMARY KEY (`accountId`, `type`) | |||
) | |||
COLLATE='utf8_general_ci' | |||
ENGINE=InnoDB;</pre> | |||
[[Category: Characters database tables]] | |||
[[Category: |
Revision as of 21:35, 19 February 2013
Back to characters database list of tables.
The `account_data` table
Contains data about client account and settings.
Structure
Field | Type | Attributes | Key | Null | Default | Extra | Comment |
account | int(10) | unsigned | PRI | NO | 0 | ||
type | tinyint(3) | unsigned | PRI | NO | 0 | ||
time | int(10) | unsigned | NO | 0 | |||
data | blob | signed | NO |
Description of the fields
account
type
- 0 = Global-account config cache
- 2 = Global-account bindings cache
- 4 = Global-account macros cache
time
Time of last modification in Unixtime
data
No description can be written. You just must understand it's data.
SQL Table Query
CREATE TABLE `account_data` ( `accountId` INT(10) UNSIGNED NOT NULL DEFAULT '0', `type` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0', `time` INT(10) UNSIGNED NOT NULL DEFAULT '0', `data` BLOB NOT NULL, PRIMARY KEY (`accountId`, `type`) ) COLLATE='utf8_general_ci' ENGINE=InnoDB;