-- https://www.phpmyadmin.net/
--

START TRANSACTION;



--
-- Database: `laravel_ats_maam`
--

-- --------------------------------------------------------

--
-- Table structure for table `candidates`
--

CREATE TABLE `candidates` (
  `candidate_id` int(10) UNSIGNED NOT NULL,
  `is_hot` int(11) DEFAULT 0,
  `is_public` int(11) DEFAULT 0,
  `is_active` int(11) DEFAULT NULL,
  `can_relocate` int(11) DEFAULT NULL,
  `first_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `middle_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `last_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `phone_home` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `phone_cell` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `phone_work` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `address` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `city` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `state` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `pincode` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `notes` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `key_skills` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `owner` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `email1` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `email2` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `website` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `gender` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `current_pay` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `desired_pay` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `best_time_to_call` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `resume` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `date_available` date DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_by` int(11) DEFAULT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `deleted_by` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `companies`
--

CREATE TABLE `companies` (
  `company_id` int(10) UNSIGNED NOT NULL,
  `company_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `mobile1` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `mobile2` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `fax_number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `address` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `city` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `state` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `pincode` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `website` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `key_technologies` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `misc_notes` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `owner` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `is_hot` int(11) DEFAULT 0,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_by` int(11) DEFAULT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `deleted_by` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `companies`
--

INSERT INTO `companies` (`company_id`, `company_name`, `mobile1`, `mobile2`, `fax_number`, `address`, `city`, `state`, `pincode`, `website`, `key_technologies`, `misc_notes`, `owner`, `is_hot`, `created_at`, `updated_at`, `deleted_at`, `created_by`, `updated_by`, `deleted_by`) VALUES
(1, 'Test', '998877665544', '8989898', '78787', 'Company Address', 'City', 'State', NULL, NULL, NULL, NULL, NULL, 0, '2023-02-06 00:58:36', '2023-02-06 00:58:36', NULL, 1, NULL, NULL),
(2, 'STC', '9988776655', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, '2023-02-13 04:32:51', '2023-02-13 04:32:51', NULL, 1, NULL, NULL);

-- --------------------------------------------------------

--
-- Table structure for table `contacts`
--

CREATE TABLE `contacts` (
  `contact_id` int(10) UNSIGNED NOT NULL,
  `is_hot` int(11) DEFAULT 0,
  `is_consultant` int(11) DEFAULT 0,
  `company_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `first_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `last_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `title` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `email1` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `email2` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `phone_work` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `phone_cell` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `phone_other` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `address` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `city` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `state` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `pincode` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `owner` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `notes` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `company_department_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `reports_to` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `left_company` int(11) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_by` int(11) DEFAULT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `deleted_by` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `departments`
--

CREATE TABLE `departments` (
  `company_department_id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `company_id` int(11) DEFAULT NULL,
  `site_id` int(11) DEFAULT NULL,
  `created_by` int(11) DEFAULT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `departments`
--

INSERT INTO `departments` (`company_department_id`, `name`, `company_id`, `site_id`, `created_by`, `updated_by`, `deleted_by`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, 'IT', 2, NULL, 1, NULL, NULL, NULL, '2023-02-24 15:03:22', '2023-02-24 15:03:22');

-- --------------------------------------------------------

--
-- Table structure for table `extra_fields`
--

CREATE TABLE `extra_fields` (
  `extra_fields_id` int(10) UNSIGNED NOT NULL,
  `extra_field_settings_id` int(11) NOT NULL,
  `data_item_id` int(11) NOT NULL DEFAULT 0,
  `value` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_by` int(11) DEFAULT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `deleted_by` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `extra_fields`
--

INSERT INTO `extra_fields` (`extra_fields_id`, `extra_field_settings_id`, `data_item_id`, `value`, `created_at`, `updated_at`, `deleted_at`, `created_by`, `updated_by`, `deleted_by`) VALUES
(1, 1, 1, 'A', '2023-02-06 01:26:15', NULL, NULL, 1, NULL, NULL),
(2, 2, 1, '2023-02-08', '2023-02-06 01:26:15', NULL, NULL, 1, NULL, NULL),
(3, 3, 1, '3', '2023-02-06 01:26:15', NULL, NULL, 1, NULL, NULL),
(4, 4, 1, 'Test', '2023-02-06 01:26:15', NULL, NULL, 1, NULL, NULL);

-- --------------------------------------------------------

--
-- Table structure for table `extra_field_settings`
--

CREATE TABLE `extra_field_settings` (
  `extra_field_settings_id` int(10) UNSIGNED NOT NULL,
  `field_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `data_item_type` int(11) NOT NULL DEFAULT 0,
  `extra_field_type` int(11) NOT NULL DEFAULT 1,
  `extra_field_options` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `position` int(11) NOT NULL DEFAULT 0,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_by` int(11) DEFAULT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `deleted_by` int(11) DEFAULT NULL,
  `status` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `extra_field_settings`
--

INSERT INTO `extra_field_settings` (`extra_field_settings_id`, `field_name`, `data_item_type`, `extra_field_type`, `extra_field_options`, `position`, `created_at`, `updated_at`, `deleted_at`, `created_by`, `updated_by`, `deleted_by`, `status`) VALUES
(1, 'Grade', 200, 1, NULL, 0, '2023-02-06 01:22:03', '2023-02-06 01:22:03', NULL, NULL, NULL, NULL, ''),
(2, 'date', 200, 4, NULL, 0, '2023-02-06 01:22:03', '2023-02-06 01:22:03', NULL, NULL, NULL, NULL, ''),
(3, 'poistions', 400, 1, NULL, 0, '2023-02-22 04:17:22', '2023-02-22 04:17:22', NULL, NULL, NULL, NULL, ''),
(4, 'Test', 400, 1, NULL, 0, '2023-02-23 01:23:11', '2023-02-23 01:23:11', NULL, NULL, NULL, NULL, '');

-- --------------------------------------------------------

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

CREATE TABLE `failed_jobs` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `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()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `joborders`
--

CREATE TABLE `joborders` (
  `joborder_id` int(10) UNSIGNED NOT NULL,
  `is_hot` int(11) DEFAULT 0,
  `is_public` int(11) DEFAULT 0,
  `designation` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `position_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `department` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `city` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `state` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `recruiter` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `owner` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `hiring_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `ecode` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `grade` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `position_code` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `test` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `openings` int(11) NOT NULL DEFAULT 0,
  `notes` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `description` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `date` date DEFAULT NULL,
  `status` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_by` int(11) DEFAULT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `deleted_by` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `joborders`
--

INSERT INTO `joborders` (`joborder_id`, `is_hot`, `is_public`, `designation`, `position_type`, `department`, `city`, `state`, `recruiter`, `owner`, `hiring_type`, `ecode`, `grade`, `position_code`, `test`, `openings`, `notes`, `description`, `date`, `status`, `created_at`, `updated_at`, `deleted_at`, `created_by`, `updated_by`, `deleted_by`) VALUES
(1, 0, 0, 'Developer', 'Internal', 'test', 'City', 'State', 'Recruiter', '1', 'Hiring type', 'test', NULL, NULL, NULL, 1, NULL, NULL, NULL, 'Active', '2023-02-21 01:40:51', '2023-02-21 01:40:51', NULL, 1, NULL, NULL),
(2, 0, 0, 'HR', 'Internal', 'test', 'City', 'State', 'Recruiter', '0', 'Hiring type', 'test', NULL, NULL, NULL, 1, NULL, NULL, NULL, 'Active', '2023-02-21 01:40:51', '2023-02-21 01:40:51', NULL, 1, NULL, NULL),
(3, 0, 0, 'Developer1', 'Internal', 'test', 'City', 'State', 'Recruiter', '1', 'Hiring type', 'test', NULL, NULL, NULL, 1, NULL, NULL, NULL, 'Active', '2023-02-21 01:40:51', '2023-02-21 01:40:51', NULL, 1, NULL, NULL),
(4, 0, 0, 'HR1', 'Internal', 'test', 'City', 'State', 'Recruiter', '0', 'Hiring type', 'test', NULL, NULL, NULL, 1, NULL, NULL, NULL, 'Active', '2023-02-21 01:40:51', '2023-02-21 01:40:51', NULL, 1, NULL, NULL);

-- --------------------------------------------------------

--
-- Table structure for table `jobs`
--

CREATE TABLE `jobs` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `queue` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  `attempts` tinyint(3) UNSIGNED NOT NULL,
  `reserved_at` int(10) UNSIGNED DEFAULT NULL,
  `available_at` int(10) UNSIGNED NOT NULL,
  `created_at` int(10) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `job_status`
--

CREATE TABLE `job_status` (
  `job_status_id` int(10) UNSIGNED NOT NULL,
  `id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `description` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `can_scheduled` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `triggers_email` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `is_enabled` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_by` int(11) DEFAULT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `deleted_by` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

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

CREATE TABLE `migrations` (
  `id` int(10) UNSIGNED NOT NULL,
  `migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `batch` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `migrations` (`id`, `migration`, `batch`) 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_12_14_142911_create_permission_tables', 1),
(6, '2022_12_22_054414_create_joborders_table', 1),
(7, '2022_12_24_063916_create_companies_table', 1),
(8, '2022_12_26_144553_create_extra_fields_table', 1),
(9, '2022_12_29_064023_create_candidates_table', 1),
(11, '2023_01_05_195437_create_job_status_table', 1),
(12, '2023_01_24_085647_create_departments_table', 1),
(13, '2023_02_02_110103_create_extra_field_settings_table', 1),
(14, '2023_02_17_092631_create_saved_list_table', 2),
(15, '2023_02_17_092759_create_saved_list_items', 2),
(17, '2023_02_22_065625_create_mru_table', 3),
(18, '2023_02_21_151249_create_jobs_table', 4),
(26, '2022_12_30_085244_create_contacts_table', 5),
(27, '2023_02_10_052350_create_saved_search_table', 6);

-- --------------------------------------------------------

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

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
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

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

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
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `model_has_roles` (`role_id`, `model_type`, `model_id`) VALUES
(1, 'App\\Models\\User', 1);

-- --------------------------------------------------------

--
-- Table structure for table `mru`
--

CREATE TABLE `mru` (
  `mru_id` int(10) UNSIGNED NOT NULL,
  `user_id` int(11) NOT NULL,
  `data_item_type` int(11) NOT NULL,
  `data_item_text` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `url` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `mru`
--

INSERT INTO `mru` (`mru_id`, `user_id`, `data_item_type`, `data_item_text`, `url`, `created_at`, `updated_at`) VALUES
(7, 1, 400, 'Developer', 'http://localhost/laravel_ats/public/joborders/view/1', '2023-02-22 04:06:47', '2023-02-22 04:06:47'),
(8, 1, 400, 'HR', 'http://localhost/laravel_ats/public/joborders/view/2', '2023-02-22 04:07:04', '2023-02-22 04:07:04'),
(9, 1, 400, 'Developer', 'http://127.0.0.1:8000/joborders/view/1', '2023-02-24 16:07:06', '2023-02-24 16:07:06');

-- --------------------------------------------------------

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

CREATE TABLE `permissions` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `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
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `permissions` (`id`, `name`, `guard_name`, `created_at`, `updated_at`) VALUES
(1, 'role-list', 'web', '2023-02-06 00:26:10', '2023-02-06 00:26:10'),
(2, 'role-create', 'web', '2023-02-06 00:26:10', '2023-02-06 00:26:10'),
(3, 'role-edit', 'web', '2023-02-06 00:26:10', '2023-02-06 00:26:10'),
(4, 'role-delete', 'web', '2023-02-06 00:26:10', '2023-02-06 00:26:10'),
(5, 'user-list', 'web', '2023-02-06 00:26:10', '2023-02-06 00:26:10'),
(6, 'user-create', 'web', '2023-02-06 00:26:10', '2023-02-06 00:26:10'),
(7, 'user-edit', 'web', '2023-02-06 00:26:10', '2023-02-06 00:26:10'),
(8, 'user-delete', 'web', '2023-02-06 00:26:10', '2023-02-06 00:26:10'),
(9, 'activities-list', 'web', '2023-02-06 00:26:10', '2023-02-06 00:26:10'),
(10, 'activities-create', 'web', '2023-02-06 00:26:10', '2023-02-06 00:26:10'),
(11, 'activities-edit', 'web', '2023-02-06 00:26:10', '2023-02-06 00:26:10'),
(12, 'activities-delete', 'web', '2023-02-06 00:26:10', '2023-02-06 00:26:10'),
(13, 'candidates-list', 'web', '2023-02-06 00:26:10', '2023-02-06 00:26:10'),
(14, 'candidates-create', 'web', '2023-02-06 00:26:10', '2023-02-06 00:26:10'),
(15, 'candidates-edit', 'web', '2023-02-06 00:26:10', '2023-02-06 00:26:10'),
(16, 'candidates-delete', 'web', '2023-02-06 00:26:10', '2023-02-06 00:26:10'),
(17, 'companies-list', 'web', '2023-02-06 00:26:10', '2023-02-06 00:26:10'),
(18, 'companies-create', 'web', '2023-02-06 00:26:10', '2023-02-06 00:26:10'),
(19, 'companies-edit', 'web', '2023-02-06 00:26:10', '2023-02-06 00:26:10'),
(20, 'companies-delete', 'web', '2023-02-06 00:26:10', '2023-02-06 00:26:10'),
(21, 'Contacts-list', 'web', '2023-02-06 00:26:10', '2023-02-06 00:26:10'),
(22, 'Contacts-create', 'web', '2023-02-06 00:26:10', '2023-02-06 00:26:10'),
(23, 'Contacts-edit', 'web', '2023-02-06 00:26:10', '2023-02-06 00:26:10'),
(24, 'Contacts-delete', 'web', '2023-02-06 00:26:10', '2023-02-06 00:26:10'),
(25, 'extrafields-list', 'web', '2023-02-06 00:26:10', '2023-02-06 00:26:10'),
(26, 'extrafields-create', 'web', '2023-02-06 00:26:10', '2023-02-06 00:26:10'),
(27, 'extrafields-edit', 'web', '2023-02-06 00:26:10', '2023-02-06 00:26:10'),
(28, 'extrafields-delete', 'web', '2023-02-06 00:26:10', '2023-02-06 00:26:10'),
(29, 'joborders-list', 'web', '2023-02-06 00:26:10', '2023-02-06 00:26:10'),
(30, 'joborders-create', 'web', '2023-02-06 00:26:10', '2023-02-06 00:26:10'),
(31, 'joborders-edit', 'web', '2023-02-06 00:26:10', '2023-02-06 00:26:10'),
(32, 'joborders-delete', 'web', '2023-02-06 00:26:10', '2023-02-06 00:26:10'),
(33, 'jobstatus-list', 'web', '2023-02-06 00:26:10', '2023-02-06 00:26:10'),
(34, 'jobstatus-create', 'web', '2023-02-06 00:26:10', '2023-02-06 00:26:10'),
(35, 'jobstatus-edit', 'web', '2023-02-06 00:26:10', '2023-02-06 00:26:10'),
(36, 'jobstatus-delete', 'web', '2023-02-06 00:26:10', '2023-02-06 00:26:10'),
(37, 'lists-list', 'web', '2023-02-06 00:26:10', '2023-02-06 00:26:10'),
(38, 'lists-create', 'web', '2023-02-06 00:26:10', '2023-02-06 00:26:10'),
(39, 'lists-edit', 'web', '2023-02-06 00:26:10', '2023-02-06 00:26:10'),
(40, 'lists-delete', 'web', '2023-02-06 00:26:10', '2023-02-06 00:26:10'),
(41, 'reports-list', 'web', '2023-02-06 00:26:10', '2023-02-06 00:26:10'),
(42, 'reports-create', 'web', '2023-02-06 00:26:10', '2023-02-06 00:26:10'),
(43, 'reports-edit', 'web', '2023-02-06 00:26:10', '2023-02-06 00:26:10'),
(44, 'reports-delete', 'web', '2023-02-06 00:26:10', '2023-02-06 00:26:10'),
(45, 'product-list', 'web', '2023-02-06 00:26:10', '2023-02-06 00:26:10'),
(46, 'product-create', 'web', '2023-02-06 00:26:10', '2023-02-06 00:26:10'),
(47, 'product-edit', 'web', '2023-02-06 00:26:10', '2023-02-06 00:26:10'),
(48, 'product-delete', 'web', '2023-02-06 00:26:10', '2023-02-06 00:26:10');

-- --------------------------------------------------------

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

CREATE TABLE `roles` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `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
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `roles` (`id`, `name`, `guard_name`, `created_at`, `updated_at`) VALUES
(1, 'admin', 'web', NULL, NULL),
(2, 'recruiter', 'web', NULL, NULL);

-- --------------------------------------------------------

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

CREATE TABLE `role_has_permissions` (
  `permission_id` bigint(20) UNSIGNED NOT NULL,
  `role_id` bigint(20) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `role_has_permissions` (`permission_id`, `role_id`) VALUES
(1, 1),
(2, 1),
(3, 1),
(4, 1),
(5, 1),
(6, 1),
(7, 1),
(8, 1),
(9, 1),
(10, 1),
(11, 1),
(12, 1),
(13, 1),
(14, 1),
(15, 1),
(16, 1),
(17, 1),
(18, 1),
(19, 1),
(20, 1),
(21, 1),
(22, 1),
(23, 1),
(24, 1),
(25, 1),
(26, 1),
(27, 1),
(28, 1),
(29, 1),
(30, 1),
(31, 1),
(32, 1),
(33, 1),
(34, 1),
(35, 1),
(36, 1),
(37, 1),
(38, 1),
(39, 1),
(40, 1),
(41, 1),
(42, 1),
(43, 1),
(44, 1),
(45, 1),
(46, 1),
(47, 1),
(48, 1);

-- --------------------------------------------------------

--
-- Table structure for table `saved_list`
--

CREATE TABLE `saved_list` (
  `list_id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `data_item_type` int(11) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_by` int(11) DEFAULT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `deleted_by` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `saved_list`
--

INSERT INTO `saved_list` (`list_id`, `name`, `data_item_type`, `created_at`, `updated_at`, `deleted_at`, `created_by`, `updated_by`, `deleted_by`) VALUES
(1, 'Testing Company', 200, '2023-02-20 23:53:27', '2023-02-27 00:19:34', NULL, 1, 1, NULL),
(2, 'List1', 200, '2023-02-21 00:09:10', '2023-02-21 00:37:56', NULL, 1, 1, NULL),
(3, 'joborder list', 400, '2023-02-21 07:38:55', '2023-02-21 07:38:55', NULL, 1, NULL, NULL),
(4, 'Common fot Test', 400, '2023-02-27 00:14:17', '2023-02-27 00:14:17', NULL, 1, NULL, NULL),
(5, 'Common fot Test', 400, '2023-02-27 00:16:07', '2023-02-27 00:16:07', NULL, 1, NULL, NULL),
(6, 'Company Lists', 200, '2023-02-27 00:18:04', '2023-02-27 00:18:04', NULL, 1, NULL, NULL),
(7, 'Check_Company', 200, '2023-02-27 00:41:25', '2023-02-27 00:44:11', '2023-02-27 00:44:11', 1, NULL, NULL),
(8, 'Check_Company', 200, '2023-02-27 00:41:38', '2023-02-27 00:44:22', '2023-02-27 00:44:22', 1, NULL, NULL),
(9, 'Check_Company', 200, '2023-02-27 00:42:51', '2023-02-27 00:42:51', NULL, 1, NULL, NULL);

-- --------------------------------------------------------

--
-- Table structure for table `saved_list_items`
--

CREATE TABLE `saved_list_items` (
  `saved_list_item_id` bigint(20) UNSIGNED NOT NULL,
  `saved_list_id` int(11) NOT NULL,
  `data_item_type` int(11) DEFAULT NULL,
  `data_item_id` int(11) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_by` int(11) DEFAULT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `deleted_by` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `saved_list_items`
--

INSERT INTO `saved_list_items` (`saved_list_item_id`, `saved_list_id`, `data_item_type`, `data_item_id`, `created_at`, `updated_at`, `deleted_at`, `created_by`, `updated_by`, `deleted_by`) VALUES
(1, 2, 200, 1, '2023-02-28 12:24:04', '2023-02-28 12:24:09', NULL, NULL, NULL, NULL),
(2, 2, 200, 2, '2023-02-22 12:24:13', '2023-02-06 12:24:15', NULL, NULL, NULL, NULL),
(3, 1, 200, 2, '2023-02-08 12:24:19', '2023-02-08 12:24:22', NULL, NULL, NULL, NULL),
(4, 1, 400, 1, '2023-02-08 12:24:56', '2023-02-01 12:25:00', NULL, NULL, NULL, NULL),
(5, 1, 400, 2, NULL, '2023-02-14 12:25:03', '2023-02-15 12:25:07', NULL, NULL, NULL),
(6, 1, 400, 4, NULL, '2023-02-13 12:25:11', '2023-02-17 12:25:14', NULL, NULL, NULL),
(7, 1, 400, 3, NULL, '2023-02-15 12:25:21', '2023-02-14 12:25:18', NULL, NULL, NULL),
(8, 4, 400, 1, NULL, NULL, NULL, NULL, NULL, NULL),
(9, 4, 400, 2, NULL, NULL, NULL, NULL, NULL, NULL),
(10, 4, 400, 3, NULL, NULL, NULL, NULL, NULL, NULL),
(11, 4, 400, 4, NULL, NULL, NULL, NULL, NULL, NULL),
(12, 4, 400, 1, '2023-02-27 12:23:10', NULL, NULL, NULL, NULL, NULL),
(13, 4, 400, 2, '2023-02-27 12:22:35', '2023-02-27 12:22:44', NULL, NULL, NULL, NULL),
(14, 4, 400, 3, NULL, NULL, NULL, NULL, NULL, NULL),
(17, 7, 200, 0, NULL, '2023-02-27 00:44:11', '2023-02-27 00:44:11', NULL, NULL, NULL),
(18, 8, 200, 0, NULL, '2023-02-27 00:44:22', '2023-02-27 00:44:22', NULL, NULL, NULL);

-- --------------------------------------------------------

--
-- Table structure for table `saved_search`
--

CREATE TABLE `saved_search` (
  `search_id` int(10) UNSIGNED NOT NULL,
  `data_item_text` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `url` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `is_custom` int(11) DEFAULT NULL,
  `data_item_type` int(11) DEFAULT NULL,
  `user_id` int(11) NOT NULL,
  `page` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
  `updated_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Indexes for dumped tables
--

--
-- Indexes for table `candidates`
--
ALTER TABLE `candidates`
  ADD PRIMARY KEY (`candidate_id`),
  ADD UNIQUE KEY `candidates_email1_unique` (`email1`),
  ADD UNIQUE KEY `candidates_email2_unique` (`email2`),
  ADD KEY `candidates_is_hot_index` (`is_hot`),
  ADD KEY `candidates_first_name_index` (`first_name`),
  ADD KEY `candidates_last_name_index` (`last_name`),
  ADD KEY `candidates_phone_home_index` (`phone_home`),
  ADD KEY `candidates_phone_cell_index` (`phone_cell`),
  ADD KEY `candidates_phone_work_index` (`phone_work`),
  ADD KEY `candidates_key_skills_index` (`key_skills`(768)),
  ADD KEY `candidates_owner_index` (`owner`);

--
-- Indexes for table `companies`
--
ALTER TABLE `companies`
  ADD PRIMARY KEY (`company_id`),
  ADD KEY `companies_company_name_index` (`company_name`),
  ADD KEY `companies_key_technologies_index` (`key_technologies`(768)),
  ADD KEY `companies_owner_index` (`owner`),
  ADD KEY `companies_is_hot_index` (`is_hot`);

--
-- Indexes for table `contacts`
--
ALTER TABLE `contacts`
  ADD PRIMARY KEY (`contact_id`),
  ADD KEY `contacts_is_hot_index` (`is_hot`),
  ADD KEY `contacts_company_id_index` (`company_id`),
  ADD KEY `contacts_first_name_index` (`first_name`),
  ADD KEY `contacts_last_name_index` (`last_name`),
  ADD KEY `contacts_title_index` (`title`),
  ADD KEY `contacts_owner_index` (`owner`);

--
-- Indexes for table `departments`
--
ALTER TABLE `departments`
  ADD PRIMARY KEY (`company_department_id`);

--
-- Indexes for table `extra_fields`
--
ALTER TABLE `extra_fields`
  ADD PRIMARY KEY (`extra_fields_id`);

--
-- Indexes for table `extra_field_settings`
--
ALTER TABLE `extra_field_settings`
  ADD PRIMARY KEY (`extra_field_settings_id`);

--
-- Indexes for table `failed_jobs`
--
ALTER TABLE `failed_jobs`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`);

--
-- Indexes for table `joborders`
--
ALTER TABLE `joborders`
  ADD PRIMARY KEY (`joborder_id`),
  ADD KEY `joborders_is_hot_index` (`is_hot`),
  ADD KEY `joborders_designation_index` (`designation`),
  ADD KEY `joborders_department_index` (`department`),
  ADD KEY `joborders_recruiter_index` (`recruiter`),
  ADD KEY `joborders_owner_index` (`owner`),
  ADD KEY `joborders_date_index` (`date`);

--
-- Indexes for table `jobs`
--
ALTER TABLE `jobs`
  ADD PRIMARY KEY (`id`),
  ADD KEY `jobs_queue_index` (`queue`);

--
-- Indexes for table `job_status`
--
ALTER TABLE `job_status`
  ADD PRIMARY KEY (`job_status_id`),
  ADD KEY `job_status_description_index` (`description`);

--
-- Indexes for table `migrations`
--
ALTER TABLE `migrations`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `model_has_permissions`
--
ALTER TABLE `model_has_permissions`
  ADD PRIMARY KEY (`permission_id`,`model_id`,`model_type`),
  ADD KEY `model_has_permissions_model_id_model_type_index` (`model_id`,`model_type`);

--
-- Indexes for table `model_has_roles`
--
ALTER TABLE `model_has_roles`
  ADD PRIMARY KEY (`role_id`,`model_id`,`model_type`),
  ADD KEY `model_has_roles_model_id_model_type_index` (`model_id`,`model_type`);

--
-- Indexes for table `mru`
--
ALTER TABLE `mru`
  ADD PRIMARY KEY (`mru_id`);

--
-- Indexes for table `permissions`
--
ALTER TABLE `permissions`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `permissions_name_guard_name_unique` (`name`,`guard_name`);

--
-- Indexes for table `roles`
--
ALTER TABLE `roles`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `roles_name_guard_name_unique` (`name`,`guard_name`);

--
-- Indexes for table `role_has_permissions`
--
ALTER TABLE `role_has_permissions`
  ADD PRIMARY KEY (`permission_id`,`role_id`),
  ADD KEY `role_has_permissions_role_id_foreign` (`role_id`);

--
-- Indexes for table `saved_list`
--
ALTER TABLE `saved_list`
  ADD PRIMARY KEY (`list_id`);

--
-- Indexes for table `saved_list_items`
--
ALTER TABLE `saved_list_items`
  ADD PRIMARY KEY (`saved_list_item_id`);

--
-- Indexes for table `saved_search`
--
ALTER TABLE `saved_search`
  ADD PRIMARY KEY (`search_id`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `candidates`
--
ALTER TABLE `candidates`
  MODIFY `candidate_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `companies`
--
ALTER TABLE `companies`
  MODIFY `company_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `contacts`
--
ALTER TABLE `contacts`
  MODIFY `contact_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `departments`
--
ALTER TABLE `departments`
  MODIFY `company_department_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `extra_fields`
--
ALTER TABLE `extra_fields`
  MODIFY `extra_fields_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `extra_field_settings`
--
ALTER TABLE `extra_field_settings`
  MODIFY `extra_field_settings_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `failed_jobs`
--
ALTER TABLE `failed_jobs`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `joborders`
--
ALTER TABLE `joborders`
  MODIFY `joborder_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `jobs`
--
ALTER TABLE `jobs`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `job_status`
--
ALTER TABLE `job_status`
  MODIFY `job_status_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `migrations`
--
ALTER TABLE `migrations`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=28;

--
-- AUTO_INCREMENT for table `mru`
--
ALTER TABLE `mru`
  MODIFY `mru_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;

--
-- AUTO_INCREMENT for table `permissions`
--
ALTER TABLE `permissions`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=49;

--
-- AUTO_INCREMENT for table `roles`
--
ALTER TABLE `roles`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `saved_list`
--
ALTER TABLE `saved_list`
  MODIFY `list_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;

--
-- AUTO_INCREMENT for table `saved_list_items`
--
ALTER TABLE `saved_list_items`
  MODIFY `saved_list_item_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19;

--
-- AUTO_INCREMENT for table `saved_search`
--
ALTER TABLE `saved_search`
  MODIFY `search_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- Constraints for dumped tables
--

--
-- Constraints for table `model_has_permissions`
--
ALTER TABLE `model_has_permissions`
  ADD CONSTRAINT `model_has_permissions_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `model_has_roles`
--
ALTER TABLE `model_has_roles`
  ADD CONSTRAINT `model_has_roles_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `role_has_permissions`
--
ALTER TABLE `role_has_permissions`
  ADD CONSTRAINT `role_has_permissions_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `role_has_permissions_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE;
COMMIT;

