Difference between revisions of "Database Table: syndicated"

From Dreamwidth Notes
Jump to: navigation, search
m (Robot: Converting database table to use semantic mediawiki form.)
m (Robot: Updating: Format, definition)
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#set:name=syndicated|clustered=false}}
+
{{Database Table|name=syndicated|table type=global|need desc=1|repo=dw-free}}
 
= Definition =
 
= Definition =
 +
<source lang="sql">
 +
CREATE TABLE syndicated (
 +
    userid  INT UNSIGNED NOT NULL,
 +
    synurl  VARCHAR(255),
 +
    checknext  DATETIME NOT NULL,
 +
    lastcheck  DATETIME,
 +
    lastmod    INT UNSIGNED, # unix time
 +
    etag      VARCHAR(80),
 +
    fuzzy_token  VARCHAR(255),
  
<source lang="sql">
+
    PRIMARY KEY (userid),
CREATE TABLE syndicated
+
    UNIQUE (synurl),
(
+
    INDEX (checknext),
  userid  INT UNSIGNED NOT NULL,
+
    INDEX (fuzzy_token)
  synurl  VARCHAR(255),
+
  checknext  DATETIME NOT NULL,
+
  lastcheck  DATETIME,
+
  lastmod    INT UNSIGNED, # unix time
+
  etag      VARCHAR(80),
+
  PRIMARY KEY (userid),
+
  UNIQUE (synurl),
+
  INDEX (checknext)
+
 
)
 
)
 
</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 syndicated (
    userid  INT UNSIGNED NOT NULL,
    synurl  VARCHAR(255),
    checknext  DATETIME NOT NULL,
    lastcheck  DATETIME,
    lastmod    INT UNSIGNED, # unix TIME
    etag       VARCHAR(80),
    fuzzy_token  VARCHAR(255),
 
    PRIMARY KEY (userid),
    UNIQUE (synurl),
    INDEX (checknext),
    INDEX (fuzzy_token)
)

Relationships