InstaGov/schema/answer

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
< InstaGov‎ | schema
Revision as of 12:51, 20 July 2010 by Woozle (talk | contribs) (Created page with '==About== * '''Rules''': Any question may have zero or more answers. New answers can be added at any time. * '''Notes''': "WhenExpires" field: same applies as in "{{instagov|sche…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

About

  • Rules: Any question may have zero or more answers. New answers can be added at any time.
  • Notes: "WhenExpires" field: same applies as in "question" table.

SQL

<mysql>CREATE TABLE `answer` (

  `ID` INT  NOT NULL AUTO_INCREMENT,
  `ID_Question` INT NO NULL COMMENT "question.ID for which this is an answer",
  `Page` varchar(127) COMMENT "wiki page describing answer",
  `WhenCreated` DATETIME NOT NULL COMMENT "when this answer was entered",
  `Pos_Text` VARCHAR(63) DEFAULT NULL COMMENT "optional: text to show at the 'yes' end of the scale (overrides question default)",
  `Neg_Text` VARCHAR(63) DEFAULT NULL COMMENT "optional: text to show at the 'no' end of the scale (overrides question default)",
  PRIMARY KEY(`ID`)
)
ENGINE = MYISAM;</mysql>