timekeeper_sql.php 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. CREATE TABLE `timekeeper` (
  2. `timekeeper_username` varchar(255) NOT NULL DEFAULT '',
  3. `timekeeper_Enabled` bit(1) DEFAULT NULL,
  4. `timekeeper_Freemins` int(10) unsigned NOT NULL DEFAULT '0',
  5. `timekeeper_Enable_Time` double(2) NOT NULL DEFAULT '0',
  6. `timekeeper_Disable_Time` double NOT NULL DEFAULT '0',
  7. `timekeeper_Min_Question_Count` int(11) DEFAULT '0',
  8. PRIMARY KEY (`timekeeper_username`)
  9. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  10. CREATE TABLE `timekeeperPending` (
  11. `timekeeper_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  12. `timekeeper_username` varchar(255) NOT NULL DEFAULT '',
  13. `timekeeper_question` int(10) unsigned DEFAULT '0',
  14. `timekeeper_answereddatestamp` int(10) unsigned DEFAULT '0',
  15. `timekeeper_answer` text NOT NULL,
  16. PRIMARY KEY (`timekeeper_id`)
  17. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  18. CREATE TABLE `timekeeperQuestions` (
  19. `timekeeper_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  20. `timekeeper_subject` varchar(255) NOT NULL DEFAULT '',
  21. `timekeeper_questiondescription` text NOT NULL,
  22. `timekeeper_question` longtext NOT NULL,
  23. `timekeeper_addeddatestamp` int(10) unsigned DEFAULT '0',
  24. `timekeeper_yearlevel` int(2) unsigned DEFAULT '0',
  25. `timekeeper_answers` text NOT NULL,
  26. `timekeeper_correctanswer` int(3) unsigned DEFAULT '0',
  27. PRIMARY KEY (`timekeeper_id`)
  28. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  29. CREATE TABLE `timekeeperReport` (
  30. `timekeeper_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  31. `timekeeper_username` varchar(255) NOT NULL DEFAULT '',
  32. `timekeeper_question` text NOT NULL,
  33. `timekeeper_answereddatestamp` int(10) unsigned DEFAULT '0',
  34. `timekeeper_userAnswer` text NOT NULL,
  35. `timekeeper_answer` text NOT NULL,
  36. `timekeeper_yearLevel` int(2) unsigned DEFAULT '0',
  37. `timekeeper_subject` varchar(255) NOT NULL DEFAULT '',
  38. `timekeeper_correct` int(1) unsigned DEFAULT '0',
  39. PRIMARY KEY (`timekeeper_id`)
  40. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  41. CREATE TABLE `timekeeperScore` (
  42. `timekeeper_id` int(10) unsigned AUTO_INCREMENT,
  43. `timekeeper_username` varchar(255) NOT NULL DEFAULT '',
  44. `timekeeper_lifetimequestions` int(10) unsigned DEFAULT '0',
  45. `timekeeper_lifetimecorrect` int(10) unsigned DEFAULT '0',
  46. `timekeeper_minutes` int(10) unsigned DEFAULT '0',
  47. `timekeeper_yearlevel` int(2) unsigned DEFAULT '0',
  48. `timekeeper_lastquestiondatestamp` int(10) unsigned DEFAULT '0',
  49. PRIMARY KEY (`timekeeper_id`)
  50. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  51. CREATE TABLE `timekeeperStats` (
  52. `timekeeper_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  53. `timekeeper_username` varchar(255) NOT NULL DEFAULT '',
  54. `timekeeper_subject` varchar(255) NOT NULL DEFAULT '',
  55. `timekeeper_percent` int(3) unsigned DEFAULT '0',
  56. `timekeeper_yearLevel` int(2) unsigned DEFAULT '0',
  57. `timekeeper_quantity` int(10) unsigned DEFAULT '0',
  58. PRIMARY KEY (`timekeeper_id`)
  59. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  60. CREATE TABLE `tkLastQuestion` (
  61. `id` INT NOT NULL AUTO_INCREMENT,
  62. `user` VARCHAR(100) NULL,
  63. `LastQuestionHtml` LONGTEXT NULL,
  64. PRIMARY KEY (`id`));
  65. CREATE TABLE tkPendingAnswer (
  66. username varchar(100) NOT NULL,
  67. token char(32) NOT NULL,
  68. payload text NOT NULL,
  69. created int(10) unsigned NOT NULL,
  70. PRIMARY KEY (username)
  71. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;