vote_subject.sql 1.2 KB

123456789101112131415161718192021222324252627
  1. DROP TABLE IF EXISTS `phpcms_vote_subject`;
  2. CREATE TABLE `phpcms_vote_subject` (
  3. `subjectid` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
  4. `siteid` smallint(5) unsigned DEFAULT '0',
  5. `subject` char(255) NOT NULL,
  6. `ismultiple` tinyint(1) unsigned NOT NULL DEFAULT '0',
  7. `ischeckbox` tinyint(1) unsigned NOT NULL DEFAULT '0',
  8. `credit` smallint(5) unsigned NOT NULL DEFAULT '0',
  9. `addtime` int(10) unsigned NOT NULL DEFAULT '0',
  10. `fromdate` date NOT NULL DEFAULT '0000-00-00',
  11. `todate` date NOT NULL DEFAULT '0000-00-00',
  12. `interval` tinyint(3) unsigned NOT NULL DEFAULT '0',
  13. `enabled` tinyint(1) unsigned NOT NULL DEFAULT '1',
  14. `template` char(20) NOT NULL,
  15. `description` text NOT NULL,
  16. `listorder` smallint(5) unsigned NOT NULL DEFAULT '0',
  17. `allowguest` tinyint(1) unsigned NOT NULL DEFAULT '1',
  18. `maxval` tinyint(2) unsigned NOT NULL DEFAULT '0',
  19. `minval` tinyint(1) unsigned NOT NULL DEFAULT '1',
  20. `allowview` tinyint(1) unsigned NOT NULL DEFAULT '1',
  21. `optionnumber` tinyint(3) unsigned NOT NULL DEFAULT '0',
  22. `votenumber` mediumint(8) unsigned NOT NULL DEFAULT '0',
  23. PRIMARY KEY (`subjectid`),
  24. KEY `enabled` (`enabled`),
  25. KEY `fromdate` (`fromdate`,`todate`),
  26. KEY `todate` (`todate`)
  27. ) TYPE=MyISAM;