-- MariaDB dump 10.19  Distrib 10.5.12-MariaDB, for debian-linux-gnu (x86_64)
--
-- Host: localhost    Database: library
-- ------------------------------------------------------
-- Server version	10.5.12-MariaDB-0+deb11u1

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;

--
-- Table structure for table `books`
--

DROP TABLE IF EXISTS `books`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `books` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `isbn` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `authors` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `year` year(4) DEFAULT NULL,
  `editorial` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `image` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '/data/images/books/default_portrait.webp',
  `document` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `category_id` bigint(20) unsigned DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `books_isbn_unique` (`isbn`),
  KEY `books_category_id_foreign` (`category_id`),
  CONSTRAINT `books_category_id_foreign` FOREIGN KEY (`category_id`) REFERENCES `categories` (`id`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `books`
--

LOCK TABLES `books` WRITE;
/*!40000 ALTER TABLE `books` DISABLE KEYS */;
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');
/*!40000 ALTER TABLE `books` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `categories`
--

DROP TABLE IF EXISTS `categories`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `categories` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `categories_name_unique` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `categories`
--

LOCK TABLES `categories` WRITE;
/*!40000 ALTER TABLE `categories` DISABLE KEYS */;
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');
/*!40000 ALTER TABLE `categories` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `failed_jobs`
--

DROP TABLE IF EXISTS `failed_jobs`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `failed_jobs` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `uuid` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `connection` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `queue` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `failed_at` timestamp NOT NULL DEFAULT current_timestamp(),
  PRIMARY KEY (`id`),
  UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `failed_jobs`
--

LOCK TABLES `failed_jobs` WRITE;
/*!40000 ALTER TABLE `failed_jobs` DISABLE KEYS */;
/*!40000 ALTER TABLE `failed_jobs` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `loans`
--

DROP TABLE IF EXISTS `loans`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `loans` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` bigint(20) unsigned NOT NULL,
  `book_id` bigint(20) unsigned NOT NULL,
  `start` date NOT NULL,
  `end` date DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `loans_user_id_foreign` (`user_id`),
  KEY `loans_book_id_foreign` (`book_id`),
  CONSTRAINT `loans_book_id_foreign` FOREIGN KEY (`book_id`) REFERENCES `books` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `loans_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `loans`
--

LOCK TABLES `loans` WRITE;
/*!40000 ALTER TABLE `loans` DISABLE KEYS */;
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');
/*!40000 ALTER TABLE `loans` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `migrations`
--

DROP TABLE IF EXISTS `migrations`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `migrations` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `batch` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `migrations`
--

LOCK TABLES `migrations` WRITE;
/*!40000 ALTER TABLE `migrations` DISABLE KEYS */;
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);
/*!40000 ALTER TABLE `migrations` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `model_has_permissions`
--

DROP TABLE IF EXISTS `model_has_permissions`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `model_has_permissions` (
  `permission_id` bigint(20) unsigned NOT NULL,
  `model_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `model_id` bigint(20) unsigned NOT NULL,
  PRIMARY KEY (`permission_id`,`model_id`,`model_type`),
  KEY `model_has_permissions_model_id_model_type_index` (`model_id`,`model_type`),
  CONSTRAINT `model_has_permissions_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `model_has_permissions`
--

LOCK TABLES `model_has_permissions` WRITE;
/*!40000 ALTER TABLE `model_has_permissions` DISABLE KEYS */;
/*!40000 ALTER TABLE `model_has_permissions` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `model_has_roles`
--

DROP TABLE IF EXISTS `model_has_roles`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `model_has_roles` (
  `role_id` bigint(20) unsigned NOT NULL,
  `model_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `model_id` bigint(20) unsigned NOT NULL,
  PRIMARY KEY (`role_id`,`model_id`,`model_type`),
  KEY `model_has_roles_model_id_model_type_index` (`model_id`,`model_type`),
  CONSTRAINT `model_has_roles_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `model_has_roles`
--

LOCK TABLES `model_has_roles` WRITE;
/*!40000 ALTER TABLE `model_has_roles` DISABLE KEYS */;
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);
/*!40000 ALTER TABLE `model_has_roles` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `password_resets`
--

DROP TABLE IF EXISTS `password_resets`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `password_resets` (
  `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  KEY `password_resets_email_index` (`email`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `password_resets`
--

LOCK TABLES `password_resets` WRITE;
/*!40000 ALTER TABLE `password_resets` DISABLE KEYS */;
/*!40000 ALTER TABLE `password_resets` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `penalties`
--

DROP TABLE IF EXISTS `penalties`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `penalties` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` bigint(20) unsigned NOT NULL,
  `end` date NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `penalties_user_id_foreign` (`user_id`),
  CONSTRAINT `penalties_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `penalties`
--

LOCK TABLES `penalties` WRITE;
/*!40000 ALTER TABLE `penalties` DISABLE KEYS */;
INSERT INTO `penalties` VALUES (1,7,'2022-03-04','2022-02-27 12:09:18','2022-02-27 12:09:18');
/*!40000 ALTER TABLE `penalties` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `permissions`
--

DROP TABLE IF EXISTS `permissions`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `permissions` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `guard_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `permissions_name_guard_name_unique` (`name`,`guard_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `permissions`
--

LOCK TABLES `permissions` WRITE;
/*!40000 ALTER TABLE `permissions` DISABLE KEYS */;
/*!40000 ALTER TABLE `permissions` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `personal_access_tokens`
--

DROP TABLE IF EXISTS `personal_access_tokens`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `personal_access_tokens` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `tokenable_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `tokenable_id` bigint(20) unsigned NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `token` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL,
  `abilities` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `last_used_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `personal_access_tokens_token_unique` (`token`),
  KEY `personal_access_tokens_tokenable_type_tokenable_id_index` (`tokenable_type`,`tokenable_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `personal_access_tokens`
--

LOCK TABLES `personal_access_tokens` WRITE;
/*!40000 ALTER TABLE `personal_access_tokens` DISABLE KEYS */;
/*!40000 ALTER TABLE `personal_access_tokens` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `role_has_permissions`
--

DROP TABLE IF EXISTS `role_has_permissions`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `role_has_permissions` (
  `permission_id` bigint(20) unsigned NOT NULL,
  `role_id` bigint(20) unsigned NOT NULL,
  PRIMARY KEY (`permission_id`,`role_id`),
  KEY `role_has_permissions_role_id_foreign` (`role_id`),
  CONSTRAINT `role_has_permissions_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE,
  CONSTRAINT `role_has_permissions_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `role_has_permissions`
--

LOCK TABLES `role_has_permissions` WRITE;
/*!40000 ALTER TABLE `role_has_permissions` DISABLE KEYS */;
/*!40000 ALTER TABLE `role_has_permissions` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `roles`
--

DROP TABLE IF EXISTS `roles`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `roles` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `guard_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `roles_name_guard_name_unique` (`name`,`guard_name`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `roles`
--

LOCK TABLES `roles` WRITE;
/*!40000 ALTER TABLE `roles` DISABLE KEYS */;
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');
/*!40000 ALTER TABLE `roles` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `users`
--

DROP TABLE IF EXISTS `users`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `users` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `email_verified_at` timestamp NULL DEFAULT NULL,
  `password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `image` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '/data/images/users/default_picture.webp',
  `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `users_name_unique` (`name`),
  UNIQUE KEY `users_email_unique` (`email`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `users`
--

LOCK TABLES `users` WRITE;
/*!40000 ALTER TABLE `users` DISABLE KEYS */;
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');
/*!40000 ALTER TABLE `users` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2022-02-27 12:09:34
