InstaGov/schema/rating

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 13:39, 20 July 2010 by Woozle (talk | contribs) (Created page with '==About== * '''Concepts''': see {{instagov|concepts|proxy}} ==SQL== Records each user's current rating of each proposed solution. <section begin=sql /><mysql>CREATE TABLE `rating…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

About

SQL

Records each user's current rating of each proposed solution.

<mysql>CREATE TABLE `rating` (

  `ID` INT  NOT NULL AUTO_INCREMENT,
  `ID_User` INT COMMENT "user.ID who gave this rating",
  `ID_Answer` INT NOT NULL COMMENT "answer.ID for which this is a rating",
  `ID_Log` INT NOT NULL COMMENT "ID of log event which posted this value",
  `ID_Proxy` INT DEFAULT NULL COMMENT "if this approval was proxied, records which proxy was used",
  `Value` INT NOT NULL COMMENT "rating value",
  `WhenDone` DATETIME NOT NULL COMMENT "when this rating was posted",
  `Remark` VARCHAR(255) COMMENT "comments on this rating (can include link)",
  PRIMARY KEY(`ID`)
)
ENGINE = MYISAM;</mysql>