Difference between revisions of "Database Table: s2layers"

From Dreamwidth Notes
Jump to: navigation, search
(Created page with 's2layers =Definition= <source lang="sql"> CREATE TABLE s2layers ( s2lid INT UNSIGNED NOT NULL AUTO_INCREMENT, PRIMARY KEY (s2lid), b2lid INT...')
 
(Robot: Updating: Format)
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Category: Database Table|s2layers]]
+
{{Database Table|name=s2layers|table type=global|need desc=1|repo=dw-free}}
=Definition=
+
= Definition =
 
<source lang="sql">
 
<source lang="sql">
CREATE TABLE s2layers
+
CREATE TABLE s2layers (
(
+
    s2lid INT UNSIGNED NOT NULL AUTO_INCREMENT,
  s2lid INT UNSIGNED NOT NULL AUTO_INCREMENT,
+
    PRIMARY KEY (s2lid),
  PRIMARY KEY (s2lid),
+
    b2lid INT UNSIGNED NOT NULL,
  b2lid INT UNSIGNED NOT NULL,
+
    userid INT UNSIGNED NOT NULL,
  userid INT UNSIGNED NOT NULL,
+
    type ENUM('core','i18nc','layout','theme','i18n','user') NOT NULL,
  type ENUM('core','i18nc','layout','theme','i18n','user') NOT NULL,
+
 
  INDEX (userid),
+
    INDEX (userid),
  INDEX (b2lid, type)
+
    INDEX (b2lid, type)
 
)
 
)
 
</source>
 
</source>
 
+
{{Database Table Footer}}
=Relationships=
+
 
+
=Location=
+
[[Global database]]
+

Latest revision as of 15:56, 22 July 2010

This is a global table.

Definition

CREATE TABLE s2layers (
    s2lid INT UNSIGNED NOT NULL AUTO_INCREMENT,
    PRIMARY KEY (s2lid),
    b2lid INT UNSIGNED NOT NULL,
    userid INT UNSIGNED NOT NULL,
    TYPE ENUM('core','i18nc','layout','theme','i18n','user') NOT NULL,
 
    INDEX (userid),
    INDEX (b2lid, TYPE)
)

Relationships