Database Table: clientusage

From Dreamwidth Notes
Revision as of 15:59, 22 July 2010 by Exor674Bot (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This is a global table. This table is populated at login.

Definition

CREATE TABLE clientusage (
    userid INT(10) UNSIGNED NOT NULL DEFAULT '0',
    clientid SMALLINT(5) UNSIGNED NOT NULL DEFAULT '0',
    lastlogin datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
 
    PRIMARY KEY  (clientid,userid),
    UNIQUE KEY userid (userid,clientid)
)

Relationships

Outgoing

  • Foreign key: clientid to clients.clientid
  • Foreign key: userid to user.userid