Database Table: community

From Dreamwidth Notes
Revision as of 15:55, 22 July 2010 by Exor674Bot (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This is a global table. This stores information about communities. UserID points to the user record for the community itself, and ownerid points the user who owns the community.

Definition

CREATE TABLE community (
    userid INT(10) UNSIGNED NOT NULL DEFAULT '0',
    ownerid INT(10) UNSIGNED NOT NULL DEFAULT '0',
    membership enum('open','closed') NOT NULL DEFAULT 'open',
    postlevel enum('members','select','screened') DEFAULT NULL,
 
    PRIMARY KEY  (userid)
)

Relationships

Outgoing

  • Foreign key: ownerid to user.userid
  • Foreign key: userid to user.userid