-- Table structure for table `company_codes`
--

CREATE TABLE `company_codes` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `organization_id` int unsigned NOT NULL,
  `number` varchar(100) DEFAULT NULL,
  `type` varchar(191) DEFAULT NULL,
  `status` enum('active','inactive') NOT NULL DEFAULT 'active',
  `created_by` int unsigned DEFAULT NULL,
  `updated_by` int unsigned DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4336 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `company_codes`
--

INSERT INTO `company_codes` VALUES (4312,1,NULL,'company','active',NULL,NULL,'2024-01-03 15:26:58','2024-01-03 15:26:58',NULL),(4313,1,NULL,'company_pf','active',NULL,NULL,'2024-01-03 15:26:58','2024-01-03 15:26:58',NULL),(4314,1,NULL,'company','active',NULL,NULL,'2024-01-16 14:44:58','2024-01-16 14:44:58',NULL),(4315,1,NULL,'company_pf','active',NULL,NULL,'2024-01-16 14:44:58','2024-01-16 14:44:58',NULL),(4316,1,NULL,'company','active',NULL,NULL,'2024-01-16 14:59:52','2024-01-16 14:59:52',NULL),(4317,1,NULL,'company_pf','active',NULL,NULL,'2024-01-16 14:59:52','2024-01-16 14:59:52',NULL),(4318,1,NULL,'company','active',NULL,NULL,'2024-02-06 09:41:47','2024-02-06 09:41:47',NULL),(4319,1,NULL,'company_pf','active',NULL,NULL,'2024-02-06 09:41:47','2024-02-06 09:41:47',NULL),(4320,1,NULL,'company','active',NULL,NULL,'2024-02-06 16:08:04','2024-02-06 16:08:04',NULL),(4321,1,NULL,'company_pf','active',NULL,NULL,'2024-02-06 16:08:04','2024-02-06 16:08:04',NULL),(4322,1,NULL,'company','active',NULL,NULL,'2024-02-06 17:18:35','2024-02-06 17:18:35',NULL),(4323,1,NULL,'company_pf','active',NULL,NULL,'2024-02-06 17:18:35','2024-02-06 17:18:35',NULL),(4324,1,NULL,'company','active',NULL,NULL,'2024-02-06 17:26:07','2024-02-06 17:26:07',NULL),(4325,1,NULL,'company_pf','active',NULL,NULL,'2024-02-06 17:26:07','2024-02-06 17:26:07',NULL),(4326,1,NULL,'company','active',NULL,NULL,'2024-02-23 15:15:32','2024-02-23 15:15:32',NULL),(4327,1,NULL,'company_pf','active',NULL,NULL,'2024-02-23 15:15:32','2024-02-23 15:15:32',NULL),(4328,2,NULL,'company','active',NULL,NULL,'2024-03-01 14:40:08','2024-03-01 14:40:08',NULL),(4329,2,NULL,'company_pf','active',NULL,NULL,'2024-03-01 14:40:08','2024-03-01 14:40:08',NULL),(4330,3,NULL,'company','active',NULL,NULL,'2024-03-06 10:37:46','2024-03-06 10:37:46',NULL),(4331,3,NULL,'company_pf','active',NULL,NULL,'2024-03-06 10:37:46','2024-03-06 10:37:46',NULL),(4332,5,NULL,'company','active',NULL,NULL,'2024-09-21 15:57:11','2024-09-21 15:57:11',NULL),(4333,5,NULL,'company_pf','active',NULL,NULL,'2024-09-21 15:57:11','2024-09-21 15:57:11',NULL),(4334,9,'66894','company','active',NULL,NULL,'2024-12-10 18:19:57','2024-12-10 18:19:57',NULL),(4335,9,'7654321','company_pf','active',NULL,NULL,'2024-12-10 18:19:57','2024-12-10 18:19:57',NULL);

--
-- Table structure for table `configurations`
--

CREATE TABLE `configurations` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `type` varchar(100) NOT NULL,
  `type_id` int unsigned NOT NULL,
  `config_key` varchar(100) NOT NULL,
  `config_value` varchar(100) DEFAULT NULL,
  `created_by` int DEFAULT NULL,
  `updated_by` int DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `type` (`type`),
  KEY `type_id` (`type_id`),
  KEY `config_key` (`config_key`)
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `configurations`
--

INSERT INTO `configurations` VALUES (1,'employee',12543,'standred_working_hour',NULL,2,2,'2025-06-09 07:46:14','2025-06-09 07:46:59',NULL),(2,'employee',12543,'is_auto_inactive','0',2,2,'2025-06-09 07:46:14','2025-06-09 07:46:59',NULL),(3,'employee',12543,'is_double_duty','0',2,2,'2025-06-09 07:46:14','2025-06-09 07:46:59',NULL),(4,'employee',12543,'is_auto_shift',NULL,2,2,'2025-06-09 07:46:14','2025-06-09 07:46:59',NULL),(5,'employee',12543,'in_buffer',NULL,2,2,'2025-06-09 07:46:14','2025-06-09 07:46:59',NULL),(6,'employee',12543,'out_buffer',NULL,2,2,'2025-06-09 07:46:14','2025-06-09 07:46:59',NULL),(7,'employee',12405,'standred_working_hour',NULL,2,2,'2025-06-09 23:45:20','2025-06-09 23:51:29',NULL),(8,'employee',12405,'is_auto_inactive','0',2,2,'2025-06-09 23:45:20','2025-06-09 23:51:29',NULL),(9,'employee',12405,'is_double_duty','0',2,2,'2025-06-09 23:45:20','2025-06-09 23:51:29',NULL),(10,'employee',12405,'is_auto_shift',NULL,2,2,'2025-06-09 23:45:20','2025-06-09 23:51:29',NULL),(11,'employee',12405,'in_buffer',NULL,2,2,'2025-06-09 23:45:20','2025-06-09 23:51:29',NULL),(12,'employee',12405,'out_buffer',NULL,2,2,'2025-06-09 23:45:20','2025-06-09 23:51:29',NULL);

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

CREATE TABLE `countries` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(199) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `code` varchar(199) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `dial_code` varchar(199) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `status` enum('active','inactive') CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'active',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `currency_code` varchar(4) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=247 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

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

--
-- Table structure for table `cron_history`
--

