Difference between revisions of "Database Table: friendgroup2"

From Dreamwidth Notes
Jump to: navigation, search
(Created page with 'friendgroup =Definition= <source lang="sql"> CREATE TABLE friendgroup ( userid int(10) unsigned NOT NULL default '0', groupnum tinyint(3) unsigne...')
 
Line 1: Line 1:
[[Category: Database Table|friendgroup]]
+
[[Category: Database Table|friendgroup2]]
 
=Definition=
 
=Definition=
 
<source lang="sql">
 
<source lang="sql">
CREATE TABLE friendgroup (
+
CREATE TABLE friendgroup2 (
  userid int(10) unsigned NOT NULL default '0',
+
    userid     INT(10) UNSIGNED NOT NULL DEFAULT '0',
  groupnum tinyint(3) unsigned NOT NULL default '0',
+
    groupnum   TINYINT(3) UNSIGNED NOT NULL DEFAULT '0',
   groupname varchar(30) NOT NULL default '',
+
    groupname   VARCHAR(90) NOT NULL DEFAULT '',
  sortorder tinyint(3) unsigned NOT NULL default '50',
+
    sortorder   TINYINT(3) UNSIGNED NOT NULL DEFAULT '50',
  is_public enum('0','1') NOT NULL default '0',
+
    is_public   ENUM('0','1') NOT NULL DEFAULT '0',
  PRIMARY KEY (userid,groupnum)
+
    PRIMARY KEY (userid, groupnum)
 
)
 
)
 
</source>
 
</source>
Line 15: Line 15:
  
 
=Location=
 
=Location=
[[Global database]]
+
[[Clustered database]]

Revision as of 20:27, 21 March 2009

Definition

CREATE TABLE friendgroup2 (
    userid      INT(10) UNSIGNED NOT NULL DEFAULT '0',
    groupnum    TINYINT(3) UNSIGNED NOT NULL DEFAULT '0',
    groupname   VARCHAR(90) NOT NULL DEFAULT '',
    sortorder   TINYINT(3) UNSIGNED NOT NULL DEFAULT '50',
    is_public   ENUM('0','1') NOT NULL DEFAULT '0',
    PRIMARY KEY (userid, groupnum)
)

Relationships

Location

Clustered database