Database Table: logtagsrecent

From Dreamwidth Notes
Revision as of 00:23, 9 December 2010 by Xtina (Talk | contribs)

Jump to: navigation, search

This is a clustered table.

This table stores data for mapping tags. It's like logtags, except it's only for the most recent 100 tags-to-entry.

Definition

CREATE TABLE logtagsrecent (
    journalid INT UNSIGNED NOT NULL,
    jitemid   MEDIUMINT UNSIGNED NOT NULL,
    kwid      INT UNSIGNED NOT NULL,
 
    PRIMARY KEY (journalid, kwid, jitemid)
)

Relationships

Outgoing

  • Foreign key: jitemid to log2.jitemid
  • Foreign key: journalid to user.userid