Difference between revisions of "Database Table: ml items"
From Dreamwidth Notes
Exor674Bot (Talk | contribs) m (Robot: Converting database table to use database table header template.) |
Exor674Bot (Talk | contribs) m (Robot: Updating: Format, definition) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | {{Database Table|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, |
− | + | 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 | ||
</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