Difference between revisions of "Database Table: userproplite2"

From Dreamwidth Notes
Jump to: navigation, search
(Robot: Updating: Format)
 
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
This table is used to store multihomed userprops on the clustered database. It represents the same dataset as <tt>[[Database Table: userprop|userprop]]</tt>, but blank values are saved as empty strings in <tt>[[Database Table: userproplite2|userproplite2]]</tt>, and discarded from <tt>[[Database Table: userprop|userprop]]</tt>.
+
{{Database Table|name=userproplite2|table type=clustered|repo=dw-free}}
 
+
[[Description::This table is used to store multihomed userprops on the clustered database.]] It represents the same dataset as {{DBTable|userprop}}, but blank values are saved as empty strings in {{DBTable|userproplite2}}, and discarded from {{DBTable|userprop}}.
 
= Definition =
 
= Definition =
 +
<source lang="sql">
 +
CREATE TABLE userproplite2 (
 +
    userid int(10) unsigned NOT NULL default '0',
 +
    upropid smallint(5) unsigned NOT NULL default '0',
 +
    value varchar(255) default NULL,
  
<source lang="sql">
+
    PRIMARY KEY  (userid,upropid),
userid int(10) unsigned NOT NULL default '0',
+
    KEY (upropid)
upropid smallint(5) unsigned NOT NULL default '0',
+
)
value varchar(255) default NULL,
+
PRIMARY KEY  (userid,upropid),
+
KEY (upropid)
+
 
</source>
 
</source>
 
+
{{Database Table Footer}}
= Relationships =
+
 
+
* Foreign key <tt>upropid</tt> to <tt>[[Database Table: userproplist|userproplist]].upropid</tt>
+
* Foreign key <tt>userid</tt> to <tt>[[Database Table: user|user]].userid</tt>
+
 
+
= Location =
+
 
+
Clustered db
+
 
+
[[Category: Database Tables]]
+

Latest revision as of 16:01, 22 July 2010

This is a clustered table. This table is used to store multihomed userprops on the clustered database. It represents the same dataset as userprop, but blank values are saved as empty strings in userproplite2, and discarded from userprop.

Definition

CREATE TABLE userproplite2 (
    userid INT(10) UNSIGNED NOT NULL DEFAULT '0',
    upropid SMALLINT(5) UNSIGNED NOT NULL DEFAULT '0',
    VALUE VARCHAR(255) DEFAULT NULL,
 
    PRIMARY KEY  (userid,upropid),
    KEY (upropid)
)

Relationships

Outgoing

  • Foreign key: upropid to userproplist.upropid
  • Foreign key: userid to user.userid