Difference between revisions of "Database Table: interests"

From Dreamwidth Notes
Jump to: navigation, search
m (Robot: Updating page description status.)
(Robot: Updating: Format, definition)
Line 1: Line 1:
 
{{Database Table|name=interests|table type=global}}
 
{{Database Table|name=interests|table type=global}}
 
[[Description::This table stores information about interests.]] For associations to users, see [[Database Table: userinterests|userinterests]]
 
[[Description::This table stores information about interests.]] For associations to users, see [[Database Table: userinterests|userinterests]]
 
 
 
= Definition =
 
= Definition =
 
 
<source lang="sql">
 
<source lang="sql">
 
CREATE TABLE interests (
 
CREATE TABLE interests (
  intid int(10) unsigned NOT NULL auto_increment,
+
    intid int(10) unsigned NOT NULL,
  interest varchar(255) NOT NULL default '',
+
    intcount mediumint(8) unsigned default NULL,
  intcount mediumint(8) unsigned default NULL,
+
 
  PRIMARY KEY  (intid),
+
    PRIMARY KEY  (intid)
  UNIQUE interest (interest)
+
 
)
 
)
 
</source>
 
</source>
 
{{Database Table Footer}}
 
{{Database Table Footer}}

Revision as of 07:08, 28 January 2010

"{{{repo}}}" is not in the list of possible values (dw-free, dw-nonfree) for this property. This is a global table. This table stores information about interests. For associations to users, see userinterests

Definition

CREATE TABLE interests (
    intid INT(10) UNSIGNED NOT NULL,
    intcount mediumint(8) UNSIGNED DEFAULT NULL,
 
    PRIMARY KEY  (intid)
)

Relationships

Incoming