Difference between revisions of "Database Table: clustermove"

From Dreamwidth Notes
Jump to: navigation, search
m (Robot: Updating page description status.)
(Robot: Updating: Format, definition)
Line 1: Line 1:
 
{{Database Table|name=clustermove|table type=global}}
 
{{Database Table|name=clustermove|table type=global}}
 
[[Description::This table tracks history when users are moved between clusters.]]
 
[[Description::This table tracks history when users are moved between clusters.]]
 
 
= Definition =
 
= Definition =
 
 
<source lang="sql">
 
<source lang="sql">
 
CREATE TABLE clustermove (
 
CREATE TABLE clustermove (
  cmid      INT UNSIGNED NOT NULL AUTO_INCREMENT,
+
    cmid      INT UNSIGNED NOT NULL AUTO_INCREMENT,
  PRIMARY KEY (cmid),
+
    PRIMARY KEY (cmid),
  userid    INT UNSIGNED NOT NULL,
+
    userid    INT UNSIGNED NOT NULL,
  KEY (userid),
+
    KEY (userid),
  sclust    TINYINT UNSIGNED NOT NULL,
+
    sclust    TINYINT UNSIGNED NOT NULL,
  dclust    TINYINT UNSIGNED NOT NULL,
+
    dclust    TINYINT UNSIGNED NOT NULL,
  timestart INT UNSIGNED,
+
    timestart INT UNSIGNED,
  timedone  INT UNSIGNED,
+
    timedone  INT UNSIGNED,
  sdeleted  ENUM('1','0')
+
    sdeleted  ENUM('1','0')
 
)
 
)
 
</source>
 
</source>
 
{{Database Table Footer}}
 
{{Database Table Footer}}

Revision as of 07:08, 28 January 2010

"{{{repo}}}" is not in the list of possible values (dw-free, dw-nonfree) for this property. This is a global table. This table tracks history when users are moved between clusters.

Definition

CREATE TABLE clustermove (
    cmid      INT UNSIGNED NOT NULL AUTO_INCREMENT,
    PRIMARY KEY (cmid),
    userid    INT UNSIGNED NOT NULL,
    KEY (userid),
    sclust    TINYINT UNSIGNED NOT NULL,
    dclust    TINYINT UNSIGNED NOT NULL,
    timestart INT UNSIGNED,
    timedone  INT UNSIGNED,
    sdeleted  ENUM('1','0')
)

Relationships

Outgoing

  • Foreign key: userid to user.userid