--
-- Host: 127.0.0.1    Database: dev_crm
-- ------------------------------------------------------


--
-- Table structure for table `assign_enquiries`
--

CREATE TABLE `assign_enquiries` (
  `id` int NOT NULL AUTO_INCREMENT,
  `user_id` int NOT NULL,
  `enquiry_id` int NOT NULL,
  `status` tinyint(1) NOT NULL DEFAULT '0',
  `date` datetime NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `assign_enquiries`
--

INSERT INTO `assign_enquiries` VALUES (1,28,1,1,'2024-12-06 15:28:01'),(2,28,2,1,'2024-12-09 11:28:49'),(3,28,3,1,'2024-12-09 12:57:37'),(4,28,4,1,'2024-12-09 13:05:21'),(5,28,5,0,'2024-12-09 13:09:13'),(6,28,6,1,'2024-12-09 13:27:24'),(7,28,7,0,'2024-12-09 14:08:41'),(8,38,7,1,'2024-12-09 15:16:48'),(9,38,5,1,'2024-12-09 15:19:19'),(10,28,8,1,'2024-12-12 11:51:23'),(11,28,9,1,'2024-12-26 13:50:35'),(12,28,10,1,'2024-12-26 13:53:43'),(13,28,11,1,'2024-12-26 13:53:54'),(14,28,12,1,'2024-12-26 13:56:00'),(19,28,14,1,'2024-12-26 17:17:51'),(20,28,13,1,'2024-12-26 17:17:51');

--
-- Table structure for table `category_level_four`
--

CREATE TABLE `category_level_four` (
  `id` int NOT NULL AUTO_INCREMENT,
  `category_level_three_id` int DEFAULT NULL,
  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `category_level_three_id` (`category_level_three_id`),
  CONSTRAINT `category_level_four_ibfk_1` FOREIGN KEY (`category_level_three_id`) REFERENCES `category_level_three` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=30 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `category_level_four`
--

INSERT INTO `category_level_four` VALUES (15,14,'October 2024'),(19,19,'December 2024'),(20,20,'November 2024'),(21,21,'October 2024'),(22,22,'October 2024'),(23,23,'September 2024'),(24,24,'September 2024'),(25,25,'December 2024');

--
-- Table structure for table `category_level_one`
--

CREATE TABLE `category_level_one` (
  `id` int NOT NULL AUTO_INCREMENT,
  `office_id` int DEFAULT NULL,
  `organization_id` int DEFAULT NULL,
  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `organization_id` (`organization_id`),
  KEY `office_id` (`office_id`),
  CONSTRAINT `category_level_one_ibfk_1` FOREIGN KEY (`organization_id`) REFERENCES `organization` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `category_level_one_ibfk_2` FOREIGN KEY (`office_id`) REFERENCES `office` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=31 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `category_level_one`
--

INSERT INTO `category_level_one` VALUES (21,18,NULL,'Energy System'),(27,20,NULL,'Audit');

--
-- Table structure for table `category_level_three`
--

CREATE TABLE `category_level_three` (
  `id` int NOT NULL AUTO_INCREMENT,
  `category_level_two_id` int DEFAULT NULL,
  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `category_level_two_id` (`category_level_two_id`),
  CONSTRAINT `category_level_three_ibfk_1` FOREIGN KEY (`category_level_two_id`) REFERENCES `category_level_two` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=30 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `category_level_three`
--

INSERT INTO `category_level_three` VALUES (14,17,'Level 3 Diploma in Accounting and Finance'),(19,22,'Level 7 Diploma in Business Management'),(20,23,'Level 5 Diploma in Health and Social Care Management'),(21,24,'Level 7 Diploma in Information Technology'),(22,25,'Level 5 Diploma in Law'),(23,26,'Level 8 Diploma in Strategic Management and Leadership'),(24,28,'Level 7 Diploma in Leadership'),(25,29,'Level 3 Diploma Foundation in Social Care');

--
-- Table structure for table `category_level_two`
--

CREATE TABLE `category_level_two` (
  `id` int NOT NULL AUTO_INCREMENT,
  `category_level_one_id` int DEFAULT NULL,
  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `category_level_one_id` (`category_level_one_id`),
  CONSTRAINT `category_level_two_ibfk_1` FOREIGN KEY (`category_level_one_id`) REFERENCES `category_level_one` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=31 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `category_level_two`
--

INSERT INTO `category_level_two` VALUES (17,21,'Accounting and Finance'),(22,27,'Business Management'),(23,27,'Health and Social Care'),(24,21,'Information Systems'),(25,21,'Legal Studies'),(26,21,'Business Studies'),(28,27,'Leadership Studies'),(29,27,'Social Care');

--
-- Table structure for table `complaint_bd`
--

CREATE TABLE `complaint_bd` (
  `id` int NOT NULL AUTO_INCREMENT,
  `enquiry_id` int DEFAULT NULL,
  `to_user` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `email_subject` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `email_body` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci,
  `type_of` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `status_request` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `complaint_bd`
--


--
-- Table structure for table `config_kpis`
--

CREATE TABLE `config_kpis` (
  `id` int NOT NULL AUTO_INCREMENT,
  `kpi_name` varchar(255) DEFAULT NULL,
  `description_kpis` varchar(500) DEFAULT NULL,
  `on_report` tinyint(1) DEFAULT '0',
  `report_name` varchar(500) DEFAULT NULL,
  `type_of_kpi` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `config_kpis`
--

INSERT INTO `config_kpis` VALUES (1,'CRM Utilization Rate','Measures how effectively the BDE/TSE utilizes CRM tools to manage leads, track interactions, and update client information.',0,'CRM Utilization','Judgement Based'),(2,'Lead Conversion Rate','Account Growth and Management. Percentage of leads successfully converted into paying clients',1,'Lead Conversion','System Based'),(3,'Avg. Sales Cycle','Average time from initial contact to deal closure, with an aim to reduce it',1,'Sales Cycle Length','System Based'),(4,'Follow-up Efficiency','Tracks the speed and effectiveness of follow-ups on leads and client inquiries, impacting conversion and retention. Lead Management and Pipeline Progression. Measures the number of leads in each sales funnel stage, helping balance outreach efforts and ensure a steady flow of conversions',1,'Follow-up Efficiency','System Based'),(5,'Quotation Conversion Rate','Comparing forecasted sales to actual sales to ensure alignment and improve planning accuracy',1,'Quotation Conversion','System Based'),(6,'Client Meetings','Measure ASM’s effectiveness in growing market share within the assigned area recode meetings in CRM.',1,'Client Meetings','System Based'),(8,'Partners/ Dist. Onboarding','Tracks the number of new partnerships or distribution channels established to expand sales reach.',1,'Partners/ Dist. Onboarding','System Based'),(9,'Client Training/ Awareness','Number of product demos, training sessions, or awareness events conducted.',1,'Client Training/ Awareness','System Based'),(10,'Calls Made','Tracks the daily or weekly number of outbound calls each representative makes.',1,'Calls Made','System Based'),(11,'Avg. Talk Time per Call','Measures the average duration of calls, helping assess call quality and engagement.',1,'Avg. Talk Time per Call','System Based'),(12,'Qualifying Leads','Number of leads deemed qualified after initial calls Lead Management and Pipeline Progression.',1,'Qualifying Leads','System Based'),(13,'Appointments-to-Leads Ratio','Tracks how many calls result in an appointment or follow-up meeting, signaling the tele-sales team’s success in progressing the sales pipeline',1,'Appointments-to-Leads','System Based'),(14,'Ineffective Calls Rate','Percentage of unanswered calls or dropped calls, important for maximizing contact attempts',1,'Ineffective Calls Rate','System Based'),(15,'Avg. Deal Size','Measures the average revenue per conversion, reflecting the team\'s ability to upsell or cross-sell effectively',1,'Avg. Deal Size','System Based'),(16,'Brand Visibility','Increase in brand mentions, inquiries, or engagement metrics in the regione client information.',0,'Brand Visibility','Judgement Based');

--
-- Table structure for table `config_kpis_role`
--

CREATE TABLE `config_kpis_role` (
  `id` int NOT NULL AUTO_INCREMENT,
  `weight` int DEFAULT NULL,
  `kpi_id` int DEFAULT NULL,
  `role_id` int DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `config_kpis_role`
--

INSERT INTO `config_kpis_role` VALUES (1,5,1,10),(2,10,2,10),(3,50,1,12),(4,10,2,12),(5,5,1,25),(6,15,2,25),(7,10,3,25),(8,10,4,25),(9,5,5,25),(10,20,6,25),(11,10,8,25),(12,15,9,25),(13,10,10,25),(14,15,4,10);

--
-- Table structure for table `config_kpis_role_table`
--

CREATE TABLE `config_kpis_role_table` (
  `id` int NOT NULL AUTO_INCREMENT,
  `start_range` int DEFAULT NULL,
  `end_range` int DEFAULT NULL,
  `weight` int DEFAULT NULL,
  `kpi_role_id` int DEFAULT NULL,
  `role_id` int DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `config_kpis_role_table`
--

INSERT INTO `config_kpis_role_table` VALUES (1,1,1,1,2,10),(3,1,1,11,4,12),(4,1,1,1,14,10);

--
-- Table structure for table `config_lead_stages`
--

CREATE TABLE `config_lead_stages` (
  `id` int NOT NULL AUTO_INCREMENT,
  `title` varchar(255) DEFAULT NULL,
  `order_no` int DEFAULT NULL,
  `show_on_screen` tinyint(1) DEFAULT NULL,
  `matured_status` tinyint(1) DEFAULT NULL,
  `dropped_status` tinyint(1) DEFAULT NULL,
  `org_id` int DEFAULT NULL,
  `set_initial` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `config_lead_stages_ibfk_1` (`org_id`),
  CONSTRAINT `config_lead_stages_ibfk_1` FOREIGN KEY (`org_id`) REFERENCES `organization` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=24 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `config_lead_stages`
--

INSERT INTO `config_lead_stages` VALUES (20,'A',1,1,0,0,21,1),(21,'B',2,1,0,0,21,0),(22,'C',3,0,1,0,21,0),(23,'D',4,0,0,1,21,0);

--
-- Table structure for table `enquiries`
--

CREATE TABLE `enquiries` (
  `id` int NOT NULL AUTO_INCREMENT,
  `enquiry_by` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci,
  `enquiry_entered_by` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci,
  `income_range` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci,
  `enquiry_date` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci,
  `username` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci,
  `cnic` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci,
  `date_of_birth` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci,
  `email` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci,
  `father_name` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci,
  `gender` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci,
  `city` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci,
  `present_address` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci,
  `permanent_address` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci,
  `mobile_no_one` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci,
  `mobile_no_two` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci,
  `landline` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci,
  `project` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci,
  `product` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci,
  `developer` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci,
  `price_offered` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci,
  `property_address` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci,
  `image` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci,
  `source_of_information` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci,
  `status` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci,
  `enquiry_status` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci,
  `remarks` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci,
  `field_one` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci,
  `field_two` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci,
  `field_three` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci,
  `field_four` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci,
  `field_five` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci,
  `field_six` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci,
  `field_seven` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci,
  `field_eight` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci,
  `field_nine` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci,
  `field_ten` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci,
  `field_eleven` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci,
  `field_twelve` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci,
  `field_thirteen` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci,
  `field_fourteen` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci,
  `field_fifteen` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci,
  `field_sixteen` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci,
  `field_seventeen` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci,
  `field_eighteen` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci,
  `field_nineteen` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci,
  `field_twenty` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci,
  `office_id` int DEFAULT NULL,
  `matured` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci,
  `cat_one_id` int DEFAULT NULL,
  `cat_two_id` int DEFAULT NULL,
  `cat_three_id` int DEFAULT NULL,
  `cat_four_id` int DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `enquiry_status_steps` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `enquiry_matured_date` date DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `office_id` (`office_id`),
  KEY `cat_one_id` (`cat_one_id`),
  KEY `cat_two_id` (`cat_two_id`),
  KEY `cat_three_id` (`cat_three_id`),
  KEY `cat_four_id` (`cat_four_id`),
  CONSTRAINT `enquiries_ibfk_1` FOREIGN KEY (`office_id`) REFERENCES `office` (`id`) ON DELETE CASCADE,
  CONSTRAINT `enquiries_ibfk_2` FOREIGN KEY (`cat_one_id`) REFERENCES `category_level_one` (`id`) ON DELETE CASCADE,
  CONSTRAINT `enquiries_ibfk_3` FOREIGN KEY (`cat_two_id`) REFERENCES `category_level_two` (`id`) ON DELETE CASCADE,
  CONSTRAINT `enquiries_ibfk_4` FOREIGN KEY (`cat_three_id`) REFERENCES `category_level_three` (`id`) ON DELETE CASCADE,
  CONSTRAINT `enquiries_ibfk_5` FOREIGN KEY (`cat_four_id`) REFERENCES `category_level_four` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=25 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `enquiries`
--

INSERT INTO `enquiries` VALUES (1,NULL,'A',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Afghanistan',NULL,NULL,NULL,'A',NULL,'Follow-up Required',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,18,'0',21,NULL,NULL,NULL,'2024-12-06 10:28:01','A','2024-12-07'),(2,NULL,'A',NULL,NULL,'A',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,18,'0',21,NULL,NULL,NULL,'2024-12-09 06:28:49','Negotiation','2024-12-09'),(3,NULL,NULL,NULL,NULL,'Adnan',NULL,NULL,NULL,'Ahmad','Male',NULL,NULL,NULL,'03224547810',NULL,NULL,NULL,'Pakistan',NULL,NULL,NULL,'A',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,18,'0',21,NULL,NULL,NULL,'2024-12-09 07:57:37','Lead Capturing',NULL),(4,'admin',NULL,NULL,NULL,'a',NULL,NULL,NULL,'a','Male',NULL,NULL,NULL,'1',NULL,NULL,NULL,'Andorra',NULL,NULL,NULL,'A',NULL,'Follow-up Required',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'admin',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,18,'0',21,NULL,NULL,NULL,'2024-12-09 08:05:21','Lead Capturing',NULL),(5,'Admission Officer',NULL,NULL,NULL,'Haroon',NULL,NULL,NULL,'Qadir','Male',NULL,NULL,NULL,'03244648426',NULL,NULL,NULL,'Pakistan',NULL,NULL,NULL,'A',NULL,'Follow-up Required',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Bilal Ahmad',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,18,'0',21,NULL,NULL,NULL,'2024-12-09 08:09:13','Lead Capturing',NULL),(6,'LAP Centre',NULL,NULL,NULL,'Muhammad',NULL,NULL,NULL,'Faisal','Male',NULL,NULL,NULL,'0304490775',NULL,NULL,NULL,'Pakistan',NULL,NULL,NULL,'A',NULL,'Follow-up Required',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Ameer Farooq',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,20,'0',27,NULL,NULL,NULL,'2024-12-09 08:27:24','Lead Matured','2024-12-09'),(7,'Muhammad Javed',NULL,'20,000 - 30,000','Granted','Ali','Hamza','2000-10-10','hamza@gmail.com','Sabir','Male','Lahore','Canal Society','Green City','03055535265','03008030810','04234703125','Pakistan','Pakistan','Test Field 2','1500','Islam','Homosexual','Social Media',NULL,'2023-10-10','Test Field 1','Test course 1','Test intake 1','2024','2024-12-10','2025-05-10','Model Town','Yes','2024-12-15','2025-06-10','78601','admin','Muhammad Zeeshan',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,20,'0',27,NULL,NULL,NULL,'2024-12-09 09:08:41','Lead Matured','2024-12-09'),(8,'admin',NULL,NULL,NULL,'A','B',NULL,NULL,'C','Male',NULL,NULL,NULL,'3144226842','1',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Follow-up Required',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'admin',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,18,'0',21,NULL,NULL,NULL,'2024-12-12 06:51:23','A',NULL),(9,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Aaa',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,18,'0',21,NULL,NULL,NULL,'2024-12-26 08:50:35','',NULL),(10,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Aaa',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,18,'0',21,NULL,NULL,NULL,'2024-12-26 08:53:43','',NULL),(11,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Aaa',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,18,'0',21,NULL,NULL,NULL,'2024-12-26 08:53:54','',NULL),(12,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Aaa',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,18,'0',21,NULL,NULL,NULL,'2024-12-26 08:56:00','A',NULL),(13,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'AA',NULL,NULL,NULL,NULL,'123',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,18,'0',21,NULL,NULL,NULL,'2024-12-26 09:22:50','A',NULL),(14,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'aaa',NULL,NULL,NULL,NULL,'123',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,18,'0',21,NULL,NULL,NULL,'2024-12-26 09:33:06','A',NULL),(15,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'AAA',NULL,NULL,NULL,NULL,'132',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,18,NULL,NULL,NULL,NULL,NULL,'2024-12-26 12:31:03','A',NULL),(16,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'AAA',NULL,NULL,NULL,NULL,'132',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,18,NULL,NULL,NULL,NULL,NULL,'2024-12-26 12:31:20','A',NULL),(17,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'AAA',NULL,NULL,NULL,NULL,'132',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,18,NULL,NULL,NULL,NULL,NULL,'2024-12-26 12:33:33','A',NULL),(18,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'AAA',NULL,NULL,NULL,NULL,'132',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,18,NULL,NULL,NULL,NULL,NULL,'2024-12-26 12:35:36','A',NULL),(19,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'AAA',NULL,NULL,NULL,NULL,'132',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,18,NULL,NULL,NULL,NULL,NULL,'2024-12-26 12:39:04','A',NULL),(20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'AAA',NULL,NULL,NULL,NULL,'132',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,18,NULL,NULL,NULL,NULL,NULL,'2024-12-26 12:40:34','A',NULL),(21,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'AAA',NULL,NULL,NULL,NULL,'132',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,18,NULL,NULL,NULL,NULL,NULL,'2024-12-26 12:40:37','A',NULL),(22,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'AAA',NULL,NULL,NULL,NULL,'132',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,18,NULL,NULL,NULL,NULL,NULL,'2024-12-26 12:41:03','A',NULL),(23,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'AAA',NULL,NULL,NULL,NULL,'132',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,18,NULL,NULL,NULL,NULL,NULL,'2024-12-26 12:41:16','A',NULL),(24,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'AAA',NULL,NULL,NULL,NULL,'132',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,18,NULL,NULL,NULL,NULL,NULL,'2024-12-26 12:41:21','A',NULL);

--
-- Table structure for table `enquiry_fields`
--

CREATE TABLE `enquiry_fields` (
  `id` int NOT NULL AUTO_INCREMENT,
  `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  `field_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  `status` tinyint(1) NOT NULL,
  `type` varchar(11) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `show_field` tinyint(1) NOT NULL DEFAULT '0',
  `report_show` tinyint NOT NULL DEFAULT '0',
  `order_no` int DEFAULT '0',
  `required` tinyint(1) DEFAULT '0',
  `disabled` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=47 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `enquiry_fields`
--

INSERT INTO `enquiry_fields` VALUES (1,'Lead Entered By','enquiry_by',0,'Drop Down',1,0,5,0,NULL),(2,'Cosmetics','enquiry_entered_by',0,'Text',1,0,10,0,NULL),(4,'Income Range (GBP)','income_range',0,'Drop Down',1,0,140,0,NULL),(5,'Visa Status','enquiry_date',0,'Drop Down',1,1,190,0,NULL),(6,'First Name','username',0,'Text',1,1,30,0,NULL),(7,'Middle Name','cnic',0,'Text',1,0,40,0,NULL),(8,'Date of Birth','date_of_birth',0,'Date',1,0,150,0,NULL),(9,'Email','email',0,'Text',1,0,100,0,NULL),(10,'Last Name','father_name',1,'Text',1,1,50,0,NULL),(11,'Gender','gender',0,'Drop Down',1,0,60,0,NULL),(12,'City','city',0,'Text',1,0,130,0,NULL),(13,'Present Address','present_address',0,'Text',1,0,120,0,NULL),(14,'Permanent Address','permanent_address',0,'Text',1,0,110,0,NULL),(15,'Mobile No. ','mobile_no_one',1,'Number',1,1,70,1,1),(16,'Mobile No. (secondary)','mobile_no_two',0,'Number',1,0,80,0,NULL),(17,'Landline','landline',0,'Number',1,0,90,0,NULL),(18,'Birth Country','project',0,'Drop Down',1,0,200,0,NULL),(19,'Nationality','product',0,'Text',1,0,210,0,NULL),(20,'Ethnic Origin','developer',0,'Drop Down',1,0,220,0,NULL),(21,'Course Fee (GBP)','price_offered',0,'Number',1,0,160,0,NULL),(22,'Religion','property_address',0,'Drop Down',1,0,230,0,NULL),(23,'Sexual Orientation','image',0,'Drop Down',1,0,240,0,NULL),(24,'Hear About us','source_of_information',0,'Drop Down',1,0,170,0,NULL),(25,'Passport Issue','enquiry_status',0,'Date',1,0,350,0,NULL),(26,'Criminal Conviction','remarks',0,'Drop Down',1,1,180,0,NULL),(27,'Course Title','field_one',0,'Drop Down',1,0,250,0,NULL),(28,'Intake','field_two',0,'Drop Down',1,0,260,0,NULL),(29,'Year','field_three',0,'Drop Down',1,0,270,0,NULL),(30,'Course Start Date','field_four',0,'Date',0,1,280,0,NULL),(31,'Course End Date','field_five',0,'Date',1,0,290,0,NULL),(32,'Place of Study/Campus','field_six',0,'Drop Down',1,0,300,0,NULL),(33,'Visa Required','field_seven',0,'Drop Down',1,0,310,0,NULL),(34,'Visa Valid From','field_eight',0,'Date',1,0,320,0,NULL),(35,'Visa Expiry','field_nine',0,'Date',1,0,330,0,NULL),(36,'Passport No.','field_ten',0,'Text',1,0,340,0,NULL),(37,'Lead Generated By','field_eleven',0,'Text',1,0,360,0,NULL),(38,'Contact','field_twelve',0,'Text',1,0,370,0,NULL),(39,'field_thirteen','field_thirteen',0,'Text',1,0,380,0,NULL),(40,'field_fourteen','field_fourteen',0,'Text',1,0,390,0,NULL),(41,'field_fifteen','field_fifteen',0,'Text',1,0,400,0,NULL),(42,'field_sixteen','field_sixteen',0,'Text',1,0,410,0,NULL),(43,'field_seventeen','field_seventeen',0,'Text',1,0,420,0,NULL),(44,'field_eighteen','field_eighteen',0,'Text',1,0,430,0,NULL),(45,'field_nineteen','field_nineteen',0,'Text',1,0,440,0,NULL),(46,'field_twenty','field_twenty',0,'Text',1,0,450,0,NULL);

--
-- Table structure for table `enquiry_fields_dropdown`
--

CREATE TABLE `enquiry_fields_dropdown` (
  `id` int NOT NULL AUTO_INCREMENT,
  `dropdown` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `field_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=91 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `enquiry_fields_dropdown`
--

INSERT INTO `enquiry_fields_dropdown` VALUES (12,'Admission Officer','enquiry_by'),(13,'LAP Centre','enquiry_by'),(14,'Data Entry operator 1','enquiry_entered_by'),(15,'Data Entry operator 2','enquiry_entered_by'),(20,'10,000 - 20,000','income_range'),(21,'20,000 - 30,000','income_range'),(22,'30,000 - 40,000','income_range'),(25,'Social Media','source_of_information'),(26,'Friend & Family Members','source_of_information'),(30,'Matured','enquiry_status'),(31,'Dropped','enquiry_status'),(32,'Follow-up Required','enquiry_status'),(38,'Pakistan','project'),(39,'Pakistan','product'),(40,'Yes','field_seven'),(41,'No','field_seven'),(42,'Granted','enquiry_date'),(43,'Rejected','enquiry_date'),(44,'Pending','enquiry_date'),(45,'Male','gender'),(46,'Female','gender'),(47,'Prefer not to say','gender'),(48,'Islam','property_address'),(49,'Test Field 1','remarks'),(50,'Test Field 2','remarks'),(51,'Test Field 1','developer'),(52,'Test Field 2','developer'),(55,'Test course 1','field_one'),(56,'Test course 2','field_one'),(57,'Test intake 1','field_two'),(58,'Test intake 2','field_two'),(59,'2024','field_three'),(60,'2025','field_three'),(61,'Town ship','field_six'),(62,'Model Town','field_six'),(82,'A','image \r\n'),(83,'B','image \r\n'),(87,'Heterosexual','image'),(88,'Homosexual','image'),(89,'Bisexual','image'),(90,'Asexual','image');

--
-- Table structure for table `enquiry_images`
--

CREATE TABLE `enquiry_images` (
  `id` int NOT NULL AUTO_INCREMENT,
  `image_path` text,
  `title` text,
  `enquiry_id` int DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `enquiry_images`
--

INSERT INTO `enquiry_images` VALUES (1,'6756a2f1ad578_281-200x300.jpg','My Doc',3),(2,'6756a5a99d0f3_116-200x300.jpg','My Doc',5),(3,'6756a9ecb25a0_116-200x300.jpg','New Doc',6),(4,'6756b39955507_857-200x300.jpg','My Doc',7);

--
-- Table structure for table `enquiry_products`
--

CREATE TABLE `enquiry_products` (
  `id` int NOT NULL AUTO_INCREMENT,
  `enquiry_id` int DEFAULT NULL,
  `product_id` int DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `enquiry_products`
--


--
-- Table structure for table `events`
--

CREATE TABLE `events` (
  `id` int NOT NULL AUTO_INCREMENT,
  `event_name` varchar(50) DEFAULT NULL,
  `event_description` text,
  `event_date` date DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `events`
--


--
-- Table structure for table `first_time_assignment`
--

CREATE TABLE `first_time_assignment` (
  `id` int NOT NULL AUTO_INCREMENT,
  `date` varchar(255) DEFAULT NULL,
  `type` varchar(255) DEFAULT NULL,
  `enquiry_id` int DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `enquiry_id` (`enquiry_id`),
  CONSTRAINT `first_time_assignment_ibfk_1` FOREIGN KEY (`enquiry_id`) REFERENCES `enquiries` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `first_time_assignment`
--

INSERT INTO `first_time_assignment` VALUES (1,'2024-12-05T19:00:00.000Z','Email',14),(2,'2024-12-26T19:00:00.000Z','Call',14),(3,'2024-12-25T19:00:00.000Z','Call',14),(4,'2024-12-25T19:00:00.000Z','Call',13);

--
-- Table structure for table `follow_up`
--

CREATE TABLE `follow_up` (
  `id` int NOT NULL AUTO_INCREMENT,
  `user_id` int DEFAULT NULL,
  `enquiry_id` int DEFAULT NULL,
  `called_by` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `called_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `called_status` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `remarks` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci,
  `price_offered` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `followup_date` date DEFAULT NULL,
  `next_followup_date` date DEFAULT NULL,
  `created_at` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `follow_up_products` int DEFAULT NULL,
  `next_followup_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `location` json DEFAULT NULL,
  `dial_start_time` datetime DEFAULT NULL,
  `dial_end_time` datetime DEFAULT NULL,
  `call_type` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL,
  `meeting_conducted` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=71 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `follow_up`
--

INSERT INTO `follow_up` VALUES (54,28,1,'','3','Follow-up Required','123','123','2024-12-07','2024-12-07',NULL,NULL,'Call','null',NULL,NULL,'Inbound Call',NULL),(55,28,1,'','3','Follow-up Required',NULL,NULL,'2024-12-07','2024-12-07',NULL,NULL,'Call','null',NULL,NULL,'Inbound Call',NULL),(56,28,1,'','3','Follow-up Required',NULL,NULL,'2024-12-07',NULL,NULL,NULL,'Call','null',NULL,NULL,'Inbound Call',NULL),(57,28,1,'','3','Follow-up Required',NULL,NULL,'2024-12-07',NULL,NULL,NULL,'Call','null',NULL,NULL,'Inbound Call',NULL),(58,28,1,'','3','Follow-up Required',NULL,NULL,'2024-12-07','2024-12-08',NULL,NULL,'Call','null',NULL,NULL,'Inbound Call',NULL),(59,28,6,'','3','Follow-up Required',NULL,NULL,'2024-12-09','2024-12-09',NULL,NULL,'Call','null',NULL,NULL,'Inbound Call',NULL),(60,28,6,'','3','Follow-up Required',NULL,NULL,'2024-12-09',NULL,NULL,NULL,'Call','null',NULL,NULL,'Outbound Call',NULL),(61,28,6,'','3','Follow-up Required',NULL,NULL,'2024-12-09',NULL,NULL,NULL,'Call','null',NULL,NULL,'Outbound Call',NULL),(62,28,6,'','3','Follow-up Required',NULL,NULL,'2024-12-09',NULL,NULL,NULL,'Call','null',NULL,NULL,'Outbound Call',NULL),(63,28,6,'','3','Follow-up Required',NULL,NULL,'2024-12-09',NULL,NULL,NULL,'Call','null','2024-12-09 08:51:05','2024-12-09 08:51:10','Outbound Call',NULL),(64,28,5,'','2','Wrong Number','Call in 2 days','1000','2024-12-09','2024-12-09',NULL,NULL,'Call','null','2024-12-09 08:32:05',NULL,'Inbound Call',NULL),(65,38,5,'','2','Phone Not Picked','QWERTY','800','2024-12-09','2024-12-09',NULL,NULL,'Call','null',NULL,NULL,'Inbound Call',NULL),(66,28,5,'','3','Follow-up Required','1','1','2024-12-09','2024-12-09',NULL,NULL,'Call','null','2024-12-09 10:42:54','2024-12-09 10:43:08','Outbound Call',NULL),(67,28,4,'','3','Follow-up Required',NULL,NULL,'2024-12-12',NULL,NULL,NULL,'Meeting','null',NULL,NULL,NULL,NULL),(68,28,8,'','3','Follow-up Required',NULL,NULL,'2024-12-26','2024-12-26',NULL,NULL,'Call','null',NULL,NULL,'Inbound Call',NULL),(69,28,5,'','3','Follow-up Required',NULL,NULL,'2024-12-26','2024-12-26',NULL,NULL,'Email','null',NULL,NULL,NULL,NULL),(70,28,5,'','3','Follow-up Required',NULL,NULL,'2024-12-26','2024-12-26',NULL,NULL,'Meeting','null',NULL,NULL,NULL,NULL);

--
-- Table structure for table `follow_up_products`
--

CREATE TABLE `follow_up_products` (
  `id` int NOT NULL AUTO_INCREMENT,
  `product_id` int DEFAULT NULL,
  `follow_up_id` int DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `follow_up_fk_id` (`follow_up_id`),
  CONSTRAINT `follow_up_fk_id` FOREIGN KEY (`follow_up_id`) REFERENCES `follow_up` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `follow_up_products`
--


--
-- Table structure for table `marketers`
--

CREATE TABLE `marketers` (
  `id` int NOT NULL AUTO_INCREMENT,
  `name` varchar(50) DEFAULT NULL,
  `contact` varchar(50) DEFAULT NULL,
  `business_name` varchar(50) DEFAULT NULL,
  `email` varchar(100) DEFAULT NULL,
  `created_at` date DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `marketers`
--


--
-- Table structure for table `organization`
--

CREATE TABLE `organization` (
  `id` int NOT NULL AUTO_INCREMENT,
  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  `currency` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'PKR',
  `unique_number` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=27 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `organization`
--

INSERT INTO `organization` VALUES (21,'Enfo','PKR',0);

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

CREATE TABLE `permissions` (
  `id` int NOT NULL AUTO_INCREMENT,
  `role_id` int DEFAULT NULL,
  `user_tab` tinyint DEFAULT '0',
  `user_add` tinyint(1) DEFAULT NULL,
  `user_view` tinyint(1) DEFAULT NULL,
  `user_delete` tinyint(1) DEFAULT NULL,
  `user_edit` tinyint(1) DEFAULT NULL,
  `role_tab` tinyint(1) DEFAULT NULL,
  `role_add` tinyint(1) DEFAULT NULL,
  `role_delete` tinyint(1) DEFAULT NULL,
  `organization_tab` tinyint(1) DEFAULT NULL,
  `organization_add` tinyint(1) DEFAULT NULL,
  `organization_delete` tinyint(1) DEFAULT NULL,
  `office_tab` tinyint(1) DEFAULT NULL,
  `office_add` tinyint(1) DEFAULT NULL,
  `office_delete` tinyint(1) DEFAULT NULL,
  `cat_level_one_tab` tinyint(1) DEFAULT NULL,
  `cat_level_one_add` tinyint(1) DEFAULT NULL,
  `cat_level_one_delete` tinyint(1) DEFAULT NULL,
  `cat_level_two_tab` tinyint(1) DEFAULT NULL,
  `cat_level_two_add` tinyint(1) DEFAULT NULL,
  `cat_level_two_delete` tinyint(1) DEFAULT NULL,
  `cat_level_three_tab` tinyint(1) DEFAULT NULL,
  `cat_level_three_add` tinyint(1) DEFAULT NULL,
  `cat_level_three_delete` tinyint(1) DEFAULT NULL,
  `cat_level_four_tab` tinyint(1) DEFAULT NULL,
  `cat_level_four_add` tinyint(1) DEFAULT NULL,
  `cat_level_four_delete` tinyint(1) DEFAULT NULL,
  `enquiry_field_tab` tinyint(1) DEFAULT NULL,
  `enquiries_tab` tinyint(1) DEFAULT NULL,
  `enquiries_add` tinyint(1) DEFAULT NULL,
  `enquiries_delete` tinyint(1) DEFAULT NULL,
  `enquiries_edit` tinyint(1) DEFAULT NULL,
  `enquiries_view` tinyint(1) DEFAULT NULL,
  `enquiries_assign` tinyint(1) DEFAULT NULL,
  `follow_up_tab` tinyint(1) DEFAULT NULL,
  `follow_up_add` tinyint(1) DEFAULT NULL,
  `follow_up_view` tinyint(1) DEFAULT NULL,
  `customer_tab` tinyint(1) DEFAULT '0',
  `followup_report` tinyint NOT NULL DEFAULT '0',
  `enquiry_report` tinyint NOT NULL DEFAULT '0',
  `products_tab` tinyint NOT NULL DEFAULT '0',
  `products_add` tinyint NOT NULL DEFAULT '0',
  `products_edit` tinyint NOT NULL DEFAULT '0',
  `products_delete` tinyint NOT NULL DEFAULT '0',
  `cat_level_four_update` tinyint NOT NULL DEFAULT '0',
  `cat_level_three_update` tinyint NOT NULL DEFAULT '0',
  `cat_level_one_update` tinyint NOT NULL DEFAULT '0',
  `cat_level_two_update` tinyint NOT NULL DEFAULT '0',
  `organization_update` tinyint NOT NULL DEFAULT '0',
  `permissionscol` tinyint NOT NULL DEFAULT '0',
  `location_report` tinyint(1) DEFAULT NULL,
  `role_config_kpi` tinyint(1) DEFAULT NULL,
  `products_inventory` tinyint(1) DEFAULT NULL,
  `products_recevings` tinyint(1) DEFAULT NULL,
  `products_quotations` tinyint(1) DEFAULT NULL,
  `products_quotations_approval` tinyint(1) DEFAULT NULL,
  `products_sales_order` tinyint(1) DEFAULT NULL,
  `performace_kpi_report` tinyint(1) DEFAULT NULL,
  `performace_kpi` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=64 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

INSERT INTO `permissions` VALUES (51,10,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,1,1),(52,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,NULL,1,1,1,1,1,1,NULL,NULL),(53,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(57,16,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(58,17,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(59,18,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(60,19,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(61,20,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,0,1,1,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(62,22,1,1,1,1,1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,0,0,0,0,0,0,0,0,0,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),(63,23,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,1,0,1,1,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);

--
-- Table structure for table `product_recevings`
--

CREATE TABLE `product_recevings` (
  `id` int NOT NULL AUTO_INCREMENT,
  `quantity` int DEFAULT NULL,
  `date_recevings` text,
  `product_id` int DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `product_recevings`
--

INSERT INTO `product_recevings` VALUES (1,213,NULL,16),(2,123,'2024-11-25T14:27:24.074Z',16),(3,11,'2024-11-25T14:37:03.443Z',18),(4,35,'2025-11-25T14:37:11.136Z',18),(5,10,'2024-11-27T13:11:25.654Z',22),(6,12,'2024-12-04T09:27:03.101Z',27),(7,5,'2024-12-04T09:34:53.493Z',23),(8,25,'2024-12-09T10:47:01.426Z',24),(9,50,'2024-12-09T10:47:11.993Z',24);

--
-- Table structure for table `product_service_charges`
--

CREATE TABLE `product_service_charges` (
  `id` int NOT NULL AUTO_INCREMENT,
  `range_start` int DEFAULT NULL,
  `range_end` int DEFAULT NULL,
  `unit_price` int DEFAULT NULL,
  `product_id` int DEFAULT NULL,
  `unit` varchar(50) DEFAULT NULL,
  `additional_amount` int DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `product_service_charges`
--

INSERT INTO `product_service_charges` VALUES (1,1,50,0,25,'Kw',0),(2,51,100,400,25,'Kw',0),(3,101,1000,300,25,'Kw',20000);

--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `id` int NOT NULL AUTO_INCREMENT,
  `product_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  `details` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  `type_of_product` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `price` int NOT NULL DEFAULT '0',
  `quantity` int DEFAULT NULL,
  `supplier` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=32 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `products`
--

INSERT INTO `products` VALUES (22,'Lvi1','N/A','Product','2024-11-27 09:46:52',20000,110,'Lvi1'),(23,'Lvi3','N/A','Product','2024-11-27 09:47:09',45000,101,'Lvi3'),(24,'Lvi9','N/A','Product','2024-11-27 09:47:28',90000,125,'Lvi9'),(25,'Energy Audit','N/A','Service','2024-11-27 09:47:56',15000,0,'N/A'),(28,'AA','A','product','2024-12-07 13:08:40',1,0,'A'),(29,'A','A','service','2024-12-07 13:08:50',2,0,NULL),(30,' Charge Controllers','ABC','product','2024-12-09 09:27:54',2000,0,'Mujtaba & Sons'),(31,'Repair and Maintenance Service','XYZ','service','2024-12-09 09:28:18',1000,0,NULL);

--
-- Table structure for table `quotations`
--

CREATE TABLE `quotations` (
  `id` int NOT NULL AUTO_INCREMENT,
  `enquiry_id` int DEFAULT NULL,
  `email` varchar(255) DEFAULT NULL,
  `contact` varchar(255) DEFAULT NULL,
  `dated` varchar(255) DEFAULT NULL,
  `to_person` varchar(255) DEFAULT NULL,
  `address` varchar(255) DEFAULT NULL,
  `subject_quot` varchar(255) DEFAULT NULL,
  `analysis_of` varchar(255) DEFAULT NULL,
  `sincerely_from` varchar(255) DEFAULT NULL,
  `company_name` varchar(255) DEFAULT NULL,
  `status` tinyint(1) DEFAULT NULL,
  `approval` enum('Pending','Approved') DEFAULT NULL,
  `is_sales_order` tinyint(1) DEFAULT NULL,
  `user_id` int DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `quotations`
--

INSERT INTO `quotations` VALUES (1,4,'a','a','2024-12-12T06:35:33.720Z','a','a','a',NULL,'admin','a',NULL,NULL,NULL,28),(2,6,'a','a','2024-12-12T07:31:26.350Z','a','a','a',NULL,'admin','a',NULL,NULL,NULL,28),(3,8,'a','a','2024-12-12T11:52:32.548Z','a','a','a',NULL,'admin','a',NULL,NULL,NULL,28);

--
-- Temporary view structure for view `quotations_expiry`
--

/*!50001 DROP VIEW IF EXISTS `quotations_expiry`*/;
/*!50001 CREATE VIEW `quotations_expiry` AS SELECT 
 1 AS `id`*/;

--
-- Table structure for table `quotations_items`
--

CREATE TABLE `quotations_items` (
  `id` int NOT NULL AUTO_INCREMENT,
  `quotations_id` int DEFAULT NULL,
  `product_id` int DEFAULT NULL,
  `service_category` int DEFAULT NULL,
  `quantity` int DEFAULT NULL,
  `service_units` int DEFAULT NULL,
  `service_units_price` int DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `quotations_items`
--

INSERT INTO `quotations_items` VALUES (5,1,24,NULL,5,NULL,NULL),(6,1,23,NULL,2,NULL,NULL),(7,1,25,NULL,NULL,25,NULL),(11,2,22,NULL,5,NULL,NULL),(18,3,22,NULL,1,NULL,NULL),(19,3,23,NULL,2,NULL,NULL);

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

CREATE TABLE `roles` (
  `id` int NOT NULL AUTO_INCREMENT,
  `role` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  `self_inquiries` tinyint(1) DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=26 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

INSERT INTO `roles` VALUES (10,'Admin',0),(12,'Admission Manager',0),(18,'Inquiry Officer',1),(19,'Admission Assistant',1),(20,'Recruitment Agent',1),(22,'Test',1),(23,'Sales Officer',1),(25,'Test',0);

--
-- Table structure for table `sales_order`
--

CREATE TABLE `sales_order` (
  `id` int NOT NULL AUTO_INCREMENT,
  `enquiry_id` int DEFAULT NULL,
  `email` varchar(255) DEFAULT NULL,
  `contact` varchar(255) DEFAULT NULL,
  `dated` varchar(255) DEFAULT NULL,
  `to_person` varchar(255) DEFAULT NULL,
  `address` varchar(255) DEFAULT NULL,
  `subject_quot` varchar(255) DEFAULT NULL,
  `analysis_of` varchar(255) DEFAULT NULL,
  `sincerely_from` varchar(255) DEFAULT NULL,
  `company_name` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `sales_order`
--

INSERT INTO `sales_order` VALUES (1,30,'waseem@enfo.ai','+92-310-162 1444 ','2024-11-26T19:00:00.000Z','Dimotec Engineering Company','Lahore','Quotation for Energy Efficiency analysis',' Dimotec Engineering Company','Waseem Arshad','Industrial Energy Consultant'),(2,29,'xyz@gmail.com','99999999','2024-11-26T19:00:00.000Z','ABC','Lahore','abc','aa','xyz','Energy Consultant');

--
-- Table structure for table `sales_order_items`
--

CREATE TABLE `sales_order_items` (
  `id` int NOT NULL AUTO_INCREMENT,
  `quotations_id` int DEFAULT NULL,
  `product_id` int DEFAULT NULL,
  `service_category` int DEFAULT NULL,
  `quantity` int DEFAULT NULL,
  `price` int DEFAULT NULL,
  `service_units` int DEFAULT NULL,
  `service_units_price` int DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `sales_order_items`
--

INSERT INTO `sales_order_items` VALUES (1,1,23,NULL,96,NULL,NULL,NULL),(2,1,25,NULL,NULL,NULL,10,NULL),(3,2,24,NULL,100,NULL,NULL,NULL),(4,2,25,NULL,NULL,NULL,110,NULL);

--
-- Table structure for table `user_kpis_manual_relation`
--

CREATE TABLE `user_kpis_manual_relation` (
  `id` int NOT NULL AUTO_INCREMENT,
  `user_id` int DEFAULT NULL,
  `kpi_id` int DEFAULT NULL,
  `weight` int DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `user_kpis_manual_relation`
--


--
-- Table structure for table `user_location`
--

CREATE TABLE `user_location` (
  `id` int NOT NULL AUTO_INCREMENT,
  `user_id` int DEFAULT NULL,
  `location` json DEFAULT NULL,
  `at_time` varchar(500) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=107 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `user_location`
--

INSERT INTO `user_location` VALUES (1,28,NULL,'2024-12-05T12:56:51.803Z'),(2,28,NULL,'2024-12-05T13:11:57.786Z'),(3,28,NULL,'2024-12-05T13:27:05.815Z'),(4,28,NULL,'2024-12-05T13:42:14.828Z'),(5,28,NULL,'2024-12-05T13:57:23.834Z'),(6,28,NULL,'2024-12-05T14:12:32.837Z'),(7,28,'{\"latitude\": 31.4813599, \"longitude\": 74.3264755}','2024-12-06T10:07:48.489Z'),(8,28,'{\"latitude\": 31.4813599, \"longitude\": 74.3264755}','2024-12-06T10:27:52.940Z'),(9,28,'{\"latitude\": 31.4813599, \"longitude\": 74.3264755}','2024-12-06T10:43:08.016Z'),(10,28,'{\"latitude\": 31.4813599, \"longitude\": 74.3264755}','2024-12-06T10:58:19.760Z'),(11,28,'{\"latitude\": 31.4792014, \"longitude\": 74.3259228}','2024-12-07T10:06:10.107Z'),(12,28,'{\"latitude\": 31.4792056, \"longitude\": 74.3259236}','2024-12-07T10:21:19.504Z'),(13,28,'{\"latitude\": 31.4792056, \"longitude\": 74.3259236}','2024-12-07T10:36:29.511Z'),(14,28,'{\"latitude\": 31.4792056, \"longitude\": 74.3259236}','2024-12-07T12:39:55.914Z'),(15,28,'{\"latitude\": 31.4792056, \"longitude\": 74.3259236}','2024-12-07T12:54:56.010Z'),(16,28,'{\"latitude\": 31.4792056, \"longitude\": 74.3259236}','2024-12-07T13:09:56.914Z'),(17,28,'{\"latitude\": 31.4792056, \"longitude\": 74.3259236}','2024-12-07T13:25:02.221Z'),(18,28,'{\"latitude\": 31.4825593, \"longitude\": 74.3235425}','2024-12-09T06:20:11.636Z'),(19,28,'{\"latitude\": 31.4825593, \"longitude\": 74.3235425}','2024-12-09T06:47:43.774Z'),(20,28,'{\"latitude\": 31.4825593, \"longitude\": 74.3235425}','2024-12-09T07:03:16.095Z'),(21,28,'{\"latitude\": 31.4825593, \"longitude\": 74.3235425}','2024-12-09T07:18:25.679Z'),(22,28,'{\"latitude\": 31.4791987, \"longitude\": 74.3259192}','2024-12-09T07:38:54.213Z'),(23,28,NULL,'2024-12-09T07:53:54.772Z'),(24,28,NULL,'2024-12-09T08:09:03.968Z'),(25,28,'{\"latitude\": 31.4791987, \"longitude\": 74.3259192}','2024-12-09T08:24:10.894Z'),(26,28,NULL,'2024-12-09T08:39:14.272Z'),(27,28,'{\"latitude\": 31.4791987, \"longitude\": 74.3259192}','2024-12-09T08:54:14.351Z'),(28,28,NULL,'2024-12-09T09:09:17.090Z'),(29,28,NULL,'2024-12-09T09:24:18.451Z'),(30,28,NULL,'2024-12-09T09:39:26.735Z'),(31,28,NULL,'2024-12-09T09:54:30.418Z'),(32,28,NULL,'2024-12-09T10:09:36.117Z'),(33,38,NULL,'2024-12-09T10:23:09.431Z'),(34,28,NULL,'2024-12-09T10:24:36.705Z'),(35,38,NULL,'2024-12-09T10:38:14.704Z'),(36,28,NULL,'2024-12-09T10:39:36.892Z'),(37,38,NULL,'2024-12-09T10:53:15.697Z'),(38,28,NULL,'2024-12-09T10:54:36.686Z'),(39,38,NULL,'2024-12-09T11:08:25.695Z'),(40,28,NULL,'2024-12-09T11:09:38.675Z'),(41,38,NULL,'2024-12-09T11:23:27.703Z'),(42,28,NULL,'2024-12-09T11:24:40.687Z'),(43,38,NULL,'2024-12-09T11:38:29.744Z'),(44,28,NULL,'2024-12-09T11:39:42.674Z'),(45,38,NULL,'2024-12-09T11:53:30.721Z'),(46,28,NULL,'2024-12-09T11:54:42.704Z'),(47,38,NULL,'2024-12-09T12:08:31.713Z'),(48,28,NULL,'2024-12-09T12:09:46.686Z'),(49,38,NULL,'2024-12-09T12:23:33.692Z'),(50,28,NULL,'2024-12-09T12:24:49.056Z'),(51,38,NULL,'2024-12-09T12:38:35.694Z'),(52,28,NULL,'2024-12-09T12:39:50.702Z'),(53,38,NULL,'2024-12-09T12:53:37.689Z'),(54,28,NULL,'2024-12-09T12:54:55.286Z'),(55,38,NULL,'2024-12-09T13:08:39.694Z'),(56,28,NULL,'2024-12-09T13:09:57.644Z'),(57,38,NULL,'2024-12-09T13:23:41.702Z'),(58,28,NULL,'2024-12-09T13:24:59.711Z'),(59,38,NULL,'2024-12-09T13:38:43.708Z'),(60,28,NULL,'2024-12-09T13:39:59.333Z'),(61,38,NULL,'2024-12-09T13:53:47.699Z'),(62,28,NULL,'2024-12-09T13:55:01.346Z'),(63,38,NULL,'2024-12-09T14:08:49.725Z'),(64,28,NULL,'2024-12-09T14:10:01.732Z'),(65,38,NULL,'2024-12-09T14:23:51.695Z'),(66,28,NULL,'2024-12-09T14:25:05.357Z'),(67,38,NULL,'2024-12-09T14:38:53.704Z'),(68,28,NULL,'2024-12-09T14:40:11.375Z'),(69,38,NULL,'2024-12-09T14:53:55.717Z'),(70,28,NULL,'2024-12-09T14:55:11.383Z'),(71,28,'{\"latitude\": 31.4631312, \"longitude\": 74.3228092}','2024-12-12T06:32:52.596Z'),(72,28,'{\"latitude\": 31.4631312, \"longitude\": 74.3228092}','2024-12-12T06:48:37.238Z'),(73,28,'{\"latitude\": 31.4792115, \"longitude\": 74.3259273}','2024-12-12T07:31:18.339Z'),(74,28,'{\"latitude\": 31.4792115, \"longitude\": 74.3259273}','2024-12-12T07:46:58.474Z'),(75,28,'{\"latitude\": 31.4792115, \"longitude\": 74.3259273}','2024-12-12T08:06:53.991Z'),(76,28,'{\"latitude\": 31.4792115, \"longitude\": 74.3259273}','2024-12-12T11:41:34.200Z'),(77,28,'{\"latitude\": 31.4792141, \"longitude\": 74.3259264}','2024-12-12T11:56:37.567Z'),(78,28,'{\"latitude\": 31.4631312, \"longitude\": 74.3228092}','2024-12-13T04:58:51.972Z'),(79,28,'{\"latitude\": 31.4631312, \"longitude\": 74.3228092}','2024-12-13T05:14:39.338Z'),(80,28,'{\"latitude\": 31.4834944, \"longitude\": 74.3243776}','2024-12-26T05:25:01.010Z'),(81,28,'{\"latitude\": 31.4834944, \"longitude\": 74.3243776}','2024-12-26T05:41:23.117Z'),(82,28,'{\"latitude\": 31.4834944, \"longitude\": 74.3243776}','2024-12-26T05:56:47.849Z'),(83,28,'{\"latitude\": 31.4834944, \"longitude\": 74.3243776}','2024-12-26T06:11:53.630Z'),(84,28,'{\"latitude\": 31.4834944, \"longitude\": 74.3243776}','2024-12-26T06:26:58.946Z'),(85,28,'{\"latitude\": 31.4834944, \"longitude\": 74.3243776}','2024-12-26T06:46:12.914Z'),(86,28,'{\"latitude\": 31.4834944, \"longitude\": 74.3243776}','2024-12-26T07:01:20.594Z'),(87,28,'{\"latitude\": 31.4834944, \"longitude\": 74.3243776}','2024-12-26T07:36:27.413Z'),(88,28,'{\"latitude\": 31.4834944, \"longitude\": 74.3243776}','2024-12-26T07:51:29.193Z'),(89,28,'{\"latitude\": 31.4834944, \"longitude\": 74.3243776}','2024-12-26T08:08:05.055Z'),(90,28,'{\"latitude\": 31.4834944, \"longitude\": 74.3243776}','2024-12-26T08:23:11.685Z'),(91,28,'{\"latitude\": 31.4834944, \"longitude\": 74.3243776}','2024-12-26T08:38:15.341Z'),(92,28,'{\"latitude\": 31.4834944, \"longitude\": 74.3243776}','2024-12-26T08:53:42.691Z'),(93,28,'{\"latitude\": 31.4834944, \"longitude\": 74.3243776}','2024-12-26T09:09:39.560Z'),(94,28,'{\"latitude\": 31.4834944, \"longitude\": 74.3243776}','2024-12-26T09:24:43.117Z'),(95,28,'{\"latitude\": 31.4834944, \"longitude\": 74.3243776}','2024-12-26T09:39:44.991Z'),(96,28,'{\"latitude\": 31.4834944, \"longitude\": 74.3243776}','2024-12-26T09:54:48.212Z'),(97,28,'{\"latitude\": 31.4834944, \"longitude\": 74.3243776}','2024-12-26T10:09:56.156Z'),(98,28,'{\"latitude\": 31.4834944, \"longitude\": 74.3243776}','2024-12-26T10:26:35.114Z'),(99,28,'{\"latitude\": 31.4834944, \"longitude\": 74.3243776}','2024-12-26T10:44:08.641Z'),(100,28,'{\"latitude\": 31.4834944, \"longitude\": 74.3243776}','2024-12-26T10:59:08.561Z'),(101,28,'{\"latitude\": 31.4834944, \"longitude\": 74.3243776}','2024-12-26T11:15:38.187Z'),(102,28,'{\"latitude\": 31.4834944, \"longitude\": 74.3243776}','2024-12-26T11:32:56.454Z'),(103,28,'{\"latitude\": 31.4834944, \"longitude\": 74.3243776}','2024-12-26T11:48:10.024Z'),(104,28,'{\"latitude\": 31.4834944, \"longitude\": 74.3243776}','2024-12-26T12:03:13.819Z'),(105,28,'{\"latitude\": 31.4834944, \"longitude\": 74.3243776}','2024-12-26T12:18:14.379Z'),(106,28,'{\"latitude\": 31.4834944, \"longitude\": 74.3243776}','2024-12-26T12:33:14.753Z');

--
-- Final view structure for view `quotations_expiry`
--

/*!50001 DROP VIEW IF EXISTS `quotations_expiry`*/;


