Difference between revisions of "Database Table: userpic"

From Dreamwidth Notes
Jump to: navigation, search
m (typo)
Line 2: Line 2:
  
 
[[Category: Obsolete Database Tables|userpic]]
 
[[Category: Obsolete Database Tables|userpic]]
 +
=Definition=
 +
<source lang="sql">
 +
CREATE TABLE userpic (
 +
  picid int(10) unsigned NOT NULL auto_increment,
 +
  userid int(10) unsigned NOT NULL default '0',
 +
  contenttype char(25) default NULL,
 +
  width smallint(6) NOT NULL default '0',
 +
  height smallint(6) NOT NULL default '0',
 +
  state char(1) NOT NULL default 'N',
 +
  picdate datetime default NULL,
 +
  md5base64 char(22) NOT NULL default '',
 +
  PRIMARY KEY  (picid),
 +
  KEY (userid),
 +
  KEY (state)
 +
)
 +
</source>
 +
 +
=Relationships=
 +
 +
=Location=
 +
[[Global database]]

Revision as of 23:50, 22 March 2009

Global database; deprecated in favor of userpic2 (clustered).

Definition

CREATE TABLE userpic (
  picid INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  userid INT(10) UNSIGNED NOT NULL DEFAULT '0',
  contenttype CHAR(25) DEFAULT NULL,
  width SMALLINT(6) NOT NULL DEFAULT '0',
  height SMALLINT(6) NOT NULL DEFAULT '0',
  state CHAR(1) NOT NULL DEFAULT 'N',
  picdate datetime DEFAULT NULL,
  md5base64 CHAR(22) NOT NULL DEFAULT '',
  PRIMARY KEY  (picid),
  KEY (userid),
  KEY (state)
)

Relationships

Location

Global database