Difference between revisions of "Database Table: users for paid accounts"

From Dreamwidth Notes
Jump to: navigation, search
(Robot: Updating: Format, definition)
(Robot: Updating: Format)
 
Line 1: Line 1:
{{Database Table|name=users_for_paid_accounts|table type=global|need desc=1}}
+
{{Database Table|name=users_for_paid_accounts|table type=global|need desc=1|repo=dw-free}}
 
= Definition =
 
= Definition =
 
<source lang="sql">
 
<source lang="sql">

Latest revision as of 15:57, 22 July 2010

This is a global table.

Definition

CREATE TABLE users_for_paid_accounts (
    userid INT UNSIGNED NOT NULL,
    time_inserted INT UNSIGNED NOT NULL DEFAULT 0,
    points INT(5) UNSIGNED NOT NULL DEFAULT 0,
    journaltype CHAR(1) NOT NULL DEFAULT 'P',
 
    PRIMARY KEY ( userid, time_inserted ),
    INDEX ( time_inserted ),
    INDEX ( journaltype )
)

Relationships