CREATE TABLE `cron_history` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `cron_id` int unsigned NOT NULL,
  `started_at` datetime DEFAULT NULL,
  `stopped_at` datetime DEFAULT NULL,
  `status` varchar(199) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `remark` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `record_count` int NOT NULL DEFAULT '0',
  `record_updated` int NOT NULL DEFAULT '0',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `cron_history_cron_id_foreign` (`cron_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `cron_history`
--


--
-- Table structure for table `crons`
--

CREATE TABLE `crons` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(199) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `description` varchar(499) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `signature` varchar(199) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `cron_frequency` varchar(199) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `frequency_timing` varchar(199) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `data_update` varchar(199) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `variables` varchar(199) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `status` varchar(199) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `max_skip` int DEFAULT '5',
  `skip_count` int DEFAULT '0',
  `reporting_persons` varchar(599) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `oracle_db` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `synced_at` datetime DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `crons`
--

INSERT INTO `crons` VALUES (1,'True Source Attendance Push Script','True Source Attendance Push Script','command:push-ts-attendance',NULL,NULL,NULL,NULL,'idle',5,0,NULL,NULL,NULL,'2023-04-12 21:20:48',NULL,'2023-03-13 07:35:19'),(2,'Attendance summary generate','Attendance summary generate','command:generate-attendance-summary',NULL,NULL,NULL,NULL,'idle',5,0,NULL,NULL,NULL,'2025-03-03 16:38:07',NULL,'2023-03-13 07:35:19'),(3,'Holiday Summary','Holiday Summary','generate:holiday-attendance-summary',NULL,NULL,NULL,NULL,'idle',5,0,NULL,NULL,NULL,'2023-04-12 18:30:55',NULL,'2023-03-13 07:35:19'),(4,'Regularize attendance','Regularize attendance','generate:regularize-attendance-summary',NULL,NULL,NULL,NULL,'idle',5,0,NULL,NULL,NULL,'2023-04-12 18:30:55',NULL,'2023-03-13 07:35:19'),(5,'Daily Attendance Report','Send Daily Attendance Report By Mail','command:team-attendance-report',NULL,NULL,NULL,NULL,'idle',5,0,NULL,NULL,NULL,'2023-05-15 15:32:46',NULL,'2023-03-13 07:35:19'),(6,'Leave Monthly','Leave Monthly','leave:credit-monthly',NULL,NULL,NULL,NULL,'idle',5,0,NULL,NULL,'2023-06-10 14:31:24',NULL,NULL,NULL),(7,'Leave Monthly','Leave Yearly','leave:credit-yearly',NULL,NULL,NULL,NULL,'idle',5,0,NULL,NULL,'2023-06-10 14:31:24',NULL,NULL,NULL),(8,'Device Report','Device Report','command:device-status-report',NULL,NULL,NULL,NULL,'idle',5,0,NULL,NULL,'2023-06-10 14:31:24',NULL,NULL,NULL),(9,'Device Data Sync','Device Data Sync','command:device-data-sync',NULL,NULL,NULL,NULL,'idle',5,0,NULL,NULL,'2023-06-10 14:31:24',NULL,NULL,NULL),(10,'UAF Attendance Push Script','UAF Attendance Push Script','command:push-uaf-attendance',NULL,NULL,NULL,NULL,NULL,5,0,NULL,NULL,NULL,NULL,NULL,'2023-03-13 07:35:19');

--
-- Table structure for table `currency`
--

CREATE TABLE `currency` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(199) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `short_name` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `symbol` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `exchange_rate` decimal(15,6) DEFAULT NULL,
  `status` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT 'active',
  `country_id` int unsigned DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `currency`
--

INSERT INTO `currency` VALUES (1,'Indian Rupee','INR','₹',NULL,'active',NULL,NULL,NULL,NULL),(2,'US Dollar','USD','$',NULL,'active',NULL,NULL,NULL,NULL),(3,'Euro','EUR','€',NULL,'active',NULL,NULL,NULL,NULL),(4,'British Pound','GBP','£',NULL,'active',NULL,NULL,NULL,NULL),(5,'Japanese Yen','GPY','¥',NULL,'active',NULL,NULL,NULL,NULL);

--
-- Table structure for table `customer_addresses`
--

CREATE TABLE `customer_addresses` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `organization_id` int unsigned NOT NULL,
  `customer_id` int unsigned NOT NULL,
  `name` varchar(199) NOT NULL,
  `mobile` varchar(15) DEFAULT NULL,
  `email` varchar(199) DEFAULT NULL,
  `line_1` varchar(191) DEFAULT NULL,
  `line_2` varchar(191) DEFAULT NULL,
  `line_3` varchar(191) DEFAULT NULL,
  `landmark` varchar(191) DEFAULT NULL,
  `geo_address` varchar(191) DEFAULT NULL,
  `geo_latitude` varchar(191) DEFAULT NULL,
  `geo_longitude` varchar(191) DEFAULT NULL,
  `district` varchar(191) DEFAULT NULL,
  `country_id` int unsigned DEFAULT NULL,
  `state_id` int unsigned DEFAULT NULL,
  `city_id` int unsigned DEFAULT NULL,
  `postal_code` varchar(191) DEFAULT NULL,
  `type` enum('primary','alternate','billing','default','shipping','work','home','mailing','permanent','temporary','child_shipping') DEFAULT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `deleted_at` datetime DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `customer_addresses`
--


--
-- Table structure for table `customer_attachments`
--

CREATE TABLE `customer_attachments` (
  `id` int NOT NULL AUTO_INCREMENT,
  `organization_id` int DEFAULT NULL,
  `customer_documents_id` int DEFAULT NULL,
  `attachment_url` text,
  `status` varchar(99) NOT NULL DEFAULT 'active',
  `created_by` int unsigned DEFAULT NULL,
  `updated_by` int unsigned DEFAULT NULL,
  `deleted_by` int unsigned DEFAULT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `deleted_at` datetime DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `customer_attachments_id` (`id`),
  KEY `customer_documents_id` (`customer_documents_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `customer_attachments`
--


--
-- Table structure for table `customer_contacts`
--

CREATE TABLE `customer_contacts` (
  `id` int NOT NULL AUTO_INCREMENT,
  `organization_id` int NOT NULL,
  `customer_id` int NOT NULL,
  `type` varchar(199) DEFAULT NULL,
  `name` varchar(199) NOT NULL,
  `email` varchar(199) DEFAULT NULL,
  `designation` varchar(299) DEFAULT NULL,
  `designation_id` int DEFAULT NULL,
  `department_id` int DEFAULT NULL,
  `mobile` varchar(20) DEFAULT NULL,
  `is_default` tinyint DEFAULT '0',
  `created_by` int DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_by` int DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `designation_id` (`designation_id`),
  KEY `department_id` (`department_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `customer_contacts`
--


--
-- Table structure for table `customer_industries`
--

CREATE TABLE `customer_industries` (
  `id` bigint NOT NULL AUTO_INCREMENT,
  `organization_id` int DEFAULT NULL,
  `name` varchar(199) DEFAULT NULL,
  `status` varchar(99) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `customer_industries`
--


--
-- Table structure for table `customer_notes`
--

CREATE TABLE `customer_notes` (
  `id` int NOT NULL AUTO_INCREMENT,
  `organization_id` int NOT NULL,
  `customer_id` int NOT NULL,
  `note` text NOT NULL,
  `created_by_type` enum('admin','employee') DEFAULT NULL,
  `updated_by_type` enum('admin','employee') DEFAULT NULL,
  `created_by` int DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_by` int DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `customer_notes`
--


--
-- Table structure for table `customer_types`
--

CREATE TABLE `customer_types` (
  `id` bigint NOT NULL AUTO_INCREMENT,
  `organization_id` int DEFAULT NULL,
  `name` varchar(199) DEFAULT NULL,
  `status` varchar(99) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `organization_id` (`organization_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `customer_types`
--


--
-- Table structure for table `customers`
--

CREATE TABLE `customers` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `parent_id` int DEFAULT NULL,
  `type` varchar(291) DEFAULT NULL,
  `organization_id` int unsigned NOT NULL,
  `customer_type_id` bigint DEFAULT NULL,
  `customer_industry_id` bigint DEFAULT NULL,
  `customer_category_id` bigint DEFAULT NULL,
  `channel_partner_group_id` int DEFAULT NULL,
  `name` varchar(199) NOT NULL,
  `alias` varchar(99) DEFAULT NULL,
  `customer_code` varchar(199) DEFAULT NULL,
  `email` varchar(199) DEFAULT NULL,
  `mobile` varchar(15) DEFAULT NULL,
  `alternate_mobile` varchar(199) DEFAULT NULL,
  `led_name` varchar(199) DEFAULT NULL,
  `dial_code` varchar(10) DEFAULT NULL,
  `country_id` int DEFAULT NULL,
  `state_id` int DEFAULT NULL,
  `city_id` int DEFAULT NULL,
  `pincode` varchar(100) DEFAULT NULL,
  `company_name` varchar(199) DEFAULT NULL,
  `company_address` text,
  `is_head_office` varchar(12) DEFAULT NULL,
  `geo_address` varchar(599) DEFAULT NULL,
  `geo_latitude` varchar(100) DEFAULT NULL,
  `geo_longitude` varchar(100) DEFAULT NULL,
  `radius_in_meter` varchar(100) DEFAULT NULL,
  `is_sms_active` tinyint DEFAULT '0',
  `sms_mobile_number_1` varchar(199) DEFAULT NULL,
  `sms_mobile_number_2` varchar(199) DEFAULT NULL,
  `whatsapp_number` varchar(199) DEFAULT NULL,
  `address` longtext,
  `meta_tags` longtext,
  `visit_date` timestamp NULL DEFAULT NULL,
  `status` enum('active','inactive','pending') DEFAULT 'active',
  `created_by_type` enum('admin','employee') DEFAULT NULL,
  `created_by` int DEFAULT NULL,
  `updated_by` int DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `employee_id` bigint unsigned DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `customer_type_id` (`customer_type_id`),
  KEY `customer_industry_id` (`customer_industry_id`),
  KEY `customer_category_id` (`customer_category_id`),
  KEY `channel_partner_group_id` (`channel_partner_group_id`),
  KEY `parent_id` (`parent_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `customers`
--


--
-- Table structure for table `data_logs`
--

CREATE TABLE `data_logs` (
  `prev_record` text,
  `new_record` text,
  `auditable_id` bigint unsigned DEFAULT NULL,
  `auditable_type` varchar(255) DEFAULT NULL,
  `organization` varchar(100) DEFAULT NULL,
  `module` varchar(100) DEFAULT NULL,
  `user_id` bigint unsigned DEFAULT NULL,
  `user_name` varchar(300) DEFAULT NULL,
  `user_type` varchar(100) DEFAULT NULL,
  `source` varchar(200) DEFAULT NULL,
  `transaction_type` text,
  `device_details` text,
  `method` varchar(100) DEFAULT NULL,
  `db_name` varchar(100) DEFAULT NULL,
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  KEY `auditable_id` (`auditable_id`),
  KEY `auditable_type` (`auditable_type`),
  KEY `user_id` (`user_id`),
  KEY `db_name` (`db_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `data_logs`
--


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

CREATE TABLE `departments` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `organization_id` int unsigned NOT NULL,
  `status` enum('active','inactive') CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'inactive',
  `name` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `created_by` int NOT NULL,
  `updated_by` int NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `departments_organization_id_foreign` (`organization_id`)
) ENGINE=InnoDB AUTO_INCREMENT=113 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

INSERT INTO `departments` VALUES (80,5,'active','incharge Engg GAD Project',77,77,'2024-09-21 14:11:54','2024-11-26 12:29:10',NULL),(81,5,'active','Incharge legal Recovery Loan',77,77,'2024-09-21 14:12:26','2024-11-26 12:30:19',NULL),(91,5,'active','Incharge Finance',77,77,'2024-11-26 12:30:42','2024-11-26 12:30:42',NULL),(92,5,'active','Loan Recovery',77,77,'2024-11-26 12:30:56','2024-11-26 12:30:56',NULL),(93,5,'active','Finance',77,77,'2024-11-26 12:31:19','2024-11-26 12:31:19',NULL),(94,5,'active','Legal and Recovery',77,77,'2024-11-26 12:31:40','2024-11-26 12:31:40',NULL),(95,5,'active','Engg',77,77,'2024-11-26 12:31:55','2024-11-26 12:31:55',NULL),(96,5,'active','GAD CA Project IT',77,77,'2024-11-26 12:32:15','2024-11-26 12:33:55',NULL),(97,5,'active','Recovery',77,77,'2024-11-26 12:32:32','2024-11-26 12:32:32',NULL),(98,5,'active','Finance Project',77,77,'2024-11-26 12:33:03','2024-11-26 12:33:03',NULL),(99,5,'active','GAD',77,77,'2024-11-26 12:33:17','2024-11-26 12:33:17',NULL),(100,5,'active','Recovery CA',77,77,'2024-11-26 12:33:37','2024-11-26 12:33:37',NULL),(101,5,'active','GDA Project',77,84,'2024-11-26 12:34:13','2025-02-26 23:44:39',NULL),(102,5,'active','Poen',77,77,'2024-11-26 12:35:25','2024-11-26 12:35:25',NULL),(103,5,'active','Driver',77,77,'2024-11-26 12:35:35','2024-11-26 12:35:35',NULL),(104,5,'active','Legal and Recovery Loan',77,77,'2024-11-26 12:38:49','2024-11-26 12:38:49',NULL),(105,5,'active','Managing Director',77,77,'2024-11-27 11:31:16','2024-11-27 11:31:16',NULL),(106,5,'active','OA',77,77,'2024-11-27 14:53:20','2024-11-27 14:53:20',NULL),(112,5,'inactive','TEST Deprtment',84,84,'2025-02-26 23:45:00','2025-02-27 00:37:37',NULL);

--
-- Table structure for table `designations`
--

CREATE TABLE `designations` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `organization_id` int unsigned NOT NULL,
  `department_id` int unsigned DEFAULT NULL,
  `name` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `status` enum('active','inactive') CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'active',
  `created_by` int unsigned DEFAULT NULL,
  `updated_by` int unsigned DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `designations_organization_id_foreign` (`organization_id`),
  KEY `designations_created_by_foreign` (`created_by`),
  KEY `designations_updated_by_foreign` (`updated_by`),
  KEY `designations_department_id_index` (`department_id`)
) ENGINE=InnoDB AUTO_INCREMENT=344 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `designations`
--

INSERT INTO `designations` VALUES (1,1,NULL,'ACCOUNTANT - CONSUMER DELIGHT','active',67,67,'2023-12-21 13:48:05','2023-12-21 13:48:05',NULL),(2,1,NULL,'ACCOUNTANT - DEALER DELIGHT','active',67,67,'2023-12-21 13:48:14','2023-12-21 13:48:14',NULL),(3,1,NULL,'AREA BUSINESS MANAGER','active',67,67,'2023-12-21 13:48:23','2023-12-21 13:48:23',NULL),(4,1,NULL,'ASSISTANT - STORES','active',67,67,'2023-12-21 13:48:30','2023-12-21 13:48:30',NULL),(5,1,NULL,'ASSISTANT GENERAL MANAGER - MAINTENANCE','active',67,67,'2023-12-21 13:48:41','2023-12-21 13:48:41',NULL),(6,1,NULL,'ASSISTANT GENERAL MANAGER - MANUFACTURING','active',67,67,'2023-12-21 13:48:48','2023-12-21 13:48:48',NULL),(7,1,NULL,'ASSISTANT GENERAL MANAGER - MARKET INTELLIGENCE','active',67,67,'2023-12-21 13:48:57','2023-12-21 13:48:57',NULL),(8,1,NULL,'ASSISTANT MANAGER','active',67,67,'2023-12-21 13:49:04','2023-12-21 13:49:04',NULL),(9,1,NULL,'ASSISTANT MANAGER  - IT','active',67,67,'2023-12-21 13:49:13','2023-12-21 13:49:13',NULL),(10,1,NULL,'ASSISTANT MANAGER  - MAINTENANCE','active',67,67,'2023-12-21 13:49:20','2023-12-21 13:49:20',NULL),(11,1,NULL,'ASSISTANT MANAGER - ACCOUNTS','active',67,67,'2023-12-21 13:50:09','2023-12-21 13:50:09',NULL),(12,1,NULL,'ASSISTANT MANAGER - CUTTING & FABRICATION','active',67,67,'2023-12-21 13:50:17','2023-12-21 13:50:17',NULL),(13,1,NULL,'ASSISTANT MANAGER - DISPATCH','active',67,67,'2023-12-21 13:50:26','2023-12-21 13:50:26',NULL),(14,1,NULL,'ASSISTANT MANAGER - FACTORY ACCOUNTS','active',67,67,'2023-12-21 13:50:34','2023-12-21 13:50:34',NULL),(15,1,NULL,'ASSISTANT MANAGER - FINANCE & ACCOUNTS','active',67,67,'2023-12-21 13:51:21','2023-12-21 13:51:21',NULL),(16,1,NULL,'ASSISTANT MANAGER - HR & ADMIN','active',67,67,'2023-12-21 13:51:30','2023-12-21 13:51:30',NULL),(17,1,NULL,'ASSISTANT MANAGER - HR & IR','active',67,67,'2023-12-21 13:51:36','2023-12-21 13:51:36',NULL),(18,1,NULL,'ASSISTANT MANAGER - I & S','active',67,67,'2023-12-21 13:51:49','2023-12-21 13:51:49',NULL),(19,1,NULL,'ASSISTANT MANAGER - IR & ADMN.','active',67,67,'2023-12-21 13:51:57','2023-12-21 13:51:57',NULL),(20,1,NULL,'ASSISTANT MANAGER - IT','active',67,67,'2023-12-21 13:52:06','2023-12-21 13:52:06',NULL),(21,1,NULL,'ASSISTANT MANAGER - MAINTENANCE','active',67,67,'2023-12-21 13:52:14','2023-12-21 13:52:14',NULL),(22,1,NULL,'ASSISTANT MANAGER - PRODUCTION','active',67,67,'2023-12-21 13:52:21','2023-12-21 13:52:21',NULL),(23,1,NULL,'ASSISTANT MANAGER - PRODUCTION & DESIGN','active',67,67,'2023-12-21 13:52:29','2023-12-21 13:52:29',NULL),(24,1,NULL,'ASSISTANT MANAGER - QUALITY ASSURANCE','active',67,67,'2023-12-21 13:52:36','2023-12-21 13:52:36',NULL),(25,1,NULL,'ASSISTANT MANAGER - RETAIL BUSINESS DEVELOPMENT','active',67,67,'2023-12-21 13:52:44','2023-12-21 13:52:44',NULL),(26,1,NULL,'ASSISTANT MANAGER - STORES','active',67,67,'2023-12-21 13:52:50','2023-12-21 13:52:50',NULL),(27,1,NULL,'ASSISTANT MANAGER - TAXATION','active',67,67,'2023-12-21 13:52:58','2023-12-21 13:52:58',NULL),(28,1,NULL,'ASSISTANT MANAGER-FABRICATION','active',67,67,'2023-12-21 13:53:06','2023-12-21 13:53:06',NULL),(29,1,NULL,'ASSISTANT MANAGER-PRODUCTION','active',67,67,'2023-12-21 13:53:14','2023-12-21 13:53:14',NULL),(30,1,NULL,'ASSISTANT MANAGER-STORES','active',67,67,'2023-12-21 13:53:21','2023-12-21 13:53:21',NULL),(31,1,NULL,'ASSOCIATE COMPANY SECRETARY','active',67,67,'2023-12-21 13:53:29','2023-12-21 13:53:29',NULL),(32,1,NULL,'BRAND MANAGER','active',67,67,'2023-12-21 13:53:37','2023-12-21 13:53:37',NULL),(33,1,NULL,'BUSINESS DEVELOPMENT EXECUTIVE','active',67,67,'2023-12-21 13:53:46','2023-12-21 13:53:46',NULL),(34,1,NULL,'CHIEF BRAND OFFICER','active',67,67,'2023-12-21 13:54:00','2023-12-21 13:54:00',NULL),(35,1,NULL,'CHIEF FINANCIAL OFFICER','active',67,67,'2023-12-21 13:54:07','2023-12-21 13:54:07',NULL),(36,1,NULL,'CHIEF INFORMATION OFFICER','active',67,67,'2023-12-21 13:54:16','2023-12-21 13:54:16',NULL),(37,1,NULL,'CHIEF PRODUCT OFFICER','active',67,67,'2023-12-21 13:54:26','2023-12-21 13:54:26',NULL),(38,1,NULL,'COMPANY SECRETARY','active',67,67,'2023-12-21 13:54:34','2023-12-21 13:54:34',NULL),(39,1,NULL,'CONSULTANT','active',67,67,'2023-12-21 13:54:42','2023-12-21 13:54:42',NULL),(40,1,NULL,'CONSULTANT - PRODUCT DEVELOPMENT','active',67,67,'2023-12-21 13:54:49','2023-12-21 13:54:49',NULL),(41,1,NULL,'CUSTOMER SERVICE EXECUTIVE','active',67,67,'2023-12-21 13:54:55','2023-12-21 13:54:55',NULL),(42,1,NULL,'DATA ANALYST','active',67,67,'2023-12-21 13:55:03','2023-12-21 13:55:03',NULL),(43,1,NULL,'DEPUTY FACTORY MANAGER','active',67,67,'2023-12-21 13:55:12','2023-12-21 13:55:12',NULL),(44,1,NULL,'DEPUTY MANAGER - CORPORATE FINANCE','active',67,67,'2023-12-21 13:55:20','2023-12-21 13:55:20',NULL),(45,1,NULL,'DEPUTY MANAGER - FINANCE & ACCOUNTS','active',67,67,'2023-12-21 13:55:28','2023-12-21 13:55:28',NULL),(46,1,NULL,'DEPUTY MANAGER - HR & ADMIN','active',67,67,'2023-12-21 13:55:40','2023-12-21 13:55:40',NULL),(47,1,NULL,'DEPUTY MANAGER - MAINTENANCE','active',67,67,'2023-12-21 13:55:47','2023-12-21 13:55:47',NULL),(48,1,NULL,'DEPUTY MANAGER - MATERIALS','active',67,67,'2023-12-21 13:55:56','2023-12-21 13:55:56',NULL),(49,1,NULL,'DEPUTY MANAGER - PRODUCTION','active',67,67,'2023-12-21 13:56:03','2023-12-21 13:56:03',NULL),(50,1,NULL,'DEPUTY MANAGER - PRODUCTION EPE','active',67,67,'2023-12-21 13:56:10','2023-12-21 13:56:10',NULL),(51,1,NULL,'DEPUTY MANAGER - PURCHASE','active',67,67,'2023-12-21 13:56:17','2023-12-21 13:56:17',NULL),(52,1,NULL,'DEPUTY MANAGER - QUALITY ASSURANCE','active',67,67,'2023-12-21 13:56:25','2023-12-21 13:56:25',NULL),(53,1,NULL,'DEPUTY MANAGER - RETAIL BUSINESS DEVELOPMENT','active',67,67,'2023-12-21 13:56:34','2023-12-21 13:56:34',NULL),(54,1,NULL,'DEPUTY MANAGER - WORKS','active',67,67,'2023-12-21 13:56:43','2023-12-21 13:56:43',NULL),(55,1,NULL,'ENGINEER - MAINTENANCE','active',67,67,'2023-12-21 13:56:54','2023-12-21 13:56:54',NULL),(56,1,NULL,'ENGINEER - PRODUCT DEVELOPMENT','active',67,67,'2023-12-21 13:57:03','2023-12-21 13:57:03',NULL),(57,1,NULL,'ENGINEER - PRODUCTION','active',67,67,'2023-12-21 13:57:10','2023-12-21 13:57:10',NULL),(58,1,NULL,'ENGINEER - PRODUCTION EPE','active',67,67,'2023-12-21 13:57:19','2023-12-21 13:57:19',NULL),(59,1,NULL,'ENGINEER - PRODUCTION FOAM','active',67,67,'2023-12-21 13:57:26','2023-12-21 13:57:26',NULL),(60,1,NULL,'ENGINEER - PRODUCTION PAD CUTTING','active',67,67,'2023-12-21 13:57:33','2023-12-21 13:57:33',NULL),(61,1,NULL,'ENGINEER - PRODUCTION RC','active',67,67,'2023-12-21 13:57:40','2023-12-21 13:57:40',NULL),(62,1,NULL,'ENGINEER - PRODUCTION RC PLANT','active',67,67,'2023-12-21 13:57:49','2023-12-21 13:57:49',NULL),(63,1,NULL,'ENGINEER - PRODUCTION STR8','active',67,67,'2023-12-21 13:57:55','2023-12-21 13:57:55',NULL),(64,1,NULL,'ENGINEER - QUALITY ASSURANCE','active',67,67,'2023-12-21 13:58:24','2023-12-21 13:58:24',NULL),(65,1,NULL,'EXECUTIVE -  PRODUCTION','active',67,67,'2023-12-21 13:58:33','2023-12-21 13:58:33',NULL),(66,1,NULL,'EXECUTIVE - CDT','active',67,67,'2023-12-21 13:58:41','2023-12-21 13:58:41',NULL),(67,1,NULL,'EXECUTIVE - CUSTOMER DELIGHT','active',67,67,'2023-12-21 13:58:49','2023-12-21 13:58:49',NULL),(68,1,NULL,'EXECUTIVE - CUSTOMER SERVICE','active',67,67,'2023-12-21 13:58:58','2023-12-21 13:58:58',NULL),(69,1,NULL,'EXECUTIVE - DISPATCH','active',67,67,'2023-12-21 13:59:05','2023-12-21 13:59:05',NULL),(70,1,NULL,'EXECUTIVE - FACTORY ACCOUNTS','active',67,67,'2023-12-21 13:59:14','2023-12-21 13:59:14',NULL),(71,1,NULL,'EXECUTIVE - GRAPHIC DESIGNER','active',67,67,'2023-12-21 13:59:21','2023-12-21 13:59:21',NULL),(72,1,NULL,'EXECUTIVE - HR & ADMIN','active',67,67,'2023-12-21 13:59:29','2023-12-21 13:59:29',NULL),(73,1,NULL,'EXECUTIVE - HR & IR','active',67,67,'2023-12-21 13:59:39','2023-12-21 13:59:39',NULL),(74,1,NULL,'EXECUTIVE - MAINTENANCE','active',67,67,'2023-12-21 13:59:47','2023-12-21 13:59:47',NULL),(75,1,NULL,'EXECUTIVE - PPC','active',67,67,'2023-12-21 13:59:55','2023-12-21 13:59:55',NULL),(76,1,NULL,'EXECUTIVE - PRODUCTION','active',67,67,'2023-12-21 14:00:04','2023-12-21 14:00:04',NULL),(77,1,NULL,'EXECUTIVE - PRODUCTION RC PLANT','active',67,67,'2023-12-21 14:00:13','2023-12-21 14:00:13',NULL),(78,1,NULL,'EXECUTIVE - PRODUCTION -SOFA','active',67,67,'2023-12-21 14:00:19','2023-12-21 14:00:19',NULL),(79,1,NULL,'EXECUTIVE - QUALITY ASSURANCE','active',67,67,'2023-12-21 14:00:27','2023-12-21 14:00:27',NULL),(80,1,NULL,'EXECUTIVE - QUALITY CONTROL','active',67,67,'2023-12-21 14:00:35','2023-12-21 14:00:35',NULL),(81,1,NULL,'EXECUTIVE - RESEARCH & DEVELOPMENT','active',67,67,'2023-12-21 14:00:42','2023-12-21 14:00:42',NULL),(82,1,NULL,'EXECUTIVE - RETAIL DESIGN','active',67,67,'2023-12-21 14:00:52','2023-12-21 14:00:52',NULL),(83,1,NULL,'EXECUTIVE - STORES','active',67,67,'2023-12-21 14:01:03','2023-12-21 14:01:03',NULL),(84,1,NULL,'EXECUTIVE- PRODUCTION','active',67,67,'2023-12-21 14:01:17','2023-12-21 14:01:17',NULL),(85,1,NULL,'FABRICATOR','active',67,67,'2023-12-21 14:01:26','2023-12-21 14:01:26',NULL),(86,1,NULL,'FACTORY MANAGER','active',67,67,'2023-12-21 14:01:34','2023-12-21 14:01:34',NULL),(87,1,NULL,'FIREMAN','active',67,67,'2023-12-21 14:01:44','2023-12-21 14:01:44',NULL),(88,1,NULL,'GARDNER','active',67,67,'2023-12-21 14:01:54','2023-12-21 14:01:54',NULL),(89,1,NULL,'GENERAL MANAGER - MANUFACTURING','active',67,67,'2023-12-21 14:02:05','2023-12-21 14:02:05',NULL),(90,1,NULL,'GENERAL MANAGER-PRODUCT DEVELOPMENT-MATTRESSES','active',67,67,'2023-12-21 14:03:08','2023-12-21 14:03:08',NULL),(91,1,NULL,'HEAD - ACCOUNTS','active',67,67,'2023-12-21 14:03:25','2023-12-21 14:03:25',NULL),(92,1,NULL,'HEAD - EHS','active',67,67,'2023-12-21 14:03:32','2023-12-21 14:03:32',NULL),(93,1,NULL,'HEAD - EMERGING MARKETS','active',67,67,'2023-12-21 14:03:40','2023-12-21 14:03:40',NULL),(94,1,NULL,'HEAD - INTERNATIONAL BRANDS','active',67,67,'2023-12-21 14:03:52','2023-12-21 14:03:52',NULL),(95,1,NULL,'HEAD - PROJECTS','active',67,67,'2023-12-21 14:04:00','2023-12-21 14:04:00',NULL),(96,1,NULL,'HEAD - QUALITY','active',67,67,'2023-12-21 14:04:09','2023-12-21 14:04:09',NULL),(97,1,NULL,'HEAD - R & D','active',67,67,'2023-12-21 14:04:37','2023-12-21 14:04:37',NULL),(98,1,NULL,'JUNIOR ASSISTANT - EDP','active',67,67,'2023-12-21 14:04:51','2023-12-21 14:04:51',NULL),(99,1,NULL,'JUNIOR CONSULTANT - PRODUCTION','active',67,67,'2023-12-21 14:04:59','2023-12-21 14:04:59',NULL),(100,1,NULL,'JUNIOR PROGRAMMER','active',67,67,'2023-12-21 14:05:10','2023-12-21 14:05:10',NULL),(101,1,NULL,'JUNIOR SOFTWARE TESTER','active',67,67,'2023-12-21 14:05:20','2023-12-21 14:05:20',NULL),(102,1,NULL,'KEY ACCOUNT EXECUTIVE','active',67,67,'2023-12-21 14:05:27','2023-12-21 14:05:27',NULL),(103,1,NULL,'KEY ACCOUNTS EXECUTIVE - INSTITUTIONAL BUSINESS','active',67,67,'2023-12-21 14:05:53','2023-12-21 14:05:53',NULL),(104,1,NULL,'KEY ACCOUNTS EXECUTIVE - INSTITUTIONAL SALES','active',67,67,'2023-12-21 14:06:49','2023-12-21 14:06:49',NULL),(105,1,NULL,'KEY ACCOUNTS EXECUTIVE - MODERN TRADE','active',67,67,'2023-12-21 14:06:56','2023-12-21 14:06:56',NULL),(106,1,NULL,'KEY ACCOUNTS EXECUTIVE - MT','active',67,67,'2023-12-21 14:07:04','2023-12-21 14:07:04',NULL),(107,1,NULL,'KEY ACCOUNTS MANAGER','active',67,67,'2023-12-21 14:07:11','2023-12-21 14:07:11',NULL),(108,1,NULL,'KEY ACCOUNTS MANAGER - CSD','active',67,67,'2023-12-21 14:07:21','2023-12-21 14:07:21',NULL),(109,1,NULL,'KEY ACCOUNTS MANAGER - INSTITUTIONAL BUSINESS','active',67,67,'2023-12-21 14:07:48','2023-12-21 14:07:48',NULL),(110,1,NULL,'KEY ACCOUNTS MANAGER - MODERN TRADE','active',67,67,'2023-12-21 14:07:55','2023-12-21 14:07:55',NULL),(111,1,NULL,'KEY ACCOUNTS MANAGER - MODERN TRADE & CANTEEN STORE DEPARTMENT','active',67,67,'2023-12-21 14:08:02','2023-12-21 14:08:02',NULL),(112,1,NULL,'KEY ACCOUNTS MANAGER - NORTH','active',67,67,'2023-12-21 14:08:10','2023-12-21 14:08:10',NULL),(113,1,NULL,'KEY ACCOUNTS MANAGER - TECHNICAL FOAM - WEST','active',67,67,'2023-12-21 14:08:25','2023-12-21 14:08:25',NULL),(114,1,NULL,'KEY ACCOUNTS MANAGER - WEST','active',67,67,'2023-12-21 14:08:33','2023-12-21 14:08:33',NULL),(115,1,NULL,'LEAD - DEALER DELIGHT (SRT SUPPORT)','active',67,67,'2023-12-21 14:08:40','2023-12-21 14:08:40',NULL),(116,1,NULL,'LEAD - PARTNER PROGRAM','active',67,67,'2023-12-21 14:08:47','2023-12-21 14:08:47',NULL),(117,1,NULL,'MANAGEMENT TRAINEE','active',67,67,'2023-12-21 14:08:54','2023-12-21 14:08:54',NULL),(118,1,NULL,'MANAGER - ACCOUNTS','active',67,67,'2023-12-21 14:09:07','2023-12-21 14:09:07',NULL),(119,1,NULL,'MANAGER - BRAND EXPERIENCE','active',67,67,'2023-12-21 14:09:28','2023-12-21 14:09:28',NULL),(120,1,NULL,'MANAGER - BUSINESS DEVELOPMENT','active',67,67,'2023-12-21 14:09:43','2023-12-21 14:09:43',NULL),(121,1,NULL,'MANAGER - FINANCE & ACCOUNTS','active',67,67,'2023-12-21 14:10:10','2023-12-21 14:10:10',NULL),(122,1,NULL,'MANAGER - FOAM & STR8','active',67,67,'2023-12-21 14:10:20','2023-12-21 14:10:20',NULL),(123,1,NULL,'MANAGER - HR & IR','active',67,67,'2023-12-21 14:10:31','2023-12-21 14:10:31',NULL),(124,1,NULL,'MANAGER - IT','active',67,67,'2023-12-21 14:10:40','2023-12-21 14:10:40',NULL),(125,1,NULL,'MANAGER - PRODUCTION','active',67,67,'2023-12-21 14:10:52','2023-12-21 14:10:52',NULL),(126,1,NULL,'MANAGER - PROJECT COORDINATOR','active',67,67,'2023-12-21 14:11:02','2023-12-21 14:11:02',NULL),(127,1,NULL,'MANAGER - PURCHASE','active',67,67,'2023-12-21 14:11:09','2023-12-21 14:11:09',NULL),(128,1,NULL,'MANAGER - STORES','active',67,67,'2023-12-21 14:11:20','2023-12-21 14:11:20',NULL),(129,1,NULL,'NETWORK ENGINEER','active',67,67,'2023-12-21 14:11:27','2023-12-21 14:11:27',NULL),(130,1,NULL,'OFFICE ASSISTANT','active',67,67,'2023-12-21 14:11:35','2023-12-21 14:11:35',NULL),(131,1,NULL,'OFFICER - ACCOUNTS','active',67,67,'2023-12-21 14:11:43','2023-12-21 14:11:43',NULL),(132,1,NULL,'OFFICER - DISPATCH','active',67,67,'2023-12-21 14:11:51','2023-12-21 14:11:51',NULL),(133,1,NULL,'OFFICER - EHS','active',67,67,'2023-12-21 14:12:13','2023-12-21 14:12:13',NULL),(134,1,NULL,'OFFICER - FACTORY ACCOUNTS','active',67,67,'2023-12-21 14:12:21','2023-12-21 14:12:21',NULL),(135,1,NULL,'OFFICER - LEGAL','active',67,67,'2023-12-21 14:12:32','2023-12-21 14:12:32',NULL),(136,1,NULL,'OFFICER - PURCHASE','active',67,67,'2023-12-21 14:12:41','2023-12-21 14:12:41',NULL),(137,1,NULL,'OFFICER - SAFETY','active',67,67,'2023-12-21 14:14:24','2023-12-21 14:14:24',NULL),(138,1,NULL,'OFFICER - STITCHING','active',67,67,'2023-12-21 14:14:34','2023-12-21 14:14:34',NULL),(139,1,NULL,'OFFICER - STORES','active',67,67,'2023-12-21 14:14:42','2023-12-21 14:14:42',NULL),(140,1,NULL,'PURCHASE OFFICER','active',67,67,'2023-12-21 14:14:50','2023-12-21 14:14:50',NULL),(141,1,NULL,'REGIONAL MANAGER','active',67,67,'2023-12-21 14:15:00','2023-12-21 14:15:00',NULL),(142,1,NULL,'REGIONAL RELATIONSHIP MANAGER','active',67,67,'2023-12-21 14:15:17','2023-12-21 14:15:17',NULL),(143,1,NULL,'REGIONAL RELATIONSHIP MANAGER - BH&JHK','active',67,67,'2023-12-21 14:15:27','2023-12-21 14:15:27',NULL),(144,1,NULL,'REGIONAL RELATIONSHIP MANAGER - GUJARAT','active',67,67,'2023-12-21 14:15:37','2023-12-21 14:15:37',NULL),(145,1,NULL,'REGIONAL RELATIONSHIP MANAGER - KTK & GOA','active',67,67,'2023-12-21 14:15:45','2023-12-21 14:15:45',NULL),(146,1,NULL,'REGIONAL RELATIONSHIP MANAGER - MH','active',67,67,'2023-12-21 14:15:53','2023-12-21 14:15:53',NULL),(147,1,NULL,'REGIONAL RELATIONSHIP MANAGER - MP & CG','active',67,67,'2023-12-21 14:16:02','2023-12-21 14:16:02',NULL),(148,1,NULL,'REGIONAL RELATIONSHIP MANAGER - NE','active',67,67,'2023-12-21 14:16:11','2023-12-21 14:16:11',NULL),(149,1,NULL,'REGIONAL RELATIONSHIP MANAGER-KL-TN','active',67,67,'2023-12-21 14:16:31','2023-12-21 14:16:31',NULL),(150,1,NULL,'REGIONAL RELATIONSHIP MANAGER-UP I - RAJ - UP II','active',67,67,'2023-12-21 14:17:03','2023-12-21 14:17:03',NULL),(151,1,NULL,'REGIONAL RELATIONSHIP MANAGER-WB - OD','active',67,67,'2023-12-21 14:17:17','2023-12-21 14:17:17',NULL),(152,1,NULL,'SALES EXECUTIVE','active',67,67,'2023-12-21 14:17:25','2023-12-21 14:17:25',NULL),(153,1,NULL,'SALES HEAD- FOAM BUSINESS','active',67,67,'2023-12-21 14:17:34','2023-12-21 14:17:34',NULL),(154,1,NULL,'SALES HOST','active',67,67,'2023-12-21 14:17:45','2023-12-21 14:17:45',NULL),(155,1,NULL,'SALES HOSTESS','active',67,67,'2023-12-21 14:17:54','2023-12-21 14:17:54',NULL),(156,1,NULL,'SALES PROMOTER','active',67,67,'2023-12-21 14:18:03','2023-12-21 14:18:03',NULL),(157,1,NULL,'SALES PROMOTER - CUSTOMER SERVICES','active',67,67,'2023-12-21 14:18:12','2023-12-21 14:18:12',NULL),(158,1,NULL,'SECURITY & GEN SAFETY INCHARGE','active',67,67,'2023-12-21 14:18:21','2023-12-21 14:18:21',NULL),(159,1,NULL,'SENIOR AREA BUSINESS MANAGER','active',67,67,'2023-12-21 14:18:29','2023-12-21 14:18:29',NULL),(160,1,NULL,'SENIOR ENGINEER','active',67,67,'2023-12-21 14:18:37','2023-12-21 14:18:37',NULL),(161,1,NULL,'SENIOR ENGINEER - MAINTENANCE','active',67,67,'2023-12-21 14:18:50','2023-12-21 14:18:50',NULL),(162,1,NULL,'SENIOR ENGINEER - PRODUCTION','active',67,67,'2023-12-21 14:19:05','2023-12-21 14:19:05',NULL),(163,1,NULL,'SENIOR EXECUTIVE - IT','active',67,67,'2023-12-21 14:19:15','2023-12-21 14:19:15',NULL),(164,1,NULL,'SENIOR EXECUTIVE - MARKETING','active',67,67,'2023-12-21 14:19:25','2023-12-21 14:19:25',NULL),(165,1,NULL,'SENIOR EXECUTIVE - PRODUCTION','active',67,67,'2023-12-21 14:19:38','2023-12-21 14:19:38',NULL),(166,1,NULL,'SENIOR FIREMAN','active',67,67,'2023-12-21 14:19:47','2023-12-21 14:19:47',NULL),(167,1,NULL,'SENIOR MANAGER - FINANCE PROJECTS','active',67,67,'2023-12-21 14:19:57','2023-12-21 14:19:57',NULL),(168,1,NULL,'SENIOR MANAGER - MARKET INTELLIGENCE','active',67,67,'2023-12-21 14:20:07','2023-12-21 14:20:07',NULL),(169,1,NULL,'SENIOR OFFICER - ACCOUNTS','active',67,67,'2023-12-21 14:20:16','2023-12-21 14:20:16',NULL),(170,1,NULL,'SENIOR OFFICER - PURCHASE','active',67,67,'2023-12-21 14:20:23','2023-12-21 14:20:23',NULL),(171,1,NULL,'SENIOR OFFICER ACCOUNTS','active',67,67,'2023-12-21 14:20:32','2023-12-21 14:20:32',NULL),(172,1,NULL,'SENIOR SAFETY OFFICER','active',67,67,'2023-12-21 14:20:41','2023-12-21 14:20:41',NULL),(173,1,NULL,'SENIOR SALES EXECUTIVE','active',67,67,'2023-12-21 14:20:48','2023-12-21 14:20:48',NULL),(174,1,NULL,'SHIFT ENGINEER - PRODUCTION','active',67,67,'2023-12-21 14:20:58','2023-12-21 14:20:58',NULL),(175,1,NULL,'SHIFT SUPERVISOR - PRODUCTION','active',67,67,'2023-12-21 14:21:07','2023-12-21 14:21:07',NULL),(176,1,NULL,'SR. EXECUTIVE - PRODUCTION','active',67,67,'2023-12-21 14:21:16','2023-12-21 14:21:16',NULL),(177,1,NULL,'SR. EXECUTIVE - STORES','active',67,67,'2023-12-21 14:21:25','2023-12-21 14:21:25',NULL),(178,1,NULL,'STORE INCHARGE','active',67,67,'2023-12-21 14:21:33','2023-12-21 14:21:33',NULL),(179,1,NULL,'SUPERINTENDENT - MAINTENANCE','active',67,67,'2023-12-21 14:21:43','2023-12-27 15:34:16',NULL),(180,1,NULL,'SUPERVISOR -  FABRICATION','active',67,67,'2023-12-21 14:21:54','2023-12-21 14:21:54',NULL),(181,1,NULL,'SUPERVISOR - ACCOUNTS','active',67,67,'2023-12-21 14:22:03','2023-12-21 14:22:03',NULL),(182,1,NULL,'SUPERVISOR - CUTTING UNIT','active',67,67,'2023-12-21 14:22:10','2023-12-21 14:22:10',NULL),(183,1,NULL,'SUPERVISOR - FABRICATION','active',67,67,'2023-12-21 14:22:19','2023-12-21 14:22:19',NULL),(184,1,NULL,'SUPERVISOR - MAINTENANCE','active',67,67,'2023-12-21 14:22:26','2023-12-21 14:22:26',NULL),(185,1,NULL,'SUPERVISOR - MATTRESS','active',67,67,'2023-12-21 14:22:33','2023-12-21 14:22:33',NULL),(186,1,NULL,'SUPERVISOR - PACKING UNIT','active',67,67,'2023-12-21 14:22:41','2023-12-21 14:22:41',NULL),(187,1,NULL,'SUPERVISOR - PRODUCTION','active',67,67,'2023-12-21 14:22:50','2023-12-21 14:22:50',NULL),(188,1,NULL,'SUPERVISOR - PRODUCTION RC PLANT','active',67,67,'2023-12-21 14:23:08','2023-12-21 14:23:08',NULL),(189,1,NULL,'SUPERVISOR - STORES','active',67,67,'2023-12-21 14:23:21','2023-12-21 14:23:21',NULL),(190,1,NULL,'SUPERVISOR MAINTENANCE','active',67,67,'2023-12-21 14:23:29','2023-12-21 14:23:29',NULL),(191,1,NULL,'SUPERVISOR -PRODUCTION','active',67,67,'2023-12-21 14:23:39','2023-12-21 14:23:39',NULL),(192,1,NULL,'SUPERVISOR-FABRICATION','active',67,67,'2023-12-21 14:23:51','2023-12-21 14:23:51',NULL),(193,1,NULL,'SUPERVISOR-STORES','active',67,67,'2023-12-21 14:25:03','2023-12-21 14:25:03',NULL),(194,1,NULL,'TAPE EDGE OPERATOR','active',67,67,'2023-12-21 14:30:02','2023-12-21 14:30:02',NULL),(195,1,NULL,'TEAM LEAD - CUSTOMER DELIGHT','active',67,67,'2023-12-21 14:30:21','2023-12-21 14:30:21',NULL),(196,1,NULL,'TEAM LEAD - DEALER DELIGHT','active',67,67,'2023-12-21 14:30:28','2023-12-21 14:30:28',NULL),(197,1,NULL,'TECHNICAL ASSISTANT','active',67,67,'2023-12-21 14:30:40','2023-12-21 14:30:40',NULL),(198,1,NULL,'TECHNICAL ASSISTANT - BOILER','active',67,67,'2023-12-21 14:30:47','2023-12-21 14:30:47',NULL),(199,1,NULL,'TERRITORY MANAGER','active',67,67,'2023-12-21 14:30:54','2023-12-21 14:30:54',NULL),(200,1,NULL,'TRAINEE - RESEARCH & DEVELOPMENT','active',67,67,'2023-12-21 14:31:05','2023-12-21 14:31:05',NULL),(201,1,NULL,'WORKS MANAGER','active',67,67,'2023-12-21 14:31:19','2023-12-21 14:31:19',NULL),(202,1,NULL,'ZONAL MANAGER','active',67,67,'2023-12-21 14:31:24','2023-12-21 14:31:24',NULL),(203,1,NULL,'ZONAL MANAGER - NORTH & EAST','active',67,67,'2023-12-21 14:31:33','2023-12-21 14:31:33',NULL),(204,1,NULL,'ZONAL MANAGER - SOUTH & WEST','active',67,67,'2023-12-21 14:31:39','2023-12-21 14:31:39',NULL),(205,1,NULL,'ZONAL OFFICER - MARKETING','active',67,67,'2023-12-21 14:31:46','2023-12-21 14:31:46',NULL),(206,1,NULL,'SUPERVISOR- PRODUCTION','active',67,67,'2023-12-21 15:44:11','2023-12-21 15:44:11',NULL),(207,1,NULL,'SR. EXECUTIVE -  PRODUCTION','active',67,67,'2023-12-21 16:45:27','2023-12-21 16:45:27',NULL),(208,2,NULL,'AREA BUSINESS MANAGER','active',73,NULL,'2024-02-29 11:48:55','2024-02-29 11:48:55',NULL),(209,2,NULL,'ASSISTANT - STORES','active',73,NULL,'2024-02-29 11:49:06','2024-02-29 11:49:06',NULL),(210,2,NULL,'ASSISTANT MANAGER - I & S','active',73,NULL,'2024-02-29 11:49:19','2024-02-29 11:49:19',NULL),(211,2,NULL,'ASSISTANT MANAGER - IR & ADMN.','active',73,NULL,'2024-02-29 11:49:35','2024-02-29 11:49:35',NULL),(212,2,NULL,'ASSISTANT MANAGER - MAINTENANCE','active',73,NULL,'2024-02-29 11:50:03','2024-02-29 11:50:03',NULL),(213,2,NULL,'ASSISTANT MANAGER - STORES','active',73,NULL,'2024-02-29 11:50:21','2024-02-29 11:50:21',NULL),(214,2,NULL,'ASSISTANT MANAGER-FABRICATION','active',73,NULL,'2024-02-29 11:50:39','2024-02-29 11:50:39',NULL),(215,2,NULL,'DEPUTY FACTORY MANAGER','active',73,NULL,'2024-02-29 11:50:54','2024-02-29 11:50:54',NULL),(216,2,NULL,'DEPUTY MANAGER - MAINTENANCE','active',73,NULL,'2024-02-29 11:51:17','2024-02-29 11:51:17',NULL),(217,2,NULL,'DEPUTY MANAGER - PRODUCTION EPE','active',73,NULL,'2024-02-29 11:51:46','2024-02-29 11:51:46',NULL),(218,2,NULL,'ENGINEER - MAINTENANCE','active',73,NULL,'2024-02-29 11:52:05','2024-02-29 11:52:05',NULL),(219,2,NULL,'ENGINEER - PRODUCTION','active',73,NULL,'2024-02-29 11:52:34','2024-02-29 11:52:34',NULL),(220,2,NULL,'ENGINEER - PRODUCTION EPE','active',73,NULL,'2024-02-29 11:52:47','2024-02-29 11:52:47',NULL),(221,2,NULL,'ENGINEER - PRODUCTION FOAM','active',73,NULL,'2024-02-29 11:53:13','2024-02-29 11:53:13',NULL),(222,2,NULL,'ENGINEER - PRODUCTION PAD CUTTING','active',73,NULL,'2024-02-29 11:53:26','2024-02-29 11:53:26',NULL),(223,2,NULL,'ENGINEER - PRODUCTION RC','active',73,NULL,'2024-02-29 11:53:47','2024-02-29 11:53:47',NULL),(224,2,NULL,'ENGINEER - PRODUCTION RC PLANT','active',73,NULL,'2024-02-29 11:53:58','2024-02-29 11:53:58',NULL),(225,2,NULL,'ENGINEER - PRODUCTION STR8','active',73,NULL,'2024-02-29 11:54:24','2024-02-29 11:54:24',NULL),(226,2,NULL,'EXECUTIVE - IR & HR','active',73,NULL,'2024-02-29 11:54:29','2024-02-29 11:54:29',NULL),(227,2,NULL,'EXECUTIVE - PRODUCTION RC PLANT','active',73,NULL,'2024-02-29 11:54:45','2024-02-29 11:54:45',NULL),(228,2,NULL,'TECHNICAL ASSISTANT - BOILER','active',73,NULL,'2024-02-29 11:55:14','2024-02-29 11:55:14',NULL),(229,2,NULL,'EXECUTIVE - PRODUCTION -SOFA','active',73,NULL,'2024-02-29 11:56:00','2024-02-29 11:56:00',NULL),(230,2,NULL,'EXECUTIVE - QUALITY ASSURANCE','active',73,NULL,'2024-02-29 11:56:14','2024-02-29 11:56:14',NULL),(231,2,NULL,'EXECUTIVE - STORES','active',73,NULL,'2024-02-29 11:56:45','2024-02-29 11:56:45',NULL),(232,2,NULL,'GENERAL MANAGER - MANUFACTURING','active',73,NULL,'2024-02-29 11:56:50','2024-02-29 11:56:50',NULL),(233,2,NULL,'JUNIOR PROGRAMMER','active',73,NULL,'2024-02-29 11:57:14','2024-02-29 11:57:14',NULL),(234,2,NULL,'MANAGER - FINANCE & ACCOUNTS','active',73,NULL,'2024-02-29 11:57:31','2024-02-29 11:57:31',NULL),(235,2,NULL,'MANAGER - FOAM & STR8','active',73,NULL,'2024-02-29 11:57:45','2024-02-29 11:57:45',NULL),(236,2,NULL,'OFFICER - FACTORY ACCOUNTS','active',73,NULL,'2024-02-29 11:57:59','2024-02-29 11:57:59',NULL),(237,2,NULL,'OFFICER - SAFETY','active',73,NULL,'2024-02-29 11:58:12','2024-02-29 11:58:12',NULL),(238,2,NULL,'REGIONAL MANAGER','active',73,NULL,'2024-02-29 11:58:26','2024-02-29 11:58:26',NULL),(239,2,NULL,'SUPERVISOR -  FABRICATION','active',73,NULL,'2024-02-29 11:58:40','2024-02-29 11:58:40',NULL),(240,2,NULL,'SUPERVISOR - FABRICATION','active',73,NULL,'2024-02-29 11:58:59','2024-02-29 11:58:59',NULL),(241,2,NULL,'SUPERVISOR - MAINTENANCE','active',73,NULL,'2024-02-29 11:59:50','2024-02-29 11:59:50',NULL),(242,2,NULL,'SUPERVISOR - PRODUCTION','active',73,NULL,'2024-02-29 12:00:05','2024-02-29 12:00:05',NULL),(243,2,NULL,'SUPERVISOR - PRODUCTION RC PLANT','active',73,NULL,'2024-02-29 12:00:18','2024-02-29 12:00:18',NULL),(244,2,NULL,'SUPERVISOR - STORES','active',73,NULL,'2024-02-29 12:00:31','2024-02-29 12:00:31',NULL),(245,2,NULL,'TECHNICAL ASSISTANT','active',73,NULL,'2024-02-29 12:00:51','2024-02-29 12:00:51',NULL),(246,2,NULL,'TERRITORY MANAGER','active',73,NULL,'2024-02-29 12:01:09','2024-02-29 12:01:09',NULL),(247,2,NULL,'ZONAL MANAGER','active',73,NULL,'2024-02-29 12:01:19','2024-02-29 12:01:19',NULL),(248,3,NULL,'ASSISTANT MANAGER','active',67,NULL,'2024-02-29 16:39:05','2024-02-29 16:39:05',NULL),(249,3,NULL,'ASSISTANT MANAGER - PRODUCTION','active',67,NULL,'2024-02-29 16:39:25','2024-02-29 16:39:25',NULL),(250,3,NULL,'ASSISTANT MANAGER - STORES','active',67,NULL,'2024-02-29 16:39:38','2024-02-29 16:39:38',NULL),(251,3,NULL,'CHIEF PRODUCT OFFICER','active',67,NULL,'2024-02-29 16:39:52','2024-02-29 16:39:52',NULL),(252,3,NULL,'DEPUTY MANAGER - MAINTENANCE','active',67,NULL,'2024-02-29 16:40:08','2024-02-29 16:40:08',NULL),(253,3,NULL,'DEPUTY MANAGER - PRODUCTION','active',67,NULL,'2024-02-29 16:40:28','2024-02-29 16:40:28',NULL),(254,3,NULL,'DEPUTY MANAGER - PURCHASE','active',67,NULL,'2024-02-29 16:40:51','2024-02-29 16:40:51',NULL),(255,3,NULL,'ENGINEER  - MAINTENANCE','active',67,NULL,'2024-02-29 16:41:37','2024-02-29 16:41:37',NULL),(256,3,NULL,'ENGINEER - MAINTENANCE','active',67,NULL,'2024-02-29 16:41:58','2024-02-29 16:41:58',NULL),(257,3,NULL,'ENGINEER - PRODUCT DEVELOPMENT','active',67,NULL,'2024-02-29 16:42:14','2024-02-29 16:42:14',NULL),(258,3,NULL,'ENGINEER - PRODUCTION','active',67,NULL,'2024-02-29 16:42:40','2024-02-29 16:42:40',NULL),(259,3,NULL,'EXECUTIVE -  PRODUCTION','active',67,NULL,'2024-02-29 16:42:59','2024-02-29 16:42:59',NULL),(260,3,NULL,'EXECUTIVE - QUALITY ASSURANCE','active',67,NULL,'2024-02-29 16:43:12','2024-02-29 16:43:12',NULL),(261,3,NULL,'EXECUTIVE - RESEARCH & DEVELOPMENT','active',67,NULL,'2024-02-29 16:43:45','2024-02-29 16:43:45',NULL),(262,3,NULL,'FIREMAN','active',67,NULL,'2024-02-29 16:43:59','2024-02-29 16:43:59',NULL),(263,3,NULL,'GARDNER','active',67,NULL,'2024-02-29 16:44:21','2024-02-29 16:44:21',NULL),(264,3,NULL,'GENERAL MANAGER - MANUFACTURING','active',67,NULL,'2024-02-29 16:44:39','2024-02-29 16:44:39',NULL),(265,3,NULL,'HEAD - EHS','active',67,NULL,'2024-02-29 16:47:28','2024-02-29 16:47:28',NULL),(266,3,NULL,'HEAD - QUALITY','active',67,NULL,'2024-02-29 16:47:42','2024-02-29 16:47:42',NULL),(267,3,NULL,'KEY ACCOUNT EXECUTIVE','active',67,NULL,'2024-02-29 16:48:47','2024-02-29 16:48:47',NULL),(268,3,NULL,'MANAGER - BUSINESS DEVELOPMENT','active',67,NULL,'2024-02-29 16:49:03','2024-02-29 16:49:03',NULL),(269,3,NULL,'MANAGER - HR & IR','active',67,NULL,'2024-02-29 16:49:18','2024-02-29 16:49:18',NULL),(270,3,NULL,'MANAGER - PRODUCTION','active',67,NULL,'2024-02-29 16:49:35','2024-02-29 16:49:35',NULL),(271,3,NULL,'MANAGER - PURCHASE','active',67,NULL,'2024-02-29 21:58:33','2024-02-29 21:58:33',NULL),(272,3,NULL,'MANAGER - STORES','active',67,NULL,'2024-02-29 21:58:37','2024-02-29 21:58:37',NULL),(273,3,NULL,'NETWORK ENGINEER','active',67,NULL,'2024-02-29 21:58:52','2024-02-29 21:58:52',NULL),(274,3,NULL,'OFFICER - EHS','active',67,NULL,'2024-02-29 21:59:08','2024-02-29 21:59:08',NULL),(275,3,NULL,'OFFICER - PURCHASE','active',67,NULL,'2024-02-29 21:59:34','2024-02-29 21:59:34',NULL),(276,3,NULL,'PURCHASE OFFICER','active',67,NULL,'2024-02-29 21:59:39','2024-02-29 21:59:39',NULL),(277,3,NULL,'SENIOR ENGINEER','active',67,NULL,'2024-02-29 22:00:07','2024-02-29 22:00:07',NULL),(278,3,NULL,'SENIOR FIREMAN','active',67,NULL,'2024-02-29 22:00:24','2024-02-29 22:00:24',NULL),(279,3,NULL,'SR. EXECUTIVE -  PRODUCTION','active',67,NULL,'2024-02-29 22:00:38','2024-02-29 22:00:38',NULL),(280,3,NULL,'SR. EXECUTIVE - STORES','active',67,NULL,'2024-02-29 22:00:52','2024-02-29 22:00:52',NULL),(281,3,NULL,'SUPERINTENDENT  - MAINTENANCE','active',67,NULL,'2024-02-29 22:01:38','2024-02-29 22:01:38',NULL),(282,3,NULL,'SUPERVISOR - MAINTENANCE','active',67,NULL,'2024-02-29 22:01:52','2024-02-29 22:01:52',NULL),(283,3,NULL,'SUPERVISOR - PRODUCTION','active',67,NULL,'2024-02-29 22:02:08','2024-02-29 22:02:08',NULL),(284,3,NULL,'SUPERVISOR - STORES','active',67,NULL,'2024-02-29 22:02:24','2024-02-29 22:02:24',NULL),(285,3,NULL,'TECHNICAL ASSISTANT','active',67,NULL,'2024-02-29 22:02:38','2024-02-29 22:02:38',NULL),(286,3,NULL,'TECHNICAL ASSISTANT - BOILER','active',67,NULL,'2024-02-29 22:02:53','2024-02-29 22:02:53',NULL),(287,3,NULL,'TRAINEE - RESEARCH & DEVELOPMENT','active',67,NULL,'2024-02-29 22:03:21','2024-02-29 22:03:21',NULL),(288,3,NULL,'WORKS MANAGER','active',67,NULL,'2024-02-29 22:03:33','2024-02-29 22:03:33',NULL),(289,3,NULL,'HEAD - R & D','active',67,NULL,'2024-02-29 22:45:38','2024-02-29 22:45:38',NULL),(290,5,NULL,'DGM','active',77,77,'2024-09-21 14:13:32','2024-11-26 12:09:49',NULL),(291,5,NULL,'AGM','active',77,77,'2024-09-21 14:19:47','2024-11-26 12:10:27',NULL),(292,5,NULL,'Manager','active',77,77,'2024-09-21 14:24:01','2024-11-26 12:10:40',NULL),(293,5,NULL,'SO','active',77,77,'2024-09-21 14:28:05','2024-11-26 12:11:00',NULL),(294,5,NULL,'DEOI','active',77,77,'2024-09-21 14:36:11','2024-11-26 12:11:18',NULL),(295,5,NULL,'SA','active',77,77,'2024-09-21 14:37:19','2024-11-26 12:11:31',NULL),(296,5,NULL,'Driver','active',77,77,'2024-09-21 14:43:13','2024-11-26 12:11:45',NULL),(297,5,NULL,'Peon','active',77,84,'2024-09-21 14:45:53','2025-02-26 14:24:28',NULL),(298,5,NULL,'Cleaner','active',77,77,'2024-09-21 14:51:24','2024-11-26 12:12:25',NULL),(299,6,NULL,'Designation','active',78,NULL,'2024-10-24 15:53:18','2024-10-24 15:53:18',NULL),(300,6,NULL,'Project Manager','active',78,NULL,'2024-11-15 14:39:38','2024-11-15 14:39:38',NULL),(301,6,NULL,'CUSTOMER SERVICE','active',78,NULL,'2024-11-18 15:43:18','2024-11-18 15:43:18',NULL),(302,6,NULL,'ACCOUNT CLERK','active',78,NULL,'2024-11-18 15:43:25','2024-11-18 15:43:25',NULL),(303,6,NULL,'DISPATCH COORDINATOR','active',78,NULL,'2024-11-18 15:43:31','2024-11-18 15:43:31',NULL),(304,6,NULL,'CONVERSION LEADING HAND','active',78,NULL,'2024-11-18 15:43:53','2024-11-18 15:43:53',NULL),(305,6,NULL,'ADMINISTRATIVE CLERK','active',78,NULL,'2024-11-18 15:44:26','2024-11-18 15:44:26',NULL),(306,6,NULL,'DISPATCH','active',78,NULL,'2024-11-18 15:44:34','2024-11-18 15:44:34',NULL),(307,6,NULL,'ACCOUNT MANAGER','active',78,NULL,'2024-11-18 15:44:49','2024-11-18 15:44:49',NULL),(308,6,NULL,'FINANCE MANAGER','active',78,NULL,'2024-11-18 15:45:14','2024-11-18 15:45:14',NULL),(309,6,NULL,'LABRORATORY ASSISTANT','active',78,NULL,'2024-11-18 15:45:43','2024-11-18 15:45:43',NULL),(310,6,NULL,'GRADUATE CHEMIST','active',78,NULL,'2024-11-18 15:45:48','2024-11-18 15:45:48',NULL),(311,6,NULL,'FOAM MANAGER','active',78,NULL,'2024-11-18 15:45:53','2024-11-18 15:45:53',NULL),(312,6,NULL,'L/H SPECIAL CLASS FITTER','active',78,NULL,'2024-11-18 15:46:04','2024-11-18 15:46:04',NULL),(313,6,NULL,'LOGISTICS COORDINATOR','active',78,NULL,'2024-11-18 15:46:15','2024-11-18 15:46:15',NULL),(314,6,NULL,'ESTIMATOR','active',78,NULL,'2024-11-18 15:46:22','2024-11-18 15:46:22',NULL),(315,6,NULL,'FOAM ASSISTANT','active',78,NULL,'2024-11-18 15:46:38','2024-11-18 15:46:38',NULL),(316,6,NULL,'EXECUTIVE ASSISTANT','active',78,NULL,'2024-11-18 15:46:44','2024-11-18 15:46:44',NULL),(317,6,NULL,'PRODUCTION MANAGER','active',78,NULL,'2024-11-18 15:47:22','2024-11-18 15:47:22',NULL),(318,6,NULL,'PRODUCTION COORDINATOR','active',78,NULL,'2024-11-18 15:47:30','2024-11-18 15:47:30',NULL),(319,6,NULL,'MANUFACTURING SERVICE MANAGER','active',78,NULL,'2024-11-18 15:47:37','2024-11-18 15:47:37',NULL),(320,6,NULL,'OFFICE ADMINISTRATOR','active',78,NULL,'2024-11-18 15:47:52','2024-11-18 15:47:52',NULL),(321,6,NULL,'PRODUCTION SUPERVISIOR','active',78,NULL,'2024-11-18 15:48:35','2024-11-18 15:48:35',NULL),(322,6,NULL,'PRODUCTION OPERATOR','active',78,NULL,'2024-11-18 15:48:41','2024-11-18 15:48:41',NULL),(323,6,NULL,'SALES MANAGER N S W','active',78,NULL,'2024-11-18 15:49:04','2024-11-18 15:49:04',NULL),(324,6,NULL,'STATE MANAGER','active',78,NULL,'2024-11-18 15:49:09','2024-11-18 15:49:09',NULL),(325,6,NULL,'STATE MANAGER QUEENSLAND','active',78,NULL,'2024-11-18 15:49:19','2024-11-18 15:49:19',NULL),(326,6,NULL,'SALES CLERK','active',78,NULL,'2024-11-18 15:49:25','2024-11-18 15:49:25',NULL),(327,6,NULL,'SALES COORDINATOR','active',78,NULL,'2024-11-18 15:49:40','2024-11-18 15:49:40',NULL),(328,6,NULL,'STOREMAN','active',78,NULL,'2024-11-18 15:49:47','2024-11-18 15:49:47',NULL),(329,6,NULL,'SALES REPRESENTATIVE','active',78,NULL,'2024-11-18 15:49:54','2024-11-18 15:49:54',NULL),(330,6,NULL,'TECHNICAL SALES  ENGINEER','active',78,NULL,'2024-11-18 15:50:43','2024-11-18 15:50:43',NULL),(331,6,NULL,'RECEIPTIONIST','active',78,NULL,'2024-11-18 15:50:57','2024-11-18 15:50:57',NULL),(332,6,NULL,'PROCUREMENT COORDINATOR','active',78,NULL,'2024-11-18 15:54:23','2024-11-18 15:54:23',NULL),(333,5,NULL,'Chowkidar','active',77,NULL,'2024-11-26 12:12:44','2024-11-26 12:12:44',NULL),(334,5,NULL,'S Worker','active',77,NULL,'2024-11-26 12:13:05','2024-11-26 12:13:05',NULL),(335,5,NULL,'Mali','active',77,NULL,'2024-11-27 10:14:45','2024-11-27 10:14:45',NULL),(336,5,NULL,'Managing Director','active',77,NULL,'2024-11-27 11:29:57','2024-11-27 11:29:57',NULL),(337,5,NULL,'TO','active',77,NULL,'2024-11-27 14:42:49','2024-11-27 14:42:49',NULL),(338,5,NULL,'OA','active',77,NULL,'2024-11-27 14:52:49','2024-11-27 14:52:49',NULL),(339,9,NULL,'Sales','active',85,NULL,'2024-12-10 18:06:22','2024-12-10 18:06:22',NULL),(340,8,NULL,'Developer','active',82,NULL,'2024-12-13 18:40:56','2024-12-13 18:40:56',NULL),(341,4,NULL,'Manager','active',88,NULL,'2024-12-18 11:58:36','2024-12-18 11:58:36',NULL),(342,11,NULL,'Manager','active',86,NULL,'2024-12-18 14:02:04','2024-12-18 14:02:04',NULL),(343,7,NULL,'Manager - IT','active',80,NULL,'2025-01-06 16:03:46','2025-01-06 16:03:46',NULL);

--
-- Table structure for table `devices`
--

CREATE TABLE `devices` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `serial_number` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `organization_id` int unsigned NOT NULL,
  `location_id` int unsigned DEFAULT NULL,
  `sub_location_id` int unsigned DEFAULT NULL,
  `name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `brand_name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `product_name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `email` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `device_address` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `device_category` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'fr_device',
  `device_type_id` int unsigned DEFAULT NULL,
  `device_sub_type` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT 'kiosk',
  `status` enum('active','inactive') CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'active',
  `sync_data` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT 'active',
  `created_by` int unsigned DEFAULT NULL,
  `updated_by` int unsigned DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `alertsent` int DEFAULT '0',
  `last_ping` timestamp NULL DEFAULT NULL,
  `working_since` timestamp NULL DEFAULT '2021-12-31 18:30:00',
  `time_zone_id` int unsigned DEFAULT NULL,
  `device_use` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'attendance',
  `accept_card` tinyint(1) DEFAULT '0',
  `accept_qr` tinyint(1) DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `devices_location_id_foreign` (`location_id`),
  KEY `devices_organization_id_foreign` (`organization_id`),
  KEY `devices_created_by_foreign` (`created_by`),
  KEY `devices_updated_by_foreign` (`updated_by`),
  KEY `devices_device_type_id_foreign` (`device_type_id`),
  KEY `serial_number` (`serial_number`),
  KEY `sub_location_id` (`sub_location_id`),
  KEY `name` (`name`),
  KEY `email` (`email`),
  KEY `device_type` (`device_category`),
  KEY `status` (`status`)
) ENGINE=InnoDB AUTO_INCREMENT=31 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `devices`
--

INSERT INTO `devices` VALUES (29,'E03C1CB2B5E91801',5,14,14,'Meghalaya Industrial Development Corporation Ltd',NULL,NULL,'midc-admin@staqo.com','E03C1CB2B5E91801','fr_device',3,'kiosk','active','active',77,NULL,'2024-11-26 12:29:43','2025-03-03 19:19:36',NULL,0,'2025-03-03 19:19:36','2025-03-03 19:19:36',NULL,'attendance',0,0),(30,'E03C1CB2B1111801',5,15,15,'Meghalaya Industrial Development Corporation Ltd Tura',NULL,NULL,'midc-admin@staqo.com','E03C1CB2B1111801','fr_device',3,'kiosk','active','active',77,NULL,'2024-11-29 15:39:07','2025-03-03 17:56:20',NULL,0,'2025-03-03 17:56:20','2025-03-03 17:56:20',NULL,'attendance',0,0);

--
-- Table structure for table `employee_additional_shifts`
--

CREATE TABLE `employee_additional_shifts` (
  `employee_id` int unsigned DEFAULT NULL,
  `shift_id` int unsigned DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `employee_additional_shifts`
--


--
-- Table structure for table `employee_attachments`
--

CREATE TABLE `employee_attachments` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `employee_id` bigint unsigned NOT NULL,
  `type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `status` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'active',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `employee_attachments`
--


--
-- Table structure for table `employee_bank_details`
--

CREATE TABLE `employee_bank_details` (
  `id` int NOT NULL AUTO_INCREMENT,
  `employee_id` int NOT NULL,
  `bank_name` varchar(255) NOT NULL,
  `branch_name` varchar(255) DEFAULT NULL,
  `ifsc_code` varchar(20) NOT NULL,
  `swift_code` varchar(50) DEFAULT NULL,
  `account_number` varchar(50) NOT NULL,
  `account_type` varchar(50) NOT NULL,
  `type` varchar(50) NOT NULL,
  `status` varchar(20) NOT NULL DEFAULT 'active',
  `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `employee_bank_details`
--


--
-- Table structure for table `employee_details`
--

CREATE TABLE `employee_details` (
  `id` int NOT NULL AUTO_INCREMENT,
  `employee_id` int NOT NULL,
  `nationality` varchar(50) DEFAULT NULL,
  `company_name` varchar(150) DEFAULT NULL,
  `father_name` varchar(150) DEFAULT NULL,
  `department` varchar(150) DEFAULT NULL,
  `designation` varchar(255) DEFAULT NULL,
  `country_id` int DEFAULT NULL,
  `state_id` int DEFAULT NULL,
  `city_id` int DEFAULT NULL,
  `district` varchar(50) DEFAULT NULL,
  `pincode` varchar(20) DEFAULT NULL,
  `id_proof_type` varchar(20) DEFAULT NULL,
  `id_proof_no` varchar(100) DEFAULT NULL,
  `block_reason` text,
  `created_by` int DEFAULT NULL,
  `updated_by` int DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `employee_details`
--


--
-- Table structure for table `employee_groups`
--

CREATE TABLE `employee_groups` (
  `id` int NOT NULL AUTO_INCREMENT,
  `organization_id` int unsigned NOT NULL,
  `status` enum('active','inactive') NOT NULL DEFAULT 'active',
  `name` varchar(191) NOT NULL,
  `created_by` int DEFAULT NULL,
  `updated_by` int DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `employee_groups`
--


--
-- Table structure for table `employee_leave_logs`
--

CREATE TABLE `employee_leave_logs` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `leave_type_id` bigint unsigned NOT NULL,
  `employee_id` bigint unsigned NOT NULL,
  `year` year NOT NULL,
  `month` int DEFAULT NULL,
  `opening_leaves` double(10,2) NOT NULL,
  `carry_forwarded_leaves` double(10,2) NOT NULL,
  `taken_leaves` double(10,2) NOT NULL,
  `balance_leaves` double(10,2) NOT NULL,
  `lapsed_leaves` float(10,2) NOT NULL DEFAULT '0.00',
  `encashed_leaves` float(10,2) NOT NULL DEFAULT '0.00',
  `advance_leaves` float(10,2) NOT NULL DEFAULT '0.00',
  `credited_leaves` float(10,2) NOT NULL DEFAULT '0.00',
  `yearly_credited_leaves` float(10,2) NOT NULL DEFAULT '0.00',
  `source` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'System',
  `forwarded_days` decimal(12,2) DEFAULT '0.00',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `employee_leave_logs_leave_type_id_index` (`leave_type_id`),
  KEY `employee_leave_logs_employee_id_index` (`employee_id`),
  KEY `employee_leave_logs_year_index` (`year`)
) ENGINE=InnoDB AUTO_INCREMENT=5127 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `employee_leave_logs`
--


--
-- Table structure for table `employee_leaves`
--

CREATE TABLE `employee_leaves` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `organization_id` int NOT NULL,
  `leave_type_id` bigint unsigned NOT NULL,
  `employee_id` bigint unsigned NOT NULL,
  `opening_leaves` double(10,2) NOT NULL DEFAULT '0.00',
  `carry_forwarded_leaves` double(10,2) NOT NULL DEFAULT '0.00',
  `taken_leaves` double(10,2) NOT NULL DEFAULT '0.00',
  `balance_leaves` double(10,2) NOT NULL DEFAULT '0.00',
  `credited_leaves` float(10,2) NOT NULL DEFAULT '0.00',
  `yearly_credited_leaves` float(10,2) NOT NULL DEFAULT '0.00',
  `lapsed_leaves` float(10,2) NOT NULL DEFAULT '0.00',
  `encashed_leaves` float(10,2) NOT NULL DEFAULT '0.00',
  `advance_leaves` float(10,2) NOT NULL DEFAULT '0.00',
  `rule_credited_at` datetime DEFAULT NULL,
  `forwarded_days` decimal(12,2) DEFAULT '0.00',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `employee_leaves_leave_type_id_index` (`leave_type_id`),
  KEY `employee_leaves_employee_id_index` (`employee_id`)
) ENGINE=InnoDB AUTO_INCREMENT=6565 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `employee_leaves`
--


--
-- Table structure for table `employee_location`
--

CREATE TABLE `employee_location` (
  `employee_id` int unsigned DEFAULT NULL,
  `location_id` int unsigned DEFAULT NULL,
  KEY `employee_locations_employee_id_foreign` (`employee_id`),
  KEY `employee_locations_location_id_foreign` (`location_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `employee_location`
--

INSERT INTO `employee_location` VALUES (12543,14),(12405,15);

--
-- Table structure for table `employee_members`
--

CREATE TABLE `employee_members` (
  `id` bigint NOT NULL AUTO_INCREMENT,
  `organization_id` int unsigned DEFAULT NULL,
  `employee_id` int unsigned DEFAULT NULL,
  `type` varchar(100) DEFAULT NULL,
  `name` varchar(200) DEFAULT NULL,
  `relationship` varchar(100) DEFAULT NULL,
  `gender` varchar(100) NOT NULL DEFAULT 'male',
  `qualification` varchar(100) DEFAULT NULL,
  `occupation` varchar(100) DEFAULT NULL,
  `age` int DEFAULT NULL,
  `physically_fit` tinyint DEFAULT NULL,
  `email` varchar(100) DEFAULT NULL,
  `mobile` varchar(20) DEFAULT NULL,
  `date_of_birth` date DEFAULT NULL,
  `created_by` int unsigned DEFAULT NULL,
  `updated_by` int unsigned DEFAULT NULL,
  `created_at` timestamp NOT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `organization_id` (`organization_id`),
  KEY `employee_id` (`employee_id`),
  KEY `updated_by` (`updated_by`),
  KEY `created_by` (`created_by`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `employee_members`
--


--
-- Table structure for table `employee_sub_locations`
--

CREATE TABLE `employee_sub_locations` (
  `employee_id` int unsigned DEFAULT NULL,
  `sub_location_id` int unsigned DEFAULT NULL,
  KEY `employee_sub_locations_employee_id_foreign` (`employee_id`),
  KEY `employee_sub_locations_sub_location_id_foreign` (`sub_location_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `employee_sub_locations`
--

INSERT INTO `employee_sub_locations` VALUES (12274,10),(12275,10),(12276,10),(12277,10),(12278,10),(12279,10),(12280,10),(12281,10),(12282,10),(12283,10),(12284,10),(12285,10),(12286,10),(12287,10),(12288,10),(12289,10),(12290,10),(12291,10),(12292,10),(12293,10),(12294,10),(12295,10),(12296,10),(12297,10),(12298,10),(12299,10),(12300,10),(12301,10),(12302,10),(12303,10),(12304,10),(12305,10),(12306,10),(12307,10),(12308,10),(12309,10),(12310,10),(12311,10),(12312,10),(12313,10),(12314,10),(12315,10),(12316,10),(12317,10),(12318,10),(12319,10),(12320,10),(12321,10),(12322,10),(12323,10),(12324,10),(12325,10),(12326,10),(12327,10),(12328,10),(12329,11),(12330,11),(12331,11),(12332,11),(12333,11),(12334,11),(12335,11),(12336,11),(12337,11),(12338,11),(12339,11),(12340,11),(12341,11),(12342,11),(12343,11),(12344,11),(12345,11),(12346,11),(12347,11),(12348,11),(12349,11),(12350,11),(12351,11),(12352,11),(12353,11),(12354,11),(12355,11),(12356,11),(12357,11),(12358,11),(12359,11),(12360,11),(12361,11),(12362,11),(12363,11),(12364,11),(12365,11),(12366,11),(12367,11),(12368,11),(12369,11),(12370,11),(12371,11),(12372,11),(12373,11),(12374,11),(12375,11),(12376,11),(12377,11),(12378,11),(12379,11),(12380,11),(12381,11),(12382,11),(12383,11),(12384,11),(12385,11),(12386,11),(12387,11),(12388,11),(12389,11),(12390,11),(12391,11),(12392,11),(11713,12),(11690,12),(12409,12),(12397,14),(12411,14),(12410,14),(12404,14),(12399,14),(12406,14),(12402,14),(12400,14),(12401,14),(12403,14),(12536,14),(12537,14),(12538,14),(12539,14),(12540,14),(12541,14),(12542,14),(12543,14),(12544,14),(12545,14),(12546,14),(12547,14),(12548,14),(12549,14),(12550,14),(12551,14),(12552,14),(12553,14),(12554,14),(12555,14),(12556,14),(12557,14),(12558,14),(12559,14),(12560,14),(12561,14),(12562,14),(12563,14),(12564,14),(12565,14),(12566,14),(12567,14),(12568,14),(12569,14),(12570,14),(12571,14),(12572,14),(12573,14),(12574,14),(12412,14),(12575,14),(12576,15),(12577,15),(12578,15),(12579,15),(12580,15),(12581,15),(12582,15),(12583,15),(12584,15),(12585,15),(12586,15),(12587,15),(12588,15),(12589,15),(12590,15),(12591,15),(12592,15),(12593,16),(12594,17),(12597,16),(12612,14),(12405,15);

--
-- Table structure for table `employee_week_shifts`
--

CREATE TABLE `employee_week_shifts` (
  `id` int NOT NULL AUTO_INCREMENT,
  `organization_id` int NOT NULL,
  `employee_id` int NOT NULL,
  `monday` int DEFAULT NULL,
  `tuesday` int DEFAULT NULL,
  `wednesday` int DEFAULT NULL,
  `thursday` int DEFAULT NULL,
  `friday` int DEFAULT NULL,
  `saturday` int DEFAULT NULL,
  `sunday` int DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `created_by_type` varchar(50) DEFAULT NULL,
  `created_by` int DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `updated_by_type` varchar(50) DEFAULT NULL,
  `updated_by` int DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `deleted_by_type` varchar(50) DEFAULT NULL,
  `deleted_by` int DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `employee_week_shifts`
--

INSERT INTO `employee_week_shifts` VALUES (1,2,12599,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2025-02-06 14:42:15','user',66,'2025-06-09 13:01:47',NULL,NULL,NULL,NULL,NULL),(2,7,12600,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2025-02-07 17:28:39','user',80,'2025-06-09 13:01:47',NULL,NULL,NULL,NULL,NULL),(3,2,12601,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2025-02-08 10:20:27','user',66,'2025-06-09 13:01:47',NULL,NULL,NULL,NULL,NULL),(4,5,12398,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2025-02-27 00:20:03','user',84,'2025-06-09 13:01:47',NULL,NULL,NULL,NULL,NULL),(5,5,12582,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2025-02-27 00:21:25','user',84,'2025-06-09 13:01:47',NULL,NULL,NULL,NULL,NULL),(6,5,12583,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2025-02-27 08:32:43','user',84,'2025-06-09 13:01:47',NULL,NULL,NULL,NULL,NULL),(7,5,12584,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2025-02-27 08:33:47','user',84,'2025-06-09 13:01:47',NULL,NULL,NULL,NULL,NULL),(8,5,12585,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2025-02-27 08:38:05','user',84,'2025-06-09 13:01:47',NULL,NULL,NULL,NULL,NULL),(9,5,12586,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2025-02-27 08:41:09','user',84,'2025-06-09 13:01:47',NULL,NULL,NULL,NULL,NULL),(10,5,12587,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2025-02-27 10:25:39','user',84,'2025-06-09 13:01:47',NULL,NULL,NULL,NULL,NULL),(11,5,12588,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2025-02-27 12:02:42','user',84,'2025-06-09 13:01:47',NULL,NULL,NULL,NULL,NULL),(12,5,12589,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2025-02-27 12:05:11','user',84,'2025-06-09 13:01:47',NULL,NULL,NULL,NULL,NULL),(13,5,12590,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2025-02-27 12:12:23','user',84,'2025-06-09 13:01:47',NULL,NULL,NULL,NULL,NULL),(14,5,12612,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2025-02-27 15:09:37','user',84,'2025-06-09 13:01:47',NULL,NULL,NULL,NULL,NULL),(15,5,12543,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2025-06-09 07:41:39',NULL,NULL,'2025-06-09 07:41:39',NULL,NULL,NULL,NULL,NULL),(16,5,12405,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2025-06-09 23:45:20',NULL,NULL,'2025-06-09 23:45:20',NULL,NULL,NULL,NULL,NULL);

--
-- Table structure for table `grades`
--

CREATE TABLE `grades` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `organization_id` int unsigned NOT NULL,
  `name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `status` enum('active','inactive') CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'active',
  `created_by` int unsigned DEFAULT NULL,
  `updated_by` int unsigned DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `grades_organization_id_foreign` (`organization_id`),
  KEY `grades_created_by_foreign` (`created_by`),
  KEY `grades_updated_by_foreign` (`updated_by`)
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `grades`
--

INSERT INTO `grades` VALUES (1,1,'CON/05','active',67,67,'2023-12-21 14:32:26','2023-12-21 14:32:26',NULL),(2,1,'KLT','active',67,67,'2023-12-21 14:32:33','2023-12-21 14:32:33',NULL),(3,1,'LEVEL 1','active',67,67,'2023-12-21 14:32:40','2023-12-21 14:32:40',NULL),(4,1,'LEVEL 2','active',67,67,'2023-12-21 14:32:56','2023-12-21 14:32:56',NULL),(5,1,'LEVEL 3','active',67,67,'2023-12-21 14:33:08','2023-12-21 14:33:08',NULL),(6,1,'LEVEL 4','active',67,67,'2023-12-21 14:33:17','2023-12-21 14:33:17',NULL),(7,1,'LEVEL 5','active',67,67,'2023-12-21 14:33:31','2023-12-21 14:33:31',NULL),(8,2,'Level 1','active',73,NULL,'2024-02-29 12:02:44','2024-02-29 12:02:44',NULL),(9,2,'Level 2','active',73,NULL,'2024-02-29 12:02:50','2024-02-29 12:02:50',NULL),(10,2,'Level 3','active',73,NULL,'2024-02-29 12:02:56','2024-02-29 12:02:56',NULL),(11,2,'Level 4','active',73,NULL,'2024-02-29 12:03:02','2024-02-29 12:03:02',NULL),(12,2,'Level 5','active',73,NULL,'2024-02-29 12:03:08','2024-02-29 12:03:08',NULL),(13,3,'KLT','active',67,NULL,'2024-02-29 22:04:39','2024-02-29 22:04:39',NULL),(14,3,'LEVEL 1','active',67,67,'2024-02-29 22:04:54','2024-02-29 22:05:23',NULL),(15,3,'LEVEL 2','active',67,67,'2024-02-29 22:05:06','2024-02-29 22:05:40',NULL),(16,3,'LEVEL 3','active',67,NULL,'2024-02-29 22:05:48','2024-02-29 22:05:48',NULL),(17,3,'LEVEL 4','active',67,NULL,'2024-02-29 22:05:56','2024-02-29 22:05:56',NULL),(18,3,'LEVEL 5','active',67,NULL,'2024-02-29 22:06:04','2024-02-29 22:06:04',NULL);

--
-- Table structure for table `holiday_list_map`
--

CREATE TABLE `holiday_list_map` (
  `id` int NOT NULL AUTO_INCREMENT,
  `organization_id` int NOT NULL,
  `holiday_list_id` int NOT NULL,
  `type` varchar(255) NOT NULL,
  `type_id` text,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `holiday_list_map`
--


--
-- Table structure for table `holiday_list_master`
--

CREATE TABLE `holiday_list_master` (
  `id` int NOT NULL AUTO_INCREMENT,
  `organization_id` int NOT NULL,
  `name` varchar(255) NOT NULL,
  `holiday_last_days` int DEFAULT NULL,
  `holiday_minimum_present` decimal(4,2) DEFAULT NULL,
  `holiday_include` json DEFAULT NULL,
  `holiday_leave_type_include` json DEFAULT NULL,
  `weekoff_last_days` int DEFAULT NULL,
  `weekoff_minimum_present` decimal(4,2) DEFAULT NULL,
  `weekoff_include` json DEFAULT NULL,
  `weekoff_leave_type_include` json DEFAULT NULL,
  `holiday_before_days` int DEFAULT NULL,
  `holiday_after_days` int DEFAULT NULL,
  `holiday_exclude` json DEFAULT NULL,
  `weekoff_before_days` int DEFAULT NULL,
  `weekoff_after_days` int DEFAULT NULL,
  `weekoff_exclude` json DEFAULT NULL,
  `wo_settle_to` varchar(255) DEFAULT NULL COMMENT 'week_off_settle_to',
  `wo_settle_to_leave_type_id` int unsigned DEFAULT NULL COMMENT 'week_off_settle_to_leave_type_id',
  `h_settle_to` varchar(255) DEFAULT NULL COMMENT 'holiday_settle_to',
  `h_settle_to_leave_type_id` int unsigned DEFAULT NULL COMMENT 'holiday_settle_to_leave_type_id',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `holiday_list_master`
--

INSERT INTO `holiday_list_master` VALUES (8,5,'Weekly off list 2024',NULL,NULL,'[]','[]',NULL,NULL,'[]','[]',NULL,NULL,'[]',NULL,NULL,'[]',NULL,NULL,NULL,NULL,'2024-12-02 12:10:48','2024-12-02 12:10:48',NULL);

--
-- Table structure for table `holiday_master`
--

CREATE TABLE `holiday_master` (
  `id` int NOT NULL AUTO_INCREMENT,
  `organization_id` int NOT NULL,
  `holiday_list_id` int NOT NULL,
  `date` date NOT NULL,
  `occassion` varchar(255) DEFAULT NULL,
  `is_week_off` tinyint DEFAULT '0',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `organization_id` (`organization_id`),
  KEY `holiday_list_id` (`holiday_list_id`),
  KEY `date` (`date`),
  KEY `occassion` (`occassion`),
  KEY `is_week_off` (`is_week_off`)
) ENGINE=InnoDB AUTO_INCREMENT=355 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `holiday_master`
--


--
-- Table structure for table `holidays`
--

CREATE TABLE `holidays` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `organization_id` int unsigned NOT NULL,
  `location_id` int DEFAULT NULL,
  `designation_id` int DEFAULT NULL,
  `department_id` int DEFAULT NULL,
  `name` varchar(199) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `date` date NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `holidays_organization_id_foreign` (`organization_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `holidays`
--


--
-- Table structure for table `incentive_applicability`
--

CREATE TABLE `incentive_applicability` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `organization_id` int unsigned NOT NULL,
  `incentive_rule_id` int unsigned NOT NULL,
  `applicable_type` varchar(255) NOT NULL,
  `status` enum('active','inactive') DEFAULT NULL,
  `created_by` int unsigned DEFAULT NULL,
  `updated_by` int unsigned DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `organization_id` (`organization_id`),
  KEY `incentive_rule_id` (`incentive_rule_id`),
  KEY `created_by` (`created_by`),
  KEY `updated_by` (`updated_by`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `incentive_applicability`
--


--
-- Table structure for table `incentive_applicability_details`
--

CREATE TABLE `incentive_applicability_details` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `organization_id` int unsigned NOT NULL,
  `incentive_applicability_id` int unsigned NOT NULL,
  `applicable_id` int NOT NULL,
  `created_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `incentive_applicability_id` (`incentive_applicability_id`)
) ENGINE=InnoDB AUTO_INCREMENT=26 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `incentive_applicability_details`
--


--
-- Table structure for table `incentive_rule_attributes`
--

CREATE TABLE `incentive_rule_attributes` (
  `id` int NOT NULL AUTO_INCREMENT,
  `organization_id` int unsigned NOT NULL,
  `incentive_rule_id` int unsigned NOT NULL,
  `min_working_days` decimal(10,2) NOT NULL,
  `max_working_days` decimal(10,2) NOT NULL,
  `incentive_amount` decimal(10,2) NOT NULL DEFAULT '0.00',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `organization_id` (`organization_id`),
  KEY `incentive_rule_id` (`incentive_rule_id`)
) ENGINE=InnoDB AUTO_INCREMENT=42 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `incentive_rule_attributes`
--


--
-- Table structure for table `incentive_rules`
--

CREATE TABLE `incentive_rules` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `organization_id` int unsigned NOT NULL,
  `title` varchar(255) NOT NULL,
  `settled_to` int unsigned NOT NULL,
  `type` enum('full attendance','days slab','others') NOT NULL DEFAULT 'others',
  `incentive_type` varchar(100) NOT NULL DEFAULT 'Attendance Incentive',
  `excluded_to` json DEFAULT NULL,
  `incentive_amount` decimal(10,2) NOT NULL DEFAULT '0.00',
  `status` enum('active','inactive') NOT NULL,
  `created_by` int unsigned DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_by` int unsigned DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `organization_id` (`organization_id`),
  KEY `settled_to` (`settled_to`),
  KEY `created_by` (`created_by`),
  KEY `updated_by` (`updated_by`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `incentive_rules`
--


--
-- Table structure for table `industry_masters`
--

CREATE TABLE `industry_masters` (
  `id` bigint NOT NULL AUTO_INCREMENT,
  `organization_id` bigint unsigned NOT NULL,
  `name` varchar(255) NOT NULL,
  `alias` varchar(255) DEFAULT NULL,
  `status` varchar(100) NOT NULL DEFAULT 'active',
  `created_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `industry_masters`
--


--
-- Table structure for table `languages`
--

CREATE TABLE `languages` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(191) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `alias` varchar(191) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `languages`
--


--
-- Table structure for table `leave_allocations`
--

CREATE TABLE `leave_allocations` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `organization_id` int unsigned NOT NULL,
  `leave_type_id` bigint unsigned NOT NULL,
  `leave_rule_id` bigint unsigned NOT NULL,
  `employee_type` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT 'all',
  `morphable_type` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `morphable_id` bigint DEFAULT NULL,
  `status` enum('active','inactive') CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'active',
  `created_by_type` varchar(191) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `created_by` bigint unsigned DEFAULT NULL,
  `updated_by_type` varchar(191) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `updated_by` bigint unsigned DEFAULT NULL,
  `deleted_by_type` varchar(191) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `deleted_by` bigint unsigned DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `leave_allocations_leave_type_id_index` (`leave_type_id`),
  KEY `leave_allocations_organization_id_index` (`organization_id`),
  KEY `leave_allocations_leave_rule_id_index` (`leave_rule_id`),
  KEY `leave_allocations_status_index` (`status`),
  KEY `leave_allocations_created_by_index` (`created_by`),
  KEY `leave_allocations_updated_by_index` (`updated_by`),
  KEY `leave_allocations_deleted_by_index` (`deleted_by`)
) ENGINE=InnoDB AUTO_INCREMENT=4887 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `leave_allocations`
--


--
-- Table structure for table `leave_clubs`
--

CREATE TABLE `leave_clubs` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `organization_id` int unsigned NOT NULL,
  `leave_type_id` bigint unsigned NOT NULL,
  `club_leave_type_id` bigint unsigned NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `leave_clubs_organization_id_index` (`organization_id`),
  KEY `leave_clubs_leave_type_id_index` (`leave_type_id`),
  KEY `leave_clubs_club_leave_type_id_index` (`club_leave_type_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `leave_clubs`
--


--
-- Table structure for table `leave_details`
--

CREATE TABLE `leave_details` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `organization_id` int NOT NULL,
  `leave_id` bigint unsigned NOT NULL,
  `leave_type_id` bigint unsigned NOT NULL,
  `date` varchar(222) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `leave_count` decimal(3,2) NOT NULL DEFAULT '0.00',
  `status` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'pending',
  `action_at` timestamp NULL DEFAULT NULL,
  `action_by_type` varchar(191) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `action_by` bigint unsigned DEFAULT NULL,
  `action_comments` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `created_by_type` varchar(191) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `created_by` bigint unsigned DEFAULT NULL,
  `updated_by_type` varchar(191) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `updated_by` bigint unsigned DEFAULT NULL,
  `deleted_by_type` varchar(191) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `deleted_by` bigint unsigned DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `leave_details_leave_id_index` (`leave_id`),
  KEY `leave_details_leave_type_id_index` (`leave_type_id`),
  KEY `leave_details_date_index` (`date`),
  KEY `leave_details_status_index` (`status`),
  KEY `leave_details_created_by_index` (`created_by`),
  KEY `leave_details_updated_by_index` (`updated_by`),
  KEY `leave_details_deleted_by_index` (`deleted_by`)
) ENGINE=InnoDB AUTO_INCREMENT=1793 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `leave_details`
--


--
-- Table structure for table `leave_master_customs`
--

CREATE TABLE `leave_master_customs` (
  `id` int NOT NULL AUTO_INCREMENT,
  `organization_id` int NOT NULL,
  `employee_id` int NOT NULL,
  `no_of_leaves` int NOT NULL,
  `leave_type_id` varchar(255) NOT NULL,
  `valid_till` date NOT NULL,
  `status` enum('active','inactive') NOT NULL DEFAULT 'active',
  `created_by` int DEFAULT NULL,
  `updated_by` int DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `leave_master_customs`
--


--
-- Table structure for table `leave_masters`
--

CREATE TABLE `leave_masters` (
  `id` int NOT NULL AUTO_INCREMENT,
  `leave_type_id` int DEFAULT NULL,
  `organization_id` int NOT NULL,
  `role_name` varchar(45) NOT NULL,
  `no_of_leaves` int DEFAULT NULL,
  `carry_forward` varchar(255) DEFAULT NULL,
  `gender` varchar(191) DEFAULT NULL,
  `frequency` varchar(191) DEFAULT NULL,
  `max_leaves` int DEFAULT NULL,
  `min_leaves` int DEFAULT NULL,
  `pro_rata` varchar(45) DEFAULT NULL,
  `pro_rata_basis` varchar(191) DEFAULT NULL,
  `incashable` varchar(45) DEFAULT NULL,
  `status` enum('active','inactive') NOT NULL DEFAULT 'active',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `leave_masters`
--


--
-- Table structure for table `leave_rules`
--

CREATE TABLE `leave_rules` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `organization_id` int unsigned NOT NULL,
  `leave_type_id` bigint unsigned NOT NULL,
  `rule_name` varchar(191) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `allocation_type` varchar(191) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL COMMENT 'fixed || working-days',
  `allocation_value` double(8,2) DEFAULT NULL,
  `allocation_leave` double(8,2) DEFAULT NULL,
  `is_complete_month` tinyint NOT NULL DEFAULT '0',
  `entitlement_days` decimal(4,2) DEFAULT NULL,
  `capping_per_month` int DEFAULT NULL,
  `comp_off_validity_type` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT 'days',
  `comp_off_validity` int DEFAULT NULL,
  `is_validity_complete` tinyint NOT NULL DEFAULT '0',
  `min_working_hours` time DEFAULT NULL,
  `working_hours` time DEFAULT NULL,
  `opening_leaves` float DEFAULT NULL,
  `credit_max_year` float DEFAULT NULL,
  `joining_period_days` int DEFAULT NULL,
  `max_cashable` double(8,2) DEFAULT NULL,
  `min_cashable` double(8,2) DEFAULT NULL,
  `max_carryforward` double(8,2) DEFAULT NULL,
  `min_carryforward` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `debit_before_days` double(8,2) DEFAULT NULL,
  `debit_after_days` double(8,2) DEFAULT NULL,
  `debit_max_single` double(8,2) DEFAULT NULL,
  `debit_max_month` double(8,2) DEFAULT NULL,
  `debit_max_quarter` double(8,2) DEFAULT NULL,
  `debit_max_year` double(8,2) DEFAULT NULL,
  `debit_max_service` double(8,2) DEFAULT NULL,
  `debit_apply_after_days` double(8,2) DEFAULT NULL,
  `debit_min_single` double(8,2) DEFAULT NULL,
  `debit_max_attempt_year` double(8,2) DEFAULT NULL,
  `approval_level` int DEFAULT NULL,
  `is_sandwich` tinyint(1) NOT NULL DEFAULT '0',
  `can_club` tinyint(1) NOT NULL DEFAULT '0',
  `status` enum('active','inactive') CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'active',
  `created_by_type` varchar(191) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `created_by` bigint unsigned DEFAULT NULL,
  `updated_by_type` varchar(191) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `updated_by` bigint unsigned DEFAULT NULL,
  `deleted_by_type` varchar(191) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `deleted_by` bigint unsigned DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `leave_rules_organization_id_index` (`organization_id`),
  KEY `leave_rules_leave_type_id_index` (`leave_type_id`),
  KEY `leave_rules_rule_name_index` (`rule_name`),
  KEY `leave_rules_status_index` (`status`),
  KEY `leave_rules_created_by_index` (`created_by`),
  KEY `leave_rules_updated_by_index` (`updated_by`),
  KEY `leave_rules_deleted_by_index` (`deleted_by`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `leave_rules`
--


--
-- Table structure for table `leave_status_logs`
--

CREATE TABLE `leave_status_logs` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `organization_id` bigint unsigned NOT NULL,
  `leave_id` bigint unsigned NOT NULL,
  `approval_level` int unsigned NOT NULL DEFAULT '1',
  `status` varchar(100) NOT NULL,
  `remark` longtext,
  `created_by` bigint unsigned DEFAULT NULL,
  `updated_by` bigint unsigned DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `created_by_type` varchar(100) DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `leave_status_logs_organization_id_foreign` (`organization_id`),
  KEY `leave_status_logs_leave_id_foreign` (`leave_id`),
  KEY `leave_status_logs_created_by_foreign` (`created_by`),
  KEY `leave_status_logs_updated_by_foreign` (`updated_by`)
) ENGINE=InnoDB AUTO_INCREMENT=1793 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `leave_status_logs`
--


--
-- Table structure for table `leave_type_master`
--

CREATE TABLE `leave_type_master` (
  `id` int NOT NULL AUTO_INCREMENT,
  `organization_id` int NOT NULL,
  `leave_type_id` int NOT NULL,
  `is_attachment` varchar(45) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `leave_type_master`
--


--
-- Table structure for table `leave_types`
--

CREATE TABLE `leave_types` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `organization_id` int unsigned NOT NULL,
  `name` varchar(191) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `alias` varchar(191) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `frequency` varchar(191) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `months` varchar(250) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `is_carryforward` tinyint(1) NOT NULL DEFAULT '0',
  `is_cashable` tinyint(1) NOT NULL DEFAULT '0',
  `is_attachment` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'No',
  `is_leave_without_pay` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'No',
  `reset_yearly` tinyint(1) NOT NULL DEFAULT '0',
  `gender` enum('male','female','all') CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'all',
  `maximum_short_hour` time DEFAULT NULL,
  `is_short_leave` tinyint(1) NOT NULL DEFAULT '0',
  `leave_apply_min_days` int unsigned DEFAULT NULL,
  `leave_apply_max_days` int unsigned DEFAULT NULL,
  `status` enum('active','inactive') CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'active',
  `is_comp_off` tinyint(1) NOT NULL DEFAULT '0',
  `comp_off_selection` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'automatic',
  `comp_off_period` int DEFAULT NULL,
  `min_working_hours` time DEFAULT NULL,
  `working_hours` time DEFAULT NULL,
  `is_auto_approval` tinyint NOT NULL DEFAULT '0',
  `auto_approval_days` int DEFAULT NULL,
  `is_auto_cron` tinyint NOT NULL DEFAULT '1',
  `is_quarter_leave_allowed` tinyint NOT NULL DEFAULT '0',
  `created_by_type` varchar(191) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `created_by` bigint unsigned DEFAULT NULL,
  `updated_by_type` varchar(191) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `updated_by` bigint unsigned DEFAULT NULL,
  `deleted_by_type` varchar(191) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `deleted_by` bigint unsigned DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `leave_types_organization_id_index` (`organization_id`),
  KEY `leave_types_name_index` (`name`),
  KEY `leave_types_alias_index` (`alias`),
  KEY `leave_types_frequency_index` (`frequency`),
  KEY `leave_types_gender_index` (`gender`),
  KEY `leave_types_status_index` (`status`),
  KEY `leave_types_created_by_index` (`created_by`),
  KEY `leave_types_updated_by_index` (`updated_by`),
  KEY `leave_types_deleted_by_index` (`deleted_by`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `leave_types`
--


--
-- Table structure for table `leaves`
--

CREATE TABLE `leaves` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `organization_id` int NOT NULL,
  `leave_type_id` bigint unsigned NOT NULL,
  `employee_id` bigint unsigned NOT NULL,
  `from_date` date NOT NULL,
  `to_date` date NOT NULL,
  `no_of_leaves` double(8,2) NOT NULL,
  `reason` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `leave_duration` varchar(99) DEFAULT NULL,
  `status` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'pending',
  `level` tinyint NOT NULL DEFAULT '1',
  `action_at` timestamp NULL DEFAULT NULL,
  `action_by_type` varchar(191) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `action_by` bigint unsigned DEFAULT NULL,
  `action_comments` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `created_by_type` varchar(191) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `created_by` bigint unsigned DEFAULT NULL,
  `updated_by_type` varchar(191) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `updated_by` bigint unsigned DEFAULT NULL,
  `deleted_by_type` varchar(191) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `deleted_by` bigint unsigned DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `user_id` int DEFAULT NULL,
  `is_short_leave` tinyint DEFAULT NULL,
  `short_leave_duration` int DEFAULT NULL,
  `ishalf_day` tinyint DEFAULT NULL,
  `leave_date` date DEFAULT NULL,
  `leave_status` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `duration` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `start_date` date DEFAULT NULL,
  `end_date` date DEFAULT NULL,
  `max_approval_level` int unsigned DEFAULT NULL,
  `current_approval_level` int unsigned DEFAULT NULL,
  `leave_rule_id` bigint unsigned DEFAULT NULL,
  `approver_id` bigint unsigned DEFAULT NULL,
  `from_time` time DEFAULT NULL,
  `to_time` time DEFAULT NULL,
  `comp_off_ids` json DEFAULT NULL,
  `no_of_holidays` int DEFAULT '0',
  `attachment` varchar(500) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `leaves_leave_type_id_index` (`leave_type_id`),
  KEY `leaves_employee_id_index` (`employee_id`),
  KEY `leaves_from_date_index` (`from_date`),
  KEY `leaves_to_date_index` (`to_date`),
  KEY `leaves_no_of_leaves_index` (`no_of_leaves`),
  KEY `leaves_leave_duration_index` (`leave_duration`),
  KEY `leaves_status_index` (`status`),
  KEY `leaves_created_by_index` (`created_by`),
  KEY `leaves_updated_by_index` (`updated_by`),
  KEY `leaves_deleted_by_index` (`deleted_by`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `leaves`
--


--
-- Table structure for table `location_attendance_report`
--

CREATE TABLE `location_attendance_report` (
  `total_present` bigint DEFAULT NULL,
  `attendance_date` date DEFAULT NULL,
  `location_id` int unsigned DEFAULT NULL,
  `early_comer` decimal(25,0) DEFAULT NULL,
  `late_comer` decimal(25,0) DEFAULT NULL,
  `early_depart` decimal(25,0) DEFAULT NULL,
  `late_depart` decimal(25,0) DEFAULT NULL,
  `over_time` double DEFAULT NULL,
  `less_time` double DEFAULT NULL,
  `wfm` bigint DEFAULT NULL,
  `wfo` bigint DEFAULT NULL,
  `od` bigint DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `location_attendance_report`
--


--
-- Table structure for table `locations`
--

CREATE TABLE `locations` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `parent_id` int unsigned DEFAULT NULL,
  `organization_id` int unsigned DEFAULT NULL,
  `name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `geo_address` varchar(599) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `geo_latitude` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `geo_longitude` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `geo_boundaries` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin,
  `status` enum('active','inactive') CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'active',
  `manager_id` int unsigned DEFAULT NULL,
  `radius_in_meter` decimal(14,2) DEFAULT NULL,
  `lat_bounds` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin,
  `lng_bounds` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin,
  `created_by` int unsigned DEFAULT NULL,
  `updated_by` int unsigned DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `locations_organization_id_foreign` (`organization_id`),
  KEY `locations_created_by_foreign` (`created_by`),
  KEY `locations_updated_by_foreign` (`updated_by`),
  KEY `locations_manager_id_foreign` (`manager_id`)
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `locations`
--

INSERT INTO `locations` VALUES (10,NULL,2,'BHUVANESHWAR',NULL,'9Q83+JJP Anlapatana, Odisha, India','20.3665875','85.7540781',NULL,'active',NULL,100.00,'{\"0\":20.3652385197085,\"1\":20.3679364802915}','{\"0\":85.75272911970849,\"1\":85.75542708029151}',73,73,'2024-02-29 12:38:44','2024-02-29 12:39:48',NULL),(11,NULL,3,'Yeshwanthpur',NULL,'Kurlon Limited, Jai Bharat Industrial area, camp road, Muniswara Nagar, Yeswanthpur, Bengaluru, Karnataka, India','13.0316914','77.5427357',NULL,'active',NULL,100.00,'{\"0\":13.0304245697085,\"1\":13.0331225302915}','{\"0\":77.5412864697085,\"1\":77.5439844302915}',67,67,'2024-03-01 11:13:34','2024-03-01 11:13:49',NULL),(12,NULL,1,'Kln',NULL,'505-6, Sarfabad Village, Sarfabad, Sector 73, Noida, Uttar Pradesh 201304, India','28.5868032','77.3914624',NULL,'active',NULL,100.00,NULL,NULL,66,NULL,'2024-09-18 22:51:55','2024-09-18 22:51:55',NULL),(13,NULL,6,'Location 1',NULL,'34- 36, Sector 135, Noida, Nagli Bahrampur, Uttar Pradesh, India','28.4745753','77.3891314',NULL,'active',NULL,60.00,NULL,NULL,78,NULL,'2024-11-15 14:46:54','2024-11-15 14:46:54',NULL),(14,NULL,5,'Meghalaya Industrial Development Corporation Ltd Shillong',NULL,'HVCW+XFP, Nongkynrih, Laitumkhrah, Shillong, Meghalaya 793003, India','25.5724747','91.89620529999999',NULL,'active',NULL,100.00,'{\"0\":25.5711441697085,\"1\":25.5738421302915}','{\"0\":91.89490741970849,\"1\":91.8976053802915}',77,77,'2024-11-26 11:41:27','2024-11-29 15:06:49',NULL),(15,NULL,5,'Meghalaya Industrial Development Corporation Ltd  Tura',NULL,'G56W+FHX, Araimile, Tura, Meghalaya 794101, India','25.511351','90.1965012',NULL,'active',NULL,100.00,NULL,NULL,77,NULL,'2024-11-29 15:07:30','2024-11-29 15:07:30',NULL),(16,NULL,9,'NCR',NULL,'Noida, Uttar Pradesh, India','28.5000627','77.3987478',NULL,'active',NULL,5000.00,'{\"0\":28.40852545946161,\"1\":28.63587813404002}','{\"0\":77.2970943490685,\"1\":77.50655660125601}',85,85,'2024-12-10 18:00:52','2024-12-10 18:03:08',NULL),(17,NULL,8,'Noida',NULL,'Sector 135, near Keshav Das Ashram, Noida, Bajidpur, Uttar Pradesh, India','28.490478','77.389849',NULL,'active',NULL,200.00,NULL,NULL,82,NULL,'2024-12-13 18:43:11','2024-12-13 18:43:11',NULL),(18,NULL,4,'Noida',NULL,'G92X+2G7, Sector 135, Bajidpur, Noida, Uttar Pradesh 201304, India','28.5000949','77.3987737',NULL,'active',NULL,200.00,NULL,NULL,88,NULL,'2024-12-18 12:00:01','2024-12-18 12:00:01',NULL);

--
-- Table structure for table `mail_box`
--

CREATE TABLE `mail_box` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `mail_to` varchar(599) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `mail_cc` varchar(599) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `mail_bcc` varchar(599) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `subject` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `mail_body` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `attachment` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `status` enum('0','1','2') CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '0' COMMENT '0 For Pending, 1 For Complete, 2 For rejected',
  `response` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `category` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `layout` varchar(191) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `mail_box`
--


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

CREATE TABLE `migrations` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `migration` varchar(191) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `batch` int NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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


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

CREATE TABLE `notifications` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `organization_id` int unsigned DEFAULT NULL,
  `read_at` timestamp NULL DEFAULT NULL,
  `data` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `auth_type` varchar(199) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `auth_id` int unsigned DEFAULT NULL,
  `type` varchar(199) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `type_id` int unsigned DEFAULT NULL,
  `title` varchar(299) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `description` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `seen_at` datetime DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `notifiable_id` bigint DEFAULT NULL,
  `notifiable_type` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `notifications_organization_id_foreign` (`organization_id`)
) ENGINE=InnoDB AUTO_INCREMENT=210 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

INSERT INTO `notifications` VALUES (1,1,NULL,NULL,'employee',12128,'ticket',1,'New Ticket','Dear SANJAY KUMAR RATHORE your ticket has been submitted.',NULL,'2024-01-03 10:06:06','2024-01-03 10:06:06',NULL,NULL),(2,1,NULL,NULL,'employee',12018,'ticket',1,'New Ticket','New ticket has been assigned to you and 0 others',NULL,'2024-01-03 10:06:06','2024-01-03 10:06:06',NULL,NULL),(3,1,NULL,NULL,'employee',12128,'ticket',2,'New Ticket','Dear SANJAY KUMAR RATHORE your ticket has been submitted.',NULL,'2024-01-03 10:06:42','2024-01-03 10:06:42',NULL,NULL),(4,1,NULL,NULL,'employee',12018,'ticket',2,'New Ticket','New ticket has been assigned to you and 0 others',NULL,'2024-01-03 10:06:42','2024-01-03 10:06:42',NULL,NULL),(5,1,NULL,NULL,'employee',12128,'task',1,'#1 Task Updated','SANJAY KUMAR RATHORE Updated Task status Open to In Progress',NULL,'2024-01-03 10:35:14','2024-01-03 10:35:14',NULL,NULL),(6,1,NULL,NULL,'employee',12018,'task',1,'#1 Task Updated','SANJAY KUMAR RATHORE Updated Task status Open to In Progress',NULL,'2024-01-03 10:35:14','2024-01-03 10:35:14',NULL,NULL),(7,1,NULL,NULL,'employee',12128,'task',2,'#2 Task Updated','SANJAY KUMAR RATHORE Updated Task status Open to Reopen',NULL,'2024-01-03 10:35:51','2024-01-03 10:35:51',NULL,NULL),(8,1,NULL,NULL,'employee',12018,'task',2,'#2 Task Updated','SANJAY KUMAR RATHORE Updated Task status Open to Reopen',NULL,'2024-01-03 10:35:51','2024-01-03 10:35:51',NULL,NULL),(9,1,NULL,NULL,'employee',12128,'task',2,'#2 Task Updated','SANJAY KUMAR RATHORE Updated Task status Reopen to Open',NULL,'2024-01-03 10:35:54','2024-01-03 10:35:54',NULL,NULL),(10,1,NULL,NULL,'employee',12018,'task',2,'#2 Task Updated','SANJAY KUMAR RATHORE Updated Task status Reopen to Open',NULL,'2024-01-03 10:35:54','2024-01-03 10:35:54',NULL,NULL),(11,1,NULL,NULL,'employee',12128,'ticket',3,'New Ticket','Dear SANJAY KUMAR RATHORE your ticket has been submitted.',NULL,'2024-01-03 10:36:10','2024-01-03 10:36:10',NULL,NULL),(12,1,NULL,NULL,'employee',12018,'ticket',3,'New Ticket','New ticket has been assigned to you and 0 others',NULL,'2024-01-03 10:36:10','2024-01-03 10:36:10',NULL,NULL),(13,1,NULL,NULL,'employee',12128,'ticket',4,'New Ticket','Dear SANJAY KUMAR RATHORE your ticket has been submitted.',NULL,'2024-01-15 10:14:31','2024-01-15 10:14:31',NULL,NULL),(14,1,NULL,NULL,'employee',12018,'ticket',4,'New Ticket','New ticket has been assigned to you and 0 others',NULL,'2024-01-15 10:14:31','2024-01-15 10:14:31',NULL,NULL),(15,1,NULL,NULL,'employee',67,'ticket',5,'New Ticket','Dear undefined your ticket has been submitted.','2024-02-23 19:03:18','2024-01-20 05:13:00','2024-02-23 19:03:18',NULL,NULL),(16,1,NULL,NULL,'employee',11887,'ticket',5,'New Ticket','New ticket has been assigned to you and 0 others',NULL,'2024-01-20 05:13:00','2024-01-20 05:13:00',NULL,NULL),(17,1,NULL,NULL,'employee',67,'ticket',6,'New Ticket','Dear undefined your ticket has been submitted.','2024-02-23 19:03:18','2024-02-01 06:42:49','2024-02-23 19:03:18',NULL,NULL),(18,1,NULL,NULL,'employee',11887,'ticket',6,'New Ticket','New ticket has been assigned to you and 0 others',NULL,'2024-02-01 06:42:49','2024-02-01 06:42:49',NULL,NULL),(19,1,NULL,NULL,'employee',68,'ticket',7,'New Ticket','Dear undefined your ticket has been submitted.','2024-02-02 10:10:45','2024-02-02 10:07:32','2024-02-02 10:10:45',NULL,NULL),(20,1,NULL,NULL,'employee',11887,'ticket',7,'New Ticket','New ticket has been assigned to you and 0 others',NULL,'2024-02-02 10:07:32','2024-02-02 10:07:32',NULL,NULL),(21,1,NULL,NULL,'employee',72,'ticket',8,'New Ticket','Dear undefined your ticket has been submitted.','2024-02-02 10:29:44','2024-02-02 10:29:38','2024-02-02 10:29:44',NULL,NULL),(22,1,NULL,NULL,'employee',11887,'ticket',8,'New Ticket','New ticket has been assigned to you and 0 others','2024-02-07 09:49:38','2024-02-02 10:29:38','2024-02-07 09:49:38',NULL,NULL),(23,1,NULL,NULL,'employee',11993,'ticket',9,'New Ticket','Dear SUHAS M your ticket has been submitted.','2024-02-06 10:42:03','2024-02-06 10:41:56','2024-02-06 10:42:03',NULL,NULL),(24,1,NULL,NULL,'employee',11887,'ticket',9,'New Ticket','New ticket has been assigned to you and 0 others',NULL,'2024-02-06 10:41:56','2024-02-06 10:41:56',NULL,NULL),(25,1,NULL,NULL,'employee',11962,'ticket',10,'New Ticket','Dear NIKIL S J your ticket has been submitted.','2024-02-06 11:30:20','2024-02-06 11:29:10','2024-02-06 11:30:20',NULL,NULL),(26,1,NULL,NULL,'employee',11887,'ticket',10,'New Ticket','New ticket has been assigned to you and 0 others',NULL,'2024-02-06 11:29:10','2024-02-06 11:29:10',NULL,NULL),(27,1,NULL,NULL,'employee',67,'ticket',11,'New Ticket','Dear undefined your ticket has been submitted.','2024-02-23 19:03:18','2024-02-07 08:50:14','2024-02-23 19:03:18',NULL,NULL),(28,1,NULL,NULL,'employee',11887,'ticket',11,'New Ticket','New ticket has been assigned to you and 0 others','2024-02-07 09:45:09','2024-02-07 08:50:14','2024-02-07 09:45:09',NULL,NULL),(29,1,NULL,NULL,'employee',11887,'task',11,'#11 Task Updated','Johnson Samuel Updated Task status Open to In Progress',NULL,'2024-02-07 09:04:30','2024-02-07 09:04:30',NULL,NULL),(30,1,NULL,NULL,'employee',11887,'task',11,'#11 Task Updated','Johnson Samuel Updated Task status Open to In Progress',NULL,'2024-02-07 09:04:30','2024-02-07 09:04:30',NULL,NULL),(31,1,NULL,NULL,'employee',11887,'task',11,'#11 Task Updated','Johnson Samuel Updated Task status In Progress to Closed',NULL,'2024-02-07 09:04:41','2024-02-07 09:04:41',NULL,NULL),(32,1,NULL,NULL,'employee',11887,'task',11,'#11 Task Updated','Johnson Samuel Updated Task status In Progress to Closed',NULL,'2024-02-07 09:04:41','2024-02-07 09:04:41',NULL,NULL),(33,1,NULL,NULL,'employee',11887,'task',10,'#10 Task Updated','Johnson Samuel Updated Task status Open to Closed','2024-02-07 09:47:30','2024-02-07 09:46:25','2024-02-07 09:47:30',NULL,NULL),(34,1,NULL,NULL,'employee',11887,'task',10,'#10 Task Updated','Johnson Samuel Updated Task status Open to Closed',NULL,'2024-02-07 09:46:25','2024-02-07 09:46:25',NULL,NULL),(35,1,NULL,NULL,'employee',11887,'task',5,'#5 Task Updated','Johnson Samuel Updated Task status Open to Closed',NULL,'2024-02-08 06:53:12','2024-02-08 06:53:12',NULL,NULL),(36,1,NULL,NULL,'employee',11887,'task',5,'#5 Task Updated','Johnson Samuel Updated Task status Open to Closed',NULL,'2024-02-08 06:53:12','2024-02-08 06:53:12',NULL,NULL),(37,1,NULL,NULL,'employee',11887,'task',9,'#9 Task Updated','Johnson Samuel Updated Task status Open to Closed',NULL,'2024-02-08 06:55:10','2024-02-08 06:55:10',NULL,NULL),(38,1,NULL,NULL,'employee',11887,'task',9,'#9 Task Updated','Johnson Samuel Updated Task status Open to Closed',NULL,'2024-02-08 06:55:10','2024-02-08 06:55:10',NULL,NULL),(39,1,NULL,NULL,'employee',11887,'task',8,'#8 Task Updated','Johnson Samuel Updated Task status Open to Closed',NULL,'2024-02-08 06:56:37','2024-02-08 06:56:37',NULL,NULL),(40,1,NULL,NULL,'employee',11887,'task',8,'#8 Task Updated','Johnson Samuel Updated Task status Open to Closed',NULL,'2024-02-08 06:56:38','2024-02-08 06:56:38',NULL,NULL),(41,1,NULL,NULL,'employee',11887,'task',7,'#7 Task Updated','Johnson Samuel Updated Task status Open to Closed',NULL,'2024-02-08 06:57:49','2024-02-08 06:57:49',NULL,NULL),(42,1,NULL,NULL,'employee',11887,'task',7,'#7 Task Updated','Johnson Samuel Updated Task status Open to Closed','2024-02-27 05:11:59','2024-02-08 06:57:49','2024-02-27 05:11:59',NULL,NULL),(43,1,NULL,NULL,'employee',11887,'task',6,'#6 Task Updated','Johnson Samuel Updated Task status Open to Closed',NULL,'2024-02-08 06:58:30','2024-02-08 06:58:30',NULL,NULL),(44,1,NULL,NULL,'employee',11887,'task',6,'#6 Task Updated','Johnson Samuel Updated Task status Open to Closed',NULL,'2024-02-08 06:58:30','2024-02-08 06:58:30',NULL,NULL),(45,1,NULL,NULL,'employee',67,'ticket',14,'New Ticket','Dear undefined your ticket has been submitted.','2024-02-23 19:03:18','2024-02-23 04:53:37','2024-02-23 19:03:18',NULL,NULL),(46,1,NULL,NULL,'employee',11763,'ticket',14,'New Ticket','New ticket has been assigned to you and 0 others',NULL,'2024-02-23 04:53:37','2024-02-23 04:53:37',NULL,NULL),(47,1,NULL,NULL,'employee',67,'ticket',18,'New Ticket','Dear undefined your ticket has been submitted.','2024-02-23 19:03:18','2024-02-23 07:31:09','2024-02-23 19:03:18',NULL,NULL),(48,1,NULL,NULL,'employee',11763,'ticket',18,'New Ticket','New ticket has been assigned to you and 0 others',NULL,'2024-02-23 07:31:09','2024-02-23 07:31:09',NULL,NULL),(49,1,NULL,NULL,'employee',11993,'ticket',19,'New Ticket','Dear SUHAS M your ticket has been submitted.','2024-02-23 13:30:50','2024-02-23 13:30:40','2024-02-23 13:30:50',NULL,NULL),(50,1,NULL,NULL,'employee',11887,'ticket',19,'New Ticket','New ticket has been assigned to you and 1 others',NULL,'2024-02-23 13:30:40','2024-02-23 13:30:40',NULL,NULL),(51,1,NULL,NULL,'employee',12273,'ticket',19,'New Ticket','New ticket has been assigned to you and 1 others',NULL,'2024-02-23 13:30:40','2024-02-23 13:30:40',NULL,NULL),(52,1,NULL,NULL,'employee',72,'ticket',20,'New Ticket','Dear undefined your ticket has been submitted.','2024-02-26 06:38:06','2024-02-26 06:37:55','2024-02-26 06:38:06',NULL,NULL),(53,1,NULL,NULL,'employee',11763,'ticket',20,'New Ticket','New ticket has been assigned to you and 0 others',NULL,'2024-02-26 06:37:55','2024-02-26 06:37:55',NULL,NULL),(54,1,NULL,NULL,'employee',72,'ticket',21,'New Ticket','Dear undefined your ticket has been submitted.','2024-02-27 09:05:05','2024-02-27 05:09:12','2024-02-27 09:05:05',NULL,NULL),(55,1,NULL,NULL,'employee',11887,'ticket',21,'New Ticket','New ticket has been assigned to you and 1 others',NULL,'2024-02-27 05:09:12','2024-02-27 05:09:12',NULL,NULL),(56,1,NULL,NULL,'employee',12273,'ticket',21,'New Ticket','New ticket has been assigned to you and 1 others',NULL,'2024-02-27 05:09:12','2024-02-27 05:09:12',NULL,NULL),(57,1,NULL,NULL,'employee',11887,'task',19,'#19 Task Updated','Johnson Samuel Updated Task status Open to Closed',NULL,'2024-02-27 05:30:22','2024-02-27 05:30:22',NULL,NULL),(58,1,NULL,NULL,'employee',11887,'task',19,'#19 Task Updated','Johnson Samuel Updated Task status Open to Closed',NULL,'2024-02-27 05:30:22','2024-02-27 05:30:22',NULL,NULL),(59,1,NULL,NULL,'employee',12273,'task',19,'#19 Task Updated','Johnson Samuel Updated Task status Open to Closed',NULL,'2024-02-27 05:30:22','2024-02-27 05:30:22',NULL,NULL),(60,1,NULL,NULL,'employee',11887,'task',21,'#21 Task Updated','Johnson Samuel Updated Task status Open to Closed',NULL,'2024-02-27 05:31:50','2024-02-27 05:31:50',NULL,NULL),(61,1,NULL,NULL,'employee',11887,'task',21,'#21 Task Updated','Johnson Samuel Updated Task status Open to Closed',NULL,'2024-02-27 05:31:50','2024-02-27 05:31:50',NULL,NULL),(62,1,NULL,NULL,'employee',12273,'task',21,'#21 Task Updated','Johnson Samuel Updated Task status Open to Closed',NULL,'2024-02-27 05:31:50','2024-02-27 05:31:50',NULL,NULL),(63,1,NULL,NULL,'employee',11993,'task',19,'#19 Task Updated','SUHAS M Updated Task status Closed to Reopen','2024-02-27 05:53:41','2024-02-27 05:51:43','2024-02-27 05:53:41',NULL,NULL),(64,1,NULL,NULL,'employee',11887,'task',19,'#19 Task Updated','SUHAS M Updated Task status Closed to Reopen',NULL,'2024-02-27 05:51:43','2024-02-27 05:51:43',NULL,NULL),(65,1,NULL,NULL,'employee',12273,'task',19,'#19 Task Updated','SUHAS M Updated Task status Closed to Reopen',NULL,'2024-02-27 05:51:43','2024-02-27 05:51:43',NULL,NULL),(66,1,NULL,NULL,'employee',11993,'task',19,'#19 Task Updated','SUHAS M Updated Task status Reopen to Closed',NULL,'2024-02-27 05:55:10','2024-02-27 05:55:10',NULL,NULL),(67,1,NULL,NULL,'employee',11887,'task',19,'#19 Task Updated','SUHAS M Updated Task status Reopen to Closed',NULL,'2024-02-27 05:55:10','2024-02-27 05:55:10',NULL,NULL),(68,1,NULL,NULL,'employee',12273,'task',19,'#19 Task Updated','SUHAS M Updated Task status Reopen to Closed',NULL,'2024-02-27 05:55:10','2024-02-27 05:55:10',NULL,NULL),(69,1,NULL,NULL,'employee',11887,'ticket',22,'New Ticket','Dear Johnson Samuel your ticket has been submitted.',NULL,'2024-02-27 06:13:25','2024-02-27 06:13:25',NULL,NULL),(70,1,NULL,NULL,'employee',11887,'ticket',22,'New Ticket','New ticket has been assigned to you and 1 others','2024-02-27 06:14:04','2024-02-27 06:13:25','2024-02-27 06:14:04',NULL,NULL),(71,1,NULL,NULL,'employee',12273,'ticket',22,'New Ticket','New ticket has been assigned to you and 1 others',NULL,'2024-02-27 06:13:25','2024-02-27 06:13:25',NULL,NULL),(72,3,NULL,NULL,'employee',67,'ticket',23,'New Ticket','Dear undefined your ticket has been submitted.','2024-02-28 14:04:27','2024-02-27 10:13:02','2024-02-28 14:04:27',NULL,NULL),(73,3,NULL,NULL,'employee',11887,'ticket',23,'New Ticket','New ticket has been assigned to you and 1 others',NULL,'2024-02-27 10:13:02','2024-02-27 10:13:02',NULL,NULL),(74,3,NULL,NULL,'employee',12273,'ticket',23,'New Ticket','New ticket has been assigned to you and 1 others',NULL,'2024-02-27 10:13:02','2024-02-27 10:13:02',NULL,NULL),(75,3,NULL,NULL,'employee',67,'ticket',24,'New Ticket','Dear undefined your ticket has been submitted.','2024-02-28 14:04:27','2024-02-28 06:09:50','2024-02-28 14:04:27',NULL,NULL),(76,3,NULL,NULL,'employee',11887,'ticket',24,'New Ticket','New ticket has been assigned to you and 1 others',NULL,'2024-02-28 06:09:50','2024-02-28 06:09:50',NULL,NULL),(77,3,NULL,NULL,'employee',12273,'ticket',24,'New Ticket','New ticket has been assigned to you and 1 others',NULL,'2024-02-28 06:09:50','2024-02-28 06:09:50',NULL,NULL),(78,3,NULL,NULL,'employee',67,'ticket',25,'New Ticket','Dear undefined your ticket has been submitted.','2024-02-28 14:04:27','2024-02-28 06:12:42','2024-02-28 14:04:27',NULL,NULL),(79,3,NULL,NULL,'employee',12273,'ticket',25,'New Ticket','New ticket has been assigned to you and 1 others',NULL,'2024-02-28 06:12:42','2024-02-28 06:12:42',NULL,NULL),(80,3,NULL,NULL,'employee',11887,'ticket',25,'New Ticket','New ticket has been assigned to you and 1 others',NULL,'2024-02-28 06:12:42','2024-02-28 06:12:42',NULL,NULL),(81,1,NULL,NULL,'employee',11635,'ticket',26,'New Ticket','Dear DINESHA your ticket has been submitted.','2024-02-28 08:29:19','2024-02-28 07:38:06','2024-02-28 08:29:19',NULL,NULL),(82,1,NULL,NULL,'employee',11887,'ticket',26,'New Ticket','New ticket has been assigned to you and 1 others','2024-03-15 08:19:01','2024-02-28 07:38:06','2024-03-15 08:19:01',NULL,NULL),(83,1,NULL,NULL,'employee',12273,'ticket',26,'New Ticket','New ticket has been assigned to you and 1 others',NULL,'2024-02-28 07:38:06','2024-02-28 07:38:06',NULL,NULL),(84,1,NULL,NULL,'employee',12273,'task',26,'#26 Task Updated','RAJKUMAR S Updated Task status Open to Closed',NULL,'2024-02-28 10:20:27','2024-02-28 10:20:27',NULL,NULL),(85,1,NULL,NULL,'employee',11887,'task',26,'#26 Task Updated','RAJKUMAR S Updated Task status Open to Closed',NULL,'2024-02-28 10:20:27','2024-02-28 10:20:27',NULL,NULL),(86,1,NULL,NULL,'employee',12273,'task',26,'#26 Task Updated','RAJKUMAR S Updated Task status Open to Closed',NULL,'2024-02-28 10:20:27','2024-02-28 10:20:27',NULL,NULL),(87,1,NULL,NULL,'employee',12273,'task',26,'#26 Task Updated','RAJKUMAR S Updated Task status Closed to Open',NULL,'2024-02-28 10:20:31','2024-02-28 10:20:31',NULL,NULL),(88,1,NULL,NULL,'employee',11887,'task',26,'#26 Task Updated','RAJKUMAR S Updated Task status Closed to Open',NULL,'2024-02-28 10:20:31','2024-02-28 10:20:31',NULL,NULL),(89,1,NULL,NULL,'employee',12273,'task',26,'#26 Task Updated','RAJKUMAR S Updated Task status Closed to Open',NULL,'2024-02-28 10:20:31','2024-02-28 10:20:31',NULL,NULL),(90,1,NULL,NULL,'employee',68,'ticket',27,'New Ticket','Dear undefined your ticket has been submitted.',NULL,'2024-03-01 04:46:27','2024-03-01 04:46:27',NULL,NULL),(91,1,NULL,NULL,'employee',11887,'ticket',27,'New Ticket','New ticket has been assigned to you and 1 others',NULL,'2024-03-01 04:46:27','2024-03-01 04:46:27',NULL,NULL),(92,1,NULL,NULL,'employee',12273,'ticket',27,'New Ticket','New ticket has been assigned to you and 1 others',NULL,'2024-03-01 04:46:27','2024-03-01 04:46:27',NULL,NULL),(93,1,NULL,NULL,'employee',11887,'task',27,'#27 Task Updated','Johnson Samuel Updated Task status Open to Closed',NULL,'2024-03-15 08:19:58','2024-03-15 08:19:58',NULL,NULL),(94,1,NULL,NULL,'employee',11887,'task',27,'#27 Task Updated','Johnson Samuel Updated Task status Open to Closed',NULL,'2024-03-15 08:19:58','2024-03-15 08:19:58',NULL,NULL),(95,1,NULL,NULL,'employee',12273,'task',27,'#27 Task Updated','Johnson Samuel Updated Task status Open to Closed',NULL,'2024-03-15 08:19:58','2024-03-15 08:19:58',NULL,NULL),(96,1,NULL,NULL,'employee',11887,'task',26,'#26 Task Updated','Johnson Samuel Updated Task status Open to Closed',NULL,'2024-03-15 08:20:10','2024-03-15 08:20:10',NULL,NULL),(97,1,NULL,NULL,'employee',11887,'task',26,'#26 Task Updated','Johnson Samuel Updated Task status Open to Closed',NULL,'2024-03-15 08:20:10','2024-03-15 08:20:10',NULL,NULL),(98,1,NULL,NULL,'employee',12273,'task',26,'#26 Task Updated','Johnson Samuel Updated Task status Open to Closed',NULL,'2024-03-15 08:20:10','2024-03-15 08:20:10',NULL,NULL),(99,1,NULL,NULL,'employee',11887,'task',26,'#26 Task Updated','Johnson Samuel Updated Task status Closed to Open',NULL,'2024-03-15 08:20:14','2024-03-15 08:20:14',NULL,NULL),(100,1,NULL,NULL,'employee',11887,'task',26,'#26 Task Updated','Johnson Samuel Updated Task status Closed to Open',NULL,'2024-03-15 08:20:14','2024-03-15 08:20:14',NULL,NULL),(101,1,NULL,NULL,'employee',12273,'task',26,'#26 Task Updated','Johnson Samuel Updated Task status Closed to Open',NULL,'2024-03-15 08:20:14','2024-03-15 08:20:14',NULL,NULL),(102,1,NULL,NULL,'employee',11887,'task',26,'#26 Task Updated','Johnson Samuel Updated Task status Open to Closed',NULL,'2024-03-15 08:21:05','2024-03-15 08:21:05',NULL,NULL),(103,1,NULL,NULL,'employee',11887,'task',26,'#26 Task Updated','Johnson Samuel Updated Task status Open to Closed',NULL,'2024-03-15 08:21:05','2024-03-15 08:21:05',NULL,NULL),(104,1,NULL,NULL,'employee',12273,'task',26,'#26 Task Updated','Johnson Samuel Updated Task status Open to Closed',NULL,'2024-03-15 08:21:05','2024-03-15 08:21:05',NULL,NULL),(105,1,NULL,NULL,'employee',11887,'task',25,'#25 Task Updated','Johnson Samuel Updated Task status Open to Closed',NULL,'2024-03-15 08:22:18','2024-03-15 08:22:18',NULL,NULL),(106,1,NULL,NULL,'employee',12273,'task',25,'#25 Task Updated','Johnson Samuel Updated Task status Open to Closed',NULL,'2024-03-15 08:22:18','2024-03-15 08:22:18',NULL,NULL),(107,1,NULL,NULL,'employee',11887,'task',25,'#25 Task Updated','Johnson Samuel Updated Task status Open to Closed',NULL,'2024-03-15 08:22:18','2024-03-15 08:22:18',NULL,NULL),(108,1,NULL,NULL,'employee',11887,'task',24,'#24 Task Updated','Johnson Samuel Updated Task status Open to Closed',NULL,'2024-03-15 08:30:21','2024-03-15 08:30:21',NULL,NULL),(109,1,NULL,NULL,'employee',11887,'task',24,'#24 Task Updated','Johnson Samuel Updated Task status Open to Closed',NULL,'2024-03-15 08:30:21','2024-03-15 08:30:21',NULL,NULL),(110,1,NULL,NULL,'employee',12273,'task',24,'#24 Task Updated','Johnson Samuel Updated Task status Open to Closed',NULL,'2024-03-15 08:30:21','2024-03-15 08:30:21',NULL,NULL),(111,1,NULL,NULL,'employee',11887,'task',23,'#23 Task Updated','Johnson Samuel Updated Task status Open to Closed',NULL,'2024-03-15 08:30:36','2024-03-15 08:30:36',NULL,NULL),(112,1,NULL,NULL,'employee',11887,'task',23,'#23 Task Updated','Johnson Samuel Updated Task status Open to Closed',NULL,'2024-03-15 08:30:36','2024-03-15 08:30:36',NULL,NULL),(113,1,NULL,NULL,'employee',12273,'task',23,'#23 Task Updated','Johnson Samuel Updated Task status Open to Closed',NULL,'2024-03-15 08:30:36','2024-03-15 08:30:36',NULL,NULL),(114,1,NULL,NULL,'employee',11887,'task',22,'#22 Task Updated','Johnson Samuel Updated Task status Open to Closed',NULL,'2024-03-15 08:31:30','2024-03-15 08:31:30',NULL,NULL),(115,1,NULL,NULL,'employee',11887,'task',22,'#22 Task Updated','Johnson Samuel Updated Task status Open to Closed',NULL,'2024-03-15 08:31:30','2024-03-15 08:31:30',NULL,NULL),(116,1,NULL,NULL,'employee',12273,'task',22,'#22 Task Updated','Johnson Samuel Updated Task status Open to Closed',NULL,'2024-03-15 08:31:30','2024-03-15 08:31:30',NULL,NULL),(117,NULL,NULL,'{\"request_id\":\"20\",\"request_table\":\"erp_legals\",\"username\":\"Saurav Bhardwaj\",\"title\":\"Assignment Notification\",\"message\":\"Dear Saurav Bhardwaj, a new Request (Request ID: 20) has been assigned to you. Please review the details and take the necessary action. Thank you for your prompt attention.\"}','',0,'App\\Notifications\\GeneralNotification',NULL,'',NULL,NULL,'2024-09-21 18:02:24','2024-09-21 18:02:24',12395,'App\\Models\\Employee'),(118,5,NULL,NULL,'employee',12406,'task',8,'New Task','Inder Singh Dasila added new task',NULL,'2024-09-22 11:11:17','2024-09-22 11:11:17',NULL,NULL),(119,5,NULL,NULL,'employee',12397,'task',8,'New task','Inder Singh Dasila has assigned task to you and 1 others',NULL,'2024-09-22 11:11:17','2024-09-22 11:11:17',NULL,NULL),(120,5,NULL,NULL,'employee',12406,'task',9,'New Task','Inder Singh Dasila added new task',NULL,'2024-09-22 11:12:21','2024-09-22 11:12:21',NULL,NULL),(121,5,NULL,NULL,'employee',12406,'task',10,'New Task','Inder Singh Dasila added new task',NULL,'2024-09-22 11:13:08','2024-09-22 11:13:08',NULL,NULL),(122,5,NULL,NULL,'employee',12404,'task',10,'New task','Inder Singh Dasila has assigned task to you and 1 others',NULL,'2024-09-22 11:13:08','2024-09-22 11:13:08',NULL,NULL),(123,5,NULL,NULL,'employee',12406,'task',11,'New Task','Inder Singh Dasila added new task',NULL,'2024-09-22 11:39:10','2024-09-22 11:39:10',NULL,NULL),(124,5,NULL,NULL,'employee',12406,'task',11,'New task','Inder Singh Dasila has assigned task to you and 1 others',NULL,'2024-09-22 11:39:10','2024-09-22 11:39:10',NULL,NULL),(125,5,NULL,NULL,'employee',12406,'task',8,'#8 Task Updated','Inder Singh Dasila Updated Task status Open to Closed',NULL,'2024-09-22 11:42:31','2024-09-22 11:42:31',NULL,NULL),(126,5,NULL,NULL,'employee',12406,'task',8,'#8 Task Updated','Inder Singh Dasila Updated Task status Open to Closed',NULL,'2024-09-22 11:42:31','2024-09-22 11:42:31',NULL,NULL),(127,5,NULL,NULL,'employee',12406,'task',13,'#13 Task Updated','Inder Singh Dasila Updated Task status Open to Closed',NULL,'2024-09-22 11:47:20','2024-09-22 11:47:20',NULL,NULL),(128,5,NULL,NULL,'employee',12406,'task',13,'#13 Task Updated','Inder Singh Dasila Updated Task status Open to Closed',NULL,'2024-09-22 11:47:20','2024-09-22 11:47:20',NULL,NULL),(129,5,NULL,NULL,'employee',12406,'task',13,'#13 Task Updated','Inder Singh Dasila Updated Task status Open to Closed',NULL,'2024-09-22 11:47:44','2024-09-22 11:47:44',NULL,NULL),(130,5,NULL,NULL,'employee',12406,'task',13,'#13 Task Updated','Inder Singh Dasila Updated Task status Open to Closed',NULL,'2024-09-22 11:47:44','2024-09-22 11:47:44',NULL,NULL),(131,5,NULL,NULL,'employee',12406,'task',18,'New Task','Inder Singh Dasila added new task',NULL,'2024-09-23 15:51:31','2024-09-23 15:51:31',NULL,NULL),(132,5,NULL,NULL,'employee',12406,'task',18,'New task','Inder Singh Dasila has assigned task to you and 1 others',NULL,'2024-09-23 15:51:31','2024-09-23 15:51:31',NULL,NULL),(133,5,NULL,NULL,'employee',12406,'task',19,'New Task','Inder Singh Dasila added new task',NULL,'2024-09-23 15:52:03','2024-09-23 15:52:03',NULL,NULL),(134,5,NULL,NULL,'employee',12406,'task',19,'New task','Inder Singh Dasila has assigned task to you and 1 others',NULL,'2024-09-23 15:52:03','2024-09-23 15:52:03',NULL,NULL),(135,5,NULL,NULL,'employee',12406,'task',19,'#19 Task Updated','Inder Singh Dasila Updated Task status Open to In Progress',NULL,'2024-09-23 15:53:15','2024-09-23 15:53:15',NULL,NULL),(136,5,NULL,NULL,'employee',12406,'task',19,'#19 Task Updated','Inder Singh Dasila Updated Task status Open to In Progress',NULL,'2024-09-23 15:53:15','2024-09-23 15:53:15',NULL,NULL),(137,5,NULL,NULL,'employee',12406,'task',20,'New Task','Inder Singh Dasila added new task',NULL,'2024-09-24 07:11:42','2024-09-24 07:11:42',NULL,NULL),(138,5,NULL,NULL,'employee',12406,'task',20,'New task','Inder Singh Dasila has assigned task to you and 1 others',NULL,'2024-09-24 07:11:42','2024-09-24 07:11:42',NULL,NULL),(139,5,NULL,NULL,'employee',12406,'task',20,'#20 Task Updated','Inder Singh Dasila Updated Task status Open to Closed',NULL,'2024-09-24 07:14:09','2024-09-24 07:14:09',NULL,NULL),(140,5,NULL,NULL,'employee',12406,'task',20,'#20 Task Updated','Inder Singh Dasila Updated Task status Open to Closed',NULL,'2024-09-24 07:14:09','2024-09-24 07:14:09',NULL,NULL),(141,5,NULL,NULL,'employee',12406,'task',23,'New Task','Inder Singh Dasila added new task',NULL,'2024-10-14 10:24:53','2024-10-14 10:24:53',NULL,NULL),(142,5,NULL,NULL,'employee',12398,'task',23,'New task','Inder Singh Dasila has assigned task to you and 1 others',NULL,'2024-10-14 10:24:54','2024-10-14 10:24:54',NULL,NULL),(143,5,NULL,NULL,'employee',12404,'task',31,'New Task','Rahul Upadhyay added new task',NULL,'2024-10-25 06:45:38','2024-10-25 06:45:38',NULL,NULL),(144,5,NULL,NULL,'employee',12404,'task',35,'New Task','Rahul Upadhyay added new task',NULL,'2024-10-28 05:38:46','2024-10-28 05:38:46',NULL,NULL),(145,5,NULL,NULL,'employee',12399,'task',35,'New task','Rahul Upadhyay has assigned task to you and 1 others',NULL,'2024-10-28 05:38:46','2024-10-28 05:38:46',NULL,NULL),(146,5,NULL,NULL,'employee',12404,'task',35,'#35 Task Updated','Rahul Upadhyay Updated Task status Open to Closed',NULL,'2024-10-28 05:42:13','2024-10-28 05:42:13',NULL,NULL),(147,5,NULL,NULL,'employee',12404,'task',35,'#35 Task Updated','Rahul Upadhyay Updated Task status Open to Closed',NULL,'2024-10-28 05:42:14','2024-10-28 05:42:14',NULL,NULL),(148,5,NULL,NULL,'employee',12412,'task',38,'New Task','S Kharjana added new task',NULL,'2024-11-28 07:43:07','2024-11-28 07:43:07',NULL,NULL),(149,5,NULL,NULL,'employee',12412,'task',38,'New task','S Kharjana has assigned task to you and 1 others',NULL,'2024-11-28 07:43:07','2024-11-28 07:43:07',NULL,NULL),(150,5,NULL,NULL,'employee',12412,'task',39,'New Task','S Kharjana added new task',NULL,'2024-11-28 07:44:11','2024-11-28 07:44:11',NULL,NULL),(151,5,NULL,NULL,'employee',12412,'task',39,'New task','S Kharjana has assigned task to you and 1 others',NULL,'2024-11-28 07:44:11','2024-11-28 07:44:11',NULL,NULL),(152,5,NULL,NULL,'employee',12412,'task',40,'New Task','S Kharjana added new task',NULL,'2024-11-28 07:45:43','2024-11-28 07:45:43',NULL,NULL),(153,5,NULL,NULL,'employee',12412,'task',40,'New task','S Kharjana has assigned task to you and 1 others',NULL,'2024-11-28 07:45:43','2024-11-28 07:45:43',NULL,NULL),(154,5,NULL,NULL,'employee',12412,'task',39,'#39 Task Updated','S Kharjana Updated Task status Open to Closed',NULL,'2024-11-28 07:57:04','2024-11-28 07:57:04',NULL,NULL),(155,5,NULL,NULL,'employee',12412,'task',39,'#39 Task Updated','S Kharjana Updated Task status Open to Closed',NULL,'2024-11-28 07:57:04','2024-11-28 07:57:04',NULL,NULL),(156,5,NULL,NULL,'employee',12412,'task',38,'#38 Task Updated','S Kharjana Updated Task status Open to In Progress',NULL,'2024-11-28 07:58:37','2024-11-28 07:58:37',NULL,NULL),(157,5,NULL,NULL,'employee',12412,'task',38,'#38 Task Updated','S Kharjana Updated Task status Open to In Progress',NULL,'2024-11-28 07:58:37','2024-11-28 07:58:37',NULL,NULL),(158,5,NULL,NULL,'employee',12412,'task',43,'New Task','S Kharjana added new task',NULL,'2024-11-28 08:36:32','2024-11-28 08:36:32',NULL,NULL),(159,5,NULL,NULL,'employee',12412,'task',43,'New task','S Kharjana has assigned task to you and 1 others',NULL,'2024-11-28 08:36:32','2024-11-28 08:36:32',NULL,NULL),(160,5,NULL,NULL,'employee',12412,'task',43,'#43 Task Updated','S Kharjana Updated Task status Open to Open',NULL,'2024-11-28 08:37:38','2024-11-28 08:37:38',NULL,NULL),(161,5,NULL,NULL,'employee',12412,'task',43,'#43 Task Updated','S Kharjana Updated Task status Open to Open',NULL,'2024-11-28 08:37:38','2024-11-28 08:37:38',NULL,NULL),(162,5,NULL,NULL,'employee',12398,'task',46,'New Task','Mahesh Bhatt added new task',NULL,'2024-12-09 05:05:13','2024-12-09 05:05:13',NULL,NULL),(163,5,NULL,NULL,'employee',12398,'task',46,'New task','Mahesh Bhatt has assigned task to you and 1 others',NULL,'2024-12-09 05:05:14','2024-12-09 05:05:14',NULL,NULL),(164,5,NULL,NULL,'employee',12398,'task',47,'New Task','Mahesh Bhatt added new task',NULL,'2024-12-09 05:06:21','2024-12-09 05:06:21',NULL,NULL),(165,5,NULL,NULL,'employee',12398,'task',47,'New task','Mahesh Bhatt has assigned task to you and 1 others',NULL,'2024-12-09 05:06:21','2024-12-09 05:06:21',NULL,NULL),(166,5,NULL,NULL,'employee',12398,'task',48,'New Task','Mahesh Bhatt added new task',NULL,'2024-12-09 05:07:00','2024-12-09 05:07:00',NULL,NULL),(167,5,NULL,'{\"source_id\":43,\"title\":\"Loan Submission\",\"description\":\"Dear Mahesh Bhatt, a new loan [Loan ID: TL-3] has been submitted and is pending your approval.\",\"notifiable_id\":12398,\"notifiable_type\":\"App\\\\Models\\\\Employee\",\"type\":\"App\\\\Models\\\\HomeLoan\",\"created_at\":\"2025-02-12T05:39:05.030083Z\"}','App\\Models\\User',84,'App\\Models\\HomeLoan',43,'Loan Submission','Dear Mahesh Bhatt, a new loan [Loan ID: TL-3] has been submitted and is pending your approval.',NULL,'2025-02-12 05:39:05','2025-02-12 05:39:05',12398,'employee'),(168,5,NULL,'{\"source_id\":43,\"title\":\"Legal Application Submission :FY24-2\",\"description\":\"Dear Mahesh Bhatt, a new Legal Application [ID: FY24-2] has been submitted and is pending your approval.\",\"notifiable_id\":12398,\"notifiable_type\":\"App\\\\Models\\\\Employee\",\"created_at\":\"2025-02-18T14:17:31.844841Z\"}','App\\Models\\User',84,'App\\Notifications\\LegalNotification',43,'Legal Application Submission :FY24-2','Dear Mahesh Bhatt, a new Legal Application [ID: FY24-2] has been submitted and is pending your approval.',NULL,'2025-02-18 14:17:31','2025-02-18 14:17:31',12398,'App\\Models\\Employee'),(169,5,NULL,'{\"source_id\":2,\"title\":\"File Tracking\",\"description\":\"Dear Mahesh Bhatt, a new file tracking [ID: FT-2] has been added and is pending your approval.\",\"notifiable_id\":12398,\"notifiable_type\":\"App\\\\Models\\\\Employee\",\"type\":\"App\\\\Models\\\\FileTracking\",\"created_at\":\"2025-02-18T14:39:05.737432Z\"}','App\\Models\\User',84,'App\\Models\\FileTracking',2,'File Tracking','Dear Mahesh Bhatt, a new file tracking [ID: FT-2] has been added and is pending your approval.',NULL,'2025-02-18 14:39:05','2025-02-18 14:39:05',12398,'App\\Models\\Employee'),(170,5,NULL,'{\"source_id\":44,\"title\":\"Legal Application Submission :FY24-3\",\"description\":\"Dear Mahesh Bhatt, a new Legal Application [ID: FY24-3] has been submitted and is pending your approval.\",\"notifiable_id\":12398,\"notifiable_type\":\"App\\\\Models\\\\Employee\",\"created_at\":\"2025-02-19T02:23:23.052553Z\"}','App\\Models\\User',84,'App\\Notifications\\LegalNotification',44,'Legal Application Submission :FY24-3','Dear Mahesh Bhatt, a new Legal Application [ID: FY24-3] has been submitted and is pending your approval.',NULL,'2025-02-19 02:23:23','2025-02-19 02:23:23',12398,'App\\Models\\Employee'),(171,5,NULL,'{\"source_id\":45,\"title\":\"Legal Application Submission :FY24-4\",\"description\":\"Dear Mahesh Bhatt, a new Legal Application [ID: FY24-4] has been submitted and is pending your approval.\",\"notifiable_id\":12398,\"notifiable_type\":\"App\\\\Models\\\\Employee\",\"created_at\":\"2025-02-19T04:02:05.920148Z\"}','App\\Models\\User',84,'App\\Notifications\\LegalNotification',45,'Legal Application Submission :FY24-4','Dear Mahesh Bhatt, a new Legal Application [ID: FY24-4] has been submitted and is pending your approval.',NULL,'2025-02-19 04:02:05','2025-02-19 04:02:05',12398,'App\\Models\\Employee'),(172,15,NULL,'{\"source_id\":47,\"title\":\"Legal Approved\",\"description\":\"Dear Mahesh, the Legal Application [ID: 1] has been approved by Mahesh.\",\"notifiable_id\":12602,\"notifiable_type\":\"App\\\\Models\\\\Employee\",\"type\":\"App\\\\Models\\\\Legal\",\"created_at\":\"2025-02-19T05:28:19.258956Z\"}','App\\Models\\Employee',12602,'App\\Models\\Legal',47,'Legal Approved','Dear Mahesh, the Legal Application [ID: 1] has been approved by Mahesh.',NULL,'2025-02-19 05:28:19','2025-02-19 05:28:19',12602,'App\\Models\\Employee'),(173,15,NULL,'{\"source_id\":47,\"title\":\"Request Assigned for Ticket ID:1\",\"description\":\"Dear Nishu, a new Request (Request ID: 1) has been assigned to you. Please review the details and take the necessary action. Thank you for your prompt attention.\",\"notifiable_id\":12607,\"notifiable_type\":\"App\\\\Models\\\\Employee\",\"created_at\":\"2025-02-19T05:29:26.227046Z\"}','App\\Models\\Employee',12602,'App\\Notifications\\LegalNotification',47,'Request Assigned for Ticket ID:1','Dear Nishu, a new Request (Request ID: 1) has been assigned to you. Please review the details and take the necessary action. Thank you for your prompt attention.',NULL,'2025-02-19 05:29:26','2025-02-19 05:29:26',12607,'App\\Models\\Employee'),(174,15,NULL,'{\"source_id\":47,\"title\":\"New Comment for Ticket ID:1\",\"description\":\"Dear Nishu, a new comment has been added to your legal ticket (Ticket ID: 1) by Mahesh on 2025-02-19. Please log in to your account to review the comment. Thank you.\",\"notifiable_id\":12607,\"notifiable_type\":\"App\\\\Models\\\\Employee\",\"created_at\":\"2025-02-19T05:29:44.721260Z\"}','App\\Models\\Employee',12602,'App\\Notifications\\LegalNotification',47,'New Comment for Ticket ID:1','Dear Nishu, a new comment has been added to your legal ticket (Ticket ID: 1) by Mahesh on 2025-02-19. Please log in to your account to review the comment. Thank you.',NULL,'2025-02-19 05:29:44','2025-02-19 05:29:44',12607,'App\\Models\\Employee'),(175,15,NULL,'{\"source_id\":47,\"title\":\"New Comment for Ticket ID:1\",\"description\":\"Dear Nishu, a new comment has been added to your legal ticket (Ticket ID: 1) by Mahesh on 2025-02-19. Please log in to your account to review the comment. Thank you.\",\"notifiable_id\":12607,\"notifiable_type\":\"App\\\\Models\\\\Employee\",\"created_at\":\"2025-02-19T05:30:05.341082Z\"}','App\\Models\\Employee',12602,'App\\Notifications\\LegalNotification',47,'New Comment for Ticket ID:1','Dear Nishu, a new comment has been added to your legal ticket (Ticket ID: 1) by Mahesh on 2025-02-19. Please log in to your account to review the comment. Thank you.',NULL,'2025-02-19 05:30:05','2025-02-19 05:30:05',12607,'App\\Models\\Employee'),(176,15,NULL,'{\"source_id\":49,\"title\":\"Legal Approved\",\"description\":\"Dear Mahesh, the Legal Application [ID: 3] has been approved by Mahesh.\",\"notifiable_id\":12602,\"notifiable_type\":\"App\\\\Models\\\\Employee\",\"type\":\"App\\\\Models\\\\Legal\",\"created_at\":\"2025-02-19T08:37:41.354011Z\"}','App\\Models\\Employee',12602,'App\\Models\\Legal',49,'Legal Approved','Dear Mahesh, the Legal Application [ID: 3] has been approved by Mahesh.',NULL,'2025-02-19 08:37:41','2025-02-19 08:37:41',12602,'App\\Models\\Employee'),(177,15,NULL,'{\"source_id\":49,\"title\":\"Request Assigned for Ticket ID:3\",\"description\":\"Dear Nishu, a new Request (Request ID: 3) has been assigned to you. Please review the details and take the necessary action. Thank you for your prompt attention.\",\"notifiable_id\":12607,\"notifiable_type\":\"App\\\\Models\\\\Employee\",\"created_at\":\"2025-02-19T08:38:06.493739Z\"}','App\\Models\\Employee',12602,'App\\Notifications\\LegalNotification',49,'Request Assigned for Ticket ID:3','Dear Nishu, a new Request (Request ID: 3) has been assigned to you. Please review the details and take the necessary action. Thank you for your prompt attention.',NULL,'2025-02-19 08:38:06','2025-02-19 08:38:06',12607,'App\\Models\\Employee'),(178,15,NULL,'{\"source_id\":49,\"title\":\"New Comment for Ticket ID:3\",\"description\":\"Dear Nishu, a new comment has been added to your legal ticket (Ticket ID: 3) by Mahesh on 2025-02-19. Please log in to your account to review the comment. Thank you.\",\"notifiable_id\":12607,\"notifiable_type\":\"App\\\\Models\\\\Employee\",\"created_at\":\"2025-02-19T08:38:34.875006Z\"}','App\\Models\\Employee',12602,'App\\Notifications\\LegalNotification',49,'New Comment for Ticket ID:3','Dear Nishu, a new comment has been added to your legal ticket (Ticket ID: 3) by Mahesh on 2025-02-19. Please log in to your account to review the comment. Thank you.',NULL,'2025-02-19 08:38:34','2025-02-19 08:38:34',12607,'App\\Models\\Employee'),(179,15,NULL,'{\"source_id\":49,\"title\":\"New Comment for Ticket ID:3\",\"description\":\"Dear Nishu, a new comment has been added to your legal ticket (Ticket ID: 3) by Mahesh on 2025-02-19. Please log in to your account to review the comment. Thank you.\",\"notifiable_id\":12607,\"notifiable_type\":\"App\\\\Models\\\\Employee\",\"created_at\":\"2025-02-19T08:39:16.788694Z\"}','App\\Models\\Employee',12602,'App\\Notifications\\LegalNotification',49,'New Comment for Ticket ID:3','Dear Nishu, a new comment has been added to your legal ticket (Ticket ID: 3) by Mahesh on 2025-02-19. Please log in to your account to review the comment. Thank you.',NULL,'2025-02-19 08:39:16','2025-02-19 08:39:16',12607,'App\\Models\\Employee'),(180,15,NULL,'{\"source_id\":49,\"title\":\"New Comment for Ticket ID:3\",\"description\":\"Dear Nishu, a new comment has been added to your legal ticket (Ticket ID: 3) by Mahesh on 2025-02-19. Please log in to your account to review the comment. Thank you.\",\"notifiable_id\":12607,\"notifiable_type\":\"App\\\\Models\\\\Employee\",\"created_at\":\"2025-02-19T08:39:48.079431Z\"}','App\\Models\\Employee',12602,'App\\Notifications\\LegalNotification',49,'New Comment for Ticket ID:3','Dear Nishu, a new comment has been added to your legal ticket (Ticket ID: 3) by Mahesh on 2025-02-19. Please log in to your account to review the comment. Thank you.',NULL,'2025-02-19 08:39:48','2025-02-19 08:39:48',12607,'App\\Models\\Employee'),(181,15,NULL,'{\"source_id\":49,\"title\":\"New Comment for Ticket ID:3\",\"description\":\"Dear Nishu, a new comment has been added to your legal ticket (Ticket ID: 3) by Mahesh on 2025-02-19. Please log in to your account to review the comment. Thank you.\",\"notifiable_id\":12607,\"notifiable_type\":\"App\\\\Models\\\\Employee\",\"created_at\":\"2025-02-19T09:37:28.167857Z\"}','App\\Models\\Employee',12602,'App\\Notifications\\LegalNotification',49,'New Comment for Ticket ID:3','Dear Nishu, a new comment has been added to your legal ticket (Ticket ID: 3) by Mahesh on 2025-02-19. Please log in to your account to review the comment. Thank you.',NULL,'2025-02-19 09:37:28','2025-02-19 09:37:28',12607,'App\\Models\\Employee'),(182,15,NULL,'{\"source_id\":49,\"title\":\"New Comment for Ticket ID:3\",\"description\":\"Dear Nishu, a new comment has been added to your legal ticket (Ticket ID: 3) by Mahesh on 2025-02-19. Please log in to your account to review the comment. Thank you.\",\"notifiable_id\":12607,\"notifiable_type\":\"App\\\\Models\\\\Employee\",\"created_at\":\"2025-02-19T09:40:00.390047Z\"}','App\\Models\\Employee',12602,'App\\Notifications\\LegalNotification',49,'New Comment for Ticket ID:3','Dear Nishu, a new comment has been added to your legal ticket (Ticket ID: 3) by Mahesh on 2025-02-19. Please log in to your account to review the comment. Thank you.',NULL,'2025-02-19 09:40:00','2025-02-19 09:40:00',12607,'App\\Models\\Employee'),(183,18,NULL,'{\"source_id\":59,\"title\":\"Legal Approved\",\"description\":\"Dear Mahesh Bhatt, the Legal Application [ID: 1] has been approved by Mahesh Bhatt.\",\"notifiable_id\":12611,\"notifiable_type\":\"App\\\\Models\\\\Employee\",\"type\":\"App\\\\Models\\\\Legal\",\"created_at\":\"2025-02-20T11:14:37.578118Z\"}','App\\Models\\Employee',12611,'App\\Models\\Legal',59,'Legal Approved','Dear Mahesh Bhatt, the Legal Application [ID: 1] has been approved by Mahesh Bhatt.',NULL,'2025-02-20 11:14:37','2025-02-20 11:14:37',12611,'App\\Models\\Employee'),(184,18,NULL,'{\"source_id\":59,\"title\":\"Request Assigned for Ticket ID:1\",\"description\":\"Dear anant, a new Request (Request ID: 1) has been assigned to you. Please review the details and take the necessary action. Thank you for your prompt attention.\",\"notifiable_id\":12608,\"notifiable_type\":\"App\\\\Models\\\\Employee\",\"created_at\":\"2025-02-20T11:14:50.443478Z\"}','App\\Models\\Employee',12611,'App\\Notifications\\LegalNotification',59,'Request Assigned for Ticket ID:1','Dear anant, a new Request (Request ID: 1) has been assigned to you. Please review the details and take the necessary action. Thank you for your prompt attention.',NULL,'2025-02-20 11:14:50','2025-02-20 11:14:50',12608,'App\\Models\\Employee'),(185,5,NULL,'{\"source_id\":61,\"title\":\"Legal Application Submission :FY24-7\",\"description\":\"Dear Mahesh Bhatt, a new Legal Application [ID: FY24-7] has been submitted and is pending your approval.\",\"notifiable_id\":12398,\"notifiable_type\":\"App\\\\Models\\\\Employee\",\"created_at\":\"2025-02-20T14:57:48.327782Z\"}','App\\Models\\Employee',12611,'App\\Notifications\\LegalNotification',61,'Legal Application Submission :FY24-7','Dear Mahesh Bhatt, a new Legal Application [ID: FY24-7] has been submitted and is pending your approval.',NULL,'2025-02-20 14:57:48','2025-02-20 14:57:48',12398,'App\\Models\\Employee'),(186,5,NULL,'{\"source_id\":61,\"title\":\"Legal Application Submission :FY24-7\",\"description\":\"Dear anant, a new Legal Application [ID: FY24-7] has been submitted and is pending your approval.\",\"notifiable_id\":12608,\"notifiable_type\":\"App\\\\Models\\\\Employee\",\"created_at\":\"2025-02-20T14:57:48.345493Z\"}','App\\Models\\Employee',12611,'App\\Notifications\\LegalNotification',61,'Legal Application Submission :FY24-7','Dear anant, a new Legal Application [ID: FY24-7] has been submitted and is pending your approval.',NULL,'2025-02-20 14:57:48','2025-02-20 14:57:48',12608,'App\\Models\\Employee'),(187,5,NULL,'{\"source_id\":62,\"title\":\"Legal Application Submission :FY24-8\",\"description\":\"Dear Mahesh Bhatt, a new Legal Application [ID: FY24-8] has been submitted and is pending your approval.\",\"notifiable_id\":12398,\"notifiable_type\":\"App\\\\Models\\\\Employee\",\"created_at\":\"2025-02-20T15:01:58.226693Z\"}','App\\Models\\Employee',12611,'App\\Notifications\\LegalNotification',62,'Legal Application Submission :FY24-8','Dear Mahesh Bhatt, a new Legal Application [ID: FY24-8] has been submitted and is pending your approval.',NULL,'2025-02-20 15:01:58','2025-02-20 15:01:58',12398,'App\\Models\\Employee'),(188,5,NULL,'{\"source_id\":62,\"title\":\"Legal Application Submission :FY24-8\",\"description\":\"Dear anant, a new Legal Application [ID: FY24-8] has been submitted and is pending your approval.\",\"notifiable_id\":12608,\"notifiable_type\":\"App\\\\Models\\\\Employee\",\"created_at\":\"2025-02-20T15:01:58.245790Z\"}','App\\Models\\Employee',12611,'App\\Notifications\\LegalNotification',62,'Legal Application Submission :FY24-8','Dear anant, a new Legal Application [ID: FY24-8] has been submitted and is pending your approval.',NULL,'2025-02-20 15:01:58','2025-02-20 15:01:58',12608,'App\\Models\\Employee'),(189,5,NULL,'{\"source_id\":67,\"title\":\"Legal Application Submission :FY24-9\",\"description\":\"Dear Mahesh Bhatt, a new Legal Application [ID: FY24-9] has been submitted and is pending your approval.\",\"notifiable_id\":12398,\"notifiable_type\":\"App\\\\Models\\\\Employee\",\"created_at\":\"2025-02-20T16:03:44.070208Z\"}','App\\Models\\Employee',12611,'App\\Notifications\\LegalNotification',67,'Legal Application Submission :FY24-9','Dear Mahesh Bhatt, a new Legal Application [ID: FY24-9] has been submitted and is pending your approval.',NULL,'2025-02-20 16:03:44','2025-02-20 16:03:44',12398,'App\\Models\\Employee'),(190,5,NULL,'{\"source_id\":67,\"title\":\"Legal Application Submission :FY24-9\",\"description\":\"Dear anant, a new Legal Application [ID: FY24-9] has been submitted and is pending your approval.\",\"notifiable_id\":12608,\"notifiable_type\":\"App\\\\Models\\\\Employee\",\"created_at\":\"2025-02-20T16:03:44.088327Z\"}','App\\Models\\Employee',12611,'App\\Notifications\\LegalNotification',67,'Legal Application Submission :FY24-9','Dear anant, a new Legal Application [ID: FY24-9] has been submitted and is pending your approval.',NULL,'2025-02-20 16:03:44','2025-02-20 16:03:44',12608,'App\\Models\\Employee'),(191,18,NULL,'{\"source_id\":70,\"title\":\"Legal Application Submission :1\",\"description\":\"Dear anant, a new Legal Application [ID: 1] has been submitted and is pending your approval.\",\"notifiable_id\":12608,\"notifiable_type\":\"App\\\\Models\\\\Employee\",\"created_at\":\"2025-02-21T05:18:57.184123Z\"}','App\\Models\\Employee',12611,'App\\Notifications\\LegalNotification',70,'Legal Application Submission :1','Dear anant, a new Legal Application [ID: 1] has been submitted and is pending your approval.',NULL,'2025-02-21 05:18:57','2025-02-21 05:18:57',12608,'App\\Models\\Employee'),(192,18,NULL,'{\"source_id\":71,\"title\":\"Legal Application Submission :2\",\"description\":\"Dear Mahesh Bhatt, a new Legal Application [ID: 2] has been submitted and is pending your approval.\",\"notifiable_id\":12398,\"notifiable_type\":\"App\\\\Models\\\\Employee\",\"created_at\":\"2025-02-21T05:23:26.759119Z\"}','App\\Models\\Employee',12611,'App\\Notifications\\LegalNotification',71,'Legal Application Submission :2','Dear Mahesh Bhatt, a new Legal Application [ID: 2] has been submitted and is pending your approval.',NULL,'2025-02-21 05:23:26','2025-02-21 05:23:26',12398,'App\\Models\\Employee'),(193,18,NULL,'{\"source_id\":71,\"title\":\"Legal Application Submission :2\",\"description\":\"Dear anant, a new Legal Application [ID: 2] has been submitted and is pending your approval.\",\"notifiable_id\":12608,\"notifiable_type\":\"App\\\\Models\\\\Employee\",\"created_at\":\"2025-02-21T05:23:26.778203Z\"}','App\\Models\\Employee',12611,'App\\Notifications\\LegalNotification',71,'Legal Application Submission :2','Dear anant, a new Legal Application [ID: 2] has been submitted and is pending your approval.',NULL,'2025-02-21 05:23:26','2025-02-21 05:23:26',12608,'App\\Models\\Employee'),(194,18,NULL,'{\"source_id\":71,\"title\":\"Legal Application Submission :2\",\"description\":\"Dear Mahesh Bhatt, a new Legal Application [ID: 2] has been submitted and is pending your approval.\",\"notifiable_id\":12611,\"notifiable_type\":\"App\\\\Models\\\\Employee\",\"created_at\":\"2025-02-21T05:23:26.793655Z\"}','App\\Models\\Employee',12611,'App\\Notifications\\LegalNotification',71,'Legal Application Submission :2','Dear Mahesh Bhatt, a new Legal Application [ID: 2] has been submitted and is pending your approval.',NULL,'2025-02-21 05:23:26','2025-02-21 05:23:26',12611,'App\\Models\\Employee'),(195,18,NULL,'{\"source_id\":71,\"title\":\"Legal Approved\",\"description\":\"Dear Mahesh Bhatt, the Legal Application [ID: 2] has been approved by Mahesh Bhatt.\",\"notifiable_id\":12611,\"notifiable_type\":\"App\\\\Models\\\\Employee\",\"type\":\"App\\\\Models\\\\Legal\",\"created_at\":\"2025-02-21T05:24:35.593199Z\"}','App\\Models\\Employee',12611,'App\\Models\\Legal',71,'Legal Approved','Dear Mahesh Bhatt, the Legal Application [ID: 2] has been approved by Mahesh Bhatt.',NULL,'2025-02-21 05:24:35','2025-02-21 05:24:35',12611,'App\\Models\\Employee'),(196,18,NULL,'{\"source_id\":72,\"title\":\"Legal Application Submission :1\",\"description\":\"Dear anant, a new Legal Application [ID: 1] has been submitted and is pending your approval.\",\"notifiable_id\":12608,\"notifiable_type\":\"App\\\\Models\\\\Employee\",\"created_at\":\"2025-02-21T10:27:05.481243Z\"}','App\\Models\\Employee',12611,'App\\Notifications\\LegalNotification',72,'Legal Application Submission :1','Dear anant, a new Legal Application [ID: 1] has been submitted and is pending your approval.',NULL,'2025-02-21 10:27:05','2025-02-21 10:27:05',12608,'App\\Models\\Employee'),(197,18,NULL,'{\"source_id\":72,\"title\":\"Legal Approved\",\"description\":\"Dear Mahesh Bhatt, the Legal Application [ID: 1] has been approved by anant.\",\"notifiable_id\":12611,\"notifiable_type\":\"App\\\\Models\\\\Employee\",\"type\":\"App\\\\Models\\\\Legal\",\"created_at\":\"2025-02-21T10:29:50.796868Z\"}','App\\Models\\Employee',12608,'App\\Models\\Legal',72,'Legal Approved','Dear Mahesh Bhatt, the Legal Application [ID: 1] has been approved by anant.',NULL,'2025-02-21 10:29:50','2025-02-21 10:29:50',12611,'App\\Models\\Employee'),(198,18,NULL,'{\"source_id\":72,\"title\":\"Request Assigned for Ticket ID:1\",\"description\":\"Dear anant, a new Request (Request ID: 1) has been assigned to you. Please review the details and take the necessary action. Thank you for your prompt attention.\",\"notifiable_id\":12608,\"notifiable_type\":\"App\\\\Models\\\\Employee\",\"created_at\":\"2025-02-21T10:30:18.089406Z\"}','App\\Models\\Employee',12608,'App\\Notifications\\LegalNotification',72,'Request Assigned for Ticket ID:1','Dear anant, a new Request (Request ID: 1) has been assigned to you. Please review the details and take the necessary action. Thank you for your prompt attention.',NULL,'2025-02-21 10:30:18','2025-02-21 10:30:18',12608,'App\\Models\\Employee'),(199,18,NULL,'{\"source_id\":72,\"title\":\"Request Assigned for Ticket ID:1\",\"description\":\"Dear Mahesh Bhatt, a new Request (Request ID: 1) has been assigned to you. Please review the details and take the necessary action. Thank you for your prompt attention.\",\"notifiable_id\":12611,\"notifiable_type\":\"App\\\\Models\\\\Employee\",\"created_at\":\"2025-02-21T10:30:18.115115Z\"}','App\\Models\\Employee',12608,'App\\Notifications\\LegalNotification',72,'Request Assigned for Ticket ID:1','Dear Mahesh Bhatt, a new Request (Request ID: 1) has been assigned to you. Please review the details and take the necessary action. Thank you for your prompt attention.',NULL,'2025-02-21 10:30:18','2025-02-21 10:30:18',12611,'App\\Models\\Employee'),(200,18,NULL,'{\"source_id\":72,\"title\":\"Request Resolved for Ticket ID:1\",\"description\":\"Dear anant, your legal ticket (Ticket ID: 1) has been closed on 2025-02-22. If you have any further questions or require additional assistance, please contact our support team. Thank you for using our ticketing system.\",\"notifiable_id\":12608,\"notifiable_type\":\"App\\\\Models\\\\Employee\",\"created_at\":\"2025-02-22T02:28:10.856526Z\"}','App\\Models\\Employee',12611,'App\\Notifications\\LegalNotification',72,'Request Resolved for Ticket ID:1','Dear anant, your legal ticket (Ticket ID: 1) has been closed on 2025-02-22. If you have any further questions or require additional assistance, please contact our support team. Thank you for using our ticketing system.',NULL,'2025-02-22 02:28:10','2025-02-22 02:28:10',12608,'App\\Models\\Employee'),(201,18,NULL,'{\"source_id\":72,\"title\":\"Request Resolved for Ticket ID:1\",\"description\":\"Dear Mahesh Bhatt, your legal ticket (Ticket ID: 1) has been closed on 2025-02-22. If you have any further questions or require additional assistance, please contact our support team. Thank you for using our ticketing system.\",\"notifiable_id\":12611,\"notifiable_type\":\"App\\\\Models\\\\Employee\",\"created_at\":\"2025-02-22T02:28:10.878656Z\"}','App\\Models\\Employee',12611,'App\\Notifications\\LegalNotification',72,'Request Resolved for Ticket ID:1','Dear Mahesh Bhatt, your legal ticket (Ticket ID: 1) has been closed on 2025-02-22. If you have any further questions or require additional assistance, please contact our support team. Thank you for using our ticketing system.',NULL,'2025-02-22 02:28:10','2025-02-22 02:28:10',12611,'App\\Models\\Employee'),(202,18,NULL,'{\"source_id\":73,\"title\":\"Legal Application Submission :1\",\"description\":\"Dear anant, a new Legal Application [ID: 1] has been submitted and is pending your approval.\",\"notifiable_id\":12608,\"notifiable_type\":\"App\\\\Models\\\\Employee\",\"created_at\":\"2025-02-22T04:13:55.973909Z\"}','App\\Models\\Employee',12611,'App\\Notifications\\LegalNotification',73,'Legal Application Submission :1','Dear anant, a new Legal Application [ID: 1] has been submitted and is pending your approval.',NULL,'2025-02-22 04:13:55','2025-02-22 04:13:55',12608,'App\\Models\\Employee'),(203,18,NULL,'{\"source_id\":73,\"title\":\"Legal Approved\",\"description\":\"Dear Mahesh Bhatt, the Legal Application [ID: 1] has been approved by anant.\",\"notifiable_id\":12611,\"notifiable_type\":\"App\\\\Models\\\\Employee\",\"type\":\"App\\\\Models\\\\Legal\",\"created_at\":\"2025-02-22T04:15:17.023708Z\"}','App\\Models\\Employee',12608,'App\\Models\\Legal',73,'Legal Approved','Dear Mahesh Bhatt, the Legal Application [ID: 1] has been approved by anant.',NULL,'2025-02-22 04:15:17','2025-02-22 04:15:17',12611,'App\\Models\\Employee'),(204,18,NULL,'{\"source_id\":73,\"title\":\"Request Assigned for Ticket ID:1\",\"description\":\"Dear anant, a new Request (Request ID: 1) has been assigned to you. Please review the details and take the necessary action. Thank you for your prompt attention.\",\"notifiable_id\":12608,\"notifiable_type\":\"App\\\\Models\\\\Employee\",\"created_at\":\"2025-02-22T04:15:39.253914Z\"}','App\\Models\\Employee',12611,'App\\Notifications\\LegalNotification',73,'Request Assigned for Ticket ID:1','Dear anant, a new Request (Request ID: 1) has been assigned to you. Please review the details and take the necessary action. Thank you for your prompt attention.',NULL,'2025-02-22 04:15:39','2025-02-22 04:15:39',12608,'App\\Models\\Employee'),(205,18,NULL,'{\"source_id\":73,\"title\":\"Request Assigned for Ticket ID:1\",\"description\":\"Dear Mahesh Bhatt, a new Request (Request ID: 1) has been assigned to you. Please review the details and take the necessary action. Thank you for your prompt attention.\",\"notifiable_id\":12611,\"notifiable_type\":\"App\\\\Models\\\\Employee\",\"created_at\":\"2025-02-22T04:15:39.277842Z\"}','App\\Models\\Employee',12611,'App\\Notifications\\LegalNotification',73,'Request Assigned for Ticket ID:1','Dear Mahesh Bhatt, a new Request (Request ID: 1) has been assigned to you. Please review the details and take the necessary action. Thank you for your prompt attention.',NULL,'2025-02-22 04:15:39','2025-02-22 04:15:39',12611,'App\\Models\\Employee'),(206,18,NULL,'{\"source_id\":74,\"title\":\"Request Assigned for Ticket ID:1\",\"description\":\"Dear anant, a new Request (Request ID: 1) has been assigned to you. Please review the details and take the necessary action. Thank you for your prompt attention.\",\"notifiable_id\":12608,\"notifiable_type\":\"App\\\\Models\\\\Employee\",\"created_at\":\"2025-03-03T06:42:05.825056Z\"}','App\\Models\\Employee',12608,'App\\Notifications\\LegalNotification',74,'Request Assigned for Ticket ID:1','Dear anant, a new Request (Request ID: 1) has been assigned to you. Please review the details and take the necessary action. Thank you for your prompt attention.',NULL,'2025-03-03 06:42:05','2025-03-03 06:42:05',12608,'App\\Models\\Employee'),(207,18,NULL,'{\"source_id\":74,\"title\":\"Request Assigned for Ticket ID:1\",\"description\":\"Dear HR Admin, a new Request (Request ID: 1) has been assigned to you. Please review the details and take the necessary action. Thank you for your prompt attention.\",\"notifiable_id\":107,\"notifiable_type\":\"App\\\\Models\\\\User\",\"created_at\":\"2025-03-03T06:42:05.877340Z\"}','App\\Models\\Employee',12608,'App\\Notifications\\LegalNotification',74,'Request Assigned for Ticket ID:1','Dear HR Admin, a new Request (Request ID: 1) has been assigned to you. Please review the details and take the necessary action. Thank you for your prompt attention.',NULL,'2025-03-03 06:42:05','2025-03-03 06:42:05',107,'App\\Models\\User'),(208,18,NULL,NULL,'employee',12608,'task',52,'New Task','anant added new task',NULL,'2025-03-03 07:00:29','2025-03-03 07:00:29',NULL,NULL),(209,18,NULL,NULL,'employee',12398,'task',52,'New task','anant has assigned task to you and 1 others',NULL,'2025-03-03 07:00:29','2025-03-03 07:00:29',NULL,NULL);

--
-- Table structure for table `oauth_auth_codes`
--

CREATE TABLE `oauth_auth_codes` (
  `id` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `user_id` int NOT NULL,
  `client_id` int NOT NULL,
  `scopes` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `revoked` tinyint(1) NOT NULL,
  `expires_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `oauth_auth_codes`
--


--
-- Table structure for table `oauth_device_dependency`
--

CREATE TABLE `oauth_device_dependency` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `device_id` int unsigned NOT NULL,
  `type` varchar(99) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `type_id` int unsigned NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `oauth_device_dependency_device_id_foreign` (`device_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `oauth_device_dependency`
--


--
-- Table structure for table `oauth_devices`
--

CREATE TABLE `oauth_devices` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `device_name` varchar(291) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `device_address` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `mobile` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `user_id` int unsigned DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `oauth_devices`
--


--
-- Table structure for table `oauth_personal_access_clients`
--

CREATE TABLE `oauth_personal_access_clients` (
  `id` int unsigned NOT NULL,
  `client_id` int NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `oauth_personal_access_clients`
--

INSERT INTO `oauth_personal_access_clients` VALUES (1,4,'2023-05-18 18:47:39','2023-05-18 18:47:39');

--
-- Table structure for table `oauth_tracking`
--

CREATE TABLE `oauth_tracking` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `client_id` varchar(191) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `type` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `type_id` int unsigned NOT NULL,
  `activity` varchar(191) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `oauth_tracking`
--


--
-- Table structure for table `organization_companies`
--

CREATE TABLE `organization_companies` (
  `id` int NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `group_id` bigint NOT NULL,
  `status` varchar(15) NOT NULL DEFAULT 'active',
  `created_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL,
  `currency_id` bigint unsigned DEFAULT NULL,
  `country_id` bigint unsigned DEFAULT NULL,
  `currency_code` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `group_id` (`group_id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `organization_companies`
--

INSERT INTO `organization_companies` VALUES (3,'Meghalaya Industrial Development Corporation Ltd.',3,'active','2024-09-18 11:40:48','2024-09-18 11:40:48',NULL,4,NULL,'INR'),(8,'Company 1 Demo 1',7,'active','2025-01-30 19:01:10','2025-01-30 19:01:10',NULL,1,101,NULL),(9,'MIDC 2',3,'active','2025-02-03 07:13:53','2025-02-03 07:13:53',NULL,1,101,NULL),(10,'MIDC',8,'active','2025-02-13 04:57:36','2025-02-13 04:57:36',NULL,1,101,NULL);

--
-- Table structure for table `organization_groups`
--

CREATE TABLE `organization_groups` (
  `id` bigint NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `country_id` int DEFAULT NULL,
  `currency_id` int DEFAULT NULL,
  `currency_code` varchar(100) DEFAULT NULL,
  `status` varchar(100) DEFAULT 'active',
  `created_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL,
  `created_by` int DEFAULT NULL,
  `updated_by` bigint DEFAULT NULL,
  `license_expire_on` date DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `organization_groups`
--

INSERT INTO `organization_groups` VALUES (3,'Meghalaya Industrial Development Corporation Ltd.',NULL,4,'INR','active','2024-09-18 11:40:20','2024-09-18 11:40:20',NULL,NULL,NULL,NULL),(7,'Demo Group 1',101,1,NULL,'active','2025-01-30 18:13:30','2025-02-21 13:17:54',NULL,1,1,'2026-01-01'),(8,'MIDC',101,1,NULL,'inactive','2025-02-13 04:56:51','2025-02-20 10:26:36',NULL,1,1,'2027-01-01');

--
-- Table structure for table `organizations`
--

CREATE TABLE `organizations` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `parent_id` int unsigned DEFAULT NULL,
  `partner_id` int unsigned DEFAULT NULL,
  `website` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `track_login_location` tinyint NOT NULL DEFAULT '1',
  `package_id` int DEFAULT '1',
  `gst_number` varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `name` varchar(299) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `unit_code` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `alias` varchar(40) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `email` varchar(299) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `no_of_employees` int DEFAULT NULL,
  `can_mask` int DEFAULT '1',
  `valid_from` date DEFAULT NULL,
  `valid_to` date DEFAULT NULL,
  `status` enum('active','inactive') CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'active',
  `face_repo` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT 'AWS',
  `prev_attendance` tinyint DEFAULT '0',
  `created_by` int unsigned DEFAULT NULL,
  `updated_by` int unsigned DEFAULT NULL,
  `refered_by` int unsigned DEFAULT NULL,
  `location_freq` int DEFAULT '60000',
  `trial_ends_at` timestamp NULL DEFAULT NULL,
  `licence_expire_on` date DEFAULT NULL,
  `policies` int DEFAULT NULL,
  `logo_type` varchar(191) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `short_leaves` tinyint(1) DEFAULT '0',
  `short_leaves_hrs` float DEFAULT '0',
  `certificate_type_id` int unsigned DEFAULT NULL,
  `leave_pattern` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `visitor_multi_entries` int DEFAULT '0',
  `pass_notification` int DEFAULT '0',
  `meeting_approval_required` char(1) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT 'Y',
  `no_of_live_tracking` int unsigned DEFAULT NULL,
  `no_of_checkin` int unsigned DEFAULT NULL,
  `no_of_app_login` int unsigned DEFAULT NULL,
  `no_of_attendance_access` int DEFAULT NULL,
  `working_hour` time DEFAULT NULL,
  `break` decimal(14,2) DEFAULT NULL,
  `second_level_approval` enum('0','1') CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',
  `second_level_hierarchy` enum('admin','manager') CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `max_hour` decimal(14,2) DEFAULT NULL,
  `time_format` enum('24_Hour','12_Hour') CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '24_Hour',
  `warning_letter_type_id` int unsigned DEFAULT NULL,
  `buffer_time` int unsigned DEFAULT NULL,
  `late_allowed` int DEFAULT NULL,
  `no_of_attendance_regularize` int unsigned DEFAULT NULL,
  `sms_enable` tinyint NOT NULL DEFAULT '0' COMMENT '0: No, 1:Yes',
  `enable_email_notifications` tinyint NOT NULL DEFAULT '0' COMMENT '0: No, 1:Yes',
  `max_pay_days` decimal(14,2) DEFAULT NULL,
  `payable_working_hour` time DEFAULT NULL,
  `auto_shift_enable` tinyint NOT NULL DEFAULT '0' COMMENT '0: No, 1:Yes ',
  `report_cron_enable` tinyint NOT NULL DEFAULT '0' COMMENT '0: No, 1:Yes',
  `customizable_ot` tinyint NOT NULL DEFAULT '0' COMMENT '0=>No, 1=>Yes',
  `overtime_update_on` tinyint unsigned DEFAULT NULL,
  `attendance_data_removal` tinyint NOT NULL DEFAULT '0' COMMENT '0: No, 1:Yes',
  `minimum_hour` time DEFAULT NULL,
  `imei_enable` tinyint NOT NULL DEFAULT '0' COMMENT '0: No, 1:Yes ',
  `no_of_abscond_days` tinyint DEFAULT NULL,
  `overtime_for` enum('1','2') CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '1' COMMENT '1=employee, 2=employee & workman',
  `break_deduction_ot` enum('0','1') CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '1' COMMENT '1=yes, 0=No',
  `round_off_ot` enum('0','1') CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '1' COMMENT '1=yes, 0=No',
  `salary_template` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `auto_weekoff_days` tinyint DEFAULT NULL,
  `enrollment_limit` int DEFAULT NULL,
  `enrollment_buffer_limit` int DEFAULT NULL,
  `daily_attendance_limit` int DEFAULT NULL,
  `cashier` json DEFAULT NULL,
  `group_id` bigint unsigned DEFAULT NULL,
  `company_id` bigint unsigned DEFAULT NULL,
  `einvoice_required` tinyint NOT NULL DEFAULT '0',
  `organization_qr_code` varchar(599) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `country_id` int DEFAULT NULL,
  `currency_id` bigint unsigned DEFAULT NULL,
  `logo_path` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `stamp_path` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `currency_code` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `time_zone_id` bigint unsigned DEFAULT NULL,
  `dep_method` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `dep_type` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `dep_percentage` decimal(10,2) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `organizations_alias_unique` (`alias`),
  KEY `organizations_created_by_foreign` (`created_by`),
  KEY `organizations_updated_by_foreign` (`updated_by`),
  KEY `organizations_refered_by_foreign` (`refered_by`),
  KEY `organizations_partner_id_foreign` (`partner_id`)
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `organizations`
--

INSERT INTO `organizations` VALUES (5,NULL,74,'https://midc.megindustry.gov.in/',1,1,NULL,'Meghalaya Industrial Development Corporation Ltd.',NULL,'MIDC',NULL,100,0,NULL,NULL,'active','AWS',0,1,1,NULL,60000,NULL,'2025-09-18',NULL,NULL,'2024-09-18 11:51:32','2025-01-13 14:31:27',NULL,NULL,NULL,NULL,'Calendar year',0,0,'Y',100,100,100,100,'09:00:00',30.00,'0',NULL,NULL,'24_Hour',NULL,NULL,NULL,NULL,1,0,NULL,NULL,0,0,0,NULL,0,NULL,0,NULL,'1','1','1',NULL,NULL,200,10,100,NULL,3,3,0,NULL,NULL,4,NULL,NULL,'INR',NULL,NULL,NULL,NULL),(10,NULL,NULL,NULL,1,1,NULL,'Demo',NULL,'demo',NULL,100,1,NULL,NULL,'inactive','AWS',0,NULL,NULL,NULL,60000,NULL,'2024-12-26',NULL,NULL,'2024-12-13 05:59:29','2024-12-16 10:29:52',NULL,0,0,NULL,NULL,0,0,'Y',NULL,NULL,NULL,NULL,NULL,NULL,'0',NULL,NULL,'24_Hour',NULL,NULL,NULL,NULL,0,0,NULL,NULL,0,0,0,NULL,0,NULL,0,NULL,'1','1','1',NULL,NULL,NULL,NULL,NULL,NULL,3,3,0,NULL,101,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(14,NULL,NULL,NULL,1,1,NULL,'Demo O1C1G1',NULL,'demo-o1-c1-g1',NULL,NULL,1,NULL,NULL,'active','AWS',0,NULL,NULL,NULL,60000,NULL,NULL,NULL,NULL,'2025-01-30 19:02:41','2025-01-30 19:02:41',NULL,0,0,NULL,NULL,0,0,'Y',NULL,NULL,NULL,NULL,NULL,NULL,'0',NULL,NULL,'24_Hour',NULL,NULL,NULL,NULL,0,0,NULL,NULL,0,0,0,NULL,0,NULL,0,NULL,'1','1','1',NULL,NULL,NULL,NULL,NULL,NULL,7,8,0,NULL,101,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(15,NULL,NULL,NULL,1,1,NULL,'MIDC HQ',NULL,'midc-hq',NULL,NULL,1,NULL,NULL,'active','AWS',0,NULL,NULL,NULL,60000,NULL,NULL,NULL,NULL,'2025-02-13 04:58:39','2025-02-13 04:58:39',NULL,0,0,NULL,NULL,0,0,'Y',NULL,NULL,NULL,NULL,NULL,NULL,'0',NULL,NULL,'24_Hour',NULL,NULL,NULL,NULL,0,0,NULL,NULL,0,0,0,NULL,0,NULL,0,NULL,'1','1','1',NULL,NULL,NULL,NULL,NULL,NULL,8,10,0,NULL,101,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(16,NULL,NULL,NULL,1,1,NULL,'MIDC TURA',NULL,'midc-tura',NULL,NULL,1,NULL,NULL,'active','AWS',0,NULL,NULL,NULL,60000,NULL,NULL,NULL,NULL,'2025-02-13 05:14:37','2025-02-13 05:14:37',NULL,0,0,NULL,NULL,0,0,'Y',NULL,NULL,NULL,NULL,NULL,NULL,'0',NULL,NULL,'24_Hour',NULL,NULL,NULL,NULL,0,0,NULL,NULL,0,0,0,NULL,0,NULL,0,NULL,'1','1','1',NULL,NULL,NULL,NULL,NULL,NULL,8,10,0,NULL,101,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(17,NULL,NULL,NULL,1,1,NULL,'MIDC Jowai',NULL,'midc-jowai',NULL,NULL,1,NULL,NULL,'active','AWS',0,NULL,NULL,NULL,60000,NULL,NULL,NULL,NULL,'2025-02-13 05:16:52','2025-02-13 05:16:52',NULL,0,0,NULL,NULL,0,0,'Y',NULL,NULL,NULL,NULL,NULL,NULL,'0',NULL,NULL,'24_Hour',NULL,NULL,NULL,NULL,0,0,NULL,NULL,0,0,0,NULL,0,NULL,0,NULL,'1','1','1',NULL,NULL,NULL,NULL,NULL,NULL,8,10,0,NULL,101,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(18,NULL,NULL,NULL,1,1,NULL,'Meghalaya Industrial Development Corporation Ltd Tura',NULL,'meghalaya-tura',NULL,NULL,1,NULL,NULL,'active','AWS',0,NULL,NULL,NULL,60000,NULL,NULL,NULL,NULL,'2025-02-20 10:32:11','2025-02-20 10:32:11',NULL,0,0,NULL,NULL,0,0,'Y',NULL,NULL,NULL,NULL,NULL,NULL,'0',NULL,NULL,'24_Hour',NULL,NULL,NULL,NULL,0,0,NULL,NULL,0,0,0,NULL,0,NULL,0,NULL,'1','1','1',NULL,NULL,NULL,NULL,NULL,NULL,3,3,0,NULL,101,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL);

--
-- Table structure for table `overtime_applicability`
--

CREATE TABLE `overtime_applicability` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `overtime_rule_id` int NOT NULL,
  `organization_id` int unsigned NOT NULL,
  `applicable_type` varchar(599) NOT NULL,
  `applicable_id` int DEFAULT NULL,
  `status` enum('active','inactive') DEFAULT NULL,
  `created_by` int DEFAULT NULL,
  `updated_by` int DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `organization_id` (`organization_id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `overtime_applicability`
--


--
-- Table structure for table `overtime_applicability_details`
--

CREATE TABLE `overtime_applicability_details` (
  `id` int NOT NULL AUTO_INCREMENT,
  `organization_id` int NOT NULL,
  `overtime_applicability_id` int NOT NULL,
  `applicable_id` int NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `overtime_applicability_details`
--


--
-- Table structure for table `overtime_applicability_ex_employees`
--

CREATE TABLE `overtime_applicability_ex_employees` (
  `id` int NOT NULL AUTO_INCREMENT,
  `organization_id` int NOT NULL,
  `overtime_applicability_id` int NOT NULL,
  `employee_id` int NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `overtime_applicability_ex_employees`
--


--
-- Table structure for table `overtime_buffers`
--

CREATE TABLE `overtime_buffers` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `organization_id` int unsigned NOT NULL,
  `employee_id` int unsigned NOT NULL,
  `type` enum('minutes','hours','days') DEFAULT NULL,
  `buffer` varchar(100) DEFAULT NULL,
  `valid_from` date DEFAULT NULL,
  `valid_to` date DEFAULT NULL,
  `is_adjested` enum('Yes','No') NOT NULL DEFAULT 'No',
  `created_by` int DEFAULT NULL,
  `update_by` int DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `employee_id` (`employee_id`),
  KEY `organization_id` (`organization_id`,`employee_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `overtime_buffers`
--


--
-- Table structure for table `overtime_configurations`
--

CREATE TABLE `overtime_configurations` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `organization_id` int unsigned NOT NULL,
  `overtime_rule_id` int unsigned DEFAULT NULL,
  `name` varchar(291) DEFAULT NULL,
  `alias` varchar(100) DEFAULT NULL,
  `attendance_type` varchar(100) NOT NULL,
  `compensatory_type` varchar(100) DEFAULT NULL,
  `comp_off_validity_type` varchar(10) DEFAULT 'days',
  `comp_off_validity` int DEFAULT NULL,
  `is_validity_complete` tinyint NOT NULL DEFAULT '0',
  `days` int DEFAULT '0',
  `type` varchar(100) DEFAULT NULL,
  `factor` decimal(10,2) DEFAULT NULL,
  `exclude` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin,
  `created_by` int DEFAULT NULL,
  `updated_by` int DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `overtime_rule_id` (`overtime_rule_id`) USING BTREE,
  KEY `organoization` (`organization_id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `overtime_configurations`
--


--
-- Table structure for table `overtime_distributions`
--

CREATE TABLE `overtime_distributions` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `organization_id` int unsigned NOT NULL,
  `overtime_rule_id` int unsigned DEFAULT NULL,
  `derived_form` int DEFAULT NULL,
  `name` varchar(291) DEFAULT NULL,
  `min_calculated_value` decimal(10,2) DEFAULT NULL,
  `max_calculated_value` decimal(10,2) DEFAULT NULL,
  `type` varchar(50) DEFAULT NULL,
  `value` decimal(10,2) DEFAULT NULL,
  `calculation_type` varchar(100) DEFAULT NULL,
  `amount_per_hour` decimal(10,2) DEFAULT NULL,
  `calculated_on` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin,
  `calculation_factor` decimal(10,2) DEFAULT NULL,
  `min_ot_hour` decimal(10,2) DEFAULT NULL,
  `max_ot_hour` decimal(10,2) DEFAULT NULL,
  `accept_remaining` int DEFAULT NULL,
  `satled_to` varchar(499) DEFAULT NULL,
  `status` enum('active','inactive') DEFAULT NULL,
  `component_type` int NOT NULL DEFAULT '1' COMMENT '1= Main 2= Derived 3=Remaing',
  `created_by` int DEFAULT NULL,
  `updated_by` int DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `overtime_rule_id` (`overtime_rule_id`) USING BTREE,
  KEY `organoization` (`organization_id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `overtime_distributions`
--


--
-- Table structure for table `overtime_govt_rules`
--

CREATE TABLE `overtime_govt_rules` (
  `id` int NOT NULL AUTO_INCREMENT,
  `country_id` int NOT NULL,
  `state_id` int DEFAULT NULL,
  `max_hour_per_day` time DEFAULT NULL,
  `max_hour_per_month` int DEFAULT NULL,
  `max_hour_per_quarter` int DEFAULT NULL,
  `max_hour_per_year` int DEFAULT NULL,
  `status` enum('active','inactive') NOT NULL DEFAULT 'active',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `country` (`country_id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `overtime_govt_rules`
--


--
-- Table structure for table `overtime_masters`
--

CREATE TABLE `overtime_masters` (
  `id` int NOT NULL AUTO_INCREMENT,
  `organization_id` int NOT NULL,
  `type` varchar(255) NOT NULL,
  `type_id` int DEFAULT NULL,
  `late_allowed` decimal(14,2) NOT NULL,
  `late_timing` decimal(14,2) NOT NULL,
  `min_overtime` decimal(14,2) NOT NULL,
  `max_overtime` decimal(14,2) NOT NULL,
  `shift_before_min_overtime` decimal(14,2) NOT NULL,
  `shift_after_min_overtime` decimal(14,2) NOT NULL,
  `created_by` int DEFAULT NULL,
  `updated_by` int DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `overtime_masters`
--


--
-- Table structure for table `overtime_rules`
--

CREATE TABLE `overtime_rules` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `organization_id` int unsigned DEFAULT NULL,
  `state_id` int unsigned DEFAULT NULL,
  `type` varchar(10) NOT NULL DEFAULT 'overtime',
  `title` varchar(299) DEFAULT NULL,
  `min_hour_per_day` time DEFAULT NULL,
  `max_hour_per_day` time DEFAULT NULL,
  `min_hour_per_month` int DEFAULT NULL,
  `max_hour_per_month` int DEFAULT NULL,
  `on_holiday_min_hour_per_day` time DEFAULT NULL,
  `on_holiday_max_hour_per_day` time DEFAULT NULL,
  `on_holiday_min_hour_per_month` int DEFAULT NULL,
  `on_holiday_max_hour_per_month` int DEFAULT NULL,
  `break_didection` enum('yes','no') NOT NULL DEFAULT 'no',
  `on_holiday_break_deduction` enum('yes','no') NOT NULL DEFAULT 'no',
  `break_hr_time` time DEFAULT NULL,
  `break_apply_after` time DEFAULT NULL,
  `max_break_deduction` int DEFAULT NULL,
  `shift_before_min_hour` time DEFAULT NULL,
  `shift_after_min_hour` time DEFAULT NULL,
  `roundoff_apply` enum('yes','no') NOT NULL DEFAULT 'no',
  `roundoff_type` varchar(100) DEFAULT NULL,
  `break_not_allow_from` time DEFAULT NULL,
  `break_not_allow_to` time DEFAULT NULL,
  `on_request` tinyint NOT NULL DEFAULT '0',
  `status` enum('active','inactive') DEFAULT NULL,
  `auto_approval` enum('yes','no') NOT NULL DEFAULT 'no',
  `valid_from` date DEFAULT NULL,
  `valid_to` date DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `organization_id` (`organization_id`),
  KEY `state_id` (`state_id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `overtime_rules`
--


--
-- Table structure for table `permission_master`
--

CREATE TABLE `permission_master` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `service_id` bigint unsigned NOT NULL,
  `name` varchar(100) NOT NULL,
  `alias` varchar(100) DEFAULT NULL,
  `type` varchar(19) DEFAULT NULL,
  `status` enum('active','inactive','drop') NOT NULL DEFAULT 'active',
  `created_by` int unsigned DEFAULT NULL,
  `updated_by` int unsigned DEFAULT NULL,
  `deleted_by` int unsigned DEFAULT NULL,
  `created_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `permission_master_service_id` (`service_id`),
  KEY `permission_master_name` (`name`),
  KEY `permission_master_alias` (`alias`),
  KEY `permission_master_status` (`status`),
  KEY `permission_master_created_by` (`created_by`),
  KEY `permission_master_created_at` (`created_at`)
) ENGINE=InnoDB AUTO_INCREMENT=845 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `permission_master`
--

INSERT INTO `permission_master` VALUES (1,1,'Dashboard','menu.dashboard','menu','',NULL,NULL,4294967295,'2024-04-02 12:00:00',NULL,NULL),(2,1,'Master Management','menu.masters','menu','',NULL,NULL,4294967295,'2024-04-02 12:00:00',NULL,NULL),(3,1,'Admin Access','menu.admin-access','menu','',NULL,NULL,4294967295,'2024-04-02 12:00:00',NULL,NULL),(4,1,'User Management','menu.users','menu','',NULL,NULL,4294967295,'2024-04-02 12:00:00',NULL,NULL),(5,2,'Attendance Management','menu.attendance','menu','',NULL,NULL,4294967295,'2024-04-02 12:00:00',NULL,NULL),(6,3,'Leave','menu.leave','menu','',NULL,NULL,4294967295,'2024-04-02 12:00:00',NULL,NULL),(9,6,'Reports','menu.reports','menu','',NULL,NULL,4294967295,'2024-04-02 12:00:00',NULL,NULL),(11,2,'Shift Management','menu.shifts','menu','',NULL,NULL,4294967295,'2024-04-02 12:00:00',NULL,NULL),(12,1,'Deparments','menu.departments','menu','',NULL,NULL,4294967295,'2024-04-02 12:00:00',NULL,NULL),(13,1,'Designation','menu.designations','menu','',NULL,NULL,4294967295,'2024-04-02 12:00:00',NULL,NULL),(14,1,'Location','menu.locations','menu','',NULL,NULL,4294967295,'2024-04-02 12:00:00',NULL,NULL),(15,1,'Area Master','menu.area','menu','',NULL,NULL,4294967295,'2024-04-02 12:00:00',NULL,NULL),(16,1,'Grade','menu.grades','menu','',NULL,NULL,4294967295,'2024-04-02 12:00:00',NULL,NULL),(17,1,'Category','menu.categories','menu','',NULL,NULL,4294967295,'2024-04-02 12:00:00',NULL,NULL),(18,1,'Work Station','menu.workstations','menu','',NULL,NULL,4294967295,'2024-04-02 12:00:00',NULL,NULL),(19,1,'Holiday','menu.holidays','menu','',NULL,NULL,4294967295,'2024-04-02 12:00:00',NULL,NULL),(20,1,'Device Management','menu.devices','menu','',NULL,NULL,4294967295,'2024-04-02 12:00:00',NULL,NULL),(21,1,'Industries','menu.industries','menu','',NULL,NULL,4294967295,'2024-04-02 12:00:00',NULL,NULL),(22,1,'Meta tags','menu.meta-tags','menu','',NULL,NULL,4294967295,'2024-04-02 12:00:00',NULL,NULL),(23,1,'Group Codes','menu.group-codes','menu','',NULL,NULL,4294967295,'2024-04-02 12:00:00',NULL,NULL),(24,1,'Import-Export','menu.data-managment','menu','',NULL,NULL,4294967295,'2024-04-02 12:00:00',NULL,NULL),(25,1,'Admin Configurations','menu.root-configurations','menu','',NULL,NULL,4294967295,'2024-04-02 12:00:00',NULL,NULL),(26,1,'Admin Users','menu.admin-users','menu','',NULL,NULL,4294967295,'2024-04-02 12:00:00',NULL,NULL),(27,1,'Contractors','menu.contractors','menu','',NULL,NULL,4294967295,'2024-04-02 12:00:00',NULL,NULL),(28,1,'Role and Permissions','menu.role-permissions','menu','',NULL,NULL,4294967295,'2024-04-02 12:00:00',NULL,NULL),(29,1,'Employees','menu.employees','menu','',NULL,NULL,4294967295,'2024-04-02 12:00:00',NULL,NULL),(30,1,'Contractual Workers','menu.workmans','menu','',NULL,NULL,4294967295,'2024-04-02 12:00:00',NULL,NULL),(31,2,'Attendance Logs','menu.attendance-logs','menu','',NULL,NULL,4294967295,'2024-04-02 12:00:00',NULL,NULL),(32,2,'Check In logs','menu.checkin-logs','menu','',NULL,NULL,4294967295,'2024-04-02 12:00:00',NULL,NULL),(33,2,'Attendance Tracking Logs','menu.attendance-tracking-logs','menu','',NULL,NULL,4294967295,'2024-04-02 12:00:00',NULL,NULL),(34,2,'Entry Logs','menu.attendance-summary','menu','',NULL,NULL,4294967295,'2024-04-02 12:00:00',NULL,NULL),(35,2,'Unkown Users','menu.unknown-users','menu','',NULL,NULL,4294967295,'2024-04-02 12:00:00',NULL,NULL),(36,2,'Over Time Masters','menu.overtime-masters','menu','',NULL,NULL,4294967295,'2024-04-02 12:00:00',NULL,NULL),(37,2,'Over Time Reports','menu.overtime-reports','menu','',NULL,NULL,4294967295,'2024-04-02 12:00:00',NULL,NULL),(38,2,'Daily Performance Reports','menu.daily-performance-reports','menu','',NULL,NULL,4294967295,'2024-04-02 12:00:00',NULL,NULL),(39,2,'Attendance Updations','menu.attendance-updations','menu','',NULL,NULL,4294967295,'2024-04-02 12:00:00',NULL,NULL),(40,2,'Attendance Requests','menu.attendance-requests','menu','',NULL,NULL,4294967295,'2024-04-02 12:00:00',NULL,NULL),(43,3,'Leave Dashboard','menu.leave-dashboard','menu','',NULL,NULL,4294967295,'2024-04-02 12:00:00',NULL,NULL),(44,3,'Leave Configuration','menu.leave-config','menu','',NULL,NULL,4294967295,'2024-04-02 12:00:00',NULL,NULL),(65,6,'Global Report','menu.reports-global','menu','',NULL,NULL,4294967295,'2024-04-02 12:00:00',NULL,NULL),(66,6,'Attendance Month Summary','menu.reports-attendance-summary','menu','',NULL,NULL,4294967295,'2024-04-02 12:00:00',NULL,NULL),(67,6,'Attendance Day Wise Report','menu.reports-attendance-custom','menu','',NULL,NULL,4294967295,'2024-04-02 12:00:00',NULL,NULL),(68,6,'Attendance Actual Vs Planned','menu.reports-attendance-plan','menu','',NULL,NULL,4294967295,'2024-04-02 12:00:00',NULL,NULL),(69,6,'Monthly Performance Report','menu.reports-attendance-performance','menu','',NULL,NULL,4294967295,'2024-04-02 12:00:00',NULL,NULL),(70,6,'Overtime Reports','menu.reports-overtime','menu','',NULL,NULL,4294967295,'2024-04-02 12:00:00',NULL,NULL),(71,6,'Canteen Reports','menu.reports-canteen','menu','',NULL,NULL,4294967295,'2024-04-02 12:00:00',NULL,NULL),(72,6,'Functional MIS Report','menu.reports-mis','menu','',NULL,NULL,4294967295,'2024-04-02 12:00:00',NULL,NULL),(97,2,'Card Daily Employee','dashboard.card_daily_employee','action','',NULL,NULL,4294967295,'2024-05-22 12:00:00',NULL,NULL),(98,2,'Card Daily Workman','dashboard.card_daily_workman','action','',NULL,NULL,4294967295,'2024-05-22 12:00:00',NULL,NULL),(99,2,'Card IN & OUT','dashboard.card_in_out','action','',NULL,NULL,4294967295,'2024-05-22 12:00:00',NULL,NULL),(100,2,'Card Working Hours','dashboard.card_working_hour','action','',NULL,NULL,4294967295,'2024-05-22 12:00:00',NULL,NULL),(101,2,'List Department Attendance','dashboard.list_department_attendance','action','',NULL,NULL,4294967295,'2024-05-22 12:00:00',NULL,NULL),(102,2,'List Employee Leaves','dashboard.list_employee_leave','action','',NULL,NULL,4294967295,'2024-05-22 12:00:00',NULL,NULL),(103,2,'List Present on Week Off','dashboard.list_weekoff_present','action','',NULL,NULL,4294967295,'2024-05-22 12:00:00',NULL,NULL),(104,2,'List Incomplete Day','dashboard.list_incomplete_day','action','',NULL,NULL,4294967295,'2024-05-22 12:00:00',NULL,NULL),(105,2,'List Late Punch IN','dashboard.list_late_in','action','',NULL,NULL,4294967295,'2024-05-22 12:00:00',NULL,NULL),(106,2,'List Early Punch Out','dashboard.list_early_out','action','',NULL,NULL,4294967295,'2024-05-22 12:00:00',NULL,NULL),(107,2,'Card Attendance Requests','dashboard.card_attendance_requests','action','',NULL,NULL,4294967295,'2024-05-22 12:00:00',NULL,NULL),(108,2,'List Overtime','dashboard.list_overtime','action','',NULL,NULL,4294967295,'2024-05-22 12:00:00',NULL,NULL),(109,2,'List of Holidays','dashboard.list_holidays','action','',NULL,NULL,4294967295,'2024-05-22 12:00:00',NULL,NULL),(110,2,'List Activity Logs','dashboard.list_activity_logs','action','',NULL,NULL,4294967295,'2024-05-22 12:00:00',NULL,NULL),(111,2,'List of Upcoming Birthday','dashboard.list_birthday','action','',NULL,NULL,4294967295,'2024-05-22 12:00:00',NULL,NULL),(112,2,'List of Upcoming Anniversary','dashboard.list_anniversary','action','',NULL,NULL,4294967295,'2024-05-22 12:00:00',NULL,NULL),(113,2,'List fo New Joinee','dashboard.list_new_joinee','action','',NULL,NULL,4294967295,'2024-05-22 12:00:00',NULL,NULL),(114,2,'List of Absent Alerts','dashboard.list_absent_alert','action','',NULL,NULL,4294967295,'2024-05-22 12:00:00',NULL,NULL),(115,2,'Attedance Logs View','attendance-logs.view','action','',NULL,NULL,4294967295,'2024-05-22 12:00:00',NULL,NULL),(116,2,'Attendance Logs Export','attendance-logs.export','action','',NULL,NULL,4294967295,'2024-05-22 12:00:00',NULL,NULL),(117,2,'Attendance Logs Admin','attendance-logs.admin','action','',NULL,NULL,4294967295,'2024-05-22 12:00:00',NULL,NULL),(118,2,'Attendance Tracking Logs','attendance-tracking-logs.view','action','',NULL,NULL,4294967295,'2024-05-22 12:00:00',NULL,NULL),(119,2,'Attendance Tracking Export','attendance-tracking-logs.export','action','',NULL,NULL,4294967295,'2024-05-22 12:00:00',NULL,NULL),(120,2,'Attendance Tracking Admin','attendance-tracking-logs.admin','action','',NULL,NULL,4294967295,'2024-05-22 12:00:00',NULL,NULL),(121,2,'Reports Month Summary','reports.month summary','action','',NULL,NULL,4294967295,'2024-05-22 12:00:00',NULL,NULL),(122,2,'Reports Day Summary','reports.day summary','action','',NULL,NULL,4294967295,'2024-05-22 12:00:00',NULL,NULL),(123,2,'Reports Status Summary','reports.day summary status','action','',NULL,NULL,4294967295,'2024-05-22 12:00:00',NULL,NULL),(124,2,'Reports Time Summary','reports.day summary time','action','',NULL,NULL,4294967295,'2024-05-22 12:00:00',NULL,NULL),(125,2,'Reports Monthly Performance','reports.monthly performance','action','',NULL,NULL,4294967295,'2024-05-22 12:00:00',NULL,NULL),(126,2,'Reports Daily Performance','reports.daily performance','action','',NULL,NULL,4294967295,'2024-05-22 12:00:00',NULL,NULL),(127,2,'Reports Mustoer Roll','reports.mustoer roll report','action','',NULL,NULL,4294967295,'2024-05-22 12:00:00',NULL,NULL),(128,2,'Reports Global','reports.global reports','action','',NULL,NULL,4294967295,'2024-05-22 12:00:00',NULL,NULL),(129,2,'Reports Departmnet Head Count','reports.department wise head count','action','',NULL,NULL,4294967295,'2024-05-22 12:00:00',NULL,NULL),(130,2,'Checkin Logs View','checkin-logs.view','action','',NULL,NULL,4294967295,'2024-05-22 12:00:00',NULL,NULL),(131,2,'Checkin Export','checkin-logs.export','action','',NULL,NULL,4294967295,'2024-05-22 12:00:00',NULL,NULL),(132,2,'Checking Admin','checkin-logs.admin','action','',NULL,NULL,4294967295,'2024-05-22 12:00:00',NULL,NULL),(133,2,'Overtime Master View','overtime-masters.rules-view','action','',NULL,NULL,4294967295,'2024-05-22 12:00:00',NULL,NULL),(134,2,'Overtime Master Admin','overtime-masters.rules-admin','action','',NULL,NULL,4294967295,'2024-05-22 12:00:00',NULL,NULL),(135,2,'Attendance Summary View','attendance-summary.view','action','',NULL,NULL,4294967295,'2024-05-22 12:00:00',NULL,NULL),(136,2,'Attendance Summary Export','attendance-summary.export','action','',NULL,NULL,4294967295,'2024-05-22 12:00:00',NULL,NULL),(137,2,'Attendance Summary Admin','attendance-summary.admin','action','',NULL,NULL,4294967295,'2024-05-22 12:00:00',NULL,NULL),(138,2,'Unknow Users View','unknown-users.view','action','',NULL,NULL,4294967295,'2024-05-22 12:00:00',NULL,NULL),(139,2,'Unknow Users Export','unknown-users.export','action','',NULL,NULL,4294967295,'2024-05-22 12:00:00',NULL,NULL),(140,2,'Unknow Users Admin','unknown-users.admin','action','',NULL,NULL,4294967295,'2024-05-22 12:00:00',NULL,NULL),(141,2,'Shifts View','shifts.view','action','',NULL,NULL,4294967295,'2024-05-22 12:00:00',NULL,NULL),(142,2,'Shifts Export','shifts.export','action','',NULL,NULL,4294967295,'2024-05-22 12:00:00',NULL,NULL),(143,2,'Shifts Admin','shifts.admin','action','',NULL,NULL,4294967295,'2024-05-22 12:00:00',NULL,NULL),(144,2,'Attendance Requests View','attendance-requests.view','action','',NULL,NULL,4294967295,'2024-05-22 12:00:00',NULL,NULL),(145,2,'Attendance Requests Add','attendance-requests.add','action','',NULL,NULL,4294967295,'2024-05-22 12:00:00',NULL,NULL),(146,2,'Attendance Requests Edit','attendance-requests.edit','action','',NULL,NULL,4294967295,'2024-05-22 12:00:00',NULL,NULL),(147,2,'Attendance Request Admin','attendance-requests.admin','action','',NULL,NULL,4294967295,'2024-05-22 12:00:00',NULL,NULL),(148,2,'Attendance Updation Admin','attendance-updations.admin','action','',NULL,NULL,4294967295,'2024-05-22 12:00:00',NULL,NULL),(149,2,'Attedance Punch','application.attendance-punch','action','',NULL,NULL,4294967295,'2024-05-22 12:00:00',NULL,NULL),(150,2,'Application Face Punch','application.face-punch','action','',NULL,NULL,4294967295,'2024-05-22 12:00:00',NULL,NULL),(151,2,'Device Punch','application.device-punch','action','',NULL,NULL,4294967295,'2024-05-22 12:00:00',NULL,NULL),(152,2,'Auto Radius Punch','application.auto-radius-punch','action','',NULL,NULL,4294967295,'2024-05-22 12:00:00',NULL,NULL),(153,2,'Auto Wifi Punch','application.auto-wifi-punch','action','',NULL,NULL,4294967295,'2024-05-22 12:00:00',NULL,NULL),(154,2,'Application Checkin','application.check-in','action','',NULL,NULL,4294967295,'2024-05-22 12:00:00',NULL,NULL),(155,2,'Applicatin Attendance Admin','application.attendance-admin','action','',NULL,NULL,4294967295,'2024-05-22 12:00:00',NULL,NULL),(156,2,'Organization Structure View','application.org-structure-view','action','',NULL,NULL,4294967295,'2024-05-22 12:00:00',NULL,NULL),(157,2,'Organization Functional View','application.org-functional-view','action','',NULL,NULL,4294967295,'2024-05-22 12:00:00',NULL,NULL),(158,1,'Sub Locations','menu.sub-locations','menu','',NULL,NULL,NULL,NULL,NULL,NULL),(159,1,'Area Mapping','menu.area-mapping','menu','',NULL,NULL,NULL,NULL,NULL,NULL),(160,1,'incentive Rules','menu.incentive-rule','menu','',NULL,NULL,NULL,NULL,NULL,NULL),(161,1,'Incentive Apllicabilty','menu.incentive.applicability','menu','',NULL,NULL,NULL,NULL,NULL,NULL),(162,1,'Sub Department','menu.sub-departments','menu','',NULL,NULL,NULL,NULL,NULL,NULL),(163,1,'Overtime Rule','menu.overtime.rule','menu','',NULL,NULL,NULL,NULL,NULL,NULL),(164,1,'Overtime Right','menu.overtime.applicability','menu','',NULL,NULL,NULL,NULL,NULL,NULL),(165,1,'Bus Management','menu.buses','menu','',NULL,NULL,NULL,NULL,NULL,NULL),(166,2,'User Wise Attendance','report.attendance','menu','',NULL,NULL,NULL,NULL,NULL,NULL),(167,7,'Compliance','menu.compliance.compliance','menu','',NULL,NULL,NULL,NULL,NULL,NULL),(168,7,'Health Record','menu.compliance.health-record','menu','',NULL,NULL,NULL,NULL,NULL,NULL),(169,7,'Warning Letter','menu.compliance.warning-letter','menu','',NULL,NULL,NULL,NULL,NULL,NULL),(170,7,'Compliance Rating','menu.compliance.rating','menu','',NULL,NULL,NULL,NULL,NULL,NULL),(171,7,'Certificate','menu.compliance.certificate','menu','',NULL,NULL,NULL,NULL,NULL,NULL),(172,7,'Compliance Type Master','menu.compliance.type','menu','',NULL,NULL,NULL,NULL,NULL,NULL),(173,7,'Frequency Master','menu.compliance.frequency','menu','',NULL,NULL,NULL,NULL,NULL,NULL),(174,1,'Employee Directory','menu.employee.directory','menu','',NULL,NULL,NULL,NULL,NULL,NULL),(175,1,'Managers','menu.managers','menu','',NULL,NULL,NULL,NULL,NULL,NULL),(176,1,'Activity Dashboard','menu.dashboard.activity','menu','',NULL,NULL,NULL,NULL,NULL,NULL),(180,3,'Leaves Report','menu.leave-report','menu','',NULL,NULL,NULL,NULL,NULL,NULL),(181,3,'Leaves','menu.leave','menu','',NULL,NULL,NULL,NULL,NULL,NULL),(182,3,'Leave Type','menu.leave-type','menu','',NULL,NULL,NULL,NULL,NULL,NULL),(192,1,'Employee Add','employee.add','action','',NULL,NULL,NULL,NULL,NULL,NULL),(193,1,'Employee Edit','employee.edit','action','',NULL,NULL,NULL,NULL,NULL,NULL),(194,1,'Employee View','employee.view','action','',NULL,NULL,NULL,NULL,NULL,NULL),(195,1,'Employee Delete','employee.delete','action','',NULL,NULL,NULL,NULL,NULL,NULL),(196,1,'Workman Export','workman.export','action','',NULL,NULL,NULL,NULL,NULL,NULL),(197,1,'Workman Import','workman.import','action','',NULL,NULL,NULL,NULL,NULL,NULL),(198,1,'Workman Add','workman.add','action','',NULL,NULL,NULL,NULL,NULL,NULL),(199,1,'Workman View','workman.view.','action','',NULL,NULL,NULL,NULL,NULL,NULL),(200,1,'Workman Edit','workman.edit','action','',NULL,NULL,NULL,NULL,NULL,NULL),(201,1,'Workman Delete','workman.delete','action','',NULL,NULL,NULL,NULL,NULL,NULL),(202,1,'Workman Export','workman.export','action','',NULL,NULL,NULL,NULL,NULL,NULL),(203,1,'Workman Import','workman.import','action','',NULL,NULL,NULL,NULL,NULL,NULL),(204,1,'Manager Add','manager.add','action','',NULL,NULL,NULL,NULL,NULL,NULL),(205,1,'Manager view','manager.view.','action','',NULL,NULL,NULL,NULL,NULL,NULL),(206,1,'Manager Edit','manager.edit','action','',NULL,NULL,NULL,NULL,NULL,NULL),(207,1,'Manager Delete','manager.delete','action','',NULL,NULL,NULL,NULL,NULL,NULL),(208,1,'Manager Export','manager.export','action','',NULL,NULL,NULL,NULL,NULL,NULL),(209,1,'Manager Import','manager.import','action','',NULL,NULL,NULL,NULL,NULL,NULL),(210,2,'Employee Attendance','employee.attendance-summary','action','',NULL,NULL,NULL,NULL,NULL,NULL),(564,1,'Services','menu.services',NULL,'active',1,NULL,NULL,'2024-12-08 08:23:32','2024-12-08 08:23:32',NULL),(565,1,'Companies','menu.companies',NULL,'active',1,NULL,NULL,'2024-12-08 08:24:17','2024-12-08 08:24:17',NULL),(566,1,'Menus','menu.menus',NULL,'active',1,NULL,NULL,'2024-12-08 08:24:59','2024-12-08 08:24:59',NULL),(567,1,'Organizations','menu.organizations',NULL,'active',1,NULL,NULL,'2024-12-13 04:31:36','2024-12-13 04:31:36',NULL),(590,1,'Add Attribute','product.attribute_create','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(591,1,'Edit Attribute','product.attribute_edit','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(592,1,'View Attribute','product.attribute_view','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(593,1,'Delete Attribute','product.attribute_delete','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(594,1,'Export Attributes','product.attribute_export','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(595,1,'Import Attributes','product.attribute_import','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(596,1,'Add Specification','product.specifications_create','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(597,1,'Edit Specification','product.specifications_edit','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(598,1,'View Specification','product.specifications_view','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(599,1,'Delete Specification','product.specifications_delete','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(600,1,'Export Specifications','product.specifications_export','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(601,1,'Import Specifications','product.specifications_import','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(602,1,'Add Unit','product.unit_create','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(603,1,'Edit Unit','product.unit_edit','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(604,1,'View Unit','product.unit_view','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(605,1,'Delete Unit','product.unit_delete','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(606,1,'Export Units','product.unit_export','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(607,1,'Import Units','product.unit_import','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(608,1,'Add Item','product.item_create','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(609,1,'Edit Item','product.item_edit','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(610,1,'View Item','product.item_view','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(611,1,'Delete Item','product.item_delete','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(612,1,'Export Items','product.item_export','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(613,1,'Import Items','product.item_import','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(614,1,'Add customer','customer.create','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(615,1,'Edit customer','customer.edit','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(616,1,'View customer','customer.view','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(617,1,'Delete customer','customer.delete','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(618,1,'Export customer','customer.export','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(619,1,'Import customer','customer.import','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(620,1,'Add vendor','vendor.create','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(621,1,'Edit vendor','vendor.edit','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(622,1,'View vendor','vendor.view','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(623,1,'Delete vendor','vendor.delete','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(624,1,'Export vendor','vendor.export','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(625,1,'Import vendor','vendor.import','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(626,1,'Add HSN/SAC','compliance.hsn_create','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(627,1,'Edit HSN/SAC','compliance.hsn_edit','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(628,1,'View HSN/SAC','compliance.hsn_view','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(629,1,'Delete HSN/SAC','compliance.hsn_delete','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(630,1,'Export HSN/SAC','compliance.hsn_export','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(631,1,'Import HSN/SAC','compliance.hsn_import','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(632,1,'Add Tax','compliance.tax_create','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(633,1,'Edit Tax','compliance.tax_edit','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(634,1,'View Tax','compliance.tax_view','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(635,1,'Delete Tax','compliance.tax_delete','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(636,1,'Export Tax','compliance.tax_export','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(637,1,'Import Tax','compliance.tax_import','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(638,1,'Add Term And Condition','compliance.terms_create','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(639,1,'Edit Term And Condition','compliance.terms_edit','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(640,1,'View Term And Condition','compliance.terms_view','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(641,1,'Delete Term And Condition','compliance.terms_delete','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(642,1,'Export Term And Condition','compliance.terms_export','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(643,1,'Import Term And Condition','compliance.terms_import','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(644,1,'Add Discount','compliance.discount_create','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(645,1,'Edit Discount','compliance.discount_edit','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(646,1,'View Discount','compliance.discount_view','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(647,1,'Delete Discount','compliance.discount_delete','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(648,1,'Export Discount','compliance.discount_export','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(649,1,'Import Discount','compliance.discount_import','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(650,1,'Add Expense','compliance.expense_create','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(651,1,'Edit Expense','compliance.expense_edit','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(652,1,'View Expense','compliance.expense_view','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(653,1,'Delete Expense','compliance.expense_delete','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(654,1,'Export Expense','compliance.expense_export','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(655,1,'Import Expense','compliance.expense_import','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(656,1,'Add Category','product.category_create','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(657,1,'Edit Category','product.category_edit','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(658,1,'View Category','product.category_view','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(659,1,'Delete Category','product.category_delete','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(660,1,'Export Category','product.category_export','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(661,1,'Import Category','product.category_import','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(662,1,'Add Payment Term','customer.payment_terms_create','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(663,1,'Edit Payment Term','customer.payment_terms_edit','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(664,1,'View Payment Term','customer.payment_terms_view','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(665,1,'Delete Payment Term','customer.payment_terms_delete','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(666,1,'Export Payment Term','customer.payment_terms_export','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(667,1,'Import Payment Term','customer.payment_terms_import','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(668,1,'Add Exchange Rate','exchange_rates.create','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(669,1,'Edit Exchange Rate','exchange_rates.edit','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(670,1,'View Exchange Rate','exchange_rates.view','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(671,1,'Delete Exchange Rate','exchange_rates.delete','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(672,1,'Export Exchange Rate','exchange_rates.export','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(673,1,'Import Exchange Rate','exchange_rates.import','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(674,1,'Add store','store.create','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(675,1,'Edit store','store.edit','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(676,1,'View store','store.view','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(677,1,'Delete store','store.delete','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(678,1,'Export store','store.export','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(679,1,'Import store','store.import','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(680,1,'Add banks','banks.create','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(681,1,'Edit bank','bank.edit','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(682,1,'View bank','bank.view','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(683,1,'Delete bank','bank.delete','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(684,1,'Export bank','bank.export','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(685,1,'Import banks','banks.import','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(838,1,'Add Payment Term','vendor.payment_terms_create','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(839,1,'Edit Payment Term','vendor.payment_terms_edit','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(840,1,'View Payment Term','vendor.payment_terms_view','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(841,1,'Delete Payment Term','vendor.payment_terms_delete','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(842,1,'Export Payment Term','vendor.payment_terms_export','action','active',NULL,NULL,NULL,NULL,NULL,NULL),(843,1,'Import Payment Term','vendor.payment_terms_import','action','active',NULL,NULL,NULL,NULL,NULL,NULL);

--
-- Table structure for table `release_managements`
--

CREATE TABLE `release_managements` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `type` varchar(199) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `version` varchar(199) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `code` varchar(199) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `description` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `release_for` enum('universal','specific') CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'universal',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `release_managements`
--


--
-- Table structure for table `role_permission`
--

CREATE TABLE `role_permission` (
  `role_id` int unsigned DEFAULT NULL,
  `permission_id` int unsigned DEFAULT NULL,
  KEY `role_permission_user_id_foreign` (`role_id`),
  KEY `role_permission_permission_id_foreign` (`permission_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `role_permission`
--


--
-- Table structure for table `role_user`
--

CREATE TABLE `role_user` (
  `role_id` int unsigned NOT NULL,
  `user_id` int unsigned NOT NULL,
  KEY `role_user_user_id_foreign` (`user_id`),
  KEY `role_user_role_id_foreign` (`role_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `role_user`
--


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

CREATE TABLE `roles` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `organization_id` int DEFAULT NULL,
  `group_id` bigint unsigned DEFAULT NULL,
  `company_id` bigint unsigned DEFAULT NULL,
  `name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `description` varchar(250) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `status` enum('active','inactive') CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'active',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=332 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

INSERT INTO `roles` VALUES (1,NULL,NULL,NULL,'Staqo-Admin','Staqo-Admin','active','2020-11-17 10:55:21','2023-08-04 21:01:44',NULL),(2,NULL,NULL,NULL,'Organizational Admin','Organizational Admin','active','2021-09-28 08:23:50','2021-09-28 08:23:50',NULL),(293,NULL,NULL,NULL,'Super Admin','Super Admin','active','2022-12-22 13:41:02','2023-04-22 11:13:59',NULL),(294,1,NULL,NULL,'Employee','Employee','active','2023-12-27 12:47:06','2023-12-27 12:47:06',NULL),(295,1,NULL,NULL,'Admin','Admin','active','2024-01-19 12:25:02','2024-09-06 08:46:57',NULL),(296,2,NULL,NULL,'Employee','Employee','active','2024-02-29 12:09:48','2024-02-29 12:09:48',NULL),(297,2,NULL,NULL,'Workman','Workman','active','2024-02-29 12:10:06','2024-02-29 12:10:06',NULL),(298,3,NULL,NULL,'Employee','Employee','active','2024-02-29 22:12:35','2024-02-29 22:12:35',NULL),(299,NULL,NULL,NULL,'IAM-ROOT','SUPER ADMIN IAM','active',NULL,NULL,NULL),(300,NULL,NULL,NULL,'IAM-ORGANIZATION','ORGANIZATION ADMIN IAM','active',NULL,NULL,NULL),(301,1,NULL,NULL,'Admin-Attendance','Attendance Admin','active','2024-09-06 08:48:00','2024-09-06 08:48:00',NULL),(302,5,NULL,NULL,'Employee','Employee','active','2024-09-21 14:00:05','2024-09-21 14:00:05',NULL),(303,6,NULL,NULL,'Employee','On Roll Employees','active','2024-10-24 16:03:57','2024-10-24 16:03:57',NULL),(304,5,3,NULL,'Employee','Employee','active','2024-12-03 10:58:38','2024-12-03 10:58:38',NULL),(305,8,4,4,'Employee','Employee','active','2024-12-08 08:53:24','2024-12-08 08:53:24',NULL),(306,5,3,3,'Loan Rights','Loan Rights','active','2024-12-09 10:22:43','2025-03-03 11:16:43',NULL),(307,9,NULL,NULL,'Employee','Employee','active','2024-12-10 18:19:50','2024-12-10 18:19:50',NULL),(308,NULL,5,NULL,'Sub Admin','Sub Admin','active','2024-12-16 06:20:41','2024-12-16 06:20:41',NULL),(309,NULL,5,NULL,'Employee','Employee','active','2024-12-16 06:20:59','2024-12-16 06:20:59',NULL),(310,NULL,1,NULL,'ERP Employee','Employee','active','2024-12-17 11:49:34','2025-01-06 07:34:54',NULL),(311,11,NULL,NULL,'Employee','Employee','active','2024-12-19 12:14:09','2024-12-19 12:14:09',NULL),(312,7,NULL,NULL,'ERP Manager','ERP Manager','active','2025-01-06 12:04:40','2025-01-06 16:12:56',NULL),(313,NULL,7,NULL,'Admin Role 1','Test Admin Role','active','2025-01-31 06:45:43','2025-01-31 06:45:43',NULL),(314,NULL,8,NULL,'Land Parcel Admin','Land Parcel Admin','active','2025-02-13 05:30:58','2025-02-13 05:30:58',NULL),(315,NULL,8,NULL,'LOAN-ADMIN','LOAN-ADMIN','active','2025-02-13 07:38:47','2025-02-13 07:38:47',NULL),(316,NULL,8,NULL,'Legal-Admin','Employee','active','2025-02-13 09:17:55','2025-02-13 09:17:55',NULL),(317,NULL,8,NULL,'Finance Admin','Finance Admin','active','2025-02-13 09:24:04','2025-02-13 09:24:04',NULL),(318,NULL,3,NULL,'Land Rights','Land Rights','active','2025-02-17 06:21:36','2025-03-03 11:07:19',NULL),(319,NULL,3,NULL,'Finance','Finance','active','2025-02-18 11:00:19','2025-03-03 10:57:55',NULL),(320,NULL,3,NULL,'Legal Rights','Legal Rights','active','2025-02-20 10:37:17','2025-02-20 10:37:17',NULL),(321,NULL,3,NULL,'HR','HRMS','active','2025-02-24 10:14:39','2025-02-24 10:14:39',NULL),(322,NULL,3,NULL,'Finance Admin','Finance Manager','active','2025-03-03 10:18:45','2025-03-03 10:58:05',NULL),(323,NULL,3,NULL,'Series Admin','Series Admin','active','2025-03-03 11:04:20','2025-03-03 11:04:20',NULL),(324,NULL,3,NULL,'Document Drive','Document Drive','active','2025-03-03 11:08:01','2025-03-03 11:08:01',NULL),(325,NULL,3,NULL,'File Tracking','File Tracking','active','2025-03-03 11:08:48','2025-03-03 11:08:48',NULL),(326,NULL,3,NULL,'Stakeholder','Stakeholder','active','2025-03-03 11:09:29','2025-03-03 11:09:29',NULL),(327,NULL,3,NULL,'All Rights','All Rights','active','2025-03-03 11:10:42','2025-03-03 11:10:42',NULL),(328,NULL,3,NULL,'Project','Project','active','2025-03-03 11:12:19','2025-03-03 11:12:19',NULL),(329,NULL,3,NULL,'All Rights without HRMS','All Rights without HRMS','active','2025-03-03 11:18:33','2025-03-03 11:18:33',NULL),(330,NULL,3,NULL,'Master Management','Master Management','active','2025-03-03 11:30:00','2025-03-03 11:30:00',NULL),(331,NULL,3,NULL,'Procurement','Procurement','active','2025-03-03 11:33:32','2025-03-03 11:38:02',NULL);

--
-- Table structure for table `service_groups`
--

CREATE TABLE `service_groups` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `alias` varchar(255) NOT NULL,
  `status` varchar(100) NOT NULL DEFAULT 'active',
  `created_by` bigint unsigned NOT NULL,
  `updated_by` bigint unsigned DEFAULT NULL,
  `deleted_by` bigint unsigned DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `service_groups`
--

INSERT INTO `service_groups` VALUES (1,'Web','web','active',3,NULL,NULL,'2024-10-24 05:22:36','2024-10-24 05:22:36',NULL);

--
-- Table structure for table `services`
--

CREATE TABLE `services` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `service_group_id` int DEFAULT NULL,
  `name` varchar(200) NOT NULL,
  `alias` varchar(100) DEFAULT NULL,
  `icon` varchar(250) DEFAULT NULL,
  `group_type` varchar(199) DEFAULT NULL,
  `status` enum('active','inactive','drop') DEFAULT 'active',
  `created_by` int unsigned DEFAULT NULL,
  `updated_by` int unsigned DEFAULT NULL,
  `deleted_by` int unsigned DEFAULT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `deleted_at` datetime DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=34 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `services`
--

INSERT INTO `services` VALUES (1,1,'Common','common',NULL,NULL,'active',NULL,NULL,NULL,'2024-03-13 18:00:00','2024-03-13 18:00:00',NULL),(2,1,'Attendance','attendance',NULL,NULL,'active',NULL,NULL,NULL,'2024-03-13 18:00:00','2024-03-13 18:00:00',NULL),(3,1,'Leave','leave',NULL,NULL,'active',NULL,NULL,NULL,'2024-03-13 18:00:00','2024-03-13 18:00:00',NULL),(6,1,'Reports','reports',NULL,NULL,'active',NULL,NULL,NULL,'2024-03-13 18:00:00','2024-03-13 18:00:00',NULL),(7,1,'Compliance','compliance',NULL,NULL,'active',NULL,NULL,NULL,'2024-03-13 18:00:00','2024-03-13 18:00:00',NULL),(8,1,'Expense','expense',NULL,NULL,'active',NULL,NULL,NULL,'2024-03-13 18:00:00','2024-03-13 18:00:00',NULL);

--
-- Table structure for table `services_menu`
--

CREATE TABLE `services_menu` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `service_id` bigint unsigned NOT NULL,
  `name` varchar(200) NOT NULL,
  `alias` varchar(100) DEFAULT NULL,
  `parent_menu_id` bigint unsigned DEFAULT NULL,
  `url` varchar(250) DEFAULT NULL,
  `type` varchar(100) DEFAULT NULL,
  `icon_type` varchar(255) DEFAULT NULL,
  `icon` varchar(250) DEFAULT NULL,
  `menu_type` varchar(50) DEFAULT NULL,
  `sequence` int unsigned DEFAULT NULL,
  `position` varchar(100) DEFAULT NULL,
  `status` enum('active','inactive','drop') DEFAULT 'active',
  `created_by` int unsigned DEFAULT NULL,
  `updated_by` int unsigned DEFAULT NULL,
  `deleted_by` int unsigned DEFAULT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  `deleted_at` datetime DEFAULT NULL,
  `service_group_id` bigint unsigned DEFAULT NULL,
  `erp_service_id` longtext,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=257 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `services_menu`
--

INSERT INTO `services_menu` VALUES (1,1,'Dashboard','dashboard',NULL,NULL,'internal',NULL,NULL,NULL,1,'both','active',NULL,NULL,NULL,'2024-03-14 12:00:00','2024-03-14 12:00:00',NULL,3,NULL),(2,1,'System Master','masters',NULL,NULL,'internal',NULL,NULL,NULL,1,'both','active',NULL,NULL,NULL,'2024-03-14 12:00:00','2024-03-14 12:00:00',NULL,3,NULL),(3,1,'Admin Access','admin-access',NULL,NULL,'internal',NULL,NULL,NULL,1,'both','inactive',NULL,NULL,NULL,'2024-03-14 12:00:00','2024-03-14 12:00:00',NULL,3,NULL),(4,1,'User Management','users',NULL,NULL,'internal',NULL,NULL,NULL,1,'both','active',NULL,NULL,NULL,'2024-03-14 12:00:00','2024-03-14 12:00:00',NULL,3,NULL),(5,2,'Attendance','attendance',NULL,NULL,'internal',NULL,NULL,NULL,1,'both','active',NULL,NULL,NULL,'2024-03-14 12:00:00','2024-03-14 12:00:00',NULL,3,NULL),(6,3,'Leave Management','leave-managment',225,NULL,'Internal',NULL,NULL,NULL,2,NULL,'active',NULL,NULL,NULL,'2024-03-14 12:00:00','2025-02-19 18:42:15',NULL,3,NULL),(9,6,'Reports','reports',NULL,NULL,'internal',NULL,NULL,NULL,1,'both','active',NULL,NULL,NULL,'2024-03-14 12:00:00','2024-03-14 12:00:00',NULL,3,NULL),(11,2,'Shifts','shifts',237,NULL,'Internal',NULL,NULL,NULL,1,NULL,'active',NULL,NULL,NULL,'2024-03-14 12:00:00','2025-02-19 19:47:27',NULL,3,NULL),(12,1,'Departments','departments',2,NULL,'internal',NULL,NULL,NULL,1,'setting','active',NULL,NULL,NULL,'2024-03-14 12:00:00','2024-03-14 12:00:00',NULL,3,NULL),(13,1,'Designation','designations',2,NULL,'internal',NULL,NULL,NULL,1,'setting','active',NULL,NULL,NULL,'2024-03-14 12:00:00','2024-03-14 12:00:00',NULL,3,NULL),(14,1,'Location ','locations',2,NULL,'internal',NULL,NULL,NULL,1,'setting','active',NULL,NULL,NULL,'2024-03-14 12:00:00','2024-03-14 12:00:00',NULL,3,NULL),(15,1,'Area Master','area',2,NULL,'internal',NULL,NULL,NULL,1,'setting','active',NULL,NULL,NULL,'2024-03-14 12:00:00','2024-03-14 12:00:00',NULL,3,NULL),(16,1,'Grade','grades',2,NULL,'internal',NULL,NULL,NULL,1,'setting','active',NULL,NULL,NULL,'2024-03-14 12:00:00','2024-03-14 12:00:00',NULL,3,NULL),(17,1,'Category','categories',2,NULL,'internal',NULL,NULL,NULL,1,'setting','active',NULL,NULL,NULL,'2024-03-14 12:00:00','2024-03-14 12:00:00',NULL,3,NULL),(18,1,'Work Station','workstations',2,NULL,'internal',NULL,NULL,NULL,1,'setting','active',NULL,NULL,NULL,'2024-03-14 12:00:00','2024-03-14 12:00:00',NULL,3,NULL),(19,1,'Holiday','holidays',2,NULL,'internal',NULL,NULL,NULL,1,'setting','active',NULL,NULL,NULL,'2024-03-14 12:00:00','2024-03-14 12:00:00',NULL,3,NULL),(20,1,'Device Management','devices',2,NULL,'internal',NULL,NULL,NULL,1,'setting','active',NULL,NULL,NULL,'2024-03-14 12:00:00','2024-03-14 12:00:00',NULL,3,NULL),(21,1,'Industries','industries',2,NULL,'internal',NULL,NULL,NULL,1,'right','active',NULL,NULL,NULL,'2024-03-14 12:00:00','2024-03-14 12:00:00',NULL,3,NULL),(22,1,'Meta tags','meta-tags',2,NULL,'internal',NULL,NULL,NULL,1,'right','active',NULL,NULL,NULL,'2024-03-14 12:00:00','2024-03-14 12:00:00',NULL,3,NULL),(23,1,'Group Codes','group-codes',2,NULL,'internal',NULL,NULL,NULL,1,'right','active',NULL,NULL,NULL,'2024-03-14 12:00:00','2024-03-14 12:00:00',NULL,3,NULL),(24,1,'Import-Export','data-managment',2,NULL,'internal',NULL,NULL,NULL,1,'right','active',NULL,NULL,NULL,'2024-03-14 12:00:00','2024-03-14 12:00:00',NULL,3,NULL),(25,1,'Admin Configurations','root-configurations',NULL,NULL,'internal',NULL,NULL,NULL,1,'right','inactive',NULL,NULL,NULL,'2024-03-14 12:00:00','2024-03-14 12:00:00',NULL,7,NULL),(26,1,'Admin Users','admin-users',4,NULL,'internal',NULL,NULL,NULL,1,'left','active',NULL,NULL,NULL,'2024-03-14 12:00:00','2024-03-14 12:00:00',NULL,7,NULL),(27,1,'Contractors','contractors',4,NULL,'internal',NULL,NULL,NULL,1,'left','active',NULL,NULL,NULL,'2024-03-14 12:00:00','2024-03-14 12:00:00',NULL,3,NULL),(28,1,'Role and Permissions','role-permissions',4,NULL,'internal',NULL,NULL,NULL,1,'right','active',NULL,NULL,NULL,'2024-03-14 12:00:00','2024-03-14 12:00:00',NULL,7,NULL),(29,1,'Employees','employees',4,NULL,'internal',NULL,NULL,NULL,1,'left','active',NULL,NULL,NULL,'2024-03-14 12:00:00','2024-03-14 12:00:00',NULL,7,NULL),(30,1,'Contractual Workers','workmans',4,NULL,'internal',NULL,NULL,NULL,1,'left','active',NULL,NULL,NULL,'2024-03-14 12:00:00','2024-03-14 12:00:00',NULL,3,NULL),(31,2,'Attendance Logs','attendance-logs',226,NULL,'Internal',NULL,NULL,NULL,1,NULL,'active',NULL,NULL,NULL,'2024-03-14 12:00:00','2025-02-19 19:38:59',NULL,3,NULL),(32,2,'Check In logs','checkin-logs',5,NULL,'internal',NULL,NULL,NULL,1,'left','active',NULL,NULL,NULL,'2024-03-14 12:00:00','2024-03-14 12:00:00',NULL,3,NULL),(33,2,'Attendance Tracking Logs','attendance-tracking-logs',5,NULL,'internal',NULL,NULL,NULL,1,'left','active',NULL,NULL,NULL,'2024-03-14 12:00:00','2024-03-14 12:00:00',NULL,3,NULL),(34,2,'Entry Logs','attendance-summary',226,NULL,'Internal',NULL,NULL,NULL,1,NULL,'active',NULL,NULL,NULL,'2024-03-14 12:00:00','2025-02-19 19:40:48',NULL,3,NULL),(35,2,'Unkown Users','unknown-users',5,NULL,'internal',NULL,NULL,NULL,1,'left','active',NULL,NULL,NULL,'2024-03-14 12:00:00','2024-03-14 12:00:00',NULL,3,NULL),(36,2,'Over Time Masters ','overtime-masters',5,NULL,'internal',NULL,NULL,NULL,1,'setting','active',NULL,NULL,NULL,'2024-03-14 12:00:00','2024-03-14 12:00:00',NULL,3,NULL),(37,2,'Over Time Reports','overtime-reports',5,NULL,'internal',NULL,NULL,NULL,1,'left','active',NULL,NULL,NULL,'2024-03-14 12:00:00','2024-03-14 12:00:00',NULL,3,NULL),(38,2,'Daily Performance Reports','attendance-report_daily-performance',5,NULL,'Internal',NULL,NULL,NULL,1,NULL,'active',NULL,NULL,NULL,'2024-03-14 12:00:00','2025-02-27 06:18:20',NULL,3,NULL),(39,2,'Attendance Updations','attendance-updations',226,NULL,'Internal',NULL,NULL,NULL,7,NULL,'active',NULL,NULL,NULL,'2024-03-14 12:00:00','2025-02-19 19:45:03',NULL,3,NULL),(40,2,'Attendance Requests','attendance-requests',5,NULL,'internal',NULL,NULL,NULL,1,'left','active',NULL,NULL,NULL,'2024-03-14 12:00:00','2024-03-14 12:00:00',NULL,3,NULL),(43,3,'Leaves','leaves',6,NULL,'Internal',NULL,NULL,NULL,2,NULL,'active',NULL,NULL,NULL,'2024-03-14 12:00:00','2025-02-19 19:50:23',NULL,3,NULL),(44,3,'Leave Rules','leave-rules',6,NULL,'Internal',NULL,NULL,NULL,4,'Left Sidebar','active',NULL,NULL,NULL,'2024-03-14 12:00:00','2025-02-19 19:51:29',NULL,3,NULL),(65,6,'Global Report','reports-global',9,NULL,'internal',NULL,NULL,NULL,1,'left','active',NULL,NULL,NULL,'2024-03-14 12:00:00','2024-03-14 12:00:00',NULL,3,NULL),(66,6,'Attendance Month Summary','reports-attendance-summary',9,NULL,'internal',NULL,NULL,NULL,1,'left','active',NULL,NULL,NULL,'2024-03-14 12:00:00','2024-03-14 12:00:00',NULL,3,NULL),(67,6,'Attendance Day Wise Report','reports-attendance-custom',9,NULL,'internal',NULL,NULL,NULL,1,'left','active',NULL,NULL,NULL,'2024-03-14 12:00:00','2024-03-14 12:00:00',NULL,3,NULL),(68,6,'Attendance Actual Vs Planned','reports-attendance-plan',9,NULL,'internal',NULL,NULL,NULL,1,'left','active',NULL,NULL,NULL,'2024-03-14 12:00:00','2024-03-14 12:00:00',NULL,3,NULL),(69,6,'Monthly Performance Report','attendance-report_performance-register',5,NULL,'Internal',NULL,NULL,NULL,1,NULL,'active',NULL,NULL,NULL,'2024-03-14 12:00:00','2025-02-27 06:23:40',NULL,3,NULL),(70,6,'Overtime Reports','reports-overtime',9,NULL,'internal',NULL,NULL,NULL,1,'left','active',NULL,NULL,NULL,'2024-03-14 12:00:00','2024-03-14 12:00:00',NULL,3,NULL),(71,6,'Canteen Reports','reports-canteen',9,NULL,'internal',NULL,NULL,NULL,1,'left','active',NULL,NULL,NULL,'2024-03-14 12:00:00','2024-03-14 12:00:00',NULL,3,NULL),(72,6,'Functional MIS Report','reports-mis',9,NULL,NULL,NULL,NULL,NULL,NULL,'left','active',NULL,NULL,NULL,'2024-03-14 12:00:00','2024-03-14 12:00:00',NULL,3,NULL),(98,7,'Compliances','menu.compliance-management',9,NULL,'internal',NULL,NULL,NULL,1,'both','active',NULL,NULL,NULL,'2024-06-13 11:27:35','2024-06-13 11:27:35',NULL,3,NULL),(99,2,'Shifts Roaster','menu.roaster-management',5,NULL,'internal',NULL,NULL,NULL,1,'both','active',NULL,NULL,NULL,'2024-06-17 15:58:10','2024-06-17 15:58:10',NULL,3,NULL),(100,2,'Attendance Config','menu.attendance-config',NULL,NULL,'internal',NULL,NULL,NULL,1,'both','inactive',NULL,NULL,NULL,'2024-06-17 15:58:10','2024-06-17 15:58:10',NULL,3,NULL),(101,6,'Report Config','menu.report-config',9,NULL,'internal',NULL,NULL,NULL,1,'both','inactive',NULL,NULL,NULL,'2024-06-17 15:58:10','2024-06-17 15:58:10',NULL,3,NULL),(207,1,'Companies','companies',2,NULL,'Internal','icon',NULL,NULL,1,'Left Sidebar','active',NULL,NULL,NULL,'2024-12-08 08:10:37','2024-12-08 08:10:37',NULL,7,NULL),(208,1,'Services','services',2,NULL,'Internal','icon',NULL,NULL,1,'Left Sidebar','active',NULL,NULL,NULL,'2024-12-08 08:20:21','2024-12-08 08:20:21',NULL,7,NULL),(209,1,'Menus','menus',2,NULL,'Internal','icon',NULL,NULL,NULL,'Left Sidebar','active',NULL,NULL,NULL,'2024-12-08 08:21:54','2024-12-08 08:21:54',NULL,7,NULL),(210,1,'Organizations','organizations',2,NULL,'Internal','icon',NULL,NULL,NULL,'Left Sidebar','active',NULL,NULL,NULL,'2024-12-13 04:31:03','2024-12-13 04:31:03',NULL,7,NULL),(223,1,'Member Dashboard','home',1,NULL,'Internal','icon',NULL,NULL,1,'Left Sidebar','active',NULL,NULL,NULL,'2025-02-19 18:29:50','2025-02-19 18:29:50',NULL,0,'\"null\"'),(224,1,'Team Dashboard','home_team',1,NULL,'Internal','icon',NULL,NULL,NULL,'Left Sidebar','active',NULL,NULL,NULL,'2025-02-19 18:31:10','2025-02-19 18:31:10',NULL,0,'\"null\"'),(225,1,'HRMS','hrms',NULL,NULL,NULL,'icon',NULL,NULL,2,'Left Sidebar','active',NULL,NULL,NULL,'2025-02-19 18:33:05','2025-02-19 18:33:05',NULL,3,'\"null\"'),(226,2,'Attendance Management','attendance-management',225,NULL,'Internal','icon',NULL,NULL,1,'Left Sidebar','active',NULL,NULL,NULL,'2025-02-19 18:34:23','2025-02-19 18:34:23',NULL,3,'\"null\"'),(227,2,'Member Attendance Logs','attendance-logs',226,NULL,'Internal','icon',NULL,NULL,1,'Left Sidebar','active',NULL,NULL,NULL,'2025-02-19 18:40:33','2025-02-19 18:40:33',NULL,0,'\"null\"'),(228,3,'Member Leaves','leave-approvals',6,NULL,'Internal','icon',NULL,NULL,2,NULL,'active',NULL,NULL,NULL,'2025-02-19 18:44:12','2025-02-19 18:44:12',NULL,0,'\"null\"'),(229,2,'Member Month Summary','attendance-report_month-summary',226,NULL,NULL,'icon',NULL,NULL,10,NULL,'active',NULL,NULL,NULL,'2025-02-19 18:58:28','2025-02-19 18:58:28',NULL,0,'\"null\"'),(230,2,'Member Day Summary','attendance-report_day-summary',226,NULL,'Internal','icon',NULL,NULL,11,NULL,'active',NULL,NULL,NULL,'2025-02-19 18:59:39','2025-02-19 18:59:56',NULL,0,NULL),(231,2,'Member Performance Register','attendance-report_performance-register',226,NULL,'Internal','icon',NULL,NULL,12,NULL,'active',NULL,NULL,NULL,'2025-02-19 19:01:15','2025-02-19 19:02:26',NULL,0,NULL),(232,2,'Member Daily Performance','attendance-report_daily-performance',226,NULL,'Internal','icon',NULL,NULL,13,NULL,'active',NULL,NULL,NULL,'2025-02-19 19:03:13','2025-02-19 19:03:13',NULL,0,'\"null\"'),(233,1,'Admin Dashboard','home',1,NULL,NULL,'icon',NULL,NULL,3,'Left Sidebar','active',NULL,NULL,NULL,'2025-02-19 19:14:05','2025-02-19 19:14:05',NULL,3,'\"null\"'),(234,1,'HRMS Employees','employees',4,NULL,'Internal','icon',NULL,NULL,5,NULL,'active',NULL,NULL,NULL,'2025-02-19 19:32:57','2025-02-19 19:32:57',NULL,3,'\"null\"'),(235,1,'HRMS Workman','workmans',4,NULL,NULL,'icon',NULL,NULL,6,NULL,'active',NULL,NULL,NULL,'2025-02-19 19:33:56','2025-02-19 19:33:56',NULL,3,'\"null\"'),(236,2,'Attendance Report','attendance-report_report',226,NULL,NULL,'icon',NULL,NULL,5,NULL,'active',NULL,NULL,NULL,'2025-02-19 19:43:52','2025-02-19 19:43:52',NULL,3,'\"null\"'),(237,2,'Shift Management','shift-managment',225,NULL,NULL,'icon',NULL,NULL,3,NULL,'active',NULL,NULL,NULL,'2025-02-19 19:47:01','2025-02-19 19:47:01',NULL,3,'\"null\"'),(238,3,'Dashboard','hr-leave-dashboard',6,NULL,NULL,'icon',NULL,NULL,7,NULL,'active',NULL,NULL,NULL,'2025-02-19 19:53:02','2025-02-19 19:53:02',NULL,3,'\"null\"'),(239,3,'Leave Config','leave-types',6,NULL,NULL,'icon',NULL,NULL,9,NULL,'active',NULL,NULL,NULL,'2025-02-19 19:54:04','2025-02-19 19:54:04',NULL,3,'\"null\"'),(240,3,'Leave Report','leave-report',6,NULL,NULL,'icon',NULL,NULL,11,NULL,'active',NULL,NULL,NULL,'2025-02-19 19:55:21','2025-02-19 19:55:21',NULL,3,'\"null\"');

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `user_id` bigint unsigned DEFAULT NULL,
  `ip_address` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `user_agent` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `payload` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `last_activity` int NOT NULL,
  PRIMARY KEY (`id`),
  KEY `sessions_user_id_index` (`user_id`),
  KEY `sessions_last_activity_index` (`last_activity`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `sessions`
--


--
-- Table structure for table `shifts`
--

CREATE TABLE `shifts` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `organization_id` int unsigned DEFAULT NULL,
  `name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `description` varchar(191) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `start_time` time NOT NULL,
  `end_time` time NOT NULL,
  `notify_alert` int unsigned DEFAULT '10',
  `missed_alert` int unsigned DEFAULT '10',
  `breaks` json DEFAULT NULL,
  `status` enum('active','inactive') CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'active',
  `is_night` tinyint DEFAULT '0',
  `in_buffer` int DEFAULT NULL,
  `out_buffer` int DEFAULT NULL,
  `allowed_days` int DEFAULT NULL,
  `max_buffer` int DEFAULT NULL,
  `contiguity_buffer_frequency` int DEFAULT NULL,
  `is_auto_shift` tinyint NOT NULL DEFAULT '1',
  `auto_shift_start_time` time DEFAULT NULL,
  `auto_shift_end_time` time DEFAULT NULL,
  `created_by` int unsigned DEFAULT NULL,
  `updated_by` int unsigned DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `shifts`
--

INSERT INTO `shifts` VALUES (1,5,'morning shift',NULL,'09:00:00','18:00:00',10,10,'{}','active',0,NULL,NULL,NULL,NULL,NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL);

--
-- Table structure for table `sub_departments`
--

CREATE TABLE `sub_departments` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `organization_id` int unsigned NOT NULL,
  `department_id` int unsigned NOT NULL,
  `name` varchar(191) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `status` enum('active','inactive') CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'active',
  `created_by` int DEFAULT NULL,
  `updated_by` int DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `sub_departments`
--


--
-- Table structure for table `sub_locations`
--

CREATE TABLE `sub_locations` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `parent_id` int unsigned DEFAULT NULL,
  `organization_id` int unsigned DEFAULT NULL,
  `location_id` int unsigned DEFAULT NULL,
  `name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `master` enum('Y','N') CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT 'N',
  `geo_address` varchar(599) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `geo_latitude` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `geo_longitude` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `geo_boundaries` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin,
  `allowed_wifis` json DEFAULT NULL,
  `status` enum('active','inactive') CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'active',
  `radius_in_meter` decimal(14,2) DEFAULT NULL,
  `created_by` int unsigned DEFAULT NULL,
  `updated_by` int unsigned DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `sub_locations_location_id_foreign` (`location_id`),
  KEY `sub_locations_organization_id_foreign` (`organization_id`),
  KEY `sub_locations_created_by_foreign` (`created_by`),
  KEY `sub_locations_updated_by_foreign` (`updated_by`)
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `sub_locations`
--

INSERT INTO `sub_locations` VALUES (10,NULL,2,10,'BHUVANESHWAR',NULL,'N','9Q83+JJP Anlapatana, Odisha, India','20.3665875','85.7540781',NULL,NULL,'active',100.00,73,NULL,'2024-02-29 12:39:52','2024-02-29 12:39:52',NULL),(11,NULL,3,11,'Yeshwanthpur',NULL,'N','Kurlon Limited, Jai Bharat Industrial area, camp road, Muniswara Nagar, Yeswanthpur, Bengaluru, Karnataka, India','13.0316914','77.5427357',NULL,NULL,'active',100.00,67,NULL,'2024-03-01 11:14:29','2024-03-01 11:14:29',NULL),(12,NULL,1,12,'kln sub',NULL,'N','505-6, Sarfabad Village, Sarfabad, Sector 73, Noida, Uttar Pradesh 201304, India','28.5868032','77.3914624',NULL,NULL,'active',200.00,66,NULL,'2024-09-18 22:52:23','2024-09-18 22:52:23',NULL),(13,NULL,6,13,'Sub Location',NULL,'N','34- 36, Sector 135, Noida, Nagli Bahrampur, Uttar Pradesh, India','28.4745753','77.3891314',NULL,NULL,'active',60.00,78,NULL,'2024-11-15 14:47:31','2024-11-15 14:47:31',NULL),(14,NULL,5,14,'Meghalaya Industrial Development Corporation Ltd Shillong',NULL,'N','HVCW+XFP, Nongkynrih, Laitumkhrah, Shillong, Meghalaya 793003, India','25.5724747','91.89620529999999',NULL,NULL,'active',100.00,77,77,'2024-11-26 12:04:30','2024-11-29 15:08:48',NULL),(15,NULL,5,15,'Meghalaya Industrial Development Corporation Ltd  Tura',NULL,'Y','G56W+FHX, Araimile, Tura, Meghalaya 794101, India','25.511351','90.1965012',NULL,NULL,'active',100.00,77,NULL,'2024-11-29 15:08:11','2024-11-29 15:08:11',NULL),(16,NULL,9,16,'Noida 135',NULL,'N','G92X+2G7, Sector 135, Bajidpur, Noida, Uttar Pradesh 201304, India','28.5000591','77.3987513',NULL,NULL,'active',100.00,85,NULL,'2024-12-10 18:03:40','2024-12-10 18:03:40',NULL),(17,NULL,8,17,'135 Noida',NULL,'N',NULL,NULL,NULL,NULL,NULL,'active',NULL,NULL,NULL,NULL,NULL,NULL),(18,NULL,4,18,'Sector 135',NULL,'N','G92X+2G7, Sector 135, Bajidpur, Noida, Uttar Pradesh 201304, India','28.5000949','77.3987737',NULL,NULL,'active',200.00,88,NULL,'2024-12-18 12:00:34','2024-12-18 12:00:34',NULL);

--
-- Table structure for table `time_zones`
--

CREATE TABLE `time_zones` (
  `id` bigint NOT NULL AUTO_INCREMENT,
  `name` varchar(100) NOT NULL,
  `alias` varchar(200) DEFAULT NULL,
  `converted_time` varchar(100) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `time_zones`
--

INSERT INTO `time_zones` VALUES (1,'India GMT+5.5','Asia/Kolkata','19800000',NULL,NULL,NULL),(2,'United Kingdom(GMT+1)','Europe/London','3600000',NULL,NULL,NULL),(3,'Dubai(GMT+4)','Asia/Dubai','14400000','2023-07-05 15:42:50','2023-07-05 15:42:50',NULL);

--
-- Table structure for table `vw_attendance_summary`
--

CREATE TABLE `vw_attendance_summary` (
  `organization_id` int unsigned DEFAULT NULL,
  `employee_id` int unsigned DEFAULT NULL,
  `name` varchar(100) DEFAULT NULL,
  `employee_code` varchar(100) DEFAULT NULL,
  `employee_type` enum('employee','workman','visitor') DEFAULT NULL,
  `department_name` varchar(500) DEFAULT NULL,
  `designation_name` varchar(500) DEFAULT NULL,
  `user_type` varchar(100) DEFAULT NULL,
  `year` int DEFAULT NULL,
  `month` int DEFAULT NULL,
  `pay_days` decimal(36,2) DEFAULT NULL,
  `total_pay_days` decimal(41,4) DEFAULT NULL,
  `total_present` decimal(36,2) DEFAULT NULL,
  `total_absent` decimal(24,1) DEFAULT NULL,
  `total_holiday` decimal(23,0) DEFAULT NULL,
  `total_week_off` decimal(23,0) DEFAULT NULL,
  `total_working_time` decimal(35,4) DEFAULT NULL,
  `approved_overtime` decimal(35,4) DEFAULT NULL,
  `actual_overtime` decimal(35,4) DEFAULT NULL,
  `total_overtime` decimal(35,4) DEFAULT NULL,
  `total_productive_hours` decimal(35,4) DEFAULT NULL,
  `total_break_hours` decimal(35,4) DEFAULT NULL,
  `total_fine_days` decimal(40,4) DEFAULT NULL,
  `first_half_day` decimal(23,0) DEFAULT NULL,
  `second_half_day` decimal(23,0) DEFAULT NULL,
  `total_late_comer` decimal(23,0) DEFAULT NULL,
  `total_early_depart` decimal(23,0) DEFAULT NULL,
  `total_leave` decimal(25,1) DEFAULT NULL,
  `paid_leave` decimal(25,1) DEFAULT NULL,
  `unpaid_leave` decimal(28,2) DEFAULT NULL,
  `contractor_id` int DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `vw_attendance_summary`
--


--
-- Table structure for table `vw_attendances`
--

CREATE TABLE `vw_attendances` (
  `id` int unsigned DEFAULT NULL,
  `organization_id` int unsigned DEFAULT NULL,
  `employee_id` int unsigned DEFAULT NULL,
  `device_id_in` int DEFAULT NULL,
  `device_id_out` int DEFAULT NULL,
  `attendance_type` enum('DAILY','REGULARIZE','CHECK_INOUT','DAILY_KIOSK','Web_CheckIn') DEFAULT NULL,
  `attendance_date` date DEFAULT NULL,
  `in_time` time DEFAULT NULL,
  `requested_in` time DEFAULT NULL,
  `requested_out` time DEFAULT NULL,
  `out_time` time DEFAULT NULL,
  `in_address` longtext,
  `out_address` longtext,
  `working_time` time DEFAULT NULL,
  `status` varchar(199) DEFAULT NULL,
  `log_status` varchar(199) DEFAULT NULL,
  `overtime_status` varchar(199) DEFAULT NULL,
  `shift_id` int unsigned DEFAULT NULL,
  `loc_type_id` int DEFAULT NULL,
  `location_id` int DEFAULT NULL,
  `sub_location_id` int DEFAULT NULL,
  `early_comer` tinyint DEFAULT NULL,
  `late_comer` tinyint DEFAULT NULL,
  `early_depart` tinyint DEFAULT NULL,
  `late_depart` tinyint DEFAULT NULL,
  `over_time` varchar(10) DEFAULT NULL,
  `less_time` varchar(10) DEFAULT NULL,
  `location_trace` enum('0','1') DEFAULT NULL,
  `remarks` varchar(4000) DEFAULT NULL,
  `strict_out` tinyint DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `ismaster` enum('Y','N') DEFAULT NULL,
  `area_id` int DEFAULT NULL,
  `in_date` date DEFAULT NULL,
  `out_date` date DEFAULT NULL,
  `attachment_url` longtext,
  `overtime` time DEFAULT NULL,
  `is_half_day` tinyint DEFAULT NULL,
  `bufffer_adjusted` time DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `vw_attendances`
--


--
-- Table structure for table `vw_emp_holidays`
--

CREATE TABLE `vw_emp_holidays` (
  `employee_id` int unsigned DEFAULT NULL,
  `organization_id` int unsigned DEFAULT NULL,
  `holiday_date` date DEFAULT NULL,
  `is_week_off` tinyint DEFAULT NULL,
  `master_id` int DEFAULT NULL,
  `map_id` int DEFAULT NULL,
  `list_id` int DEFAULT NULL,
  `occassion` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `vw_emp_holidays`
--


--
-- Table structure for table `vw_global_attendances`
--

CREATE TABLE `vw_global_attendances` (
  `organization_id` int unsigned DEFAULT NULL,
  `employee_id` int unsigned DEFAULT NULL,
  `attendance_date` date DEFAULT NULL,
  `in_time` time DEFAULT NULL,
  `out_time` time DEFAULT NULL,
  `penalty_minutes` int DEFAULT NULL,
  `first_half_status` varchar(344) DEFAULT NULL,
  `second_half_status` varchar(344) DEFAULT NULL,
  `final_status` varchar(199) DEFAULT NULL,
  `leave_type` varchar(291) DEFAULT NULL,
  `working_time` time DEFAULT NULL,
  `is_half_day` tinyint DEFAULT NULL,
  `actual_overtime` time DEFAULT NULL,
  `day_count` decimal(14,2) DEFAULT NULL,
  `attendance_type` varchar(100) DEFAULT NULL,
  `early_comer` tinyint DEFAULT NULL,
  `early_depart` tinyint DEFAULT NULL,
  `late_comer` tinyint DEFAULT NULL,
  `late_depart` tinyint DEFAULT NULL,
  `on_duty` tinyint DEFAULT NULL,
  `buffer_adjusted` tinyint unsigned DEFAULT NULL,
  `in_date` date DEFAULT NULL,
  `out_date` date DEFAULT NULL,
  `entry_mode` enum('auto','modified','regularized','imported') DEFAULT NULL,
  `duty_type` varchar(50) DEFAULT NULL,
  `shift_hour` time DEFAULT NULL,
  `break_hours` time DEFAULT NULL,
  `productive_hours` time DEFAULT NULL,
  `adjusted_inbuffer` time DEFAULT NULL,
  `adjusted_outbuffer` time DEFAULT NULL,
  `actual_hours` varchar(255) DEFAULT NULL,
  `payable_hours` varchar(255) DEFAULT NULL,
  `comp_off_status` varchar(40) DEFAULT NULL,
  `comp_off_day_count` decimal(14,2) DEFAULT NULL,
  `in_address` longtext,
  `out_address` longtext,
  `name` varchar(100) DEFAULT NULL,
  `remarks` longtext,
  `inactivation_date` date DEFAULT NULL,
  `flexi_hours` tinyint(1) DEFAULT NULL,
  `max_hour` decimal(14,2) DEFAULT NULL,
  `employee_code` varchar(100) DEFAULT NULL,
  `employee_type` enum('employee','workman','visitor') DEFAULT NULL,
  `mobile` varchar(15) DEFAULT NULL,
  `email` varchar(100) DEFAULT NULL,
  `father_name` varchar(199) DEFAULT NULL,
  `date_of_joining` date DEFAULT NULL,
  `date_of_leaving` date DEFAULT NULL,
  `dob` date DEFAULT NULL,
  `gender` enum('male','female','transgender') DEFAULT NULL,
  `marital_status` varchar(191) DEFAULT NULL,
  `nationality` varchar(299) DEFAULT NULL,
  `qualification` varchar(299) DEFAULT NULL,
  `disability` varchar(299) DEFAULT NULL,
  `status` enum('active','inactive','block','transfer','blacklist') DEFAULT NULL,
  `mode_of_payment` varchar(50) DEFAULT NULL,
  `bank_account_no` varchar(100) DEFAULT NULL,
  `bank_name` varchar(100) DEFAULT NULL,
  `bank_ifsc` varchar(100) DEFAULT NULL,
  `aadhar_number` varchar(25) DEFAULT NULL,
  `name_as_per_aadhar` varchar(299) DEFAULT NULL,
  `passport_number` varchar(100) DEFAULT NULL,
  `passport_valid_from_date` date DEFAULT NULL,
  `passport_valid_to_date` date DEFAULT NULL,
  `pf_no` varchar(100) DEFAULT NULL,
  `pan_no` varchar(100) DEFAULT NULL,
  `ip_number` varchar(100) DEFAULT NULL,
  `esic_no` varchar(100) DEFAULT NULL,
  `uan_number` varchar(50) DEFAULT NULL,
  `assigned_shift` varchar(100) DEFAULT NULL,
  `department_id` int unsigned DEFAULT NULL,
  `department` varchar(500) DEFAULT NULL,
  `designation_id` int unsigned DEFAULT NULL,
  `designation` varchar(500) DEFAULT NULL,
  `contractor` varchar(200) DEFAULT NULL,
  `manager` varchar(100) DEFAULT NULL,
  `grade` varchar(100) DEFAULT NULL,
  `category` varchar(191) DEFAULT NULL,
  `workStation` varchar(500) DEFAULT NULL,
  `shift` varchar(100) DEFAULT NULL,
  `start_time` time DEFAULT NULL,
  `end_time` time DEFAULT NULL,
  `organization` varchar(299) DEFAULT NULL,
  `organization_group` varchar(255) DEFAULT NULL,
  `standered_working_hour` varchar(100) DEFAULT NULL,
  `is_double_duty` varchar(3) DEFAULT NULL,
  `is_auto_shift` varchar(3) DEFAULT NULL,
  `defaulter` varchar(3) DEFAULT NULL,
  `system_generated_overtime` varchar(10) DEFAULT NULL,
  `overtime_status` varchar(10) DEFAULT NULL,
  `overtime` varchar(10) DEFAULT NULL,
  `night_shift` varchar(3) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `vw_global_attendances`
--


--
-- Table structure for table `vw_leave_accessibility`
--

CREATE TABLE `vw_leave_accessibility` (
  `organization_id` int unsigned DEFAULT NULL,
  `leave_type_id` bigint unsigned DEFAULT NULL,
  `leave_rule_id` bigint unsigned DEFAULT NULL,
  `leave_employee_type` varchar(50) DEFAULT NULL,
  `emp_employee_type` enum('employee','workman','visitor') DEFAULT NULL,
  `morphable_type` varchar(255) DEFAULT NULL,
  `morphable_id` bigint DEFAULT NULL,
  `employee_id` int unsigned DEFAULT NULL,
  `name` varchar(100) DEFAULT NULL,
  `employee_code` varchar(100) DEFAULT NULL,
  `status` enum('active','inactive','block','transfer','blacklist') DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `vw_leave_accessibility`
--


--
-- Table structure for table `week_offs`
--

CREATE TABLE `week_offs` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `organization_id` int unsigned NOT NULL,
  `day` varchar(199) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `week` varchar(199) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `off_type` varchar(199) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `week_offs_organization_id_foreign` (`organization_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `week_offs`
--


--
-- Table structure for table `work_stations`
--

CREATE TABLE `work_stations` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `organization_id` int unsigned NOT NULL,
  `name` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `status` enum('active','inactive') CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'active',
  `created_by` int unsigned DEFAULT NULL,
  `updated_by` int unsigned DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `work_stations_organization_id_foreign` (`organization_id`),
  KEY `work_stations_created_by_foreign` (`created_by`),
  KEY `work_stations_updated_by_foreign` (`updated_by`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `work_stations`
--


--
-- Table structure for table `zones`
--

CREATE TABLE `zones` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `organization_id` int unsigned NOT NULL,
  `group_id` int unsigned DEFAULT NULL,
  `company_id` int unsigned DEFAULT NULL,
  `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `status` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'active',
  `created_by` bigint unsigned DEFAULT NULL,
  `updated_by` bigint unsigned DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `zones`
--



