Difference between revisions of "Database Table: talk2"

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=talk2|table type=clustered}}
+
{{Database Table|name=talk2|table type=clustered|need desc=1}}
[[Category:Database Tables Needing Description]]
+
 
= Definition =
 
= Definition =
 
 
<source lang="sql">
 
<source lang="sql">
 
CREATE TABLE talk2 (
 
CREATE TABLE talk2 (
  journalid INT UNSIGNED NOT NULL,
+
    journalid INT UNSIGNED NOT NULL,
  jtalkid MEDIUMINT UNSIGNED NOT NULL,
+
    jtalkid MEDIUMINT UNSIGNED NOT NULL,
  nodetype CHAR(1) NOT NULL DEFAULT '',
+
    nodetype CHAR(1) NOT NULL DEFAULT '',
  nodeid INT UNSIGNED NOT NULL default '0',
+
    nodeid INT UNSIGNED NOT NULL default '0',
  parenttalkid MEDIUMINT UNSIGNED NOT NULL,
+
    parenttalkid MEDIUMINT UNSIGNED NOT NULL,
  posterid INT UNSIGNED NOT NULL default '0',
+
    posterid INT UNSIGNED NOT NULL default '0',
  datepost DATETIME NOT NULL default '0000-00-00 00:00:00',
+
    datepost DATETIME NOT NULL default '0000-00-00 00:00:00',
  state CHAR(1) default 'A',
+
    state CHAR(1) default 'A',
  PRIMARY KEY  (journalid,jtalkid),
+
 
  KEY (nodetype,journalid,nodeid),
+
    PRIMARY KEY  (journalid,jtalkid),
  KEY (journalid,state,nodetype),
+
    KEY (nodetype,journalid,nodeid),
  KEY (posterid)
+
    KEY (journalid,state,nodetype),
 +
    KEY (posterid)
 
)
 
)
 
</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 clustered table.

Definition

CREATE TABLE talk2 (
    journalid INT UNSIGNED NOT NULL,
    jtalkid MEDIUMINT UNSIGNED NOT NULL,
    nodetype CHAR(1) NOT NULL DEFAULT '',
    nodeid INT UNSIGNED NOT NULL DEFAULT '0',
    parenttalkid MEDIUMINT UNSIGNED NOT NULL,
    posterid INT UNSIGNED NOT NULL DEFAULT '0',
    datepost DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
    state CHAR(1) DEFAULT 'A',
 
    PRIMARY KEY  (journalid,jtalkid),
    KEY (nodetype,journalid,nodeid),
    KEY (journalid,state,nodetype),
    KEY (posterid)
)

Relationships