Difference between revisions of "Database Table: comminterests"

From Dreamwidth Notes
Jump to: navigation, search
(Created page with 'This table links community-type users to interests. comminterests =Definition= <source lang="sql"> CREATE TABLE comminterests ( userid int(10) uns...')
 
Line 1: Line 1:
 
This table links community-type users to interests.
 
This table links community-type users to interests.
  
[[Category: Database Table|comminterests]]
+
= Definition =
=Definition=
+
 
 
<source lang="sql">
 
<source lang="sql">
 
CREATE TABLE comminterests (
 
CREATE TABLE comminterests (
Line 12: Line 12:
 
</source>
 
</source>
  
=Relationships=
+
= Relationships =
 +
 
 
Foreign key userid to [[Database Table: user|user]].userid
 
Foreign key userid to [[Database Table: user|user]].userid
  
 
Foreign key intid to [[Database Table: userinterests| userinterests]].intid
 
Foreign key intid to [[Database Table: userinterests| userinterests]].intid
  
=Location=
+
= Location =
 +
 
 
[[Global database]]
 
[[Global database]]
 +
 +
[[Category: Database Tables|comminterests]]

Revision as of 22:25, 30 March 2009

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

Foreign key userid to user.userid

Foreign key intid to userinterests.intid

Location

Global database