Difference between revisions of "Database Table: priv list"

From Dreamwidth Notes
Jump to: navigation, search
m (Robot: Converting database table to use database table header template.)
(Robot: Updating: Format)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Database Table|name=priv_list|table type=global}}
+
{{Database Table|name=priv_list|table type=global|need desc=1|repo=dw-free}}
 
= Definition =
 
= Definition =
 
 
<source lang="sql">
 
<source lang="sql">
 
CREATE TABLE priv_list (
 
CREATE TABLE priv_list (
  prlid smallint(5) unsigned NOT NULL auto_increment,
+
    prlid smallint(5) unsigned NOT NULL auto_increment,
  privcode varchar(20) NOT NULL default '',
+
    privcode varchar(20) NOT NULL default '',
  privname varchar(40) default NULL,
+
    privname varchar(40) default NULL,
  des varchar(255) default NULL,
+
    des varchar(255) default NULL,
  is_public ENUM('1', '0') DEFAULT '1' NOT NULL,
+
    is_public ENUM('1', '0') DEFAULT '1' NOT NULL,
  PRIMARY KEY  (prlid),
+
 
  UNIQUE KEY privcode (privcode)
+
    PRIMARY KEY  (prlid),
 +
    UNIQUE KEY privcode (privcode)
 
)
 
)
 
</source>
 
</source>
 
 
{{Database Table Footer}}
 
{{Database Table Footer}}

Latest revision as of 15:58, 22 July 2010

This is a global table.

Definition

CREATE TABLE priv_list (
    prlid SMALLINT(5) UNSIGNED NOT NULL AUTO_INCREMENT,
    privcode VARCHAR(20) NOT NULL DEFAULT '',
    privname VARCHAR(40) DEFAULT NULL,
    des VARCHAR(255) DEFAULT NULL,
    is_public ENUM('1', '0') DEFAULT '1' NOT NULL,
 
    PRIMARY KEY  (prlid),
    UNIQUE KEY privcode (privcode)
)

Relationships