DB.sql 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431
  1. -- MariaDB dump 10.19 Distrib 10.5.12-MariaDB, for debian-linux-gnu (x86_64)
  2. --
  3. -- Host: localhost Database: library
  4. -- ------------------------------------------------------
  5. -- Server version 10.5.12-MariaDB-0+deb11u1
  6. /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  7. /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  8. /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
  9. /*!40101 SET NAMES utf8mb4 */;
  10. /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
  11. /*!40103 SET TIME_ZONE='+00:00' */;
  12. /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
  13. /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
  14. /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
  15. /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
  16. --
  17. -- Table structure for table `books`
  18. --
  19. DROP TABLE IF EXISTS `books`;
  20. /*!40101 SET @saved_cs_client = @@character_set_client */;
  21. /*!40101 SET character_set_client = utf8 */;
  22. CREATE TABLE `books` (
  23. `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  24. `isbn` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  25. `title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  26. `authors` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  27. `year` year(4) DEFAULT NULL,
  28. `editorial` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  29. `image` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '/data/images/books/default_portrait.webp',
  30. `document` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  31. `category_id` bigint(20) unsigned DEFAULT NULL,
  32. `created_at` timestamp NULL DEFAULT NULL,
  33. `updated_at` timestamp NULL DEFAULT NULL,
  34. PRIMARY KEY (`id`),
  35. UNIQUE KEY `books_isbn_unique` (`isbn`),
  36. KEY `books_category_id_foreign` (`category_id`),
  37. CONSTRAINT `books_category_id_foreign` FOREIGN KEY (`category_id`) REFERENCES `categories` (`id`) ON DELETE SET NULL ON UPDATE CASCADE
  38. ) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  39. /*!40101 SET character_set_client = @saved_cs_client */;
  40. --
  41. -- Dumping data for table `books`
  42. --
  43. LOCK TABLES `books` WRITE;
  44. /*!40000 ALTER TABLE `books` DISABLE KEYS */;
  45. INSERT INTO `books` VALUES (1,'6054295969','Book0','Author0',1984,'Editorial0','/data/images/books/default_portrait.webp',NULL,8,'2022-02-27 12:09:18','2022-02-27 12:09:18'),(2,'4600425979','Book1','Author1',2006,'Editorial1','/data/images/books/default_portrait.webp',NULL,1,'2022-02-27 12:09:18','2022-02-27 12:09:18'),(3,'4383951716','Book2','Author2',1991,'Editorial2','/data/images/books/default_portrait.webp',NULL,10,'2022-02-27 12:09:18','2022-02-27 12:09:18'),(4,'9793093759238','Book3','Author3',2020,'Editorial3','/data/images/books/default_portrait.webp',NULL,5,'2022-02-27 12:09:18','2022-02-27 12:09:18'),(5,'9785382106885','Book4','Author4',1970,'Editorial4','/data/images/books/default_portrait.webp',NULL,9,'2022-02-27 12:09:18','2022-02-27 12:09:18'),(6,'9799975076745','Book5','Author5',1982,'Editorial5','/data/images/books/default_portrait.webp',NULL,2,'2022-02-27 12:09:18','2022-02-27 12:09:18'),(7,'7227526305','Book6','Author6',1984,'Editorial6','/data/images/books/default_portrait.webp',NULL,6,'2022-02-27 12:09:18','2022-02-27 12:09:18'),(8,'9793225826289','Book7','Author7',1989,'Editorial7','/data/images/books/default_portrait.webp',NULL,3,'2022-02-27 12:09:18','2022-02-27 12:09:18'),(9,'9783104889696','Book8','Author8',2016,'Editorial8','/data/images/books/default_portrait.webp',NULL,4,'2022-02-27 12:09:18','2022-02-27 12:09:18'),(10,'9792380773575','Book9','Author9',2009,'Editorial9','/data/images/books/default_portrait.webp',NULL,7,'2022-02-27 12:09:18','2022-02-27 12:09:18'),(11,'6338986907','Book0','Author0',1985,'Editorial0','/data/images/books/default_portrait.webp','/data/documents/default_book.pdf',8,'2022-02-27 12:09:18','2022-02-27 12:09:18'),(12,'5455097865','Book1','Author1',2012,'Editorial1','/data/images/books/default_portrait.webp','/data/documents/default_book.pdf',1,'2022-02-27 12:09:18','2022-02-27 12:09:18'),(13,'9783173913094','Book2','Author2',2006,'Editorial2','/data/images/books/default_portrait.webp','/data/documents/default_book.pdf',10,'2022-02-27 12:09:18','2022-02-27 12:09:18'),(14,'6673139455','Book3','Author3',1977,'Editorial3','/data/images/books/default_portrait.webp','/data/documents/default_book.pdf',5,'2022-02-27 12:09:18','2022-02-27 12:09:18'),(15,'1914390180','Book4','Author4',1990,'Editorial4','/data/images/books/default_portrait.webp','/data/documents/default_book.pdf',9,'2022-02-27 12:09:18','2022-02-27 12:09:18'),(16,'1406225452','Book5','Author5',1996,'Editorial5','/data/images/books/default_portrait.webp','/data/documents/default_book.pdf',2,'2022-02-27 12:09:18','2022-02-27 12:09:18'),(17,'9796271992892','Book6','Author6',2000,'Editorial6','/data/images/books/default_portrait.webp','/data/documents/default_book.pdf',6,'2022-02-27 12:09:18','2022-02-27 12:09:18'),(18,'9792841404833','Book7','Author7',1984,'Editorial7','/data/images/books/default_portrait.webp','/data/documents/default_book.pdf',3,'2022-02-27 12:09:18','2022-02-27 12:09:18'),(19,'3812962284','Book8','Author8',2021,'Editorial8','/data/images/books/default_portrait.webp','/data/documents/default_book.pdf',4,'2022-02-27 12:09:18','2022-02-27 12:09:18'),(20,'4320099125','Book9','Author9',1985,'Editorial9','/data/images/books/default_portrait.webp','/data/documents/default_book.pdf',7,'2022-02-27 12:09:18','2022-02-27 12:09:18');
  46. /*!40000 ALTER TABLE `books` ENABLE KEYS */;
  47. UNLOCK TABLES;
  48. --
  49. -- Table structure for table `categories`
  50. --
  51. DROP TABLE IF EXISTS `categories`;
  52. /*!40101 SET @saved_cs_client = @@character_set_client */;
  53. /*!40101 SET character_set_client = utf8 */;
  54. CREATE TABLE `categories` (
  55. `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  56. `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  57. `description` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  58. `created_at` timestamp NULL DEFAULT NULL,
  59. `updated_at` timestamp NULL DEFAULT NULL,
  60. PRIMARY KEY (`id`),
  61. UNIQUE KEY `categories_name_unique` (`name`)
  62. ) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  63. /*!40101 SET character_set_client = @saved_cs_client */;
  64. --
  65. -- Dumping data for table `categories`
  66. --
  67. LOCK TABLES `categories` WRITE;
  68. /*!40000 ALTER TABLE `categories` DISABLE KEYS */;
  69. INSERT INTO `categories` VALUES (1,'Computer science, information and general works','There are no mice in the kitchen. \'When I\'M a Duchess,\' she said to itself in a low curtain she had never heard before, \'Sure then I\'m here! Digging for apples, yer honour!\' (He pronounced it \'arrum.\') \'An arm, you goose! Who ever saw one that size?.','2022-02-27 12:09:18','2022-02-27 12:09:18'),(2,'Philosophy and psychology','I\'m talking!\' Just then her head struck against the ceiling, and had just begun to repeat it, when a sharp hiss made her draw back in their proper places--ALL,\' he repeated with great curiosity, and this Alice would not join the dance? \"You can really.','2022-02-27 12:09:18','2022-02-27 12:09:18'),(3,'Religion','After a while, finding that nothing more happened, she decided to remain where she was going to shrink any further: she felt sure it would feel with all their simple sorrows, and find a thing,\' said the Hatter: \'but you could see this, as she left her.','2022-02-27 12:09:18','2022-02-27 12:09:18'),(4,'Social sciences','Queen. \'Well, I never was so large in the newspapers, at the mushroom (she had grown so large in the middle, wondering how she was going to give the hedgehog a blow with its mouth again, and did not come the same height as herself; and when she noticed.','2022-02-27 12:09:18','2022-02-27 12:09:18'),(5,'Language','THIS!\' (Sounds of more broken glass.) \'Now tell me, please, which way she put her hand again, and looking anxiously about as it happens; and if the Mock Turtle would be quite as safe to stay in here any longer!\' She waited for some time without hearing.','2022-02-27 12:09:18','2022-02-27 12:09:18'),(6,'Pure Science','EVER happen in a hurry: a large rabbit-hole under the circumstances. There was nothing else to say a word, but slowly followed her back to the jury, of course--\"I GAVE HER ONE, THEY GAVE HIM TWO--\" why, that must be getting somewhere near the door, she.','2022-02-27 12:09:18','2022-02-27 12:09:18'),(7,'Technology','SOMEBODY ought to go through next walking about at the window.\' \'THAT you won\'t\' thought Alice, \'or perhaps they won\'t walk the way down one side and up I goes like a sky-rocket!\' \'So you think you could draw treacle out of THIS!\' (Sounds of more broken.','2022-02-27 12:09:18','2022-02-27 12:09:18'),(8,'Arts and recreation','Caterpillar. Alice said nothing: she had nothing else to do, and in despair she put one arm out of sight; and an Eaglet, and several other curious creatures. Alice led the way, and the Dormouse said--\' the Hatter grumbled: \'you shouldn\'t have put it to.','2022-02-27 12:09:18','2022-02-27 12:09:18'),(9,'Literature','Just then her head was so large a house, that she had nothing else to say it over) \'--yes, that\'s about the right way to hear his history. I must be getting somewhere near the door, she found it made Alice quite hungry to look about her pet: \'Dinah\'s.','2022-02-27 12:09:18','2022-02-27 12:09:18'),(10,'History and geography','Yet you finished the goose, with the next thing was waving its tail when it\'s angry, and wags its tail when it\'s angry, and wags its tail when it\'s pleased. Now I growl when I\'m angry. Therefore I\'m mad.\' \'I call it purring, not growling,\' said Alice.','2022-02-27 12:09:18','2022-02-27 12:09:18');
  70. /*!40000 ALTER TABLE `categories` ENABLE KEYS */;
  71. UNLOCK TABLES;
  72. --
  73. -- Table structure for table `failed_jobs`
  74. --
  75. DROP TABLE IF EXISTS `failed_jobs`;
  76. /*!40101 SET @saved_cs_client = @@character_set_client */;
  77. /*!40101 SET character_set_client = utf8 */;
  78. CREATE TABLE `failed_jobs` (
  79. `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  80. `uuid` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  81. `connection` text COLLATE utf8mb4_unicode_ci NOT NULL,
  82. `queue` text COLLATE utf8mb4_unicode_ci NOT NULL,
  83. `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  84. `exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  85. `failed_at` timestamp NOT NULL DEFAULT current_timestamp(),
  86. PRIMARY KEY (`id`),
  87. UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`)
  88. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  89. /*!40101 SET character_set_client = @saved_cs_client */;
  90. --
  91. -- Dumping data for table `failed_jobs`
  92. --
  93. LOCK TABLES `failed_jobs` WRITE;
  94. /*!40000 ALTER TABLE `failed_jobs` DISABLE KEYS */;
  95. /*!40000 ALTER TABLE `failed_jobs` ENABLE KEYS */;
  96. UNLOCK TABLES;
  97. --
  98. -- Table structure for table `loans`
  99. --
  100. DROP TABLE IF EXISTS `loans`;
  101. /*!40101 SET @saved_cs_client = @@character_set_client */;
  102. /*!40101 SET character_set_client = utf8 */;
  103. CREATE TABLE `loans` (
  104. `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  105. `user_id` bigint(20) unsigned NOT NULL,
  106. `book_id` bigint(20) unsigned NOT NULL,
  107. `start` date NOT NULL,
  108. `end` date DEFAULT NULL,
  109. `created_at` timestamp NULL DEFAULT NULL,
  110. `updated_at` timestamp NULL DEFAULT NULL,
  111. PRIMARY KEY (`id`),
  112. KEY `loans_user_id_foreign` (`user_id`),
  113. KEY `loans_book_id_foreign` (`book_id`),
  114. CONSTRAINT `loans_book_id_foreign` FOREIGN KEY (`book_id`) REFERENCES `books` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  115. CONSTRAINT `loans_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
  116. ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  117. /*!40101 SET character_set_client = @saved_cs_client */;
  118. --
  119. -- Dumping data for table `loans`
  120. --
  121. LOCK TABLES `loans` WRITE;
  122. /*!40000 ALTER TABLE `loans` DISABLE KEYS */;
  123. INSERT INTO `loans` VALUES (1,2,1,'2022-02-27','2022-02-27','2022-02-27 12:09:18','2022-02-27 12:09:18'),(2,3,2,'2022-02-27',NULL,'2022-02-27 12:09:18','2022-02-27 12:09:18'),(3,4,3,'2022-02-27','2022-02-27','2022-02-27 12:09:18','2022-02-27 12:09:18'),(4,4,4,'2022-02-27','2022-02-27','2022-02-27 12:09:18','2022-02-27 12:09:18'),(5,5,5,'2022-02-27',NULL,'2022-02-27 12:09:18','2022-02-27 12:09:18'),(6,5,6,'2022-02-27','2022-02-27','2022-02-27 12:09:18','2022-02-27 12:09:18');
  124. /*!40000 ALTER TABLE `loans` ENABLE KEYS */;
  125. UNLOCK TABLES;
  126. --
  127. -- Table structure for table `migrations`
  128. --
  129. DROP TABLE IF EXISTS `migrations`;
  130. /*!40101 SET @saved_cs_client = @@character_set_client */;
  131. /*!40101 SET character_set_client = utf8 */;
  132. CREATE TABLE `migrations` (
  133. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  134. `migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  135. `batch` int(11) NOT NULL,
  136. PRIMARY KEY (`id`)
  137. ) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  138. /*!40101 SET character_set_client = @saved_cs_client */;
  139. --
  140. -- Dumping data for table `migrations`
  141. --
  142. LOCK TABLES `migrations` WRITE;
  143. /*!40000 ALTER TABLE `migrations` DISABLE KEYS */;
  144. INSERT INTO `migrations` VALUES (1,'2014_10_12_000000_create_users_table',1),(2,'2014_10_12_100000_create_password_resets_table',1),(3,'2019_08_19_000000_create_failed_jobs_table',1),(4,'2019_12_14_000001_create_personal_access_tokens_table',1),(5,'2022_02_09_102122_create_categories_table',1),(6,'2022_02_09_102134_create_books_table',1),(7,'2022_02_09_102338_create_loans_table',1),(8,'2022_02_09_102425_create_penalties_table',1),(9,'2022_02_23_102416_create_permission_tables',1);
  145. /*!40000 ALTER TABLE `migrations` ENABLE KEYS */;
  146. UNLOCK TABLES;
  147. --
  148. -- Table structure for table `model_has_permissions`
  149. --
  150. DROP TABLE IF EXISTS `model_has_permissions`;
  151. /*!40101 SET @saved_cs_client = @@character_set_client */;
  152. /*!40101 SET character_set_client = utf8 */;
  153. CREATE TABLE `model_has_permissions` (
  154. `permission_id` bigint(20) unsigned NOT NULL,
  155. `model_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  156. `model_id` bigint(20) unsigned NOT NULL,
  157. PRIMARY KEY (`permission_id`,`model_id`,`model_type`),
  158. KEY `model_has_permissions_model_id_model_type_index` (`model_id`,`model_type`),
  159. CONSTRAINT `model_has_permissions_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE
  160. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  161. /*!40101 SET character_set_client = @saved_cs_client */;
  162. --
  163. -- Dumping data for table `model_has_permissions`
  164. --
  165. LOCK TABLES `model_has_permissions` WRITE;
  166. /*!40000 ALTER TABLE `model_has_permissions` DISABLE KEYS */;
  167. /*!40000 ALTER TABLE `model_has_permissions` ENABLE KEYS */;
  168. UNLOCK TABLES;
  169. --
  170. -- Table structure for table `model_has_roles`
  171. --
  172. DROP TABLE IF EXISTS `model_has_roles`;
  173. /*!40101 SET @saved_cs_client = @@character_set_client */;
  174. /*!40101 SET character_set_client = utf8 */;
  175. CREATE TABLE `model_has_roles` (
  176. `role_id` bigint(20) unsigned NOT NULL,
  177. `model_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  178. `model_id` bigint(20) unsigned NOT NULL,
  179. PRIMARY KEY (`role_id`,`model_id`,`model_type`),
  180. KEY `model_has_roles_model_id_model_type_index` (`model_id`,`model_type`),
  181. CONSTRAINT `model_has_roles_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE
  182. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  183. /*!40101 SET character_set_client = @saved_cs_client */;
  184. --
  185. -- Dumping data for table `model_has_roles`
  186. --
  187. LOCK TABLES `model_has_roles` WRITE;
  188. /*!40000 ALTER TABLE `model_has_roles` DISABLE KEYS */;
  189. INSERT INTO `model_has_roles` VALUES (1,'App\\Models\\User',1),(2,'App\\Models\\User',2),(2,'App\\Models\\User',3),(2,'App\\Models\\User',4),(2,'App\\Models\\User',5),(2,'App\\Models\\User',6),(2,'App\\Models\\User',7);
  190. /*!40000 ALTER TABLE `model_has_roles` ENABLE KEYS */;
  191. UNLOCK TABLES;
  192. --
  193. -- Table structure for table `password_resets`
  194. --
  195. DROP TABLE IF EXISTS `password_resets`;
  196. /*!40101 SET @saved_cs_client = @@character_set_client */;
  197. /*!40101 SET character_set_client = utf8 */;
  198. CREATE TABLE `password_resets` (
  199. `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  200. `token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  201. `created_at` timestamp NULL DEFAULT NULL,
  202. KEY `password_resets_email_index` (`email`)
  203. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  204. /*!40101 SET character_set_client = @saved_cs_client */;
  205. --
  206. -- Dumping data for table `password_resets`
  207. --
  208. LOCK TABLES `password_resets` WRITE;
  209. /*!40000 ALTER TABLE `password_resets` DISABLE KEYS */;
  210. /*!40000 ALTER TABLE `password_resets` ENABLE KEYS */;
  211. UNLOCK TABLES;
  212. --
  213. -- Table structure for table `penalties`
  214. --
  215. DROP TABLE IF EXISTS `penalties`;
  216. /*!40101 SET @saved_cs_client = @@character_set_client */;
  217. /*!40101 SET character_set_client = utf8 */;
  218. CREATE TABLE `penalties` (
  219. `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  220. `user_id` bigint(20) unsigned NOT NULL,
  221. `end` date NOT NULL,
  222. `created_at` timestamp NULL DEFAULT NULL,
  223. `updated_at` timestamp NULL DEFAULT NULL,
  224. PRIMARY KEY (`id`),
  225. KEY `penalties_user_id_foreign` (`user_id`),
  226. CONSTRAINT `penalties_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
  227. ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  228. /*!40101 SET character_set_client = @saved_cs_client */;
  229. --
  230. -- Dumping data for table `penalties`
  231. --
  232. LOCK TABLES `penalties` WRITE;
  233. /*!40000 ALTER TABLE `penalties` DISABLE KEYS */;
  234. INSERT INTO `penalties` VALUES (1,7,'2022-03-04','2022-02-27 12:09:18','2022-02-27 12:09:18');
  235. /*!40000 ALTER TABLE `penalties` ENABLE KEYS */;
  236. UNLOCK TABLES;
  237. --
  238. -- Table structure for table `permissions`
  239. --
  240. DROP TABLE IF EXISTS `permissions`;
  241. /*!40101 SET @saved_cs_client = @@character_set_client */;
  242. /*!40101 SET character_set_client = utf8 */;
  243. CREATE TABLE `permissions` (
  244. `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  245. `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  246. `guard_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  247. `created_at` timestamp NULL DEFAULT NULL,
  248. `updated_at` timestamp NULL DEFAULT NULL,
  249. PRIMARY KEY (`id`),
  250. UNIQUE KEY `permissions_name_guard_name_unique` (`name`,`guard_name`)
  251. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  252. /*!40101 SET character_set_client = @saved_cs_client */;
  253. --
  254. -- Dumping data for table `permissions`
  255. --
  256. LOCK TABLES `permissions` WRITE;
  257. /*!40000 ALTER TABLE `permissions` DISABLE KEYS */;
  258. /*!40000 ALTER TABLE `permissions` ENABLE KEYS */;
  259. UNLOCK TABLES;
  260. --
  261. -- Table structure for table `personal_access_tokens`
  262. --
  263. DROP TABLE IF EXISTS `personal_access_tokens`;
  264. /*!40101 SET @saved_cs_client = @@character_set_client */;
  265. /*!40101 SET character_set_client = utf8 */;
  266. CREATE TABLE `personal_access_tokens` (
  267. `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  268. `tokenable_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  269. `tokenable_id` bigint(20) unsigned NOT NULL,
  270. `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  271. `token` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL,
  272. `abilities` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  273. `last_used_at` timestamp NULL DEFAULT NULL,
  274. `created_at` timestamp NULL DEFAULT NULL,
  275. `updated_at` timestamp NULL DEFAULT NULL,
  276. PRIMARY KEY (`id`),
  277. UNIQUE KEY `personal_access_tokens_token_unique` (`token`),
  278. KEY `personal_access_tokens_tokenable_type_tokenable_id_index` (`tokenable_type`,`tokenable_id`)
  279. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  280. /*!40101 SET character_set_client = @saved_cs_client */;
  281. --
  282. -- Dumping data for table `personal_access_tokens`
  283. --
  284. LOCK TABLES `personal_access_tokens` WRITE;
  285. /*!40000 ALTER TABLE `personal_access_tokens` DISABLE KEYS */;
  286. /*!40000 ALTER TABLE `personal_access_tokens` ENABLE KEYS */;
  287. UNLOCK TABLES;
  288. --
  289. -- Table structure for table `role_has_permissions`
  290. --
  291. DROP TABLE IF EXISTS `role_has_permissions`;
  292. /*!40101 SET @saved_cs_client = @@character_set_client */;
  293. /*!40101 SET character_set_client = utf8 */;
  294. CREATE TABLE `role_has_permissions` (
  295. `permission_id` bigint(20) unsigned NOT NULL,
  296. `role_id` bigint(20) unsigned NOT NULL,
  297. PRIMARY KEY (`permission_id`,`role_id`),
  298. KEY `role_has_permissions_role_id_foreign` (`role_id`),
  299. CONSTRAINT `role_has_permissions_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE,
  300. CONSTRAINT `role_has_permissions_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE
  301. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  302. /*!40101 SET character_set_client = @saved_cs_client */;
  303. --
  304. -- Dumping data for table `role_has_permissions`
  305. --
  306. LOCK TABLES `role_has_permissions` WRITE;
  307. /*!40000 ALTER TABLE `role_has_permissions` DISABLE KEYS */;
  308. /*!40000 ALTER TABLE `role_has_permissions` ENABLE KEYS */;
  309. UNLOCK TABLES;
  310. --
  311. -- Table structure for table `roles`
  312. --
  313. DROP TABLE IF EXISTS `roles`;
  314. /*!40101 SET @saved_cs_client = @@character_set_client */;
  315. /*!40101 SET character_set_client = utf8 */;
  316. CREATE TABLE `roles` (
  317. `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  318. `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  319. `guard_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  320. `created_at` timestamp NULL DEFAULT NULL,
  321. `updated_at` timestamp NULL DEFAULT NULL,
  322. PRIMARY KEY (`id`),
  323. UNIQUE KEY `roles_name_guard_name_unique` (`name`,`guard_name`)
  324. ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  325. /*!40101 SET character_set_client = @saved_cs_client */;
  326. --
  327. -- Dumping data for table `roles`
  328. --
  329. LOCK TABLES `roles` WRITE;
  330. /*!40000 ALTER TABLE `roles` DISABLE KEYS */;
  331. INSERT INTO `roles` VALUES (1,'Administrator','web','2022-02-27 12:09:17','2022-02-27 12:09:17'),(2,'Basic','web','2022-02-27 12:09:17','2022-02-27 12:09:17');
  332. /*!40000 ALTER TABLE `roles` ENABLE KEYS */;
  333. UNLOCK TABLES;
  334. --
  335. -- Table structure for table `users`
  336. --
  337. DROP TABLE IF EXISTS `users`;
  338. /*!40101 SET @saved_cs_client = @@character_set_client */;
  339. /*!40101 SET character_set_client = utf8 */;
  340. CREATE TABLE `users` (
  341. `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  342. `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  343. `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  344. `email_verified_at` timestamp NULL DEFAULT NULL,
  345. `password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  346. `image` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '/data/images/users/default_picture.webp',
  347. `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  348. `created_at` timestamp NULL DEFAULT NULL,
  349. `updated_at` timestamp NULL DEFAULT NULL,
  350. PRIMARY KEY (`id`),
  351. UNIQUE KEY `users_name_unique` (`name`),
  352. UNIQUE KEY `users_email_unique` (`email`)
  353. ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  354. /*!40101 SET character_set_client = @saved_cs_client */;
  355. --
  356. -- Dumping data for table `users`
  357. --
  358. LOCK TABLES `users` WRITE;
  359. /*!40000 ALTER TABLE `users` DISABLE KEYS */;
  360. INSERT INTO `users` VALUES (1,'EchedeyLR','elr@disroot.org',NULL,'$2y$10$zJys.Nn3gOQChuDhgEeYeuq3q905bYFSxInLLoL8.zRty20JP3jUi','/data/images/users/default_picture.webp',NULL,'2022-02-27 12:09:17','2022-02-27 12:09:17'),(2,'Mela','mela@mela.mela',NULL,'$2y$10$nDrzHajpdqsHN6gtSqqwBuE6BP3gz3Nq2HQmAgEJR.VAxMO0Hzdoi','/data/images/users/default_picture.webp',NULL,'2022-02-27 12:09:17','2022-02-27 12:09:17'),(3,'Ms. Skyla Botsford III','ziemann.beaulah@bins.com',NULL,'$2y$10$7ERtsa1nqPCWkzLU8JLKh.12MQbw.xD/YKCd6MYA8vDaC5P0YQop.','/data/images/users/default_picture.webp',NULL,'2022-02-27 12:09:17','2022-02-27 12:09:17'),(4,'Dr. Otilia Hermann IV','krystina.emmerich@mante.com',NULL,'$2y$10$X6NE16QWVs64TsKUzcPHieKDK70NcnfH7aAEwz1oEtj3l1Ps4jbmq','/data/images/users/default_picture.webp',NULL,'2022-02-27 12:09:18','2022-02-27 12:09:18'),(5,'Holly Kreiger','ewalter@crooks.net',NULL,'$2y$10$U6ifYSqIEh55lp/BAKcC4.DJbTEuuMfqHGZpf7a1ey3xNnjDmsmcu','/data/images/users/default_picture.webp',NULL,'2022-02-27 12:09:18','2022-02-27 12:09:18'),(6,'Delaney Davis PhD','boyle.mackenzie@powlowski.org',NULL,'$2y$10$.hBNgeQ2wPKfNp.d6BeRgONFPU552GBNG6wHUXoreyZxqTUQpciSe','/data/images/users/default_picture.webp',NULL,'2022-02-27 12:09:18','2022-02-27 12:09:18'),(7,'Tiana Harber PhD','schimmel.pamela@hotmail.com',NULL,'$2y$10$iRPhyDgmjXMbG8Kdpuq/luaYx8KojSecyq01U.l3MA5ObjC1A2FQe','/data/images/users/default_picture.webp',NULL,'2022-02-27 12:09:18','2022-02-27 12:09:18');
  361. /*!40000 ALTER TABLE `users` ENABLE KEYS */;
  362. UNLOCK TABLES;
  363. /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
  364. /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
  365. /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
  366. /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
  367. /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
  368. /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
  369. /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
  370. /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
  371. -- Dump completed on 2022-02-27 12:09:34