Difference between revisions of "Database Table: acctcode promo"

From Dreamwidth Notes
Jump to: navigation, search
m (Created page with '{{Database Table|name=acctcode_promo|table type=global}} Category:Database Tables Needing Description = Definition = <source lang="sql"> CREATE TABLE acctcode_promo ( co…')
(No difference)

Revision as of 12:27, 27 January 2010

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

Definition

CREATE TABLE acctcode_promo (
    code VARCHAR(20) NOT NULL,
    max_count INT(10) UNSIGNED NOT NULL DEFAULT 0,
    current_count INT(10) UNSIGNED NOT NULL DEFAULT 0,
    active enum('1','0') NOT NULL DEFAULT 1,
    suggest_journalid INT UNSIGNED,
 
    PRIMARY KEY ( code )
)

Relationships

Outgoing

  • Foreign key: suggest_journalid to user.userid