Advertisement
Guest User

Untitled

a guest
Nov 14th, 2018
716
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.54 KB | None | 0 0
  1. -- phpMyAdmin SQL Dump
  2. -- version 4.7.4
  3. -- https://www.phpmyadmin.net/
  4. --
  5. -- Host: 127.0.0.1:3306
  6. -- Generation Time: Nov 14, 2018 at 11:32 PM
  7. -- Server version: 5.7.19
  8. -- PHP Version: 7.1.9
  9.  
  10. SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
  11. SET AUTOCOMMIT = 0;
  12. START TRANSACTION;
  13. SET time_zone = "+00:00";
  14.  
  15.  
  16. /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  17. /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  18. /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
  19. /*!40101 SET NAMES utf8mb4 */;
  20.  
  21. --
  22. -- Database: `eventtracker`
  23. --
  24.  
  25. -- --------------------------------------------------------
  26.  
  27. --
  28. -- Table structure for table `adminorganization`
  29. --
  30.  
  31. DROP TABLE IF EXISTS `adminorganization`;
  32. CREATE TABLE IF NOT EXISTS `adminorganization` (
  33. `user_id` int(11) NOT NULL,
  34. `organization_id` int(11) NOT NULL,
  35. KEY `user_id` (`user_id`),
  36. KEY `organization_id` (`organization_id`)
  37. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  38.  
  39. --
  40. -- Dumping data for table `adminorganization`
  41. --
  42.  
  43. INSERT INTO `adminorganization` (`user_id`, `organization_id`) VALUES
  44. (1, 0),
  45. (1, 1),
  46. (1, 2),
  47. (2, 1);
  48.  
  49. -- --------------------------------------------------------
  50.  
  51. --
  52. -- Table structure for table `eventorganization`
  53. --
  54.  
  55. DROP TABLE IF EXISTS `eventorganization`;
  56. CREATE TABLE IF NOT EXISTS `eventorganization` (
  57. `event_id` int(11) NOT NULL,
  58. `organization_id` int(11) NOT NULL,
  59. KEY `event_id` (`event_id`),
  60. KEY `organization_id` (`organization_id`)
  61. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  62.  
  63. --
  64. -- Dumping data for table `eventorganization`
  65. --
  66.  
  67. INSERT INTO `eventorganization` (`event_id`, `organization_id`) VALUES
  68. (2, 2),
  69. (3, 2),
  70. (1, 1);
  71.  
  72. -- --------------------------------------------------------
  73.  
  74. --
  75. -- Table structure for table `events`
  76. --
  77.  
  78. DROP TABLE IF EXISTS `events`;
  79. CREATE TABLE IF NOT EXISTS `events` (
  80. `id` int(11) NOT NULL AUTO_INCREMENT,
  81. `title` varchar(32) NOT NULL,
  82. `description` text NOT NULL,
  83. `email` varchar(32) NOT NULL,
  84. `phone` varchar(32) NOT NULL,
  85. `public` tinyint(1) NOT NULL DEFAULT '1',
  86. `created` datetime NOT NULL,
  87. `modified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  88. PRIMARY KEY (`id`)
  89. ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;
  90.  
  91. --
  92. -- Dumping data for table `events`
  93. --
  94.  
  95. INSERT INTO `events` (`id`, `title`, `description`, `email`, `phone`, `public`, `created`, `modified`) VALUES
  96. (1, 'Fake Event', 'This event doesn\'t really exist', 'event@email.com', '1800-111-2222', 1, '2018-09-05 23:40:52', '2018-09-05 23:40:52'),
  97. (2, 'GGC Event', 'This is a example event for GGC', 'events@ggc.edu', '(678) 407-5000', 1, '0000-00-00 00:00:00', '2018-09-11 00:02:21'),
  98. (3, 'GGC Hidden Event', 'GGC event that is hidden', 'events@ggc.edu', '(678) 407-5000', 0, '2018-09-11 00:00:00', '2018-09-11 00:02:21');
  99.  
  100. -- --------------------------------------------------------
  101.  
  102. --
  103. -- Table structure for table `organizations`
  104. --
  105.  
  106. DROP TABLE IF EXISTS `organizations`;
  107. CREATE TABLE IF NOT EXISTS `organizations` (
  108. `id` int(11) NOT NULL AUTO_INCREMENT,
  109. `name` varchar(32) NOT NULL,
  110. `description` text NOT NULL,
  111. `code` varchar(16) DEFAULT NULL,
  112. `email` varchar(32) NOT NULL,
  113. `phone` varchar(32) NOT NULL,
  114. `created` datetime NOT NULL,
  115. PRIMARY KEY (`id`)
  116. ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
  117.  
  118. --
  119. -- Dumping data for table `organizations`
  120. --
  121.  
  122. INSERT INTO `organizations` (`id`, `name`, `description`, `code`, `email`, `phone`, `created`) VALUES
  123. (1, 'Test Organization', 'This is a test organization!', NULL, 'contact@email.com', '1800-111-1111', '2018-09-05 23:38:57'),
  124. (2, 'Georgia Gwinnett College', 'Georgia Gwinnett College is a public college in Lawrenceville, Gwinnett County, Georgia. It is a member of the University System of Georgia.', 'GGCEvent10', 'contact@ggc.edu', '(678) 407-5000', '2018-09-05 23:46:25');
  125.  
  126. -- --------------------------------------------------------
  127.  
  128. --
  129. -- Table structure for table `slotevent`
  130. --
  131.  
  132. DROP TABLE IF EXISTS `slotevent`;
  133. CREATE TABLE IF NOT EXISTS `slotevent` (
  134. `slot_id` int(11) NOT NULL,
  135. `event_id` int(11) NOT NULL,
  136. KEY `slot_id` (`slot_id`),
  137. KEY `event_id` (`event_id`)
  138. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  139.  
  140. --
  141. -- Dumping data for table `slotevent`
  142. --
  143.  
  144. INSERT INTO `slotevent` (`slot_id`, `event_id`) VALUES
  145. (1, 1),
  146. (2, 1),
  147. (3, 2),
  148. (4, 3);
  149.  
  150. -- --------------------------------------------------------
  151.  
  152. --
  153. -- Table structure for table `slots`
  154. --
  155.  
  156. DROP TABLE IF EXISTS `slots`;
  157. CREATE TABLE IF NOT EXISTS `slots` (
  158. `id` int(11) NOT NULL AUTO_INCREMENT,
  159. `title` varchar(32) NOT NULL,
  160. `description` text NOT NULL,
  161. `date` date NOT NULL,
  162. `starttime` time NOT NULL,
  163. `endtime` time NOT NULL,
  164. `min` int(11) NOT NULL DEFAULT '1',
  165. `max` int(11) DEFAULT NULL,
  166. `created` datetime NOT NULL,
  167. `modified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  168. PRIMARY KEY (`id`)
  169. ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=latin1;
  170.  
  171. --
  172. -- Dumping data for table `slots`
  173. --
  174.  
  175. INSERT INTO `slots` (`id`, `title`, `description`, `date`, `starttime`, `endtime`, `min`, `max`, `created`, `modified`) VALUES
  176. (1, 'Job 1', 'Hand out food', '2018-09-10', '09:00:00', '20:00:00', 1, NULL, '2018-09-05 23:43:05', '2018-09-05 23:43:05'),
  177. (2, 'Job 2', 'Hand out drinks', '2018-09-10', '09:00:00', '17:00:00', 1, NULL, '2018-09-05 23:43:05', '2018-09-05 23:43:05'),
  178. (3, 'Greeter', 'You\'ll be greeting people!', '2018-09-22', '10:00:00', '14:00:00', 1, NULL, '2018-09-10 19:05:07', '2018-09-11 00:05:07'),
  179. (7, 'GGC Event Slot', 'Made using CreateTest.html', '2018-05-15', '00:00:05', '00:00:22', 1, 5, '2018-09-20 16:02:33', '2018-09-20 16:02:33');
  180.  
  181. -- --------------------------------------------------------
  182.  
  183. --
  184. -- Table structure for table `userorganization`
  185. --
  186.  
  187. DROP TABLE IF EXISTS `userorganization`;
  188. CREATE TABLE IF NOT EXISTS `userorganization` (
  189. `user_id` int(11) NOT NULL,
  190. `organization_id` int(11) NOT NULL,
  191. KEY `user_id` (`user_id`),
  192. KEY `organization_id` (`organization_id`)
  193. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  194.  
  195. -- --------------------------------------------------------
  196.  
  197. --
  198. -- Table structure for table `users`
  199. --
  200.  
  201. DROP TABLE IF EXISTS `users`;
  202. CREATE TABLE IF NOT EXISTS `users` (
  203. `id` int(11) NOT NULL AUTO_INCREMENT,
  204. `firstname` varchar(30) NOT NULL,
  205. `lastname` varchar(30) NOT NULL,
  206. `email` varchar(255) NOT NULL,
  207. `password` varchar(64) NOT NULL COMMENT 'SHA256',
  208. `token` varchar(64) NOT NULL,
  209. `stamp` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  210. PRIMARY KEY (`id`)
  211. ) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
  212.  
  213. --
  214. -- Dumping data for table `users`
  215. --
  216.  
  217. INSERT INTO `users` (`id`, `firstname`, `lastname`, `email`, `password`, `token`, `stamp`) VALUES
  218. (1, 'Ammar', 'Huseinspahic', 'ammarhus@live.com', '5E884898DA28047151D0E56F8DC6292773603D0D6AABBDD62A11EF721D1542D8', 'kBZVtB6wum4DhDxg', '2018-10-28 23:42:15'),
  219. (2, 'John', 'Doe', 'test@test.com', '5E884898DA28047151D0E56F8DC6292773603D0D6AABBDD62A11EF721D1542D8', '', '2018-10-28 21:38:32');
  220.  
  221. -- --------------------------------------------------------
  222.  
  223. --
  224. -- Table structure for table `userslot`
  225. --
  226.  
  227. DROP TABLE IF EXISTS `userslot`;
  228. CREATE TABLE IF NOT EXISTS `userslot` (
  229. `user_id` int(11) NOT NULL,
  230. `slot_id` int(11) NOT NULL,
  231. KEY `user_id` (`user_id`),
  232. KEY `slot_id` (`slot_id`)
  233. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  234. COMMIT;
  235.  
  236. /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
  237. /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
  238. /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement