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

From Dreamwidth Notes
Jump to: navigation, search
(Created page with '{{Database Table|name=users_for_paid_accounts|table type=global}} Category:Database Tables Needing Description = Definition = <source lang="sql"> CREATE TABLE users_for_paid_…')
 
(Robot: Updating: Format)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Database Table|name=users_for_paid_accounts|table type=global}}
+
{{Database Table|name=users_for_paid_accounts|table type=global|need desc=1|repo=dw-free}}
[[Category:Database Tables Needing Description]]
+
 
= Definition =
 
= Definition =
 
<source lang="sql">
 
<source lang="sql">
Line 7: Line 6:
 
     time_inserted int unsigned not null default 0,
 
     time_inserted int unsigned not null default 0,
 
     points int(5) 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 ),
 
     PRIMARY KEY ( userid, time_inserted ),
     INDEX ( time_inserted )
+
     INDEX ( time_inserted ),
 +
    INDEX ( journaltype )
 
)
 
)
 
</source>
 
</source>
 
{{Database Table Footer}}
 
{{Database Table Footer}}

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