Difference between revisions of "Database Table: faq"

From Dreamwidth Notes
Jump to: navigation, search
m (Robot: Converting database table to use semantic mediawiki form.)
(Robot: Updating: Format)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#set:name=faq|table type=global}}
+
{{Database Table|name=faq|table type=global|need desc=1|repo=dw-free}}
 
= Definition =
 
= Definition =
 
 
<source lang="sql">
 
<source lang="sql">
 
CREATE TABLE faq (
 
CREATE TABLE faq (
  faqid mediumint(8) unsigned NOT NULL auto_increment,
+
    faqid mediumint(8) unsigned NOT NULL auto_increment,
  question text,
+
    question text,
  answer text,
+
    answer text,
  sortorder int(11) default NULL,
+
    sortorder int(11) default NULL,
  faqcat varchar(20) default NULL,
+
    faqcat varchar(20) default NULL,
  lastmodtime datetime default NULL,
+
    lastmodtime datetime default NULL,
  lastmoduserid int(10) unsigned NOT NULL default '0',
+
    lastmoduserid int(10) unsigned NOT NULL default '0',
  PRIMARY KEY  (faqid)
+
 
 +
    PRIMARY KEY  (faqid)
 
)
 
)
 
</source>
 
</source>
 
 
{{Database Table Footer}}
 
{{Database Table Footer}}

Latest revision as of 15:59, 22 July 2010

This is a global table.

Definition

CREATE TABLE faq (
    faqid mediumint(8) UNSIGNED NOT NULL AUTO_INCREMENT,
    question text,
    answer text,
    sortorder INT(11) DEFAULT NULL,
    faqcat VARCHAR(20) DEFAULT NULL,
    lastmodtime datetime DEFAULT NULL,
    lastmoduserid INT(10) UNSIGNED NOT NULL DEFAULT '0',
 
    PRIMARY KEY  (faqid)
)

Relationships