Difference between revisions of "Database Table: birthdays"

From Dreamwidth Notes
Jump to: navigation, search
(Robot: Updating: Format)
m (Create page for new table birthdays)
Line 1: Line 1:
{{Database Table|name=birthdays|table type=clustered|repo=dw-free}}
+
{{Database Table|name=birthdays|table type=clustered|need desc=1}}
[[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 =
 
<source lang="sql">
 
<source lang="sql">

Revision as of 11:40, 7 September 2010

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

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