Difference between revisions of "Database Table: user"
From Dreamwidth Notes
m |
|||
Line 1: | Line 1: | ||
− | {{#set:name=user|table type=global}} | + | {{#set:name=user|table type=global}}{{#set_internal:Key relationship |
+ | |Key type=foo | ||
+ | }} | ||
[[description::This table stores some of the permanent, account-specific data for personal accounts, communities and feeds.]] | [[description::This table stores some of the permanent, account-specific data for personal accounts, communities and feeds.]] | ||
Revision as of 01:17, 6 October 2009
This table stores some of the permanent, account-specific data for personal accounts, communities and feeds.
See Journal types for possible values of journaltype.
Definition
CREATE TABLE USER ( userid INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, USER CHAR(25) DEFAULT NULL, caps SMALLINT UNSIGNED NOT NULL DEFAULT 0, email CHAR(50) DEFAULT NULL, password CHAR(30) DEFAULT NULL, STATUS CHAR(1) NOT NULL DEFAULT 'N', statusvis CHAR(1) NOT NULL DEFAULT 'V', statusvisdate datetime DEFAULT NULL, name CHAR(50) DEFAULT NULL, bdate DATE DEFAULT NULL, themeid INT(11) NOT NULL DEFAULT '1', moodthemeid INT(10) UNSIGNED NOT NULL DEFAULT '1', opt_forcemoodtheme enum('Y','N') NOT NULL DEFAULT 'N', allow_infoshow CHAR(1) NOT NULL DEFAULT 'Y', allow_contactshow CHAR(1) NOT NULL DEFAULT 'Y', allow_getljnews CHAR(1) NOT NULL DEFAULT 'N', opt_showtalklinks CHAR(1) NOT NULL DEFAULT 'Y', opt_whocanreply enum('all','reg','friends') NOT NULL DEFAULT 'all', opt_gettalkemail CHAR(1) NOT NULL DEFAULT 'Y', opt_htmlemail enum('Y','N') NOT NULL DEFAULT 'Y', opt_mangleemail CHAR(1) NOT NULL DEFAULT 'N', useoverrides CHAR(1) NOT NULL DEFAULT 'N', defaultpicid INT(10) UNSIGNED DEFAULT NULL, has_bio enum('Y','N') NOT NULL DEFAULT 'N', txtmsg_status enum('none','on','off') NOT NULL DEFAULT 'none', is_system enum('Y','N') NOT NULL DEFAULT 'N', journaltype CHAR(1) NOT NULL DEFAULT 'P', lang CHAR(2) NOT NULL DEFAULT 'EN', PRIMARY KEY:(userid), UNIQUE KEY USER (USER), KEY (email), KEY (STATUS), KEY (statusvis) ) PACK_KEYS=1
Relationships
Outgoing
- Foreign key: moodthemeid to moodthemes.moodthemeid
- : themeid to themelist.themeid
Incoming
- Foreign key: userid from acctcode.userid
- Foreign key: userid from acctcode_promo.suggest_journalid
- Foreign key: userid from acctcode_request.userid
- Foreign key: userid from active_user.userid
- Foreign key: userid from authactions.userid
- Foreign key: userid from backupdirty.userid
- Foreign key: userid from birthdays.userid
- Foreign key: userid from captchas.userid
- Foreign key: userid from clientusage.userid
- Foreign key: userid from clustermove.userid
- Foreign key: userid from clustermove_inprogress.userid
- Foreign key: userid from clustertrack2.userid
- Foreign key: userid from commenturls.journalid
- Foreign key: userid from commenturls.posterid
- Foreign key: userid from comminterests.userid
- Foreign key: userid from community.ownerid
- Foreign key: userid from community.userid
- Foreign key: userid from cprod.userid
- Foreign key: userid from identitymap.userid
- Foreign key: userid from infohistory.userid
- Foreign key: userid from log2.journalid
- Foreign key: userid from log2.posterid
- Foreign key: userid from logkwsum.journalid
- Foreign key: userid from logprop2.journalid
- Foreign key: userid from logsec2.journalid
- Foreign key: userid from logtagsrecent.journalid
- Foreign key: userid from logtext2.journalid
- Foreign key: userid from password.userid
- Foreign key: userid from reluser.targetid
- Foreign key: userid from reluser.userid
- Foreign key: userid from reluser2.targetid
- Foreign key: userid from reluser2.userid
- Foreign key: userid from userinterests.userid
- Foreign key: userid from userproplite2.userid