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

START TRANSACTION;



--
-- Database: `damoeba`
--
CREATE DATABASE IF NOT EXISTS `damoeba` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;
USE `damoeba`;

DELIMITER $$
--
-- Procedures
--
DROP PROCEDURE IF EXISTS `assign_all_permissions`$$
CREATE   PROCEDURE `assign_all_permissions` (IN `userid` BIGINT)  BEGIN
 
	DELETE FROM user_permission where user_id=userid;
    
    INSERT INTO user_permission(user_id, permission_id) (SELECT userid, id from permissions);
    
END$$

--
-- Functions
--
DROP FUNCTION IF EXISTS `alphanum`$$
CREATE   FUNCTION `alphanum` (`str` CHAR(255) CHARSET latin1) RETURNS CHAR(255) CHARSET latin1 BEGIN 
  DECLARE i, len SMALLINT DEFAULT 1; 
  DECLARE ret CHAR(255) DEFAULT ''; 
  DECLARE c CHAR(1);
  IF str IS NOT NULL THEN 
    SET len = CHAR_LENGTH( str ); 
    REPEAT 
      BEGIN 
        SET c = MID( str, i, 1 ); 
        IF c REGEXP '[[:alnum:]]' THEN 
          SET ret=CONCAT(ret,c); 
        END IF; 
        SET i = i + 1; 
      END; 
    UNTIL i > len END REPEAT; 
  ELSE
    SET ret='';
  END IF;
  RETURN ret; 
END$$

DROP FUNCTION IF EXISTS `FIND_IN_SET_X`$$
CREATE   FUNCTION `FIND_IN_SET_X` (`inputList` TEXT, `targetList` TEXT) RETURNS INT(11) BEGIN
  DECLARE limitCount INT DEFAULT 0 ;
  DECLARE counter INT DEFAULT 0 ;
  DECLARE res INT DEFAULT 0 ;
  DECLARE temp TEXT ;
  SET limitCount = 1 + LENGTH(inputList) - LENGTH(REPLACE(inputList, ',', '')) ;
  simple_loop :
  LOOP
    SET counter = counter + 1 ;
    SET temp = SUBSTRING_INDEX(SUBSTRING_INDEX(inputList, ',', counter),',',- 1) ;
    SET res = FIND_IN_SET(temp, targetList) ;
    IF res > 0 
    THEN LEAVE simple_loop ;
    END IF ;
    IF counter = limitCount 
    THEN LEAVE simple_loop ;
    END IF ;
  END LOOP simple_loop ;
  RETURN res ;
END$$

DROP FUNCTION IF EXISTS `full_name`$$
CREATE   FUNCTION `full_name` (`fname` VARCHAR(128), `lname` VARCHAR(128)) RETURNS VARCHAR(255) CHARSET utf8 BEGIN RETURN TRIM(CONCAT(IFNULL(fname,''),' ',IFNULL(lname,''))); 
END$$

DELIMITER ;

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

--
-- Table structure for table `active_track_log`
--

CREATE TABLE IF NOT EXISTS `active_track_log` (
  `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
  `date` datetime DEFAULT NULL,
  `groups` varchar(128) DEFAULT NULL,
  `computer` varchar(128) DEFAULT NULL,
  `user` varchar(128) DEFAULT NULL,
  `first_activity` datetime DEFAULT NULL,
  `last_activity` datetime DEFAULT NULL,
  `last_activity_log` datetime DEFAULT NULL,
  `active_time` int(11) UNSIGNED DEFAULT NULL,
  `productive` int(55) UNSIGNED DEFAULT NULL,
  `unproductive` int(11) UNSIGNED DEFAULT NULL,
  `undefined` int(11) UNSIGNED DEFAULT NULL,
  `passive_time` int(11) UNSIGNED DEFAULT NULL,
  `total_time` int(11) UNSIGNED DEFAULT NULL,
  `productive_active` tinyint(3) UNSIGNED DEFAULT NULL,
  `productive_passive` tinyint(3) UNSIGNED DEFAULT NULL,
  `unproductive_active` tinyint(3) UNSIGNED DEFAULT NULL,
  `unproductive_passive` tinyint(3) UNSIGNED DEFAULT NULL,
  `undefined_active` tinyint(3) UNSIGNED DEFAULT NULL,
  `undefined_passive` tinyint(3) UNSIGNED DEFAULT NULL,
  `created_by` int(10) UNSIGNED DEFAULT NULL,
  `created_at` datetime DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `created_by` (`created_by`),
  KEY `date` (`date`),
  KEY `user` (`user`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `active_track_log`:
--

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

--
-- Table structure for table `activities`
--

CREATE TABLE IF NOT EXISTS `activities` (
  `act_id` bigint(20) UNSIGNED NOT NULL,
  `act_type` tinyint(3) UNSIGNED DEFAULT NULL,
  `act_date` date NOT NULL,
  `recruiter_id` int(10) UNSIGNED NOT NULL,
  `job_id` int(10) UNSIGNED DEFAULT NULL,
  `profile_id` int(10) UNSIGNED DEFAULT NULL,
  `client_id` int(10) UNSIGNED DEFAULT NULL,
  `placement_id` int(10) UNSIGNED DEFAULT NULL,
  `subm_id` bigint(20) UNSIGNED DEFAULT NULL,
  `workforce_id` int(10) UNSIGNED DEFAULT NULL,
  `subject` varchar(255) DEFAULT NULL,
  `body_text` text,
  `status_id` tinyint(3) UNSIGNED DEFAULT '1',
  `created_by` int(10) UNSIGNED NOT NULL,
  `created_at` datetime DEFAULT NULL,
  `updated_by` int(10) UNSIGNED DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `activities`:
--

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

--
-- Stand-in structure for view `all_placements`
-- (See below for the actual view)
--
DROP VIEW IF EXISTS `all_placements`;
CREATE TABLE IF NOT EXISTS `all_placements` (
`subid` int(10)
,`actual_start_date` date
,`actual_end_date` date
,`head_count` bigint(21)
,`actual_starts` decimal(25,0)
,`dopoffs` decimal(25,0)
,`billrate` decimal(30,2)
);

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

--
-- Table structure for table `attachments`
--

CREATE TABLE IF NOT EXISTS `attachments` (
  `att_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
  `recruiter_id` int(10) UNSIGNED DEFAULT NULL,
  `job_id` int(10) UNSIGNED DEFAULT NULL,
  `profile_id` int(10) UNSIGNED DEFAULT NULL,
  `client_id` int(10) UNSIGNED DEFAULT NULL,
  `client_contact_id` int(10) UNSIGNED DEFAULT NULL,
  `placement_id` int(10) UNSIGNED DEFAULT NULL,
  `subm_id` bigint(20) UNSIGNED DEFAULT NULL,
  `workforce_id` int(10) UNSIGNED DEFAULT NULL,
  `sub_vendor_id` int(10) UNSIGNED DEFAULT NULL,
  `conrep_recordid` varchar(45) DEFAULT NULL,
  `conrep_tablename` varchar(255) DEFAULT NULL,
  `doc_type_id` int(10) UNSIGNED DEFAULT NULL,
  `doc_name` varchar(128) DEFAULT NULL,
  `file_name` varchar(255) DEFAULT NULL,
  `created_by` int(10) UNSIGNED DEFAULT NULL,
  `created_at` datetime DEFAULT NULL,
  `updated_by` int(10) UNSIGNED DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`att_id`),
  KEY `created_by` (`created_by`),
  KEY `updated_by` (`updated_by`),
  KEY `job_id` (`job_id`),
  KEY `profile_id` (`profile_id`),
  KEY `recruiter_id` (`recruiter_id`),
  KEY `doc_type_id` (`doc_type_id`),
  KEY `client_id` (`client_id`),
  KEY `placement_id` (`placement_id`),
  KEY `subm_id` (`subm_id`),
  KEY `workforce_id` (`workforce_id`),
  KEY `sub_vendor_id` (`sub_vendor_id`),
  KEY `conrep_recordid` (`conrep_recordid`),
  KEY `conrep_tablename` (`conrep_tablename`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `attachments`:
--

--
-- Dumping data for table `attachments`
--

INSERT INTO `attachments` (`att_id`, `recruiter_id`, `job_id`, `profile_id`, `client_id`, `client_contact_id`, `placement_id`, `subm_id`, `workforce_id`, `sub_vendor_id`, `conrep_recordid`, `conrep_tablename`, `doc_type_id`, `doc_name`, `file_name`, `created_by`, `created_at`, `updated_by`, `updated_at`) VALUES
(1, NULL, 2, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 312, 'sample', 'uploads/job-docs/2021/12/sample_084013_ccpace_details.png', 3, '2021-12-13 08:40:13', NULL, '2021-12-13 03:10:13'),
(2, NULL, 2, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 125, 'document', 'uploads/job-docs/2021/12/document_234504_2021-09-23_App Icons.pdf', 3, '2021-12-13 23:44:17', 3, '2021-12-13 18:15:04'),
(3, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 305, 'docuument', 'uploads/client-docs/2021/12/docuument_011946_7_015345_5823.docx', 4, '2021-12-15 01:19:46', NULL, '2021-12-14 19:49:46'),
(4, NULL, NULL, 7, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 202, 'resume', 'uploads/profile-docs/2021/12/resume_021024_7_015440_3419.docx', 4, '2021-12-15 02:10:24', NULL, '2021-12-14 20:40:24'),
(6, NULL, NULL, 5, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 201, 'docuument5', 'uploads/profile-docs/2021/12/docuument5_021336_Screenshot (11).png', 4, '2021-12-15 02:12:22', 4, '2021-12-14 20:43:36'),
(7, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 313, 'docuument', 'uploads/job-docs/2021/12/docuument_043641_Screenshot (5).png', 4, '2021-12-15 04:36:41', 4, '2021-12-14 23:07:10'),
(8, NULL, NULL, 10, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 202, 'Resume', 'uploads/profile-docs/2023/01/Resume_191955_php-developer-1544790259.pdf', 3, '2023-01-17 19:19:55', NULL, '2023-01-17 13:49:55');

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

--
-- Table structure for table `attorney_agents`
--

CREATE TABLE IF NOT EXISTS `attorney_agents` (
  `id` smallint(5) UNSIGNED NOT NULL AUTO_INCREMENT,
  `firm_name` varchar(128) NOT NULL,
  `name` varchar(128) NOT NULL,
  `email` varchar(128) DEFAULT NULL,
  `phone` varchar(32) DEFAULT NULL,
  `fee` decimal(8,2) DEFAULT NULL,
  `addr_line1` varchar(128) DEFAULT NULL,
  `addr_line2` varchar(128) DEFAULT NULL,
  `city` varchar(64) DEFAULT NULL,
  `state_id` int(10) UNSIGNED DEFAULT NULL,
  `country_id` int(10) UNSIGNED DEFAULT NULL,
  `zipcode` varchar(8) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `state_id` (`state_id`),
  KEY `country_id` (`country_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `attorney_agents`:
--

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

--
-- Table structure for table `bad_debts`
--

CREATE TABLE IF NOT EXISTS `bad_debts` (
  `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  `client_id` int(10) UNSIGNED DEFAULT NULL,
  `memo_desc` text,
  `invoice` varchar(128) DEFAULT NULL,
  `date` date DEFAULT NULL,
  `due_date` date DEFAULT NULL,
  `hours` varchar(32) DEFAULT NULL,
  `rate` varchar(32) DEFAULT NULL,
  `past_due` varchar(32) DEFAULT NULL,
  `amount` varchar(32) DEFAULT NULL,
  `journal_entry` varchar(32) DEFAULT NULL,
  `journal_entry_date` date DEFAULT NULL,
  `comment` varchar(255) DEFAULT NULL,
  `created_by` int(10) UNSIGNED NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_by` int(10) UNSIGNED DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `client_id` (`client_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `bad_debts`:
--

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

--
-- Table structure for table `bdm_assigned_recruiters_temp`
--

CREATE TABLE IF NOT EXISTS `bdm_assigned_recruiters_temp` (
  `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  `bdm_id` int(10) UNSIGNED NOT NULL,
  `recruiter_id` int(10) UNSIGNED NOT NULL,
  `status_id` tinyint(3) NOT NULL DEFAULT '1',
  `role_id` int(10) DEFAULT NULL,
  `user_is_typing` int(11) DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `bdm_id` (`bdm_id`),
  KEY `recruiter_id` (`recruiter_id`)
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `bdm_assigned_recruiters_temp`:
--

--
-- Dumping data for table `bdm_assigned_recruiters_temp`
--

INSERT INTO `bdm_assigned_recruiters_temp` (`id`, `bdm_id`, `recruiter_id`, `status_id`, `role_id`, `user_is_typing`) VALUES
(1, 3, 5, 1, 8, 0),
(2, 5, 3, 1, 8, 0),
(3, 6, 7, 1, 8, 0),
(4, 6, 3, 1, 8, 0),
(5, 6, 8, 1, 8, 0),
(6, 6, 5, 1, 8, 0),
(7, 6, 4, 1, 8, 0),
(8, 7, 6, 1, 8, 0),
(9, 3, 6, 1, 8, 0),
(10, 8, 6, 1, 8, 0),
(11, 5, 6, 1, 8, 0),
(12, 4, 6, 1, 8, 0);

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

--
-- Table structure for table `bdm_performance_data`
--

CREATE TABLE IF NOT EXISTS `bdm_performance_data` (
  `id` int(50) NOT NULL AUTO_INCREMENT,
  `emp_id` int(25) NOT NULL,
  `employee_id` varchar(255) DEFAULT NULL,
  `target_year` int(50) DEFAULT NULL,
  `starts_month` int(50) DEFAULT NULL,
  `confirm_month` int(50) DEFAULT NULL,
  `w2_month` int(50) DEFAULT NULL,
  `c2c_month` int(50) DEFAULT NULL,
  `recruiter` int(50) DEFAULT NULL,
  `leads` int(50) DEFAULT NULL,
  `status_id` tinyint(5) NOT NULL,
  `perform_year` varchar(255) NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- RELATIONSHIPS FOR TABLE `bdm_performance_data`:
--

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

--
-- Table structure for table `bdm_targets`
--

CREATE TABLE IF NOT EXISTS `bdm_targets` (
  `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  `bdm_id` int(10) UNSIGNED NOT NULL,
  `assign_date` date NOT NULL,
  `target_starts` tinyint(3) UNSIGNED NOT NULL DEFAULT '0',
  `rec_type` tinyint(1) UNSIGNED DEFAULT NULL,
  `created_by` int(10) UNSIGNED NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_by` int(10) UNSIGNED DEFAULT NULL,
  `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `bdm_id` (`bdm_id`),
  KEY `assign_date` (`assign_date`),
  KEY `rec_type` (`rec_type`),
  KEY `created_by` (`created_by`),
  KEY `updated_by` (`updated_by`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `bdm_targets`:
--

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

--
-- Table structure for table `bulk_email`
--

CREATE TABLE IF NOT EXISTS `bulk_email` (
  `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  `subject` varchar(255) NOT NULL,
  `mail_text` text NOT NULL,
  `group_id` varchar(32) DEFAULT NULL COMMENT '1-USM W2 Billing ,2- USM W2 Non Billing, 3-Active C2C, 4- Active 1099, 5 Others',
  `cc_emails` varchar(500) DEFAULT NULL,
  `status_id` tinyint(1) UNSIGNED NOT NULL DEFAULT '0' COMMENT '0-Not Started, 1-Started, 2- Completed',
  `created_by` int(10) UNSIGNED NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `status_id` (`status_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `bulk_email`:
--

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

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

CREATE TABLE IF NOT EXISTS `categories` (
  `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- RELATIONSHIPS FOR TABLE `categories`:
--

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

INSERT INTO `categories` (`id`, `name`, `created_at`, `updated_at`) VALUES
(1, 'PHP', '2022-12-09 10:18:34', '2022-12-09 10:18:58'),
(2, 'JAVA', '2022-12-09 10:18:34', '2022-12-09 10:18:58'),
(3, 'MYSQL', '2022-12-09 10:18:34', '2022-12-09 10:18:58'),
(4, 'HTML', '2022-12-09 10:18:34', '2022-12-09 10:18:58'),
(5, 'SQL', '2022-12-09 10:18:34', '2022-12-09 10:18:58'),
(6, 'OOPS', '2022-12-09 10:18:34', '2022-12-09 10:18:58'),
(7, 'CSS', '2022-12-09 10:18:34', '2022-12-09 10:18:58'),
(8, 'Ajax', '2022-12-09 10:18:34', '2022-12-09 10:18:58'),
(9, 'JQuery', '2022-12-09 10:18:34', '2022-12-09 10:18:58');

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

--
-- Table structure for table `chat_group`
--

CREATE TABLE IF NOT EXISTS `chat_group` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `group_name` varchar(255) NOT NULL,
  `status` tinyint(3) DEFAULT '1',
  `created_by` int(10) UNSIGNED NOT NULL,
  `updated_by` int(10) UNSIGNED DEFAULT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `chat_group`:
--

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

--
-- Table structure for table `chat_group_messages`
--

CREATE TABLE IF NOT EXISTS `chat_group_messages` (
  `group_id` int(45) UNSIGNED DEFAULT NULL,
  `message_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
  `message` text CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `upload_doc` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `upload_path` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `doc_type` varchar(16) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `read_status` tinyint(1) UNSIGNED NOT NULL DEFAULT '0' COMMENT '0-Un Read, 1 Read',
  `posted_by` int(10) UNSIGNED DEFAULT NULL,
  `message_type` tinyint(3) DEFAULT NULL,
  `read_by` text,
  `created_at` datetime NOT NULL,
  `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`message_id`),
  KEY `posted_by` (`posted_by`),
  KEY `read_status` (`read_status`),
  KEY `doc_type` (`doc_type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `chat_group_messages`:
--

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

--
-- Table structure for table `chat_group_users`
--

CREATE TABLE IF NOT EXISTS `chat_group_users` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `group_id` int(11) UNSIGNED NOT NULL,
  `user_id` int(45) UNSIGNED DEFAULT NULL,
  `status` tinyint(3) DEFAULT '1',
  `removed_by` int(10) DEFAULT NULL,
  `added_by` int(10) DEFAULT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime DEFAULT NULL,
  `removed_at` datetime DEFAULT NULL,
  `user_is_typing` int(11) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `chat_group_users`:
--

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

--
-- Table structure for table `clients`
--

CREATE TABLE IF NOT EXISTS `clients` (
  `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  `cid` int(10) UNSIGNED DEFAULT NULL,
  `crm_client_id` int(10) UNSIGNED DEFAULT NULL,
  `clientid` varchar(32) DEFAULT NULL,
  `name` varchar(128) NOT NULL,
  `phone` varchar(32) DEFAULT NULL,
  `email` varchar(128) DEFAULT NULL,
  `mobile` varchar(16) DEFAULT NULL,
  `website` varchar(128) DEFAULT NULL,
  `net_terms` varchar(64) DEFAULT NULL,
  `discount` decimal(4,2) DEFAULT NULL,
  `standing` varchar(64) DEFAULT NULL,
  `bdm_id` int(10) UNSIGNED DEFAULT NULL,
  `owner` varchar(128) DEFAULT NULL,
  `client_manager` varchar(128) DEFAULT NULL,
  `country_id` int(10) UNSIGNED DEFAULT NULL,
  `state_id` int(10) UNSIGNED DEFAULT NULL,
  `city` varchar(128) DEFAULT NULL,
  `zipcode` varchar(8) DEFAULT NULL,
  `client_type` varchar(128) DEFAULT NULL,
  `client_type_id` smallint(5) UNSIGNED DEFAULT NULL,
  `address` varchar(255) DEFAULT NULL,
  `status` varchar(64) DEFAULT NULL,
  `status_id` int(10) UNSIGNED DEFAULT NULL,
  `status_color` varchar(8) DEFAULT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `createdby` varchar(128) DEFAULT NULL,
  `updatedby` varchar(128) DEFAULT NULL,
  `created_by` int(10) UNSIGNED DEFAULT NULL,
  `updated_by` int(10) UNSIGNED DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `cid` (`cid`),
  KEY `bdm_id` (`bdm_id`),
  KEY `country_id` (`country_id`),
  KEY `state_id` (`state_id`),
  KEY `clientid` (`clientid`),
  KEY `name` (`name`),
  KEY `created_by` (`created_by`),
  KEY `crm_client_id` (`crm_client_id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `clients`:
--

--
-- Dumping data for table `clients`
--

INSERT INTO `clients` (`id`, `cid`, `crm_client_id`, `clientid`, `name`, `phone`, `email`, `mobile`, `website`, `net_terms`, `discount`, `standing`, `bdm_id`, `owner`, `client_manager`, `country_id`, `state_id`, `city`, `zipcode`, `client_type`, `client_type_id`, `address`, `status`, `status_id`, `status_color`, `created_at`, `updated_at`, `createdby`, `updatedby`, `created_by`, `updated_by`) VALUES
(1, 1, NULL, NULL, 'USM Infra', '9573755152', NULL, NULL, 'http://usminfra.com', '25000', '25.00', '25', 3, NULL, NULL, 101, 38, 'hude', '50130', NULL, 61, 'hyder', NULL, 1, NULL, '2021-12-08 04:22:38', '2021-12-13 20:36:03', NULL, NULL, 1, 3),
(2, 2, NULL, NULL, 'usm software', '7989383108', 'nandurinitish@gmail.com', NULL, 'http://www.usmsofywares.com', NULL, '53.00', NULL, 3, NULL, NULL, 101, 7, 'hyderabad', NULL, NULL, 62, NULL, NULL, 1, NULL, '2021-12-14 02:07:30', '2021-12-13 20:42:24', NULL, NULL, 3, 3);

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

--
-- Table structure for table `clients_tmp`
--

CREATE TABLE IF NOT EXISTS `clients_tmp` (
  `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  `cid` int(10) UNSIGNED DEFAULT NULL,
  `crm_client_id` int(10) UNSIGNED DEFAULT NULL,
  `clientid` varchar(32) DEFAULT NULL,
  `name` varchar(128) NOT NULL,
  `phone` varchar(32) DEFAULT NULL,
  `email` varchar(128) DEFAULT NULL,
  `mobile` varchar(16) DEFAULT NULL,
  `website` varchar(128) DEFAULT NULL,
  `net_terms` varchar(64) DEFAULT NULL,
  `discount` decimal(4,2) DEFAULT NULL,
  `standing` varchar(64) DEFAULT NULL,
  `bdm_id` int(10) UNSIGNED DEFAULT NULL,
  `owner` varchar(128) DEFAULT NULL,
  `client_manager` varchar(128) DEFAULT NULL,
  `country_id` int(10) UNSIGNED DEFAULT NULL,
  `state_id` int(10) UNSIGNED DEFAULT NULL,
  `city` varchar(128) DEFAULT NULL,
  `zipcode` varchar(8) DEFAULT NULL,
  `client_type` varchar(128) DEFAULT NULL,
  `client_type_id` smallint(5) UNSIGNED DEFAULT NULL,
  `address` varchar(255) DEFAULT NULL,
  `status` varchar(64) DEFAULT NULL,
  `status_id` int(10) UNSIGNED DEFAULT NULL,
  `status_color` varchar(8) DEFAULT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `createdby` varchar(128) DEFAULT NULL,
  `updatedby` varchar(128) DEFAULT NULL,
  `created_by` int(10) UNSIGNED DEFAULT NULL,
  `updated_by` int(10) UNSIGNED DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `cid` (`cid`),
  KEY `bdm_id` (`bdm_id`),
  KEY `country_id` (`country_id`),
  KEY `state_id` (`state_id`),
  KEY `clientid` (`clientid`),
  KEY `name` (`name`),
  KEY `created_by` (`created_by`),
  KEY `crm_client_id` (`crm_client_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `clients_tmp`:
--

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

--
-- Table structure for table `config_bdm_commission`
--

CREATE TABLE IF NOT EXISTS `config_bdm_commission` (
  `id` smallint(5) UNSIGNED NOT NULL AUTO_INCREMENT,
  `bdm_id` int(10) UNSIGNED NOT NULL,
  `desg_id` smallint(5) UNSIGNED NOT NULL COMMENT 'BDM, Sales BDM',
  `type_id` tinyint(1) UNSIGNED NOT NULL COMMENT '1-BDM, 2-Recruiter',
  `min` decimal(4,2) UNSIGNED NOT NULL,
  `max` decimal(4,2) UNSIGNED DEFAULT NULL,
  `comm_perc` decimal(4,2) UNSIGNED NOT NULL,
  `start_date` date NOT NULL,
  `end_date` date DEFAULT NULL,
  `changed_by` int(10) UNSIGNED DEFAULT NULL,
  `changed_date` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `bdm_id` (`bdm_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `config_bdm_commission`:
--

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

--
-- Table structure for table `config_burden`
--

CREATE TABLE IF NOT EXISTS `config_burden` (
  `id` smallint(5) UNSIGNED NOT NULL AUTO_INCREMENT,
  `emp_type_id` smallint(5) UNSIGNED NOT NULL,
  `visa_types` varchar(128) DEFAULT NULL,
  `cost_type` varchar(64) DEFAULT NULL,
  `burden_perc` decimal(4,2) UNSIGNED NOT NULL,
  `start_date` date NOT NULL,
  `end_date` date DEFAULT NULL,
  `changed_by` int(10) UNSIGNED DEFAULT NULL,
  `changed_date` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `emp_type_id` (`emp_type_id`),
  KEY `changed_by` (`changed_by`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `config_burden`:
--

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

--
-- Table structure for table `config_commission`
--

CREATE TABLE IF NOT EXISTS `config_commission` (
  `id` smallint(5) UNSIGNED NOT NULL AUTO_INCREMENT,
  `desg_id` smallint(5) UNSIGNED NOT NULL COMMENT 'BDM, Sales BDM, Recruiter',
  `type_id` tinyint(1) UNSIGNED NOT NULL COMMENT '1-BDM, 2-Recruiter',
  `min` decimal(4,2) UNSIGNED NOT NULL,
  `max` decimal(4,2) UNSIGNED DEFAULT NULL,
  `comm_perc` decimal(4,2) UNSIGNED NOT NULL,
  `start_date` date NOT NULL,
  `end_date` date DEFAULT NULL,
  `changed_by` int(10) UNSIGNED DEFAULT NULL,
  `changed_date` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `desg_id` (`desg_id`),
  KEY `type_id` (`type_id`),
  KEY `changed_by` (`changed_by`),
  KEY `min` (`min`),
  KEY `max` (`max`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `config_commission`:
--

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

--
-- Table structure for table `config_targets`
--

CREATE TABLE IF NOT EXISTS `config_targets` (
  `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  `internal_subm` smallint(5) UNSIGNED DEFAULT NULL,
  `client_subm` smallint(5) UNSIGNED DEFAULT NULL,
  `vendor_interview` smallint(5) UNSIGNED DEFAULT NULL,
  `client_interview` smallint(5) UNSIGNED DEFAULT NULL,
  `confirmation` tinyint(3) UNSIGNED DEFAULT NULL,
  `type` tinyint(3) UNSIGNED DEFAULT NULL COMMENT '0-Recruiting, 1-Channel Sales',
  `status_id` tinyint(1) UNSIGNED DEFAULT NULL COMMENT '1-Active, 2-Inactive',
  `target_from_date` date DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `type` (`type`),
  KEY `status_id` (`status_id`),
  KEY `target_from_date` (`target_from_date`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `config_targets`:
--

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

--
-- Table structure for table `conrep_new_attachments`
--

CREATE TABLE IF NOT EXISTS `conrep_new_attachments` (
  `attachmentid` varchar(255) CHARACTER SET utf8 DEFAULT NULL,
  `tableid` varchar(255) CHARACTER SET utf8 DEFAULT NULL,
  `recordid` varchar(255) CHARACTER SET utf8 DEFAULT NULL,
  `tablename` varchar(255) CHARACTER SET utf8 DEFAULT NULL,
  `fieldid` varchar(255) CHARACTER SET utf8 DEFAULT NULL,
  `filepath` varchar(255) CHARACTER SET utf8 DEFAULT NULL,
  `categoryid` varchar(255) CHARACTER SET utf8 DEFAULT NULL,
  `categoryname` varchar(255) CHARACTER SET utf8 DEFAULT NULL,
  `doc_type_id` smallint(5) UNSIGNED DEFAULT NULL,
  `documentname` varchar(255) CHARACTER SET utf8 DEFAULT NULL,
  `expirydate` varchar(255) CHARACTER SET utf8 DEFAULT NULL,
  `modifieddate` varchar(255) CHARACTER SET utf8 DEFAULT NULL,
  `modifiedbyid` varchar(255) CHARACTER SET utf8 DEFAULT NULL,
  `createddate` varchar(255) CHARACTER SET utf8 DEFAULT NULL,
  `createdbyid` varchar(255) CHARACTER SET utf8 DEFAULT NULL,
  `recordname` varchar(255) CHARACTER SET utf8 DEFAULT NULL,
  `cltid` varchar(255) CHARACTER SET utf8 DEFAULT NULL,
  `companyname` varchar(255) CHARACTER SET utf8 DEFAULT NULL,
  `empcd` varchar(255) CHARACTER SET utf8 DEFAULT NULL,
  `created_by` int(10) UNSIGNED DEFAULT NULL,
  `updated_by` int(10) UNSIGNED DEFAULT NULL,
  KEY `recordid` (`recordid`),
  KEY `createdbyid` (`createdbyid`),
  KEY `modifiedbyid` (`modifiedbyid`),
  KEY `tablename` (`tablename`),
  KEY `documentname` (`documentname`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- RELATIONSHIPS FOR TABLE `conrep_new_attachments`:
--

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

--
-- Table structure for table `conrep_new_work_force`
--

CREATE TABLE IF NOT EXISTS `conrep_new_work_force` (
  `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  `tableid` varchar(10) DEFAULT NULL,
  `employeeid` varchar(255) DEFAULT NULL,
  `division` varchar(10) DEFAULT NULL,
  `firstname` varchar(255) DEFAULT NULL,
  `middlename` varchar(255) DEFAULT NULL,
  `lastname` varchar(255) DEFAULT NULL,
  `gender` varchar(10) DEFAULT NULL,
  `socialsecurity` varchar(255) DEFAULT NULL,
  `payrollid` varchar(255) DEFAULT NULL,
  `joiningdate` varchar(255) DEFAULT NULL,
  `terminationdate` varchar(255) DEFAULT NULL,
  `workphone` varchar(255) DEFAULT NULL,
  `workphoneextn` varchar(255) DEFAULT NULL,
  `mobilephone` varchar(255) DEFAULT NULL,
  `homephone` varchar(255) DEFAULT NULL,
  `email` varchar(255) DEFAULT NULL,
  `alternateemail` varchar(255) DEFAULT NULL,
  `addressline1` varchar(255) DEFAULT NULL,
  `addressline2` varchar(255) DEFAULT NULL,
  `city` varchar(255) DEFAULT NULL,
  `statecode` varchar(32) DEFAULT NULL,
  `statename` varchar(32) DEFAULT NULL,
  `country` varchar(10) DEFAULT NULL,
  `zipcode` varchar(32) DEFAULT NULL,
  `legalstatus` varchar(255) DEFAULT NULL,
  `maritalstatus` varchar(255) DEFAULT NULL,
  `employeetype` varchar(255) DEFAULT NULL,
  `department` varchar(255) DEFAULT NULL,
  `healthinsreqd` varchar(255) DEFAULT NULL,
  `citizencountry` varchar(255) DEFAULT NULL,
  `hotlistgroup` varchar(255) DEFAULT NULL,
  `shipcountry` varchar(255) DEFAULT NULL,
  `insdeclinereason` varchar(255) DEFAULT NULL,
  `birthdate` varchar(16) DEFAULT NULL,
  `modifieddate` varchar(32) DEFAULT NULL,
  `modifiedbyid` varchar(32) DEFAULT NULL,
  `createddate` varchar(32) DEFAULT NULL,
  `createdbyid` varchar(32) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `conrep_new_work_force`:
--

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

--
-- Table structure for table `conrep_placements`
--

CREATE TABLE IF NOT EXISTS `conrep_placements` (
  `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  `tableid` varchar(255) DEFAULT NULL,
  `placementid` varchar(255) DEFAULT NULL,
  `clientid` varchar(255) DEFAULT NULL,
  `clientcontactid` varchar(255) DEFAULT NULL,
  `employeeid` varchar(255) DEFAULT NULL,
  `requirementid` varchar(255) DEFAULT NULL,
  `submissionid` varchar(255) DEFAULT NULL,
  `costcenter` varchar(255) DEFAULT NULL,
  `clientcontactname` varchar(255) DEFAULT NULL,
  `vendorname` varchar(255) DEFAULT NULL,
  `vendorcontactname` varchar(255) DEFAULT NULL,
  `salesrep` varchar(255) DEFAULT NULL,
  `recruitername` varchar(255) DEFAULT NULL,
  `recruitinglead` varchar(255) DEFAULT NULL,
  `recruitingmanager` varchar(255) DEFAULT NULL,
  `saleslead` varchar(255) DEFAULT NULL,
  `salesmanager` varchar(255) DEFAULT NULL,
  `hrmanager` varchar(255) DEFAULT NULL,
  `candidatename` varchar(255) DEFAULT NULL,
  `billrate` varchar(255) DEFAULT NULL,
  `overtimerate` varchar(255) DEFAULT NULL,
  `doubletimerate` varchar(255) DEFAULT NULL,
  `city` varchar(255) DEFAULT NULL,
  `state` varchar(255) DEFAULT NULL,
  `country` varchar(255) DEFAULT NULL,
  `industry` varchar(255) DEFAULT NULL,
  `billrateperiod` varchar(255) DEFAULT NULL,
  `timesheetcycle` varchar(255) DEFAULT NULL,
  `invoicecycle` varchar(255) DEFAULT NULL,
  `startdate` varchar(255) DEFAULT NULL,
  `enddate` varchar(255) DEFAULT NULL,
  `scheduleenddate` varchar(255) DEFAULT NULL,
  `discountpercent` varchar(255) DEFAULT NULL,
  `discountamount` varchar(255) DEFAULT NULL,
  `standardhours` varchar(255) DEFAULT NULL,
  `endclientname` varchar(255) DEFAULT NULL,
  `endclienttext` varchar(255) DEFAULT NULL,
  `closeddate` varchar(255) DEFAULT NULL,
  `modifieddate` varchar(255) DEFAULT NULL,
  `modifiedbyid` varchar(255) DEFAULT NULL,
  `createddate` varchar(255) DEFAULT NULL,
  `createdbyid` varchar(255) DEFAULT NULL,
  `clientreftype1` varchar(255) DEFAULT NULL,
  `clientrefnumber1` varchar(255) DEFAULT NULL,
  `clientreftype2` varchar(255) DEFAULT NULL,
  `clientrefnumber2` varchar(255) DEFAULT NULL,
  `costtype1` varchar(255) DEFAULT NULL,
  `costtype2` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `conrep_placements`:
--

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

--
-- Stand-in structure for view `consultant_profile`
-- (See below for the actual view)
--
DROP VIEW IF EXISTS `consultant_profile`;
CREATE TABLE IF NOT EXISTS `consultant_profile` (
`w_id` int(10) unsigned
,`profile_id` int(10) unsigned
,`fullname` varchar(330)
,`w_phone` varchar(128)
,`w_email` varchar(128)
,`w_exp` varchar(32)
,`w_city` varchar(128)
,`state_name` varchar(255)
,`visa_name` varchar(255)
,`p_comment` varchar(500)
,`p_end_date` date
,`p_start_date` date
,`p_bill_rate` decimal(8,2) unsigned
,`p_pay_rate` decimal(8,2)
,`project_desc` text
,`act_end_date` date
,`sm_name` varchar(128)
,`c_name` varchar(128)
,`address` varchar(255)
,`job_title` varchar(255)
,`client_state_name` varchar(255)
,`bdm_name` varchar(128)
,`poc_name` varchar(128)
,`poc_email` varchar(128)
,`poc_mobile` varchar(16)
,`courier_track_number` varchar(125)
);

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

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

CREATE TABLE IF NOT EXISTS `contacts` (
  `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  `cid` int(10) UNSIGNED DEFAULT NULL,
  `contact_id` int(10) UNSIGNED DEFAULT NULL,
  `clientid` varchar(100) DEFAULT NULL,
  `clientcontactid` varchar(100) DEFAULT NULL,
  `name` varchar(128) NOT NULL,
  `email` varchar(128) NOT NULL,
  `phone` varchar(100) DEFAULT NULL,
  `mobile` varchar(100) DEFAULT NULL,
  `phone_ext` varchar(16) DEFAULT NULL,
  `homephone` varchar(45) DEFAULT NULL,
  `fax` varchar(45) DEFAULT NULL,
  `address1` varchar(255) DEFAULT NULL,
  `address2` varchar(255) DEFAULT NULL,
  `city` varchar(255) DEFAULT NULL,
  `state_id` int(11) DEFAULT NULL,
  `country_id` int(11) DEFAULT NULL,
  `zipcode` varchar(45) DEFAULT NULL,
  `account_manager_id` varchar(100) DEFAULT NULL,
  `owner` varchar(128) NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `createdby` varchar(100) DEFAULT NULL,
  `updatedby` varchar(100) DEFAULT NULL,
  `created_by` int(10) UNSIGNED DEFAULT NULL,
  `updated_by` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `cid` (`cid`),
  KEY `contact_id` (`contact_id`),
  KEY `clientcontactid` (`clientcontactid`),
  KEY `clientid` (`clientid`) USING BTREE,
  KEY `createdby` (`createdby`),
  KEY `updatedby` (`updatedby`),
  KEY `created_by` (`created_by`),
  KEY `email` (`email`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `contacts`:
--

--
-- Dumping data for table `contacts`
--

INSERT INTO `contacts` (`id`, `cid`, `contact_id`, `clientid`, `clientcontactid`, `name`, `email`, `phone`, `mobile`, `phone_ext`, `homephone`, `fax`, `address1`, `address2`, `city`, `state_id`, `country_id`, `zipcode`, `account_manager_id`, `owner`, `created_at`, `updated_at`, `createdby`, `updatedby`, `created_by`, `updated_by`) VALUES
(1, 1, 1, NULL, NULL, 'Naresh Pawan', 'infra@gmail.com', '9874631254', '', NULL, NULL, NULL, '', '', '', 36, 101, '500018', '1', '', '2021-12-08 04:23:38', '2021-12-07 22:53:57', NULL, NULL, 1, NULL),
(2, 2, 2, NULL, NULL, 'nitish', 'nitish@gmail.com', '73309362688', '', NULL, NULL, NULL, '', '', '', 4, 101, '', '3', '', '2021-12-14 02:07:30', '2021-12-13 20:56:02', NULL, NULL, 3, NULL);

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

--
-- Table structure for table `countries`
--

CREATE TABLE IF NOT EXISTS `countries` (
  `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  `name` varchar(128) NOT NULL,
  `country_code` varchar(8) NOT NULL,
  `phone_code` smallint(6) NOT NULL,
  `region` varchar(128) DEFAULT NULL,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`),
  KEY `is_active` (`is_active`)
) ENGINE=InnoDB AUTO_INCREMENT=247 DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `countries`:
--

--
-- Dumping data for table `countries`
--

INSERT INTO `countries` (`id`, `name`, `country_code`, `phone_code`, `region`, `is_active`) VALUES
(1, 'Afghanistan', 'AF', 93, 'Asia', 1),
(2, 'Albania', 'AL', 355, 'Europe', 1),
(3, 'Algeria', 'DZ', 213, 'Africa', 1),
(4, 'American Samoa', 'AS', 1684, 'Oceania', 1),
(5, 'Andorra', 'AD', 376, 'Europe', 1),
(6, 'Angola', 'AO', 244, 'Africa', 1),
(7, 'Anguilla', 'AI', 1264, 'Caribbean', 1),
(8, 'Antarctica', 'AQ', 0, 'Antarctica', 1),
(9, 'Antigua And Barbuda', 'AG', 1268, 'Caribbean', 1),
(10, 'Argentina', 'AR', 54, 'South America', 1),
(11, 'Armenia', 'AM', 374, 'Asia', 1),
(12, 'Aruba', 'AW', 297, 'Caribbean', 1),
(13, 'Australia', 'AU', 61, 'Oceania', 1),
(14, 'Austria', 'AT', 43, 'Europe', 1),
(15, 'Azerbaijan', 'AZ', 994, 'Asia', 1),
(16, 'Bahamas The', 'BS', 1242, 'Caribbean', 1),
(17, 'Bahrain', 'BH', 973, 'Middle East', 1),
(18, 'Bangladesh', 'BD', 880, 'Asia', 1),
(19, 'Barbados', 'BB', 1246, 'Caribbean', 1),
(20, 'Belarus', 'BY', 375, 'Europe', 1),
(21, 'Belgium', 'BE', 32, 'Europe', 1),
(22, 'Belize', 'BZ', 501, 'Central America', 1),
(23, 'Benin', 'BJ', 229, 'Africa', 1),
(24, 'Bermuda', 'BM', 1441, 'North America', 1),
(25, 'Bhutan', 'BT', 975, 'Asia', 1),
(26, 'Bolivia', 'BO', 591, 'South America', 1),
(27, 'Bosnia and Herzegovina', 'BA', 387, 'Europe', 1),
(28, 'Botswana', 'BW', 267, 'Africa', 1),
(29, 'Bouvet Island', 'BV', 0, 'South America', 1),
(30, 'Brazil', 'BR', 55, 'South America', 1),
(31, 'British Indian Ocean Territory', 'IO', 246, 'Europe', 1),
(32, 'Brunei', 'BN', 673, 'Asia', 1),
(33, 'Bulgaria', 'BG', 359, 'Europe', 1),
(34, 'Burkina Faso', 'BF', 226, 'Africa', 1),
(35, 'Burundi', 'BI', 257, 'Africa', 1),
(36, 'Cambodia', 'KH', 855, 'Asia', 1),
(37, 'Cameroon', 'CM', 237, 'Africa', 1),
(38, 'Canada', 'CA', 1, 'North America', 1),
(39, 'Cape Verde', 'CV', 238, 'Africa', 1),
(40, 'Cayman Islands', 'KY', 1345, 'Caribbean', 1),
(41, 'Central African Republic', 'CF', 236, 'Africa', 1),
(42, 'Chad', 'TD', 235, 'Africa', 1),
(43, 'Chile', 'CL', 56, 'South America', 1),
(44, 'China', 'CN', 86, 'Asia', 1),
(45, 'Christmas Island', 'CX', 61, 'Asia', 1),
(46, 'Cocos (Keeling) Islands', 'CC', 672, 'Oceania', 1),
(47, 'Colombia', 'CO', 57, 'South America', 1),
(48, 'Comoros', 'KM', 269, 'Africa', 1),
(49, 'Republic Of The Congo', 'CG', 242, 'Africa', 1),
(50, 'Democratic Republic Of The Congo', 'CD', 242, 'Africa', 1),
(51, 'Cook Islands', 'CK', 682, 'Oceania', 1),
(52, 'Costa Rica', 'CR', 506, 'Central America', 1),
(53, 'Cote D\'Ivoire (Ivory Coast)', 'CI', 225, 'Africa', 1),
(54, 'Croatia (Hrvatska)', 'HR', 385, 'Europe', 1),
(55, 'Cuba', 'CU', 53, 'Caribbean', 1),
(56, 'Cyprus', 'CY', 357, 'Asia', 1),
(57, 'Czech Republic', 'CZ', 420, 'Europe', 1),
(58, 'Denmark', 'DK', 45, 'Europe', 1),
(59, 'Djibouti', 'DJ', 253, 'Africa', 1),
(60, 'Dominica', 'DM', 1767, 'Caribbean', 1),
(61, 'Dominican Republic', 'DO', 1809, 'Caribbean', 1),
(62, 'East Timor', 'TP', 670, 'Asia', 1),
(63, 'Ecuador', 'EC', 593, 'South America', 1),
(64, 'Egypt', 'EG', 20, 'Africa', 1),
(65, 'El Salvador', 'SV', 503, 'Central America', 1),
(66, 'Equatorial Guinea', 'GQ', 240, 'Africa', 1),
(67, 'Eritrea', 'ER', 291, 'Africa', 1),
(68, 'Estonia', 'EE', 372, 'Europe', 1),
(69, 'Ethiopia', 'ET', 251, 'Africa', 1),
(70, 'External Territories of Australia', 'XA', 61, 'Oceania', 1),
(71, 'Falkland Islands', 'FK', 500, 'South America', 1),
(72, 'Faroe Islands', 'FO', 298, 'Europe', 1),
(73, 'Fiji Islands', 'FJ', 679, 'Oceania', 1),
(74, 'Finland', 'FI', 358, 'Europe', 1),
(75, 'France', 'FR', 33, 'Europe', 1),
(76, 'French Guiana', 'GF', 594, 'South America', 1),
(77, 'French Polynesia', 'PF', 689, 'Oceania', 1),
(78, 'French Southern Territories', 'TF', 0, 'South America', 1),
(79, 'Gabon', 'GA', 241, 'Africa', 1),
(80, 'Gambia The', 'GM', 220, 'Africa', 1),
(81, 'Georgia', 'GE', 995, 'Asia', 1),
(82, 'Germany', 'DE', 49, 'Europe', 1),
(83, 'Ghana', 'GH', 233, 'Africa', 1),
(84, 'Gibraltar', 'GI', 350, 'Europe', 1),
(85, 'Greece', 'GR', 30, 'Europe', 1),
(86, 'Greenland', 'GL', 299, 'North America', 1),
(87, 'Grenada', 'GD', 1473, 'Caribbean', 1),
(88, 'Guadeloupe', 'GP', 590, 'Caribbean', 1),
(89, 'Guam', 'GU', 1671, 'Oceania', 1),
(90, 'Guatemala', 'GT', 502, 'Central America', 1),
(91, 'Guernsey and Alderney', 'XU', 44, 'Europe', 1),
(92, 'Guinea', 'GN', 224, 'Africa', 1),
(93, 'Guinea-Bissau', 'GW', 245, 'Africa', 1),
(94, 'Guyana', 'GY', 592, 'South America', 1),
(95, 'Haiti', 'HT', 509, 'Caribbean', 1),
(96, 'Heard and McDonald Islands', 'HM', 0, 'Oceania', 1),
(97, 'Honduras', 'HN', 504, 'Central America', 1),
(98, 'Hong Kong S.A.R.', 'HK', 852, 'Asia', 1),
(99, 'Hungary', 'HU', 36, 'Europe', 1),
(100, 'Iceland', 'IS', 354, 'Europe', 1),
(101, 'India', 'IN', 91, 'Asia', 1),
(102, 'Indonesia', 'ID', 62, 'Asia', 1),
(103, 'Iran', 'IR', 98, 'Middle East', 1),
(104, 'Iraq', 'IQ', 964, 'Middle East', 1),
(105, 'Ireland', 'IE', 353, 'Europe', 1),
(106, 'Israel', 'IL', 972, 'Middle East', 1),
(107, 'Italy', 'IT', 39, 'Europe', 1),
(108, 'Jamaica', 'JM', 1876, 'Caribbean', 1),
(109, 'Japan', 'JP', 81, 'Asia', 1),
(110, 'Jersey', 'XJ', 44, 'Europe', 1),
(111, 'Jordan', 'JO', 962, 'Middle East', 1),
(112, 'Kazakhstan', 'KZ', 7, 'Asia', 1),
(113, 'Kenya', 'KE', 254, 'Africa', 1),
(114, 'Kiribati', 'KI', 686, 'Oceania', 1),
(115, 'Korea North', 'KP', 850, 'Asia', 1),
(116, 'Korea South', 'KR', 82, 'Asia', 1),
(117, 'Kuwait', 'KW', 965, 'Middle East', 1),
(118, 'Kyrgyzstan', 'KG', 996, 'Asia', 1),
(119, 'Laos', 'LA', 856, 'Asia', 1),
(120, 'Latvia', 'LV', 371, 'Europe', 1),
(121, 'Lebanon', 'LB', 961, 'Middle East', 1),
(122, 'Lesotho', 'LS', 266, 'Africa', 1),
(123, 'Liberia', 'LR', 231, 'Africa', 1),
(124, 'Libya', 'LY', 218, 'Africa', 1),
(125, 'Liechtenstein', 'LI', 423, 'Europe', 1),
(126, 'Lithuania', 'LT', 370, 'Europe', 1),
(127, 'Luxembourg', 'LU', 352, 'Europe', 1),
(128, 'Macau S.A.R.', 'MO', 853, 'Asia', 1),
(129, 'Macedonia', 'MK', 389, 'Europe', 1),
(130, 'Madagascar', 'MG', 261, 'Africa', 1),
(131, 'Malawi', 'MW', 265, 'Africa', 1),
(132, 'Malaysia', 'MY', 60, 'Asia', 1),
(133, 'Maldives', 'MV', 960, 'Asia', 1),
(134, 'Mali', 'ML', 223, 'Africa', 1),
(135, 'Malta', 'MT', 356, 'Europe', 1),
(136, 'Man (Isle of)', 'XM', 44, 'Caribbean', 1),
(137, 'Marshall Islands', 'MH', 692, 'Oceania', 1),
(138, 'Martinique', 'MQ', 596, 'Caribbean', 1),
(139, 'Mauritania', 'MR', 222, 'Africa', 1),
(140, 'Mauritius', 'MU', 230, 'Africa', 1),
(141, 'Mayotte', 'YT', 269, 'Africa', 1),
(142, 'Mexico', 'MX', 52, 'North America', 1),
(143, 'Micronesia', 'FM', 691, 'Oceania', 1),
(144, 'Moldova', 'MD', 373, 'Europe', 1),
(145, 'Monaco', 'MC', 377, 'Europe', 1),
(146, 'Mongolia', 'MN', 976, 'Asia', 1),
(147, 'Montserrat', 'MS', 1664, 'Caribbean', 1),
(148, 'Morocco', 'MA', 212, 'Africa', 1),
(149, 'Mozambique', 'MZ', 258, 'Africa', 1),
(150, 'Myanmar', 'MM', 95, 'Asia', 1),
(151, 'Namibia', 'NA', 264, 'Africa', 1),
(152, 'Nauru', 'NR', 674, 'Oceania', 1),
(153, 'Nepal', 'NP', 977, 'Asia', 1),
(154, 'Netherlands Antilles', 'AN', 599, 'Caribbean', 1),
(155, 'Netherlands The', 'NL', 31, 'Europe', 1),
(156, 'New Caledonia', 'NC', 687, 'Oceania', 1),
(157, 'New Zealand', 'NZ', 64, 'Oceania', 1),
(158, 'Nicaragua', 'NI', 505, 'Central America', 1),
(159, 'Niger', 'NE', 227, 'Africa', 1),
(160, 'Nigeria', 'NG', 234, 'Africa', 1),
(161, 'Niue', 'NU', 683, 'Oceania', 1),
(162, 'Norfolk Island', 'NF', 672, 'Oceania', 1),
(163, 'Northern Mariana Islands', 'MP', 1670, 'Oceania', 1),
(164, 'Norway', 'NO', 47, 'Europe', 1),
(165, 'Oman', 'OM', 968, 'Middle East', 1),
(166, 'Pakistan', 'PK', 92, 'Asia', 1),
(167, 'Palau', 'PW', 680, 'Oceania', 1),
(168, 'Palestinian Territory Occupied', 'PS', 970, 'Middle East', 1),
(169, 'Panama', 'PA', 507, 'Central America', 1),
(170, 'Papua new Guinea', 'PG', 675, 'Oceania', 1),
(171, 'Paraguay', 'PY', 595, 'South America', 1),
(172, 'Peru', 'PE', 51, 'South America', 1),
(173, 'Philippines', 'PH', 63, 'Asia', 1),
(174, 'Pitcairn Island', 'PN', 0, 'Oceania', 1),
(175, 'Poland', 'PL', 48, 'Europe', 1),
(176, 'Portugal', 'PT', 351, 'Europe', 1),
(177, 'Puerto Rico', 'PR', 1787, 'Caribbean', 1),
(178, 'Qatar', 'QA', 974, 'Middle East', 1),
(179, 'Reunion', 'RE', 262, 'Asia', 1),
(180, 'Romania', 'RO', 40, 'Europe', 1),
(181, 'Russia', 'RU', 70, 'Europe', 1),
(182, 'Rwanda', 'RW', 250, 'Africa', 1),
(183, 'Saint Helena', 'SH', 290, 'South America', 1),
(184, 'Saint Kitts And Nevis', 'KN', 1869, 'Caribbean', 1),
(185, 'Saint Lucia', 'LC', 1758, 'Caribbean', 1),
(186, 'Saint Pierre and Miquelon', 'PM', 508, 'South America', 1),
(187, 'Saint Vincent And The Grenadines', 'VC', 1784, 'Caribbean', 1),
(188, 'Samoa', 'WS', 684, 'Oceania', 1),
(189, 'San Marino', 'SM', 378, 'Europe', 1),
(190, 'Sao Tome and Principe', 'ST', 239, 'Africa', 1),
(191, 'Saudi Arabia', 'SA', 966, 'Middle East', 1),
(192, 'Senegal', 'SN', 221, 'Africa', 1),
(193, 'Serbia', 'RS', 381, 'Europe', 1),
(194, 'Seychelles', 'SC', 248, 'Africa', 1),
(195, 'Sierra Leone', 'SL', 232, 'Africa', 1),
(196, 'Singapore', 'SG', 65, 'Asia', 1),
(197, 'Slovakia', 'SK', 421, 'Europe', 1),
(198, 'Slovenia', 'SI', 386, 'Europe', 1),
(199, 'Smaller Territories of the UK', 'XG', 44, 'Europe', 1),
(200, 'Solomon Islands', 'SB', 677, 'Oceania', 1),
(201, 'Somalia', 'SO', 252, 'Africa', 1),
(202, 'South Africa', 'ZA', 27, 'Africa', 1),
(203, 'South Georgia', 'GS', 0, 'South America', 1),
(204, 'South Sudan', 'SS', 211, 'Africa', 1),
(205, 'Spain', 'ES', 34, 'Europe', 1),
(206, 'Sri Lanka', 'LK', 94, 'Asia', 1),
(207, 'Sudan', 'SD', 249, 'Africa', 1),
(208, 'Suriname', 'SR', 597, 'South America', 1),
(209, 'Svalbard And Jan Mayen Islands', 'SJ', 47, 'Europe', 1),
(210, 'Swaziland', 'SZ', 268, 'Africa', 1),
(211, 'Sweden', 'SE', 46, 'Europe', 1),
(212, 'Switzerland', 'CH', 41, 'Europe', 1),
(213, 'Syria', 'SY', 963, 'Middle East', 1),
(214, 'Taiwan', 'TW', 886, 'Asia', 1),
(215, 'Tajikistan', 'TJ', 992, 'Asia', 1),
(216, 'Tanzania', 'TZ', 255, 'Africa', 1),
(217, 'Thailand', 'TH', 66, 'Asia', 1),
(218, 'Togo', 'TG', 228, 'Africa', 1),
(219, 'Tokelau', 'TK', 690, 'Oceania', 1),
(220, 'Tonga', 'TO', 676, 'Oceania', 1),
(221, 'Trinidad And Tobago', 'TT', 1868, 'South America', 1),
(222, 'Tunisia', 'TN', 216, 'Africa', 1),
(223, 'Turkey', 'TR', 90, 'Europe', 1),
(224, 'Turkmenistan', 'TM', 7370, 'Asia', 1),
(225, 'Turks And Caicos Islands', 'TC', 1649, 'Caribbean', 1),
(226, 'Tuvalu', 'TV', 688, 'Oceania', 1),
(227, 'Uganda', 'UG', 256, 'Africa', 1),
(228, 'Ukraine', 'UA', 380, 'Europe', 1),
(229, 'United Arab Emirates', 'AE', 971, 'Middle East', 1),
(230, 'United Kingdom', 'GB', 44, 'Europe', 1),
(231, 'United States', 'US', 1, 'North America', 1),
(232, 'United States Minor Outlying Islands', 'UM', 1, 'North America', 1),
(233, 'Uruguay', 'UY', 598, 'South America', 1),
(234, 'Uzbekistan', 'UZ', 998, 'Asia', 1),
(235, 'Vanuatu', 'VU', 678, 'Oceania', 1),
(236, 'Vatican City State (Holy See)', 'VA', 39, 'Europe', 1),
(237, 'Venezuela', 'VE', 58, 'South America', 1),
(238, 'Vietnam', 'VN', 84, 'Asia', 1),
(239, 'Virgin Islands (British)', 'VG', 1284, 'Caribbean', 1),
(240, 'Virgin Islands (US)', 'VI', 1340, 'Caribbean', 1),
(241, 'Wallis And Futuna Islands', 'WF', 681, 'Oceania', 1),
(242, 'Western Sahara', 'EH', 212, 'Africa', 1),
(243, 'Yemen', 'YE', 967, 'Middle East', 1),
(244, 'Yugoslavia', 'YU', 38, 'Europe', 1),
(245, 'Zambia', 'ZM', 260, 'Africa', 1),
(246, 'Zimbabwe', 'ZW', 263, 'Africa', 1);

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

--
-- Table structure for table `deleted_confirmations`
--

CREATE TABLE IF NOT EXISTS `deleted_confirmations` (
  `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  `confirm_id` int(10) UNSIGNED NOT NULL,
  `profile_id` int(10) UNSIGNED NOT NULL,
  `subm_id` int(10) UNSIGNED NOT NULL COMMENT 'submission id',
  `job_id` int(10) UNSIGNED NOT NULL,
  `confirm_date` date NOT NULL,
  `confirm_by` int(10) UNSIGNED NOT NULL,
  `start_date` date NOT NULL,
  `sch_end_date` date DEFAULT NULL,
  `bill_rate` decimal(9,2) NOT NULL,
  `billrate_type_id` int(10) UNSIGNED DEFAULT NULL,
  `pay_rate` decimal(9,2) NOT NULL,
  `payrate_type_id` int(10) UNSIGNED DEFAULT NULL,
  `cost_type` smallint(5) UNSIGNED DEFAULT NULL COMMENT 'Pay Type or Cost Type',
  `salary` decimal(9,2) UNSIGNED DEFAULT NULL,
  `recruiter_id` int(10) UNSIGNED NOT NULL,
  `sub_vendor_id` int(10) UNSIGNED DEFAULT NULL,
  `vendor_contact_id` int(10) UNSIGNED DEFAULT NULL,
  `bdm_id` int(10) UNSIGNED NOT NULL,
  `rm_id` int(10) UNSIGNED DEFAULT NULL,
  `workforce_id` int(10) UNSIGNED DEFAULT NULL,
  `placement_id` int(10) UNSIGNED DEFAULT NULL,
  `status_id` int(10) UNSIGNED NOT NULL,
  `sub_status_id` int(10) UNSIGNED DEFAULT NULL,
  `is_approved` tinyint(3) UNSIGNED DEFAULT NULL,
  `approved_by` int(10) UNSIGNED DEFAULT NULL,
  `approved_date` date DEFAULT NULL,
  `approve_comment` varchar(255) DEFAULT NULL,
  `is_dropoff` tinyint(3) UNSIGNED DEFAULT NULL,
  `dropoff_date` date DEFAULT NULL,
  `comment` varchar(500) DEFAULT NULL,
  `created_by` int(10) UNSIGNED NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_by` int(10) UNSIGNED DEFAULT NULL,
  `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `client_id` int(10) UNSIGNED DEFAULT NULL,
  `contact_id` int(10) UNSIGNED DEFAULT NULL,
  `client_type_id` int(10) UNSIGNED DEFAULT NULL,
  `end_client_id` int(10) UNSIGNED DEFAULT NULL,
  `position_type_id` int(10) UNSIGNED DEFAULT NULL,
  `emp_type_id` int(10) UNSIGNED DEFAULT NULL,
  `visa_type_id` int(10) UNSIGNED DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `deleted_confirmations`:
--

--
-- Dumping data for table `deleted_confirmations`
--

INSERT INTO `deleted_confirmations` (`id`, `confirm_id`, `profile_id`, `subm_id`, `job_id`, `confirm_date`, `confirm_by`, `start_date`, `sch_end_date`, `bill_rate`, `billrate_type_id`, `pay_rate`, `payrate_type_id`, `cost_type`, `salary`, `recruiter_id`, `sub_vendor_id`, `vendor_contact_id`, `bdm_id`, `rm_id`, `workforce_id`, `placement_id`, `status_id`, `sub_status_id`, `is_approved`, `approved_by`, `approved_date`, `approve_comment`, `is_dropoff`, `dropoff_date`, `comment`, `created_by`, `created_at`, `updated_by`, `updated_at`, `client_id`, `contact_id`, `client_type_id`, `end_client_id`, `position_type_id`, `emp_type_id`, `visa_type_id`) VALUES
(1, 6, 7, 13, 4, '2021-12-16', 4, '2021-12-17', '2021-12-17', '250.00', 12, '25.00', 12, 123, '0.00', 4, 1, NULL, 7, 4, NULL, NULL, 4, 41, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 4, '2021-12-16 00:27:29', NULL, '2021-12-15 18:57:29', NULL, NULL, NULL, NULL, NULL, 42, NULL),
(2, 8, 5, 5, 3, '2021-12-03', 4, '2021-12-17', '2021-12-16', '250.00', 12, '20.00', 12, 123, '0.00', 3, NULL, NULL, 4, 4, NULL, NULL, 4, 41, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 4, '2021-12-16 02:23:46', NULL, '2021-12-15 20:53:46', NULL, NULL, NULL, NULL, NULL, 42, NULL),
(3, 5, 4, 4, 3, '2021-12-15', 4, '2021-12-16', '2021-12-16', '85.00', 12, '25.00', 12, 74, '0.00', 3, NULL, NULL, 4, 4, NULL, NULL, 4, 41, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 4, '2021-12-15 07:20:18', NULL, '2021-12-15 01:50:18', NULL, NULL, NULL, NULL, NULL, 43, NULL);

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

--
-- Table structure for table `del_timesheets`
--

CREATE TABLE IF NOT EXISTS `del_timesheets` (
  `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  `profile_id` int(10) UNSIGNED DEFAULT NULL,
  `workforce_id` int(10) UNSIGNED DEFAULT NULL,
  `placement_id` int(10) UNSIGNED NOT NULL,
  `period_start_date` date NOT NULL,
  `period_end_date` date NOT NULL,
  `status_id` int(10) UNSIGNED NOT NULL,
  `invoice_status_id` int(10) UNSIGNED DEFAULT NULL,
  `submitted_by` int(10) UNSIGNED DEFAULT NULL,
  `submission_date` date DEFAULT NULL,
  `approved_by` int(10) UNSIGNED DEFAULT NULL,
  `approved_date` date DEFAULT NULL,
  `comment` varchar(255) DEFAULT NULL,
  `invoice_comment` varchar(255) DEFAULT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `deleted_by` int(10) UNSIGNED NOT NULL,
  PRIMARY KEY (`id`),
  KEY `profile_id` (`profile_id`),
  KEY `work_force_id` (`workforce_id`),
  KEY `placement_id` (`placement_id`),
  KEY `status_id` (`status_id`),
  KEY `invoice_status_id` (`invoice_status_id`),
  KEY `approved_by` (`approved_by`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `del_timesheets`:
--

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

--
-- Table structure for table `del_timesheet_dates`
--

CREATE TABLE IF NOT EXISTS `del_timesheet_dates` (
  `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
  `ts_id` int(10) UNSIGNED NOT NULL,
  `tdate` date NOT NULL,
  `regular_hrs` decimal(4,1) UNSIGNED DEFAULT NULL,
  `ot_hrs` decimal(4,1) DEFAULT NULL,
  `hours_code_id` smallint(5) UNSIGNED DEFAULT NULL,
  `non_bill_hrs` decimal(4,1) DEFAULT NULL,
  `final_hrs` decimal(8,2) UNSIGNED DEFAULT NULL,
  `comment` varchar(255) DEFAULT NULL,
  `updated_by` int(10) UNSIGNED DEFAULT NULL,
  `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `ts_id` (`ts_id`),
  KEY `tdate` (`tdate`),
  KEY `hours_code_id` (`hours_code_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `del_timesheet_dates`:
--

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

--
-- Table structure for table `dice_users`
--

CREATE TABLE IF NOT EXISTS `dice_users` (
  `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  `customer_id` varchar(32) DEFAULT NULL,
  `name` varchar(128) DEFAULT NULL,
  `username` varchar(128) NOT NULL,
  `password` varchar(128) NOT NULL,
  `hits_limit` int(10) UNSIGNED DEFAULT NULL,
  `hits_used` int(10) UNSIGNED NOT NULL DEFAULT '0',
  `start_date` date DEFAULT NULL,
  `end_date` date DEFAULT NULL,
  `status_id` tinyint(3) UNSIGNED DEFAULT '1' COMMENT '1-Active, 2-In Usage, 3-In-Active',
  `access_token` varchar(64) DEFAULT NULL,
  `token_type` varchar(64) DEFAULT NULL,
  `token_started_at` datetime DEFAULT NULL,
  `expires_in` int(10) UNSIGNED DEFAULT NULL COMMENT 'token expire time in seconds',
  `created_by` int(10) UNSIGNED NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_by` int(10) UNSIGNED DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `created_by` (`created_by`),
  KEY `status_id` (`status_id`),
  KEY `updated_by` (`updated_by`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `dice_users`:
--

--
-- Dumping data for table `dice_users`
--

INSERT INTO `dice_users` (`id`, `customer_id`, `name`, `username`, `password`, `hits_limit`, `hits_used`, `start_date`, `end_date`, `status_id`, `access_token`, `token_type`, `token_started_at`, `expires_in`, `created_by`, `created_at`, `updated_by`, `updated_at`) VALUES
(1, '1936064', 'Usmsystems', 'usmsystems@dice.com', '4p7zEk5a', 200, 127, '2020-03-01', NULL, 3, NULL, NULL, NULL, NULL, 31, '2020-03-19 00:00:00', 2111, '2021-01-28 14:37:47'),
(2, '1989009', 'Pavani Aluri', 'pavania@usmsystems.com', 'usmsystems@34', 1500, 124, NULL, NULL, 1, NULL, NULL, NULL, NULL, 31, '2020-04-28 01:07:15', 2111, '2021-12-06 23:01:40'),
(3, '1989011', 'Darshit Patel', 'darshitp@usmsystems.com', 'USMjobs@2021', 1500, 186, NULL, NULL, 1, NULL, NULL, NULL, NULL, 31, '2020-04-28 01:07:53', 2111, '2021-12-06 22:38:47'),
(4, '1989010', 'Seshagiri Rao Ramaraju', 'seshagiri@usmsystems.com', 'usmsystems@34', 1500, 187, NULL, NULL, 1, NULL, NULL, NULL, NULL, 31, '2020-04-28 01:08:50', 2111, '2021-12-06 23:17:38'),
(5, '1896835', 'Shweta', 'shwetas@usmsystems.com', 'Usmchantilly@4004', 1500, 237, NULL, NULL, 1, NULL, NULL, NULL, NULL, 31, '2020-04-28 01:09:31', 2111, '2021-12-06 22:35:59'),
(6, '1569581', 'Mobeena', 'mobeena@usmsystems.com', 'USM99est', 1500, 170, NULL, NULL, 3, NULL, NULL, NULL, NULL, 31, '2020-04-28 01:14:54', 2111, '2021-07-08 19:58:05'),
(7, '1906934', 'Sateesh C', 'sateeshc@usmsystems.com', 'teamusm2', 1500, 186, NULL, NULL, 1, NULL, NULL, NULL, NULL, 31, '2020-04-28 01:15:38', 2111, '2021-12-06 22:43:03'),
(8, '1908666', 'Ravi S', 'ravis@usmsystems.com', 'Itsmydice@4004', 1500, 139, NULL, NULL, 1, NULL, NULL, NULL, NULL, 31, '2020-04-28 01:17:12', 2111, '2021-12-06 22:22:14'),
(9, '1989012', 'Sujata Dangol', 'sujatad@usmsystems.com', 'usmsystems@34', 1500, 141, NULL, NULL, 1, NULL, NULL, NULL, NULL, 31, '2020-04-28 01:18:27', 2111, '2021-12-06 22:34:06'),
(10, '1936420', 'Tabu', 'tabu@usmsystems.com', 'Jesus@123', 1500, 162, NULL, NULL, 1, NULL, NULL, NULL, NULL, 31, '2020-04-29 08:54:22', 2111, '2021-12-06 22:40:29');

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

--
-- Table structure for table `emails`
--

CREATE TABLE IF NOT EXISTS `emails` (
  `email_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
  `recruiter_id` int(10) UNSIGNED NOT NULL,
  `job_id` int(10) UNSIGNED DEFAULT NULL,
  `profile_id` int(10) UNSIGNED DEFAULT NULL,
  `client_id` int(10) UNSIGNED DEFAULT NULL,
  `placement_id` int(10) UNSIGNED DEFAULT NULL,
  `subm_id` bigint(20) UNSIGNED DEFAULT NULL,
  `workforce_id` int(10) UNSIGNED DEFAULT NULL,
  `subject` varchar(255) DEFAULT NULL,
  `attachment` varchar(255) DEFAULT NULL,
  `body_text` text,
  `send_to` varchar(128) DEFAULT NULL,
  `cc_emails` varchar(255) DEFAULT NULL,
  `created_by` int(10) UNSIGNED NOT NULL,
  `created_at` datetime DEFAULT NULL,
  PRIMARY KEY (`email_id`),
  KEY `recruiter_id` (`recruiter_id`),
  KEY `job_id` (`job_id`),
  KEY `profile_id` (`profile_id`),
  KEY `client_id` (`client_id`),
  KEY `placement_id` (`placement_id`),
  KEY `subm_id` (`subm_id`),
  KEY `workforce_id` (`workforce_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `emails`:
--

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

--
-- Table structure for table `email_logs`
--

CREATE TABLE IF NOT EXISTS `email_logs` (
  `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  `consultant_name` varchar(45) DEFAULT NULL,
  `bdm_id` int(10) UNSIGNED DEFAULT NULL,
  `email` varchar(128) NOT NULL,
  `email_purpose` varchar(255) NOT NULL,
  `email_subject` varchar(500) DEFAULT NULL,
  `status_id` tinyint(1) UNSIGNED NOT NULL DEFAULT '1',
  `send_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `email_logs`:
--

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

--
-- Table structure for table `email_quote_msgs`
--

CREATE TABLE IF NOT EXISTS `email_quote_msgs` (
  `quote_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
  `quotation_msg` text,
  `status_id` int(10) UNSIGNED DEFAULT NULL,
  `is_sent` tinyint(1) UNSIGNED DEFAULT '0',
  `created_at` datetime DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`quote_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `email_quote_msgs`:
--

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

--
-- Table structure for table `email_template_wishes`
--

CREATE TABLE IF NOT EXISTS `email_template_wishes` (
  `template_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
  `date` date DEFAULT NULL,
  `template_name` varchar(255) DEFAULT NULL,
  `template_name_2` varchar(255) DEFAULT NULL,
  `created_by` int(10) UNSIGNED DEFAULT NULL,
  `created_at` datetime DEFAULT NULL,
  `updated_by` int(10) UNSIGNED DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`template_id`),
  KEY `created_by` (`created_by`),
  KEY `updated_by` (`updated_by`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `email_template_wishes`:
--

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

--
-- Table structure for table `emp_exits`
--

CREATE TABLE IF NOT EXISTS `emp_exits` (
  `employee_id` varchar(32) NOT NULL,
  `exit_date` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `emp_exits`:
--

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

--
-- Table structure for table `exam_result`
--

CREATE TABLE IF NOT EXISTS `exam_result` (
  `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  `profile_id` int(10) UNSIGNED NOT NULL DEFAULT '0',
  `subm_id` int(10) UNSIGNED NOT NULL DEFAULT '0',
  `job_id` int(10) UNSIGNED NOT NULL DEFAULT '0',
  `category_id` int(11) UNSIGNED NOT NULL,
  `score` int(11) NOT NULL,
  `correct` int(11) NOT NULL,
  `incorrect` int(11) NOT NULL,
  `no_attempt` int(11) NOT NULL,
  `status` int(11) NOT NULL DEFAULT '0',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `category_id` (`category_id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;

--
-- RELATIONSHIPS FOR TABLE `exam_result`:
--

--
-- Dumping data for table `exam_result`
--

INSERT INTO `exam_result` (`id`, `profile_id`, `subm_id`, `job_id`, `category_id`, `score`, `correct`, `incorrect`, `no_attempt`, `status`, `created_at`, `updated_at`) VALUES
(1, 11, 18, 7, 0, 0, 0, 0, 0, 1, '2023-01-24 12:09:32', NULL);

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

--
-- Table structure for table `exam_skills`
--

CREATE TABLE IF NOT EXISTS `exam_skills` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `exam_ques_id` int(11) NOT NULL,
  `exam_result_id` int(11) NOT NULL,
  `skill` varchar(250) NOT NULL,
  `option_id` int(11) NOT NULL DEFAULT '0',
  `correct` int(11) NOT NULL,
  `incorrect` int(11) NOT NULL,
  `no_attempt` int(11) NOT NULL,
  `profile_id` int(11) NOT NULL DEFAULT '0',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `exam_result_id` (`exam_result_id`)
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=latin1;

--
-- RELATIONSHIPS FOR TABLE `exam_skills`:
--

--
-- Dumping data for table `exam_skills`
--

INSERT INTO `exam_skills` (`id`, `exam_ques_id`, `exam_result_id`, `skill`, `option_id`, `correct`, `incorrect`, `no_attempt`, `profile_id`, `created_at`, `updated_at`) VALUES
(1, 1, 1, 'PHP', 1, 1, 0, 0, 11, '2023-01-24 12:09:32', '2023-01-24 12:09:32'),
(2, 2, 1, 'PHP', 2, 1, 0, 0, 11, '2023-01-24 12:09:32', '2023-01-24 12:09:32'),
(3, 5, 1, 'PHP', 1, 0, 1, 0, 11, '2023-01-24 12:09:32', '2023-01-24 12:09:32'),
(4, 6, 1, 'PHP', 1, 0, 1, 0, 11, '2023-01-24 12:09:32', '2023-01-24 12:09:32'),
(5, 7, 1, 'PHP', 1, 0, 1, 0, 11, '2023-01-24 12:09:32', '2023-01-24 12:09:32'),
(6, 9, 1, 'PHP', 1, 1, 0, 0, 11, '2023-01-24 12:09:32', '2023-01-24 12:09:32'),
(7, 10, 1, 'PHP', 1, 0, 1, 0, 11, '2023-01-24 12:09:32', '2023-01-24 12:09:32'),
(8, 15, 1, 'MYSQL', 1, 0, 1, 0, 11, '2023-01-24 12:09:32', '2023-01-24 12:09:32'),
(9, 17, 1, 'MYSQL', 1, 1, 0, 0, 11, '2023-01-24 12:09:32', '2023-01-24 12:09:32'),
(10, 18, 1, 'MYSQL', 1, 1, 0, 0, 11, '2023-01-24 12:09:32', '2023-01-24 12:09:32'),
(11, 19, 1, 'MYSQL', 1, 1, 0, 0, 11, '2023-01-24 12:09:32', '2023-01-24 12:09:32'),
(12, 20, 1, 'MYSQL', 1, 1, 0, 0, 11, '2023-01-24 12:09:32', '2023-01-24 12:09:32'),
(13, 32, 1, 'HTML', 1, 1, 0, 0, 11, '2023-01-24 12:09:32', '2023-01-24 12:09:32'),
(14, 33, 1, 'HTML', 1, 1, 0, 0, 11, '2023-01-24 12:09:32', '2023-01-24 12:09:32'),
(15, 37, 1, 'HTML', 1, 1, 0, 0, 11, '2023-01-24 12:09:32', '2023-01-24 12:09:32'),
(16, 38, 1, 'HTML', 1, 1, 0, 0, 11, '2023-01-24 12:09:32', '2023-01-24 12:09:32'),
(17, 40, 1, 'HTML', 1, 1, 0, 0, 11, '2023-01-24 12:09:32', '2023-01-24 12:09:32'),
(18, 96, 1, 'PHP', 4, 1, 0, 0, 11, '2023-01-24 12:09:32', '2023-01-24 12:09:32'),
(19, 97, 1, 'PHP', 1, 0, 1, 0, 11, '2023-01-24 12:09:32', '2023-01-24 12:09:32'),
(20, 98, 1, 'PHP', 3, 1, 0, 0, 11, '2023-01-24 12:09:32', '2023-01-24 12:09:32');

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

--
-- Stand-in structure for view `exconsultant_profile`
-- (See below for the actual view)
--
DROP VIEW IF EXISTS `exconsultant_profile`;
CREATE TABLE IF NOT EXISTS `exconsultant_profile` (
`w_id` int(10) unsigned
,`profile_id` int(10) unsigned
,`fullname` varchar(330)
,`fname` varchar(128)
,`lname` varchar(100)
,`w_phone` varchar(128)
,`w_email` varchar(128)
,`w_exp` varchar(32)
,`p_end_date` date
,`p_start_date` date
,`p_pay_rate` decimal(8,2)
,`act_end_date` date
,`client_id` int(10) unsigned
,`current_loc` varchar(128)
,`profile_title` varchar(128)
,`primary_skills` varchar(2255)
,`client_name` varchar(128)
);

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

--
-- Stand-in structure for view `graph_submissions`
-- (See below for the actual view)
--
DROP VIEW IF EXISTS `graph_submissions`;
CREATE TABLE IF NOT EXISTS `graph_submissions` (
`date` date
,`type` varchar(9)
,`subm_count` bigint(20) unsigned
,`subm_id` int(11) unsigned
,`job_id` int(11) unsigned
,`recruiter` int(11) unsigned
,`lead` int(11) unsigned
,`bdm` int(11) unsigned
,`in_hotlist` tinyint(4) unsigned
);

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

--
-- Table structure for table `groups`
--

CREATE TABLE IF NOT EXISTS `groups` (
  `id` smallint(5) UNSIGNED NOT NULL AUTO_INCREMENT,
  `group_name` varchar(255) NOT NULL,
  `bdm_id` int(10) UNSIGNED DEFAULT NULL,
  `cost_type_id` int(10) UNSIGNED DEFAULT NULL,
  `emp_type_id` int(10) UNSIGNED DEFAULT NULL,
  `visa_type_id` int(10) UNSIGNED DEFAULT NULL,
  `placement_status_id` tinyint(1) UNSIGNED DEFAULT NULL,
  `type_id` tinyint(3) UNSIGNED DEFAULT NULL,
  `division_id` int(10) UNSIGNED DEFAULT NULL,
  `referrals` tinyint(1) UNSIGNED DEFAULT NULL,
  `location_id` int(10) UNSIGNED DEFAULT NULL,
  `hotlist` tinyint(1) UNSIGNED DEFAULT NULL,
  `created_by` int(10) UNSIGNED NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  PRIMARY KEY (`id`),
  KEY `bdm_id` (`bdm_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `groups`:
--

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

--
-- Table structure for table `hotlist_profile_bdm_history`
--

CREATE TABLE IF NOT EXISTS `hotlist_profile_bdm_history` (
  `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  `profile_id` int(10) UNSIGNED NOT NULL,
  `old_bdm_id` int(10) UNSIGNED NOT NULL,
  `start_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `end_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `profile_id` (`profile_id`),
  KEY `old_bdm_id` (`old_bdm_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `hotlist_profile_bdm_history`:
--

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

--
-- Table structure for table `hrms_pics`
--

CREATE TABLE IF NOT EXISTS `hrms_pics` (
  `id` int(10) UNSIGNED NOT NULL,
  `employee_id` varchar(16) NOT NULL,
  `user_pic` varchar(255) DEFAULT NULL,
  KEY `id` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `hrms_pics`:
--

--
-- Dumping data for table `hrms_pics`
--

INSERT INTO `hrms_pics` (`id`, `employee_id`, `user_pic`) VALUES
(1093, '222222', 'https://hrms.usmsystems.com/uploads/profile_pic/1599634018.png'),
(673, '30128', 'https://hrms.usmsystems.com/uploads/profile_pic/673_20200711160334.png'),
(12, '30359', 'https://hrms.usmsystems.com/uploads/profile_pic/12_20171228093327.jpg'),
(15, '30380', 'https://hrms.usmsystems.com/uploads/profile_pic/1529516008.png'),
(16, '30382', 'https://hrms.usmsystems.com/uploads/profile_pic/1533675379.png'),
(19, '30407', 'https://hrms.usmsystems.com/uploads/profile_pic/19_20171228111009.jpg'),
(20, '30411', 'https://hrms.usmsystems.com/uploads/profile_pic/1530771152.png'),
(32, '30527', 'https://hrms.usmsystems.com/uploads/profile_pic/32_20171228124003.jpg'),
(33, '30535', 'https://hrms.usmsystems.com/uploads/profile_pic/33_20171228124301.jpg'),
(35, '30538', 'https://hrms.usmsystems.com/uploads/profile_pic/35_20180110144934.png'),
(2, '30554', 'https://hrms.usmsystems.com/uploads/profile_pic/2_20180125063020.png'),
(41, '30577', 'https://hrms.usmsystems.com/uploads/profile_pic/41_20200903014249.png'),
(62, '30627', 'https://hrms.usmsystems.com/uploads/profile_pic/1537178639.png'),
(74, '30652', 'https://hrms.usmsystems.com/uploads/profile_pic/74_20180109152653.jpg'),
(77, '30657', 'https://hrms.usmsystems.com/uploads/profile_pic/77_20171230084011.jpg'),
(80, '30660', 'https://hrms.usmsystems.com/uploads/profile_pic/80_20171230094410.jpg'),
(83, '30665', 'https://hrms.usmsystems.com/uploads/profile_pic/83_20180109152740.png'),
(386, '30731', 'https://hrms.usmsystems.com/uploads/profile_pic/386_20190423011804.png'),
(530, '30804', 'https://hrms.usmsystems.com/uploads/profile_pic/1566331192.png'),
(559, '30821', 'https://hrms.usmsystems.com/uploads/profile_pic/559_20190530142753.png'),
(560, '30822', 'https://hrms.usmsystems.com/uploads/profile_pic/560_20191022170955.png'),
(580, '30829', 'https://hrms.usmsystems.com/uploads/profile_pic/1543332846.png'),
(709, '30908', 'https://hrms.usmsystems.com/uploads/profile_pic/1555339278.png'),
(711, '30913', 'https://hrms.usmsystems.com/uploads/profile_pic/711_20190504190522.png'),
(730, '30924', 'https://hrms.usmsystems.com/uploads/profile_pic/1557395044.png'),
(749, '30935', 'https://hrms.usmsystems.com/uploads/profile_pic/1562874514.png'),
(802, '30972', 'https://hrms.usmsystems.com/uploads/profile_pic/3_20190716203015_MANZOOR PIC.jpg'),
(804, '30974', 'https://hrms.usmsystems.com/uploads/profile_pic/4_20190722185841_bharath.jpeg'),
(824, '30983', 'https://hrms.usmsystems.com/uploads/profile_pic/1581352093.png'),
(840, '30997', 'https://hrms.usmsystems.com/uploads/profile_pic/1566894035.png'),
(841, '31000', 'https://hrms.usmsystems.com/uploads/profile_pic/1566592540.png'),
(856, '31009', 'https://hrms.usmsystems.com/uploads/profile_pic/1571805727.png'),
(880, '31023', 'https://hrms.usmsystems.com/uploads/profile_pic/63_20191002000502_2019-09-24.jpg'),
(885, '31028', 'https://hrms.usmsystems.com/uploads/profile_pic/79_20191007184104_Kiran.jpg'),
(900, '31037', 'https://hrms.usmsystems.com/uploads/profile_pic/94_20191021165049_DSC_0560.JPG'),
(911, '31047', 'https://hrms.usmsystems.com/uploads/profile_pic/73_20191030200203_IMG_7712.jpg'),
(914, '31050', 'https://hrms.usmsystems.com/uploads/profile_pic/103_20191104193932_Screenshot_20191104-192324_2.png'),
(923, '31054', 'https://hrms.usmsystems.com/uploads/profile_pic/109_20191122175820_IMG_20191022_124330_717.jpg'),
(925, '31055', 'https://hrms.usmsystems.com/uploads/profile_pic/925_20200309021309.png'),
(924, '31056', 'https://hrms.usmsystems.com/uploads/profile_pic/110_20191121191940_sai.jpg'),
(927, '31058', 'https://hrms.usmsystems.com/uploads/profile_pic/115_20191214203837_333.jpg'),
(938, '31067', 'https://hrms.usmsystems.com/uploads/profile_pic/131_20200203185413_photo.jpg'),
(939, '31068', 'https://hrms.usmsystems.com/uploads/profile_pic/1598019745.png'),
(950, '31074', 'https://hrms.usmsystems.com/uploads/profile_pic/136_20200208102013_CBBA247C-A861-4E65-9539-9C6DF635992C.jpeg'),
(957, '31076', 'https://hrms.usmsystems.com/uploads/profile_pic/149_20200216102802_Srinu_pic.jpeg'),
(966, '31083', 'https://hrms.usmsystems.com/uploads/profile_pic/147_20200217194718_FB_IMG_15765657251186304.jpg'),
(968, '31087', 'https://hrms.usmsystems.com/uploads/profile_pic/156_20200224194328_20200224_145922.jpg'),
(974, '31093', 'https://hrms.usmsystems.com/uploads/profile_pic/974_20200627185409.png'),
(977, '31095', 'https://hrms.usmsystems.com/uploads/profile_pic/163_20200227182238_download.jpg'),
(985, '31103', 'https://hrms.usmsystems.com/uploads/profile_pic/174_20200309190556_Vishnu.jpg'),
(995, '31109', 'https://hrms.usmsystems.com/uploads/profile_pic/995_20200428230633.png'),
(1007, '31118', 'https://hrms.usmsystems.com/uploads/profile_pic/202_20200501141930_Photo.jpg'),
(1008, '31119', 'https://hrms.usmsystems.com/uploads/profile_pic/1588789075.png'),
(1015, '31124', 'https://hrms.usmsystems.com/uploads/profile_pic/206_20200513002629_pradeep.jpg'),
(1035, '31128', 'https://hrms.usmsystems.com/uploads/profile_pic/211_20200518144735_DSC_0039.JPG'),
(1036, '31129', 'https://hrms.usmsystems.com/uploads/profile_pic/1589975976.png'),
(1040, '31133', 'https://hrms.usmsystems.com/uploads/profile_pic/1591204411.png'),
(1043, '31136', 'https://hrms.usmsystems.com/uploads/profile_pic/218_20200531141823_shashank_raj_passport_size_photo.jpg'),
(1049, '31141', NULL),
(1056, '31147', 'https://hrms.usmsystems.com/uploads/profile_pic/1056_20200817153908.png'),
(1067, '31157', 'https://hrms.usmsystems.com/uploads/profile_pic/233_20200701120052_15935844503032914920981116190277.jpg'),
(1074, '31164', 'https://hrms.usmsystems.com/uploads/profile_pic/246_20200713172835_pic.jpeg'),
(1079, '31167', 'https://hrms.usmsystems.com/uploads/profile_pic/252_20200720150802_IMG_20200625_084920__01.jpg'),
(1084, '31171', 'https://hrms.usmsystems.com/uploads/profile_pic/256_20200727144452_IMG20200308171719.jpg'),
(1095, '31177', 'https://hrms.usmsystems.com/uploads/profile_pic/263_20200807190806_New Doc 2019-12-10 22.21.41.jpg'),
(1102, '31183', 'https://hrms.usmsystems.com/uploads/profile_pic/266_20200810180423_Photo Copy.jpg'),
(1104, '31185', 'https://hrms.usmsystems.com/uploads/profile_pic/277_20200817132256_photoo.jpg'),
(1105, '31186', 'https://hrms.usmsystems.com/uploads/profile_pic/274_20200817174440_IMG-5692-compressed.JPG'),
(1107, '31188', 'https://hrms.usmsystems.com/uploads/profile_pic/279_20200818183509_Screenshot_20200818-181549_LinkedIn.....jpg'),
(1108, '31189', 'https://hrms.usmsystems.com/uploads/profile_pic/282_20200820172837_Masee.jpg'),
(1109, '31190', 'https://hrms.usmsystems.com/uploads/profile_pic/284_20200820154024_28660545_10156061221827095_1541310737144610816_n.jpg'),
(1116, '31193', 'https://hrms.usmsystems.com/uploads/profile_pic/285_20200821215637_Jasir_Photo.jpg'),
(1119, '31195', 'https://hrms.usmsystems.com/uploads/profile_pic/287_20200824133546_Photo.jpg'),
(1120, '31196', 'https://hrms.usmsystems.com/uploads/profile_pic/289_20200824165513_IMG_20190603_161151__01.jpg'),
(1123, '31199', 'https://hrms.usmsystems.com/uploads/profile_pic/294_20200831173453_ajay d.JPG'),
(1125, '31201', 'https://hrms.usmsystems.com/uploads/profile_pic/291_20200826182852_chari new photo.jpg'),
(1126, '31202', 'https://hrms.usmsystems.com/uploads/profile_pic/301_20200831160858_Ramu.jpg'),
(1127, '31203', 'https://hrms.usmsystems.com/uploads/profile_pic/304_20200831203753_IMG-20200328-WA0021.jpg'),
(1131, '31204', 'https://hrms.usmsystems.com/uploads/profile_pic/296_20200831161852_IMG_20200831_155634.jpg'),
(1132, '31205', 'https://hrms.usmsystems.com/uploads/profile_pic/295_20200901180727_Pardhu.jpg'),
(1129, '31206', 'https://hrms.usmsystems.com/uploads/profile_pic/286_20200831182257_7428 copy.JPG'),
(1130, '31207', 'https://hrms.usmsystems.com/uploads/profile_pic/297_20200831215017_FB_IMG_1558832824170.jpg'),
(1133, '31208', 'https://hrms.usmsystems.com/uploads/profile_pic/305_20200901185600_IMG_20200316_160944.jpg'),
(1134, '31209', 'https://hrms.usmsystems.com/uploads/profile_pic/311_20200902145522_download.jpeg'),
(1135, '31210', 'https://hrms.usmsystems.com/uploads/profile_pic/308_20200901170228_001.jpg'),
(1136, '31211', 'https://hrms.usmsystems.com/uploads/profile_pic/298_20200902185228_mazhar.jpg'),
(1139, '31214', 'https://hrms.usmsystems.com/uploads/profile_pic/293_20200831222930_Optimized-IMG_20200202_010605__01.jpg'),
(1143, '31218', 'https://hrms.usmsystems.com/uploads/profile_pic/313_20200907215241_IMG_20170114_014625.jpg'),
(1144, '31219', 'https://hrms.usmsystems.com/uploads/profile_pic/314_20200908001238_IMG_20180531_234200.JPG'),
(1146, '31220', 'https://hrms.usmsystems.com/uploads/profile_pic/312_20200909114608_Srinu.jpeg'),
(1147, '31221', 'https://hrms.usmsystems.com/uploads/profile_pic/315_20200909152951_188B4423-7875-432A-AB65-44539638D349.jpeg'),
(219, '1048', 'https://hrms.usmsystems.com/uploads/profile_pic/1599633323.png'),
(308, '177468937', 'https://hrms.usmsystems.com/uploads/profile_pic/308_20190214174829.png'),
(316, '235317778', 'https://hrms.usmsystems.com/uploads/profile_pic/316_20180312180612.jpg'),
(328, '282392544', 'https://hrms.usmsystems.com/uploads/profile_pic/328_20180301113759.jpg'),
(330, '282392550', 'https://hrms.usmsystems.com/uploads/profile_pic/330_20180104213947.jpg'),
(815, '401002158', 'https://hrms.usmsystems.com/uploads/profile_pic/1597680395.png'),
(849, '401002164', NULL),
(915, '401002170', 'https://hrms.usmsystems.com/uploads/profile_pic/1598018728.png'),
(916, '401002171', 'https://hrms.usmsystems.com/uploads/profile_pic/1598536656.png'),
(918, '401002172', 'https://hrms.usmsystems.com/uploads/profile_pic/918_20200821211120.png'),
(941, '401002176', NULL),
(976, '401002179', 'https://hrms.usmsystems.com/uploads/profile_pic/1599062882.png'),
(1013, '401002185', 'https://hrms.usmsystems.com/uploads/profile_pic/1598024187.png'),
(1044, '401002187', 'https://hrms.usmsystems.com/uploads/profile_pic/1599063036.png'),
(1086, '401002193', 'https://hrms.usmsystems.com/uploads/profile_pic/1595859617.png'),
(1087, '401002194', 'https://hrms.usmsystems.com/uploads/profile_pic/1599073093.png'),
(1101, '401002196', NULL),
(1115, '401002197', 'https://hrms.usmsystems.com/uploads/profile_pic/1598361252.png'),
(55, '30615', 'https://hrms.usmsystems.com/uploads/profile_pic/55_20180131204949.jpg'),
(703, '30905', 'https://hrms.usmsystems.com/uploads/profile_pic/1554900202.png'),
(766, '30945', 'https://hrms.usmsystems.com/uploads/profile_pic/766_20200720201648.png'),
(1039, '31132', 'https://hrms.usmsystems.com/uploads/profile_pic/213_20200521142247_IMG_20200521_140313.jpg'),
(1055, '31146', 'https://hrms.usmsystems.com/uploads/profile_pic/227_20200619215435_IMG_20200503_134441_709.jpg'),
(2091, '401002199', 'https://hrms.usmsystems.com/uploads/profile_pic/1163_20201016195718.png');

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

--
-- Table structure for table `immigration_docs`
--

CREATE TABLE IF NOT EXISTS `immigration_docs` (
  `id` bigint(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  `va_id` int(10) UNSIGNED DEFAULT NULL,
  `workforce_id` int(10) UNSIGNED DEFAULT NULL,
  `lca_tracker_id` int(10) UNSIGNED DEFAULT NULL,
  `doc_type_id` int(10) UNSIGNED DEFAULT NULL,
  `doc_name` varchar(128) DEFAULT NULL,
  `file_name` varchar(255) DEFAULT NULL,
  `created_by` int(10) UNSIGNED DEFAULT NULL,
  `created_at` datetime DEFAULT NULL,
  `updated_by` int(10) UNSIGNED DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `petitionid` varchar(255) DEFAULT NULL,
  `doctype` varchar(64) DEFAULT NULL,
  `conep_petitionid` varchar(128) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `workforce_id` (`workforce_id`),
  KEY `doc_type_id` (`doc_type_id`),
  KEY `va_id` (`va_id`),
  KEY `created_by` (`created_by`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `immigration_docs`:
--

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

--
-- Table structure for table `immigration_report_docs`
--

CREATE TABLE IF NOT EXISTS `immigration_report_docs` (
  `att_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
  `doc_name` varchar(128) DEFAULT NULL,
  `file_name` varchar(255) DEFAULT NULL,
  `created_by` int(10) UNSIGNED DEFAULT NULL,
  `created_at` datetime DEFAULT NULL,
  `updated_by` int(10) UNSIGNED DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`att_id`),
  KEY `created_by` (`created_by`),
  KEY `updated_by` (`updated_by`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `immigration_report_docs`:
--

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

--
-- Table structure for table `immigration_work_locations`
--

CREATE TABLE IF NOT EXISTS `immigration_work_locations` (
  `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  `va_id` int(10) UNSIGNED NOT NULL,
  `addr_line1` varchar(128) DEFAULT NULL,
  `addr_line2` varchar(128) DEFAULT NULL,
  `city` varchar(64) DEFAULT NULL,
  `state_id` smallint(5) UNSIGNED DEFAULT NULL,
  `country_id` smallint(5) UNSIGNED DEFAULT NULL,
  `zipcode` varchar(8) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `va_id` (`va_id`),
  KEY `state_id` (`state_id`),
  KEY `country_id` (`country_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `immigration_work_locations`:
--

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

--
-- Table structure for table `internal_payroll`
--

CREATE TABLE IF NOT EXISTS `internal_payroll` (
  `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  `emp_id` int(10) UNSIGNED NOT NULL,
  `from_date` date NOT NULL,
  `to_date` date NOT NULL,
  `leave_days` decimal(4,2) UNSIGNED DEFAULT NULL,
  `lop_days` decimal(4,2) UNSIGNED DEFAULT NULL,
  `paid_days` decimal(4,2) UNSIGNED NOT NULL,
  `year_salary` decimal(11,2) DEFAULT NULL,
  `actual_salary` decimal(9,2) NOT NULL,
  `commission` decimal(9,2) DEFAULT NULL,
  `bouns` decimal(9,2) DEFAULT NULL,
  `other_addition` decimal(9,2) DEFAULT NULL,
  `other_deduction` decimal(9,2) DEFAULT NULL,
  `gross_salary` decimal(9,2) DEFAULT NULL,
  `insurance` decimal(9,2) DEFAULT NULL,
  `company_insurance` decimal(9,2) DEFAULT NULL,
  `advances` decimal(9,2) DEFAULT NULL,
  `net_salary` decimal(9,2) DEFAULT NULL,
  `status_id` tinyint(3) UNSIGNED NOT NULL DEFAULT '0',
  `comment` varchar(500) DEFAULT NULL,
  `created_by` int(10) UNSIGNED NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_by` int(10) UNSIGNED DEFAULT NULL,
  `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `emp_id` (`emp_id`),
  KEY `from_date` (`from_date`),
  KEY `to_date` (`to_date`),
  KEY `status_id` (`status_id`),
  KEY `created_by` (`created_by`),
  KEY `updated_by` (`updated_by`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `internal_payroll`:
--

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

--
-- Table structure for table `interview_status_history`
--

CREATE TABLE IF NOT EXISTS `interview_status_history` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `interview_id` int(10) UNSIGNED NOT NULL,
  `old_status_id` int(10) UNSIGNED NOT NULL,
  `old_sub_status_id` int(10) UNSIGNED DEFAULT NULL,
  `old_round_id` smallint(5) UNSIGNED DEFAULT NULL,
  `old_intr_type_id` int(10) UNSIGNED DEFAULT NULL,
  `old_interview_date` datetime DEFAULT NULL,
  `old_comment` varchar(500) DEFAULT NULL,
  `created_by` int(10) UNSIGNED DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `interview_id` (`interview_id`),
  KEY `old_status_id` (`old_status_id`),
  KEY `old_sub_status_id` (`old_sub_status_id`),
  KEY `created_by` (`created_by`)
) ENGINE=InnoDB AUTO_INCREMENT=31 DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `interview_status_history`:
--

--
-- Dumping data for table `interview_status_history`
--

INSERT INTO `interview_status_history` (`id`, `interview_id`, `old_status_id`, `old_sub_status_id`, `old_round_id`, `old_intr_type_id`, `old_interview_date`, `old_comment`, `created_by`, `created_at`) VALUES
(1, 1, 59, NULL, 56, 19, '2021-12-07 14:00:00', 'dsfsdg', 3, '2021-12-14 05:10:48'),
(2, 3, 59, NULL, 51, 19, '2021-12-14 03:20:00', 'okay done', 3, '2021-12-14 05:12:05'),
(3, 3, 335, NULL, 51, 19, '2021-12-14 03:20:00', 'okay done', 3, '2021-12-14 05:12:34'),
(4, 2, 59, NULL, 51, 19, '2021-12-15 21:50:00', 'okay done', 3, '2021-12-14 09:52:32'),
(5, 2, 333, NULL, 51, 19, '2021-12-15 21:50:00', 'okay done', 3, '2021-12-14 09:52:52'),
(6, 2, 333, NULL, 52, 19, '2021-12-15 01:25:00', 'okay done', 3, '2021-12-14 09:57:20'),
(7, 2, 333, NULL, 52, 44, '2021-12-15 01:25:00', 'okay done', 3, '2021-12-14 09:57:42'),
(8, 2, 333, NULL, 52, 43, '2021-12-15 01:25:00', 'okay done', 3, '2021-12-14 10:01:57'),
(9, 1, 60, NULL, 56, 19, '2021-12-07 14:00:00', 'dsfsdg', 3, '2021-12-15 05:19:20'),
(10, 1, 337, NULL, 56, 19, '2021-12-07 14:00:00', 'dsfsdg', 3, '2021-12-15 05:19:36'),
(11, 1, 335, NULL, 56, 19, '2021-12-07 14:00:00', 'cancelled', 3, '2021-12-15 05:19:45'),
(12, 1, 333, NULL, 56, 19, '2021-12-07 14:00:00', 'cancelled', 3, '2021-12-15 05:19:56'),
(13, 4, 59, NULL, 56, 19, '2021-12-13 14:00:00', 'zdfdg', 3, '2021-12-15 05:27:49'),
(14, 4, 337, NULL, 56, 19, '2021-12-13 14:00:00', 'zdfdg', 3, '2021-12-15 05:28:07'),
(15, 4, 336, NULL, 56, 19, '2021-12-13 14:00:00', 'zdfdg', 3, '2021-12-15 05:28:19'),
(16, 4, 335, NULL, 56, 19, '2021-12-13 14:00:00', 'zdfdg', 3, '2021-12-15 05:28:41'),
(17, 4, 59, NULL, 56, 19, '2021-12-13 14:00:00', 'canceled due fake details', 3, '2021-12-15 05:29:15'),
(18, 3, 60, NULL, 51, 19, '2021-12-14 03:20:00', 'okay done', 3, '2021-12-15 05:30:12'),
(19, 4, 59, NULL, 56, 19, '2021-12-16 15:50:00', 'canceled due fake details', 4, '2021-12-16 07:27:26'),
(20, 1, 336, NULL, 56, 19, '2021-12-07 14:00:00', 'done', 4, '2021-12-16 07:33:33'),
(21, 1, 60, NULL, 56, 19, '2021-12-07 14:00:00', 'okay', 4, '2021-12-16 07:34:08'),
(22, 1, 336, NULL, 56, 19, '2021-12-07 14:00:00', 'okay', 4, '2021-12-16 07:35:00'),
(23, 1, 59, NULL, 56, 19, '2021-12-07 14:00:00', 'ok', 4, '2021-12-16 07:35:13'),
(24, 3, 333, NULL, 51, 19, '2021-12-17 15:30:00', 'hr round', 4, '2021-12-16 09:26:33'),
(25, 1, 336, NULL, 56, 19, '2021-12-07 14:00:00', 'okay done', 4, '2021-12-16 09:26:45'),
(26, 1, 334, NULL, 56, 19, '2021-12-07 14:00:00', 'okay done', 4, '2021-12-16 09:27:13'),
(27, 1, 332, NULL, 56, 19, '2021-12-07 14:00:00', 'okay done', 4, '2021-12-16 09:27:26'),
(28, 5, 59, NULL, 56, 44, '2021-12-22 15:50:00', 'okay done', 4, '2021-12-16 09:27:49'),
(29, 5, 336, NULL, 56, 44, '2021-12-22 15:50:00', 'okay done', 4, '2021-12-16 09:28:29'),
(30, 1, 396, NULL, 56, 19, '2021-12-07 14:00:00', 'okay done', 3, '2021-12-17 07:50:42');

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

--
-- Table structure for table `job_assigned_recruiters`
--

CREATE TABLE IF NOT EXISTS `job_assigned_recruiters` (
  `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  `job_id` int(10) UNSIGNED DEFAULT NULL,
  `recruiter_id` int(10) UNSIGNED DEFAULT NULL,
  `conrep_jobid` varchar(255) DEFAULT NULL,
  `conrep_recruiters` varchar(255) DEFAULT NULL,
  `assigned_date` date NOT NULL,
  PRIMARY KEY (`id`),
  KEY `job_id` (`job_id`),
  KEY `recruiter_id` (`recruiter_id`)
) ENGINE=InnoDB AUTO_INCREMENT=34 DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `job_assigned_recruiters`:
--

--
-- Dumping data for table `job_assigned_recruiters`
--

INSERT INTO `job_assigned_recruiters` (`id`, `job_id`, `recruiter_id`, `conrep_jobid`, `conrep_recruiters`, `assigned_date`) VALUES
(2, 2, 6, NULL, NULL, '2021-12-13'),
(22, 4, 5, NULL, NULL, '2021-12-16'),
(23, 4, 4, NULL, NULL, '2021-12-16'),
(24, 4, 6, NULL, NULL, '2021-12-16'),
(31, 3, 4, NULL, NULL, '2023-01-17'),
(32, 3, 6, NULL, NULL, '2023-01-17'),
(33, 7, 5, NULL, NULL, '2023-01-24');

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

--
-- Table structure for table `job_bdm_history`
--

CREATE TABLE IF NOT EXISTS `job_bdm_history` (
  `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  `job_id` int(10) UNSIGNED NOT NULL,
  `old_bdm_id` int(10) UNSIGNED NOT NULL,
  `start_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `end_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`),
  KEY `job_id` (`job_id`),
  KEY `old_bdm_id` (`old_bdm_id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `job_bdm_history`:
--

--
-- Dumping data for table `job_bdm_history`
--

INSERT INTO `job_bdm_history` (`id`, `job_id`, `old_bdm_id`, `start_date`, `end_date`) VALUES
(1, 1, 2, '2021-12-07 22:59:07', '2021-12-08 02:38:03'),
(2, 4, 4, '2021-12-13 21:16:14', '2021-12-15 23:37:47');

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

--
-- Table structure for table `job_orders`
--

CREATE TABLE IF NOT EXISTS `job_orders` (
  `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  `jobno` varchar(45) NOT NULL,
  `job_order` varchar(100) DEFAULT NULL,
  `client_id` int(10) UNSIGNED DEFAULT NULL,
  `contact_id` int(10) UNSIGNED DEFAULT NULL,
  `bdm_id` int(10) UNSIGNED DEFAULT NULL,
  `division_id` int(10) UNSIGNED DEFAULT NULL,
  `is_prime_vendor` tinyint(1) UNSIGNED DEFAULT NULL,
  `client_type` smallint(5) UNSIGNED DEFAULT NULL,
  `req_type_id` int(10) UNSIGNED DEFAULT NULL,
  `interview_type_id` varchar(128) DEFAULT NULL,
  `priority_id` int(10) UNSIGNED NOT NULL,
  `diff_level_id` int(10) UNSIGNED DEFAULT NULL,
  `position_pref_id` int(10) UNSIGNED DEFAULT NULL,
  `position_type_id` int(10) UNSIGNED DEFAULT NULL,
  `industry_id` int(10) UNSIGNED DEFAULT NULL,
  `job_location` varchar(128) DEFAULT NULL,
  `duration` varchar(255) DEFAULT NULL,
  `start_date` date DEFAULT NULL,
  `submission_deadline` date DEFAULT NULL,
  `bill_rate_type` int(10) UNSIGNED DEFAULT NULL,
  `bill_rate` double(8,2) DEFAULT NULL,
  `pay_rate` double(8,2) DEFAULT NULL,
  `pay_rate_type` int(10) UNSIGNED DEFAULT NULL,
  `positions_no` int(10) UNSIGNED NOT NULL,
  `placements` int(10) UNSIGNED DEFAULT NULL,
  `salary` decimal(9,2) DEFAULT NULL,
  `job_title` varchar(255) NOT NULL,
  `description` text,
  `req_skills` text,
  `pref_skills` text,
  `position_open_to` int(10) UNSIGNED DEFAULT NULL,
  `end_client_id` int(10) UNSIGNED DEFAULT NULL,
  `country_id` int(10) UNSIGNED DEFAULT NULL,
  `state_id` int(10) UNSIGNED DEFAULT NULL,
  `city_name` varchar(64) DEFAULT NULL,
  `zipcode` varchar(10) DEFAULT NULL,
  `reopen_date` date DEFAULT NULL,
  `required_qualification` varchar(500) DEFAULT NULL,
  `rm_id` int(10) UNSIGNED DEFAULT NULL,
  `rm2_id` int(10) UNSIGNED DEFAULT NULL,
  `status_id` int(10) UNSIGNED DEFAULT NULL,
  `comment` text,
  `created_by` varchar(45) DEFAULT NULL,
  `created_at` datetime NOT NULL,
  `updated_by` varchar(45) DEFAULT NULL,
  `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `edit_status` tinyint(5) UNSIGNED DEFAULT '0',
  `requested_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `requested_by` int(10) UNSIGNED NOT NULL,
  `approve_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `client_text` varchar(45) DEFAULT NULL,
  `contact_text` varchar(255) DEFAULT NULL,
  `bdm_text` varchar(255) DEFAULT NULL,
  `recruiting_manager_text` varchar(255) DEFAULT NULL,
  `bill_rate_text` varchar(64) DEFAULT NULL,
  `end_client_text` varchar(255) DEFAULT NULL,
  `pay_rate_text` varchar(64) DEFAULT NULL,
  `updated_by_text` varchar(45) DEFAULT NULL,
  `created_by_text` varchar(45) DEFAULT NULL,
  `conrep_reqcode` varchar(255) DEFAULT NULL,
  `conrep_reqtype` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `client_id` (`client_id`),
  KEY `contact_id` (`contact_id`),
  KEY `bdm_id` (`bdm_id`),
  KEY `division_id` (`division_id`),
  KEY `client_type` (`client_type`),
  KEY `req_type_id` (`req_type_id`),
  KEY `interview_type_id` (`interview_type_id`),
  KEY `priority_id` (`priority_id`),
  KEY `diff_level_id` (`diff_level_id`),
  KEY `position_pref_id` (`position_pref_id`),
  KEY `position_type_id` (`position_type_id`),
  KEY `end_client_id` (`end_client_id`),
  KEY `country_id` (`country_id`),
  KEY `state_id` (`state_id`),
  KEY `recruiting_manager_id` (`rm_id`),
  KEY `created_by` (`created_by`),
  KEY `created_at` (`created_at`),
  KEY `status_id` (`status_id`),
  KEY `jobno` (`jobno`),
  KEY `client_text` (`client_text`),
  KEY `contact_text` (`contact_text`),
  KEY `bdm_text` (`bdm_text`),
  KEY `recruiting_manager_text` (`recruiting_manager_text`),
  KEY `end_client_text` (`end_client_text`),
  KEY `updated_by_text` (`updated_by_text`),
  KEY `created_by_text` (`created_by_text`),
  KEY `rm2_id` (`rm2_id`),
  KEY `industry_id` (`industry_id`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `job_orders`:
--

--
-- Dumping data for table `job_orders`
--

INSERT INTO `job_orders` (`id`, `jobno`, `job_order`, `client_id`, `contact_id`, `bdm_id`, `division_id`, `is_prime_vendor`, `client_type`, `req_type_id`, `interview_type_id`, `priority_id`, `diff_level_id`, `position_pref_id`, `position_type_id`, `industry_id`, `job_location`, `duration`, `start_date`, `submission_deadline`, `bill_rate_type`, `bill_rate`, `pay_rate`, `pay_rate_type`, `positions_no`, `placements`, `salary`, `job_title`, `description`, `req_skills`, `pref_skills`, `position_open_to`, `end_client_id`, `country_id`, `state_id`, `city_name`, `zipcode`, `reopen_date`, `required_qualification`, `rm_id`, `rm2_id`, `status_id`, `comment`, `created_by`, `created_at`, `updated_by`, `updated_at`, `edit_status`, `requested_at`, `requested_by`, `approve_at`, `client_text`, `contact_text`, `bdm_text`, `recruiting_manager_text`, `bill_rate_text`, `end_client_text`, `pay_rate_text`, `updated_by_text`, `created_by_text`, `conrep_reqcode`, `conrep_reqtype`) VALUES
(1, 'JB000001', '52816546', 1, 1, 4, 5, NULL, 61, 40, '43', 50, NULL, NULL, 37, 245, 'hyd', NULL, '2021-12-07', '2021-12-18', 12, 2.22, 252.00, 12, 5, NULL, '25.00', 'PHP Develo', '<h3 style=\"font-family: Poppins; font-weight: 400; line-height: 1.3; color: rgb(31, 31, 31); margin-right: 0px; margin-bottom: 10px; margin-left: 0px; font-size: 28px; letter-spacing: -0.03em;\"><br></h3>', 'PHP,JAVA,MYSQL', 'php', NULL, NULL, 101, 7, 'hyderabad', '5013012', '2021-12-15', 'btech', 4, NULL, 4, 'on hold for few days', '1', '2021-12-08 04:29:07', '4', '2021-12-14 23:55:53', 2, '2021-12-15 10:25:53', 6, '2021-12-15 10:25:53', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(2, 'JB000002', '5246284', 1, 1, 4, 5, NULL, 61, 40, '19,43,44,101,18,102,42', 15, NULL, NULL, 37, 247, 'hyderabad', NULL, NULL, NULL, 12, 0.00, NULL, 12, 25, NULL, '25.00', 'java devolpers', '<div><br></div>', 'Good skills in java', NULL, NULL, NULL, 101, NULL, NULL, NULL, NULL, NULL, 4, NULL, 397, 'okay', '3', '2021-12-13 06:53:20', '6', '2021-12-17 12:08:37', 2, '2021-12-17 12:08:37', 6, '2021-12-17 12:08:37', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(3, 'JB000003', '', 1, 1, 4, 5, NULL, 61, 40, '18', 15, NULL, NULL, 36, 87, 'hyd', '250 days', NULL, NULL, 12, 0.00, NULL, 12, 25, NULL, NULL, 'automation test', '<div><br></div>', 'automation,PHP', NULL, NULL, NULL, 101, NULL, NULL, NULL, NULL, NULL, 4, NULL, 45, NULL, '3', '2021-12-14 01:34:17', '3', '2023-01-17 15:10:18', 2, '2023-01-17 15:10:18', 8, '2023-01-17 15:10:18', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(4, 'JB000004', '', 2, 2, 7, 5, NULL, 62, 40, NULL, 14, NULL, NULL, 36, 246, NULL, '25', NULL, NULL, 12, 0.00, NULL, 12, 5, NULL, NULL, 'export and improts manager', '<div><br></div>', 'mannual', NULL, NULL, NULL, 101, NULL, NULL, NULL, NULL, NULL, 4, NULL, 397, 'hold', '3', '2021-12-14 02:46:14', '6', '2021-12-17 12:10:09', 2, '2021-12-17 12:10:09', 8, '2021-12-17 12:10:09', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(5, 'JB000005', 'JB0000013', 2, 2, 7, 5, NULL, 61, 40, NULL, 15, NULL, NULL, 36, 242, NULL, '12', NULL, NULL, 12, 0.00, NULL, 12, 4, NULL, NULL, 'Manual Testing', '<div><br></div>', 'testing', NULL, NULL, NULL, 101, NULL, NULL, NULL, NULL, NULL, 7, NULL, 4, 'ol', '8', '2021-12-14 05:12:33', '4', '2021-12-14 23:30:50', 0, '2021-12-15 10:00:50', 0, '2021-12-15 10:00:50', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(6, 'JB000006', 'JB00000113', 1, 1, 4, 5, NULL, 61, 40, NULL, 15, NULL, NULL, 38, 239, NULL, '12', NULL, NULL, 12, 0.00, NULL, 12, 5, NULL, NULL, 'Testing1212', '<div><br></div>', 'test', NULL, NULL, NULL, 101, 10, NULL, NULL, NULL, NULL, 7, NULL, 397, 'hold', '8', '2021-12-14 05:36:37', '4', '2021-12-15 20:45:30', 0, '2021-12-16 07:15:30', 0, '2021-12-16 07:15:30', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(7, 'JB000007', '', 1, 1, 4, 5, NULL, 61, 40, NULL, 15, NULL, NULL, 37, 240, NULL, NULL, NULL, NULL, 12, 0.00, NULL, 12, 20, NULL, NULL, 'PHP developer', '<div><br></div>', 'PHP,HTML,MYSQL', NULL, NULL, NULL, 101, NULL, NULL, NULL, NULL, NULL, 4, NULL, 45, NULL, '3', '2023-01-24 12:34:27', NULL, '2023-01-24 07:04:27', 0, '2023-01-24 07:04:27', 0, '2023-01-24 07:04:27', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);

--
-- Triggers `job_orders`
--
DROP TRIGGER IF EXISTS `insert_job_status_history`;
DELIMITER $$
CREATE TRIGGER `insert_job_status_history` BEFORE UPDATE ON `job_orders` FOR EACH ROW BEGIN 
IF OLD.status_id != NEW.status_id THEN 
INSERT INTO `job_status_history` (job_id,old_status_id,old_comment,created_by) VALUES (NEW.id,OLD.status_id,OLD.comment,NEW.updated_by); 
END IF; 
IF OLD.bdm_id != NEW.bdm_id THEN 
INSERT INTO `job_bdm_history` (job_id,old_bdm_id,start_date,end_date) VALUES (NEW.id,OLD.bdm_id,OLD.created_at,NEW.updated_at); 
END IF; 
END
$$
DELIMITER ;

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

--
-- Table structure for table `job_status_history`
--

CREATE TABLE IF NOT EXISTS `job_status_history` (
  `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  `job_id` int(10) UNSIGNED NOT NULL,
  `old_status_id` int(10) UNSIGNED NOT NULL,
  `old_comment` mediumtext,
  `created_by` int(10) UNSIGNED DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `job_id` (`job_id`),
  KEY `old_status_id` (`old_status_id`),
  KEY `created_by` (`created_by`)
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `job_status_history`:
--

--
-- Dumping data for table `job_status_history`
--

INSERT INTO `job_status_history` (`id`, `job_id`, `old_status_id`, `old_comment`, `created_by`, `created_at`) VALUES
(1, 1, 45, 'comment', 4, '2021-12-15 09:44:57'),
(2, 1, 4, 'comment', 4, '2021-12-15 09:45:26'),
(3, 6, 45, NULL, 4, '2021-12-15 09:46:02'),
(4, 1, 397, 'on hold for few days', 4, '2021-12-15 09:51:01'),
(5, 6, 397, NULL, 4, '2021-12-15 09:52:03'),
(6, 6, 4, 'closed', 4, '2021-12-15 09:52:27'),
(7, 6, 397, 'hold', 4, '2021-12-15 09:52:49'),
(8, 5, 45, NULL, 4, '2021-12-15 09:53:29'),
(9, 6, 45, 'opened', 4, '2021-12-16 07:15:30'),
(10, 2, 45, NULL, 6, '2021-12-17 12:08:37'),
(11, 4, 45, NULL, 6, '2021-12-17 12:08:51'),
(12, 4, 4, 'okay', 6, '2021-12-17 12:09:09'),
(13, 4, 45, 'done', 6, '2021-12-17 12:10:09');

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

--
-- Table structure for table `job_visa_types`
--

CREATE TABLE IF NOT EXISTS `job_visa_types` (
  `job_id` int(10) UNSIGNED NOT NULL,
  `visa_type_id` int(10) UNSIGNED NOT NULL,
  KEY `job_id` (`job_id`),
  KEY `visa_type_id` (`visa_type_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `job_visa_types`:
--

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

--
-- Table structure for table `lca`
--

CREATE TABLE IF NOT EXISTS `lca` (
  `id` int(10) UNSIGNED NOT NULL,
  `employee_id` int(10) UNSIGNED NOT NULL,
  `division_id` int(10) UNSIGNED DEFAULT NULL,
  `lca_number` varchar(32) CHARACTER SET big5 NOT NULL,
  `lca_status_id` int(10) UNSIGNED DEFAULT NULL,
  `visa_type_id` int(10) UNSIGNED NOT NULL,
  `lca_created_date` date DEFAULT NULL,
  `lca_withdrawn_by` int(10) UNSIGNED DEFAULT NULL,
  `lca_withdrawn_date` date DEFAULT NULL,
  `approved_lca_doc` varchar(255) DEFAULT NULL,
  `lca_notice_doc` varchar(255) DEFAULT NULL,
  `paf_doc` varchar(255) DEFAULT NULL,
  `job_title` varchar(128) DEFAULT NULL,
  `soc_code` varchar(64) NOT NULL,
  `fulltime_position` tinyint(1) DEFAULT NULL,
  `start_date` date NOT NULL,
  `end_date` date DEFAULT NULL,
  `wage_rate` decimal(8,2) UNSIGNED NOT NULL,
  `wage_period` varchar(32) NOT NULL,
  `wage_upto_rate` decimal(8,2) UNSIGNED DEFAULT NULL,
  `lcas_no` tinyint(3) UNSIGNED DEFAULT NULL,
  `new_employment` varchar(128) DEFAULT NULL,
  `new_conc_employment` varchar(128) DEFAULT NULL,
  `continuation_approved_employment` varchar(128) DEFAULT NULL,
  `prev_approved_employment_change` varchar(128) DEFAULT NULL,
  `change_in_employer` varchar(32) DEFAULT NULL,
  `amendent_petition` varchar(64) DEFAULT NULL,
  `legal_business_name` varchar(128) DEFAULT NULL,
  `business_type` varchar(64) DEFAULT NULL,
  `employer_addr1` varchar(128) DEFAULT NULL,
  `employer_addr2` varchar(128) DEFAULT NULL,
  `employer_city` varchar(128) DEFAULT NULL,
  `employer_state_id` int(10) UNSIGNED DEFAULT NULL,
  `employer_country_id` smallint(10) UNSIGNED DEFAULT NULL,
  `employer_zipcode` varchar(8) DEFAULT NULL,
  `employer_province` varchar(64) DEFAULT NULL,
  `employer_phone` varchar(16) DEFAULT NULL,
  `employer_phone_ext` varchar(8) DEFAULT NULL,
  `employer_federal_id` varchar(64) DEFAULT NULL,
  `naics_code` varchar(64) CHARACTER SET big5 DEFAULT NULL,
  `contact_fname` varchar(64) DEFAULT NULL,
  `contact_mname` varchar(64) DEFAULT NULL,
  `contact_lname` varchar(64) DEFAULT NULL,
  `contact_job_title` varchar(128) DEFAULT NULL,
  `contact_addr1` varchar(128) DEFAULT NULL,
  `contact_addr2` varchar(128) DEFAULT NULL,
  `contact_city` varchar(128) DEFAULT NULL,
  `contact_state_id` int(10) DEFAULT NULL,
  `contact_country_id` smallint(10) DEFAULT NULL,
  `contact_pincode` varchar(8) DEFAULT NULL,
  `contact_province` varchar(64) DEFAULT NULL,
  `contact_phone` varchar(16) DEFAULT NULL,
  `contact_phone_ext` varchar(8) DEFAULT NULL,
  `contact_email` varchar(128) DEFAULT NULL,
  `repr_by_agent` tinyint(1) UNSIGNED DEFAULT NULL,
  `agent_fname` varchar(128) DEFAULT NULL,
  `agent_mname` varchar(64) DEFAULT NULL,
  `agent_lname` varchar(128) DEFAULT NULL,
  `agent_addr1` varchar(128) DEFAULT NULL,
  `agent_addr2` varchar(128) DEFAULT NULL,
  `agent_city` varchar(64) DEFAULT NULL,
  `agent_state_id` int(10) UNSIGNED DEFAULT NULL,
  `agent_country_id` smallint(5) UNSIGNED DEFAULT NULL,
  `agent_pincode` varchar(8) DEFAULT NULL,
  `agent_province` varchar(64) DEFAULT NULL,
  `agent_phone` varchar(16) DEFAULT NULL,
  `agent_phone_ext` varchar(8) DEFAULT NULL,
  `agent_email` varchar(128) DEFAULT NULL,
  `agent_business_name` varchar(128) DEFAULT NULL,
  `agent_federal_id` varchar(64) DEFAULT NULL,
  `agent_state_bar_no` varchar(64) DEFAULT NULL,
  `agent_state_high_court` varchar(64) DEFAULT NULL,
  `agent_state_high_court_name` varchar(128) DEFAULT NULL,
  `loc1_addr1` varchar(128) DEFAULT NULL,
  `loc1_addr2` varchar(128) DEFAULT NULL,
  `loc1_city` varchar(128) DEFAULT NULL,
  `loc1_state_id` int(10) DEFAULT NULL,
  `loc1_country_id` smallint(5) DEFAULT NULL,
  `loc1_pincode` varchar(8) DEFAULT NULL,
  `loc1_prev_wage_agency_name` varchar(128) DEFAULT NULL,
  `loc1_prev_wage_tracking_no` varchar(64) DEFAULT NULL,
  `loc1_wage_level` int(10) DEFAULT NULL,
  `loc1_prev_wage_rate` decimal(8,2) DEFAULT NULL,
  `loc1_prev_wage_period` int(10) DEFAULT NULL,
  `loc1_wage_source_id` int(10) DEFAULT NULL,
  `loc1_published_year` int(10) DEFAULT NULL,
  `loc1_other_wage_source_id` int(10) DEFAULT NULL,
  `loc1_prevailing_wage_source_file` varchar(255) DEFAULT NULL,
  `loc2_addr1` varchar(128) DEFAULT NULL,
  `loc2_addr2` varchar(128) DEFAULT NULL,
  `loc2_city` varchar(128) DEFAULT NULL,
  `loc2_state_id` int(10) DEFAULT NULL,
  `loc2_country_id` smallint(5) DEFAULT NULL,
  `loc2_pincode` varchar(8) DEFAULT NULL,
  `loc2_prev_wage_agency_name` varchar(128) DEFAULT NULL,
  `loc2_prev_wage_tracking_no` varchar(64) DEFAULT NULL,
  `loc2_wage_level` int(10) DEFAULT NULL,
  `loc2_prev_wage_rate` decimal(8,2) DEFAULT NULL,
  `loc2_prev_wage_period` int(10) DEFAULT NULL,
  `loc2_wage_source_id` int(10) DEFAULT NULL,
  `loc2_published_year` int(10) DEFAULT NULL,
  `loc2_other_wage_source_id` int(10) DEFAULT NULL,
  `loc2_prevailing_wage_source_file` varchar(255) DEFAULT NULL,
  `created_by` int(10) UNSIGNED DEFAULT NULL,
  `created_at` datetime DEFAULT NULL,
  `updated_by` int(10) UNSIGNED DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `lca`:
--

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

--
-- Table structure for table `lca_tracker`
--

CREATE TABLE IF NOT EXISTS `lca_tracker` (
  `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  `workforce_id` int(10) UNSIGNED DEFAULT NULL,
  `fname` varchar(128) DEFAULT NULL,
  `lname` varchar(25) DEFAULT NULL,
  `job_title` varchar(128) DEFAULT NULL,
  `employment_type` tinyint(1) UNSIGNED DEFAULT NULL,
  `positions_no` tinyint(4) UNSIGNED DEFAULT NULL,
  `job_start_date` date DEFAULT NULL,
  `job_end_date` date DEFAULT NULL,
  `preferred_sal` decimal(9,2) UNSIGNED NOT NULL DEFAULT '0.00',
  `offered_sal` decimal(9,2) UNSIGNED DEFAULT NULL COMMENT 'Pay Rate',
  `petition_type_id` smallint(5) UNSIGNED DEFAULT NULL,
  `lca_type_id` int(10) UNSIGNED DEFAULT NULL,
  `worker_type_id` smallint(6) DEFAULT NULL,
  `filing_through` tinyint(3) UNSIGNED DEFAULT NULL COMMENT '1-In House, 2- Agent',
  `attorney_submit_date` date DEFAULT NULL,
  `attorney_agent_id` smallint(5) UNSIGNED DEFAULT NULL,
  `attorney_firm` varchar(128) DEFAULT NULL,
  `attorney_name` varchar(128) DEFAULT NULL,
  `attorney_email` varchar(128) DEFAULT NULL,
  `attorney_phone` varchar(32) DEFAULT NULL,
  `attorney_addr_line1` varchar(128) DEFAULT NULL,
  `attorney_addr_line2` varchar(128) DEFAULT NULL,
  `attorney_city` varchar(64) DEFAULT NULL,
  `attorney_state_id` smallint(5) UNSIGNED DEFAULT NULL,
  `attorney_country_id` smallint(5) UNSIGNED DEFAULT NULL,
  `attorney_zipcode` varchar(8) DEFAULT NULL,
  `int_submit_date` date DEFAULT NULL,
  `int_prepared_by` varchar(128) DEFAULT NULL,
  `int_prepare_phone` varchar(16) DEFAULT NULL,
  `int_prepare_email` varchar(128) DEFAULT NULL,
  `company_name` varchar(128) DEFAULT NULL,
  `contact_name` varchar(128) DEFAULT NULL,
  `contact_phone` varchar(32) DEFAULT NULL,
  `contact_addr_line1` varchar(128) DEFAULT NULL,
  `contact_addr_line2` varchar(128) DEFAULT NULL,
  `contact_city` varchar(64) DEFAULT NULL,
  `contact_state_id` smallint(5) UNSIGNED DEFAULT NULL,
  `contact_country_id` smallint(5) UNSIGNED DEFAULT NULL,
  `contact_zipcode` varchar(8) DEFAULT NULL,
  `case_number` varchar(32) DEFAULT NULL,
  `case_status` tinyint(3) UNSIGNED DEFAULT NULL,
  `wage_level` smallint(3) UNSIGNED DEFAULT NULL,
  `min_lca_wage` decimal(9,2) UNSIGNED DEFAULT NULL,
  `max_lca_wage` decimal(9,2) UNSIGNED DEFAULT NULL,
  `posting_start_date` date DEFAULT NULL,
  `posting_end_date` date DEFAULT NULL,
  `highest_degree` varchar(128) DEFAULT NULL,
  `soc_code` varchar(45) DEFAULT NULL,
  `lca_filed_date` date DEFAULT NULL,
  `lca_valid_from` date DEFAULT NULL,
  `lca_valid_to` date DEFAULT NULL,
  `amendment_reason` smallint(5) UNSIGNED DEFAULT NULL,
  `status_id` tinyint(1) UNSIGNED DEFAULT '1',
  `created_by` int(10) UNSIGNED DEFAULT NULL,
  `created_at` datetime DEFAULT NULL,
  `updated_by` int(10) UNSIGNED DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `petitionid` varchar(255) DEFAULT NULL,
  `wage_rate` decimal(10,2) UNSIGNED DEFAULT NULL,
  `approved_date` date DEFAULT NULL,
  `division_id` int(10) UNSIGNED DEFAULT NULL,
  `client_id` int(10) UNSIGNED DEFAULT NULL,
  `comment` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `lca_tracker`:
--

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

--
-- Table structure for table `lca_tracker_work_locations`
--

CREATE TABLE IF NOT EXISTS `lca_tracker_work_locations` (
  `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  `lca_tracker_id` int(10) UNSIGNED NOT NULL,
  `addr_line1` varchar(128) DEFAULT NULL,
  `addr_line2` varchar(128) DEFAULT NULL,
  `city` varchar(64) DEFAULT NULL,
  `state_id` smallint(5) UNSIGNED DEFAULT NULL,
  `country_id` smallint(5) UNSIGNED DEFAULT NULL,
  `zipcode` varchar(8) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `lca_tracker_id` (`lca_tracker_id`),
  KEY `state_id` (`state_id`),
  KEY `country_id` (`country_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `lca_tracker_work_locations`:
--

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

--
-- Table structure for table `manualdata_green_card`
--

CREATE TABLE IF NOT EXISTS `manualdata_green_card` (
  `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  `workforce_id` int(10) UNSIGNED DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `job_title` varchar(255) DEFAULT NULL,
  `email` varchar(255) DEFAULT NULL,
  `phone` varchar(255) DEFAULT NULL,
  `other_phone` varchar(255) DEFAULT NULL,
  `gc_filing_type` int(10) UNSIGNED DEFAULT NULL,
  `filing_through` tinyint(3) UNSIGNED DEFAULT NULL,
  `attorney_agent_id` smallint(5) UNSIGNED DEFAULT NULL,
  `prevailing_wage` varchar(255) DEFAULT NULL,
  `perm_priority_date` varchar(255) DEFAULT NULL,
  `perm_status` smallint(5) UNSIGNED DEFAULT NULL,
  `perm_approved_date` varchar(255) DEFAULT NULL,
  `perm_receipt` varchar(255) DEFAULT NULL,
  `perm_receipt_date` varchar(255) DEFAULT NULL,
  `i_140_filing_date` varchar(255) DEFAULT NULL,
  `i_140_status` smallint(5) UNSIGNED DEFAULT NULL,
  `i_140_receipt` varchar(255) DEFAULT NULL,
  `i_140_receipt_date` varchar(255) DEFAULT NULL,
  `i_140_approved_date` varchar(255) DEFAULT NULL,
  `i_140_denied_date` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `manualdata_green_card`:
--

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

--
-- Table structure for table `manualdata_lca_tracker`
--

CREATE TABLE IF NOT EXISTS `manualdata_lca_tracker` (
  `name` varchar(255) DEFAULT NULL,
  `workforce_id` int(10) UNSIGNED DEFAULT NULL,
  `petition_type_id` int(10) UNSIGNED DEFAULT NULL,
  `lca_valid_from` varchar(16) DEFAULT NULL,
  `lca_valid_to` varchar(16) DEFAULT NULL,
  `filing_through` tinyint(3) UNSIGNED DEFAULT NULL,
  `attorney_agent_id` smallint(6) DEFAULT NULL,
  `attorney_firm` varchar(128) DEFAULT NULL,
  `amendment_reason` varchar(255) DEFAULT NULL,
  `job_title` varchar(255) DEFAULT NULL,
  `case_number` varchar(255) DEFAULT NULL,
  `soc_code` varchar(32) DEFAULT NULL,
  `wage_level` int(10) UNSIGNED DEFAULT NULL,
  `wage_rate` varchar(255) DEFAULT NULL,
  `lca_filed_date` varchar(32) DEFAULT NULL,
  `contact_addr_line1` varchar(255) DEFAULT NULL,
  `contact_addr_line2` varchar(255) DEFAULT NULL,
  `contact_city` varchar(255) DEFAULT NULL,
  `contact_state_id` varchar(255) DEFAULT NULL,
  `contact_zipcode` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `manualdata_lca_tracker`:
--

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

--
-- Table structure for table `manualdata_petitions`
--

CREATE TABLE IF NOT EXISTS `manualdata_petitions` (
  `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  `petitionid` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `employeeid` varchar(255) CHARACTER SET utf8 DEFAULT NULL,
  `employee_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `divisionname` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `filingdate` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `approvedate` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `startdate` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `enddate` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `receiptnoticedate` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `canceldate` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `lastarrivaldate` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `visadate` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `candidatenameother` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `cancelcomments` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `i94number` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `i94expirydate` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `jobtitle` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `lcanumber` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `ispremium` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `receiptnumber` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `visanumber` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `wagerate` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `country` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `petitiontype` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- RELATIONSHIPS FOR TABLE `manualdata_petitions`:
--

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

--
-- Table structure for table `manualdata_visa_applicants`
--

CREATE TABLE IF NOT EXISTS `manualdata_visa_applicants` (
  `name` varchar(255) DEFAULT NULL,
  `workforce_id` int(10) UNSIGNED DEFAULT NULL,
  `country_id` smallint(5) UNSIGNED DEFAULT NULL,
  `state_id` int(10) UNSIGNED DEFAULT NULL,
  `nature_of_petition` tinyint(3) UNSIGNED DEFAULT NULL,
  `visa_from_date` varchar(16) DEFAULT NULL,
  `visa_to_date` varchar(16) DEFAULT NULL,
  `filing_through` tinyint(3) UNSIGNED DEFAULT NULL,
  `attorney_agent_id` smallint(6) DEFAULT NULL,
  `attorney_firm` varchar(128) DEFAULT NULL,
  `attorney_name` varchar(128) DEFAULT NULL,
  `attorney_phone` varchar(32) DEFAULT NULL,
  `attorney_email` varchar(128) DEFAULT NULL,
  `filing_status_id` int(10) UNSIGNED DEFAULT NULL,
  `created_by` int(10) UNSIGNED DEFAULT NULL,
  `uscis_receipt_no` varchar(255) DEFAULT NULL,
  `case_number` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `manualdata_visa_applicants`:
--

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

--
-- Table structure for table `mapped_profiles`
--

CREATE TABLE IF NOT EXISTS `mapped_profiles` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `job_id` int(10) UNSIGNED NOT NULL,
  `bdm_id` int(10) DEFAULT NULL,
  `profile_id` int(10) UNSIGNED NOT NULL,
  `status_id` int(10) UNSIGNED DEFAULT NULL,
  `type` tinyint(5) UNSIGNED DEFAULT NULL,
  `created_by` int(10) UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` int(10) UNSIGNED DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `mapped_profiles`:
--

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

--
-- Table structure for table `masters`
--

CREATE TABLE IF NOT EXISTS `masters` (
  `id` smallint(5) UNSIGNED NOT NULL AUTO_INCREMENT,
  `group_id` tinyint(3) UNSIGNED NOT NULL,
  `name` varchar(255) NOT NULL,
  `is_default` tinyint(4) DEFAULT NULL,
  `is_active` tinyint(4) NOT NULL DEFAULT '1' COMMENT '0=Deleted;1=Active;2=Inactive',
  `status_type` tinyint(3) UNSIGNED NOT NULL DEFAULT '0' COMMENT '0-None, 1-Open, 2-Closed',
  `color_code` varchar(8) DEFAULT NULL,
  `item_order` tinyint(3) UNSIGNED DEFAULT NULL,
  `created_by` int(10) UNSIGNED DEFAULT NULL,
  `created_at` datetime DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `group_id` (`group_id`),
  KEY `is_active` (`is_active`),
  KEY `status_type` (`status_type`)
) ENGINE=InnoDB AUTO_INCREMENT=401 DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `masters`:
--

--
-- Dumping data for table `masters`
--

INSERT INTO `masters` (`id`, `group_id`, `name`, `is_default`, `is_active`, `status_type`, `color_code`, `item_order`, `created_by`, `created_at`) VALUES
(1, 6, 'External - USA', 1, 1, 1, '#355376', NULL, 1, '2019-08-29 16:40:36'),
(2, 18, 'Electronics & Communication', 0, 1, 1, '#00ff17', NULL, 1, '2019-08-29 17:28:39'),
(3, 18, 'Information Technology', 0, 1, 1, '#cc0b66', NULL, 1, '2019-08-29 17:30:04'),
(4, 15, 'Closed', 0, 1, 2, '#e61010', NULL, 1, '2019-08-30 12:32:17'),
(5, 5, 'USM - India', 0, 1, 1, '#000000', NULL, 1, '2019-08-30 12:32:42'),
(10, 10, 'Monthly', 0, 1, 0, '#bc4242', NULL, 1, '2019-08-30 12:33:40'),
(12, 10, 'Hourly', 1, 1, 1, '#e81a1a', NULL, 1, '2019-08-31 13:08:34'),
(13, 6, 'Internal - USA', 0, 1, 1, '#000000', NULL, 1, '2019-08-31 13:08:56'),
(14, 7, 'Low', 0, 1, 1, '#ff9800', NULL, 1, '2019-08-31 13:09:15'),
(15, 7, 'High', 1, 1, 1, '#ff0000', NULL, 1, '2019-08-31 13:09:29'),
(16, 8, 'Tough', 0, 1, 1, '#000000', NULL, 1, '2019-08-31 13:10:40'),
(17, 9, 'Remote', 0, 1, 1, '#0830ca', NULL, 1, '2019-08-31 13:11:51'),
(18, 1, 'Skype', 1, 1, 1, '#000000', NULL, 1, '2019-08-31 13:13:47'),
(19, 1, 'F2F', 0, 1, 2, '#ff2828', NULL, 1, '2019-08-31 13:14:13'),
(20, 14, 'Naukri', 0, 1, 0, '#aa2b2b', NULL, 1, '2019-09-04 17:45:22'),
(21, 14, 'Dice', 0, 1, 0, '#4f2222', NULL, 1, '2019-09-04 17:45:35'),
(24, 12, 'H1B', 0, 1, 1, '#44c1aa', 1, 1, '2019-09-04 17:46:29'),
(25, 12, 'TN - Trade NAFTA', 0, 1, 1, '#aa2424', NULL, 1, '2019-09-04 17:46:43'),
(26, 13, 'Male', 0, 1, 0, '#aa2424', NULL, 1, '2019-09-05 17:46:43'),
(27, 13, 'Female', 0, 1, 0, '#aa2424', NULL, 1, '2019-09-05 17:46:43'),
(28, 13, 'Others', 0, 1, 0, '#aa2424', NULL, 1, '2019-09-05 17:46:43'),
(29, 19, 'Jntu', 0, 1, 0, '#aa2423', NULL, 1, '2019-09-05 17:46:43'),
(30, 19, 'Andhra', 1, 1, 0, '#aa2423', NULL, 1, '2019-09-05 17:46:43'),
(31, 12, 'US Citizen', 0, 1, 1, '#ac40bf', 4, 1, '2019-09-05 17:46:43'),
(32, 12, 'Green Card', 0, 1, 1, '#4467c1', 3, 1, '2019-09-05 17:46:43'),
(33, 12, 'EAD', 0, 1, 1, '#44c1aa', NULL, 1, '2019-09-05 17:46:43'),
(34, 14, 'CareerBuilder', 0, 1, 1, '#000000', NULL, 1, '2019-09-05 17:46:43'),
(35, 14, 'Monster', 0, 1, 0, NULL, NULL, 1, '2019-09-05 17:46:43'),
(36, 9, 'Contract', 1, 1, 1, '#9c27b0', NULL, 1, NULL),
(37, 9, 'Fulltime', 0, 1, 1, '#2196f3', NULL, 1, NULL),
(38, 9, 'Contract to Hire', 0, 1, 1, '#ffc107', NULL, 1, NULL),
(40, 6, 'Internal - India', 0, 1, 0, NULL, NULL, 1, NULL),
(41, 5, 'USM - USA', 1, 1, 0, '#ae1f1f', NULL, 1, '2019-09-06 16:29:25'),
(42, 1, 'Video Call', 0, 1, 0, '#000000', NULL, 1, '2019-09-06 16:34:32'),
(43, 1, 'GoTo Meeting', 0, 1, 0, '#000000', NULL, 1, '2019-09-06 16:34:55'),
(44, 1, 'Online test', 0, 1, 0, '#000000', NULL, 1, '2019-09-06 16:35:30'),
(45, 15, 'Open', 1, 1, 1, '#1ac74c', NULL, 1, '2019-09-06 17:37:22'),
(46, 21, 'montlhy', 0, 1, 0, '#a14a4a', NULL, 1, '2019-09-09 10:26:20'),
(47, 16, 'Closed', 0, 1, 1, '#e61010', NULL, 1, '2019-09-09 17:37:22'),
(48, 16, 'Open', 1, 1, 1, '#1ac74c', NULL, 1, '2019-09-09 17:37:22'),
(49, 8, 'Medium', 0, 1, 1, '#000000', NULL, 1, '2019-09-09 16:19:54'),
(50, 7, 'Medium', 0, 1, 1, '#ff5722', NULL, 1, '2019-09-09 16:54:14'),
(52, 10, 'None', 0, 1, 0, '#000000', NULL, 1, '2019-09-10 11:29:26'),
(53, 23, 'internal', 0, 1, 1, '#cf2121', NULL, 1, '2019-09-10 13:02:47'),
(54, 22, 'term1', 0, 1, 0, '#b8b8b8', NULL, 1, '2019-09-10 13:03:47'),
(55, 22, 'term2', 0, 1, 0, '#a1a1a1', NULL, 1, '2019-09-10 13:04:11'),
(59, 2, 'Scheduled', 1, 1, 1, '#051db1', NULL, 1, '2019-09-11 10:16:27'),
(60, 2, 'Completed', 0, 1, 2, '#12a43c', NULL, 1, '2019-09-11 10:17:03'),
(61, 24, 'IST', 1, 1, 1, '#3e1f1f', NULL, 1, '2019-09-11 10:17:37'),
(62, 24, 'EST', 0, 1, 1, '#102392', NULL, 1, '2019-09-11 10:17:52'),
(63, 24, 'PST', 0, 1, 0, '#12520d', NULL, 1, '2019-09-11 10:18:14'),
(64, 25, 'Immediate', 1, 1, 1, '#000000', NULL, 1, '2019-09-11 12:33:42'),
(65, 25, '1 Week', 1, 1, 1, '#000000', NULL, 1, '2019-09-11 12:33:42'),
(66, 25, '2 Weeks', 1, 1, 1, '#000000', NULL, 1, '2019-09-11 12:33:42'),
(67, 25, '1 Month', 1, 1, 1, '#000000', NULL, 1, '2019-09-11 12:33:42'),
(68, 25, '45 Days', 1, 1, 1, '#000000', NULL, 1, '2019-09-11 12:33:42'),
(69, 25, '2 Months', 1, 1, 1, '#000000', NULL, 1, '2019-09-11 12:33:42'),
(73, 26, 'Accepted', 0, 1, 1, '#33de79', NULL, 1, '2019-09-16 12:34:20'),
(74, 26, 'Rejected', 0, 1, 1, '#f31f1f', NULL, 1, '2019-09-16 12:34:44'),
(75, 27, 'Married', 0, 1, 1, '#f31f1f', NULL, 1, '2019-09-16 12:34:44'),
(76, 27, 'Unmarried', 0, 1, 1, '#f31f1f', NULL, 1, '2019-09-16 12:34:44'),
(77, 28, 'IT', 0, 1, 1, '#000000', NULL, 1, '2019-09-16 18:08:56'),
(78, 28, 'Other', 0, 1, 1, '#881212', NULL, 1, '2019-09-16 18:09:23'),
(79, 29, 'Sr IT Recruiter', 0, 1, 1, '#000000', NULL, 1, '2019-09-16 18:09:51'),
(80, 29, 'Lead - Recruitments', 0, 1, 1, '#3153b6', NULL, 1, '2019-09-16 18:10:15'),
(81, 30, 'Reason1', 0, 1, 1, '#000000', NULL, 1, '2019-09-17 10:59:14'),
(82, 30, 'Reason2', 0, 1, 1, '#000000', NULL, 1, '2019-09-17 10:59:39'),
(83, 31, 'Rate Cut', 0, 1, 0, '#b34f4f', NULL, 1, '2019-09-24 11:05:38'),
(84, 31, 'Change in Client', 0, 1, 0, '#802f2f', NULL, 1, '2019-09-24 11:06:08'),
(85, 32, 'New', 0, 1, 0, '#29a49e', NULL, 1, '2019-09-24 11:06:38'),
(86, 32, 'Extension', 0, 1, 0, '#c23636', NULL, 1, '2019-09-24 11:06:56'),
(87, 33, 'Automation', 0, 1, 0, '#13924f', NULL, 1, '2019-09-24 11:08:51'),
(88, 34, 'Academic', 0, 1, 0, '#000000', NULL, 1, '2019-09-28 12:09:02'),
(89, 34, 'Client Agreement', 0, 1, 0, '#000000', NULL, 1, '2019-09-28 12:09:17'),
(90, 34, 'Immigration', 0, 1, 0, '#000000', NULL, 1, '2019-09-28 12:09:33'),
(91, 34, 'Insurance', 0, 1, 0, '#000000', NULL, 1, '2019-09-28 12:09:48'),
(92, 34, 'PO', 0, 1, 0, '#000000', NULL, 1, '2019-09-28 12:10:12'),
(93, 34, 'Sub Vendor PO', 0, 1, 0, '#000000', NULL, 1, '2019-09-28 12:11:32'),
(94, 12, 'F1/OPT', 0, 1, 1, '#848080', NULL, 1, '2019-10-03 16:39:33'),
(95, 12, 'H4 - EAD', 0, 1, 1, '#24143d', 5, 1, '2019-10-03 16:40:28'),
(96, 12, 'F1 Student', 0, 1, 1, '#12a7ca', NULL, 1, '2019-10-03 16:41:27'),
(97, 8, 'Easy', 0, 1, 1, '#b8a3a3', NULL, 1, '2019-10-04 11:25:15'),
(98, 14, 'Other', 1, 1, 0, NULL, NULL, 1, '2019-09-05 17:46:43'),
(99, 3, 'Php', 0, 1, 0, '#000000', NULL, 1, '2019-10-10 10:42:53'),
(100, 4, 'Intermediate', 0, 1, 0, '#000000', NULL, 1, '2019-10-10 10:43:30'),
(101, 1, 'Other', 0, 1, 1, '#cd6e6e', NULL, 1, '2019-10-22 11:08:05'),
(102, 1, 'Telephonic', 0, 1, 0, '#25a25a', NULL, 1, '2019-10-22 11:08:44'),
(103, 10, 'Yearly', 0, 1, 0, '#1ebdc0', NULL, 1, '2019-10-22 11:47:11'),
(104, 35, 'Active', 1, 1, 1, '#000000', NULL, 1, '2019-10-22 12:11:32'),
(105, 35, 'In-Active', 0, 1, 1, '#000000', NULL, 1, '2019-10-22 12:11:32'),
(108, 37, 'level1', 0, 1, 1, '#000000', NULL, 1, '2019-10-22 12:11:32'),
(109, 37, 'level2', 1, 1, 1, '#000000', NULL, 1, '2019-10-22 12:11:32'),
(110, 38, 'wage1', 0, 1, 1, '#000000', NULL, 1, '2019-10-22 12:11:32'),
(111, 38, 'wage2', 1, 1, 1, '#000000', NULL, 1, '2019-10-22 12:11:32'),
(114, 36, 'Active', 0, 1, 1, '#000000', NULL, 1, '2019-10-22 19:27:37'),
(115, 36, 'Inactive', 0, 1, 1, '#000000', NULL, 1, '2019-10-22 19:27:59'),
(116, 37, 'level3', 0, 1, 1, '#000000', NULL, 1, '2019-10-23 11:03:24'),
(117, 39, 'Certificate course', 1, 1, 0, NULL, NULL, 1, '2019-10-23 11:15:24'),
(118, 39, 'Diploma', 1, 1, 0, NULL, NULL, 1, '2019-10-23 11:15:24'),
(119, 39, 'High School Diploma', 1, 1, 0, NULL, NULL, 1, '2019-10-23 11:15:24'),
(120, 39, 'Associate Degree', 1, 1, 0, NULL, NULL, 1, '2019-10-23 11:15:24'),
(121, 39, 'Bachelors', 1, 1, 0, NULL, NULL, 1, '2019-10-23 11:15:24'),
(122, 39, 'Masters', 1, 1, 0, NULL, NULL, 1, '2019-10-23 11:15:24'),
(123, 39, 'Phd', 1, 1, 0, NULL, NULL, 1, '2019-10-23 11:15:24'),
(124, 39, 'Others ', 1, 1, 0, NULL, NULL, 1, '2019-10-23 11:15:24'),
(125, 34, 'H1', 0, 1, 0, '#000000', NULL, 1, '2019-10-23 13:13:40'),
(126, 40, 'Education Certs', 0, 1, 1, '#000000', NULL, 1, '2019-10-26 17:18:02'),
(127, 40, 'Emp Proof', 0, 1, 1, '#000000', NULL, 1, '2019-10-26 17:18:27'),
(128, 40, 'Passport', 0, 1, 1, '#000000', NULL, 1, '2019-10-26 17:18:44'),
(129, 40, 'Visa Copy', 0, 1, 1, '#000000', NULL, 1, '2019-10-26 17:19:03'),
(130, 40, 'Driving License', 0, 1, 1, '#000000', NULL, 1, '2019-10-26 17:19:18'),
(131, 41, 'Paper Work', 0, 1, 1, '#000000', NULL, 1, '2019-10-26 17:30:48'),
(132, 41, 'LCA Preparation', 0, 1, 1, '#000000', NULL, 1, '2019-10-26 17:30:58'),
(133, 41, 'Sent for Filling', 0, 1, 1, '#000000', NULL, 1, '2019-10-26 17:31:10'),
(134, 42, 'Labor', 0, 1, 1, '#000000', NULL, 1, '2019-10-29 17:31:10'),
(135, 42, 'I-140', 0, 1, 1, '#000000', NULL, 1, '2019-10-29 17:31:10'),
(136, 42, 'EAD', 0, 1, 1, '#000000', NULL, 1, '2019-10-29 17:31:10'),
(137, 42, 'I-485', 0, 1, 1, '#000000', NULL, 1, '2019-10-29 17:31:10'),
(138, 14, 'Referral', 0, 1, 1, '#000000', NULL, 1, '2019-10-31 17:31:10'),
(139, 5, 'USM US Internal', 0, 1, 0, NULL, NULL, 1, '2019-11-01 11:12:42'),
(140, 5, 'USM ESDM', 0, 1, 0, NULL, NULL, 1, '2019-11-01 11:12:42'),
(141, 5, 'USM-W2_USM/ Netlogic', 0, 1, 0, NULL, NULL, 1, '2019-11-01 11:12:42'),
(142, 5, 'USM India Internal', 0, 1, 0, NULL, NULL, 1, '2019-11-01 11:12:42'),
(143, 5, 'MSP_Direct Client Division', 0, 1, 0, NULL, NULL, 1, '2019-11-01 11:12:42'),
(144, 5, 'TA.USA', 0, 1, 0, NULL, NULL, 1, '2019-11-01 11:12:42'),
(145, 12, 'Citizen', 0, 1, 1, '#ec0000', NULL, NULL, NULL),
(146, 12, 'H1-Visa', NULL, 1, 0, '#7ac247', 2, NULL, NULL),
(147, 12, 'F1', NULL, 1, 0, NULL, NULL, NULL, NULL),
(148, 12, 'Authorized to Work', NULL, 1, 0, NULL, NULL, NULL, NULL),
(149, 12, 'H4 Visa', NULL, 1, 0, NULL, NULL, NULL, NULL),
(151, 12, 'USC', NULL, 1, 0, NULL, NULL, NULL, NULL),
(152, 12, 'H1-transfer prospect', NULL, 1, 0, '#32297a', 9, NULL, NULL),
(153, 12, 'CItizen - India', 0, 1, 1, '#2e53e9', NULL, NULL, NULL),
(154, 12, 'GC EAD', NULL, 1, 0, '#c1c34b', 8, NULL, NULL),
(155, 12, 'CPT', NULL, 1, 0, '#90685e', 7, NULL, NULL),
(156, 12, 'Prospective-H1', NULL, 1, 0, NULL, NULL, NULL, NULL),
(157, 12, 'OPT', NULL, 1, 0, '#2d8633', 6, NULL, NULL),
(158, 12, 'E3 - Australia', NULL, 1, 0, NULL, NULL, NULL, NULL),
(159, 12, 'TN Canadian Work Permit', NULL, 1, 0, NULL, NULL, NULL, NULL),
(160, 12, 'L2 Visa', NULL, 1, 0, NULL, NULL, NULL, NULL),
(161, 12, 'Canada Citizen', NULL, 1, 0, NULL, NULL, NULL, NULL),
(162, 12, 'Other', NULL, 1, 0, NULL, NULL, NULL, NULL),
(164, 12, 'L1-A Manager', NULL, 1, 0, NULL, NULL, NULL, NULL),
(165, 12, 'J1 Visa', NULL, 1, 0, NULL, NULL, NULL, NULL),
(166, 12, 'L1-B Intracompany', NULL, 1, 0, NULL, NULL, NULL, NULL),
(167, 12, 'L2 EAD', NULL, 1, 0, NULL, NULL, NULL, NULL),
(168, 12, 'B1 Visa', NULL, 1, 0, NULL, NULL, NULL, NULL),
(169, 12, 'B2 Visa', NULL, 1, 0, NULL, NULL, NULL, NULL),
(170, 12, 'Canada Greencard', NULL, 1, 0, NULL, NULL, NULL, NULL),
(171, 12, 'OPT EAD', NULL, 1, 0, NULL, NULL, NULL, NULL),
(172, 12, 'USM H1', NULL, 1, 0, NULL, NULL, NULL, NULL),
(173, 12, 'C2C/1099', NULL, 1, 0, NULL, NULL, NULL, NULL),
(174, 12, 'L1 Visa', NULL, 1, 0, NULL, NULL, NULL, NULL),
(175, 12, 'TN Mexican Wrk Pmt(TN)', 0, 1, 1, '#000000', NULL, NULL, NULL),
(176, 12, 'Cancelled H1', NULL, 1, 0, NULL, NULL, NULL, NULL),
(177, 25, '3 Weeks', NULL, 1, 0, NULL, NULL, NULL, NULL),
(178, 25, '4 Weeks', NULL, 1, 0, NULL, NULL, NULL, NULL),
(179, 25, '6 Weeks', NULL, 1, 0, NULL, NULL, NULL, NULL),
(180, 25, 'After May Graduation', NULL, 1, 0, NULL, NULL, NULL, NULL),
(181, 25, 'After Memorial day', NULL, 1, 0, NULL, NULL, NULL, NULL),
(182, 21, 'Every 4 Weeks', 0, 1, 1, NULL, NULL, 1, NULL),
(183, 21, 'Bi-Weekly', 0, 1, 1, '#000000', NULL, 1, '2019-11-05 11:42:10'),
(184, 21, 'Semi-Monthly', 0, 1, 1, '#000000', NULL, 1, '2019-11-05 11:42:22'),
(185, 21, 'Custom', 0, 1, 0, '#000000', NULL, 1, '2019-11-05 11:42:36'),
(186, 22, 'Net 35', 0, 1, 0, '#9c5e1f', NULL, 1, '2019-11-06 17:04:24'),
(187, 22, 'Net 40', 0, 1, 1, NULL, NULL, 1, NULL),
(188, 22, 'Net 45', 0, 1, 1, NULL, NULL, 1, NULL),
(190, 44, 'RFE', 0, 1, 1, '#4467c1', 1, 1, '2019-11-07 13:56:03'),
(191, 44, 'Approved', 0, 1, 1, '#90685e', 4, 1, '2019-11-07 13:56:15'),
(192, 44, 'Rejected', 0, 1, 1, '#7ac247', 5, 1, '2019-11-07 13:56:29'),
(193, 43, 'EB1', 0, 1, 1, NULL, NULL, NULL, NULL),
(194, 43, 'EB2', 0, 1, 1, NULL, NULL, NULL, NULL),
(195, 43, 'EB3', 0, 1, 1, NULL, NULL, NULL, NULL),
(196, 12, 'Not Mentioned', 0, 1, 1, NULL, NULL, NULL, NULL),
(197, 45, 'Not Due', 1, 1, 1, '#000000', NULL, 1, '2019-11-19 12:12:44'),
(198, 46, 'Invoiced', 0, 1, 1, '#000000', NULL, 1, '2019-11-19 12:23:10'),
(199, 46, 'Not Invoiced', 0, 1, 1, '#000000', NULL, 1, '2019-11-19 12:23:31'),
(200, 45, 'Approved by Billing', 0, 1, 1, '#21bb18', NULL, 1, '2019-11-19 14:58:36'),
(201, 34, 'Job Desc.', 0, 1, 0, '#cd7777', NULL, 1, '2019-11-19 15:08:38'),
(202, 34, 'Resume', 0, 1, 0, '#2495ca', NULL, 1, '2019-11-19 15:09:11'),
(203, 31, 'Budget Cut', 0, 1, 1, '#000000', NULL, 1, '2019-12-09 17:27:08'),
(204, 31, 'Completed as per Contract', 0, 1, 0, '#000000', NULL, 1, '2019-12-09 17:27:18'),
(205, 31, 'Consultant Left', 0, 1, 0, '#000000', NULL, 1, '2019-12-09 17:27:28'),
(206, 31, 'Change in Terms', 0, 1, 0, '#000000', NULL, 1, '2019-12-09 17:27:41'),
(207, 31, 'Fired', 0, 1, 0, '#000000', NULL, 1, '2019-12-09 17:28:14'),
(208, 31, 'Pulled Out', 0, 1, 0, '#000000', NULL, 1, '2019-12-09 17:28:25'),
(209, 31, 'Rolled Perm', 0, 1, 0, '#000000', NULL, 1, '2019-12-09 17:28:46'),
(210, 31, 'Converted', 0, 1, 0, '#000000', NULL, 1, '2019-12-09 17:29:06'),
(211, 5, 'USM - Oil & Gas', 0, 1, 0, NULL, NULL, NULL, NULL),
(212, 27, 'Divorced', 0, 1, 0, NULL, NULL, NULL, NULL),
(213, 28, 'Consulting', 0, 1, 0, NULL, NULL, 1, '2019-12-10 16:33:46'),
(214, 28, 'Bench Sales', 0, 1, 0, NULL, NULL, 1, '2019-12-10 16:46:22'),
(215, 28, 'Technical Infrastructure', 0, 1, 0, NULL, NULL, 1, '2019-12-10 16:46:22'),
(216, 28, 'Recruitment', 0, 1, 0, NULL, NULL, 1, '2019-12-10 16:46:22'),
(217, 28, 'Sales / Business Development', 0, 1, 0, NULL, NULL, 1, '2019-12-10 16:46:22'),
(218, 28, 'Training', 0, 1, 0, NULL, NULL, 1, '2019-12-10 16:46:22'),
(219, 28, 'HR & Internal Recruiting', 0, 1, 0, NULL, NULL, 1, '2019-12-10 16:46:22'),
(220, 28, 'Operations/Recruiting Manager', 0, 1, 0, NULL, NULL, 1, '2019-12-10 16:46:22'),
(221, 28, 'HR', 0, 1, 0, NULL, NULL, 1, '2019-12-10 16:46:22'),
(222, 28, 'Exec. Management', 0, 1, 0, NULL, NULL, 1, '2019-12-10 16:46:22'),
(223, 28, 'BDM', 0, 1, 0, NULL, NULL, 1, '2019-12-10 16:46:22'),
(224, 28, 'General Administration', 0, 1, 0, NULL, NULL, 1, '2019-12-10 16:46:22'),
(225, 28, 'Accounting', 0, 1, 0, NULL, NULL, 1, '2019-12-10 16:46:22'),
(226, 28, 'Online Training', 0, 1, 0, NULL, NULL, 1, '2019-12-10 16:46:22'),
(227, 28, 'Sales', 0, 1, 0, NULL, NULL, 1, '2019-12-10 16:46:22'),
(228, 28, 'Bench Sales & Recruitement', 0, 1, 0, NULL, NULL, 1, '2019-12-10 16:46:22'),
(229, 28, 'US- Staffing', 0, 1, 0, NULL, NULL, 1, '2019-12-10 16:46:22'),
(230, 28, 'Marketing', 0, 1, 0, NULL, NULL, 1, '2019-12-10 16:46:22'),
(231, 28, 'Federal Business', 0, 1, 0, NULL, NULL, 1, '2019-12-10 16:46:22'),
(232, 28, 'Legal', 0, 1, 0, NULL, NULL, 1, '2019-12-10 16:46:22'),
(233, 12, 'Follow-up later', 0, 1, 1, '#009c7a', NULL, 1, '2019-09-05 17:46:43'),
(234, 33, 'Auction Services', 0, 1, 0, '#13924f', NULL, 1, '2019-12-12 11:08:51'),
(235, 33, 'Banking', 0, 1, 0, '#13924f', NULL, 1, '2019-12-12 11:08:51'),
(236, 33, 'Computer Hardware', 0, 1, 0, '#13924f', NULL, 1, '2019-12-12 11:08:51'),
(237, 33, 'Education', 0, 1, 0, '#13924f', NULL, 1, '2019-12-12 11:08:51'),
(238, 33, 'Financial', 0, 1, 0, '#13924f', NULL, 1, '2019-12-12 11:08:51'),
(239, 33, 'Government Contracting', 0, 1, 0, '#13924f', NULL, 1, '2019-12-12 11:08:51'),
(240, 33, 'Health Care', 0, 1, 0, '#13924f', NULL, 1, '2019-12-12 11:08:51'),
(241, 33, 'Hospitality', 0, 1, 0, '#13924f', NULL, 1, '2019-12-12 11:08:51'),
(242, 33, 'Information Technology', 0, 1, 0, '#13924f', NULL, 1, '2019-12-12 11:08:51'),
(243, 33, 'Insurance', 0, 1, 0, '#13924f', NULL, 1, '2019-12-12 11:08:51'),
(244, 33, 'Manufacturing', 0, 1, 0, '#13924f', NULL, 1, '2019-12-12 11:08:51'),
(245, 33, 'Retail', 0, 1, 0, '#13924f', NULL, 1, '2019-12-12 11:08:51'),
(246, 33, 'Shipping', 0, 1, 0, '#13924f', NULL, 1, '2019-12-12 11:08:51'),
(247, 33, 'Software', 0, 1, 0, '#13924f', NULL, 1, '2019-12-12 11:08:51'),
(248, 33, 'State Govts.', 0, 1, 0, '#13924f', NULL, 1, '2019-12-12 11:08:51'),
(249, 33, 'Supply chain', 0, 1, 0, '#13924f', NULL, 1, '2019-12-12 11:08:51'),
(250, 33, 'Telecom', 0, 1, 0, '#13924f', NULL, 1, '2019-12-12 11:08:51'),
(251, 33, 'Travel Services', 0, 1, 0, '#13924f', NULL, 1, '2019-12-12 11:08:51'),
(252, 33, 'Utilities', 0, 1, 0, '#13924f', NULL, 1, '2019-12-12 11:08:51'),
(253, 10, 'Daily', 0, 1, 0, '#000000', NULL, 1, '2019-09-10 11:29:26'),
(254, 10, 'Fixed (One-Time)', 0, 1, 0, '#1ebdc0', NULL, 1, '2019-10-22 11:47:11'),
(255, 10, 'Weekly', 0, 1, 0, '#000000', NULL, 1, '2019-09-10 11:29:26'),
(256, 47, 'E-3', 0, 1, 0, NULL, NULL, NULL, NULL),
(257, 47, 'Green Card', 0, 1, 0, NULL, NULL, NULL, NULL),
(258, 47, 'H-1 B CAP (New Employment)', 0, 1, 0, NULL, NULL, NULL, NULL),
(259, 47, 'H-1 B Extension', 0, 1, 0, NULL, NULL, NULL, NULL),
(260, 47, 'H1 Amendment', 0, 1, 0, NULL, NULL, NULL, NULL),
(261, 47, 'H1 Amendment + Extension', 0, 1, 0, NULL, NULL, NULL, NULL),
(262, 47, 'H1 Extension', 0, 1, 0, NULL, NULL, NULL, NULL),
(263, 47, 'H1 Withdrawal', 0, 1, 0, NULL, NULL, NULL, NULL),
(264, 47, 'H1B Transfer', 0, 1, 0, NULL, NULL, NULL, NULL),
(265, 47, 'H4 EAD', 0, 1, 0, NULL, NULL, NULL, NULL),
(266, 47, 'H4 Extension', 0, 1, 0, NULL, NULL, NULL, NULL),
(267, 47, 'H4 Transfer', 0, 1, 0, NULL, NULL, NULL, NULL),
(268, 47, 'I-140', 0, 1, 0, NULL, NULL, NULL, NULL),
(269, 47, 'I-290B Notice of Appeal or Motion', 0, 1, 0, NULL, NULL, NULL, NULL),
(270, 47, 'New H1B Visa', 0, 1, 0, NULL, NULL, NULL, NULL),
(271, 47, 'New H1B Visa (Outside US)', 0, 1, 0, NULL, NULL, NULL, NULL),
(272, 47, 'New H1B Visa (Within US)', 0, 1, 0, NULL, NULL, NULL, NULL),
(273, 47, 'New H4 Visa', 0, 1, 0, NULL, NULL, NULL, NULL),
(274, 47, 'NOTICE', 0, 1, 0, NULL, NULL, NULL, NULL),
(275, 47, 'PERM', 0, 1, 0, NULL, NULL, NULL, NULL),
(276, 47, 'RFE NOTICE', 0, 1, 0, NULL, NULL, NULL, NULL),
(277, 47, 'TN2', 0, 1, 0, NULL, NULL, NULL, NULL),
(278, 48, 'EB1', 0, 1, 1, '#000000', NULL, 1, '2019-12-13 15:46:01'),
(279, 48, 'EB2', 0, 1, 1, '#000000', NULL, 1, '2019-12-13 15:46:20'),
(280, 48, 'EB3', 0, 1, 1, '#000000', NULL, 1, '2019-12-13 15:46:34'),
(281, 48, 'EB5', 0, 1, 1, '#000000', NULL, 1, '2019-12-13 15:46:46'),
(282, 48, 'Others', 0, 1, 1, '#000000', NULL, 1, '2019-12-13 15:47:39'),
(283, 49, 'New Employment', 0, 1, 1, '#000000', NULL, 1, '2019-12-13 15:52:22'),
(284, 49, 'Extension with same employer', 0, 1, 1, '#000000', NULL, 1, '2019-12-13 15:52:44'),
(285, 49, 'Change in Job role', 0, 1, 1, '#000000', NULL, 1, '2019-12-13 15:53:02'),
(286, 49, 'Change of Employer', 0, 1, 1, '#000000', NULL, 1, '2019-12-13 15:53:24'),
(287, 50, 'New Quota', 0, 1, 1, '#000000', NULL, 1, '2019-12-13 16:03:54'),
(288, 50, 'Transfer', 0, 1, 1, '#000000', NULL, 1, '2019-12-13 16:04:18'),
(289, 50, 'Extension', 0, 1, 1, '#000000', NULL, 1, '2019-12-13 16:04:32'),
(290, 50, 'Amendment', 0, 1, 1, '#000000', NULL, 1, '2019-12-13 16:04:52'),
(291, 50, 'Amendment cum Extension', 0, 1, 1, '#000000', NULL, 1, '2019-12-13 16:56:08'),
(292, 51, 'Extension', 0, 1, 1, '#000000', NULL, 1, '2019-12-14 11:09:20'),
(293, 51, 'Transfer', 0, 1, 1, '#000000', NULL, 1, '2019-12-14 11:09:34'),
(294, 51, 'New Quota (CAP)', 0, 1, 1, '#000000', NULL, 1, '2019-12-14 11:09:52'),
(295, 51, 'Amendment', 0, 1, 1, '#000000', NULL, 1, '2019-12-14 11:10:09'),
(296, 51, 'Amendment & Extension', 0, 1, 1, '#000000', NULL, 1, '2019-12-14 11:10:24'),
(297, 52, 'Certified', 0, 1, 1, '#000000', NULL, 1, '2019-12-14 12:25:10'),
(298, 52, 'In-Process', 0, 1, 1, '#000000', NULL, 1, '2019-12-14 12:25:27'),
(299, 37, 'level4', 0, 1, 0, '#c01717', NULL, 1, '2019-12-16 11:03:24'),
(300, 10, 'Day (7 Hour)', 0, 1, 0, '#000000', NULL, 1, '2019-09-10 11:29:26'),
(301, 34, 'Other', 0, 1, 0, NULL, NULL, NULL, NULL),
(302, 34, 'Summary of benefits', 0, 1, 0, NULL, NULL, NULL, NULL),
(303, 34, 'Timesheet Approved Copy', 0, 1, 0, NULL, NULL, NULL, NULL),
(304, 34, 'Timesheet Attachment 2', 0, 1, 0, NULL, NULL, NULL, NULL),
(305, 34, 'Benefit Forms', 0, 1, 0, NULL, NULL, NULL, NULL),
(306, 34, 'Contract Addendum', 0, 1, 0, NULL, NULL, NULL, NULL),
(307, 34, 'Contracts', 0, 1, 0, NULL, NULL, NULL, NULL),
(308, 34, 'Directions', 0, 1, 0, NULL, NULL, NULL, NULL),
(309, 34, 'Interview Instructions', 0, 1, 0, NULL, NULL, NULL, NULL),
(310, 34, 'Invoice Instructions', 0, 1, 0, NULL, NULL, NULL, NULL),
(311, 34, 'Job Order', 0, 1, 0, NULL, NULL, NULL, NULL),
(312, 34, 'Job Order Details', 0, 1, 0, NULL, NULL, NULL, NULL),
(313, 34, 'Onboarding', 0, 1, 0, NULL, NULL, NULL, NULL),
(314, 34, 'Paycheck', 0, 1, 0, NULL, NULL, NULL, NULL),
(315, 34, 'References', 0, 1, 0, NULL, NULL, NULL, NULL),
(316, 34, 'Requirement Details', 0, 1, 0, NULL, NULL, NULL, NULL),
(317, 34, 'Signed Consulting Agreement', 0, 1, 0, NULL, NULL, NULL, NULL),
(318, 34, 'W-9 Form', 0, 1, 0, NULL, NULL, NULL, NULL),
(319, 34, 'W2', 0, 1, 0, NULL, NULL, NULL, NULL),
(320, 34, 'Work Authorization Docs', 0, 1, 0, NULL, NULL, NULL, NULL),
(321, 14, 'vendor', 0, 1, 0, NULL, NULL, NULL, NULL),
(322, 14, 'IN', 0, 1, 0, NULL, NULL, NULL, NULL),
(323, 14, 'LinkedIn', 0, 1, 0, NULL, NULL, NULL, NULL),
(324, 14, 'Resumate', 0, 1, 0, NULL, NULL, NULL, NULL),
(325, 14, 'Professional Network', 0, 1, 0, NULL, NULL, NULL, NULL),
(326, 14, 'PAMR', 0, 1, 0, NULL, NULL, NULL, NULL),
(327, 14, 'JobPortal', 0, 1, 0, NULL, NULL, NULL, NULL),
(328, 14, 'CM', 0, 1, 0, NULL, NULL, NULL, NULL),
(329, 14, 'USM Database', 0, 1, 0, NULL, NULL, NULL, NULL),
(330, 14, 'Corp-Corp-add', 0, 1, 0, NULL, NULL, NULL, NULL),
(331, 14, 'RPBG', 0, 1, 0, NULL, NULL, NULL, NULL),
(332, 2, 'Rejected', 0, 1, 2, '#c37613', NULL, 1, '2019-09-11 10:17:03'),
(333, 2, 'Positive', 0, 1, 2, '#12a43c', NULL, 1, '2019-09-11 10:17:03'),
(334, 2, 'Rescheduled', 0, 1, 2, '#018095', NULL, 1, '2019-09-11 10:17:03'),
(335, 2, 'Cancelled', 0, 1, 2, '#a4450a', NULL, 1, '2019-09-11 10:17:03'),
(336, 2, 'Selected', 0, 1, 2, '#12a43c', NULL, 1, '2019-09-11 10:17:03'),
(337, 2, 'Scheduled Another', 0, 1, 2, '#86085f', NULL, 1, '2019-09-11 10:17:03'),
(338, 24, 'CST', 0, 1, 0, '#102392', NULL, 1, NULL),
(339, 58, 'Only locals', NULL, 1, 1, NULL, NULL, 1, NULL),
(340, 58, 'Prefer locals but will consider non locals', NULL, 1, 1, NULL, NULL, 1, NULL),
(341, 58, 'Locals or from neighbouring states', NULL, 1, 1, NULL, NULL, 1, NULL),
(342, 58, 'Willing to travel (within 5 hours of the location)', NULL, 1, 1, NULL, NULL, 1, NULL),
(343, 58, 'Anywhere in the US, but will work on-site', NULL, 1, 1, NULL, NULL, 1, NULL),
(344, 58, 'Remote', NULL, 1, 1, NULL, NULL, 1, NULL),
(345, 59, 'Academic Certificate', 0, 1, 1, '#000000', NULL, 1, '2020-01-03 14:01:09'),
(346, 59, 'Training Certificate', 0, 1, 1, '#000000', NULL, 1, '2020-01-03 14:01:53'),
(347, 59, 'Resume', 0, 1, 1, '#000000', NULL, 1, '2020-01-03 14:02:08'),
(348, 59, 'Work Experience Letter', 0, 1, 1, '#000000', NULL, 1, '2020-01-03 14:02:20'),
(349, 59, 'Passport', 0, 1, 1, '#000000', NULL, 1, '2020-01-03 14:02:30'),
(350, 59, 'I-94', 0, 1, 1, '#000000', NULL, 1, '2020-01-03 14:02:42'),
(351, 59, 'H1 Approval Notice', 0, 1, 1, '#000000', NULL, 1, '2020-01-03 14:02:52'),
(352, 59, 'Pay Stubs', 0, 1, 1, '#000000', NULL, 1, '2020-01-03 14:03:05'),
(353, 59, 'W-2', 0, 1, 1, '#000000', NULL, 1, '2020-01-03 14:03:15'),
(354, 59, 'I-140 Receipt Notice', 0, 1, 1, '#000000', NULL, 1, '2020-01-03 14:03:26'),
(355, 59, 'I-485 receipt notices', 0, 1, 1, '#000000', NULL, 1, '2020-01-03 14:03:37'),
(356, 59, 'Birth Certificate', 0, 1, 1, '#000000', NULL, 1, '2020-01-03 14:03:48'),
(357, 59, 'Marriage Certificate', 0, 1, 1, '#000000', NULL, 1, '2020-01-03 14:03:58'),
(358, 59, 'Dependent H-4 Approval Notice', 0, 1, 1, '#000000', NULL, 1, '2020-01-03 14:04:08'),
(359, 59, 'Dependent Passport', 0, 1, 1, '#000000', NULL, 1, '2020-01-03 14:04:20'),
(360, 59, 'Dependent I-94', 0, 1, 1, '#000000', NULL, 1, '2020-01-03 14:04:29'),
(361, 59, 'Other', 0, 1, 1, '#000000', NULL, 1, '2020-01-03 14:04:48'),
(362, 59, 'H1 Receipt', 0, 1, 1, '#000000', NULL, 1, '2020-01-03 14:05:09'),
(363, 59, 'LCA', 0, 1, 1, '#000000', NULL, 1, '2020-01-03 14:05:33'),
(364, 44, 'Pending', 0, 1, 1, '#ac40bf', 2, 1, '2019-11-07 13:56:29'),
(365, 49, 'Project Change', 0, 1, 1, '#000000', NULL, 31, '2020-01-21 15:29:52'),
(366, 31, 'Changed the Vendor - Same End Client', 0, 1, 0, '#000000', NULL, 31, '2020-01-22 13:09:46'),
(367, 31, 'Moved to new project', 0, 1, 0, '#000000', NULL, 31, '2020-01-22 13:15:36'),
(368, 53, 'Prevailing Wages', 0, 1, 0, '#000000', NULL, 1, '2020-01-28 00:00:00'),
(369, 53, 'Recruitment Process', 0, 1, 0, '#000000', NULL, 1, '2020-01-28 00:00:00'),
(370, 53, 'Cooling Off Period', 0, 1, 0, '#000000', NULL, 1, '2020-01-28 00:00:00'),
(371, 34, 'Perm Approval Notice', 0, 1, 0, '#134336', NULL, 1, '2020-01-29 10:49:33'),
(372, 34, 'Perm Receipt Notice', 0, 1, 0, '#299765', NULL, 1, '2020-01-29 10:49:59'),
(373, 34, 'I-140 Receipt Notice', 0, 1, 0, '#000000', NULL, 1, '2020-01-29 10:50:22'),
(374, 34, 'Public Access File (PAF)', 0, 1, 0, '#356250', NULL, 1, '2020-01-29 10:51:53'),
(375, 59, 'Perm Approval Notice', 0, 1, 0, '#247669', NULL, 1, '2020-01-29 10:57:41'),
(376, 59, 'Perm Receipt Notice', 0, 1, 0, '#599f7b', NULL, 1, '2020-01-29 10:57:58'),
(377, 59, 'I-140 Approval Notice', 0, 1, 0, '#267e75', NULL, 1, '2020-01-29 10:58:41'),
(378, 59, 'Public Access File (PAF)', 0, 1, 0, '#37b154', NULL, 1, '2020-01-29 10:58:55'),
(379, 59, 'EAD Document', 0, 1, 0, '#000000', NULL, 1, '2020-01-29 11:00:04'),
(380, 59, 'Green Card Copy', 0, 1, 0, '#74b187', NULL, 1, '2020-01-29 11:00:30'),
(381, 59, 'Denial Notice', 0, 1, 0, '#000000', NULL, 1, '2020-01-29 11:00:47'),
(382, 59, 'RFE Document', 0, 1, 1, '#671919', NULL, 1, '2020-01-29 11:01:02'),
(383, 29, 'Bench Sales Recruiter', 0, 1, 0, '#000000', NULL, 1, '2020-02-01 16:55:57'),
(384, 29, 'Software Engineer', 0, 1, 0, '#000000', NULL, 1, '2020-02-01 16:57:11'),
(385, 29, 'Systems / DevOps Engineer', 0, 1, 0, '#8d2727', NULL, 1, '2020-02-01 16:57:36'),
(386, 29, 'Recruiter', 0, 1, 0, '#a72b2b', NULL, 1, '2020-02-01 16:58:07'),
(387, 29, 'Bench Sales Executive', 0, 1, 0, '#ac3355', NULL, 1, '2020-02-01 16:58:33'),
(388, 29, 'Programmer/Analyst', 0, 1, 0, '#2c6dc0', NULL, 1, '2020-02-01 16:59:58'),
(389, 29, 'Sr. Bench Sales Executive', 0, 1, 0, '#191655', NULL, 1, '2020-02-01 17:01:20'),
(390, 29, 'BDM', 0, 1, 0, '#3c1586', NULL, 1, '2020-02-01 17:01:46'),
(391, 29, 'Director', 0, 1, 0, '#099576', NULL, 1, '2020-02-01 17:02:08'),
(392, 44, 'Filed', 0, 1, 1, '#c1c34b', 3, NULL, NULL),
(393, 34, 'RTR', 0, 1, 0, '#4d2a2a', NULL, 31, '2020-05-14 08:37:33'),
(394, 33, 'Others', 0, 1, 0, '#13924f', NULL, 1, '2019-12-12 11:08:51'),
(395, 2, 'Consultant Declined', 0, 1, 0, '#be650b', NULL, 31, '2020-06-24 10:51:49'),
(396, 2, 'Feedback Pending', 0, 1, 0, '#b32929', NULL, 31, '2020-06-26 03:50:03'),
(397, 15, 'Hold', 0, 1, 1, '#ffa500', NULL, 2046, '2020-09-29 05:32:01'),
(398, 57, 'Quarterly', 0, 1, 0, '#ffffff', NULL, 3, '2021-12-15 00:12:35'),
(399, 48, 'Quarterly 1234', 0, 1, 0, '#6f6f6f', NULL, 3, '2021-12-15 00:12:59'),
(400, 56, 'weekly', 0, 1, 2, '#624949', NULL, 3, '2021-12-15 00:14:07');

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

--
-- Table structure for table `master_group`
--

CREATE TABLE IF NOT EXISTS `master_group` (
  `group_id` tinyint(3) UNSIGNED NOT NULL AUTO_INCREMENT,
  `name` varchar(128) NOT NULL,
  `is_edit` tinyint(3) UNSIGNED NOT NULL DEFAULT '1',
  PRIMARY KEY (`group_id`),
  KEY `is_edit` (`is_edit`)
) ENGINE=InnoDB AUTO_INCREMENT=60 DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `master_group`:
--

--
-- Dumping data for table `master_group`
--

INSERT INTO `master_group` (`group_id`, `name`, `is_edit`) VALUES
(1, 'Interview Type', 1),
(2, 'Interview Status', 1),
(3, 'Skills', 1),
(4, 'Skill Levels', 1),
(5, 'Divisions', 1),
(6, 'Requirement Types', 1),
(7, 'Priority', 1),
(8, 'Difficult Levels', 1),
(9, 'Position Types', 1),
(10, 'Pay Types', 1),
(11, 'Profile Groups', 1),
(12, 'VISA Types', 1),
(13, 'Gender', 0),
(14, 'Profile Source', 1),
(15, 'Job Status', 1),
(16, 'Profile Status', 1),
(18, 'Major Degree', 1),
(19, 'University', 1),
(21, 'Invoice Cycle', 1),
(22, 'Payment Terms', 1),
(23, 'Contact Type', 1),
(24, 'Time Zone', 1),
(25, 'Notice Period', 1),
(26, 'Profile Confirm Status', 1),
(27, 'Marital Status', 1),
(28, 'Department', 1),
(29, 'Designation', 1),
(30, 'Termination Reason', 1),
(31, 'Completion Reason', 1),
(32, 'Placement Type', 1),
(33, 'Industry', 1),
(34, 'Document Types', 1),
(35, 'Immigration Status', 1),
(36, 'Wage Period', 1),
(37, 'Wage Level', 1),
(38, 'Wage Source', 1),
(39, 'Education', 1),
(40, 'Document check list', 1),
(41, 'Filling Stage', 1),
(42, 'Green Card Stage', 1),
(43, 'GC Filing Type', 1),
(44, 'USCIS Filing Status', 1),
(45, 'Time Sheet Status', 1),
(46, 'Time Sheet Invoice Status', 1),
(47, 'Immig Petition Types', 1),
(48, 'Filing Category', 1),
(49, 'Worker Type', 1),
(50, 'Petition Type', 1),
(51, 'LCA Types', 1),
(52, 'Case Status', 1),
(53, 'PERM Phase', 1),
(54, 'PERM Status', 1),
(55, 'I-485 Status', 1),
(56, 'EAD', 1),
(57, 'Advance Parole', 1),
(58, 'Position Open to', 1),
(59, 'Immigration Documents', 1);

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

--
-- Table structure for table `messages`
--

CREATE TABLE IF NOT EXISTS `messages` (
  `message_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
  `user_id` int(10) UNSIGNED NOT NULL,
  `bdm_id` int(10) UNSIGNED DEFAULT NULL,
  `message` text CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `upload_doc` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `upload_path` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `doc_type` varchar(16) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `message_type` tinyint(1) UNSIGNED NOT NULL COMMENT '0=>"Recuiter" 1=> "BDM"',
  `read_status` tinyint(1) UNSIGNED NOT NULL DEFAULT '0' COMMENT '0-Un Read, 1 Read',
  `posted_by` int(10) UNSIGNED DEFAULT NULL,
  `read_by` int(10) UNSIGNED DEFAULT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`message_id`),
  KEY `messages_bdm_id_index` (`bdm_id`),
  KEY `user_id` (`user_id`),
  KEY `posted_by` (`posted_by`),
  KEY `read_status` (`read_status`),
  KEY `message_type` (`message_type`),
  KEY `doc_type` (`doc_type`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `messages`:
--

--
-- Dumping data for table `messages`
--

INSERT INTO `messages` (`message_id`, `user_id`, `bdm_id`, `message`, `upload_doc`, `upload_path`, `doc_type`, `message_type`, `read_status`, `posted_by`, `read_by`, `created_at`, `updated_at`) VALUES
(1, 5, 3, 'hiii', '', '', '', 1, 0, 3, NULL, '2021-12-14 01:56:10', '2021-12-13 20:26:10'),
(2, 7, 6, 'hi', '', '', '', 1, 0, 6, NULL, '2021-12-17 16:14:33', '2021-12-17 10:44:33'),
(3, 3, 6, 'hi', '', '', '', 1, 1, 6, 3, '2021-12-17 16:14:44', '2021-12-17 10:53:59');

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

--
-- Table structure for table `months`
--

CREATE TABLE IF NOT EXISTS `months` (
  `id` tinyint(3) UNSIGNED NOT NULL,
  `name` varchar(32) NOT NULL,
  `month_no` varchar(8) NOT NULL,
  KEY `id` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `months`:
--

--
-- Dumping data for table `months`
--

INSERT INTO `months` (`id`, `name`, `month_no`) VALUES
(1, 'January', '01'),
(2, 'February', '02'),
(3, 'March', '03'),
(4, 'April', '04'),
(5, 'May', '05'),
(6, 'June', '06'),
(7, 'July', '07'),
(8, 'August', '08'),
(9, 'September', '09'),
(10, 'October', '10'),
(11, 'November', '11'),
(12, 'December', '12');

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

--
-- Table structure for table `notes`
--

CREATE TABLE IF NOT EXISTS `notes` (
  `note_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
  `recruiter_id` int(10) UNSIGNED NOT NULL,
  `job_id` int(10) UNSIGNED DEFAULT NULL,
  `profile_id` int(10) UNSIGNED DEFAULT NULL,
  `client_id` int(10) UNSIGNED DEFAULT NULL,
  `contact_id` int(10) UNSIGNED DEFAULT NULL,
  `placement_id` int(10) UNSIGNED DEFAULT NULL,
  `subm_id` bigint(20) UNSIGNED DEFAULT NULL,
  `workforce_id` int(10) UNSIGNED DEFAULT NULL,
  `sub_vendor_id` int(10) UNSIGNED DEFAULT NULL,
  `ts_id` int(10) UNSIGNED DEFAULT NULL,
  `va_id` int(10) UNSIGNED DEFAULT NULL,
  `lca_tracker_id` int(10) UNSIGNED DEFAULT NULL,
  `note_text` text NOT NULL,
  `created_by` int(10) UNSIGNED NOT NULL,
  `created_at` datetime DEFAULT NULL,
  `updated_by` int(10) UNSIGNED DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `conrep_recordid` varchar(45) DEFAULT NULL,
  `conrep_tablename` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`note_id`),
  KEY `created_by` (`created_by`),
  KEY `updated_by` (`updated_by`),
  KEY `job_id` (`job_id`),
  KEY `profile_id` (`profile_id`),
  KEY `recruiter_id` (`recruiter_id`),
  KEY `client_id` (`client_id`),
  KEY `placement_id` (`placement_id`),
  KEY `subm_id` (`subm_id`),
  KEY `workforce_id` (`workforce_id`),
  KEY `sub_vendor_id` (`sub_vendor_id`),
  KEY `ts_id` (`ts_id`),
  KEY `va_id` (`va_id`),
  KEY `conrep_recordid` (`conrep_recordid`),
  KEY `conrep_tablename` (`conrep_tablename`),
  KEY `lca_tracker_id` (`lca_tracker_id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `notes`:
--

--
-- Dumping data for table `notes`
--

INSERT INTO `notes` (`note_id`, `recruiter_id`, `job_id`, `profile_id`, `client_id`, `contact_id`, `placement_id`, `subm_id`, `workforce_id`, `sub_vendor_id`, `ts_id`, `va_id`, `lca_tracker_id`, `note_text`, `created_by`, `created_at`, `updated_by`, `updated_at`, `conrep_recordid`, `conrep_tablename`) VALUES
(1, 6, 2, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '12345+6', 6, '2021-12-13 07:40:28', 6, '2021-12-13 02:10:41', NULL, NULL),
(2, 3, NULL, 7, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'descprtiojnxcvzfdb', 4, '2021-12-15 01:41:25', 3, '2021-12-16 02:23:56', NULL, NULL),
(3, 3, NULL, 7, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'The United States Air Force (USAF) is the air service branch of the United States Armed Forces, and is one of the eight U.S. uniformed services. Initially formed as a part of the United States Army on 1 August 1907, the USAF was established as a separate branch of the U.S. Armed Forces on 18 September 1947 with the passing of the National Security Act of 1947. It is the second youngest branch …', 3, '2021-12-15 01:43:16', NULL, '2021-12-14 20:13:16', NULL, NULL),
(4, 3, NULL, 7, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'xfgvbxfncfh', 3, '2021-12-16 07:54:05', NULL, '2021-12-16 02:24:05', NULL, NULL),
(5, 3, NULL, 7, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'zdgtfjgnghjmvhm,hj,mxgf', 3, '2021-12-16 18:27:56', NULL, '2021-12-16 12:57:56', NULL, NULL),
(6, 8, NULL, 8, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'decrption', 8, '2021-12-17 12:08:15', NULL, '2021-12-17 06:38:15', NULL, NULL);

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

--
-- Table structure for table `notifications`
--

CREATE TABLE IF NOT EXISTS `notifications` (
  `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
  `type_id` tinyint(3) UNSIGNED NOT NULL,
  `title` varchar(255) DEFAULT NULL,
  `link` varchar(255) DEFAULT NULL,
  `job_id` int(10) UNSIGNED DEFAULT NULL,
  `profile_id` int(10) UNSIGNED DEFAULT NULL,
  `subm_id` bigint(20) UNSIGNED DEFAULT NULL,
  `confirm_id` int(10) UNSIGNED DEFAULT NULL,
  `placement_id` int(10) UNSIGNED DEFAULT NULL,
  `status_id` tinyint(1) UNSIGNED DEFAULT NULL,
  `created_at` datetime DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `type_id` (`type_id`),
  KEY `job_id` (`job_id`),
  KEY `profile_id` (`profile_id`),
  KEY `subm_id` (`subm_id`),
  KEY `confirm_id` (`confirm_id`),
  KEY `placement_id` (`placement_id`),
  KEY `status_id` (`status_id`)
) ENGINE=InnoDB AUTO_INCREMENT=110 DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `notifications`:
--

--
-- Dumping data for table `notifications`
--

INSERT INTO `notifications` (`id`, `type_id`, `title`, `link`, `job_id`, `profile_id`, `subm_id`, `confirm_id`, `placement_id`, `status_id`, `created_at`) VALUES
(1, 1, 'New Job Order JB000001 Added', NULL, 1, NULL, NULL, NULL, NULL, NULL, '2021-12-08 04:29:07'),
(2, 3, 'Profile: P0000001 Submitted Internally; Job: JB000001;  Client: USM Infra .', NULL, NULL, NULL, 1, NULL, NULL, NULL, '2021-12-08 04:32:38'),
(3, 8, 'Profile: P0000001 Submitted to  Client: USM Infra; Job: JB000001; Date: 12/08/2021.', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2021-12-08 04:34:05'),
(4, 18, 'Profile: Himansh Confirmation Approved; job: PHP Developer.', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2021-12-08 04:39:54'),
(5, 1, 'New Job Order JB000001 Added', NULL, 1, NULL, NULL, NULL, NULL, NULL, '2021-12-08 08:08:03'),
(6, 1, 'New Job Order JB000002 Added', NULL, 2, NULL, NULL, NULL, NULL, NULL, '2021-12-13 06:53:21'),
(7, 3, 'Profile: P0000002 Submitted Internally; Job: JB000002;  Client: USM Infra .', NULL, NULL, NULL, 2, NULL, NULL, NULL, '2021-12-13 06:58:12'),
(8, 3, 'Profile: P0000002 Submitted Internally; job: JB000002;  client: USM Infra .', NULL, NULL, NULL, 2, NULL, NULL, NULL, '2021-12-13 06:58:43'),
(9, 8, 'Profile: P0000002 Submitted to  Client: USM Infra; Job: JB000002; Date: 12/13/2021.', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2021-12-13 06:58:55'),
(10, 10, 'Profile: P0000002 Client Interview Scheduled; Client: USM Infra; Date: 12/15/2021; Job: JB000002.', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2021-12-13 07:41:21'),
(11, 3, 'Profile: P0000003 Submitted Internally; Job: JB000002;  Client: USM Infra .', NULL, NULL, NULL, 3, NULL, NULL, NULL, '2021-12-13 23:52:27'),
(12, 7, 'Profile: P0000003 Rejected by BDM/RM;  Job: JB000002; Client: USM Infra.', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2021-12-13 23:52:47'),
(13, 8, 'Profile: P0000003 Submitted to  Client: USM Infra; Job: JB000002; Date: 12/13/2021.', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2021-12-13 23:52:55'),
(14, 9, 'Profile: P0000003 Rejected by Client: USM Infra; for Job: JB000002.', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2021-12-13 23:53:04'),
(15, 16, 'Profile: P0000003 Internal Interview Scheduled; Client: USM Infra; Date: 12/14/2021; Job: JB000002.', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2021-12-13 23:53:32'),
(16, 1, 'New Job Order JB000001 Added', NULL, 1, NULL, NULL, NULL, NULL, NULL, '2021-12-14 00:08:33'),
(17, 4, 'Profile: P0000002 Confirmed to job: JB000002; Client: USM Infra .', NULL, NULL, NULL, NULL, 2, NULL, NULL, '2021-12-14 00:19:57'),
(18, 18, 'Profile: Rohit Confirmation Approved; job: java devolpers.', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2021-12-14 00:20:35'),
(19, 11, 'Profile: P0000002 Dropoff; Job: JB000002; Client: USM Infra.', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2021-12-14 00:21:09'),
(20, 4, 'Profile: P0000003 Confirmed to job: JB000002; Client: USM Infra .', NULL, NULL, NULL, NULL, 3, NULL, NULL, '2021-12-14 00:28:19'),
(21, 18, 'Profile: Sahith Confirmation Approved; job: java devolpers.', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2021-12-14 00:29:08'),
(22, 9, 'Profile: P0000003 Rejected by Client: USM Infra; for Job: JB000002.', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2021-12-14 00:30:11'),
(23, 11, 'Profile: P0000003 Dropoff; Job: JB000002; Client: USM Infra.', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2021-12-14 00:30:57'),
(24, 1, 'New Job Order JB000003 Added', NULL, 3, NULL, NULL, NULL, NULL, NULL, '2021-12-14 01:34:17'),
(25, 3, 'Profile: P0000004 Submitted Internally; Job: JB000003;  Client: USM Infra .', NULL, NULL, NULL, 4, NULL, NULL, NULL, '2021-12-14 01:39:24'),
(26, 3, 'Profile: P0000005 Submitted Internally; Job: JB000003;  Client: USM Infra .', NULL, NULL, NULL, 5, NULL, NULL, NULL, '2021-12-14 01:42:15'),
(27, 3, 'Profile: P0000006 Submitted Internally; Job: JB000003;  Client: USM Infra .', NULL, NULL, NULL, 6, NULL, NULL, NULL, '2021-12-14 01:43:51'),
(28, 3, 'Profile: P0000007 Submitted Internally; Job: JB000003;  Client: USM Infra .', NULL, NULL, NULL, 7, NULL, NULL, NULL, '2021-12-14 01:53:45'),
(29, 8, 'Profile: P0000004 Submitted to  Client: USM Infra; Job: JB000003; Date: 12/14/2021.', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2021-12-14 02:16:32'),
(30, 1, 'New Job Order JB000004 Added', NULL, 4, NULL, NULL, NULL, NULL, NULL, '2021-12-14 02:46:14'),
(31, 3, 'Profile: P0000004 Submitted Internally; job: JB000004;  client: usm software .', NULL, NULL, NULL, 8, NULL, NULL, NULL, '2021-12-14 02:47:07'),
(32, 1, 'New Job Order JB000005 Added', NULL, 5, NULL, NULL, NULL, NULL, NULL, '2021-12-14 05:12:33'),
(33, 1, 'New Job Order JB000006 Added', NULL, 6, NULL, NULL, NULL, NULL, NULL, '2021-12-14 05:36:37'),
(34, 3, 'Profile: P0000002 Submitted Internally; job: JB000004;  client: usm software .', NULL, NULL, NULL, 9, NULL, NULL, NULL, '2021-12-14 05:41:58'),
(35, 3, 'Profile: P0000002 Submitted Internally; job: JB000001;  client: USM Infra .', NULL, NULL, NULL, 10, NULL, NULL, NULL, '2021-12-14 05:42:22'),
(36, 3, 'Profile: P0000003 Submitted Internally; job: JB000004;  client: usm software .', NULL, NULL, NULL, 11, NULL, NULL, NULL, '2021-12-14 05:43:45'),
(37, 7, 'Profile: P0000003 Rejected by BDM/RM;  Job: JB000004; Client: usm software.', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2021-12-14 05:45:19'),
(38, 8, 'Profile: P0000003 Submitted to  Client: usm software; Job: JB000004; Date: 12/14/2021.', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2021-12-14 05:46:04'),
(39, 3, 'Profile: P0000008 Submitted Internally; Job: JB000004;  Client: usm software .', NULL, NULL, NULL, 12, NULL, NULL, NULL, '2021-12-14 07:57:20'),
(40, 3, 'Profile: P0000008 Submitted Internally; job: JB000004;  client: usm software .', NULL, NULL, NULL, 12, NULL, NULL, NULL, '2021-12-14 07:57:58'),
(41, 3, 'Profile: P0000008 Submitted Internally; job: JB000004;  client: usm software .', NULL, NULL, NULL, 12, NULL, NULL, NULL, '2021-12-14 07:59:00'),
(42, 8, 'Profile: P0000008 Submitted to  Client: usm software; Job: JB000004; Date: 12/14/2021.', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2021-12-14 08:00:52'),
(43, 10, 'Profile: P0000008 Client Interview Scheduled; Client: usm software; Date: 12/22/2021; Job: JB000004.', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2021-12-14 08:07:23'),
(44, 3, 'Profile: P0000002 Submitted Internally; job: JB000004;  client: usm software .', NULL, NULL, NULL, 9, NULL, NULL, NULL, '2021-12-14 08:10:56'),
(45, 3, 'Profile: P0000002 Submitted Internally; job: JB000001;  client: USM Infra .', NULL, NULL, NULL, 10, NULL, NULL, NULL, '2021-12-14 08:11:33'),
(46, 7, 'Profile: P0000002 Rejected by BDM/RM;  Job: JB000001; Client: USM Infra.', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2021-12-14 08:12:36'),
(47, 7, 'Profile: P0000002 Rejected by BDM/RM;  Job: JB000001; Client: USM Infra.', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2021-12-14 08:12:57'),
(48, 8, 'Profile: P0000002 Submitted to  Client: USM Infra; Job: JB000001; Date: 12/14/2021.', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2021-12-14 08:13:16'),
(49, 8, 'Profile: P0000002 Submitted to  Client: USM Infra; Job: JB000001; Date: 12/14/2021.', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2021-12-14 08:14:02'),
(50, 8, 'Profile: P0000004 Submitted to  Client: usm software; Job: JB000004; Date: 12/14/2021.', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2021-12-14 23:44:57'),
(51, 3, 'Profile: P0000007 Submitted Internally; job: JB000004;  client: usm software .', NULL, NULL, NULL, 13, NULL, NULL, NULL, '2021-12-15 01:28:41'),
(52, 8, 'Profile: P0000004 Submitted to  Client: usm software; Job: JB000004; Date: 12/15/2021.', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2021-12-15 01:45:54'),
(53, 3, 'Profile: P0000007 Submitted Internally; job: JB000003;  client: USM Infra .', NULL, NULL, NULL, 7, NULL, NULL, NULL, '2021-12-15 01:46:11'),
(54, 3, 'Profile: P0000007 Submitted Internally; job: JB000003;  client: USM Infra .', NULL, NULL, NULL, 7, NULL, NULL, NULL, '2021-12-15 01:46:11'),
(55, 3, 'Profile: P0000007 Submitted Internally; job: JB000004;  client: usm software .', NULL, NULL, NULL, 13, NULL, NULL, NULL, '2021-12-15 01:46:44'),
(56, 10, 'Profile: P0000004 Client Interview Scheduled; Client: usm software; Date: 12/16/2021; Job: JB000004.', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2021-12-15 02:49:07'),
(57, 8, 'Profile: P0000007 Submitted to  Client: usm software; Job: JB000004; Date: 12/15/2021.', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2021-12-15 02:51:56'),
(58, 4, 'Profile: P0000008 Confirmed to job: JB000004; Client: usm software .', NULL, NULL, NULL, NULL, 4, NULL, NULL, '2021-12-15 02:53:06'),
(59, 13, 'Job: JB000001 Closed; Client: USM Infra.', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2021-12-15 04:45:26'),
(60, 13, 'Job: JB000006 Closed; Client: USM Infra.', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2021-12-15 04:52:03'),
(61, 13, 'Job: JB000006 Closed; Client: USM Infra.', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2021-12-15 04:52:27'),
(62, 13, 'Job: JB000006 Closed; Client: USM Infra.', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2021-12-15 04:52:49'),
(63, 13, 'Job: JB000005 Closed; Client: usm software.', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2021-12-15 04:53:29'),
(64, 18, 'Profile: Vindo Confirmation Approved; job: export and improts manager.', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2021-12-15 05:31:00'),
(65, 9, 'Profile: P0000001 Rejected by Client: USM Infra; for Job: JB000001.', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2021-12-15 07:10:25'),
(66, 8, 'Profile: P0000007 Submitted to  Client: USM Infra; Job: JB000003; Date: 12/15/2021.', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2021-12-15 07:12:17'),
(67, 4, 'Profile: P0000004 Confirmed to job: JB000003; Client: USM Infra .', NULL, NULL, NULL, NULL, 5, NULL, NULL, '2021-12-15 07:19:51'),
(68, 16, 'Profile: P0000007 Internal Interview Scheduled; Client: USM Infra; Date: 12/15/2021; Job: JB000003.', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2021-12-15 07:46:09'),
(69, 8, 'Profile: P0000005 Submitted to  Client: USM Infra; Job: JB000003; Date: 12/15/2021.', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2021-12-15 07:46:22'),
(70, 16, 'Profile: P0000005 Internal Interview Scheduled; Client: USM Infra; Date: 12/15/2021; Job: JB000003.', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2021-12-15 07:46:42'),
(71, 8, 'Profile: P0000002 Submitted to  Client: usm software; Job: JB000004; Date: 12/15/2021.', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2021-12-15 07:49:29'),
(72, 4, 'Profile: P0000007 Confirmed to job: JB000004; Client: usm software .', NULL, NULL, NULL, NULL, 6, NULL, NULL, '2021-12-16 00:27:29'),
(73, 4, 'Profile: P0000004 Confirmed to job: JB000004; Client: usm software .', NULL, NULL, NULL, NULL, 7, NULL, NULL, '2021-12-16 00:28:40'),
(74, 3, 'Profile: P0000006 Submitted Internally; job: JB000003;  client: USM Infra .', NULL, NULL, NULL, 6, NULL, NULL, NULL, '2021-12-16 00:34:19'),
(75, 3, 'Profile: P0000006 Submitted Internally; job: JB000002;  client: USM Infra .', NULL, NULL, NULL, 14, NULL, NULL, NULL, '2021-12-16 00:37:35'),
(76, 3, 'Profile: P0000006 Submitted Internally; job: JB000006;  client: USM Infra .', NULL, NULL, NULL, 15, NULL, NULL, NULL, '2021-12-16 00:37:54'),
(77, 3, 'Profile: P0000006 Submitted Internally; job: JB000004;  client: usm software .', NULL, NULL, NULL, 16, NULL, NULL, NULL, '2021-12-16 00:38:08'),
(78, 3, 'Profile: P0000006 Submitted Internally; job: JB000004;  client: usm software .', NULL, NULL, NULL, 16, NULL, NULL, NULL, '2021-12-16 00:38:27'),
(79, 8, 'Profile: P0000006 Submitted to  Client: USM Infra; Job: JB000006; Date: 12/16/2021.', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2021-12-16 02:02:20'),
(80, 13, 'Job: JB000006 Closed; Client: USM Infra.', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2021-12-16 02:15:30'),
(81, 9, 'Profile: P0000007 Rejected by Client: usm software; for Job: JB000004.', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2021-12-16 02:21:03'),
(82, 4, 'Profile: P0000005 Confirmed to job: JB000003; Client: USM Infra .', NULL, NULL, NULL, NULL, 8, NULL, NULL, '2021-12-16 02:23:46'),
(83, 9, 'Profile: P0000004 Rejected by Client: USM Infra; for Job: JB000003.', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2021-12-16 02:24:42'),
(84, 4, 'Profile: P0000004 Confirmed to job: JB000003; Client: USM Infra .', NULL, NULL, NULL, NULL, 9, NULL, NULL, '2021-12-16 02:27:54'),
(85, 11, 'Profile: P0000004 Dropoff; Job: JB000004; Client: usm software.', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2021-12-16 02:28:26'),
(86, 11, 'Profile: P0000003 Dropoff; Job: JB000002; Client: USM Infra.', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2021-12-16 02:29:47'),
(87, 11, 'Profile: P0000001 Dropoff; Job: JB000001; Client: USM Infra.', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2021-12-16 02:32:23'),
(88, 7, 'Profile: P0000007 Rejected by BDM/RM;  Job: JB000004; Client: usm software.', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2021-12-16 04:29:15'),
(89, 18, 'Profile: Nitish Confirmation Approved; job: automation test.', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2021-12-16 04:29:50'),
(90, 4, 'Profile: P0000007 Confirmed to job: JB000003; Client: USM Infra .', NULL, NULL, NULL, NULL, 10, NULL, NULL, '2021-12-16 05:34:58'),
(91, 8, 'Profile: P0000006 Submitted to  Client: USM Infra; Job: JB000003; Date: 12/16/2021.', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2021-12-16 18:28:59'),
(92, 16, 'Profile: P0000006 Internal Interview Scheduled; Client: USM Infra; Date: 12/16/2021; Job: JB000003.', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2021-12-16 18:29:45'),
(93, 8, 'Profile: P0000006 Submitted to  Client: usm software; Job: JB000004; Date: 12/17/2021.', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2021-12-17 12:14:18'),
(94, 8, 'Profile: P0000007 Submitted to  Client: usm software; Job: JB000004; Date: 12/17/2021.', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2021-12-17 12:58:26'),
(95, 4, 'Profile: P0000007 Confirmed to job: JB000004; Client: usm software .', NULL, NULL, NULL, NULL, 11, NULL, NULL, '2021-12-17 12:59:20'),
(96, 11, 'Profile: P0000008 Dropoff; Job: JB000004; Client: usm software.', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2021-12-17 13:13:10'),
(97, 11, 'Profile: P0000002 Dropoff; Job: JB000002; Client: USM Infra.', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2021-12-17 16:09:52'),
(98, 11, 'Profile: P0000002 Dropoff; Job: JB000002; Client: USM Infra.', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2021-12-17 16:13:06'),
(99, 11, 'Profile: P0000002 Dropoff; Job: JB000002; Client: USM Infra.', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2021-12-17 16:13:22'),
(100, 11, 'Profile: P0000002 Dropoff; Job: JB000002; Client: USM Infra.', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2021-12-17 16:13:38'),
(101, 11, 'Profile: P0000002 Dropoff; Job: JB000002; Client: USM Infra.', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2021-12-17 16:13:53'),
(102, 13, 'Job: JB000002 Closed; Client: USM Infra.', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2021-12-17 17:38:37'),
(103, 13, 'Job: JB000004 Closed; Client: usm software.', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2021-12-17 17:38:51'),
(104, 13, 'Job: JB000004 Closed; Client: usm software.', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2021-12-17 17:39:09'),
(105, 13, 'Job: JB000004 Closed; Client: usm software.', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2021-12-17 17:40:09'),
(106, 3, 'Profile: P0000010 Submitted Internally; Job: JB000003;  Client: USM Infra .', NULL, NULL, NULL, 17, NULL, NULL, NULL, '2023-01-17 19:04:50'),
(107, 1, 'New Job Order JB000007 Added', NULL, 7, NULL, NULL, NULL, NULL, NULL, '2023-01-24 12:34:27'),
(108, 3, 'Profile: P0000011 Submitted Internally; Job: JB000007;  Client: USM Infra .', NULL, NULL, NULL, 18, NULL, NULL, NULL, '2023-01-24 12:39:52'),
(109, 3, 'Profile: P0000012 Submitted Internally; Job: JB000007;  Client: USM Infra .', NULL, NULL, NULL, 19, NULL, NULL, NULL, '2023-01-24 17:57:24');

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

--
-- Table structure for table `notification_types`
--

CREATE TABLE IF NOT EXISTS `notification_types` (
  `id` tinyint(3) UNSIGNED NOT NULL AUTO_INCREMENT,
  `name` varchar(128) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `notification_types`:
--

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

--
-- Table structure for table `notification_users`
--

CREATE TABLE IF NOT EXISTS `notification_users` (
  `noti_id` bigint(20) UNSIGNED NOT NULL,
  `user_id` int(10) UNSIGNED NOT NULL,
  `status` tinyint(1) UNSIGNED DEFAULT '1',
  KEY `noti_id` (`noti_id`),
  KEY `user_id` (`user_id`),
  KEY `status` (`status`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `notification_users`:
--

--
-- Dumping data for table `notification_users`
--

INSERT INTO `notification_users` (`noti_id`, `user_id`, `status`) VALUES
(2, 2, 1),
(3, 1, 1),
(4, 892, 1),
(5, 4, 1),
(6, 4, 1),
(6, 6, 1),
(7, 4, 1),
(7, 4, 1),
(8, 4, 1),
(9, 4, 1),
(9, 6, 1),
(10, 4, 1),
(10, 4, 1),
(11, 4, 1),
(12, 4, 1),
(14, 4, 1),
(15, 4, 1),
(16, 4, 1),
(17, 4, 1),
(17, 4, 1),
(18, 892, 1),
(19, 4, 1),
(19, 4, 1),
(19, 1, 1),
(20, 4, 1),
(21, 892, 1),
(22, 3, 1),
(22, 4, 1),
(23, 4, 1),
(23, 4, 1),
(23, 1, 1),
(24, 4, 1),
(24, 4, 1),
(24, 6, 1),
(25, 4, 1),
(26, 4, 1),
(27, 4, 1),
(28, 4, 1),
(29, 3, 1),
(30, 4, 1),
(30, 5, 1),
(30, 4, 1),
(31, 4, 1),
(32, 4, 1),
(32, 5, 1),
(33, 4, 1),
(33, 8, 1),
(34, 4, 1),
(34, 4, 1),
(35, 4, 1),
(35, 4, 1),
(36, 4, 1),
(37, 4, 1),
(37, 4, 1),
(37, 8, 1),
(38, 4, 1),
(38, 8, 1),
(39, 4, 1),
(39, 4, 1),
(40, 4, 1),
(41, 4, 1),
(42, 4, 1),
(42, 8, 1),
(43, 4, 1),
(43, 4, 1),
(44, 4, 1),
(45, 4, 1),
(46, 4, 1),
(46, 4, 1),
(46, 8, 1),
(47, 4, 1),
(47, 4, 1),
(47, 8, 1),
(48, 4, 1),
(48, 8, 1),
(49, 4, 1),
(49, 8, 1),
(51, 4, 1),
(52, 4, 1),
(52, 5, 1),
(53, 4, 1),
(54, 4, 1),
(56, 4, 1),
(56, 4, 1),
(57, 4, 1),
(58, 4, 1),
(58, 4, 1),
(59, 4, 1),
(59, 4, 1),
(60, 4, 1),
(60, 4, 1),
(61, 4, 1),
(61, 4, 1),
(62, 4, 1),
(62, 4, 1),
(63, 4, 1),
(63, 7, 1),
(32, 7, 1),
(33, 7, 1),
(64, 892, 1),
(65, 4, 1),
(65, 4, 1),
(66, 4, 1),
(66, 6, 1),
(67, 4, 1),
(68, 4, 1),
(68, 4, 1),
(69, 3, 1),
(70, 4, 1),
(71, 4, 1),
(71, 8, 1),
(72, 7, 1),
(73, 4, 1),
(73, 4, 1),
(75, 4, 1),
(76, 4, 1),
(77, 4, 1),
(79, 4, 1),
(80, 7, 1),
(80, 4, 1),
(81, 4, 1),
(81, 7, 1),
(82, 4, 1),
(83, 4, 1),
(84, 4, 1),
(85, 4, 1),
(85, 4, 1),
(85, 1, 1),
(86, 4, 1),
(87, 4, 1),
(87, 4, 1),
(87, 1, 1),
(88, 7, 1),
(88, 4, 1),
(89, 892, 1),
(90, 4, 1),
(90, 4, 1),
(92, 4, 1),
(93, 4, 1),
(94, 4, 1),
(95, 7, 1),
(96, 4, 1),
(96, 4, 1),
(96, 1, 1),
(97, 4, 1),
(97, 4, 1),
(98, 4, 1),
(98, 4, 1),
(99, 4, 1),
(99, 4, 1),
(100, 4, 1),
(100, 4, 1),
(101, 4, 1),
(101, 4, 1),
(102, 4, 1),
(102, 4, 1),
(103, 4, 1),
(103, 7, 1),
(104, 4, 1),
(104, 7, 1),
(105, 4, 1),
(105, 7, 1),
(106, 4, 1),
(107, 4, 1),
(107, 5, 1),
(108, 4, 1),
(109, 4, 1);

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

--
-- Table structure for table `payroll_notes`
--

CREATE TABLE IF NOT EXISTS `payroll_notes` (
  `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  `type_id` tinyint(3) UNSIGNED NOT NULL COMMENT '1-Consultant Payroll, 2-Internal Payroll',
  `from_date` date NOT NULL,
  `to_date` date NOT NULL,
  `note_text` text NOT NULL,
  `created_by` int(10) UNSIGNED NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_by` int(10) UNSIGNED DEFAULT NULL,
  `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `created_by` (`created_by`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- RELATIONSHIPS FOR TABLE `payroll_notes`:
--

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

--
-- Table structure for table `pay_perticulars`
--

CREATE TABLE IF NOT EXISTS `pay_perticulars` (
  `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  `workforce_id` int(10) UNSIGNED NOT NULL,
  `consult_id` varchar(32) DEFAULT NULL,
  `sui` varchar(32) DEFAULT NULL,
  `pay_period` varchar(128) DEFAULT NULL,
  `period_from_date` date DEFAULT NULL,
  `period_to_date` date DEFAULT NULL,
  `total_hours` decimal(9,2) DEFAULT NULL,
  `bill_rate` decimal(9,2) DEFAULT NULL,
  `pay_rate` decimal(9,2) DEFAULT NULL,
  `lca_pa` decimal(11,2) DEFAULT NULL,
  `lca_per_payroll` decimal(9,2) DEFAULT NULL,
  `lca_pay_rate` decimal(9,2) DEFAULT NULL,
  `referral_bonus` decimal(9,2) DEFAULT NULL,
  `other_pay` decimal(9,2) DEFAULT NULL,
  `other_addition` decimal(9,2) DEFAULT NULL,
  `other_deduction` decimal(9,2) DEFAULT NULL,
  `per_diem` decimal(9,2) DEFAULT NULL,
  `actual_sal` decimal(10,2) DEFAULT NULL,
  `current_sal` decimal(9,2) DEFAULT NULL,
  `payroll_bal` decimal(8,2) DEFAULT NULL,
  `base_sal` decimal(10,2) DEFAULT NULL,
  `gross_salary` decimal(11,2) DEFAULT NULL,
  `federal` varchar(128) DEFAULT NULL,
  `fica_med` varchar(128) DEFAULT NULL,
  `fica_ss` varchar(128) DEFAULT NULL,
  `state_sit` varchar(128) DEFAULT NULL,
  `emp_med` varchar(128) DEFAULT NULL,
  `emp_den` varchar(128) DEFAULT NULL,
  `emp_vis` varchar(128) DEFAULT NULL,
  `employer_med` varchar(128) DEFAULT NULL,
  `employer_den` varchar(128) DEFAULT NULL,
  `employer_vis` varchar(128) DEFAULT NULL,
  `advances` decimal(9,2) DEFAULT NULL,
  `net_salary` decimal(9,2) DEFAULT NULL,
  `insurance_amount` decimal(10,2) DEFAULT NULL,
  `company_insurance` decimal(9,2) DEFAULT NULL,
  `carry_amount` decimal(10,2) DEFAULT NULL,
  `negative_amount` decimal(9,2) DEFAULT NULL,
  `comments` varchar(500) DEFAULT NULL,
  `status_id` tinyint(1) UNSIGNED NOT NULL DEFAULT '0',
  `emp_type_id` int(10) UNSIGNED DEFAULT NULL,
  `cost_type_id` int(10) UNSIGNED DEFAULT NULL,
  `visa_type_id` int(10) UNSIGNED DEFAULT NULL,
  `created_by` int(10) UNSIGNED NOT NULL,
  `created_at` datetime DEFAULT NULL,
  `updated_by` int(10) UNSIGNED DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `workforce_id` (`workforce_id`),
  KEY `period_from_date` (`period_from_date`),
  KEY `period_to_date` (`period_to_date`),
  KEY `status_id` (`status_id`),
  KEY `emp_type_id` (`emp_type_id`),
  KEY `cost_type_id` (`cost_type_id`),
  KEY `visa_type_id` (`visa_type_id`),
  KEY `created_by` (`created_by`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `pay_perticulars`:
--

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

--
-- Stand-in structure for view `pending_client_interview_submissions`
-- (See below for the actual view)
--
DROP VIEW IF EXISTS `pending_client_interview_submissions`;
CREATE TABLE IF NOT EXISTS `pending_client_interview_submissions` (
`date` date
,`type` varchar(9)
,`subm_id` int(11) unsigned
,`job_id` int(11) unsigned
,`bdm_id` int(11) unsigned
,`rm_id` int(11) unsigned
);

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

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

CREATE TABLE IF NOT EXISTS `permissions` (
  `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  `parent_id` int(10) UNSIGNED DEFAULT NULL,
  `name` varchar(128) NOT NULL,
  `display_name` varchar(128) DEFAULT NULL,
  `status` tinyint(3) UNSIGNED NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`),
  KEY `parent_id` (`parent_id`),
  KEY `name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=165 DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `permissions`:
--

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

INSERT INTO `permissions` (`id`, `parent_id`, `name`, `display_name`, `status`) VALUES
(1, NULL, 'dashboard', 'Dashboard', 1),
(2, NULL, 'job-orders', 'Job Orders', 1),
(3, NULL, 'profiles', 'Profiles', 1),
(4, NULL, 'hotlist', 'Hotlist', 1),
(6, NULL, 'clients', 'Clients', 1),
(7, NULL, 'sub-vendors', 'Sub Vendors', 1),
(8, NULL, 'vendor-contacts', 'Vendor Contacts', 1),
(9, NULL, 'confirmations', 'Confirmations', 1),
(10, NULL, 'placements', 'Placements', 1),
(11, NULL, 'workforce', 'Workforce', 1),
(12, NULL, 'timesheets', 'Timesheets', 1),
(13, NULL, 'immigration', 'Immigration', 1),
(14, NULL, 'user-management', 'User Management', 1),
(16, NULL, 'masters', 'Masters', 1),
(17, NULL, 'finance', 'Finance', 1),
(18, NULL, 'recruiting', 'Recruiting', 1),
(19, NULL, 'point-of-contact', 'Point Of Contacts', 1),
(20, NULL, 'targets', 'Targets', 1),
(21, 1, 'admin-dashboard', 'Admin Dashboard', 1),
(22, 1, 'self-dashboard', 'Self Dashboard', 1),
(23, 2, 'view-all-jobs', 'View All Jobs', 1),
(24, 2, 'view-my-jobs', 'View My Jobs', 1),
(25, 2, 'create-job', 'Create Job', 1),
(26, 2, 'edit-job', 'Edit Job', 1),
(27, 3, 'view-all-profiles', 'View All Profiles', 1),
(28, 3, 'view-my-profiles', 'View My Profiles', 1),
(29, 3, 'create-profile', 'Create Profile', 1),
(30, 3, 'edit-profile', 'Edit Profile', 1),
(31, 4, 'view-all-hotlist', 'View All Hotlist', 1),
(32, 4, 'create-hotlist', 'Create Hotlist', 1),
(33, 4, 'edit-hotlist', 'Edit Hotlist', 1),
(35, 6, 'view-all-clients', 'View All Clients', 1),
(36, 6, 'view-my-clients', 'View My Clients', 1),
(37, 6, 'view-all-contacts', 'View All Contacts', 1),
(38, 6, 'view-my-contacts', 'View My Contacts', 1),
(39, 7, 'view-all-sub-vendors', 'View All Sub Vendors', 1),
(40, 7, 'create-sub-vendor', 'Create Sub Vendor', 1),
(41, 7, 'edit-sub-vendor', 'Edit Sub Vendor', 1),
(42, 8, 'view-all-vendor-contacts', 'View All Vendor Contacts', 1),
(43, 8, 'create-vendor-contact', 'Create Vendor Contact', 1),
(44, 8, 'edit-vendor-contact', 'Edit Vendor Contact', 1),
(45, 9, 'all-pending-confirms', 'All Pending Confirmations', 1),
(46, 9, 'all-approved-confirms', 'All Approved Confirmations', 1),
(47, 10, 'view-all-placements', 'View All Placements', 1),
(48, 10, 'create-placement', 'Create Placement', 1),
(49, 10, 'edit-placement', 'Edit Placement', 1),
(50, 11, 'view-all-workforce', 'View All Workforce', 1),
(51, 11, 'create-workforce', 'Create Workforce', 1),
(52, 11, 'edit-workforce', 'Edit Workforce', 1),
(53, 12, 'view-all-timesheets', 'View All Timesheets', 1),
(54, 12, 'create-timesheet', 'Create Timesheet', 1),
(55, 12, 'edit-timesheet', 'Edit Timesheet', 1),
(56, 14, 'view-employees', 'View Employees', 1),
(57, 14, 'edit-employee', 'Edit Employee', 1),
(58, 14, 'roles', 'Roles', 1),
(59, 58, 'view-roles', 'View Roles', 1),
(60, 58, 'create-role', 'Create Role', 1),
(61, 58, 'edit-role', 'Edit Role', 1),
(62, 16, 'view-masters', 'View Masters', 1),
(63, 16, 'create-master', 'Create Master', 1),
(64, 16, 'edit-master', 'Edit Master', 1),
(65, 3, 'profile-submissions', 'Profile Submissions', 1),
(66, 3, 'profile-interviews', 'Profile Interviews', 1),
(67, 4, 'hotlist-submissions', 'Hotlist Submissions', 1),
(68, 4, 'hotlist-interviews', 'Hotlist Interviews', 1),
(69, 13, 'new-h1', 'New H1-B', 1),
(70, 13, 'existing-h1', 'Existing H1-B', 1),
(71, 13, 'h1-transfer', 'H1-B Transfer', 1),
(72, 13, 'greencard', 'Greencard', 1),
(73, 65, 'all-profile-submissions', 'All Submissions', 1),
(74, 65, 'my-profile-submissions', 'My Submissions', 1),
(75, 65, 'create-profile-submission', 'Create Submission', 1),
(76, 65, 'edit-profile-submission', 'Edit Submission', 1),
(77, 65, 'profile-client-submission', 'Client Submission', 1),
(78, 66, 'all-profile-interviews', 'All Interviews', 1),
(79, 66, 'my-profile-interviews', 'My Interviews', 1),
(80, 66, 'create-profile-interview', 'Create Interview', 1),
(81, 66, 'edit-profile-interview', 'Edit Interview', 1),
(82, 10, 'show-margin', 'Show Margin', 1),
(83, 14, 'view-team-users', 'Team Employees', 1),
(84, 14, 'view-all-users', 'All Employees', 1),
(85, 14, 'change-bdm', 'Change Bdm', 1),
(86, 3, 'view-team-profiles', 'View Team Profiles', 1),
(87, 65, 'team-profile-submissions', 'Team Submissions', 1),
(88, 66, 'team-profile-interviews', 'Team Interviews', 1),
(89, 11, 'view-profiling', 'View Profiling', 1),
(90, 4, 'view-my-hotlist', 'View My Hotlist', 1),
(91, 67, 'my-hotlist-submissions', 'My Submissions', 1),
(92, 67, 'all-hotlist-submissions', 'All Submissions', 1),
(93, 68, 'my-hotlist-interviews', 'My Interviews', 1),
(94, 68, 'all-hotlist-interviews', 'All Interviews', 1),
(95, 10, 'view-my-placements', 'View My Placements', 1),
(96, 17, 'payroll', 'Payroll', 1),
(97, 1, 'reports', 'Reports', 1),
(98, 14, 'sms', 'SMS/Text', 1),
(99, 14, 'bulk-mail', 'Bulk Mail', 1),
(100, 14, 'profile-bulkmail', 'Profiles Bulkmail', 1),
(101, 1, 'incentives', 'Incentives', 1),
(102, 18, 'internal-profile-search', 'Internal Profiles Search', 1),
(103, 18, 'dice-search', 'Dice Search', 1),
(104, 18, 'dice-users', 'Dice Users', 1),
(105, 18, 'monster-search', 'Monster Search', 1),
(106, 65, 'submission-reports', 'Submission Reports', 1),
(107, 4, 'hotlist-export', 'Hotlist Export', 1),
(108, 4, 'hotlist-summary', 'Hotlist Summary', 1),
(109, 3, 'referrals', 'Referrals', 1),
(110, 9, 'my-approved-confirms', 'My Approved Confirmations', 1),
(111, 9, 'my-pending-confirms', 'My Pending Confirmations', 1),
(112, 10, 'download-placements', 'Download Placements', 1),
(113, 21, 'operational', 'Operational', 1),
(114, 21, 'sales-activities', 'Sales Activities', 1),
(115, 21, 'db-immigration', 'Immigration', 1),
(116, 21, 'db-bdm-summary', 'BDM Summary', 1),
(117, 21, 'db-consultant', 'Consultants', 1),
(118, 21, 'db-finance', 'Finance', 1),
(119, 13, 'lca-tracker', 'LCA Tracker', 1),
(120, 10, 'change-end-date', 'Change End Date', 1),
(121, 10, 'end-placement', 'End Placement', 1),
(122, 10, 'dropoff-placement', 'Drop Off Placement', 1),
(123, 10, 'activate-hotlist', 'Activate Hotlist', 1),
(124, 6, 'add-client', 'Add Client', 1),
(125, 6, 'add-client-contact', 'Add Client Contact', 1),
(128, 65, 'subm-detail-report', 'Submission Detail Report', 1),
(129, 65, 'subm-monthly-report', 'Submission Monthly Report', 1),
(130, 19, 'all-bdm-consults', 'All Bdm Consults', 1),
(131, 19, 'my-bdm-consults', 'My Bdm Consults', 1),
(132, 19, 'all-bdm-notes', 'All Bdm Notes', 1),
(133, 19, 'my-bdm-notes', 'My Bdm Notes', 1),
(134, 19, 'all-poc-consults', 'All Poc Consults', 1),
(135, 19, 'my-poc-consults', 'My Poc Consults', 1),
(136, 19, 'all-poc-notes', 'All Poc Notes', 1),
(137, 19, 'my-poc-notes', 'My Poc Notes', 1),
(138, 19, 'poc-user', 'Poc User', 1),
(139, 19, 'assign-poc-user', 'Assign Poc User', 1),
(140, 20, 'config-target', 'Config Target', 1),
(141, 20, 'add-bdm-target', 'Add Bdm Target', 1),
(142, 20, 'self-bdm-target', 'Self Bdm Target', 0),
(143, 20, 'all-bdms-target', 'All Bdms Target', 1),
(144, 2, 'view-edit-request-approval', 'Edit Job Approvals', 1),
(145, NULL, 'logs', 'Logs', 1),
(147, 145, 'view-sms-logs', 'SMS Logs', 1),
(148, 145, 'view-email-logs', 'Email Logs', 1),
(149, 145, 'view-quote-msgs', 'View Quotations', 1),
(150, 145, 'all-logs', 'All Logs', 1),
(151, 65, 'starts-report', 'Recruiter Starts Report', 1),
(152, 4, 'view-sed-hotlist', 'View SED HotList', 1),
(153, 1, 'upload-ringcentral', 'Upload Ringcentral', 1),
(154, 1, 'view-ringcentral', 'Ringcentral', 1),
(155, 18, 'view-client-subm-report', 'Client Subm Report', 1),
(156, NULL, 'ringcentral', 'RingCentral', 1),
(157, 156, 'view-all-ringcentral', 'All Ringcentral', 1),
(158, 156, 'view-bdm-ringcentral', 'BDM Ringcentral', 1),
(159, 1, 'view-activetrack', 'ActiveTrack', 1),
(160, 1, 'upload-activetrack', 'Upload ActiveTrack', 1),
(161, NULL, 'chat', 'Chat', 1),
(162, 161, 'self-chat', 'Self Chat', 1),
(163, 2, 'edit-job-positions', 'Edit Job Positions', 1),
(164, 2, 'add-questions', 'Add Questions', 1);

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

--
-- Table structure for table `petition`
--

CREATE TABLE IF NOT EXISTS `petition` (
  `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  `petitionid` varchar(45) DEFAULT 'NULL',
  `lca_id` int(10) UNSIGNED DEFAULT NULL,
  `emp_workforce_id` int(10) UNSIGNED DEFAULT NULL,
  `petition_type_id` int(11) DEFAULT NULL,
  `status_id` int(11) DEFAULT NULL,
  `premium_processing` tinyint(1) UNSIGNED DEFAULT NULL,
  `visa_status_id` int(10) UNSIGNED DEFAULT NULL,
  `division_id` int(10) UNSIGNED DEFAULT NULL,
  `country_id` smallint(5) UNSIGNED DEFAULT NULL,
  `job_id` int(10) UNSIGNED DEFAULT NULL,
  `filing_status_id` int(10) UNSIGNED DEFAULT NULL,
  `status_valid_from` date DEFAULT NULL,
  `status_expiry_date` date DEFAULT NULL,
  `wage_rate` decimal(8,2) DEFAULT NULL,
  `wage_period` int(10) UNSIGNED DEFAULT NULL,
  `filing_date` date DEFAULT NULL,
  `receipt_no` varchar(64) DEFAULT NULL,
  `approved_date` date DEFAULT NULL,
  `potential_employee` tinyint(3) UNSIGNED DEFAULT NULL,
  `primary_petition` int(10) UNSIGNED DEFAULT NULL,
  `applicant_name` varchar(128) DEFAULT NULL,
  `approval_notice_copy` varchar(255) DEFAULT NULL,
  `approval_notice_date` date DEFAULT NULL,
  `receipt_copy` varchar(255) DEFAULT NULL,
  `approval_letter_rec_date` date DEFAULT NULL,
  `rfe_doc` varchar(255) DEFAULT NULL,
  `shipping_date` date DEFAULT NULL,
  `shipping_service_id` int(10) UNSIGNED DEFAULT NULL,
  `tracking_no` varchar(64) DEFAULT NULL,
  `uscis_received_date` date DEFAULT NULL,
  `employeeid` varchar(45) DEFAULT NULL,
  `conrep_i94number` varchar(255) DEFAULT NULL,
  `conrep_i94expirydate` varchar(255) DEFAULT NULL,
  `conrep_lcanumber` varchar(255) DEFAULT NULL,
  `conrep_jobtitle` varchar(255) DEFAULT NULL,
  `conrep_startdate` date DEFAULT NULL,
  `conrep_enddate` date DEFAULT NULL,
  `conrep_canceldate` date DEFAULT NULL,
  `conrep_cancelcomments` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `petition`:
--

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

--
-- Table structure for table `placement_bdm_history`
--

CREATE TABLE IF NOT EXISTS `placement_bdm_history` (
  `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  `placement_id` int(10) UNSIGNED NOT NULL,
  `bdm_id` int(10) UNSIGNED NOT NULL,
  `end_date` date NOT NULL,
  `updated_by` int(10) UNSIGNED NOT NULL,
  `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `placement_id` (`placement_id`),
  KEY `bdm_id` (`bdm_id`),
  KEY `end_date` (`end_date`),
  KEY `updated_by` (`updated_by`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `placement_bdm_history`:
--

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

--
-- Table structure for table `placement_billrate_history`
--

CREATE TABLE IF NOT EXISTS `placement_billrate_history` (
  `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  `placement_id` int(10) UNSIGNED NOT NULL,
  `bill_rate` decimal(8,2) UNSIGNED NOT NULL,
  `created_by` int(10) UNSIGNED NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `start_date` date NOT NULL,
  `end_date` date DEFAULT NULL,
  `comment` varchar(255) DEFAULT NULL,
  `is_active` tinyint(1) UNSIGNED NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `placement_id` (`placement_id`),
  KEY `created_by` (`created_by`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `placement_billrate_history`:
--

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

--
-- Table structure for table `placement_docs`
--

CREATE TABLE IF NOT EXISTS `placement_docs` (
  `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  `placement_id` int(10) UNSIGNED DEFAULT NULL,
  `recordid` varchar(255) DEFAULT NULL,
  `confirm_id` int(10) UNSIGNED DEFAULT NULL,
  `doc_type_id` int(10) UNSIGNED DEFAULT NULL,
  `doc_name` varchar(128) DEFAULT NULL,
  `file_name` varchar(255) DEFAULT NULL,
  `from_date` date DEFAULT NULL,
  `to_date` date DEFAULT NULL,
  `created_by` int(10) UNSIGNED DEFAULT NULL,
  `created_at` datetime DEFAULT NULL,
  `updated_by` int(10) UNSIGNED DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `created_by` (`created_by`),
  KEY `updated_by` (`updated_by`),
  KEY `placement_id` (`placement_id`),
  KEY `confirm_id` (`confirm_id`),
  KEY `doc_type_id` (`doc_type_id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `placement_docs`:
--

--
-- Dumping data for table `placement_docs`
--

INSERT INTO `placement_docs` (`id`, `placement_id`, `recordid`, `confirm_id`, `doc_type_id`, `doc_name`, `file_name`, `from_date`, `to_date`, `created_by`, `created_at`, `updated_by`, `updated_at`) VALUES
(1, NULL, NULL, 1, 92, 'MSA Document', 'uploads/placements/2021/12/MSA_1_08043954_2578.docx', '2021-12-08', '2021-12-10', 1, '2021-12-08 04:39:54', NULL, NULL);

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

--
-- Table structure for table `placement_payrate_history`
--

CREATE TABLE IF NOT EXISTS `placement_payrate_history` (
  `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  `placement_id` int(10) UNSIGNED NOT NULL,
  `payrate_type_id` int(10) UNSIGNED DEFAULT NULL,
  `pay_rate` decimal(8,2) UNSIGNED NOT NULL,
  `created_by` int(10) UNSIGNED NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `start_date` date DEFAULT NULL,
  `end_date` date DEFAULT NULL,
  `comment` varchar(255) DEFAULT NULL,
  `is_active` tinyint(1) DEFAULT '0',
  `costid` varchar(255) DEFAULT NULL,
  `placementid` varchar(255) DEFAULT NULL,
  `createdbyid` varchar(255) DEFAULT NULL,
  `payrateperiod` varchar(255) DEFAULT NULL,
  `paycycle` varchar(255) DEFAULT NULL,
  `employeeid` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `placement_id` (`placement_id`),
  KEY `payrate_type_id` (`payrate_type_id`),
  KEY `created_by` (`created_by`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `placement_payrate_history`:
--

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

--
-- Table structure for table `placement_recruiter_history`
--

CREATE TABLE IF NOT EXISTS `placement_recruiter_history` (
  `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  `placement_id` int(10) UNSIGNED NOT NULL,
  `recruiter_id` int(10) UNSIGNED NOT NULL,
  `end_date` date NOT NULL,
  `updated_by` int(10) UNSIGNED NOT NULL,
  `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `placement_id` (`placement_id`),
  KEY `recruiter_id` (`recruiter_id`),
  KEY `end_date` (`end_date`),
  KEY `updated_by` (`updated_by`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `placement_recruiter_history`:
--

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

--
-- Table structure for table `placement_sub_vendor_history`
--

CREATE TABLE IF NOT EXISTS `placement_sub_vendor_history` (
  `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  `placement_id` int(10) UNSIGNED NOT NULL,
  `sub_vendor_id` int(10) UNSIGNED NOT NULL,
  `sub_vendor_contact_id` int(10) UNSIGNED NOT NULL,
  `start_date` date DEFAULT NULL,
  `end_date` date DEFAULT NULL,
  `created_by` int(10) UNSIGNED NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `comment` varchar(255) DEFAULT NULL,
  `is_active` tinyint(1) DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `placement_id` (`placement_id`),
  KEY `sub_vendor_id` (`sub_vendor_id`),
  KEY `end_date` (`end_date`),
  KEY `updated_by` (`created_by`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `placement_sub_vendor_history`:
--

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

--
-- Table structure for table `poc_notes`
--

CREATE TABLE IF NOT EXISTS `poc_notes` (
  `note_id` bigint(20) NOT NULL AUTO_INCREMENT,
  `workforce_id` int(10) UNSIGNED DEFAULT NULL,
  `bdm_id` int(10) UNSIGNED DEFAULT NULL,
  `poc_bdm_id` int(10) UNSIGNED DEFAULT NULL,
  `notes_text` text NOT NULL,
  `created_by` int(10) NOT NULL,
  `updated_by` int(10) UNSIGNED DEFAULT NULL,
  `created_at` datetime DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`note_id`),
  KEY `workforce_id` (`workforce_id`),
  KEY `bdm_id` (`bdm_id`),
  KEY `created_by` (`created_by`),
  KEY `poc_bdm_id` (`poc_bdm_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `poc_notes`:
--

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

--
-- Table structure for table `profiles`
--

CREATE TABLE IF NOT EXISTS `profiles` (
  `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  `pid` varchar(16) NOT NULL,
  `fname` varchar(128) NOT NULL,
  `mname` varchar(32) DEFAULT NULL,
  `lname` varchar(64) DEFAULT NULL,
  `nickname` varchar(64) DEFAULT NULL,
  `group_id` int(10) UNSIGNED DEFAULT NULL,
  `employee_type_id` int(10) UNSIGNED DEFAULT NULL,
  `division_id` int(10) UNSIGNED DEFAULT NULL,
  `in_hotlist` tinyint(3) UNSIGNED NOT NULL DEFAULT '0',
  `hotlist_date` date DEFAULT NULL,
  `work_phone` varchar(26) DEFAULT NULL,
  `home_phone` varchar(26) DEFAULT NULL,
  `cell_phone` varchar(26) DEFAULT NULL,
  `email` varchar(251) NOT NULL,
  `current_loc` varchar(128) DEFAULT NULL,
  `pref_loc` varchar(128) DEFAULT NULL,
  `visa_type_id` int(10) DEFAULT NULL,
  `profile_title` varchar(128) NOT NULL,
  `skype_id` varchar(64) DEFAULT NULL,
  `dob` varchar(10) DEFAULT NULL,
  `total_exp` int(10) DEFAULT NULL,
  `usa_exp` int(10) UNSIGNED DEFAULT NULL,
  `conrep_paytype` varchar(101) DEFAULT NULL,
  `payrate_type_id` int(10) UNSIGNED DEFAULT NULL,
  `pay_rate` varchar(163) DEFAULT NULL,
  `bill_rate` decimal(8,2) UNSIGNED DEFAULT NULL,
  `agreed_pay_rate` decimal(8,2) UNSIGNED DEFAULT NULL,
  `expected_sal` decimal(9,2) UNSIGNED DEFAULT NULL,
  `us_security_clear` tinyint(3) UNSIGNED DEFAULT NULL,
  `availability_id` int(10) UNSIGNED DEFAULT NULL,
  `aval_for_interview` int(10) UNSIGNED DEFAULT NULL,
  `education_id` int(10) UNSIGNED DEFAULT NULL,
  `degree` varchar(128) DEFAULT NULL,
  `gender_id` int(10) UNSIGNED DEFAULT NULL,
  `major_id` int(10) UNSIGNED DEFAULT NULL,
  `university_id` int(10) UNSIGNED DEFAULT NULL,
  `source_id` varchar(45) DEFAULT NULL,
  `conrep_source` varchar(201) DEFAULT NULL,
  `ssn` varchar(16) DEFAULT NULL,
  `linkedin` varchar(128) DEFAULT NULL,
  `recruiter_id` int(10) UNSIGNED NOT NULL,
  `sales_incharge_id` int(10) UNSIGNED DEFAULT NULL,
  `sales_incharge2_id` int(10) UNSIGNED DEFAULT NULL,
  `conrep_recruiter` varchar(103) DEFAULT NULL,
  `current_employer` varchar(128) DEFAULT NULL,
  `primary_skills` varchar(2255) DEFAULT NULL,
  `second_skills` varchar(255) DEFAULT NULL,
  `soft_skills` varchar(255) DEFAULT NULL,
  `addr_line1` varchar(201) DEFAULT NULL,
  `addr_line2` varchar(128) DEFAULT NULL,
  `city` varchar(64) DEFAULT NULL,
  `state_id` int(10) UNSIGNED DEFAULT NULL,
  `country_id` int(10) UNSIGNED NOT NULL,
  `zipcode` varchar(28) DEFAULT NULL,
  `status_id` int(10) UNSIGNED NOT NULL DEFAULT '48',
  `in_place` tinyint(3) UNSIGNED NOT NULL DEFAULT '0',
  `sub_vendor_id` int(10) UNSIGNED DEFAULT NULL,
  `conrep_subvendor` varchar(103) DEFAULT NULL,
  `vendor_contact_id` int(10) UNSIGNED DEFAULT NULL,
  `conrep_subvendor_contact` varchar(103) DEFAULT NULL,
  `hotlist_status_id` int(10) UNSIGNED DEFAULT NULL,
  `bdm_id` int(10) UNSIGNED DEFAULT NULL,
  `bdm2_id` int(10) UNSIGNED DEFAULT NULL,
  `bdm3_id` int(10) UNSIGNED DEFAULT NULL,
  `bench_bdm_id` int(10) UNSIGNED DEFAULT NULL,
  `notice_period_id` int(10) UNSIGNED DEFAULT NULL,
  `willing_relocate` tinyint(1) UNSIGNED DEFAULT NULL COMMENT '1-Yes, 2-No',
  `email_opt` tinyint(3) UNSIGNED DEFAULT NULL,
  `referred_by` int(10) UNSIGNED DEFAULT NULL,
  `referred_rec_id` int(10) UNSIGNED DEFAULT NULL,
  `referred_date` date DEFAULT NULL,
  `in_block_list` tinyint(1) UNSIGNED DEFAULT NULL,
  `wf_id` int(10) UNSIGNED DEFAULT NULL,
  `aval_2nd_project` tinyint(1) UNSIGNED DEFAULT NULL,
  `created_by` int(10) UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` int(10) UNSIGNED DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `in_active` tinyint(1) DEFAULT NULL COMMENT '1- In active hotlist, Null - Active Profiles',
  `in_active_comment` varchar(255) DEFAULT NULL,
  `conrep_resume` varchar(191) DEFAULT NULL,
  `formatted_resume` varchar(191) DEFAULT NULL,
  `major` varchar(128) DEFAULT NULL,
  `university` varchar(128) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `group_id` (`group_id`),
  KEY `employee_type_id` (`employee_type_id`),
  KEY `division_id` (`division_id`),
  KEY `in_hotlist` (`in_hotlist`),
  KEY `visa_type_id` (`visa_type_id`),
  KEY `availability_id` (`availability_id`),
  KEY `payrate_type_id` (`payrate_type_id`),
  KEY `created_by` (`created_by`),
  KEY `in_block_list` (`in_block_list`),
  KEY `referred_by` (`referred_by`),
  KEY `notice_period_id` (`notice_period_id`),
  KEY `bdm_id` (`bdm_id`),
  KEY `bench_bdm_id` (`bench_bdm_id`),
  KEY `hotlist_status_id` (`hotlist_status_id`),
  KEY `education_id` (`education_id`),
  KEY `gender_id` (`gender_id`),
  KEY `major_id` (`major_id`),
  KEY `university_id` (`university_id`),
  KEY `source_id` (`source_id`),
  KEY `recruiter_id` (`recruiter_id`),
  KEY `state_id` (`state_id`),
  KEY `country_id` (`country_id`),
  KEY `status_id` (`status_id`),
  KEY `sub_vendor_id` (`sub_vendor_id`),
  KEY `vendor_contact_id` (`vendor_contact_id`),
  KEY `in_place` (`in_place`),
  KEY `pid` (`pid`),
  KEY `conrep_recruiter` (`conrep_recruiter`),
  KEY `conrep_subvendor` (`conrep_subvendor`),
  KEY `conrep_subvendor_contact` (`conrep_subvendor_contact`),
  KEY `fname` (`fname`),
  KEY `lname` (`lname`),
  KEY `email` (`email`),
  KEY `sales_incharge_id` (`sales_incharge_id`),
  KEY `in_active` (`in_active`),
  KEY `sales_incharge2_id` (`sales_incharge2_id`),
  KEY `referred_rec_id` (`referred_rec_id`),
  KEY `wf_id` (`wf_id`),
  KEY `aval_2nd_project` (`aval_2nd_project`),
  KEY `bdm2_id` (`bdm2_id`),
  KEY `bdm3_id` (`bdm3_id`)
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `profiles`:
--

--
-- Dumping data for table `profiles`
--

INSERT INTO `profiles` (`id`, `pid`, `fname`, `mname`, `lname`, `nickname`, `group_id`, `employee_type_id`, `division_id`, `in_hotlist`, `hotlist_date`, `work_phone`, `home_phone`, `cell_phone`, `email`, `current_loc`, `pref_loc`, `visa_type_id`, `profile_title`, `skype_id`, `dob`, `total_exp`, `usa_exp`, `conrep_paytype`, `payrate_type_id`, `pay_rate`, `bill_rate`, `agreed_pay_rate`, `expected_sal`, `us_security_clear`, `availability_id`, `aval_for_interview`, `education_id`, `degree`, `gender_id`, `major_id`, `university_id`, `source_id`, `conrep_source`, `ssn`, `linkedin`, `recruiter_id`, `sales_incharge_id`, `sales_incharge2_id`, `conrep_recruiter`, `current_employer`, `primary_skills`, `second_skills`, `soft_skills`, `addr_line1`, `addr_line2`, `city`, `state_id`, `country_id`, `zipcode`, `status_id`, `in_place`, `sub_vendor_id`, `conrep_subvendor`, `vendor_contact_id`, `conrep_subvendor_contact`, `hotlist_status_id`, `bdm_id`, `bdm2_id`, `bdm3_id`, `bench_bdm_id`, `notice_period_id`, `willing_relocate`, `email_opt`, `referred_by`, `referred_rec_id`, `referred_date`, `in_block_list`, `wf_id`, `aval_2nd_project`, `created_by`, `created_at`, `updated_by`, `updated_at`, `in_active`, `in_active_comment`, `conrep_resume`, `formatted_resume`, `major`, `university`) VALUES
(1, 'P0000001', 'Himansh', NULL, 'Ch', NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, '12365478920', 'himansh@gmail.com', NULL, NULL, 95, 'PHP Developer', NULL, NULL, 8, NULL, NULL, 12, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '330', NULL, '123', NULL, 1, NULL, NULL, NULL, NULL, 'PHP', NULL, NULL, NULL, NULL, NULL, 36, 101, NULL, 48, 0, NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, 1, 1, NULL, NULL, NULL, 1, NULL, NULL, 1, '2021-12-07 23:02:37', NULL, '2021-12-15 21:02:23', NULL, NULL, 'uploads/resumes/2021/12/08/1_043238_8814.docx', NULL, NULL, NULL),
(2, 'P0000002', 'Rohit', NULL, 'Kumar', NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, '79893556152', 'nitishregions350@gmail.com', NULL, NULL, NULL, 'java devlpers', NULL, NULL, 7, NULL, NULL, 12, NULL, NULL, NULL, NULL, 1, NULL, 1, NULL, NULL, NULL, NULL, NULL, '34', NULL, '78985525', NULL, 6, NULL, NULL, NULL, NULL, 'java', NULL, NULL, NULL, NULL, NULL, 2, 101, '50304154', 48, 0, NULL, NULL, NULL, NULL, NULL, 6, NULL, NULL, NULL, NULL, 0, 1, NULL, NULL, NULL, 1, NULL, NULL, 6, '2021-12-13 01:28:11', NULL, '2021-12-17 10:43:53', NULL, NULL, 'uploads/resumes/2021/12/13/2_065812_2789.pdf', NULL, NULL, NULL),
(3, 'P0000003', 'Sahith', NULL, 'Reddy', NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, '9573755152', 'nandurinitish3@gmail.co', NULL, NULL, NULL, 'java devolpers', NULL, NULL, 3, NULL, NULL, 12, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '321', NULL, NULL, NULL, 3, NULL, NULL, NULL, NULL, 'java', NULL, NULL, NULL, NULL, NULL, 1, 101, NULL, 48, 0, NULL, NULL, NULL, NULL, NULL, 3, NULL, NULL, NULL, NULL, 1, 1, NULL, NULL, NULL, 1, NULL, NULL, 3, '2021-12-13 18:22:27', NULL, '2021-12-13 19:00:57', NULL, NULL, NULL, NULL, NULL, NULL),
(4, 'P0000004', 'Nitish', NULL, 'Regins', NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, '79893826284', 'niitish@gmail.com', NULL, NULL, 173, 'mannual testers', NULL, NULL, 1, 0, NULL, 12, '250', NULL, NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, '138', NULL, '000', NULL, 3, NULL, NULL, NULL, NULL, 'mannual testing and automatiom', NULL, NULL, NULL, NULL, NULL, 6, 101, '50130126', 48, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 69, 1, 1, NULL, 7, '2021-12-17', 1, NULL, NULL, 3, '2021-12-13 20:09:24', 4, '2021-12-15 23:21:23', NULL, NULL, 'uploads/resumes/2021/12/14/4_015158_2293.docx', NULL, NULL, NULL),
(5, 'P0000005', 'Srikar', NULL, 'Reddy', NULL, NULL, 41, NULL, 0, NULL, NULL, NULL, '798581224526', 'srikarreddy@gmail.com', NULL, NULL, 174, 'automation', NULL, NULL, 2, 0, NULL, 12, '25', NULL, NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, '138', NULL, NULL, NULL, 3, NULL, NULL, NULL, NULL, 'mannual', NULL, NULL, NULL, NULL, NULL, 8, 101, NULL, 48, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 64, 1, 1, NULL, NULL, NULL, NULL, NULL, NULL, 3, '2021-12-13 20:12:15', 3, '2021-12-15 21:20:24', NULL, NULL, NULL, NULL, NULL, NULL),
(6, 'P0000006', 'Rohit', NULL, 'Kumar', NULL, NULL, 43, NULL, 0, NULL, NULL, NULL, '97120249282', 'nanduri45@gmail.com', NULL, NULL, 146, 'mannual', NULL, '1999-05-04', 3, 0, NULL, 12, NULL, NULL, NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, '328', NULL, NULL, NULL, 3, NULL, NULL, NULL, NULL, 'primaryh', NULL, NULL, NULL, NULL, NULL, 7, 101, NULL, 48, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 66, 1, 1, NULL, NULL, NULL, NULL, NULL, NULL, 3, '2021-12-13 20:13:51', 3, '2021-12-15 21:24:02', NULL, NULL, NULL, NULL, NULL, NULL),
(7, 'P0000007', 'Pradeep', NULL, 'Kumar', NULL, NULL, 42, NULL, 0, NULL, NULL, NULL, '79892692214', 'nitish@gmail.com', NULL, NULL, 24, 'job-mannual testing', NULL, NULL, 3, 0, NULL, 12, NULL, NULL, NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, '138', NULL, NULL, NULL, 3, NULL, NULL, NULL, NULL, 'testing', NULL, NULL, NULL, NULL, NULL, 10, 101, NULL, 48, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, NULL, 3, '2021-12-13 20:23:45', 3, '2021-12-15 21:22:32', NULL, NULL, 'uploads/resumes/2021/12/14/7_015440_3419.docx', NULL, NULL, NULL),
(8, 'P0000008', 'Vindo', NULL, 'Kumar', NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, '957665616516', 'nandurinitish@gmail.co', NULL, NULL, 176, 'js devlpers', NULL, NULL, 0, 0, NULL, 12, NULL, NULL, NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, '138', NULL, NULL, NULL, 8, NULL, NULL, NULL, NULL, 'testimng', NULL, NULL, NULL, NULL, NULL, 11, 101, NULL, 47, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 69, 1, 1, NULL, 5, NULL, 1, NULL, NULL, 8, '2021-12-14 02:27:20', 4, '2021-12-17 07:43:10', NULL, NULL, NULL, NULL, NULL, NULL),
(9, 'P0000009', 'Raghava', 'sai', 'Sai', NULL, NULL, 41, NULL, 0, NULL, NULL, NULL, '79893831050', 'nitishkml@gmail.com', NULL, NULL, 169, 'mannual testers', NULL, NULL, 3, 0, NULL, 12, '352', NULL, NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, '138', NULL, NULL, NULL, 3, NULL, NULL, NULL, NULL, 'primary', NULL, NULL, NULL, NULL, NULL, 2, 101, NULL, 48, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 1, NULL, 5, '2021-12-16', NULL, NULL, NULL, 3, '2021-12-15 21:25:18', 4, '2021-12-15 21:35:59', NULL, NULL, NULL, NULL, NULL, NULL),
(10, 'P0000010', 'Tharun', NULL, 'Kumar', NULL, NULL, 42, NULL, 0, NULL, NULL, NULL, '3654878958', 'sagarc@usmsystems.com', NULL, NULL, NULL, 'PHP', NULL, NULL, 8, NULL, NULL, 12, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '34', NULL, NULL, NULL, 3, NULL, NULL, NULL, NULL, 'PHP', NULL, NULL, NULL, NULL, NULL, 36, 101, NULL, 48, 0, 1, NULL, NULL, NULL, NULL, 3, NULL, NULL, NULL, NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, NULL, 3, '2023-01-17 13:34:50', 3, '2023-01-17 13:50:26', NULL, NULL, 'uploads/resumes/2023/01/17/10_192026_6457.pdf', NULL, NULL, NULL),
(11, 'P0000011', 'Rama', 'm', 'Rao', NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, '7894561233', 'sudhakarillamca@gmail.com', NULL, NULL, 24, 'PHP developer', NULL, NULL, 10, 0, NULL, 12, NULL, NULL, NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, '327', NULL, NULL, NULL, 3, NULL, NULL, NULL, NULL, 'PHP,HTML,SQL', NULL, NULL, NULL, NULL, NULL, 36, 101, NULL, 48, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, NULL, 3, '2023-01-24 07:09:51', 3, '2023-01-24 07:11:37', NULL, NULL, 'uploads/resumes/2023/01/24/11_123951_8421.pdf', NULL, NULL, NULL),
(12, 'P0000012', 'Subba', 'v', 'Rao', NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, '7777788888', 'isudhakar@usmsystems.com', NULL, NULL, 146, 'PHP developer', NULL, NULL, 10, 0, NULL, 12, NULL, NULL, NULL, NULL, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, '327', NULL, NULL, NULL, 3, NULL, NULL, NULL, NULL, 'PHP,MYSQL,HTML', NULL, NULL, NULL, NULL, NULL, 2, 101, NULL, 48, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, NULL, 3, '2023-01-24 12:27:24', 3, '2023-01-24 12:29:17', NULL, NULL, 'uploads/resumes/2023/01/24/12_175724_7501.pdf', NULL, NULL, NULL);

--
-- Triggers `profiles`
--
DROP TRIGGER IF EXISTS `profiles_BEFORE_UPDATE`;
DELIMITER $$
CREATE TRIGGER `profiles_BEFORE_UPDATE` BEFORE UPDATE ON `profiles` FOR EACH ROW BEGIN
IF OLD.bdm_id != NEW.bdm_id THEN 
INSERT INTO `hotlist_profile_bdm_history` (profile_id,old_bdm_id,start_date,end_date) VALUES (NEW.id,OLD.bdm_id,OLD.updated_at,NEW.updated_at); 
END IF;
END
$$
DELIMITER ;

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

--
-- Table structure for table `profile_confirmations`
--

CREATE TABLE IF NOT EXISTS `profile_confirmations` (
  `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  `profile_id` int(10) UNSIGNED NOT NULL,
  `subm_id` int(10) UNSIGNED NOT NULL COMMENT 'submission id',
  `job_id` int(10) UNSIGNED NOT NULL,
  `confirm_date` date NOT NULL,
  `confirm_by` int(10) UNSIGNED NOT NULL,
  `start_date` date NOT NULL,
  `sch_end_date` date DEFAULT NULL,
  `bill_rate` decimal(9,2) NOT NULL,
  `billrate_type_id` int(10) UNSIGNED DEFAULT NULL,
  `pay_rate` decimal(9,2) NOT NULL,
  `payrate_type_id` int(10) UNSIGNED DEFAULT NULL,
  `cost_type` smallint(5) UNSIGNED DEFAULT NULL COMMENT 'Pay Type or Cost Type',
  `salary` decimal(9,2) UNSIGNED DEFAULT NULL,
  `recruiter_id` int(10) UNSIGNED NOT NULL,
  `sub_vendor_id` int(10) UNSIGNED DEFAULT NULL,
  `vendor_contact_id` int(10) UNSIGNED DEFAULT NULL,
  `bdm_id` int(10) UNSIGNED NOT NULL,
  `rm_id` int(10) UNSIGNED DEFAULT NULL,
  `workforce_id` int(10) UNSIGNED DEFAULT NULL,
  `placement_id` int(10) UNSIGNED DEFAULT NULL,
  `status_id` int(10) UNSIGNED NOT NULL,
  `sub_status_id` int(10) UNSIGNED DEFAULT NULL,
  `is_approved` tinyint(3) UNSIGNED DEFAULT NULL,
  `approved_by` int(10) UNSIGNED DEFAULT NULL,
  `approved_date` date DEFAULT NULL,
  `approve_comment` varchar(255) DEFAULT NULL,
  `is_dropoff` tinyint(3) UNSIGNED DEFAULT NULL,
  `dropoff_date` date DEFAULT NULL,
  `comment` varchar(500) DEFAULT NULL,
  `created_by` int(10) UNSIGNED NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_by` int(10) UNSIGNED DEFAULT NULL,
  `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `client_id` int(10) UNSIGNED DEFAULT NULL,
  `contact_id` int(10) UNSIGNED DEFAULT NULL,
  `client_type_id` int(10) UNSIGNED DEFAULT NULL,
  `end_client_id` int(10) UNSIGNED DEFAULT NULL,
  `position_type_id` int(10) UNSIGNED DEFAULT NULL,
  `emp_type_id` int(10) UNSIGNED DEFAULT NULL,
  `visa_type_id` int(10) UNSIGNED DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `profile_id` (`profile_id`),
  KEY `sub_id` (`subm_id`),
  KEY `recruiter_id` (`recruiter_id`),
  KEY `bdm_id` (`bdm_id`),
  KEY `workforce_id` (`workforce_id`),
  KEY `pay_type_id` (`payrate_type_id`),
  KEY `status_id` (`status_id`),
  KEY `sub_status_id` (`sub_status_id`),
  KEY `created_by` (`created_by`),
  KEY `job_id` (`job_id`),
  KEY `confirm_by` (`confirm_by`),
  KEY `start_date` (`start_date`),
  KEY `sch_end_date` (`sch_end_date`),
  KEY `billrate_type_id` (`billrate_type_id`),
  KEY `sub_vendor_id` (`sub_vendor_id`),
  KEY `vendor_contact_id` (`vendor_contact_id`),
  KEY `rm_id` (`rm_id`),
  KEY `is_approved` (`is_approved`),
  KEY `approved_by` (`approved_by`),
  KEY `is_dropoff` (`is_dropoff`),
  KEY `dropoff_date` (`dropoff_date`),
  KEY `cost_type` (`cost_type`)
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `profile_confirmations`:
--

--
-- Dumping data for table `profile_confirmations`
--

INSERT INTO `profile_confirmations` (`id`, `profile_id`, `subm_id`, `job_id`, `confirm_date`, `confirm_by`, `start_date`, `sch_end_date`, `bill_rate`, `billrate_type_id`, `pay_rate`, `payrate_type_id`, `cost_type`, `salary`, `recruiter_id`, `sub_vendor_id`, `vendor_contact_id`, `bdm_id`, `rm_id`, `workforce_id`, `placement_id`, `status_id`, `sub_status_id`, `is_approved`, `approved_by`, `approved_date`, `approve_comment`, `is_dropoff`, `dropoff_date`, `comment`, `created_by`, `created_at`, `updated_by`, `updated_at`, `client_id`, `contact_id`, `client_type_id`, `end_client_id`, `position_type_id`, `emp_type_id`, `visa_type_id`) VALUES
(1, 1, 1, 1, '2022-01-02', 4, '2021-12-17', '2021-12-16', '1120.00', NULL, '0.00', NULL, 74, '150100.00', 4, 1, NULL, 4, 4, NULL, NULL, 4, 41, 1, 5, '2021-12-10', 'sfadg', 1, '2021-12-16', 'droped offf', 4, '2021-12-15 07:15:32', 4, '2021-12-15 21:02:23', NULL, NULL, NULL, NULL, NULL, 42, NULL),
(2, 2, 2, 2, '2021-12-14', 3, '2021-12-14', '2030-06-05', '0.00', NULL, '0.00', NULL, 75, '250000.00', 6, NULL, NULL, 4, 4, NULL, NULL, 4, 41, 1, 3, '2021-12-14', 'okay', 1, '2021-12-14', 'rejected/rake', 3, '2021-12-14 00:19:57', 3, '2021-12-13 18:51:31', NULL, NULL, NULL, NULL, NULL, 42, NULL),
(3, 3, 3, 2, '2021-12-14', 3, '2021-12-16', '2021-12-15', '0.00', NULL, '0.00', NULL, 75, '9999999.99', 3, NULL, NULL, 4, 4, NULL, NULL, 4, 41, 1, 3, '2021-12-14', 'ok', 1, '2021-12-14', '+86', 3, '2021-12-14 00:28:19', 3, '2021-12-13 19:00:57', NULL, NULL, NULL, NULL, NULL, 43, NULL),
(4, 8, 12, 4, '2021-12-26', 4, '2021-12-16', '2171-07-11', '25.00', 12, '20.00', 12, 123, '0.00', 8, 1, NULL, 4, 4, NULL, NULL, 4, 41, 1, 8, '2021-12-15', 'done', 1, '2021-12-17', 'ok', 4, '2021-12-15 02:53:06', 3, '2021-12-17 07:43:10', NULL, NULL, NULL, NULL, NULL, 42, NULL),
(7, 4, 8, 4, '2021-12-16', 4, '2021-12-16', '2021-12-17', '250.00', 12, '20.00', 12, 124, '0.00', 5, 1, NULL, 4, 4, NULL, NULL, 4, 41, 0, NULL, NULL, NULL, 1, '2021-12-09', 'fake experince', 4, '2021-12-16 00:28:40', 4, '2021-12-15 20:58:26', NULL, NULL, NULL, NULL, NULL, 44, NULL),
(9, 4, 4, 3, '2021-12-14', 4, '2021-12-08', '2021-12-15', '250.00', 12, '250.00', 12, 73, '0.00', 3, 1, NULL, 4, 4, NULL, NULL, 4, 41, 1, 4, '2021-12-16', 'approved and done', NULL, NULL, NULL, 4, '2021-12-16 04:51:23', NULL, '2021-12-15 23:21:23', NULL, NULL, NULL, NULL, NULL, 43, NULL),
(10, 7, 7, 3, '2021-12-16', 4, '2021-12-30', '2021-12-24', '205.00', 12, '0.00', 12, 75, NULL, 6, NULL, NULL, 4, 4, NULL, NULL, 4, 41, NULL, NULL, NULL, 'okuyy', NULL, NULL, NULL, 4, '2021-12-16 05:34:58', 3, '2021-12-16 00:16:59', NULL, NULL, 62, NULL, NULL, 43, NULL),
(11, 7, 13, 4, '2021-12-16', 6, '2021-12-11', '2021-12-18', '25.00', 12, '20.00', 12, 74, '0.00', 4, NULL, NULL, 7, 4, NULL, NULL, 4, 41, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 6, '2021-12-17 12:59:20', NULL, '2021-12-17 07:29:20', NULL, NULL, NULL, NULL, NULL, 42, NULL);

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

--
-- Table structure for table `profile_details`
--

CREATE TABLE IF NOT EXISTS `profile_details` (
  `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  `profile_id` int(10) UNSIGNED NOT NULL,
  `bio_detail` text,
  `source` tinyint(1) UNSIGNED NOT NULL COMMENT '1-Dice, 2-Monster',
  `source_ref_id` varchar(64) DEFAULT NULL COMMENT 'id value from dice, monster',
  `profile_image` varchar(255) DEFAULT NULL,
  `region` varchar(128) DEFAULT NULL,
  `resume_html` longtext,
  `skill_matrix` text,
  `social_profiles` text,
  `work_preference` text,
  `interest` text,
  `work_permit_docs` varchar(255) DEFAULT NULL,
  `work_permit_locs` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `profile_details`:
--

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

--
-- Table structure for table `profile_interviews`
--

CREATE TABLE IF NOT EXISTS `profile_interviews` (
  `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  `submission_id` int(10) UNSIGNED DEFAULT NULL,
  `profile_id` int(10) UNSIGNED DEFAULT NULL,
  `job_id` int(10) UNSIGNED DEFAULT NULL,
  `interview_type_id` int(10) UNSIGNED NOT NULL,
  `interview_round_id` smallint(5) UNSIGNED DEFAULT NULL,
  `interview_date` datetime NOT NULL,
  `interview_loc` varchar(128) DEFAULT NULL,
  `timezone_id` int(10) UNSIGNED NOT NULL,
  `end_client_interview` tinyint(3) UNSIGNED DEFAULT NULL,
  `interviewer` varchar(128) DEFAULT NULL,
  `bdm_id` int(10) UNSIGNED DEFAULT NULL,
  `recruiter_id` int(10) UNSIGNED DEFAULT NULL,
  `rm_id` int(10) UNSIGNED DEFAULT NULL,
  `status_id` int(10) UNSIGNED NOT NULL,
  `comment` varchar(500) DEFAULT NULL,
  `sub_status_id` int(10) UNSIGNED DEFAULT NULL,
  `interview_pref` tinyint(1) UNSIGNED DEFAULT NULL COMMENT '1-End Client',
  `created_by` int(10) UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_by` int(10) UNSIGNED DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `in_hotlist` tinyint(1) UNSIGNED NOT NULL DEFAULT '0',
  `conrep_bdm` varchar(255) DEFAULT NULL,
  `conrep_rm` varchar(255) DEFAULT NULL,
  `conrep_recruiter` varchar(255) DEFAULT NULL,
  `conrep_submid` varchar(255) DEFAULT NULL,
  `conrep_profileid` varchar(255) DEFAULT NULL,
  `conrep_req` varchar(255) DEFAULT NULL,
  `conrep_consultant` varchar(255) DEFAULT NULL,
  `conrep_client_interview` varchar(10) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `submission_id` (`submission_id`),
  KEY `profile_id` (`profile_id`),
  KEY `job_id` (`job_id`),
  KEY `interview_type_id` (`interview_type_id`),
  KEY `interview_round_id` (`interview_round_id`),
  KEY `interview_date` (`interview_date`),
  KEY `timezone_id` (`timezone_id`),
  KEY `bdm_id` (`bdm_id`),
  KEY `recruiter_id` (`recruiter_id`),
  KEY `rm_id` (`rm_id`),
  KEY `status_id` (`status_id`),
  KEY `sub_status_id` (`sub_status_id`),
  KEY `created_by` (`created_by`),
  KEY `updated_by` (`updated_by`),
  KEY `in_hotlist` (`in_hotlist`)
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `profile_interviews`:
--

--
-- Dumping data for table `profile_interviews`
--

INSERT INTO `profile_interviews` (`id`, `submission_id`, `profile_id`, `job_id`, `interview_type_id`, `interview_round_id`, `interview_date`, `interview_loc`, `timezone_id`, `end_client_interview`, `interviewer`, `bdm_id`, `recruiter_id`, `rm_id`, `status_id`, `comment`, `sub_status_id`, `interview_pref`, `created_by`, `created_at`, `updated_by`, `updated_at`, `in_hotlist`, `conrep_bdm`, `conrep_rm`, `conrep_recruiter`, `conrep_submid`, `conrep_profileid`, `conrep_req`, `conrep_consultant`, `conrep_client_interview`) VALUES
(1, 1, 1, 1, 19, 56, '2021-12-07 14:00:00', 'Hyderabad', 62, NULL, NULL, 4, 4, 4, 336, 'okay done', NULL, NULL, 4, '2021-12-15 01:40:37', 3, '2021-12-17 07:50:42', 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(2, 2, 2, 2, 43, 52, '2021-12-15 01:25:00', 'hyderabad', 62, NULL, NULL, 4, 6, 4, 59, 'okay done', NULL, 1, 6, '2021-12-13 02:11:22', 3, '2021-12-13 23:31:57', 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(3, 3, 3, 2, 19, 51, '2021-12-17 15:30:00', 'l;', 62, NULL, NULL, 4, 3, 4, 335, 'hr round', NULL, NULL, 3, '2021-12-13 18:23:32', 4, '2021-12-15 22:57:00', 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(4, 4, 4, 3, 19, 56, '2021-12-01 09:30:00', 'Texas', 62, NULL, NULL, 4, 3, 4, 59, '2051', NULL, NULL, 4, '2021-12-15 20:57:26', 4, '2021-12-15 20:57:26', 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(5, 12, 8, 4, 44, 54, '2021-12-22 15:50:00', 'hydd', 338, NULL, NULL, 4, 8, 4, 396, 'dgdg', NULL, 1, 8, '2021-12-14 02:37:24', 4, '2021-12-15 22:58:29', 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(6, 8, 4, 4, 44, 53, '2021-12-16 11:10:00', 'hyd', 63, NULL, NULL, 4, 5, 4, 59, 'okay', NULL, 1, 4, '2021-12-14 21:19:08', 4, '2021-12-14 21:19:08', 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(7, 13, 7, 4, 43, 53, '2021-12-07 15:25:00', 'hyfd', 61, NULL, NULL, 7, 4, 4, 59, 'commentss', NULL, NULL, 6, '2021-12-17 07:28:51', 6, '2021-12-17 07:28:51', 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(8, 10, 2, 1, 19, 52, '2021-12-08 10:30:00', 'hyd', 62, NULL, NULL, 4, 8, 4, 59, 'okay done', NULL, NULL, 4, '2021-12-15 01:47:42', 4, '2021-12-15 01:47:42', 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(9, 7, 7, 3, 44, 54, '2021-12-15 08:50:00', 'dfef', 62, NULL, NULL, 4, 6, 4, 59, 'okay done', NULL, NULL, 4, '2021-12-15 02:16:09', 4, '2021-12-15 02:16:09', 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(10, 5, 5, 3, 44, 55, '2021-12-15 22:30:00', 'fhh', 62, NULL, NULL, 4, 3, 4, 59, 'fhk', NULL, NULL, 4, '2021-12-15 02:16:42', 4, '2021-12-15 02:16:42', 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(11, 15, 6, 6, 43, 52, '2021-12-09 14:35:00', 'hyd', 62, NULL, NULL, 4, 4, 7, 59, 'okay done', NULL, 1, 4, '2021-12-15 20:32:40', 4, '2021-12-15 20:32:40', 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(12, 6, 6, 3, 19, 56, '2021-12-16 21:00:00', ',jbnb', 61, NULL, NULL, 4, 3, 4, 59, 'okay', NULL, NULL, 3, '2021-12-16 12:59:45', 3, '2021-12-16 12:59:45', 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);

--
-- Triggers `profile_interviews`
--
DROP TRIGGER IF EXISTS `insert_interview_status_history`;
DELIMITER $$
CREATE TRIGGER `insert_interview_status_history` BEFORE UPDATE ON `profile_interviews` FOR EACH ROW BEGIN 
IF OLD.status_id != NEW.status_id OR OLD.sub_status_id != NEW.sub_status_id 
OR OLD.interview_round_id != NEW.interview_round_id OR OLD.interview_type_id != NEW.interview_type_id OR OLD.interview_date != NEW.interview_date THEN 
	INSERT INTO `interview_status_history` 
	(interview_id,old_status_id,old_sub_status_id,old_round_id,old_intr_type_id,old_interview_date,old_comment,created_by) 
	VALUES (NEW.id,OLD.status_id,OLD.sub_status_id,OLD.interview_round_id,OLD.interview_type_id,OLD.interview_date,OLD.comment,NEW.updated_by); 
END IF; 
END
$$
DELIMITER ;

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

--
-- Table structure for table `profile_placements`
--

CREATE TABLE IF NOT EXISTS `profile_placements` (
  `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  `placement_id` varchar(45) NOT NULL,
  `subm_id` int(10) DEFAULT NULL,
  `confirm_id` int(10) UNSIGNED DEFAULT NULL,
  `job_id` int(10) UNSIGNED DEFAULT NULL,
  `profile_id` int(10) UNSIGNED DEFAULT NULL,
  `client_id` int(10) UNSIGNED DEFAULT NULL,
  `client_contact_id` int(10) UNSIGNED DEFAULT NULL,
  `emp_type_id` int(10) UNSIGNED DEFAULT NULL,
  `visa_type_id` int(10) UNSIGNED DEFAULT NULL,
  `is_reported` tinyint(3) UNSIGNED DEFAULT NULL COMMENT '1- Started, 0-Drop Off',
  `payrate_type_id` int(10) UNSIGNED DEFAULT NULL,
  `pay_rate` decimal(8,2) DEFAULT NULL,
  `pay_rate_perc` decimal(4,2) DEFAULT NULL,
  `billrate_type_id` int(10) UNSIGNED DEFAULT NULL,
  `bill_rate` decimal(8,2) UNSIGNED DEFAULT NULL,
  `discount` decimal(4,2) DEFAULT NULL,
  `net_billrate` decimal(8,2) UNSIGNED DEFAULT NULL,
  `overtime_rate` decimal(8,2) DEFAULT NULL,
  `recruiter_id` int(10) UNSIGNED DEFAULT NULL,
  `bdm_id` int(10) UNSIGNED DEFAULT NULL,
  `rm_id` int(10) UNSIGNED DEFAULT NULL,
  `sales_lead_id` int(10) UNSIGNED DEFAULT NULL,
  `end_client_id` int(10) UNSIGNED DEFAULT NULL,
  `sub_vendor_id` int(10) UNSIGNED DEFAULT NULL,
  `vendor_contact_id` int(10) UNSIGNED DEFAULT NULL,
  `endclient_state_id` int(10) UNSIGNED DEFAULT NULL,
  `is_bdm_comm` tinyint(1) UNSIGNED DEFAULT NULL,
  `is_recruiter_comm` tinyint(1) UNSIGNED DEFAULT NULL,
  `start_date` date DEFAULT NULL,
  `sch_end_date` date DEFAULT NULL,
  `act_end_date` date DEFAULT NULL,
  `create_timesheet` tinyint(1) UNSIGNED DEFAULT NULL,
  `timesheet_cycle_id` int(10) UNSIGNED DEFAULT NULL,
  `timesheet_start_date` date DEFAULT NULL,
  `week_start_day` tinyint(3) UNSIGNED DEFAULT NULL,
  `placement_type_id` int(10) UNSIGNED DEFAULT NULL,
  `position_type_id` int(10) UNSIGNED DEFAULT NULL,
  `workforce_id` int(10) UNSIGNED DEFAULT NULL,
  `status_id` int(10) UNSIGNED DEFAULT NULL,
  `comment` varchar(500) DEFAULT NULL,
  `dropoff_date` date DEFAULT NULL,
  `dropoff_comment` varchar(500) DEFAULT NULL,
  `completion_reason_id` int(10) UNSIGNED DEFAULT NULL,
  `is_expense_paid` tinyint(1) UNSIGNED DEFAULT NULL,
  `expense_comments` varchar(255) DEFAULT NULL,
  `work_email` varchar(128) DEFAULT NULL,
  `work_phone` varchar(16) DEFAULT NULL,
  `work_manager` varchar(128) DEFAULT NULL,
  `work_manager_phone` varchar(16) DEFAULT NULL,
  `industry_id` int(10) UNSIGNED DEFAULT NULL,
  `position_title` varchar(128) DEFAULT NULL,
  `project_desc` text,
  `cost_type` smallint(5) UNSIGNED DEFAULT NULL COMMENT 'Pay Type or Cost Type',
  `is_hotlist` tinyint(1) UNSIGNED DEFAULT NULL,
  `ref_emp_id` int(10) UNSIGNED DEFAULT NULL,
  `ref_consult_id` int(10) UNSIGNED DEFAULT NULL,
  `bench_sales_manager_id` int(10) UNSIGNED DEFAULT NULL,
  `salary` decimal(9,2) UNSIGNED DEFAULT NULL,
  `earned_fee` decimal(9,2) UNSIGNED DEFAULT NULL,
  `billrate_changed_by` int(10) UNSIGNED DEFAULT NULL,
  `billrate_changed_date` timestamp NULL DEFAULT NULL,
  `payrate_changed_by` int(10) UNSIGNED DEFAULT NULL,
  `payrate_changed_date` timestamp NULL DEFAULT NULL,
  `created_by` int(10) UNSIGNED DEFAULT NULL,
  `created_at` datetime DEFAULT NULL,
  `updated_by` int(10) UNSIGNED DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `cost_type_name` varchar(128) DEFAULT NULL,
  `sed_hotlist` int(10) DEFAULT NULL,
  `sed_hotlist_update_date` date DEFAULT NULL,
  `clientid` varchar(45) DEFAULT NULL,
  `clientcontactid` varchar(45) DEFAULT NULL,
  `employeeid` varchar(45) DEFAULT NULL,
  `vendorname` varchar(255) DEFAULT NULL,
  `vendorcontactname` varchar(255) DEFAULT NULL,
  `salesrep` varchar(255) DEFAULT NULL,
  `recruitername` varchar(255) DEFAULT NULL,
  `recruitingmanager` varchar(255) DEFAULT NULL,
  `salesmanager` varchar(255) DEFAULT NULL,
  `endclienttext` varchar(255) DEFAULT NULL,
  `modifiedbyid` varchar(45) DEFAULT NULL,
  `createdbyid` varchar(45) DEFAULT NULL,
  `submissionid` varchar(45) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `subm_id` (`subm_id`),
  KEY `confirm_id` (`confirm_id`),
  KEY `job_id` (`job_id`),
  KEY `profile_id` (`profile_id`),
  KEY `client_id` (`client_id`),
  KEY `client_contact_id` (`client_contact_id`),
  KEY `emp_type_id` (`emp_type_id`),
  KEY `visa_type_id` (`visa_type_id`),
  KEY `payrate_type_id` (`payrate_type_id`),
  KEY `billrate_type_id` (`billrate_type_id`),
  KEY `recruiter_id` (`recruiter_id`),
  KEY `bdm_id` (`bdm_id`),
  KEY `rm_id` (`rm_id`),
  KEY `end_client_id` (`end_client_id`),
  KEY `sub_vendor_id` (`sub_vendor_id`),
  KEY `vendor_contact_id` (`vendor_contact_id`),
  KEY `start_date` (`start_date`),
  KEY `sch_end_date` (`sch_end_date`),
  KEY `act_end_date` (`act_end_date`),
  KEY `timesheet_cycle_id` (`timesheet_cycle_id`),
  KEY `placement_type_id` (`placement_type_id`),
  KEY `status_id` (`status_id`),
  KEY `workforce_id` (`workforce_id`),
  KEY `industry_id` (`industry_id`),
  KEY `created_by` (`created_by`),
  KEY `cost_type` (`cost_type`),
  KEY `billrate_changed_by` (`billrate_changed_by`),
  KEY `payrate_changed_by` (`payrate_changed_by`),
  KEY `sales_lead_id` (`sales_lead_id`),
  KEY `position_type_id` (`position_type_id`),
  KEY `clientid` (`clientid`),
  KEY `clientcontactid` (`clientcontactid`),
  KEY `employeeid` (`employeeid`),
  KEY `vendorname` (`vendorname`),
  KEY `vendorcontactname` (`vendorcontactname`),
  KEY `salesrep` (`salesrep`),
  KEY `recruitername` (`recruitername`),
  KEY `recruitingmanager` (`recruitingmanager`),
  KEY `salesmanager` (`salesmanager`),
  KEY `endclienttext` (`endclienttext`),
  KEY `createdbyid` (`createdbyid`),
  KEY `modifiedbyid` (`modifiedbyid`),
  KEY `endclient_state_id` (`endclient_state_id`),
  KEY `bdm_comm` (`is_bdm_comm`),
  KEY `recruiter_comm` (`is_recruiter_comm`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `profile_placements`:
--

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

--
-- Table structure for table `profile_references`
--

CREATE TABLE IF NOT EXISTS `profile_references` (
  `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  `profile_id` int(10) UNSIGNED NOT NULL,
  `company_name` varchar(128) NOT NULL,
  `contact_name` varchar(128) NOT NULL,
  `phone` varchar(24) DEFAULT NULL,
  `email` varchar(128) DEFAULT NULL,
  `designation` varchar(128) DEFAULT NULL,
  `created_by` int(10) UNSIGNED NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_by` int(10) UNSIGNED DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `profile_id` (`profile_id`),
  KEY `created_by` (`created_by`),
  KEY `updated_by` (`updated_by`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `profile_references`:
--

--
-- Dumping data for table `profile_references`
--

INSERT INTO `profile_references` (`id`, `profile_id`, `company_name`, `contact_name`, `phone`, `email`, `designation`, `created_by`, `created_at`, `updated_by`, `updated_at`) VALUES
(1, 7, 'idea', 'Nitish', NULL, NULL, NULL, 4, '2021-12-15 01:58:29', 4, '2021-12-14 20:29:44'),
(2, 6, 'idera', 'fgf', NULL, NULL, NULL, 4, '2021-12-16 02:01:36', 4, '2021-12-15 20:31:57');

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

--
-- Table structure for table `profile_skills`
--

CREATE TABLE IF NOT EXISTS `profile_skills` (
  `id` int(10) UNSIGNED NOT NULL,
  `profile_id` int(10) UNSIGNED NOT NULL,
  `skill_id` int(10) UNSIGNED NOT NULL,
  `skill_level_id` int(10) UNSIGNED NOT NULL,
  `exp_id` int(10) UNSIGNED NOT NULL,
  `last_used` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `profile_skills`:
--

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

--
-- Table structure for table `profile_submissions`
--

CREATE TABLE IF NOT EXISTS `profile_submissions` (
  `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  `submissionid` varchar(45) DEFAULT NULL,
  `profile_id` int(10) UNSIGNED NOT NULL,
  `job_id` int(10) UNSIGNED DEFAULT NULL,
  `resume_id` int(10) UNSIGNED DEFAULT NULL,
  `recruiter_id` int(10) UNSIGNED NOT NULL,
  `bdm_id` int(10) UNSIGNED DEFAULT NULL,
  `rm_id` int(10) UNSIGNED DEFAULT NULL,
  `bench_bdm_id` int(10) UNSIGNED DEFAULT NULL,
  `emp_type_id` int(10) UNSIGNED DEFAULT NULL,
  `visa_type_id` int(10) DEFAULT NULL,
  `payrate_type_id` int(10) UNSIGNED DEFAULT NULL,
  `pay_rate` decimal(8,2) DEFAULT NULL,
  `bill_rate` decimal(8,2) UNSIGNED DEFAULT NULL,
  `billrate_type_id` int(10) UNSIGNED DEFAULT NULL,
  `status_id` smallint(5) UNSIGNED NOT NULL,
  `job_title` varchar(128) DEFAULT NULL,
  `req_skills` varchar(255) DEFAULT NULL,
  `job_desc` text,
  `client_id` int(10) UNSIGNED DEFAULT NULL,
  `contact_id` int(10) UNSIGNED DEFAULT NULL,
  `client_type_id` smallint(5) UNSIGNED DEFAULT NULL,
  `end_client_id` int(10) UNSIGNED DEFAULT NULL,
  `eclient_name` varchar(128) DEFAULT NULL,
  `eclient_city` varchar(128) DEFAULT NULL,
  `eclient_state_id` int(10) UNSIGNED DEFAULT NULL,
  `hiring_terms` text,
  `comment` text,
  `sub_status_id` int(10) UNSIGNED DEFAULT NULL,
  `is_internal` tinyint(1) UNSIGNED NOT NULL DEFAULT '0',
  `is_client` tinyint(1) UNSIGNED NOT NULL DEFAULT '0',
  `is_interview` tinyint(1) UNSIGNED NOT NULL DEFAULT '0',
  `is_confirm` tinyint(1) UNSIGNED NOT NULL DEFAULT '0',
  `is_dropoff` tinyint(1) UNSIGNED NOT NULL DEFAULT '0',
  `is_started` tinyint(1) UNSIGNED NOT NULL DEFAULT '0',
  `internal_subm_date` datetime DEFAULT NULL,
  `client_subm_date` datetime DEFAULT NULL,
  `interview_confirm_date` datetime DEFAULT NULL,
  `confirm_date` datetime DEFAULT NULL,
  `dropoff_date` datetime DEFAULT NULL,
  `started_date` datetime DEFAULT NULL,
  `in_hotlist` tinyint(1) UNSIGNED NOT NULL DEFAULT '0',
  `created_by` int(10) UNSIGNED DEFAULT NULL,
  `created_at` datetime DEFAULT NULL,
  `updated_by` int(10) UNSIGNED DEFAULT NULL,
  `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `requirementid` varchar(45) DEFAULT NULL,
  `candid` varchar(45) DEFAULT NULL,
  `conrep_reqcode` varchar(255) DEFAULT NULL,
  `conrep_paytype` varchar(255) DEFAULT NULL,
  `conrep_recruiter` varchar(255) DEFAULT NULL,
  `conrep_submittedby` varchar(255) DEFAULT NULL,
  `conrep_clientsubmissionby` varchar(255) DEFAULT NULL,
  `modifiedbyid` varchar(45) DEFAULT NULL,
  `createdbyid` varchar(45) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `profile_id` (`profile_id`),
  KEY `job_id` (`job_id`),
  KEY `resume_id` (`resume_id`),
  KEY `recruiter_id` (`recruiter_id`),
  KEY `bdm_id` (`bdm_id`),
  KEY `rm_id` (`rm_id`),
  KEY `bench_bdm_id` (`bench_bdm_id`),
  KEY `emp_type_id` (`emp_type_id`),
  KEY `visa_type_id` (`visa_type_id`),
  KEY `payrate_type_id` (`payrate_type_id`),
  KEY `status_id` (`status_id`),
  KEY `sub_status_id` (`sub_status_id`),
  KEY `internal_subm_date` (`internal_subm_date`),
  KEY `client_subm_date` (`client_subm_date`),
  KEY `interview_confirm_date` (`interview_confirm_date`),
  KEY `created_by` (`created_by`),
  KEY `in_hotlist` (`in_hotlist`),
  KEY `confirm_date` (`confirm_date`),
  KEY `dropoff_date` (`dropoff_date`),
  KEY `started_date` (`started_date`),
  KEY `is_internal` (`is_internal`),
  KEY `is_client` (`is_client`),
  KEY `is_interview` (`is_interview`),
  KEY `is_confirm` (`is_confirm`),
  KEY `is_dropoff` (`is_dropoff`),
  KEY `is_started` (`is_started`),
  KEY `modifiedbyid` (`modifiedbyid`),
  KEY `createdbyid` (`createdbyid`),
  KEY `conrep_submittedby` (`conrep_submittedby`),
  KEY `conrep_clientsubmissionby` (`conrep_clientsubmissionby`),
  KEY `candid` (`candid`),
  KEY `requirementid` (`requirementid`),
  KEY `conrep_recruiter` (`conrep_recruiter`),
  KEY `submissionid` (`submissionid`),
  KEY `client_id` (`client_id`),
  KEY `end_client_id` (`end_client_id`)
) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8;

--
-- RELATIONSHIPS FOR TABLE `profile_submissions`:
--

--
-- Dumping data for table `profile_submissions`
--

INSERT INTO `profile_submissions` (`id`, `submissionid`, `profile_id`, `job_id`, `resume_id`, `recruiter_id`, `bdm_id`, `rm_id`, `bench_bdm_id`, `emp_type_id`, `visa_type_id`, `payrate_type_id`, `pay_rate`, `bill_rate`, `billrate_type_id`, `status_id`, `job_title`, `req_skills`, `job_desc`, `client_id`, `contact_id`, `client_type_id`, `end_client_id`, `eclient_name`, `eclient_city`, `eclient_state_id`, `hiring_terms`, `comment`, `sub_status_id`, `is_internal`, `is_client`, `is_interview`, `is_confirm`, `is_dropoff`, `is_started`, `internal_subm_date`, `client_subm_date`, `interview_confirm_date`, `confirm_date`, `dropoff_date`, `started_date`, `in_hotlist`, `created_by`, `created_at`, `updated_by`, `updated_at`, `requirementid`, `candid`, `conrep_reqcode`, `conrep_paytype`, `conrep_recruiter`, `conrep_submittedby`, `conrep_clientsubmissionby`, `modifiedbyid`, `createdbyid`) VALUES
(1, NULL, 1, 1, NULL, 4, 4, NULL, NULL, 42, 95, 12, '15.00', NULL, NULL, 5, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'fo', 46, 1, 1, 1, 1, 1, 0, '2021-12-08 04:32:38', '2021-12-15 07:10:25', '2021-12-15 07:10:37', '2021-12-07 00:00:00', '2021-12-16 02:32:23', NULL, 0, 1, '2021-12-08 04:32:38', 4, '2021-12-15 21:02:23', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(2, NULL, 2, 2, NULL, 6, 4, 4, NULL, 42, 24, 12, '0.00', NULL, NULL, 5, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'congrates', 6, 1, 1, 1, 1, 1, 0, '2021-12-13 06:58:12', '2021-12-13 06:58:55', '2021-12-13 07:41:21', '2021-12-14 00:00:00', '2021-12-17 16:13:53', NULL, 0, 6, '2021-12-13 06:58:12', 6, '2021-12-17 10:43:53', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(3, NULL, 3, 2, NULL, 3, 4, NULL, NULL, 43, 95, 12, '0.00', NULL, NULL, 5, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'added', 54, 1, 1, 1, 1, 1, 0, '2021-12-13 23:52:27', '2021-12-14 00:30:11', '2021-12-13 23:53:32', '2021-12-14 00:00:00', '2021-12-16 02:29:47', NULL, 0, 3, '2021-12-13 23:52:27', 4, '2021-12-15 20:59:47', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(4, NULL, 4, 3, NULL, 3, 4, NULL, NULL, 43, 24, 12, '250.00', NULL, NULL, 4, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'ok df', 45, 1, 1, 1, 1, 0, 0, '2021-12-14 01:39:24', '2021-12-16 02:24:42', '2021-12-16 02:27:26', '2021-12-14 00:00:00', NULL, NULL, 0, 3, '2021-12-14 01:39:24', 4, '2021-12-15 23:21:23', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(5, NULL, 5, 3, NULL, 3, 4, NULL, NULL, 42, 174, 12, '25.00', NULL, NULL, 4, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'sef', NULL, 1, 1, 1, 1, 0, 0, '2021-12-14 01:42:15', '2021-12-15 07:46:22', '2021-12-15 07:46:42', '2021-12-03 00:00:00', NULL, NULL, 0, 3, '2021-12-14 01:42:15', 4, '2021-12-15 20:53:46', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(6, NULL, 6, 3, NULL, 3, 4, NULL, NULL, NULL, 146, 12, '0.00', NULL, NULL, 3, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'okay', NULL, 1, 1, 1, 0, 0, 0, '2021-12-14 01:43:51', '2021-12-16 18:28:59', '2021-12-16 18:29:45', NULL, NULL, NULL, 0, 3, '2021-12-14 01:43:51', 3, '2021-12-16 12:59:45', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(7, NULL, 7, 3, NULL, 6, 4, NULL, NULL, 43, 32, 255, '0.00', NULL, NULL, 4, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'kl;', 31, 1, 1, 1, 1, 0, 0, '2021-12-14 01:53:45', '2021-12-15 07:12:17', '2021-12-15 07:46:09', '2021-12-16 00:00:00', NULL, NULL, 0, 3, '2021-12-14 01:53:45', 4, '2021-12-16 00:04:58', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(8, NULL, 4, 4, NULL, 5, 4, 4, NULL, 44, 146, 12, '250.00', NULL, NULL, 5, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'comments', 52, 1, 1, 1, 1, 1, 0, '2021-12-14 02:47:07', '2021-12-14 23:44:57', '2021-12-15 02:49:07', '2021-12-16 00:00:00', '2021-12-16 02:28:26', NULL, 0, 3, '2021-12-14 02:47:07', 4, '2021-12-15 20:58:56', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(9, NULL, 2, 4, NULL, 8, 4, 4, NULL, NULL, 146, 12, '25.00', NULL, NULL, 2, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'okay done....', 7, 1, 1, 0, 0, 0, 0, '2021-12-14 05:41:58', '2021-12-15 07:49:29', NULL, NULL, NULL, NULL, 0, 8, '2021-12-14 05:41:58', 4, '2021-12-15 02:19:29', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(10, NULL, 2, 1, NULL, 8, 4, 4, NULL, NULL, 24, 12, '250.00', NULL, NULL, 3, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'okay done', 40, 1, 1, 1, 0, 0, 0, '2021-12-14 05:42:22', '2021-12-14 08:13:16', '2021-12-15 07:17:42', NULL, NULL, NULL, 0, 8, '2021-12-14 05:42:22', 4, '2021-12-15 01:47:42', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(11, NULL, 3, 4, NULL, 8, 4, 4, NULL, NULL, 32, 12, '62.00', NULL, NULL, 2, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'ok', 40, 1, 1, 0, 0, 0, 0, '2021-12-14 05:43:45', '2021-12-14 05:46:04', NULL, NULL, NULL, NULL, 0, 8, '2021-12-14 05:43:03', 8, '2021-12-14 02:41:12', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(12, NULL, 8, 4, NULL, 8, 4, 4, NULL, 42, 32, 12, '0.00', NULL, NULL, 5, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'ok', NULL, 1, 1, 1, 1, 1, 0, '2021-12-14 07:57:20', '2021-12-14 08:00:52', '2021-12-14 08:07:23', '2021-12-15 00:00:00', '2021-12-17 13:13:10', NULL, 0, 8, '2021-12-14 07:57:20', 4, '2021-12-17 07:43:10', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(13, NULL, 7, 4, NULL, 4, 7, 4, NULL, 42, 146, 255, '250.00', NULL, NULL, 4, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'hh', 7, 1, 1, 1, 1, 0, 0, '2021-12-15 01:28:40', '2021-12-17 12:58:26', '2021-12-17 12:58:51', '2021-12-16 00:00:00', NULL, NULL, 0, 4, '2021-12-15 01:28:40', 6, '2021-12-17 07:29:20', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(14, NULL, 6, 2, NULL, 7, 4, 4, NULL, NULL, 174, 254, '250.00', NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'okkk', 7, 1, 0, 0, 0, 0, 0, '2021-12-16 00:37:35', NULL, NULL, NULL, NULL, NULL, 0, 4, '2021-12-16 00:37:35', NULL, '2021-12-16 05:37:35', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(15, NULL, 6, 6, NULL, 4, 4, 7, NULL, NULL, 146, 12, '65.00', NULL, NULL, 3, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'okay done', 7, 1, 1, 1, 0, 0, 0, '2021-12-16 00:37:54', '2021-12-16 02:02:20', '2021-12-16 02:02:40', NULL, NULL, NULL, 0, 4, '2021-12-16 00:37:54', 4, '2021-12-15 20:32:40', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(16, NULL, 6, 4, NULL, 4, 4, 4, NULL, NULL, 157, 12, '2521.00', NULL, NULL, 2, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'okay done', 18, 1, 1, 0, 0, 0, 0, '2021-12-16 00:38:08', '2021-12-17 12:14:18', NULL, NULL, NULL, NULL, 0, 4, '2021-12-16 00:38:08', 3, '2021-12-17 06:44:18', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(17, NULL, 10, 3, NULL, 3, 4, NULL, NULL, NULL, NULL, 12, '0.00', NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 0, 0, 0, 0, 0, '2023-01-17 19:04:50', NULL, NULL, NULL, NULL, NULL, 0, 3, '2023-01-17 19:04:50', NULL, '2023-01-17 13:34:50', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(18, NULL, 11, 7, NULL, 3, 4, NULL, NULL, NULL, NULL, 12, '0.00', NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 0, 0, 0, 0, 0, '2023-01-24 12:39:52', NULL, NULL, NULL, NULL, NULL, 0, 3, '2023-01-24 12:39:52', NULL, '2023-01-24 07:09:52', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(19, NULL, 12, 7, NULL, 3, 4, NULL, NULL, NULL, NULL, 12, '0.00', NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 0, 0, 0, 0, 0, '2023-01-24 17:57:24', NULL, NULL, NULL, NULL, NULL, 0, 3, '2023-01-24 17:57:24', NULL, '2023-01-24 12:27:24', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);

--
-- Triggers `profile_submissions`
--
DROP TRIGGER IF EXISTS `insert_subm_status_history`;
DELIMITER $$
CREATE TRIGGER `insert_subm_status_history` BEFORE UPDATE ON `profile_submissions` FOR EACH ROW BEGIN 
IF OLD.status_id != NEW.status_id OR OLD.sub_status_id != NEW.sub_status_id THEN 
	INSERT INTO `submission_status_history` (subm_id,old_status_id,old_sub_status_id,old_comment,created_by) 
	VALUES (NEW.id,OLD.status_id,OLD.sub_status_id,OLD.comment,NEW.updated_by); 
END IF; 
END
$$
DELIMITER ;

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

--
-- Table structure for table `questions`
--

CREATE TABLE IF NOT EXISTS `questions` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `question` varchar(255) NOT NULL,
  `opt1` varchar(100) NOT NULL,
  `opt2` varchar(100) NOT NULL,
  `opt3` varchar(100) NOT NULL,
  `opt4` varchar(100) NOT NULL,
  `answer` int(11) NOT NULL,
  `category_id` int(10) NOT NULL,
  `skills` varchar(250) DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `category_id` (`category_id`)
) ENGINE=InnoDB AUTO_INCREMENT=101 DEFAULT CHARSET=latin1;

--
-- RELATIONSHIPS FOR TABLE `questions`:
--

--
-- Dumping data for table `questions`
--

INSERT INTO `questions` (`id`, `question`, `opt1`, `opt2`, `opt3`, `opt4`, `answer`, `category_id`, `skills`, `created_at`, `updated_at`) VALUES
(1, 'What does PHP stand for?', 'PHP: Hypertext Preprocessor', ' Personal Hypertext Processor', 'Private Home Page', 'none of the above', 1, 1, 'PHP', '2022-12-23 14:18:22', '2022-12-23 14:18:22'),
(2, 'How will you concatenate two strings?', 'Using . operator.', ' Using + operator.', ' Using add() function', ' Using append() function', 2, 1, 'PHP', '2023-01-10 12:11:00', '2023-01-10 12:11:00'),
(3, 'How do you write \"Hello World\" in PHP', '\"Hello World\";', 'echo \"Hello World\";', ' Document.Write(\"Hello World\");', 'none of the above', 1, 1, 'PHP', '2022-12-23 14:18:14', '2022-12-23 14:18:14'),
(4, 'All variables in PHP start with which symbol?', '!', '$', ' &', 'none of the above', 2, 1, 'PHP', '2022-12-30 10:47:14', '2022-12-30 10:47:14'),
(5, 'What is the correct way to end a PHP statement?', ';', '.', '\\n', ' New line', 4, 1, 'PHP', '2022-12-26 06:46:59', '2022-12-26 06:46:59'),
(6, 'The PHP syntax is most similar to:', 'VBScript', 'JavaScript', 'Perl and C', 'none of the above', 2, 1, 'PHP', '2022-12-26 06:47:04', '2022-12-26 06:47:04'),
(7, 'How do you get information from a form that is submitted using the \"get\" method?', 'Request.Form;', 'Request.QueryString;', '$_GET[];', 'none of the above', 2, 1, 'PHP', '2022-12-26 06:47:09', '2022-12-26 06:47:09'),
(8, 'When using the POST method, variables are displayed in the URL:', 'False', 'True', 'neither true nor false', 'Depents', 3, 1, 'PHP', '2022-12-26 06:47:15', '2022-12-26 06:47:15'),
(9, 'In PHP you can use both single quotes ( \' \' ) and double quotes ( \" \" ) for strings:', 'False', 'True', 'Depends', 'non of the above', 1, 1, 'PHP', '2022-12-26 06:47:20', '2022-12-26 06:47:20'),
(10, 'What is the correct way to create a function in PHP?', 'create myFunction()', 'new_function myFunction()', 'function myFunction()', 'none of the above', 2, 1, 'PHP', '2022-12-26 06:47:26', '2022-12-26 06:47:26'),
(11, 'Which SQL statement is used to extract data from a database?', 'EXTRACT', 'OPEN', 'GET', 'SELECT', 1, 5, 'SQL', '2022-12-29 10:16:32', '2022-12-29 10:16:32'),
(12, 'Which SQL statement is used to update data in a database?', 'UPDATE', 'MODIFY', 'SAVE AS', 'SAVE', 1, 5, 'SQL', '2022-12-26 06:49:52', '2022-12-26 06:49:52'),
(13, 'Which SQL statement is used to insert new data in a database?', 'INSERT NEW', 'ADD NEW', 'ADD RECORD', 'INSERT INTO', 1, 5, 'SQL', '2022-12-29 10:16:36', '2022-12-29 10:16:36'),
(14, 'With SQL, how do you select a column named \"FirstName\" from a table named \"Persons\"?', 'SELECT Persons.FirstName', 'EXTRACT FirstName FROM Persons', 'SELECT FirstName FROM Persons', 'none of the above', 1, 5, 'SQL', '2022-12-29 10:16:41', '2022-12-29 10:16:41'),
(15, 'Which of the following is not true about simple views?', 'They derive data from one table.', 'They contain no functions or grouping.', 'You cannot perform DML operations through a simple view.', ' All of the above are true.', 2, 3, 'MYSQL', '2022-12-29 09:14:43', '2022-12-29 09:14:43'),
(16, 'Which SQL statement is used to return only different values?', 'SELECT DISTINCT', 'SELECT DIFFERENT', 'SELECT UNIQUE', 'none of the above', 1, 3, 'MYSQL', '2022-12-29 09:14:53', '2022-12-29 09:14:53'),
(17, 'Which SQL keyword is used to sort the result-set?', 'SORT', 'ORDER BY', 'ORDER', 'SORT BY', 1, 3, 'MYSQL', '2022-12-29 09:15:02', '2022-12-29 09:15:02'),
(18, 'With SQL, how can you return all the records from a table named \"Persons\" sorted descending by \"FirstName\"?', 'SELECT * FROM Persons SORT \'FirstName\' DESC', 'SELECT * FROM Persons ORDER BY FirstName DESC', 'SELECT * FROM Persons ORDER FirstName DESC', 'SELECT * FROM Persons SORT BY \'FirstName\' DESC\r\n', 1, 3, 'MYSQL', '2022-12-29 09:15:13', '2022-12-29 09:15:13'),
(19, 'With SQL, how can you return the number of records in the \"Persons\" table?', 'SELECT COUNT(*) FROM Persons', ' SELECT LEN(*) FROM Persons', 'SELECT NO(*) FROM Persons', 'SELECT COLUMNS(*) FROM Persons', 1, 3, 'MYSQL', '2022-12-29 09:15:22', '2022-12-29 09:15:22'),
(20, ' Which SQL statement is used to create a table in a database?', 'CREATE DATABASE TAB', 'CREATE TABLE', 'CREATE DB', 'CREATE DATABASE TABLE', 1, 3, 'MYSQL', '2022-12-29 09:15:32', '2022-12-29 09:15:32'),
(21, 'Choose the pure virtual function definition from the following.', 'virtual void f()=0 { }', 'void virtual f()=0 { }', 'virtual void f() {} = 0;', ' None of the above.', 3, 2, 'OOPS', '2022-12-23 14:43:24', '2022-12-23 14:43:24'),
(22, 'Which is the storage specifier used to modify the member variable even though the class object is a constant object?', 'auto', 'register', 'static', 'mutable', 3, 2, 'OOPS', '2022-12-23 14:43:24', '2022-12-23 14:43:24'),
(23, ' In an object model, there are major and minor elements. Which one of the following is true?', 'Abstraction, Encapsulation and Persistence are the major elements.', ' Hierarchy, Concurrency and Typing are the major elements.', ' Abstraction, Encapsulation and Hierarchy are the major elements.', 'Typing is the major element.', 2, 2, 'OOPS', '2022-12-23 14:43:24', '2022-12-23 14:43:24'),
(24, 'Which of the following is not a part of OOP?', ' Multitasking', ' Information hiding', 'Polymorphism', 'Type checking', 1, 2, 'OOPS', '2022-12-23 14:43:24', '2022-12-23 14:43:24'),
(25, 'Which one of the following is the first fully Object-oriented language?', 'Simula.', 'Java.', 'C++.', '  Javascript.', 1, 2, 'OOPS', '2022-12-23 14:43:24', '2022-12-23 14:43:24'),
(26, ' Programming without inheritance', 'is programming with abstract data types', ' is not object oriented', 'can be object oriented', 'none of the above', 2, 2, 'OOPS', '2022-12-23 14:43:24', '2022-12-23 14:43:24'),
(27, 'Which one of the following terms must relate to \"polymorphism\"', 'Static allocation.', ' Static typing.', 'Dynamic binding.', ' Dynamic allocation.', 2, 2, 'OOPS', '2022-12-23 14:43:24', '2022-12-23 14:43:24'),
(28, ' Providing access to an object only through its member functions, while keeping the details private is called .', ' information hiding.', 'encapsulation.', ' modularity', ' inheritance', 1, 2, 'OOPS', '2022-12-23 14:43:24', '2022-12-23 14:43:24'),
(29, 'What is the advantage of using import statements?', 'To avoid having to declare variables.', 'To refer to a class without using prefixes.', 'To avoid calling methods.', 'To import the images you want to use.', 1, 2, 'OOPS', '2022-12-23 14:43:24', '2022-12-23 14:43:24'),
(30, ' Which of the following statements is true in C++?', 'An object can be a class.', 'A class can be an object.', 'A class must have at least one member function.', ' If a constructor for a class is not specified, a default constructor is used.', 3, 2, 'OOPS', '2022-12-23 14:43:24', '2022-12-23 14:43:24'),
(31, 'What does HTML stand for?', 'Hyperlinks and Text Markup Language', 'Home Tool Markup Language', 'Hyper Text Markup Language', 'Hyper Extendable Language', 1, 4, 'HTML', '2022-12-29 10:17:20', '2022-12-29 10:17:20'),
(32, 'Who is making the Web standards?', 'Mozilla', 'Google', 'The World Wide Web Consortium', 'Microsoft', 1, 4, 'HTML', '2022-12-29 10:17:24', '2022-12-29 10:17:24'),
(33, 'Which character is used to indicate an end tag?', '^', '/', '>', '*', 1, 4, 'HTML', '2022-12-26 06:52:52', '2022-12-26 06:52:52'),
(37, 'Which of the following attributes of text box control allow to limit the maximum character?', 'size', 'len', 'maxlength', 'all of these', 1, 4, 'HTML', '2022-12-29 10:17:28', '2022-12-29 10:17:28'),
(38, ' \r\nHTML is a subset of', 'SGMT', 'SGML', 'SGMD', 'None of these', 1, 4, 'HTML', '2022-12-26 06:53:01', '2022-12-26 06:53:01'),
(39, ' \r\nAny part of the graphic that is not included in another hot zone is considered to be part of', 'rect', 'point', 'default', 'polygon', 1, 4, 'HTML', '2022-12-29 10:17:32', '2022-12-29 10:17:32'),
(40, '<INPUT> is', 'format tag', 'empty tag', 'both (a) and (b)', 'none of these', 1, 4, 'HTML', '2022-12-26 06:53:09', '2022-12-26 06:53:09'),
(41, '\r\nThe latest HTML standard is', 'XML', 'SGML', 'HTML 4.0', 'HTML 5.0', 3, 5, 'OOPS', '2022-12-23 14:43:24', '2022-12-23 14:43:24'),
(42, 'Symbol used at the beginning of the HREF text is', '#', '^', '&', '$', 0, 5, 'OOPS', '2022-12-23 14:43:24', '2022-12-23 14:43:24'),
(43, ' How many tags are in a regular element?', '4', '3', '0', '2', 3, 5, 'OOPS', '2022-12-23 14:43:24', '2022-12-23 14:43:24'),
(46, 'Which built-in method adds one or more elements to the end of an array and returns the new length of the array?', 'last()', 'put()', 'push()', ' None of the above.', 2, 6, 'OOPS', '2022-12-23 14:43:24', '2022-12-23 14:43:24'),
(47, ' Which of the following function of String object combines the text of two strings and returns a new string?', 'add()', 'merge()', 'concat()', 'append()', 2, 6, 'OOPS', '2022-12-23 14:43:24', '2022-12-23 14:43:24'),
(48, 'Which of the following function of String object returns a number indicating whether a reference string comes before or after or is the same as the given string in sort order?', ' localeCompare()', 'search()', 'substr()', 'concat()', 0, 6, 'OOPS', '2022-12-23 14:43:24', '2022-12-23 14:43:24'),
(49, ' Which of the following function of String object returns the primitive value of the specified object', ' toLocaleUpperCase()', ' toUpperCase()', ' toString()', ' valueOf()', 3, 6, 'OOPS', '2022-12-23 14:43:24', '2022-12-23 14:43:24'),
(50, 'Which of the following function of String object causes a string to be displayed as struck-out text, as if it were in a <strike> tag?', ' sup()', 'small()', ' strike()', 'sub()', 2, 6, 'OOPS', '2022-12-23 14:43:24', '2022-12-23 14:43:24'),
(51, 'Which of the following function of Array object sorts the elements of an array?', 'toSource()', 'sort()', 'toString()', 'unshift()', 1, 2, 'JAVA', '2022-12-29 10:15:01', '2022-12-29 10:15:01'),
(52, 'Which of the following is true?', 'If onKeyDown returns false, the key-press event is cancelled.', ' If onKeyPress returns false, the key-down event is cancelled.', ' If onKeyDown returns false, the key-up event is cancelled.', ' If onKeyPress returns false, the key-up event is canceled.', 1, 2, 'JAVA', '2022-12-29 10:15:47', '2022-12-29 10:15:47'),
(53, 'Choose the client-side JavaScript object:', 'Database', 'Cursor', ' Client', ' FileUpLoad', 1, 2, 'JAVA', '2022-12-29 10:15:51', '2022-12-29 10:15:51'),
(54, 'Which best describes void?', 'A method', 'A function', 'A statement', 'An operator', 1, 2, 'JAVA', '2022-12-29 10:15:55', '2022-12-29 10:15:55'),
(55, 'Which is not an attribute of the cookie property?', 'path', 'host', 'secure', 'domain', 1, 2, 'JAVA', '2022-12-29 10:15:23', '2022-12-29 10:15:23'),
(56, 'Which of the following is correct about Bootstrap cross browser consistency?', 'Bootstrap uses Normalize to establish cross browser consistency.', 'Normalize.css is a modern, HTML5-ready alternative to CSS resets.', 'Normalize.css is a small CSS file that provides better cross-browser consistency ', ' All of the above.', 3, 7, 'OOPS', '2022-12-23 14:43:24', '2022-12-23 14:43:24'),
(57, 'Which of the following class styles a table with a light gray background to rows while the cursor hovers over them?', '.table', '.table-striped', '.table-bordered', '.table-hover', 3, 7, 'OOPS', '2022-12-23 14:43:24', '2022-12-23 14:43:24'),
(58, 'Which of the following bootstrap style of button represents a contextual button for informational alert messages?', '.btn', '.btn-primary', '.btn-success', '.btn-info', 3, 7, 'OOPS', '2022-12-23 14:43:24', '2022-12-23 14:43:24'),
(59, 'Which of the following bootstrap style of button makes the button size large?', ' .btn-lg', '.btn-sm', '.btn-xs', '.btn-block', 0, 7, 'OOPS', '2022-12-23 14:43:24', '2022-12-23 14:43:24'),
(60, 'Which of the following bootstrap style is used to add button to .navbar?', '.navbar-.btn', '..btn', '.form-.btn', 'None of the above.', 0, 7, 'OOPS', '2022-12-23 14:43:24', '2022-12-23 14:43:24'),
(61, ' Which of the following bootstrap style can be used to customize .pagination links?', '.disabled, .active', '.pagination-active, .pagination-disabled', '.menu-active, .menu-disabled', ' None of the above.', 0, 7, 'OOPS', '2022-12-23 14:43:24', '2022-12-23 14:43:24'),
(62, 'Which of the following bootstrap styles can be used to create a Animated progress bar?', '.progress-active', '.active', '.progress-striped.', 'None of the above.', 1, 7, 'OOPS', '2022-12-23 14:43:24', '2022-12-23 14:43:24'),
(63, 'Which of the following is correct about Tab Plugin?', 'You can toggle the Tab plugin\'s hidden content via data attributes.', 'You can toggle the Tab plugin\'s hidden content via javascript.', 'Both of the above.', 'None of the above.', 2, 7, 'OOPS', '2022-12-23 14:43:24', '2022-12-23 14:43:24'),
(64, ' The Bootstrap grid system has four classes which defines screen size:', 's, sm, mid, lg', 'xs, sm, md, lg', 'x, sm, md, lg', 'xs, sml, mid, lg', 1, 7, 'OOPS', '2022-12-23 14:43:24', '2022-12-23 14:43:24'),
(65, ' Which class to be used to create a button as a link in bootstrap', '.btn-hyperlink', '.btn-link', '.btn-url', '.btn-anchor', 1, 7, 'OOPS', '2022-12-23 14:43:24', '2022-12-23 14:43:24'),
(66, 'Which of the following selector selects all paragraph elements with a lang attribute?', 'p[lang]', ' p[lang=\"fr\"]', ' p[lang~=\"fr\"]', 'p[lang|=\"fr\"]', 0, 8, 'OOPS', '2022-12-23 14:43:24', '2022-12-23 14:43:24'),
(67, ' Which of the following defines a measurement in inches?', ' in', ' mm', ' pc', ' pt', 0, 8, 'OOPS', '2022-12-23 14:43:24', '2022-12-23 14:43:24'),
(68, ' Which of the following defines 1% of viewport width?', 'px', 'vh', 'vw', 'vmin', 2, 8, 'OOPS', '2022-12-23 14:43:24', '2022-12-23 14:43:24'),
(69, 'Which of the following is correct about Browser Safe Colors?', 'These are 216 colors which are supposed to be most safe and computer independent colors.', 'These colors vary from hexa code 000000 to FFFFFF.', 'runs 256 color pallates', 'All of the above.', 3, 8, 'OOPS', '2022-12-23 14:43:24', '2022-12-23 14:43:24'),
(70, ' Which of the following property is used to increase or decrease how bold or light a font appears?', 'font-family', ' font-style', ' font-variant', ' font-weight', 3, 8, 'OOPS', '2022-12-23 14:43:24', '2022-12-23 14:43:24'),
(71, 'Which of the following property is used to control the flow and formatting of text?', 'white-space', ' text-shadow', 'text-decoration', ' text-transform', 0, 8, 'OOPS', '2022-12-23 14:43:24', '2022-12-23 14:43:24'),
(72, 'Which of the following property of a table element specifies the width that should appear between table cells?', ':border-collapse', ':border-spacing', ':caption-side', ':empty-cells', 1, 8, 'OOPS', '2022-12-23 14:43:24', '2022-12-23 14:43:24'),
(73, 'Which of the following property changes the style of right border?', ':border-bottom-style', ':border-top-style', ':border-left-style', ':border-right-style', 3, 8, 'OOPS', '2022-12-23 14:43:24', '2022-12-23 14:43:24'),
(74, 'Which of the following property specifies whether a long point that wraps to a second line should align with the first line or start underneath the start of the marker of a list?', ' list-style-type', 'list-style-position', ' list-style-image', 'list-style', 1, 8, 'OOPS', '2022-12-23 14:43:24', '2022-12-23 14:43:24'),
(75, ' Which of the following property serves as shorthand for the padding properties?', ' padding', 'padding-top', 'padding-left', 'padding-right', 0, 8, 'OOPS', '2022-12-23 14:43:24', '2022-12-23 14:43:24'),
(76, 'AJAX has become very commonly used because', 'it allows pages to be interactive without further communication with the server.', 'XML is a close relative of HTML.', 'it avoids the need for JavaScript.', 'it allows page content to be updated without requiring a full page reload.', 3, 9, 'OOPS', '2022-12-23 14:43:24', '2022-12-23 14:43:24'),
(77, 'Which of the following is not a reason XML gained popularity as a data interchange format for AJAX?', 'It has been around a while and libraries exist for many languages to work with it', 'It can be navigated using JavaScript DOM methods.', 'It is extensible, allowing it to be adapted to virtually any application.', 'It is concise and simple to use.', 3, 9, 'OOPS', '2022-12-23 14:43:24', '2022-12-23 14:43:24'),
(78, 'Which statement about XML is false?', 'Every XML document must have a DOCTYPE tag.', 'Every XML document must have a root element.', 'Every XML tag must have a closing tag.', 'Every XML document must start with an XML prolog.', 0, 9, 'OOPS', '2022-12-23 14:43:24', '2022-12-23 14:43:24'),
(79, 'Which JavaScript DOM traversal method works with an XML Document object?', 'getElementById', 'getElementsByTagName', 'querySelectorAll', 'All of the above.', 1, 9, 'OOPS', '2022-12-23 14:43:24', '2022-12-23 14:43:24'),
(80, 'The jQuery AJAX methods .get(), .post(), and .ajax() all require which parameter to be supplied?', 'method', 'url', 'data', 'headers', 1, 9, 'OOPS', '2022-12-23 14:43:24', '2022-12-23 14:43:24'),
(81, 'Which of the following is not a restriction of JSON as a data interchange format relative to a plain object definition in JavaScript?', 'Property names must be quoted.', 'Single quotes may not be used as string delimiters.', 'Properties may not include functions or expressions.', 'Properties may only be objects, not arrays.', 3, 9, 'OOPS', '2022-12-23 14:43:24', '2022-12-23 14:43:24'),
(82, 'If an AJAX request made using jQuery fails,', 'the browser will automatically report the problem with an alert message', 'an error message will be displayed in the browser window content area.', 'the programmer should arrange for it to be reported using the jQuery .fail() method.', 'there is no way to notify the user.', 2, 9, 'OOPS', '2022-12-23 14:43:24', '2022-12-23 14:43:24'),
(83, 'What combination of technologies gives AJAX its name?', 'ASP and XAML', 'Asynchronous JavaScript and XML', ' Autonomic Computing and DHTML', 'Atlas and XML', 1, 9, 'OOPS', '2022-12-23 14:43:24', '2022-12-23 14:43:24'),
(84, 'Which one of these technologies is NOT used in AJAX?', 'CSS', ' DOM', 'DHTML', 'Flash', 3, 9, 'OOPS', '2022-12-23 14:43:24', '2022-12-23 14:43:24'),
(85, 'What are the properties of XMLHttpRequest?', 'onReadyStateChange', 'readyState', 'responseText & responseXML', 'All of the above', 3, 9, 'OOPS', '2022-12-23 14:43:24', '2022-12-23 14:43:24'),
(86, 'What scripting language is jQuery written in?', 'VBScript', ' JavaScript', ' C#', 'C++', 1, 9, 'JQuery', '2022-12-26 07:13:54', '2022-12-26 07:13:54'),
(87, 'Which of the following is a valid type of function javascript supports?', 'named function', 'anonymous function', 'Both of the above.', 'None of the above.', 2, 9, 'JQuery', '2022-12-26 07:16:17', '2022-12-26 07:16:17'),
(88, 'Which built-in method calls a function for each element in the array?', ' while()', ' loop()', 'forEach()', ' None of the above.', 3, 9, 'JQuery', '2022-12-26 07:16:13', '2022-12-26 07:16:13'),
(89, 'Which of the following jQuery selector selects element with the given element id some-id?', '$(\'some-id\')', '$(\'#some-id\')', '$(\'.some-id\')', ' None of the above.', 1, 9, 'JQuery', '2022-12-26 07:16:08', '2022-12-26 07:16:08'),
(90, ' Which of the following jQuery method gets attributes of an element?', ' attr()', 'getAttr()', 'getAttributes()', 'None of the above.', 2, 9, 'JQuery', '2022-12-26 10:27:01', '2022-12-26 10:27:01'),
(91, 'Which of the following jQuery method checks the current selection against an expression?', 'getIs( selector )', 'is( selector )', 'checkIs( selector )', 'None of the above.', 1, 9, 'JQuery', '2022-12-26 07:16:00', '2022-12-26 07:16:00'),
(92, 'Which of the following jQuery method gets a set of elements containing all of the unique siblings of each of the matched set of elements?', 'parents( selector )', ' prevAll( selector)', ' siblings( selector )', 'None of the above.', 2, 9, 'JQuery', '2022-12-26 07:15:54', '2022-12-26 07:15:54'),
(93, 'Which of the following jQuery method returns the top and left position of an element relative to its offset parent', ' offset( )', 'offsetParent( )', ' position( )', 'None of the above.', 2, 9, 'JQuery', '2022-12-26 07:15:49', '2022-12-26 07:15:49'),
(94, ' Which of the following jQuery method can be used to make a ajax call?', 'ready(url, [data], [callback] )', 'load( url, [data], [callback] )', 'reload(url, [data], [callback] )', ' None of the above.', 1, 9, 'JQuery', '2022-12-26 07:15:45', '2022-12-26 07:15:45'),
(95, ' Which of the following jQuery method loads a JSON data using an HTTP GET request?', ' jQuery.get( url, [data], [callback], [type] )', ' jQuery.getJSON( url, [data], [callback] )', 'jQuery.getScript( url, [callback] )', ' jQuery.post( url, [data], [callback], [type] )', 1, 9, 'JQuery', '2022-12-26 07:15:40', '2022-12-26 07:15:40'),
(96, 'The <hr> tag in HTML is used for', 'new line', 'vertical ruler', 'new paragraph', 'horizontal ruler', 4, 1, 'PHP', '2023-01-02 11:47:09', '0000-00-00 00:00:00'),
(97, 'Which of the following attribute is used to provide a unique name to an element?', 'class', 'id', 'type', 'None of the above', 2, 1, 'PHP', '2023-01-02 11:49:07', '0000-00-00 00:00:00'),
(98, 'What are the types of unordered or bulleted list in HTML?', 'disc, square, triangle', 'polygon, triangle, circle', 'disc, circle, square', 'All of the above', 3, 1, 'PHP', '2023-01-02 12:02:28', '0000-00-00 00:00:00'),
(99, 'Which of the following is not a Java features?', 'Dynamic', 'Architecture Neutral', 'Use of pointers', 'Object-oriented', 3, 1, 'JAVA', '2023-01-02 12:58:33', '0000-00-00 00:00:00'),
(100, 'Which of the following is a valid declaration of a char?', 'char ch = \'\\utea\';', 'char ca = \'tea\';', 'char cr = \\u0223;', 'char cc = \'\\itea\';', 1, 1, 'JAVA', '2023-01-02 13:04:28', '0000-00-00 00:00:00');

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

--
