Difference between revisions of "Database Table: usermsg"

From Dreamwidth Notes
Jump to: navigation, search
(Created page with 'usermsg =Definition= <source lang="sql"> CREATE TABLE usermsg ( journalid INT UNSIGNED NOT NULL, msgid INT UNSIGNED NOT NULL, type ...')
 
Line 1: Line 1:
[[Category: Database Table|usermsg]]
+
= Definition =
=Definition=
+
 
 
<source lang="sql">
 
<source lang="sql">
 
CREATE TABLE usermsg (
 
CREATE TABLE usermsg (
Line 16: Line 16:
 
</source>
 
</source>
  
=Relationships=
+
= Relationships =
 +
 
 +
= Location =
  
=Location=
 
 
[[Clustered database]]
 
[[Clustered database]]
 +
 +
[[Category: Database Tables|usermsg]]

Revision as of 10:33, 4 April 2009

Definition

CREATE TABLE usermsg (
  journalid    INT UNSIGNED NOT NULL,
  msgid        INT UNSIGNED NOT NULL,
  TYPE         ENUM('in','out') NOT NULL,
  parent_msgid INT UNSIGNED,
  otherid      INT UNSIGNED NOT NULL,
  timesent     INT UNSIGNED,
  state        CHAR(1) DEFAULT 'A',
  PRIMARY KEY  (journalid,msgid),
  INDEX (journalid,TYPE,otherid),
  INDEX (journalid,timesent)
)

Relationships

Location

Clustered database