Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- MySQL dump 10.13 Distrib 8.0.15, for Win64 (x86_64)
- --
- -- Host: localhost Database: neo
- -- ------------------------------------------------------
- -- Server version 8.0.15
- /*!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 */;
- SET NAMES utf8 ;
- /*!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 `addresses`
- --
- DROP TABLE IF EXISTS `addresses`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- SET character_set_client = utf8mb4 ;
- CREATE TABLE `addresses` (
- `address_id` int(11) NOT NULL AUTO_INCREMENT,
- PRIMARY KEY (`address_id`),
- UNIQUE KEY `address_id_UNIQUE` (`address_id`)
- ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Dumping data for table `addresses`
- --
- LOCK TABLES `addresses` WRITE;
- /*!40000 ALTER TABLE `addresses` DISABLE KEYS */;
- INSERT INTO `addresses` VALUES (1);
- /*!40000 ALTER TABLE `addresses` ENABLE KEYS */;
- UNLOCK TABLES;
- --
- -- Table structure for table `client_addresses`
- --
- DROP TABLE IF EXISTS `client_addresses`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- SET character_set_client = utf8mb4 ;
- CREATE TABLE `client_addresses` (
- `address_id` int(11) NOT NULL AUTO_INCREMENT,
- PRIMARY KEY (`address_id`),
- UNIQUE KEY `address_id_UNIQUE` (`address_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Dumping data for table `client_addresses`
- --
- LOCK TABLES `client_addresses` WRITE;
- /*!40000 ALTER TABLE `client_addresses` DISABLE KEYS */;
- /*!40000 ALTER TABLE `client_addresses` ENABLE KEYS */;
- UNLOCK TABLES;
- --
- -- Table structure for table `clients`
- --
- DROP TABLE IF EXISTS `clients`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- SET character_set_client = utf8mb4 ;
- CREATE TABLE `clients` (
- `client_id` int(11) NOT NULL AUTO_INCREMENT,
- PRIMARY KEY (`client_id`),
- UNIQUE KEY `clients_UNIQUE` (`client_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Dumping data for table `clients`
- --
- LOCK TABLES `clients` WRITE;
- /*!40000 ALTER TABLE `clients` DISABLE KEYS */;
- /*!40000 ALTER TABLE `clients` ENABLE KEYS */;
- UNLOCK TABLES;
- --
- -- Table structure for table `departments`
- --
- DROP TABLE IF EXISTS `departments`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- SET character_set_client = utf8mb4 ;
- CREATE TABLE `departments` (
- `department_id` int(11) NOT NULL AUTO_INCREMENT,
- `department` varchar(45) DEFAULT NULL,
- PRIMARY KEY (`department_id`),
- UNIQUE KEY `department_id_UNIQUE` (`department_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Dumping data for table `departments`
- --
- LOCK TABLES `departments` WRITE;
- /*!40000 ALTER TABLE `departments` DISABLE KEYS */;
- /*!40000 ALTER TABLE `departments` ENABLE KEYS */;
- UNLOCK TABLES;
- --
- -- Table structure for table `operative_contracted_hours`
- --
- DROP TABLE IF EXISTS `operative_contracted_hours`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- SET character_set_client = utf8mb4 ;
- CREATE TABLE `operative_contracted_hours` (
- `operative_contracted_hours_id` int(11) NOT NULL AUTO_INCREMENT,
- `user_id` int(11) NOT NULL,
- `week_day` int(1) NOT NULL,
- `start_time` time NOT NULL,
- `finish_time` time NOT NULL,
- PRIMARY KEY (`operative_contracted_hours_id`)
- ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Dumping data for table `operative_contracted_hours`
- --
- LOCK TABLES `operative_contracted_hours` WRITE;
- /*!40000 ALTER TABLE `operative_contracted_hours` DISABLE KEYS */;
- INSERT INTO `operative_contracted_hours` VALUES (1,1,0,'08:00:00','16:00:00'),(2,1,1,'08:00:00','16:00:00'),(3,1,2,'08:00:00','16:00:00'),(4,1,3,'08:00:00','16:00:00'),(5,1,4,'08:00:00','16:00:00');
- /*!40000 ALTER TABLE `operative_contracted_hours` ENABLE KEYS */;
- UNLOCK TABLES;
- --
- -- Table structure for table `operatives_absent_from_work`
- --
- DROP TABLE IF EXISTS `operatives_absent_from_work`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- SET character_set_client = utf8mb4 ;
- CREATE TABLE `operatives_absent_from_work` (
- `operative_absent_from_work_id` int(11) NOT NULL AUTO_INCREMENT,
- `user_id` int(11) DEFAULT NULL,
- `start_timestamp` timestamp NULL DEFAULT NULL,
- `end_timestamp` timestamp NULL DEFAULT NULL,
- PRIMARY KEY (`operative_absent_from_work_id`),
- UNIQUE KEY `idoperative_absent_from_work_id_UNIQUE` (`operative_absent_from_work_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Dumping data for table `operatives_absent_from_work`
- --
- LOCK TABLES `operatives_absent_from_work` WRITE;
- /*!40000 ALTER TABLE `operatives_absent_from_work` DISABLE KEYS */;
- /*!40000 ALTER TABLE `operatives_absent_from_work` ENABLE KEYS */;
- UNLOCK TABLES;
- --
- -- Table structure for table `operatives_annual_leave`
- --
- DROP TABLE IF EXISTS `operatives_annual_leave`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- SET character_set_client = utf8mb4 ;
- CREATE TABLE `operatives_annual_leave` (
- `operative_annual_leave` int(11) NOT NULL AUTO_INCREMENT,
- `user_id` int(11) DEFAULT NULL,
- `start_timestamp` timestamp NULL DEFAULT NULL,
- `end_timestamp` timestamp NULL DEFAULT NULL,
- PRIMARY KEY (`operative_annual_leave`)
- ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Dumping data for table `operatives_annual_leave`
- --
- LOCK TABLES `operatives_annual_leave` WRITE;
- /*!40000 ALTER TABLE `operatives_annual_leave` DISABLE KEYS */;
- INSERT INTO `operatives_annual_leave` VALUES (1,1,'2020-06-24 07:00:00','2020-06-24 09:00:00');
- /*!40000 ALTER TABLE `operatives_annual_leave` ENABLE KEYS */;
- UNLOCK TABLES;
- --
- -- Table structure for table `operatives_tasks`
- --
- DROP TABLE IF EXISTS `operatives_tasks`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- SET character_set_client = utf8mb4 ;
- CREATE TABLE `operatives_tasks` (
- `operative_task_id` int(11) NOT NULL AUTO_INCREMENT,
- `task_id` int(11) DEFAULT NULL,
- `user_id` varchar(45) DEFAULT NULL,
- `start_timestamp` timestamp NULL DEFAULT NULL,
- `finish_timestamp` timestamp NULL DEFAULT NULL,
- `created` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
- PRIMARY KEY (`operative_task_id`)
- ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Dumping data for table `operatives_tasks`
- --
- LOCK TABLES `operatives_tasks` WRITE;
- /*!40000 ALTER TABLE `operatives_tasks` DISABLE KEYS */;
- INSERT INTO `operatives_tasks` VALUES (1,1,'1','2020-06-23 07:00:00',NULL,'2020-06-23 17:12:08');
- /*!40000 ALTER TABLE `operatives_tasks` ENABLE KEYS */;
- UNLOCK TABLES;
- --
- -- Table structure for table `task_types`
- --
- DROP TABLE IF EXISTS `task_types`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- SET character_set_client = utf8mb4 ;
- CREATE TABLE `task_types` (
- `task_type_id` int(11) NOT NULL AUTO_INCREMENT,
- `task_type` varchar(45) DEFAULT NULL,
- `duration_hours` decimal(1,0) DEFAULT NULL,
- PRIMARY KEY (`task_type_id`),
- UNIQUE KEY `task_type_id_UNIQUE` (`task_type_id`)
- ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Dumping data for table `task_types`
- --
- LOCK TABLES `task_types` WRITE;
- /*!40000 ALTER TABLE `task_types` DISABLE KEYS */;
- INSERT INTO `task_types` VALUES (1,'Boiler Install',9);
- /*!40000 ALTER TABLE `task_types` ENABLE KEYS */;
- UNLOCK TABLES;
- --
- -- Table structure for table `tasks`
- --
- DROP TABLE IF EXISTS `tasks`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- SET character_set_client = utf8mb4 ;
- CREATE TABLE `tasks` (
- `task_id` int(11) NOT NULL AUTO_INCREMENT,
- `address_id` int(11) DEFAULT NULL,
- `task_type_id` int(11) DEFAULT NULL,
- `description` varchar(45) DEFAULT NULL,
- `created` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
- `updated` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
- PRIMARY KEY (`task_id`)
- ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Dumping data for table `tasks`
- --
- LOCK TABLES `tasks` WRITE;
- /*!40000 ALTER TABLE `tasks` DISABLE KEYS */;
- INSERT INTO `tasks` VALUES (1,1,1,'Install new boiler','2020-06-23 17:07:18',NULL);
- /*!40000 ALTER TABLE `tasks` ENABLE KEYS */;
- UNLOCK TABLES;
- --
- -- Table structure for table `trade_task_type_mappings`
- --
- DROP TABLE IF EXISTS `trade_task_type_mappings`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- SET character_set_client = utf8mb4 ;
- CREATE TABLE `trade_task_type_mappings` (
- `trade_task_type_mapping_id` int(11) NOT NULL AUTO_INCREMENT,
- `task_type_id` int(11) DEFAULT NULL,
- `trade_id` int(11) DEFAULT NULL,
- PRIMARY KEY (`trade_task_type_mapping_id`),
- UNIQUE KEY `trade_task_type_UNIQUE` (`trade_task_type_mapping_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Dumping data for table `trade_task_type_mappings`
- --
- LOCK TABLES `trade_task_type_mappings` WRITE;
- /*!40000 ALTER TABLE `trade_task_type_mappings` DISABLE KEYS */;
- /*!40000 ALTER TABLE `trade_task_type_mappings` ENABLE KEYS */;
- UNLOCK TABLES;
- --
- -- Table structure for table `trades`
- --
- DROP TABLE IF EXISTS `trades`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- SET character_set_client = utf8mb4 ;
- CREATE TABLE `trades` (
- `trade_id` int(11) NOT NULL AUTO_INCREMENT,
- `trade` varchar(45) DEFAULT NULL,
- PRIMARY KEY (`trade_id`),
- UNIQUE KEY `trade_id_UNIQUE` (`trade_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Dumping data for table `trades`
- --
- LOCK TABLES `trades` WRITE;
- /*!40000 ALTER TABLE `trades` DISABLE KEYS */;
- /*!40000 ALTER TABLE `trades` ENABLE KEYS */;
- UNLOCK TABLES;
- --
- -- Table structure for table `user_permissions`
- --
- DROP TABLE IF EXISTS `user_permissions`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- SET character_set_client = utf8mb4 ;
- CREATE TABLE `user_permissions` (
- `user_permission_id` int(11) NOT NULL AUTO_INCREMENT,
- `permission` varchar(45) DEFAULT NULL,
- PRIMARY KEY (`user_permission_id`),
- UNIQUE KEY `user_permission_id_UNIQUE` (`user_permission_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Dumping data for table `user_permissions`
- --
- LOCK TABLES `user_permissions` WRITE;
- /*!40000 ALTER TABLE `user_permissions` DISABLE KEYS */;
- /*!40000 ALTER TABLE `user_permissions` ENABLE KEYS */;
- UNLOCK TABLES;
- --
- -- Table structure for table `user_role_permission_mappings`
- --
- DROP TABLE IF EXISTS `user_role_permission_mappings`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- SET character_set_client = utf8mb4 ;
- CREATE TABLE `user_role_permission_mappings` (
- `role_permission_mapping_id` int(11) NOT NULL AUTO_INCREMENT,
- `role_id` int(11) NOT NULL,
- `permission_id` int(11) NOT NULL,
- PRIMARY KEY (`role_permission_mapping_id`),
- UNIQUE KEY `role_permission_id_UNIQUE` (`role_permission_mapping_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Dumping data for table `user_role_permission_mappings`
- --
- LOCK TABLES `user_role_permission_mappings` WRITE;
- /*!40000 ALTER TABLE `user_role_permission_mappings` DISABLE KEYS */;
- /*!40000 ALTER TABLE `user_role_permission_mappings` ENABLE KEYS */;
- UNLOCK TABLES;
- --
- -- Table structure for table `user_roles`
- --
- DROP TABLE IF EXISTS `user_roles`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- SET character_set_client = utf8mb4 ;
- CREATE TABLE `user_roles` (
- `role_id` int(11) NOT NULL AUTO_INCREMENT,
- `role` varchar(45) DEFAULT NULL,
- PRIMARY KEY (`role_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Dumping data for table `user_roles`
- --
- LOCK TABLES `user_roles` WRITE;
- /*!40000 ALTER TABLE `user_roles` DISABLE KEYS */;
- /*!40000 ALTER TABLE `user_roles` ENABLE KEYS */;
- UNLOCK TABLES;
- --
- -- Table structure for table `user_roles_mappings`
- --
- DROP TABLE IF EXISTS `user_roles_mappings`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- SET character_set_client = utf8mb4 ;
- CREATE TABLE `user_roles_mappings` (
- `user_role_mapping_id` int(11) NOT NULL,
- `user_id` int(11) DEFAULT NULL,
- `role_id` int(11) DEFAULT NULL,
- PRIMARY KEY (`user_role_mapping_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Dumping data for table `user_roles_mappings`
- --
- LOCK TABLES `user_roles_mappings` WRITE;
- /*!40000 ALTER TABLE `user_roles_mappings` DISABLE KEYS */;
- /*!40000 ALTER TABLE `user_roles_mappings` ENABLE KEYS */;
- UNLOCK TABLES;
- --
- -- Table structure for table `users`
- --
- DROP TABLE IF EXISTS `users`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- SET character_set_client = utf8mb4 ;
- CREATE TABLE `users` (
- `user_id` int(11) NOT NULL AUTO_INCREMENT,
- `username` varchar(45) DEFAULT NULL,
- `username_checksum` blob,
- `password` blob,
- `email_address` blob,
- `email_address_checksum` blob,
- `created` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
- PRIMARY KEY (`user_id`),
- UNIQUE KEY `user_id_UNIQUE` (`user_id`)
- ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_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,'ricky.powell',NULL,NULL,NULL,NULL,'2020-06-23 16:57:53');
- /*!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 2020-06-23 20:02:15
Add Comment
Please, Sign In to add comment