timekeeper_sql.php 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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 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=InnoDB 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=InnoDB 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=InnoDB 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=InnoDB DEFAULT CHARSET=utf8;
  41. CREATE TABLE `timekeeperScore` (
  42. `timekeeper_id` int(10) unsigned NOT NULL 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) NOT NULL 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=InnoDB 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=InnoDB DEFAULT CHARSET=utf8;
  60. CREATE TABLE `tkLastQuestion` (
  61. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  62. `user` varchar(100) NOT NULL DEFAULT '',
  63. `LastQuestionHtml` longtext,
  64. PRIMARY KEY (`id`),
  65. KEY `user` (`user`)
  66. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  67. CREATE TABLE `tkPendingAnswer` (
  68. `username` varchar(100) NOT NULL,
  69. `token` char(32) NOT NULL,
  70. `payload` text NOT NULL,
  71. `created` int(10) unsigned NOT NULL,
  72. PRIMARY KEY (`username`)
  73. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  74. CREATE TABLE `tkReport` (
  75. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  76. `username` varchar(255) NOT NULL DEFAULT '',
  77. `subject` varchar(255) NOT NULL DEFAULT '',
  78. `question` text NOT NULL,
  79. `userAnswer` text NOT NULL,
  80. `answer` text NOT NULL,
  81. `correct` tinyint(1) unsigned NOT NULL DEFAULT '0',
  82. `answereddatestamp` int(10) unsigned NOT NULL DEFAULT '0',
  83. PRIMARY KEY (`id`)
  84. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  85. CREATE TABLE `tk_wordList` (
  86. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  87. `word` varchar(100) NOT NULL,
  88. `usage` text,
  89. `year` tinyint(3) unsigned NOT NULL DEFAULT '1',
  90. PRIMARY KEY (`id`),
  91. KEY `year` (`year`)
  92. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;