Difference between revisions of "Database Table: support"

From Dreamwidth Notes
Jump to: navigation, search
(Robot: Updating: Format)
m (Robot: Updating: Format, definition)
 
Line 14: Line 14:
 
     timecreate int(10) unsigned default NULL,
 
     timecreate int(10) unsigned default NULL,
 
     timetouched int(10) unsigned default NULL,
 
     timetouched int(10) unsigned default NULL,
 +
    timemodified int(10) unsigned default NULL,
 
     timeclosed int(10) unsigned default NULL,
 
     timeclosed int(10) unsigned default NULL,
  

Latest revision as of 15:38, 5 February 2013

This is a global table.

Definition

CREATE TABLE support (
    spid INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
    reqtype enum('user','email') DEFAULT NULL,
    requserid INT(10) UNSIGNED NOT NULL DEFAULT '0',
    reqname VARCHAR(50) DEFAULT NULL,
    reqemail VARCHAR(70) DEFAULT NULL,
    state enum('open','closed') DEFAULT NULL,
    authcode VARCHAR(15) NOT NULL DEFAULT '',
    spcatid INT(10) UNSIGNED NOT NULL DEFAULT '0',
    subject VARCHAR(80) DEFAULT NULL,
    timecreate INT(10) UNSIGNED DEFAULT NULL,
    timetouched INT(10) UNSIGNED DEFAULT NULL,
    timemodified INT(10) UNSIGNED DEFAULT NULL,
    timeclosed INT(10) UNSIGNED DEFAULT NULL,
 
    PRIMARY KEY  (spid),
    INDEX (state),
    INDEX (requserid),
    INDEX (reqemail)
)

Relationships