Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 30th, 2012  |  syntax: None  |  size: 0.46 KB  |  hits: 15  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. CREATE TABLE `reports` (
  2.  `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
  3.  `period` date NOT NULL,
  4.  `type` tinyint(3) unsigned NOT NULL,
  5.  `project` tinyint(3) unsigned NOT NULL,
  6.  `status` enum('g','y','r') COLLATE utf8_swedish_ci NOT NULL,
  7.  `report` text COLLATE utf8_swedish_ci NOT NULL,
  8.  PRIMARY KEY (`id`),
  9.   foreign key (type) references types(id),
  10.   foreign key (project) references projects(id)
  11. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_swedish_ci