Difference between revisions of "Database Table: ml items"

From Dreamwidth Notes
Jump to: navigation, search
m (Robot: Converting database table to use semantic mediawiki form.)
m (Robot: Updating: Format, definition)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#set:name=ml_items|table type=global}}
+
{{Database Table|name=ml_items|table type=global|need desc=1|repo=dw-free}}
 
= Definition =
 
= Definition =
 
 
<source lang="sql">
 
<source lang="sql">
CREATE TABLE ml_items
+
CREATE TABLE ml_items (
(
+
    dmid    TINYINT UNSIGNED NOT NULL,
  dmid    TINYINT UNSIGNED NOT NULL,
+
    itid    MEDIUMINT UNSIGNED AUTO_INCREMENT NOT NULL,
  itid    MEDIUMINT UNSIGNED AUTO_INCREMENT NOT NULL,
+
    PRIMARY KEY (dmid, itid),
  PRIMARY KEY (dmid, itid),
+
    itcode  VARCHAR(80) NOT NULL,
  itcode  VARCHAR(80) NOT NULL,
+
    UNIQUE  (dmid, itcode),
  UNIQUE  (dmid, itcode),
+
    proofed TINYINT NOT NULL DEFAULT 0, -- boolean, really
  notes  MEDIUMTEXT
+
    INDEX  (proofed),
) TYPE=MYISAM
+
    updated TINYINT NOT NULL DEFAULT 0, -- boolean, really
 +
    INDEX  (updated),
 +
    visible TINYINT NOT NULL DEFAULT 0, -- also boolean
 +
    notes  MEDIUMTEXT
 +
) ENGINE=MYISAM
 
</source>
 
</source>
 
 
{{Database Table Footer}}
 
{{Database Table Footer}}

Latest revision as of 23:07, 28 November 2012

This is a global table.

Definition

CREATE TABLE ml_items (
    dmid    TINYINT UNSIGNED NOT NULL,
    itid    MEDIUMINT UNSIGNED AUTO_INCREMENT NOT NULL,
    PRIMARY KEY (dmid, itid),
    itcode  VARCHAR(80) NOT NULL,
    UNIQUE  (dmid, itcode),
    proofed TINYINT NOT NULL DEFAULT 0, -- boolean, really
    INDEX   (proofed),
    updated TINYINT NOT NULL DEFAULT 0, -- boolean, really
    INDEX   (updated),
    visible TINYINT NOT NULL DEFAULT 0, -- also boolean
    notes   MEDIUMTEXT
) ENGINE=MYISAM

Relationships