Difference between revisions of "Database Table: ml items"

From Dreamwidth Notes
Jump to: navigation, search
m (Robot: This table needs a description.)
(Robot: Updating: Format, needs desc, definition)
Line 1: Line 1:
{{Database Table|name=ml_items|table type=global}}
+
{{Database Table|name=ml_items|table type=global|need desc=1}}
[[Category:Database Tables Needing Description]]
+
 
= 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),
 +
    updated TINYINT NOT NULL DEFAULT 0, -- boolean, really
 +
    INDEX  (updated),
 +
    visible TINYINT NOT NULL DEFAULT 0, -- also boolean
 +
    notes  MEDIUMTEXT
 
) TYPE=MYISAM
 
) TYPE=MYISAM
 
</source>
 
</source>
 
 
{{Database Table Footer}}
 
{{Database Table Footer}}

Revision as of 07:06, 28 January 2010

"{{{repo}}}" is not in the list of possible values (dw-free, dw-nonfree) for this property. 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
) TYPE=MYISAM

Relationships