Difference between revisions of "Database Table: birthdays"

From Dreamwidth Notes
Jump to: navigation, search
m
Line 1: Line 1:
 
{{#set:name=birthdays|table type=global}}
 
{{#set:name=birthdays|table type=global}}
{{#set_internal:object_to_page_property
 
|property1=value1
 
|property2=value2
 
}}
 
 
[[Description::This is a table on the clustered database that stores information about upcoming birthdays.]] Note that actual birthdates are stored in {{DBField|user|bdate}}.
 
[[Description::This is a table on the clustered database that stores information about upcoming birthdays.]] Note that actual birthdates are stored in {{DBField|user|bdate}}.
 
= Definition =
 
= Definition =

Revision as of 01:14, 6 October 2009

This is a table on the clustered database that stores information about upcoming birthdays. Note that actual birthdates are stored in user.bdate.

Definition

CREATE TABLE birthdays (
  userid INT UNSIGNED NOT NULL,
  nextbirthday INT UNSIGNED,
  PRIMARY KEY (userid),
  KEY (nextbirthday)
)

Relationships

Outgoing

  • Foreign key: userid to user.userid