Difference between revisions of "Database Table: clientusage"

From Dreamwidth Notes
Jump to: navigation, search
m
m
Line 1: Line 1:
{{#set:name=clientusage|Table type=global}}
+
{{Database Table|name=clientusage|Table type=global}}
 
[[Description::This table is populated at login.]]
 
[[Description::This table is populated at login.]]
 
= Definition =
 
= Definition =

Revision as of 12:29, 27 January 2010

  • "{{{repo}}}" is not in the list of possible values (dw-free, dw-nonfree) for this property.
  • "{{{table type}}}" is not in the list of possible values (global, clustered, other) for this property.

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