| Server IP : 192.95.33.34 / Your IP : 216.73.217.35 Web Server : Apache/2.4.62 (Unix) OpenSSL/1.0.2k-fips System : Linux ns.stalo.digital 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64 User : nilus ( 1003) PHP Version : 7.4.33pl-cwpsec Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /backup/mysql/weekly/ |
Upload File : |
-- MySQL dump 10.19 Distrib 10.2.37-MariaDB, for Linux (x86_64)
--
-- Host: localhost Database: 60d70bf60de9418eb81e069ab0d76c09
-- ------------------------------------------------------
-- Server version 10.2.37-MariaDB
/*!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 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 `activity_log`
--
DROP TABLE IF EXISTS `activity_log`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `activity_log` (
`id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`log_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`description` text COLLATE utf8mb4_unicode_ci NOT NULL,
`context_id` char(36) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`context_type` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`subject_id` char(36) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`subject_type` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`causer_id` char(36) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`causer_type` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`properties` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `activity_log_log_name_index` (`log_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `activity_log`
--
LOCK TABLES `activity_log` WRITE;
/*!40000 ALTER TABLE `activity_log` DISABLE KEYS */;
/*!40000 ALTER TABLE `activity_log` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `approval_asset_contact`
--
DROP TABLE IF EXISTS `approval_asset_contact`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `approval_asset_contact` (
`id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`approval_asset_id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`approval_contact_id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`message` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`is_approved` tinyint(1) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `approval_asset_contact`
--
LOCK TABLES `approval_asset_contact` WRITE;
/*!40000 ALTER TABLE `approval_asset_contact` DISABLE KEYS */;
/*!40000 ALTER TABLE `approval_asset_contact` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `approval_assets`
--
DROP TABLE IF EXISTS `approval_assets`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `approval_assets` (
`id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`approval_id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`upload_uuid` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`description` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `approval_assets`
--
LOCK TABLES `approval_assets` WRITE;
/*!40000 ALTER TABLE `approval_assets` DISABLE KEYS */;
/*!40000 ALTER TABLE `approval_assets` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `approval_contacts`
--
DROP TABLE IF EXISTS `approval_contacts`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `approval_contacts` (
`id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`approval_id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`contact_id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`assignee_message` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`contact_message` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`is_replied` tinyint(1) NOT NULL DEFAULT 0,
`is_forwarded` tinyint(1) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`contact_visualized` tinyint(1) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `approval_contacts`
--
LOCK TABLES `approval_contacts` WRITE;
/*!40000 ALTER TABLE `approval_contacts` DISABLE KEYS */;
/*!40000 ALTER TABLE `approval_contacts` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `approvals`
--
DROP TABLE IF EXISTS `approvals`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `approvals` (
`id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`subtask_id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`user_id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`assignee_id` char(36) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`title` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`description` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`is_sent` tinyint(1) NOT NULL DEFAULT 0,
`status` enum('open','closed') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'open',
`expires_at` datetime DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
`forwarded_visualized` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `approvals`
--
LOCK TABLES `approvals` WRITE;
/*!40000 ALTER TABLE `approvals` DISABLE KEYS */;
/*!40000 ALTER TABLE `approvals` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `clients`
--
DROP TABLE IF EXISTS `clients`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `clients` (
`id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`email` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`trading_name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`hours` int(10) unsigned DEFAULT NULL,
`budget` decimal(10,2) unsigned DEFAULT NULL,
`active` tinyint(1) NOT NULL DEFAULT 1,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_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 `config`
--
DROP TABLE IF EXISTS `config`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `config` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name_config` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`value_config` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `config`
--
LOCK TABLES `config` WRITE;
/*!40000 ALTER TABLE `config` DISABLE KEYS */;
/*!40000 ALTER TABLE `config` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `contacts`
--
DROP TABLE IF EXISTS `contacts`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `contacts` (
`id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`client_id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`name` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
`email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`phones` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `contacts_client_id_foreign` (`client_id`),
CONSTRAINT `contacts_client_id_foreign` FOREIGN KEY (`client_id`) REFERENCES `clients` (`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 `contacts`
--
LOCK TABLES `contacts` WRITE;
/*!40000 ALTER TABLE `contacts` DISABLE KEYS */;
/*!40000 ALTER TABLE `contacts` 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,
`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`)
) 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 `followers`
--
DROP TABLE IF EXISTS `followers`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `followers` (
`id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`user_id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`followable_id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`followable_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`active` tinyint(1) NOT NULL DEFAULT 1,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `followers_user_id_foreign` (`user_id`),
CONSTRAINT `followers_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`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 `followers`
--
LOCK TABLES `followers` WRITE;
/*!40000 ALTER TABLE `followers` DISABLE KEYS */;
/*!40000 ALTER TABLE `followers` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `histories`
--
DROP TABLE IF EXISTS `histories`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `histories` (
`id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`attributes` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
`revision` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`active` tinyint(1) NOT NULL DEFAULT 0,
`historiable_id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`historiable_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `histories`
--
LOCK TABLES `histories` WRITE;
/*!40000 ALTER TABLE `histories` DISABLE KEYS */;
/*!40000 ALTER TABLE `histories` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `impediments`
--
DROP TABLE IF EXISTS `impediments`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `impediments` (
`id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`user_id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`subtask_id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`reason` mediumtext COLLATE utf8mb4_unicode_ci NOT NULL,
`status` enum('resolved','not_resolved') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'not_resolved',
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `impediments_subtask_id_foreign` (`subtask_id`),
KEY `impediments_user_id_foreign` (`user_id`),
CONSTRAINT `impediments_subtask_id_foreign` FOREIGN KEY (`subtask_id`) REFERENCES `subtasks` (`id`) ON DELETE CASCADE,
CONSTRAINT `impediments_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`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 `impediments`
--
LOCK TABLES `impediments` WRITE;
/*!40000 ALTER TABLE `impediments` DISABLE KEYS */;
/*!40000 ALTER TABLE `impediments` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `leaves`
--
DROP TABLE IF EXISTS `leaves`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `leaves` (
`id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`user_id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`leave_start` date NOT NULL,
`leave_end` date NOT NULL,
`reason` text COLLATE utf8mb4_unicode_ci NOT NULL,
`active` tinyint(1) NOT NULL DEFAULT 0,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `leaves_user_id_foreign` (`user_id`),
CONSTRAINT `leaves_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`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 `leaves`
--
LOCK TABLES `leaves` WRITE;
/*!40000 ALTER TABLE `leaves` DISABLE KEYS */;
/*!40000 ALTER TABLE `leaves` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `messages`
--
DROP TABLE IF EXISTS `messages`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `messages` (
`id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`message_id` char(36) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`user_id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`type` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`message` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`is_public` tinyint(1) NOT NULL DEFAULT 0,
`messageable_id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`messageable_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `messages`
--
LOCK TABLES `messages` WRITE;
/*!40000 ALTER TABLE `messages` DISABLE KEYS */;
/*!40000 ALTER TABLE `messages` 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(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`batch` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=52 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,'2018_03_05_181224_create_activity_log_table',1),(4,'2018_03_27_141627_create_permission_tables',1),(5,'2018_04_17_150505_create_team_tables',1),(6,'2018_04_23_142651_create_message_table',1),(7,'2018_04_24_205326_create_notifications_table',1),(8,'2018_04_26_142055_create_uploads_table',1),(9,'2018_04_27_142122_create_shift_table',1),(10,'2018_05_02_194655_create_failed_jobs_table',1),(11,'2018_05_07_141452_create_leave_table',1),(12,'2018_05_21_134659_create_clients_table',1),(13,'2018_05_21_134724_create_contacts_table',1),(14,'2018_05_21_134744_create_projects_table',1),(15,'2018_05_22_000001_create_oauth_auth_codes_table',1),(16,'2018_05_22_000002_create_oauth_access_tokens_table',1),(17,'2018_05_22_000003_create_oauth_refresh_tokens_table',1),(18,'2018_05_22_000004_create_oauth_clients_table',1),(19,'2018_05_22_000005_create_oauth_personal_access_clients_table',1),(20,'2018_05_28_203001_create_open_status_table',1),(21,'2018_05_28_203003_create_task_table',1),(22,'2018_05_28_203033_create_table_subtask_types',1),(23,'2018_05_28_203034_create_subtask_table',1),(24,'2018_05_30_211229_create_table_followers',1),(25,'2018_06_05_185745_create_pins_table',1),(26,'2018_06_05_215225_create_priorities_table',1),(27,'2018_06_08_192315_create_histories_table',1),(28,'2018_06_13_175005_create_refactors_table',1),(29,'2018_06_13_175205_create_timesheets_table',1),(30,'2018_08_01_230908_create_recurrencies_table',1),(31,'2018_08_01_231008_create_recurrence_exceptions_table',1),(32,'2018_08_10_203125_create_table_approvals',1),(33,'2018_08_14_120800_create_table_approval_assets',1),(34,'2018_08_14_120856_create_table_approval_contacts',1),(35,'2018_08_14_121001_create_table_approval_asset_contact',1),(36,'2018_10_10_213001_add_colomn_subtask_id_to_subtask_table',1),(37,'2018_10_10_213133_add_column_order_to_open_status_table',1),(38,'2018_10_17_180603_add_datestart_to_recurrences_table',1),(39,'2018_10_19_154915_add_parent_task_id_column_to_tasks_table',1),(40,'2018_11_05_141318_add_field_to_approval_contacts_table',1),(41,'2019_03_19_141818_add_dependency_field_into_subtasks',1),(42,'2019_06_06_021432_add_collumn_channel_to_notification',1),(43,'2019_06_30_224126_create_impediments_table',1),(44,'2019_08_02_173019_alter_table_timesheets',1),(45,'2020_03_13_153442_create_config_table',1),(46,'2020_03_14_192638_add_name_slack_to_users',1),(47,'2020_04_23_114236_add_id_unique_task_to_task',1),(48,'2020_06_04_101822_add_forwarded_visualized_to_approval_contacts',1),(49,'2020_06_30_144426_add_contact_visualized_to_approval_contacts',1),(50,'2020_07_15_142825_create_tags_table',1),(51,'2020_10_22_153859_add_open_status_id_to_tasks_table',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` int(10) unsigned NOT NULL,
`model_id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`model_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
PRIMARY KEY (`permission_id`,`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` int(10) unsigned NOT NULL,
`model_id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`model_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
PRIMARY KEY (`role_id`,`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 (2,'f00123b0-1bdc-11ec-a121-3787c74fba06','Api\\User\\Models\\User'),(3,'effa4920-1bdc-11ec-a722-97ff852db613','Api\\User\\Models\\User');
/*!40000 ALTER TABLE `model_has_roles` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `model_has_teams`
--
DROP TABLE IF EXISTS `model_has_teams`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `model_has_teams` (
`team_id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`model_id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`model_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
PRIMARY KEY (`team_id`,`model_id`,`model_type`),
CONSTRAINT `model_has_teams_team_id_foreign` FOREIGN KEY (`team_id`) REFERENCES `teams` (`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_teams`
--
LOCK TABLES `model_has_teams` WRITE;
/*!40000 ALTER TABLE `model_has_teams` DISABLE KEYS */;
/*!40000 ALTER TABLE `model_has_teams` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `model_has_users`
--
DROP TABLE IF EXISTS `model_has_users`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `model_has_users` (
`user_id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`model_id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`model_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
PRIMARY KEY (`user_id`,`model_id`,`model_type`),
CONSTRAINT `model_has_users_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`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_users`
--
LOCK TABLES `model_has_users` WRITE;
/*!40000 ALTER TABLE `model_has_users` DISABLE KEYS */;
/*!40000 ALTER TABLE `model_has_users` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `notifications`
--
DROP TABLE IF EXISTS `notifications`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `notifications` (
`id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`notifiable_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`notifiable_id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`data` text COLLATE utf8mb4_unicode_ci NOT NULL,
`read_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`channel` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `notifications`
--
LOCK TABLES `notifications` WRITE;
/*!40000 ALTER TABLE `notifications` DISABLE KEYS */;
/*!40000 ALTER TABLE `notifications` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `oauth_access_tokens`
--
DROP TABLE IF EXISTS `oauth_access_tokens`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `oauth_access_tokens` (
`id` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`user_id` char(36) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`client_id` int(11) NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`scopes` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`revoked` tinyint(1) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`expires_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `oauth_access_tokens_user_id_index` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `oauth_access_tokens`
--
LOCK TABLES `oauth_access_tokens` WRITE;
/*!40000 ALTER TABLE `oauth_access_tokens` DISABLE KEYS */;
INSERT INTO `oauth_access_tokens` VALUES ('02ba7b57a93617463e107e5ba7711ba830faa3a51fcc5d2792c7d8fedc94bed80065abcc05c706f4','effa4920-1bdc-11ec-a722-97ff852db613',2,NULL,'[]',0,'2021-09-22 20:49:09','2021-09-22 20:49:09','2021-09-25 17:49:09'),('33e3e5da6bc68377ef7028d769c456fdce5049eec109f8828297b17226b3c6aff6ce839e4f973a11','effa4920-1bdc-11ec-a722-97ff852db613',2,NULL,'[]',0,'2021-09-22 23:08:40','2021-09-22 23:08:40','2021-09-25 20:08:40'),('67188272d34472f2a3b9f5dd9e078fd169dfdfab52af2a6b3dde109703f403a29e2e2d94b469d877','effa4920-1bdc-11ec-a722-97ff852db613',2,NULL,'[]',0,'2021-09-22 22:35:58','2021-09-22 22:35:58','2021-09-25 19:35:58'),('b2adb88d385c56cbf018ee515f12a9471e88724bfb810ca0cd93c65b7f005ee95823b3bb937f260d','effa4920-1bdc-11ec-a722-97ff852db613',2,NULL,'[]',0,'2021-09-22 21:29:25','2021-09-22 21:29:25','2021-09-25 18:29:25'),('df5c2742a3294259157fc7e3521c46ad450f97537ff9329a5937c660f21e814599906784292662d7','effa4920-1bdc-11ec-a722-97ff852db613',2,NULL,'[]',0,'2021-09-22 21:18:12','2021-09-22 21:18:12','2021-09-25 18:18:12');
/*!40000 ALTER TABLE `oauth_access_tokens` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `oauth_auth_codes`
--
DROP TABLE IF EXISTS `oauth_auth_codes`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `oauth_auth_codes` (
`id` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`user_id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`client_id` int(11) NOT NULL,
`scopes` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`revoked` tinyint(1) NOT NULL,
`expires_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `oauth_auth_codes`
--
LOCK TABLES `oauth_auth_codes` WRITE;
/*!40000 ALTER TABLE `oauth_auth_codes` DISABLE KEYS */;
/*!40000 ALTER TABLE `oauth_auth_codes` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `oauth_clients`
--
DROP TABLE IF EXISTS `oauth_clients`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `oauth_clients` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`user_id` char(36) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`contact_id` char(36) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`secret` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`redirect` text COLLATE utf8mb4_unicode_ci NOT NULL,
`personal_access_client` tinyint(1) NOT NULL,
`password_client` tinyint(1) NOT NULL,
`revoked` tinyint(1) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `oauth_clients_contact_id_foreign` (`contact_id`),
KEY `oauth_clients_user_id_index` (`user_id`),
CONSTRAINT `oauth_clients_contact_id_foreign` FOREIGN KEY (`contact_id`) REFERENCES `contacts` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `oauth_clients`
--
LOCK TABLES `oauth_clients` WRITE;
/*!40000 ALTER TABLE `oauth_clients` DISABLE KEYS */;
INSERT INTO `oauth_clients` VALUES (1,NULL,NULL,'Nilus API Develop Personal Access Client','M8bW2FKTWDQQSCZtbopFT76Ubzrg8JzVOCEKAh6w','http://localhost',1,0,0,NULL,NULL),(2,NULL,NULL,'Nilus API Develop Password Grant Client','GcOnkzzw8YvohwwUHMCxgb2BRRxFPyUAGbntqLWX','http://localhost',0,1,0,NULL,NULL);
/*!40000 ALTER TABLE `oauth_clients` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `oauth_personal_access_clients`
--
DROP TABLE IF EXISTS `oauth_personal_access_clients`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `oauth_personal_access_clients` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`client_id` int(11) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `oauth_personal_access_clients_client_id_index` (`client_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `oauth_personal_access_clients`
--
LOCK TABLES `oauth_personal_access_clients` WRITE;
/*!40000 ALTER TABLE `oauth_personal_access_clients` DISABLE KEYS */;
/*!40000 ALTER TABLE `oauth_personal_access_clients` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `oauth_refresh_tokens`
--
DROP TABLE IF EXISTS `oauth_refresh_tokens`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `oauth_refresh_tokens` (
`id` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`access_token_id` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`revoked` tinyint(1) NOT NULL,
`expires_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `oauth_refresh_tokens_access_token_id_index` (`access_token_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `oauth_refresh_tokens`
--
LOCK TABLES `oauth_refresh_tokens` WRITE;
/*!40000 ALTER TABLE `oauth_refresh_tokens` DISABLE KEYS */;
INSERT INTO `oauth_refresh_tokens` VALUES ('0db6c3a08c2ac9ebcb6d8e621afb6d43db640c3adc353afec66f24e39122577a174c2bb4168c0965','33e3e5da6bc68377ef7028d769c456fdce5049eec109f8828297b17226b3c6aff6ce839e4f973a11',0,'2021-10-12 20:08:40'),('161f9a1ff30cb225df1e2e28914d48c83cc17c33186fecd6acfdc3a077c5bebed2b7d88fa7f4eaab','df5c2742a3294259157fc7e3521c46ad450f97537ff9329a5937c660f21e814599906784292662d7',0,'2021-10-12 18:18:12'),('22a846c296fbada448519503eef2e524c284c91e906fed6d14ca61156abe54c1c734bafa3c265f85','b2adb88d385c56cbf018ee515f12a9471e88724bfb810ca0cd93c65b7f005ee95823b3bb937f260d',0,'2021-10-12 18:29:25'),('385d10a4335502a1f6c1e6e80b489b8c1b24c0109742bcc020105a345cbbe17c04c2ac3784f693d1','67188272d34472f2a3b9f5dd9e078fd169dfdfab52af2a6b3dde109703f403a29e2e2d94b469d877',0,'2021-10-12 19:35:58'),('6ef26f8d0d9249022b6c1c5bdfa430ce7ccb03fe5675465f5eeccb9a7534a657d663f1274d0f4831','02ba7b57a93617463e107e5ba7711ba830faa3a51fcc5d2792c7d8fedc94bed80065abcc05c706f4',0,'2021-10-12 17:49:09');
/*!40000 ALTER TABLE `oauth_refresh_tokens` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `open_status`
--
DROP TABLE IF EXISTS `open_status`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `open_status` (
`id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`name` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL,
`slug` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
`order` int(11) DEFAULT NULL,
`properties` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
`active` tinyint(1) NOT NULL DEFAULT 1,
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `open_status`
--
LOCK TABLES `open_status` WRITE;
/*!40000 ALTER TABLE `open_status` DISABLE KEYS */;
/*!40000 ALTER TABLE `open_status` 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(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`token` varchar(191) 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 `permissions`
--
DROP TABLE IF EXISTS `permissions`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `permissions` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`label` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`z_index` int(11) NOT NULL DEFAULT 1,
`guard_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'api',
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=64 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 */;
INSERT INTO `permissions` VALUES (1,'task.create','task.create',1,'api','2021-09-22 19:40:26','2021-09-22 19:40:26'),(2,'task.update','task.update',1,'api','2021-09-22 19:40:26','2021-09-22 19:40:26'),(3,'task.delete','task.delete',1,'api','2021-09-22 19:40:26','2021-09-22 19:40:26'),(4,'task.list','task.list',1,'api','2021-09-22 19:40:26','2021-09-22 19:40:26'),(5,'task.view','task.view',1,'api','2021-09-22 19:40:26','2021-09-22 19:40:26'),(6,'subtask.create','subtask.create',1,'api','2021-09-22 19:40:26','2021-09-22 19:40:26'),(7,'subtask.update','subtask.update',1,'api','2021-09-22 19:40:26','2021-09-22 19:40:26'),(8,'subtask.delete','subtask.delete',1,'api','2021-09-22 19:40:26','2021-09-22 19:40:26'),(9,'subtask.list','subtask.list',1,'api','2021-09-22 19:40:26','2021-09-22 19:40:26'),(10,'subtask.view','subtask.view',1,'api','2021-09-22 19:40:26','2021-09-22 19:40:26'),(11,'subtask.approval.request','subtask.approval.request',1,'api','2021-09-22 19:40:26','2021-09-22 19:40:26'),(12,'subtask.approval.manage','subtask.approval.manage',1,'api','2021-09-22 19:40:26','2021-09-22 19:40:26'),(13,'subtask.timesheet','subtask.timesheet',1,'api','2021-09-22 19:40:26','2021-09-22 19:40:26'),(14,'project.create','project.create',1,'api','2021-09-22 19:40:26','2021-09-22 19:40:26'),(15,'project.update','project.update',1,'api','2021-09-22 19:40:26','2021-09-22 19:40:26'),(16,'project.delete','project.delete',1,'api','2021-09-22 19:40:26','2021-09-22 19:40:26'),(17,'project.list','project.list',1,'api','2021-09-22 19:40:26','2021-09-22 19:40:26'),(18,'project.view','project.view',1,'api','2021-09-22 19:40:26','2021-09-22 19:40:26'),(19,'project.openclose','project.openclose',1,'api','2021-09-22 19:40:26','2021-09-22 19:40:26'),(20,'client.create','client.create',1,'api','2021-09-22 19:40:26','2021-09-22 19:40:26'),(21,'client.update','client.update',1,'api','2021-09-22 19:40:26','2021-09-22 19:40:26'),(22,'client.delete','client.delete',1,'api','2021-09-22 19:40:26','2021-09-22 19:40:26'),(23,'client.list','client.list',1,'api','2021-09-22 19:40:26','2021-09-22 19:40:26'),(24,'client.view','client.view',1,'api','2021-09-22 19:40:26','2021-09-22 19:40:26'),(25,'client.budget','client.budget',1,'api','2021-09-22 19:40:26','2021-09-22 19:40:26'),(26,'contact.create','contact.create',1,'api','2021-09-22 19:40:26','2021-09-22 19:40:26'),(27,'contact.update','contact.update',1,'api','2021-09-22 19:40:26','2021-09-22 19:40:26'),(28,'contact.delete','contact.delete',1,'api','2021-09-22 19:40:26','2021-09-22 19:40:26'),(29,'contact.list','contact.list',1,'api','2021-09-22 19:40:26','2021-09-22 19:40:26'),(30,'contact.view','contact.view',1,'api','2021-09-22 19:40:26','2021-09-22 19:40:26'),(31,'user.create','user.create',1,'api','2021-09-22 19:40:26','2021-09-22 19:40:26'),(32,'user.update','user.update',1,'api','2021-09-22 19:40:26','2021-09-22 19:40:26'),(33,'user.delete','user.delete',1,'api','2021-09-22 19:40:26','2021-09-22 19:40:26'),(34,'user.list','user.list',1,'api','2021-09-22 19:40:26','2021-09-22 19:40:26'),(35,'user.view','user.view',1,'api','2021-09-22 19:40:26','2021-09-22 19:40:26'),(36,'user.shift','user.shift',1,'api','2021-09-22 19:40:26','2021-09-22 19:40:26'),(37,'user.leave','user.leave',1,'api','2021-09-22 19:40:26','2021-09-22 19:40:26'),(38,'user.wage.view','user.wage.view',1,'api','2021-09-22 19:40:26','2021-09-22 19:40:26'),(39,'user.wage.update','user.wage.update',1,'api','2021-09-22 19:40:26','2021-09-22 19:40:26'),(40,'user.task.individual.assignment','user.task.individual.assignment',1,'api','2021-09-22 19:40:26','2021-09-22 19:40:26'),(41,'user.task.team.assignment','user.task.team.assignment',1,'api','2021-09-22 19:40:26','2021-09-22 19:40:26'),(42,'team.create','team.create',1,'api','2021-09-22 19:40:26','2021-09-22 19:40:26'),(43,'team.update','team.update',1,'api','2021-09-22 19:40:26','2021-09-22 19:40:26'),(44,'team.delete','team.delete',1,'api','2021-09-22 19:40:26','2021-09-22 19:40:26'),(45,'team.list','team.list',1,'api','2021-09-22 19:40:26','2021-09-22 19:40:26'),(46,'team.view','team.view',1,'api','2021-09-22 19:40:26','2021-09-22 19:40:26'),(47,'shift.view','shift.view',1,'api','2021-09-22 19:40:26','2021-09-22 19:40:26'),(48,'shift.list','shift.list',1,'api','2021-09-22 19:40:26','2021-09-22 19:40:26'),(49,'shift.delete','shift.delete',1,'api','2021-09-22 19:40:26','2021-09-22 19:40:26'),(50,'shift.update','shift.update',1,'api','2021-09-22 19:40:26','2021-09-22 19:40:26'),(51,'shift.create','shift.create',1,'api','2021-09-22 19:40:26','2021-09-22 19:40:26'),(52,'subtasktype.view','subtasktype.view',1,'api','2021-09-22 19:40:26','2021-09-22 19:40:26'),(53,'subtasktype.list','subtasktype.list',1,'api','2021-09-22 19:40:26','2021-09-22 19:40:26'),(54,'subtasktype.delete','subtasktype.delete',1,'api','2021-09-22 19:40:26','2021-09-22 19:40:26'),(55,'subtasktype.update','subtasktype.update',1,'api','2021-09-22 19:40:26','2021-09-22 19:40:26'),(56,'subtasktype.create','subtasktype.create',1,'api','2021-09-22 19:40:26','2021-09-22 19:40:26'),(57,'task.prioritize','task.prioritize',1,'api','2021-09-22 19:40:26','2021-09-22 19:40:26'),(58,'task.comment.create','task.comment.create',1,'api','2021-09-22 19:40:26','2021-09-22 19:40:26'),(59,'task.comment.delete','task.comment.delete',1,'api','2021-09-22 19:40:26','2021-09-22 19:40:26'),(60,'task.comment.view','task.comment.view',1,'api','2021-09-22 19:40:26','2021-09-22 19:40:26'),(61,'user.list.assign-role','user.list.assign-role',1,'api','2021-09-22 19:40:26','2021-09-22 19:40:26'),(62,'manager.list','manager.list',1,'api','2021-09-22 19:40:26','2021-09-22 19:40:26'),(63,'manager.view','manager.view',1,'api','2021-09-22 19:40:26','2021-09-22 19:40:26');
/*!40000 ALTER TABLE `permissions` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `pins`
--
DROP TABLE IF EXISTS `pins`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `pins` (
`id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`user_id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`type` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`pinnable_id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`pinnable_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `pins_user_id_foreign` (`user_id`),
CONSTRAINT `pins_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`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 `pins`
--
LOCK TABLES `pins` WRITE;
/*!40000 ALTER TABLE `pins` DISABLE KEYS */;
/*!40000 ALTER TABLE `pins` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `priorities`
--
DROP TABLE IF EXISTS `priorities`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `priorities` (
`id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`user_id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`task_id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`index` int(10) unsigned NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `priorities_task_id_foreign` (`task_id`),
KEY `priorities_user_id_foreign` (`user_id`),
CONSTRAINT `priorities_task_id_foreign` FOREIGN KEY (`task_id`) REFERENCES `tasks` (`id`) ON DELETE CASCADE,
CONSTRAINT `priorities_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`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 `priorities`
--
LOCK TABLES `priorities` WRITE;
/*!40000 ALTER TABLE `priorities` DISABLE KEYS */;
/*!40000 ALTER TABLE `priorities` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `projects`
--
DROP TABLE IF EXISTS `projects`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `projects` (
`id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`identifier` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`client_id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`description` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`hours` int(10) unsigned DEFAULT NULL,
`budget` decimal(10,2) unsigned DEFAULT NULL,
`deadline` datetime DEFAULT NULL,
`active` tinyint(1) NOT NULL DEFAULT 1,
`status` enum('open','closed') COLLATE utf8mb4_unicode_ci DEFAULT 'open',
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `projects_identifier_unique` (`identifier`),
KEY `projects_client_id_foreign` (`client_id`),
CONSTRAINT `projects_client_id_foreign` FOREIGN KEY (`client_id`) REFERENCES `clients` (`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 `projects`
--
LOCK TABLES `projects` WRITE;
/*!40000 ALTER TABLE `projects` DISABLE KEYS */;
/*!40000 ALTER TABLE `projects` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `recurrence_exceptions`
--
DROP TABLE IF EXISTS `recurrence_exceptions`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `recurrence_exceptions` (
`id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`recurrence_id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`rrule` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`is_rescheduled` tinyint(1) DEFAULT NULL,
`is_cancelled` tinyint(1) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `recurrence_exceptions`
--
LOCK TABLES `recurrence_exceptions` WRITE;
/*!40000 ALTER TABLE `recurrence_exceptions` DISABLE KEYS */;
/*!40000 ALTER TABLE `recurrence_exceptions` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `recurrencies`
--
DROP TABLE IF EXISTS `recurrencies`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `recurrencies` (
`id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`rrule` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`start_date` datetime DEFAULT NULL,
`recurrenciable_id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`recurrenciable_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `recurrencies`
--
LOCK TABLES `recurrencies` WRITE;
/*!40000 ALTER TABLE `recurrencies` DISABLE KEYS */;
/*!40000 ALTER TABLE `recurrencies` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `refactors`
--
DROP TABLE IF EXISTS `refactors`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `refactors` (
`id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`identifier` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`subtask_id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`active` tinyint(1) NOT NULL DEFAULT 0,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `refactors`
--
LOCK TABLES `refactors` WRITE;
/*!40000 ALTER TABLE `refactors` DISABLE KEYS */;
/*!40000 ALTER TABLE `refactors` 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` int(10) unsigned NOT NULL,
`role_id` int(10) 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 */;
INSERT INTO `role_has_permissions` VALUES (1,2),(1,3),(2,1),(2,2),(2,3),(2,4),(3,2),(3,3),(4,1),(4,2),(4,3),(4,4),(5,1),(5,2),(5,3),(5,4),(6,2),(6,3),(7,1),(7,2),(7,3),(7,4),(8,2),(8,3),(9,1),(9,2),(9,3),(9,4),(10,1),(10,2),(10,3),(10,4),(11,1),(11,2),(11,3),(11,4),(12,1),(12,2),(12,3),(12,4),(13,1),(13,2),(13,3),(13,4),(14,2),(14,3),(15,1),(15,2),(15,3),(16,2),(16,3),(17,1),(17,2),(17,3),(17,4),(18,1),(18,2),(18,3),(18,4),(19,2),(19,3),(20,2),(20,3),(21,2),(21,3),(22,2),(22,3),(23,1),(23,2),(23,3),(23,4),(24,1),(24,2),(24,3),(24,4),(26,2),(26,3),(27,2),(27,3),(28,2),(28,3),(29,1),(29,2),(29,3),(30,1),(30,2),(30,3),(31,2),(31,3),(32,1),(32,2),(32,3),(32,4),(34,1),(34,2),(34,3),(34,4),(35,1),(35,2),(35,3),(35,4),(37,1),(37,2),(37,3),(37,4),(40,2),(40,3),(41,2),(41,3),(42,2),(42,3),(43,2),(43,3),(45,2),(45,3),(46,2),(46,3),(47,2),(47,3),(48,2),(48,3),(50,2),(50,3),(51,2),(51,3),(52,2),(52,3),(53,2),(53,3),(54,2),(54,3),(55,2),(55,3),(56,2),(56,3),(57,1),(57,2),(57,3),(57,4),(58,1),(58,2),(58,3),(58,4),(59,1),(59,2),(59,3),(59,4),(60,1),(60,2),(60,3),(60,4),(61,2),(61,3),(62,2),(62,3),(63,2),(63,3);
/*!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` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`label` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`z_index` int(11) NOT NULL DEFAULT 1,
`guard_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'api',
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 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,'member','member',1,'api','2021-09-22 19:40:26','2021-09-22 19:40:26'),(2,'manager','manager',1,'api','2021-09-22 19:40:26','2021-09-22 19:40:26'),(3,'admin','admin',1,'api','2021-09-22 19:40:26','2021-09-22 19:40:26'),(4,'freelancer','freelancer',1,'api','2021-09-22 19:40:27','2021-09-22 19:40:27');
/*!40000 ALTER TABLE `roles` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `shifts`
--
DROP TABLE IF EXISTS `shifts`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `shifts` (
`id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`user_id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`weekday` tinyint(4) NOT NULL,
`shift_start` time NOT NULL,
`shift_end` time NOT NULL,
`break_start` time DEFAULT NULL,
`break_end` time DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `shifts_user_id_foreign` (`user_id`),
CONSTRAINT `shifts_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`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 `shifts`
--
LOCK TABLES `shifts` WRITE;
/*!40000 ALTER TABLE `shifts` DISABLE KEYS */;
/*!40000 ALTER TABLE `shifts` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `subtask_types`
--
DROP TABLE IF EXISTS `subtask_types`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `subtask_types` (
`id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`average_deadline_in_seconds` int(10) unsigned DEFAULT NULL,
`status` tinyint(1) NOT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `subtask_types`
--
LOCK TABLES `subtask_types` WRITE;
/*!40000 ALTER TABLE `subtask_types` DISABLE KEYS */;
/*!40000 ALTER TABLE `subtask_types` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `subtasks`
--
DROP TABLE IF EXISTS `subtasks`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `subtasks` (
`id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`subtask_id` bigint(20) unsigned DEFAULT NULL,
`identifier` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`task_id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`subtask_type_id` char(36) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`open_status_id` char(36) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`team_id` char(36) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`user_id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`member_id` char(36) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`assignee_id` char(36) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`title` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`description` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`start_date` datetime DEFAULT NULL,
`deadline` datetime DEFAULT NULL,
`estimated_deadline_in_seconds` int(10) unsigned DEFAULT NULL,
`checklist` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
`status` enum('open','closed') COLLATE utf8mb4_unicode_ci NOT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`dependency_id` char(36) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `subtasks_identifier_unique` (`identifier`),
KEY `subtasks_task_id_foreign` (`task_id`),
KEY `subtasks_subtask_type_id_foreign` (`subtask_type_id`),
KEY `subtasks_dependency_id_foreign` (`dependency_id`),
CONSTRAINT `subtasks_dependency_id_foreign` FOREIGN KEY (`dependency_id`) REFERENCES `subtasks` (`id`) ON DELETE SET NULL,
CONSTRAINT `subtasks_subtask_type_id_foreign` FOREIGN KEY (`subtask_type_id`) REFERENCES `subtask_types` (`id`) ON DELETE CASCADE,
CONSTRAINT `subtasks_task_id_foreign` FOREIGN KEY (`task_id`) REFERENCES `tasks` (`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 `subtasks`
--
LOCK TABLES `subtasks` WRITE;
/*!40000 ALTER TABLE `subtasks` DISABLE KEYS */;
/*!40000 ALTER TABLE `subtasks` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `tagable`
--
DROP TABLE IF EXISTS `tagable`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `tagable` (
`id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`user_creator_id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'Id do user que setou a tag na entidade relacionada',
`tag_id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'Id da tag relacionada',
`tag_type` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
`entity_type_id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `tagable_tag_id_foreign` (`tag_id`),
KEY `tagable_user_creator_id_foreign` (`user_creator_id`),
CONSTRAINT `tagable_tag_id_foreign` FOREIGN KEY (`tag_id`) REFERENCES `tags` (`id`) ON DELETE CASCADE,
CONSTRAINT `tagable_user_creator_id_foreign` FOREIGN KEY (`user_creator_id`) REFERENCES `users` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `tagable`
--
LOCK TABLES `tagable` WRITE;
/*!40000 ALTER TABLE `tagable` DISABLE KEYS */;
/*!40000 ALTER TABLE `tagable` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `tags`
--
DROP TABLE IF EXISTS `tags`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `tags` (
`id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`user_tag_creator_id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'Id do criador da tag',
`name` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL,
`color` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL,
`status` tinyint(1) NOT NULL DEFAULT 1,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `tags_user_tag_creator_id_foreign` (`user_tag_creator_id`),
CONSTRAINT `tags_user_tag_creator_id_foreign` FOREIGN KEY (`user_tag_creator_id`) REFERENCES `users` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `tags`
--
LOCK TABLES `tags` WRITE;
/*!40000 ALTER TABLE `tags` DISABLE KEYS */;
/*!40000 ALTER TABLE `tags` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `tasks`
--
DROP TABLE IF EXISTS `tasks`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `tasks` (
`id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`task_id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`recurrence_task_id` char(36) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`user_id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`project_id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`identifier` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`title` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`description` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`start_date` datetime DEFAULT NULL,
`deadline` datetime DEFAULT NULL,
`status` enum('open','closed') COLLATE utf8mb4_unicode_ci NOT NULL,
`is_public` tinyint(1) NOT NULL DEFAULT 1,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
`id_unique_subtask` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`open_status_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `tasks_identifier_unique` (`identifier`),
KEY `tasks_project_id_foreign` (`project_id`),
CONSTRAINT `tasks_project_id_foreign` FOREIGN KEY (`project_id`) REFERENCES `projects` (`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 `tasks`
--
LOCK TABLES `tasks` WRITE;
/*!40000 ALTER TABLE `tasks` DISABLE KEYS */;
/*!40000 ALTER TABLE `tasks` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `team_has_users`
--
DROP TABLE IF EXISTS `team_has_users`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `team_has_users` (
`user_id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`team_id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
PRIMARY KEY (`user_id`,`team_id`),
KEY `team_has_users_team_id_foreign` (`team_id`),
CONSTRAINT `team_has_users_team_id_foreign` FOREIGN KEY (`team_id`) REFERENCES `teams` (`id`) ON DELETE CASCADE,
CONSTRAINT `team_has_users_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`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 `team_has_users`
--
LOCK TABLES `team_has_users` WRITE;
/*!40000 ALTER TABLE `team_has_users` DISABLE KEYS */;
/*!40000 ALTER TABLE `team_has_users` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `teams`
--
DROP TABLE IF EXISTS `teams`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `teams` (
`id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`user_id` char(36) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`name` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
`properties` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
`active` tinyint(1) NOT NULL DEFAULT 1,
`is_super` tinyint(1) DEFAULT 0,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `teams`
--
LOCK TABLES `teams` WRITE;
/*!40000 ALTER TABLE `teams` DISABLE KEYS */;
/*!40000 ALTER TABLE `teams` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `timesheets`
--
DROP TABLE IF EXISTS `timesheets`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `timesheets` (
`id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`user_id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`subtask_id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`refactor_id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`start` datetime NOT NULL,
`end` datetime DEFAULT NULL,
`seconds` int(10) unsigned DEFAULT NULL,
`type` enum('default','manual','auto') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'default',
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `timesheets_user_id_foreign` (`user_id`),
KEY `timesheets_subtask_id_foreign` (`subtask_id`),
CONSTRAINT `timesheets_subtask_id_foreign` FOREIGN KEY (`subtask_id`) REFERENCES `subtasks` (`id`) ON DELETE CASCADE,
CONSTRAINT `timesheets_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`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 `timesheets`
--
LOCK TABLES `timesheets` WRITE;
/*!40000 ALTER TABLE `timesheets` DISABLE KEYS */;
/*!40000 ALTER TABLE `timesheets` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `uploads`
--
DROP TABLE IF EXISTS `uploads`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `uploads` (
`id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`uuid` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`user_id` char(36) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`type` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`title` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`description` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`filename` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`external_url` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`external_bucket` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`external_endpoint` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`provider` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`mime` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL,
`extension` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL,
`size` int(10) unsigned DEFAULT NULL,
`uploadable_id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`uploadable_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`is_public` tinyint(1) NOT NULL DEFAULT 1,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `uploads`
--
LOCK TABLES `uploads` WRITE;
/*!40000 ALTER TABLE `uploads` DISABLE KEYS */;
/*!40000 ALTER TABLE `uploads` 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` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`name` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
`email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`password` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`birthdate` date DEFAULT NULL,
`admission_date` date DEFAULT '2021-09-22',
`job_position` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`phone_number` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`remuneration` decimal(10,2) unsigned DEFAULT NULL,
`confirmed` tinyint(1) NOT NULL DEFAULT 0,
`active` tinyint(1) NOT NULL DEFAULT 1,
`is_super` tinyint(1) DEFAULT 0,
`remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
`name_slack` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `users_email_deleted_at_unique` (`email`,`deleted_at`)
) ENGINE=InnoDB 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 ('effa4920-1bdc-11ec-a722-97ff852db613','Administrator','admin@nilus.digital','$2y$10$zM.yixCNXcAE4hn1K8qRHegAXhGA9qjSzhZEvg.Jp5pe8Nv9bNJV2',NULL,'2021-09-22',NULL,NULL,NULL,1,1,0,NULL,'2021-09-22 19:40:27','2021-09-22 19:40:27',NULL,'@LeoFerreira'),('f00123b0-1bdc-11ec-a121-3787c74fba06','Manager','manager@nilus.digital','$2y$10$kSa8wMt3O3V/8F4.oCSQ.Ogfy.q7wyPnK70c011yOspFG1TCVZjgy',NULL,'2021-09-22',NULL,NULL,NULL,1,1,0,NULL,'2021-09-22 19:40:27','2021-09-22 19:40:27',NULL,NULL);
/*!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 2021-12-12 3:24:32