Difference between revisions of "Database Table: comminterests"

From Dreamwidth Notes
Jump to: navigation, search
m (Robot: This table needs a description.)
(Robot: Updating: Format)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Database Table|name=comminterests|table type=global}}
+
{{Database Table|name=comminterests|table type=global|repo=dw-free}}
 
[[Description::This table links community-type users to interests.]]
 
[[Description::This table links community-type users to interests.]]
[[Category:Database Tables Needing Description]]
 
 
= Definition =
 
= Definition =
 
 
<source lang="sql">
 
<source lang="sql">
 
CREATE TABLE comminterests (
 
CREATE TABLE comminterests (
  userid int(10) unsigned NOT NULL default '0',
+
    userid int(10) unsigned NOT NULL default '0',
  intid int(10) unsigned NOT NULL default '0',
+
    intid int(10) unsigned NOT NULL default '0',
  PRIMARY KEY  (userid,intid),
+
 
  KEY (intid)
+
    PRIMARY KEY  (userid,intid),
 +
    KEY (intid)
 
)
 
)
 
</source>
 
</source>
 
{{Database Table Footer}}
 
{{Database Table Footer}}

Latest revision as of 16:01, 22 July 2010

This is a global table. This table links community-type users to interests.

Definition

CREATE TABLE comminterests (
    userid INT(10) UNSIGNED NOT NULL DEFAULT '0',
    intid INT(10) UNSIGNED NOT NULL DEFAULT '0',
 
    PRIMARY KEY  (userid,intid),
    KEY (intid)
)

Relationships

Outgoing

  • Foreign key: intid to interests.intid
  • Foreign key: userid to user.userid