Difference between revisions of "Database Table: clientusage"

From Dreamwidth Notes
Jump to: navigation, search
m (Robot: Changing Category:Database Tables)
m
Line 1: Line 1:
This table is populated at login.
+
{{#set:name=clientusage|Table type=global}}
 
+
[[Description::This table is populated at login.]]
 
+
 
= Definition =
 
= Definition =
 
 
<source lang="sql">
 
<source lang="sql">
 
CREATE TABLE clientusage (
 
CREATE TABLE clientusage (
Line 13: Line 11:
 
)
 
)
 
</source>
 
</source>
 
+
{{Database Table Footer}}
= Relationships =
+
 
+
Foreign key userid to [[Database Table: user|user]].userid
+
 
+
Foreign key clientid to [[Database Table: clients|clients]].clientid
+
 
+
= Location =
+
 
+
[[Global database]]
+
 
+
[[Category:Database Tables Needing Conversion|clientusage]]
+

Revision as of 00:37, 5 October 2009

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