Advertisement
Guest User

Untitled

a guest
May 24th, 2017
522
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.14 KB | None | 0 0
  1. -- phpMyAdmin SQL Dump
  2. -- version 4.6.4
  3. -- https://www.phpmyadmin.net/
  4. --
  5. -- Host: localhost:8889
  6. -- Generation Time: May 24, 2017 at 03:34 PM
  7. -- Server version: 5.6.33
  8. -- PHP Version: 7.0.12
  9.  
  10. SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
  11. SET time_zone = "+00:00";
  12.  
  13. --
  14. -- Database: `DebtAware`
  15. --
  16.  
  17. -- --------------------------------------------------------
  18.  
  19. --
  20. -- Table structure for table `debts`
  21. --
  22.  
  23. CREATE TABLE `debts` (
  24. `debt_id` int(11) NOT NULL,
  25. `loaner_id` int(11) NOT NULL,
  26. `cost` float NOT NULL,
  27. `event_id` int(11) NOT NULL
  28. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  29.  
  30. --
  31. -- Dumping data for table `debts`
  32. --
  33.  
  34. INSERT INTO `debts` (`debt_id`, `loaner_id`, `cost`, `event_id`) VALUES
  35. (21, 39, 11, 49),
  36. (22, 38, 3, 49),
  37. (23, 38, 11.3, 49),
  38. (24, 38, 14.34, 49),
  39. (25, 38, 7, 49),
  40. (26, 38, 11, 50),
  41. (27, 39, 7, 50),
  42. (28, 40, 9, 50),
  43. (29, 40, 1, 50),
  44. (30, 39, 13, 50);
  45.  
  46. -- --------------------------------------------------------
  47.  
  48. --
  49. -- Table structure for table `events`
  50. --
  51.  
  52. CREATE TABLE `events` (
  53. `event_id` int(11) NOT NULL,
  54. `eventname` varchar(400) NOT NULL,
  55. `description` mediumtext NOT NULL,
  56. `longt` float NOT NULL,
  57. `latt` float NOT NULL,
  58. `creator_id` int(11) NOT NULL
  59. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  60.  
  61. --
  62. -- Dumping data for table `events`
  63. --
  64.  
  65. INSERT INTO `events` (`event_id`, `eventname`, `description`, `longt`, `latt`, `creator_id`) VALUES
  66. (49, 'test', 'zz', 32, 23, 0),
  67. (50, 'test2', 'hallo', 32, 23, 0),
  68. (51, 'hallo', '', 32, 23, 0),
  69. (52, '', '', 32, 23, 0),
  70. (53, '', '', 32, 23, 0);
  71.  
  72. -- --------------------------------------------------------
  73.  
  74. --
  75. -- Table structure for table `Relationships`
  76. --
  77.  
  78. CREATE TABLE `Relationships` (
  79. `person1` int(11) NOT NULL,
  80. `person2` int(11) NOT NULL
  81. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  82.  
  83. --
  84. -- Dumping data for table `Relationships`
  85. --
  86.  
  87. INSERT INTO `Relationships` (`person1`, `person2`) VALUES
  88. (39, 38),
  89. (40, 38),
  90. (40, 39);
  91.  
  92. -- --------------------------------------------------------
  93.  
  94. --
  95. -- Table structure for table `userevents`
  96. --
  97.  
  98. CREATE TABLE `userevents` (
  99. `event_id` int(11) NOT NULL,
  100. `user_id` int(11) NOT NULL
  101. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  102.  
  103. --
  104. -- Dumping data for table `userevents`
  105. --
  106.  
  107. INSERT INTO `userevents` (`event_id`, `user_id`) VALUES
  108. (48, 38),
  109. (49, 38),
  110. (49, 39),
  111. (50, 38),
  112. (50, 39),
  113. (50, 40),
  114. (51, 38),
  115. (51, 40),
  116. (52, 40),
  117. (53, 38);
  118.  
  119. -- --------------------------------------------------------
  120.  
  121. --
  122. -- Table structure for table `users`
  123. --
  124.  
  125. CREATE TABLE `users` (
  126. `user_id` int(11) NOT NULL,
  127. `email` varchar(60) NOT NULL,
  128. `name` varchar(40) NOT NULL,
  129. `password` varchar(150) NOT NULL,
  130. `ccnumber` varchar(14) NOT NULL DEFAULT '',
  131. `active` int(11) DEFAULT NULL
  132. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  133.  
  134. --
  135. -- Dumping data for table `users`
  136. --
  137.  
  138. INSERT INTO `users` (`user_id`, `email`, `name`, `password`, `ccnumber`, `active`) VALUES
  139. (38, 'jorrevynckier@hotmail.com', 'jorre vynckier', '$2y$10$cGVrxxdL6WFbeyrj77imAOUxulKGorAWuRRHVGcpNf27zfzs7R4Ue', 'BE32', NULL),
  140. (39, 'laurensdierickx', 'laurens dierickx', '$2y$10$Irf8Y0HrvYUUqF6BaNIVSe2iL2nBKe7wXyICwd4zdDt6XcU/KstoC', 'BE32', NULL),
  141. (40, 'kyara', 'kyara dewyse', '$2y$10$0nuC2y0Hxmo2O8jFsJcbCeDsPq342K9G3CZLXa4f4VYQjK3UGsx1e', 'zz', NULL);
  142.  
  143. --
  144. -- Indexes for dumped tables
  145. --
  146.  
  147. --
  148. -- Indexes for table `debts`
  149. --
  150. ALTER TABLE `debts`
  151. ADD PRIMARY KEY (`debt_id`);
  152.  
  153. --
  154. -- Indexes for table `events`
  155. --
  156. ALTER TABLE `events`
  157. ADD PRIMARY KEY (`event_id`);
  158.  
  159. --
  160. -- Indexes for table `userevents`
  161. --
  162. ALTER TABLE `userevents`
  163. ADD PRIMARY KEY (`event_id`,`user_id`);
  164.  
  165. --
  166. -- Indexes for table `users`
  167. --
  168. ALTER TABLE `users`
  169. ADD PRIMARY KEY (`user_id`);
  170.  
  171. --
  172. -- AUTO_INCREMENT for dumped tables
  173. --
  174.  
  175. --
  176. -- AUTO_INCREMENT for table `debts`
  177. --
  178. ALTER TABLE `debts`
  179. MODIFY `debt_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=31;
  180. --
  181. -- AUTO_INCREMENT for table `events`
  182. --
  183. ALTER TABLE `events`
  184. MODIFY `event_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=54;
  185. --
  186. -- AUTO_INCREMENT for table `users`
  187. --
  188. ALTER TABLE `users`
  189. MODIFY `user_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=41;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement