-- MariaDB dump 10.18 Distrib 10.4.17-MariaDB, for Win64 (AMD64) -- -- Host: localhost Database: crm -- ------------------------------------------------------ -- Server version 10.4.17-MariaDB /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -- -- Table structure for table `lms2_cnf_mail_templates` -- DROP TABLE IF EXISTS `lms2_cnf_mail_templates`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lms2_cnf_mail_templates` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT NULL, `subject` varchar(255) DEFAULT NULL, `description` text DEFAULT NULL, `added_by` int(11) DEFAULT NULL, `date_added` datetime DEFAULT NULL, `display_type` int(11) DEFAULT NULL COMMENT '1. owner only\r\n2. general (all)', `type` int(11) DEFAULT NULL COMMENT '1. lead mail 2. add later', `status` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `lms2_cnf_mail_templates_fk1` (`added_by`), CONSTRAINT `lms2_cnf_mail_templates_fk1` FOREIGN KEY (`added_by`) REFERENCES `lms2_users` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lms2_cnf_mail_templates` -- LOCK TABLES `lms2_cnf_mail_templates` WRITE; /*!40000 ALTER TABLE `lms2_cnf_mail_templates` DISABLE KEYS */; INSERT INTO `lms2_cnf_mail_templates` VALUES (1,'MAIL SYS 1','sub1','asdsadsa',NULL,NULL,2,1,1),(2,'asdada','asd','asdsad',11,NULL,NULL,1,0),(3,'DFGDFGD','fdgfdg','fgfdgfdgfd',11,'2021-10-14 15:06:19',1,1,0),(4,'TEST','TESTSUB1','Hello World [name]',11,'2021-10-14 15:07:07',1,1,0),(5,'TEST APP DEV','Test Mail From App Dev','Test maiulo with BCC',11,'2021-10-15 11:15:27',1,1,1),(6,'TEST HTML TEMPLATE','Test Mail From App Dev','

test

',11,'2021-10-15 16:21:37',1,1,1),(7,'TEST','My Important Test Email','

Test All html elements mail 1 2   dsdfsd vxvcvxvxc

',11,'2021-10-16 08:02:37',1,1,1),(8,'MY EMAIL TEMPLATE','test subject','

Text


lorem ipsum


link

',11,'2021-10-16 11:33:54',1,1,1); /*!40000 ALTER TABLE `lms2_cnf_mail_templates` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lms2_cnf_sms_api` -- DROP TABLE IF EXISTS `lms2_cnf_sms_api`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lms2_cnf_sms_api` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT NULL, `base_url` varchar(255) DEFAULT NULL, `parameter_json` text DEFAULT NULL, `sent_response` varchar(255) DEFAULT NULL, `added_by` int(11) DEFAULT NULL, `date_added` datetime DEFAULT NULL, `activated` int(11) DEFAULT NULL, `status` int(11) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lms2_cnf_sms_api` -- LOCK TABLES `lms2_cnf_sms_api` WRITE; /*!40000 ALTER TABLE `lms2_cnf_sms_api` DISABLE KEYS */; INSERT INTO `lms2_cnf_sms_api` VALUES (1,'iTextMo','https://www.itexmo.com/php_api/api.php','{\"1\":\"[no]\",\"2\":\"[msg]\",\"3\":\"PR-AUTOH172111_IE74I\",\"passwd\":\"me}vfe3j#c\"}','0',NULL,NULL,1,1); /*!40000 ALTER TABLE `lms2_cnf_sms_api` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lms2_cnf_sms_templates` -- DROP TABLE IF EXISTS `lms2_cnf_sms_templates`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lms2_cnf_sms_templates` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT NULL, `description` text DEFAULT NULL, `added_by` int(11) DEFAULT NULL, `date_added` datetime DEFAULT NULL, `display_type` int(11) DEFAULT NULL COMMENT '1. owner only\r\n2. general (all)', `type` int(11) DEFAULT NULL COMMENT '1. lead sms 2. add later', `status` int(11) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lms2_cnf_sms_templates` -- LOCK TABLES `lms2_cnf_sms_templates` WRITE; /*!40000 ALTER TABLE `lms2_cnf_sms_templates` DISABLE KEYS */; INSERT INTO `lms2_cnf_sms_templates` VALUES (1,'Template 1','Hi this is my \r\n[firstname]\r\n[middlename]\r\n[lastname]\r\n[companyname]',11,NULL,1,1,0),(2,'Test 1','dsfsdfsdf',NULL,NULL,2,1,1),(3,'werwe','ewrewrew',11,'2021-10-14 10:08:14',1,1,0),(4,'test','[name][firstname][middlename]',11,'2021-10-14 10:08:47',1,1,0),(5,'my test','[lastname]',11,'2021-10-14 10:24:16',1,1,1),(6,'testtttt','[lastname] [middlename] test',11,'2021-10-14 10:24:53',1,1,0),(7,'WELCOME','Hi! Welcome [firstname]',11,'2021-10-14 10:35:47',1,1,1),(8,'MY TEMPLATE','Hello [name]',11,'2021-10-16 11:30:50',1,1,1); /*!40000 ALTER TABLE `lms2_cnf_sms_templates` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lms2_companies` -- DROP TABLE IF EXISTS `lms2_companies`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lms2_companies` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT NULL, `code` varchar(255) DEFAULT NULL, `added_by` int(11) DEFAULT NULL, `date_added` datetime DEFAULT NULL, `status` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `lms2_companies_fk0` (`added_by`), CONSTRAINT `lms2_companies_fk0` FOREIGN KEY (`added_by`) REFERENCES `lms2_users` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lms2_companies` -- LOCK TABLES `lms2_companies` WRITE; /*!40000 ALTER TABLE `lms2_companies` DISABLE KEYS */; INSERT INTO `lms2_companies` VALUES (3,'TEST 1','TEST1',NULL,'2021-09-11 11:46:18',1),(4,'TEST 2','TEST2',NULL,'2021-09-11 12:36:37',1),(5,'TEST 3','TEST3',NULL,'2021-09-11 12:36:10',1),(13,'TEST','TESTD',10,'2021-09-21 11:31:02',0); /*!40000 ALTER TABLE `lms2_companies` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lms2_dealer_brands` -- DROP TABLE IF EXISTS `lms2_dealer_brands`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lms2_dealer_brands` ( `id` int(11) NOT NULL AUTO_INCREMENT, `dealer_id` int(11) DEFAULT NULL, `brand_id` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `lms2_dealer_brands_fk0` (`dealer_id`), KEY `lms2_dealer_brands_fk1` (`brand_id`), CONSTRAINT `lms2_dealer_brands_fk0` FOREIGN KEY (`dealer_id`) REFERENCES `lms2_dealers` (`id`), CONSTRAINT `lms2_dealer_brands_fk1` FOREIGN KEY (`brand_id`) REFERENCES `lms2_vehicle_brands` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lms2_dealer_brands` -- LOCK TABLES `lms2_dealer_brands` WRITE; /*!40000 ALTER TABLE `lms2_dealer_brands` DISABLE KEYS */; /*!40000 ALTER TABLE `lms2_dealer_brands` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lms2_dealers` -- DROP TABLE IF EXISTS `lms2_dealers`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lms2_dealers` ( `id` int(11) NOT NULL AUTO_INCREMENT, `company_id` int(11) DEFAULT NULL, `name` varchar(255) DEFAULT NULL, `code` varchar(255) DEFAULT NULL, `added_by` int(11) DEFAULT NULL, `date_added` datetime DEFAULT NULL, `status` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `lms2_dealers_fk0` (`company_id`), KEY `lms2_dealers_fk1` (`added_by`), CONSTRAINT `lms2_dealers_fk0` FOREIGN KEY (`company_id`) REFERENCES `lms2_companies` (`id`), CONSTRAINT `lms2_dealers_fk1` FOREIGN KEY (`added_by`) REFERENCES `lms2_users` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lms2_dealers` -- LOCK TABLES `lms2_dealers` WRITE; /*!40000 ALTER TABLE `lms2_dealers` DISABLE KEYS */; INSERT INTO `lms2_dealers` VALUES (1,3,'C1 D1','C1D1',NULL,'2021-09-12 13:24:02',1),(2,3,'C1 D2','C1D2',NULL,NULL,1),(3,4,'C2 D1','C2D1',NULL,NULL,1),(5,5,'SADSA','SAD',10,'2021-09-27 10:48:59',1),(6,13,'SAD','SADSA',10,'2021-09-27 10:49:35',1),(7,13,'SADS','SADSASW',10,'2021-09-27 10:50:02',1); /*!40000 ALTER TABLE `lms2_dealers` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lms2_departments` -- DROP TABLE IF EXISTS `lms2_departments`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lms2_departments` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT NULL, `code` varchar(255) DEFAULT NULL, `added_by` int(11) DEFAULT NULL, `date_added` datetime DEFAULT NULL, `status` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `lms2_departments_fk0` (`added_by`), CONSTRAINT `lms2_departments_fk0` FOREIGN KEY (`added_by`) REFERENCES `lms2_users` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lms2_departments` -- LOCK TABLES `lms2_departments` WRITE; /*!40000 ALTER TABLE `lms2_departments` DISABLE KEYS */; INSERT INTO `lms2_departments` VALUES (1,'Sales and Marketing','SAM',NULL,NULL,1); /*!40000 ALTER TABLE `lms2_departments` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lms2_gender` -- DROP TABLE IF EXISTS `lms2_gender`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lms2_gender` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT NULL, `status` int(11) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lms2_gender` -- LOCK TABLES `lms2_gender` WRITE; /*!40000 ALTER TABLE `lms2_gender` DISABLE KEYS */; INSERT INTO `lms2_gender` VALUES (1,'MALE',1),(2,'FEMALE',1); /*!40000 ALTER TABLE `lms2_gender` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lms2_group_members` -- DROP TABLE IF EXISTS `lms2_group_members`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lms2_group_members` ( `id` int(11) NOT NULL AUTO_INCREMENT, `group_id` int(11) DEFAULT NULL, `member_id` int(11) DEFAULT NULL, `date_added` datetime DEFAULT NULL, `status` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `lms2_group_members_fk0` (`group_id`), KEY `lms2_group_members_fk1` (`member_id`), CONSTRAINT `lms2_group_members_fk0` FOREIGN KEY (`group_id`) REFERENCES `lms2_groups` (`id`), CONSTRAINT `lms2_group_members_fk1` FOREIGN KEY (`member_id`) REFERENCES `lms2_users` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=88 DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lms2_group_members` -- LOCK TABLES `lms2_group_members` WRITE; /*!40000 ALTER TABLE `lms2_group_members` DISABLE KEYS */; INSERT INTO `lms2_group_members` VALUES (73,257,10,'2021-11-02 11:10:52',1),(74,257,13,'2021-11-02 11:10:52',0),(75,257,12,'2021-11-02 11:13:33',1),(76,256,13,'2021-11-02 11:14:01',1),(77,261,10,'2021-11-02 11:15:51',0),(78,259,13,'2021-11-02 11:16:08',1),(79,260,13,'2021-11-02 11:16:21',1),(80,261,13,'2021-11-02 11:19:04',0),(81,262,10,'2021-11-02 13:59:17',0),(82,262,13,'2021-11-02 13:59:17',1),(83,261,10,'2021-11-02 14:33:22',0),(84,263,12,'2021-11-02 14:33:46',0),(85,264,13,'2021-11-02 14:34:00',1),(86,263,12,'2021-11-02 16:18:54',1),(87,265,10,'2021-11-02 16:24:17',1); /*!40000 ALTER TABLE `lms2_group_members` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lms2_group_position_levels` -- DROP TABLE IF EXISTS `lms2_group_position_levels`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lms2_group_position_levels` ( `id` int(11) NOT NULL AUTO_INCREMENT, `position_id` int(11) DEFAULT NULL, `level` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `lms2_groups_position_level_fk1` (`position_id`), CONSTRAINT `lms2_groups_position_level_fk1` FOREIGN KEY (`position_id`) REFERENCES `lms2_positions` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lms2_group_position_levels` -- LOCK TABLES `lms2_group_position_levels` WRITE; /*!40000 ALTER TABLE `lms2_group_position_levels` DISABLE KEYS */; /*!40000 ALTER TABLE `lms2_group_position_levels` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lms2_groups` -- DROP TABLE IF EXISTS `lms2_groups`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lms2_groups` ( `id` int(11) NOT NULL AUTO_INCREMENT, `added_by` int(11) DEFAULT NULL, `name` varchar(255) DEFAULT NULL, `json_dealers` text DEFAULT NULL, `date_added` datetime DEFAULT NULL, `status` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `lms2_groups_fk0` (`added_by`), CONSTRAINT `lms2_groups_fk0` FOREIGN KEY (`added_by`) REFERENCES `lms2_users` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=266 DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lms2_groups` -- LOCK TABLES `lms2_groups` WRITE; /*!40000 ALTER TABLE `lms2_groups` DISABLE KEYS */; INSERT INTO `lms2_groups` VALUES (255,11,'TEST',NULL,'2021-11-02 11:10:06',0),(256,11,'TEST2',NULL,'2021-11-02 11:14:01',0),(257,11,'TEST 3',NULL,'2021-11-02 11:13:33',0),(258,11,'DFDSF',NULL,'2021-11-02 11:15:51',0),(259,11,'SDF',NULL,'2021-11-02 11:16:08',0),(260,11,'SDSFSF',NULL,'2021-11-02 11:16:21',0),(261,11,'TEST 1',NULL,'2021-11-02 14:33:22',0),(262,11,'ASD',NULL,'2021-11-02 13:59:17',0),(263,11,'ASD',NULL,'2021-11-02 16:18:54',1),(264,12,'ASDD',NULL,'2021-11-02 14:48:13',1),(265,13,'SADSAD',NULL,'2021-11-02 16:24:17',1); /*!40000 ALTER TABLE `lms2_groups` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lms2_lead_activities` -- DROP TABLE IF EXISTS `lms2_lead_activities`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lms2_lead_activities` ( `id` int(11) NOT NULL AUTO_INCREMENT, `inquire_id` int(11) DEFAULT NULL, `activity_description_id` int(11) DEFAULT NULL, `description` varchar(255) DEFAULT NULL, `added_by` int(11) DEFAULT NULL, `date_added` datetime DEFAULT NULL, `status` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `lms2_lead_activities_fk0` (`inquire_id`), KEY `lms2_lead_activities_fk1` (`activity_description_id`), KEY `lms2_lead_activities_fk2` (`added_by`), CONSTRAINT `lms2_lead_activities_fk0` FOREIGN KEY (`inquire_id`) REFERENCES `lms2_lead_inquiries` (`id`), CONSTRAINT `lms2_lead_activities_fk1` FOREIGN KEY (`activity_description_id`) REFERENCES `lms2_lead_progress_description` (`id`), CONSTRAINT `lms2_lead_activities_fk2` FOREIGN KEY (`added_by`) REFERENCES `lms2_users` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=177 DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lms2_lead_activities` -- LOCK TABLES `lms2_lead_activities` WRITE; /*!40000 ALTER TABLE `lms2_lead_activities` DISABLE KEYS */; INSERT INTO `lms2_lead_activities` VALUES (129,82,1,NULL,11,'2021-10-19 15:28:10',1),(130,81,1,NULL,11,'2021-10-19 15:28:10',1),(131,80,1,NULL,11,'2021-10-19 15:28:10',1),(132,82,6,NULL,11,'2021-10-19 16:06:34',0),(133,82,5,NULL,11,'2021-10-19 16:07:09',0),(134,82,6,'asdsa',11,'2021-10-19 16:32:56',1),(135,80,2,'fdsfsffdf',11,'2021-10-21 14:40:04',1),(136,83,1,NULL,11,'2021-10-23 09:04:43',1),(137,84,1,NULL,11,'2021-10-28 15:08:27',1),(138,84,8,NULL,11,'2021-10-28 15:15:15',1),(139,85,1,NULL,10,'2021-10-28 16:47:54',1),(140,86,1,NULL,10,'2021-10-28 16:48:43',1),(141,87,1,NULL,12,'2021-11-02 14:42:12',1),(142,88,1,NULL,13,'2021-11-02 16:23:44',1),(143,88,2,'asdsad',11,'2021-11-04 16:06:13',1),(144,88,2,'asdsad',11,'2021-11-04 16:06:22',1),(145,88,8,NULL,11,'2021-11-04 16:07:28',1),(146,88,2,NULL,11,'2021-11-04 16:07:52',1),(147,86,7,NULL,11,'2021-11-04 20:37:18',1),(148,86,7,NULL,11,'2021-11-04 20:39:15',1),(149,86,7,NULL,11,'2021-11-04 20:40:53',1),(150,86,7,NULL,11,'2021-11-04 20:44:52',1),(151,86,7,NULL,11,'2021-11-04 20:52:17',1),(152,86,7,NULL,11,'2021-11-04 20:53:28',1),(153,86,5,NULL,11,'2021-11-04 20:54:12',1),(154,86,7,NULL,11,'2021-11-04 20:54:23',1),(155,86,5,NULL,11,'2021-11-04 20:54:53',1),(156,86,8,NULL,11,'2021-11-04 20:55:08',1),(157,86,5,NULL,11,'2021-11-04 20:55:36',1),(158,86,5,NULL,11,'2021-11-04 20:55:44',1),(159,86,5,NULL,11,'2021-11-04 20:56:04',1),(160,88,6,NULL,11,'2021-11-04 20:56:37',1),(161,88,9,NULL,11,'2021-11-04 20:56:43',1),(162,88,9,NULL,11,'2021-11-04 20:56:59',1),(163,88,9,NULL,11,'2021-11-04 20:57:19',1),(164,88,8,NULL,11,'2021-11-04 20:57:33',1),(165,88,5,NULL,11,'2021-11-04 20:57:41',1),(166,88,5,NULL,11,'2021-11-04 21:03:39',1),(167,88,9,NULL,11,'2021-11-04 21:04:26',1),(168,88,5,NULL,11,'2021-11-04 21:04:33',1),(169,88,7,NULL,11,'2021-11-04 21:05:14',1),(170,88,7,NULL,11,'2021-11-04 21:05:18',1),(171,88,4,NULL,11,'2021-11-04 21:09:40',1),(172,88,4,NULL,11,'2021-11-04 21:10:00',1),(173,88,2,NULL,11,'2021-11-04 21:10:10',1),(174,88,3,NULL,11,'2021-11-04 21:10:45',1),(175,88,6,NULL,11,'2021-11-04 21:11:03',1),(176,88,6,NULL,11,'2021-11-04 21:11:19',1); /*!40000 ALTER TABLE `lms2_lead_activities` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lms2_lead_alerts` -- DROP TABLE IF EXISTS `lms2_lead_alerts`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lms2_lead_alerts` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL, `status` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lms2_lead_alerts` -- LOCK TABLES `lms2_lead_alerts` WRITE; /*!40000 ALTER TABLE `lms2_lead_alerts` DISABLE KEYS */; /*!40000 ALTER TABLE `lms2_lead_alerts` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lms2_lead_call_histories` -- DROP TABLE IF EXISTS `lms2_lead_call_histories`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lms2_lead_call_histories` ( `id` int(11) NOT NULL AUTO_INCREMENT, `inquire_id` int(11) DEFAULT NULL, `description` varchar(255) DEFAULT NULL, `follow_up_date` date DEFAULT NULL, `follow_up_time` time DEFAULT NULL, `call_via` varchar(255) DEFAULT NULL, `call_via_json` text DEFAULT NULL, `added_by` int(11) DEFAULT NULL, `date_added` datetime DEFAULT NULL, `status` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `lms2_lead_call_histories_fk0` (`inquire_id`), KEY `lms2_lead_call_histories_fk1` (`added_by`), CONSTRAINT `lms2_lead_call_histories_fk0` FOREIGN KEY (`inquire_id`) REFERENCES `lms2_lead_inquiries` (`id`), CONSTRAINT `lms2_lead_call_histories_fk1` FOREIGN KEY (`added_by`) REFERENCES `lms2_users` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=49 DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lms2_lead_call_histories` -- LOCK TABLES `lms2_lead_call_histories` WRITE; /*!40000 ALTER TABLE `lms2_lead_call_histories` DISABLE KEYS */; INSERT INTO `lms2_lead_call_histories` VALUES (22,80,'sdfdsfsfds','2021-10-19','10:42:00','viber,landline','[{\"call_via_mobile\":\"0\"},{\"call_via_viber\":\"1\"},{\"call_via_landline\":\"1\"}]',11,'2021-10-12 16:45:48',1),(23,81,'sdfdsfsfds','2021-10-19','10:42:00','viber,landline','[{\"call_via_mobile\":\"0\"},{\"call_via_viber\":\"1\"},{\"call_via_landline\":\"1\"}]',11,'2021-10-15 11:09:55',1),(24,81,'sdfdsfsfds','2021-10-19','10:42:00','viber,landline','[{\"call_via_mobile\":\"0\"},{\"call_via_viber\":\"1\"},{\"call_via_landline\":\"1\"}]',11,'2021-10-15 16:24:10',1),(25,80,'sdfdsfsfds','2021-10-19','10:42:00','viber,landline','[{\"call_via_mobile\":\"0\"},{\"call_via_viber\":\"1\"},{\"call_via_landline\":\"1\"}]',11,'2021-10-19 10:29:49',1),(26,80,'sdfdsfsfds','2021-10-19','10:42:00','viber,landline','[{\"call_via_mobile\":\"0\"},{\"call_via_viber\":\"1\"},{\"call_via_landline\":\"1\"}]',11,'2021-10-19 10:41:40',1),(27,80,'sdfdsfsfds','2021-10-19','10:42:00','viber,landline','[{\"call_via_mobile\":\"0\"},{\"call_via_viber\":\"1\"},{\"call_via_landline\":\"1\"}]',11,'2021-10-19 10:42:18',1),(28,80,'sdfdsfsfds','2021-10-19','10:42:00','viber,landline','[{\"call_via_mobile\":\"0\"},{\"call_via_viber\":\"1\"},{\"call_via_landline\":\"1\"}]',11,'2021-10-19 11:00:04',1),(29,80,'sdfdsfsfds','2021-10-19','10:42:00','viber,landline','[{\"call_via_mobile\":\"0\"},{\"call_via_viber\":\"1\"},{\"call_via_landline\":\"1\"}]',11,'2021-10-19 11:00:12',1),(30,80,'sdfdsfsfds','2021-10-19','10:42:00','viber,landline','[{\"call_via_mobile\":\"0\"},{\"call_via_viber\":\"1\"},{\"call_via_landline\":\"1\"}]',11,'2021-10-19 11:00:22',1),(31,80,'sdfdsfsfds','2021-10-19','10:42:00','viber,landline','[{\"call_via_mobile\":\"0\"},{\"call_via_viber\":\"1\"},{\"call_via_landline\":\"1\"}]',11,'2021-10-19 11:00:26',1),(32,80,'sdfdsfsfds','2021-10-19','10:42:00','viber,landline','[{\"call_via_mobile\":\"0\"},{\"call_via_viber\":\"1\"},{\"call_via_landline\":\"1\"}]',11,'2021-10-19 11:01:14',1),(33,80,'sdfdsfsfds','2021-10-19','10:42:00','viber,landline','[{\"call_via_mobile\":\"0\"},{\"call_via_viber\":\"1\"},{\"call_via_landline\":\"1\"}]',11,'2021-10-19 11:01:16',1),(34,80,'sdfdsfsfds','2021-10-19','10:42:00','viber,landline','[{\"call_via_mobile\":\"0\"},{\"call_via_viber\":\"1\"},{\"call_via_landline\":\"1\"}]',11,'2021-10-19 11:12:17',1),(35,80,'sdfdsfsfds','2021-10-19','10:42:00','viber,landline','[{\"call_via_mobile\":\"0\"},{\"call_via_viber\":\"1\"},{\"call_via_landline\":\"1\"}]',11,'2021-10-19 11:12:21',1),(36,80,'sdfdsfsfds','2021-10-19','10:42:00','viber,landline','[{\"call_via_mobile\":\"0\"},{\"call_via_viber\":\"1\"},{\"call_via_landline\":\"1\"}]',11,'2021-10-19 11:12:29',1),(37,80,'a','2021-10-19','22:42:00','landline','[{\"call_via_mobile\":\"0\"},{\"call_via_viber\":\"0\"},{\"call_via_landline\":\"1\"}]',11,'2021-10-19 11:12:38',0),(38,80,'asdasd','2021-10-19','14:42:00','mobile,viber','[{\"call_via_mobile\":\"1\"},{\"call_via_viber\":\"1\"},{\"call_via_landline\":\"0\"}]',11,'2021-10-19 14:42:56',0),(39,81,'rtyrytryr',NULL,NULL,NULL,'[{\"call_via_mobile\":\"0\"},{\"call_via_viber\":\"0\"},{\"call_via_landline\":\"0\"}]',11,'2021-10-22 10:12:47',1),(40,80,'vbdvbcb','2021-10-22','11:03:00','mobile,viber,landline','[{\"call_via_mobile\":\"1\"},{\"call_via_viber\":\"1\"},{\"call_via_landline\":\"1\"}]',11,'2021-10-22 11:03:33',1),(41,84,'asdsa',NULL,NULL,'mobile','[{\"call_via_mobile\":\"1\"},{\"call_via_landline\":\"0\"}]',11,'2021-10-28 15:15:23',1),(42,88,'asdsad',NULL,NULL,NULL,'[{\"call_via_mobile\":\"0\"},{\"call_via_viber\":\"0\"},{\"call_via_landline\":\"0\"}]',11,'2021-11-04 14:39:18',1),(43,88,'fgdfgfdgfd',NULL,NULL,NULL,'[{\"call_via_mobile\":\"0\"},{\"call_via_viber\":\"0\"},{\"call_via_landline\":\"0\"}]',11,'2021-11-04 14:53:22',1),(44,87,'fdgfdg',NULL,NULL,NULL,'[{\"call_via_mobile\":\"0\"},{\"call_via_viber\":\"0\"},{\"call_via_landline\":\"0\"}]',11,'2021-11-04 14:55:20',1),(45,88,'asdsadsaa',NULL,NULL,'mobile','[{\"call_via_mobile\":\"1\"},{\"call_via_viber\":\"0\"},{\"call_via_landline\":\"0\"}]',11,'2021-11-04 15:42:23',1),(46,88,'asdasda',NULL,NULL,NULL,'[{\"call_via_mobile\":\"0\"},{\"call_via_viber\":\"0\"},{\"call_via_landline\":\"0\"}]',11,'2021-11-04 15:45:51',1),(47,88,'aSAsS',NULL,NULL,NULL,'[{\"call_via_mobile\":\"0\"},{\"call_via_viber\":\"0\"},{\"call_via_landline\":\"0\"}]',11,'2021-11-04 15:46:02',1),(48,88,'asdassad',NULL,NULL,NULL,'[{\"call_via_mobile\":\"0\"},{\"call_via_viber\":\"0\"},{\"call_via_landline\":\"0\"}]',11,'2021-11-04 21:12:51',1); /*!40000 ALTER TABLE `lms2_lead_call_histories` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lms2_lead_comments` -- DROP TABLE IF EXISTS `lms2_lead_comments`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lms2_lead_comments` ( `id` int(11) NOT NULL AUTO_INCREMENT, `inquiry_id` int(11) DEFAULT NULL, `description` text DEFAULT NULL, `added_by` int(11) DEFAULT NULL, `date_added` datetime DEFAULT NULL, `status` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `lms2_lead_comments_fk1` (`added_by`), KEY `lms2_lead_comments_fk0` (`inquiry_id`), CONSTRAINT `lms2_lead_comments_fk0` FOREIGN KEY (`inquiry_id`) REFERENCES `lms2_lead_inquiries` (`id`), CONSTRAINT `lms2_lead_comments_fk1` FOREIGN KEY (`added_by`) REFERENCES `lms2_users` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=36 DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lms2_lead_comments` -- LOCK TABLES `lms2_lead_comments` WRITE; /*!40000 ALTER TABLE `lms2_lead_comments` DISABLE KEYS */; INSERT INTO `lms2_lead_comments` VALUES (30,80,'COMMENT',11,'2021-10-12 16:38:09',1),(31,81,'COMMENT1',11,'2021-10-12 16:39:41',1),(32,82,'TFTF',11,'2021-10-19 15:28:10',1),(33,84,'DFG',11,'2021-10-28 15:08:27',1),(34,87,'SADASDSA',12,'2021-11-02 14:42:12',1),(35,88,'QWEWQ',13,'2021-11-02 16:23:44',1); /*!40000 ALTER TABLE `lms2_lead_comments` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lms2_lead_company_business` -- DROP TABLE IF EXISTS `lms2_lead_company_business`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lms2_lead_company_business` ( `id` int(11) NOT NULL AUTO_INCREMENT, `lead_id` int(11) DEFAULT NULL, `company_business_id` int(11) DEFAULT NULL, `inquire_id` int(11) DEFAULT NULL, `added_by` int(11) DEFAULT NULL, `date_added` datetime DEFAULT NULL, `status` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `lms2_lead_company_business_fk0` (`lead_id`), KEY `lms2_lead_company_business_fk1` (`company_business_id`), KEY `lms2_lead_company_business_fk2` (`added_by`), KEY `lms2_lead_company_business_fk3` (`inquire_id`), CONSTRAINT `lms2_lead_company_business_fk0` FOREIGN KEY (`lead_id`) REFERENCES `lms2_leads` (`id`), CONSTRAINT `lms2_lead_company_business_fk1` FOREIGN KEY (`company_business_id`) REFERENCES `lms2_leads` (`id`), CONSTRAINT `lms2_lead_company_business_fk2` FOREIGN KEY (`added_by`) REFERENCES `lms2_users` (`id`), CONSTRAINT `lms2_lead_company_business_fk3` FOREIGN KEY (`inquire_id`) REFERENCES `lms2_lead_inquiries` (`id`), CONSTRAINT `lms2_lead_company_business_ibfk_1` FOREIGN KEY (`lead_id`) REFERENCES `lms2_leads` (`id`), CONSTRAINT `lms2_lead_company_business_ibfk_2` FOREIGN KEY (`company_business_id`) REFERENCES `lms2_leads` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=28 DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lms2_lead_company_business` -- LOCK TABLES `lms2_lead_company_business` WRITE; /*!40000 ALTER TABLE `lms2_lead_company_business` DISABLE KEYS */; INSERT INTO `lms2_lead_company_business` VALUES (23,101,102,80,11,'2021-10-12 16:38:09',1),(24,105,106,83,11,'2021-10-23 09:04:43',1),(25,109,107,86,10,'2021-10-28 16:48:43',1),(26,110,111,87,12,'2021-11-02 14:42:12',1),(27,112,113,88,13,'2021-11-02 16:23:44',1); /*!40000 ALTER TABLE `lms2_lead_company_business` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lms2_lead_contacts` -- DROP TABLE IF EXISTS `lms2_lead_contacts`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lms2_lead_contacts` ( `id` int(11) NOT NULL AUTO_INCREMENT, `lead_id` int(11) DEFAULT NULL, `mobile` varchar(255) DEFAULT NULL, `landline` varchar(255) DEFAULT NULL, `email` varchar(255) DEFAULT NULL, `address` varchar(255) DEFAULT NULL, `facebook` varchar(255) DEFAULT NULL, `instagram` varchar(255) DEFAULT NULL, `whatsapp` varchar(255) DEFAULT NULL, `viber` varchar(255) DEFAULT NULL, `linkedin` varchar(255) DEFAULT NULL, `twitter` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`), KEY `lms2_lead_contacts_fk0` (`lead_id`), CONSTRAINT `lms2_lead_contacts_fk0` FOREIGN KEY (`lead_id`) REFERENCES `lms2_leads` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=109 DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lms2_lead_contacts` -- LOCK TABLES `lms2_lead_contacts` WRITE; /*!40000 ALTER TABLE `lms2_lead_contacts` DISABLE KEYS */; INSERT INTO `lms2_lead_contacts` VALUES (96,101,'9389592854','LANDLINE','143CLARKZ@GMAIL.COM','BGC','143CLARKZ','INSTAGRAM',NULL,'VIBER','LINKEDIN','TWITTER'),(97,102,'9123456789','LANDLINE','EMAIL@EMAIL.COM','BGC','FACEBOOK','INSTAGRAM',NULL,'VIBER','LINKEDIN','TWITTER'),(98,103,'9123456754','LANDLINEE','COMPANY@EMAIL.COM','BGC','FACEBOOK1','INSTAGRAM1',NULL,'VIBER1','LINKEDIN1','TWITTER'),(99,104,'9432432423','SADASD','SADASD@ASD.COM','SADSAD',NULL,NULL,NULL,NULL,NULL,NULL),(100,105,'9234234324','1242143243','ASDSAJBDSAJ@JWNSDJS.COM','ASD',NULL,NULL,NULL,NULL,NULL,NULL),(101,106,'9234234324','1242143243','ASDSAJBDSAJ@JWNSDJS.COM','ASD',NULL,NULL,NULL,NULL,NULL,NULL),(102,107,'9123456782','23423423234','143CLARKZ@GMAIL.COM','SA PUSO MO <3','DFGFDG','DFG',NULL,NULL,NULL,NULL),(103,108,'9981231321',NULL,'ASA@SDS.COM','AS',NULL,NULL,NULL,NULL,NULL,NULL),(104,109,'9123456783','0912345678','143CLARKZ@GMAIL.COM','SA PUSO MO <3',NULL,NULL,NULL,NULL,NULL,NULL),(105,110,'9324324324','232323','143CLARKZ@GMAIL.COM','SADF','ASDD',NULL,NULL,'ASD','ASD','ASD'),(106,111,'9324324324','232323','143CLARKZ@GMAIL.COM','SADF','ASDD',NULL,NULL,'ASD','ASD','ASD'),(107,112,'9389592854','23423424','ZXFSDFDS@ADS.OPCM','SDFASDF','QWEQWE',NULL,NULL,'QWE','QWE','QWE'),(108,113,'9876545675','23423424','ZXFSDFDS@ADS.OPCM','SDFASDF','QWEQWE',NULL,NULL,'QWE','QWE','QWE'); /*!40000 ALTER TABLE `lms2_lead_contacts` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lms2_lead_email_histories` -- DROP TABLE IF EXISTS `lms2_lead_email_histories`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lms2_lead_email_histories` ( `id` int(11) NOT NULL AUTO_INCREMENT, `inquire_id` int(11) DEFAULT NULL, `subject` varchar(255) DEFAULT NULL, `description` text DEFAULT NULL, `added_by` int(11) DEFAULT NULL, `date_added` datetime DEFAULT NULL, `status` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `lms2_lead_emails_fk0` (`inquire_id`), KEY `lms2_lead_emails_fk1` (`added_by`), CONSTRAINT `lms2_lead_emails_fk0` FOREIGN KEY (`inquire_id`) REFERENCES `lms2_lead_inquiries` (`id`), CONSTRAINT `lms2_lead_emails_fk1` FOREIGN KEY (`added_by`) REFERENCES `lms2_users` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=34 DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lms2_lead_email_histories` -- LOCK TABLES `lms2_lead_email_histories` WRITE; /*!40000 ALTER TABLE `lms2_lead_email_histories` DISABLE KEYS */; INSERT INTO `lms2_lead_email_histories` VALUES (1,81,'asdasda','dasdsadsad',11,'2021-10-14 14:49:15',1),(2,81,'jkuk','asdsadsa\nCOMPANY TEST',11,'2021-10-14 14:51:40',1),(3,80,'asdsada','asdsad',11,'2021-10-14 15:04:55',1),(4,80,'fdgfdg','fgfdgfdgfd',11,'2021-10-14 15:06:19',1),(5,80,'TESTSUB1','Hello World CLARENCE ANDAYA',11,'2021-10-14 15:07:07',1),(6,80,'asdasdd','MAY PUSA ASACSsd',11,'2021-10-14 16:34:03',1),(7,80,'Formal Subject for Live Test','Hello CLARENCE ANDAYA!\n\nLorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim. Aliquam lorem ante, dapibus in, viverra quis, feugiat a, tellus. Phasellus viverra nulla ut metus varius laoreet. Quisque rutrum. Aenean imperdiet. Etiam ultricies nisi vel augue. Curabitur ullamcorper ultricies nisi. Nam eget dui. Etiam rhoncus. Maecenas tempus, tellus eget condimentum rhoncus, sem quam semper libero, sit amet adipiscing sem neque sed ipsum. Nam quam nunc, blandit vel, luctus pulvinar, hendrerit id, lorem. Maecenas nec odio et ante tincidunt tempus. Donec vitae sapien ut libero venenatis faucibus. Nullam quis ante. Etiam sit amet orci eget eros faucibus tincidunt. Duis leo. Sed fringilla mauris sit amet nibh. Donec sodales sagittis magna. Sed consequat, leo eget bibendum sodales, augue velit cursus nunc.',11,'2021-10-14 16:36:32',1),(8,80,'sadsadsad','sadsadsadsadsada',11,'2021-10-14 16:43:30',1),(9,80,'TEST MAIL 1','TEST\nMAIL\n1\nClarence\nSMTP',11,'2021-10-14 16:44:04',1),(10,80,'asdassa','aasdsad\nsadsad\nsadsadsa',11,'2021-10-14 16:44:55',1),(11,80,'sadsadsa','dsadsadsad\n\nasdsadsad\nasd',11,'2021-10-14 16:49:40',1),(12,80,'Test Mail From App Dev','Test maiulo with BCC',11,'2021-10-15 11:15:33',1),(13,81,'Test Mail From App Dev','


',11,'2021-10-15 15:02:58',1),(14,81,'Test Mail From App Dev','


',11,'2021-10-15 15:03:53',1),(15,81,'Test Mail From App Dev','


',11,'2021-10-15 15:06:13',1),(16,81,'jutyu','


',11,'2021-10-15 15:12:34',1),(17,80,'Test HTML with Image','

Hello From Autohub!

',11,'2021-10-15 15:21:32',1),(18,80,'TEST THML','

Hello HTML

',11,'2021-10-15 15:24:10',1),(19,80,'TEst HTML Project','

Hello



  1. fdgdf
  2. dfgfd
  3. dg
',11,'2021-10-15 15:25:47',1),(20,81,'asdad','


',11,'2021-10-15 16:16:40',1),(21,80,'asdsad','



',11,'2021-10-15 16:16:59',1),(22,81,'Test Mail From App Dev','

test

',11,'2021-10-15 16:21:41',1),(23,80,'My Important Test Email','

Test All html elements mail 1 2   dsdfsd vxvcvxvxc

',11,'2021-10-16 08:02:46',1),(24,80,'test mail with dynamic url','

ACEDERAANDAYACLARENCE ANDAYACLARENCE

',11,'2021-10-16 10:55:28',1),(25,80,'ASasa','

ASAs

',11,'2021-10-16 10:56:26',1),(26,80,'ASDADAS','

ASDSADSA

',11,'2021-10-16 10:57:22',1),(27,80,'test subject','

Text


lorem ipsum


link

',11,'2021-10-16 11:34:01',1),(28,80,'Test sUbjEct','


lorem

ipsum

dolor

amet




lorem

ipsum

dolor

amet



lorem

ipsum

dolor

amet



',11,'2021-10-18 15:19:05',1),(29,80,'test','

test

',11,'2021-10-18 15:22:20',1),(30,80,'test','

hello po

',11,'2021-10-19 16:24:20',0),(31,80,'Test','

Test

',11,'2021-10-22 11:29:23',1),(32,87,'sdfdsf','

sdfds

',11,'2021-11-04 14:31:03',1),(33,88,'sadad','

asdsa

',11,'2021-11-04 15:43:55',1); /*!40000 ALTER TABLE `lms2_lead_email_histories` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lms2_lead_inactive_tags` -- DROP TABLE IF EXISTS `lms2_lead_inactive_tags`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lms2_lead_inactive_tags` ( `id` int(11) NOT NULL AUTO_INCREMENT, `inquire_id` int(11) DEFAULT NULL, `description` text DEFAULT NULL, `revisit_date` date DEFAULT NULL, `added_by` int(11) DEFAULT NULL, `date_added` datetime DEFAULT NULL, `status` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `lms2_lead_inactive_tags_fk0` (`inquire_id`), CONSTRAINT `lms2_lead_inactive_tags_fk0` FOREIGN KEY (`inquire_id`) REFERENCES `lms2_lead_inquiries` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=57 DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lms2_lead_inactive_tags` -- LOCK TABLES `lms2_lead_inactive_tags` WRITE; /*!40000 ALTER TABLE `lms2_lead_inactive_tags` DISABLE KEYS */; INSERT INTO `lms2_lead_inactive_tags` VALUES (24,80,'test inactive',NULL,11,'2021-10-16 11:16:10',1),(25,81,'tag as inactibve',NULL,11,'2021-10-16 11:37:12',1),(26,80,'tyju',NULL,11,'2021-10-18 13:02:53',1),(27,81,'fsdfsdf','2021-10-18',11,'2021-10-18 14:02:40',1),(28,81,'fsdfsdf','2021-10-18',11,'2021-10-18 14:08:36',1),(29,81,'fsdfsdfasd','2021-10-18',11,'2021-10-18 14:10:14',1),(30,80,'',NULL,11,'2021-10-18 14:10:35',1),(31,81,'asdasd','2021-10-19',11,'2021-10-18 14:11:21',1),(32,80,'',NULL,11,'2021-10-18 15:29:22',1),(33,80,'',NULL,11,'2021-10-18 15:29:22',1),(34,80,'',NULL,11,'2021-10-18 15:29:22',1),(35,81,'asdasdsad','2021-10-18',11,'2021-10-18 15:44:38',1),(36,81,'dssfsd',NULL,11,'2021-10-18 15:44:43',1),(37,81,'yutyuy','2021-10-07',11,'2021-10-18 15:53:46',1),(38,80,'asdadsadsas','2021-10-05',11,'2021-10-18 16:28:24',1),(39,80,'test inactive',NULL,11,'2021-10-21 16:30:10',0),(40,81,'sdf',NULL,11,'2021-10-22 10:09:14',0),(41,81,'rryrtytryr',NULL,11,'2021-10-22 10:12:44',1),(42,80,'sada',NULL,11,'2021-10-22 10:34:19',0),(43,80,'asdsad','2021-10-26',11,'2021-10-22 10:36:02',0),(44,81,'dsfdsf',NULL,11,'2021-10-22 10:37:23',0),(45,80,'sdfsfsdf',NULL,11,'2021-10-22 10:37:55',0),(46,81,'sadsad','2021-10-22',11,'2021-10-22 10:46:21',0),(47,81,'sdfdsfsfds','2021-10-22',11,'2021-10-22 10:57:50',1),(48,80,'rtretret','2021-10-22',11,'2021-10-22 10:59:17',1),(49,84,'sadsa',NULL,11,'2021-10-28 15:14:43',1),(50,84,'asda',NULL,11,'2021-10-28 15:15:26',0),(51,87,'ertregt',NULL,11,'2021-11-04 10:50:54',1),(52,87,'rtret',NULL,11,'2021-11-04 14:55:22',1),(53,85,'gfdgfdg',NULL,11,'2021-11-04 14:58:13',1),(54,88,'sdfsdfdsfs',NULL,11,'2021-11-04 15:01:18',1),(55,88,'dsada',NULL,11,'2021-11-04 15:02:54',1),(56,88,'sadsadad',NULL,11,'2021-11-04 15:42:37',1); /*!40000 ALTER TABLE `lms2_lead_inactive_tags` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lms2_lead_inquired_data` -- DROP TABLE IF EXISTS `lms2_lead_inquired_data`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lms2_lead_inquired_data` ( `id` int(11) NOT NULL AUTO_INCREMENT, `inquire_id` int(11) DEFAULT NULL, `model_id` int(11) DEFAULT NULL, `color_id` int(11) DEFAULT NULL, `quantity` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `lms2_lead_inquiried_data_fk0` (`inquire_id`), KEY `lms2_lead_inquiried_data_fk1` (`model_id`), KEY `lms2_lead_inquiried_data_fk2` (`color_id`), CONSTRAINT `lms2_lead_inquiried_data_fk0` FOREIGN KEY (`inquire_id`) REFERENCES `lms2_lead_inquiries` (`id`), CONSTRAINT `lms2_lead_inquiried_data_fk1` FOREIGN KEY (`model_id`) REFERENCES `lms2_vehicle_models` (`id`), CONSTRAINT `lms2_lead_inquiried_data_fk2` FOREIGN KEY (`color_id`) REFERENCES `lms2_vehicle_colors` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=27 DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lms2_lead_inquired_data` -- LOCK TABLES `lms2_lead_inquired_data` WRITE; /*!40000 ALTER TABLE `lms2_lead_inquired_data` DISABLE KEYS */; INSERT INTO `lms2_lead_inquired_data` VALUES (18,80,1,3,1),(19,81,4,5,1),(20,82,5,2,1),(21,83,5,2,1),(22,84,5,2,1),(23,85,5,NULL,1),(24,86,5,NULL,1),(25,87,5,2,1),(26,88,5,2,1); /*!40000 ALTER TABLE `lms2_lead_inquired_data` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lms2_lead_inquiries` -- DROP TABLE IF EXISTS `lms2_lead_inquiries`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lms2_lead_inquiries` ( `id` int(11) NOT NULL AUTO_INCREMENT, `lead_id` int(11) DEFAULT NULL, `dealer_id` int(11) DEFAULT NULL, `json_alert_id` varchar(255) DEFAULT NULL, `added_by` int(11) DEFAULT NULL, `date_added` datetime DEFAULT NULL, `inactive` int(11) DEFAULT NULL, `status` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `lms2_lead_inquiries_fk0` (`lead_id`), KEY `lms2_lead_inquiries_fk3` (`dealer_id`), KEY `lms2_lead_inquiries_fk4` (`added_by`), CONSTRAINT `lms2_lead_inquiries_fk0` FOREIGN KEY (`lead_id`) REFERENCES `lms2_leads` (`id`), CONSTRAINT `lms2_lead_inquiries_fk3` FOREIGN KEY (`dealer_id`) REFERENCES `lms2_dealers` (`id`), CONSTRAINT `lms2_lead_inquiries_fk4` FOREIGN KEY (`added_by`) REFERENCES `lms2_users` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=89 DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lms2_lead_inquiries` -- LOCK TABLES `lms2_lead_inquiries` WRITE; /*!40000 ALTER TABLE `lms2_lead_inquiries` DISABLE KEYS */; INSERT INTO `lms2_lead_inquiries` VALUES (80,101,6,'[{\"alert_new_lead_action\":\"1\"},{\"alert_inactive\":\"1\"},{\"alert_status_changed\":\"1\"},{\"alert_activity\":\"0\"}]',11,'2021-10-12 16:38:09',0,1),(81,103,7,'[{\"alert_new_lead_action\":\"1\"},{\"alert_inactive\":\"0\"},{\"alert_status_changed\":\"1\"},{\"alert_activity\":\"1\"}]',11,'2021-10-12 16:39:41',1,1),(82,104,6,'[{\"alert_new_lead_action\":\"0\"},{\"alert_inactive\":\"0\"},{\"alert_status_changed\":\"0\"},{\"alert_activity\":\"0\"}]',11,'2021-10-19 15:28:10',0,1),(83,105,7,'[{\"alert_new_lead_action\":\"0\"},{\"alert_inactive\":\"0\"},{\"alert_status_changed\":\"0\"},{\"alert_activity\":\"0\"}]',11,'2021-10-23 09:04:43',NULL,1),(84,107,1,'[{\"alert_new_lead_action\":\"0\"},{\"alert_inactive\":\"0\"},{\"alert_status_changed\":\"0\"},{\"alert_activity\":\"0\"}]',11,'2021-10-28 15:08:27',0,1),(85,108,1,'[{\"alert_new_lead_action\":\"0\"},{\"alert_inactive\":\"0\"},{\"alert_status_changed\":\"0\"},{\"alert_activity\":\"0\"}]',10,'2021-10-28 16:47:54',1,1),(86,109,3,'[{\"alert_new_lead_action\":\"0\"},{\"alert_inactive\":\"0\"},{\"alert_status_changed\":\"1\"},{\"alert_activity\":\"0\"}]',10,'2021-10-28 16:48:43',0,1),(87,110,1,'[{\"alert_new_lead_action\":\"1\"},{\"alert_inactive\":\"1\"},{\"alert_status_changed\":\"1\"},{\"alert_activity\":\"1\"}]',12,'2021-11-02 14:42:12',1,1),(88,112,2,'[{\"alert_new_lead_action\":\"1\"},{\"alert_inactive\":\"1\"},{\"alert_status_changed\":\"1\"},{\"alert_activity\":\"1\"}]',13,'2021-11-02 16:23:44',0,1); /*!40000 ALTER TABLE `lms2_lead_inquiries` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lms2_lead_notes` -- DROP TABLE IF EXISTS `lms2_lead_notes`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lms2_lead_notes` ( `id` int(11) NOT NULL AUTO_INCREMENT, `inquire_id` int(11) DEFAULT NULL, `description` varchar(255) DEFAULT NULL, `reminder_date` date DEFAULT NULL, `reminder_time` time DEFAULT NULL, `note_copy_json` text NOT NULL, `added_by` int(11) DEFAULT NULL, `date_added` datetime DEFAULT NULL, `status` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `lms2_lead_notes_fk0` (`inquire_id`), KEY `lms2_lead_notes_fk1` (`added_by`), CONSTRAINT `lms2_lead_notes_fk0` FOREIGN KEY (`inquire_id`) REFERENCES `lms2_lead_inquiries` (`id`), CONSTRAINT `lms2_lead_notes_fk1` FOREIGN KEY (`added_by`) REFERENCES `lms2_users` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=60 DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lms2_lead_notes` -- LOCK TABLES `lms2_lead_notes` WRITE; /*!40000 ALTER TABLE `lms2_lead_notes` DISABLE KEYS */; INSERT INTO `lms2_lead_notes` VALUES (30,81,'Lorem Ipsum Dolor Amet',NULL,NULL,'[{\"send_alert_group_head\":\"0\"},{\"send_alert_customer\":\"0\"},{\"send_alert_my_email\":\"0\"}]',11,'2021-10-15 16:23:06',1),(31,80,'Lorem Ipsum Dolor Amet',NULL,NULL,'[{\"send_alert_group_head\":\"0\"},{\"send_alert_customer\":\"0\"},{\"send_alert_my_email\":\"0\"}]',11,'2021-10-15 16:34:01',1),(32,80,'Lorem Ipsum Dolor Amet',NULL,NULL,'[{\"send_alert_group_head\":\"0\"},{\"send_alert_customer\":\"0\"},{\"send_alert_my_email\":\"0\"}]',11,'2021-10-15 16:42:10',1),(33,80,'sdfsdf','2021-10-13','10:42:00','[{\"send_alert_group_head\":\"0\"},{\"send_alert_customer\":\"0\"},{\"send_alert_my_email\":\"0\"}]',11,'2021-10-19 10:42:06',1),(34,80,'sASA',NULL,NULL,'[{\"send_alert_group_head\":\"0\"},{\"send_alert_customer\":\"0\"},{\"send_alert_my_email\":\"0\"}]',11,'2021-10-19 11:32:27',0),(35,80,'rwerewrewrsd','2021-10-20','23:33:00','[{\"send_alert_group_head\":\"1\"},{\"send_alert_customer\":\"0\"},{\"send_alert_my_email\":\"1\"}]',11,'2021-10-19 11:32:46',0),(36,80,'sfsddsfdsfsd',NULL,NULL,'[{\"send_alert_group_head\":\"1\"},{\"send_alert_customer\":\"0\"},{\"send_alert_my_email\":\"0\"}]',11,'2021-10-19 14:42:45',0),(37,80,'asdsad','2021-10-01','14:55:00','[{\"send_alert_group_head\":\"1\"},{\"send_alert_customer\":\"1\"},{\"send_alert_my_email\":\"1\"}]',11,'2021-10-19 14:43:27',0),(38,82,'sadsadsad','2021-10-19','16:03:00','[{\"send_alert_group_head\":\"0\"},{\"send_alert_customer\":\"0\"},{\"send_alert_my_email\":\"0\"}]',11,'2021-10-19 16:03:15',0),(39,81,'NEW LEADNEW LEADNEW LEADNEW LEADNEW LEADNEW LEADNEW LEADNEW LEADNEW LEADNEW LEADNEW LEADNEW LEADNEW LEADNEW LEADNEW LEADNEW LEADNEW LEADNEW LEADNEW LEADNEW LEADNEW LEADNEW LEADNEW LEADNEW LEADNEW LEADNEW LEADNEW LEADNEW LEADNEW LEADNEW LEADNEW LEADNEW LEA',NULL,NULL,'[{\"send_alert_group_head\":\"0\"},{\"send_alert_customer\":\"0\"},{\"send_alert_my_email\":\"0\"}]',11,'2021-10-21 14:29:41',1),(40,80,'sdsada',NULL,NULL,'[{\"send_alert_group_head\":\"0\"},{\"send_alert_customer\":\"0\"},{\"send_alert_my_email\":\"1\"}]',11,'2021-10-21 15:19:51',1),(41,80,'sadsadsad',NULL,NULL,'[]',11,'2021-10-21 15:21:14',1),(42,80,'dsadadsa',NULL,NULL,'[]',11,'2021-10-21 15:25:18',1),(43,80,'asdsadsa',NULL,NULL,'[]',11,'2021-10-21 15:26:06',1),(44,80,'asdsadsa',NULL,NULL,'[]',11,'2021-10-21 15:26:59',1),(45,80,'sdfsdfdsf',NULL,NULL,'[{\"send_alert_group_head\":\"1\"},{\"send_alert_customer\":\"1\"},{\"send_alert_my_email\":\"1\"}]',11,'2021-10-21 15:28:53',1),(46,84,'asdsadsadsa',NULL,NULL,'[{\"send_alert_group_head\":\"0\"},{\"send_alert_customer\":\"0\"},{\"send_alert_my_email\":\"0\"}]',11,'2021-10-28 15:19:45',1),(47,84,'sdfsf',NULL,NULL,'[{\"send_alert_group_head\":\"1\"},{\"send_alert_customer\":\"1\"},{\"send_alert_my_email\":\"1\"}]',11,'2021-10-28 15:20:49',1),(48,88,'sdfdsfdsfs',NULL,NULL,'[{\"send_alert_group_head\":\"0\"},{\"send_alert_customer\":\"0\"},{\"send_alert_my_email\":\"0\"}]',11,'2021-11-04 14:59:40',1),(49,88,'sdfsdfsf',NULL,NULL,'[{\"send_alert_group_head\":\"0\"},{\"send_alert_customer\":\"0\"},{\"send_alert_my_email\":\"0\"}]',11,'2021-11-04 15:01:20',1),(50,88,'sdfsdfsf',NULL,NULL,'[{\"send_alert_group_head\":\"0\"},{\"send_alert_customer\":\"0\"},{\"send_alert_my_email\":\"0\"}]',11,'2021-11-04 15:02:03',1),(51,88,'asdsads',NULL,NULL,'[{\"send_alert_group_head\":\"0\"},{\"send_alert_customer\":\"0\"},{\"send_alert_my_email\":\"0\"}]',11,'2021-11-04 15:03:13',1),(52,88,'werewrwer',NULL,NULL,'[{\"send_alert_group_head\":\"0\"},{\"send_alert_customer\":\"0\"},{\"send_alert_my_email\":\"0\"}]',11,'2021-11-04 15:15:04',1),(53,88,'werewrwer',NULL,NULL,'[{\"send_alert_group_head\":\"0\"},{\"send_alert_customer\":\"0\"},{\"send_alert_my_email\":\"0\"}]',11,'2021-11-04 15:16:18',1),(54,88,'werewrwer',NULL,NULL,'[{\"send_alert_group_head\":\"0\"},{\"send_alert_customer\":\"0\"},{\"send_alert_my_email\":\"0\"}]',11,'2021-11-04 15:21:48',1),(55,88,'werewrwer',NULL,NULL,'[{\"send_alert_group_head\":\"0\"},{\"send_alert_customer\":\"0\"},{\"send_alert_my_email\":\"0\"}]',11,'2021-11-04 15:36:34',1),(56,88,'werewrwer',NULL,NULL,'[{\"send_alert_group_head\":\"0\"},{\"send_alert_customer\":\"0\"},{\"send_alert_my_email\":\"0\"}]',11,'2021-11-04 15:37:55',1),(57,88,'werewrwer',NULL,NULL,'[{\"send_alert_group_head\":\"0\"},{\"send_alert_customer\":\"0\"},{\"send_alert_my_email\":\"0\"}]',11,'2021-11-04 15:41:29',1),(58,88,'werewrwer',NULL,NULL,'[{\"send_alert_group_head\":\"0\"},{\"send_alert_customer\":\"0\"},{\"send_alert_my_email\":\"0\"}]',11,'2021-11-04 15:41:39',1),(59,88,'sdas',NULL,NULL,'[{\"send_alert_group_head\":\"0\"},{\"send_alert_customer\":\"0\"},{\"send_alert_my_email\":\"0\"}]',11,'2021-11-04 21:17:26',1); /*!40000 ALTER TABLE `lms2_lead_notes` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lms2_lead_progress_description` -- DROP TABLE IF EXISTS `lms2_lead_progress_description`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lms2_lead_progress_description` ( `id` int(11) NOT NULL AUTO_INCREMENT, `lead_progress_type_id` int(11) DEFAULT NULL, `name` varchar(255) DEFAULT NULL, `level` int(11) DEFAULT NULL, `added_by` int(11) DEFAULT NULL, `date_added` datetime DEFAULT NULL, `status` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `lms2_lead_progress_description_fk0` (`lead_progress_type_id`), KEY `lms2_lead_progress_description_fk1` (`added_by`), CONSTRAINT `lms2_lead_progress_description_fk0` FOREIGN KEY (`lead_progress_type_id`) REFERENCES `lms2_lead_progress_type` (`id`), CONSTRAINT `lms2_lead_progress_description_fk1` FOREIGN KEY (`added_by`) REFERENCES `lms2_users` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lms2_lead_progress_description` -- LOCK TABLES `lms2_lead_progress_description` WRITE; /*!40000 ALTER TABLE `lms2_lead_progress_description` DISABLE KEYS */; INSERT INTO `lms2_lead_progress_description` VALUES (1,1,'NEW LEAD',1,NULL,'2021-09-16 03:39:23',1),(2,1,'FOR FOLLOW UP',2,NULL,'2021-09-16 03:39:23',1),(3,1,'TEST DRIVE',3,NULL,'2021-09-16 03:40:25',1),(4,2,'SUBMIT PROPOSAL',1,NULL,'2021-09-16 03:42:17',1),(5,2,'NEGOTIATION',2,NULL,'2021-09-16 03:42:17',1),(6,2,'SUBMIT APPLICATION',3,NULL,'2021-09-16 03:42:58',1),(7,3,'PAID RESERVATION',1,NULL,'2021-09-16 03:43:32',1),(8,3,'PAID DOWN PAYMENT',2,NULL,'2021-09-16 03:44:00',1),(9,3,'APPROVAL',3,NULL,'2021-09-16 03:44:44',1),(10,4,'CANCELLED',1,NULL,'2021-09-16 04:51:10',1),(11,4,'UNIT RELEASED',2,NULL,'2021-09-16 04:51:10',1); /*!40000 ALTER TABLE `lms2_lead_progress_description` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lms2_lead_progress_type` -- DROP TABLE IF EXISTS `lms2_lead_progress_type`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lms2_lead_progress_type` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT NULL, `level` int(11) DEFAULT NULL, `added_by` int(11) DEFAULT NULL, `date_added` datetime DEFAULT NULL, `status` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `lms2_lead_progress_type_fk0` (`added_by`), CONSTRAINT `lms2_lead_progress_type_fk0` FOREIGN KEY (`added_by`) REFERENCES `lms2_users` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lms2_lead_progress_type` -- LOCK TABLES `lms2_lead_progress_type` WRITE; /*!40000 ALTER TABLE `lms2_lead_progress_type` DISABLE KEYS */; INSERT INTO `lms2_lead_progress_type` VALUES (1,'COLD',1,NULL,'2021-09-16 03:33:27',1),(2,'WARM',2,NULL,'2021-09-16 03:33:40',1),(3,'HOT',3,NULL,'2021-09-16 03:34:05',1),(4,'CLOSED',4,NULL,'2021-09-16 03:34:26',1); /*!40000 ALTER TABLE `lms2_lead_progress_type` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lms2_lead_progress_type_html` -- DROP TABLE IF EXISTS `lms2_lead_progress_type_html`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lms2_lead_progress_type_html` ( `id` int(11) NOT NULL AUTO_INCREMENT, `lead_progress_type_id` int(11) DEFAULT NULL, `class` text DEFAULT NULL, `element_id` text DEFAULT NULL, `attribute` text DEFAULT NULL, PRIMARY KEY (`id`), KEY `lms2_lead_progress_type_html_fk0` (`lead_progress_type_id`), CONSTRAINT `lms2_lead_progress_type_html_fk0` FOREIGN KEY (`lead_progress_type_id`) REFERENCES `lms2_lead_progress_type` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lms2_lead_progress_type_html` -- LOCK TABLES `lms2_lead_progress_type_html` WRITE; /*!40000 ALTER TABLE `lms2_lead_progress_type_html` DISABLE KEYS */; INSERT INTO `lms2_lead_progress_type_html` VALUES (1,1,'{\"badge\":[\"badge-primary\",\"test22\"],\"text\":[\"text-primary\",\"test22\"]}',NULL,NULL),(2,4,'{\"badge\":[\"badge-success\",\"test22\"],\"text\":[\"text-success\",\"test22\"]}',NULL,NULL),(3,3,'{\"badge\":[\"badge-danger\",\"test22\"],\"text\":[\"text-danger\",\"test22\"]}',NULL,NULL),(4,2,'{\"badge\":[\"badge-warning\",\"test22\"],\"text\":[\"text-warning\",\"test22\"]}',NULL,NULL); /*!40000 ALTER TABLE `lms2_lead_progress_type_html` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lms2_lead_qr` -- DROP TABLE IF EXISTS `lms2_lead_qr`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lms2_lead_qr` ( `id` int(11) NOT NULL AUTO_INCREMENT, `lead_id` int(11) DEFAULT NULL, `code` int(11) DEFAULT NULL, `status` int(11) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lms2_lead_qr` -- LOCK TABLES `lms2_lead_qr` WRITE; /*!40000 ALTER TABLE `lms2_lead_qr` DISABLE KEYS */; /*!40000 ALTER TABLE `lms2_lead_qr` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lms2_lead_sms_histories` -- DROP TABLE IF EXISTS `lms2_lead_sms_histories`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lms2_lead_sms_histories` ( `id` int(11) NOT NULL AUTO_INCREMENT, `inquire_id` int(11) DEFAULT NULL, `description` text DEFAULT NULL, `added_by` int(11) DEFAULT NULL, `date_added` datetime DEFAULT NULL, `status` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `lms2_lead_sms_fk0` (`inquire_id`), KEY `lms2_lead_sms_fk1` (`added_by`), CONSTRAINT `lms2_lead_sms_fk0` FOREIGN KEY (`inquire_id`) REFERENCES `lms2_lead_inquiries` (`id`), CONSTRAINT `lms2_lead_sms_fk1` FOREIGN KEY (`added_by`) REFERENCES `lms2_users` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lms2_lead_sms_histories` -- LOCK TABLES `lms2_lead_sms_histories` WRITE; /*!40000 ALTER TABLE `lms2_lead_sms_histories` DISABLE KEYS */; INSERT INTO `lms2_lead_sms_histories` VALUES (1,81,'testdf',11,'2021-10-13 11:06:02',1),(2,81,'fdgddfhgfh',11,'2021-10-13 11:08:17',1),(3,81,'sdfdsfds',11,'2021-10-13 11:17:12',1),(4,80,'test 2',11,'2021-10-13 13:16:39',1),(5,80,'test\n3',11,'2021-10-13 13:16:57',1),(6,81,'dsfsdfsdf',11,'2021-10-13 16:34:09',1),(7,81,'[lastname]',11,'2021-10-14 10:24:17',1),(8,80,'[lastname] [middlename] test',11,'2021-10-14 10:24:54',1),(9,80,'Hi! Welcome CLARENCE',11,'2021-10-14 10:35:48',1),(10,80,'Hello CLARENCE ANDAYA',11,'2021-10-16 11:30:53',1),(11,88,'SDFASDFDS',11,'2021-11-04 14:34:39',1),(12,88,'adasdsad',11,'2021-11-04 15:42:58',1); /*!40000 ALTER TABLE `lms2_lead_sms_histories` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lms2_lead_types` -- DROP TABLE IF EXISTS `lms2_lead_types`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lms2_lead_types` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT NULL, `status` int(11) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lms2_lead_types` -- LOCK TABLES `lms2_lead_types` WRITE; /*!40000 ALTER TABLE `lms2_lead_types` DISABLE KEYS */; INSERT INTO `lms2_lead_types` VALUES (1,'PERSON',1),(2,'COMPANY',1); /*!40000 ALTER TABLE `lms2_lead_types` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lms2_leads` -- DROP TABLE IF EXISTS `lms2_leads`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lms2_leads` ( `id` int(11) NOT NULL AUTO_INCREMENT, `corporation_name` varchar(255) DEFAULT NULL, `firstname` varchar(255) DEFAULT NULL, `middlename` varchar(255) DEFAULT NULL, `lastname` varchar(255) DEFAULT NULL, `gender_id` int(11) DEFAULT NULL, `type_id` int(11) DEFAULT NULL, `source_id` int(11) NOT NULL COMMENT '0: original leads \r\n1: lead added from textfield', `status` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `lms2_leads_fk0` (`gender_id`), KEY `lms2_leads_fk1` (`type_id`), CONSTRAINT `lms2_leads_fk0` FOREIGN KEY (`gender_id`) REFERENCES `lms2_gender` (`id`), CONSTRAINT `lms2_leads_fk1` FOREIGN KEY (`type_id`) REFERENCES `lms2_lead_types` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=114 DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lms2_leads` -- LOCK TABLES `lms2_leads` WRITE; /*!40000 ALTER TABLE `lms2_leads` DISABLE KEYS */; INSERT INTO `lms2_leads` VALUES (101,NULL,'CLARENCE','ACEDERA','ANDAYA',2,1,0,1),(102,'AUTOHUB',NULL,NULL,NULL,NULL,2,1,1),(103,'COMPANY TEST',NULL,NULL,NULL,NULL,2,0,1),(104,'SADSA',NULL,NULL,NULL,NULL,2,0,1),(105,NULL,'SDF','SDF','SDF',1,1,0,1),(106,'BYTEHAX',NULL,NULL,NULL,NULL,2,1,1),(107,'BYTEHAX',NULL,NULL,NULL,NULL,2,0,1),(108,'ASA',NULL,NULL,NULL,NULL,2,0,1),(109,NULL,'ASAS','ASASA','ASASASAS',2,1,0,1),(110,NULL,'SDAF','SDF','SDAF',1,1,0,1),(111,'SADF',NULL,NULL,NULL,NULL,2,1,1),(112,NULL,'SADF','SDFSDF','SDFASDFDS',1,1,0,1),(113,'SDFSADF',NULL,NULL,NULL,NULL,2,1,1); /*!40000 ALTER TABLE `lms2_leads` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lms2_menus` -- DROP TABLE IF EXISTS `lms2_menus`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lms2_menus` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT NULL, `element_id` varchar(255) DEFAULT NULL, `status` int(11) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lms2_menus` -- LOCK TABLES `lms2_menus` WRITE; /*!40000 ALTER TABLE `lms2_menus` DISABLE KEYS */; /*!40000 ALTER TABLE `lms2_menus` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lms2_notification_list` -- DROP TABLE IF EXISTS `lms2_notification_list`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lms2_notification_list` ( `id` int(11) NOT NULL AUTO_INCREMENT, `notification_type_id` int(11) DEFAULT NULL, `from_user` int(11) DEFAULT NULL, `to_user` int(11) DEFAULT NULL, `target_id` int(11) DEFAULT NULL, `description` varchar(255) DEFAULT NULL, `date_added` datetime DEFAULT NULL, `is_read` int(11) DEFAULT NULL, `status` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `lms2_notification_list_fk0` (`notification_type_id`), KEY `lms2_notification_list_fk1` (`from_user`), KEY `lms2_notification_list_fk2` (`to_user`), KEY `target_id` (`target_id`), CONSTRAINT `lms2_notification_list_fk0` FOREIGN KEY (`notification_type_id`) REFERENCES `lms2_notification_type` (`id`), CONSTRAINT `lms2_notification_list_fk1` FOREIGN KEY (`from_user`) REFERENCES `lms2_users` (`id`), CONSTRAINT `lms2_notification_list_fk2` FOREIGN KEY (`to_user`) REFERENCES `lms2_users` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=36 DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lms2_notification_list` -- LOCK TABLES `lms2_notification_list` WRITE; /*!40000 ALTER TABLE `lms2_notification_list` DISABLE KEYS */; INSERT INTO `lms2_notification_list` VALUES (27,2,11,13,88,'[from] change status of [target] to COLD.','2021-11-04 20:57:41',0,1),(28,2,11,13,88,'[from] change status of [target] to WARM.','2021-11-04 21:04:33',0,1),(29,2,11,13,88,'[from] change status of [target] to WARM.','2021-11-04 21:09:40',0,1),(30,2,11,13,88,'[from] change status of [target] to WARM.','2021-11-04 21:10:00',0,1),(31,2,11,13,88,'[from] change status of [target] to COLD.','2021-11-04 21:10:10',0,1),(32,2,11,13,88,'[from] change status of [target] to TEST DRIVE.','2021-11-04 21:10:45',0,1),(33,2,11,13,88,'[from] change status of [target] to SUBMIT APPLICATION.','2021-11-04 21:11:19',0,1),(34,1,11,13,88,'[from] call [target].','2021-11-04 21:12:51',0,1),(35,1,11,13,88,'[from] added a note to [target].','2021-11-04 21:17:26',0,1); /*!40000 ALTER TABLE `lms2_notification_list` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lms2_notification_type` -- DROP TABLE IF EXISTS `lms2_notification_type`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lms2_notification_type` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lms2_notification_type` -- LOCK TABLES `lms2_notification_type` WRITE; /*!40000 ALTER TABLE `lms2_notification_type` DISABLE KEYS */; INSERT INTO `lms2_notification_type` VALUES (1,'Lead New Action Added'),(2,'Lead Status Changed'); /*!40000 ALTER TABLE `lms2_notification_type` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lms2_positions` -- DROP TABLE IF EXISTS `lms2_positions`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lms2_positions` ( `id` int(11) NOT NULL AUTO_INCREMENT, `department_id` int(11) DEFAULT NULL, `name` varchar(255) DEFAULT NULL, `code` varchar(255) DEFAULT NULL, `added_by` int(11) DEFAULT NULL, `date_added` datetime DEFAULT NULL, `status` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `lms2_positions_fk0` (`department_id`), KEY `lms2_positions_fk1` (`added_by`), CONSTRAINT `lms2_positions_fk0` FOREIGN KEY (`department_id`) REFERENCES `lms2_departments` (`id`), CONSTRAINT `lms2_positions_fk1` FOREIGN KEY (`added_by`) REFERENCES `lms2_users` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lms2_positions` -- LOCK TABLES `lms2_positions` WRITE; /*!40000 ALTER TABLE `lms2_positions` DISABLE KEYS */; INSERT INTO `lms2_positions` VALUES (1,NULL,'GM','GM',NULL,NULL,1),(2,NULL,'GSM','GSM',NULL,NULL,1),(3,NULL,'SM','SM',NULL,NULL,1),(4,NULL,'SC','SC',NULL,NULL,1); /*!40000 ALTER TABLE `lms2_positions` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lms2_role_access` -- DROP TABLE IF EXISTS `lms2_role_access`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lms2_role_access` ( `id` int(11) NOT NULL AUTO_INCREMENT, `role_id` int(11) DEFAULT NULL, `json_dealers` text DEFAULT NULL, `json_menus` text DEFAULT NULL COMMENT 'ra = role access\r\nequivalent id in role_modal.php with id ra_[id] ', PRIMARY KEY (`id`), KEY `lms2_role_access_fk0` (`role_id`), CONSTRAINT `lms2_role_access_fk0` FOREIGN KEY (`role_id`) REFERENCES `lms2_roles` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=164 DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lms2_role_access` -- LOCK TABLES `lms2_role_access` WRITE; /*!40000 ALTER TABLE `lms2_role_access` DISABLE KEYS */; INSERT INTO `lms2_role_access` VALUES (114,115,'[1,2,3]','[2,3,1]'),(119,120,'[]','[]'),(121,122,'[]','[]'),(123,124,'[]','[]'),(124,125,'[]','[]'),(129,130,'[]','[]'),(153,154,'[]','[]'),(154,155,'[]','[2]'),(156,157,'[1]','[2,3,1]'),(157,158,'[]','[2,3,1]'),(162,163,'[]','[2]'); /*!40000 ALTER TABLE `lms2_role_access` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lms2_roles` -- DROP TABLE IF EXISTS `lms2_roles`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lms2_roles` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT NULL, `added_by` int(11) DEFAULT NULL, `date_added` datetime DEFAULT NULL, `status` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `lms2_roles_fk0` (`added_by`), CONSTRAINT `lms2_roles_fk0` FOREIGN KEY (`added_by`) REFERENCES `lms2_users` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=165 DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lms2_roles` -- LOCK TABLES `lms2_roles` WRITE; /*!40000 ALTER TABLE `lms2_roles` DISABLE KEYS */; INSERT INTO `lms2_roles` VALUES (115,'TEST',11,'2021-11-04 10:29:00',1),(120,'TEST 2',10,'2021-09-20 14:24:33',0),(122,'TEDST 3',10,'2021-09-20 14:25:20',0),(124,NULL,10,'2021-09-20 15:23:42',0),(125,NULL,10,'2021-09-20 15:24:05',0),(130,'SDFD',10,'2021-09-21 11:29:42',0),(154,NULL,11,'2021-10-23 15:39:32',0),(155,'ASD',11,'2021-11-03 14:28:54',1),(157,'TESTSS',11,'2021-11-03 11:48:02',1),(158,'SDFS',11,'2021-11-03 14:25:00',1),(163,'ASDSA',11,'2021-11-03 14:29:12',1); /*!40000 ALTER TABLE `lms2_roles` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lms2_user_accounts` -- DROP TABLE IF EXISTS `lms2_user_accounts`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lms2_user_accounts` ( `id` int(11) NOT NULL AUTO_INCREMENT, `user_id` int(11) DEFAULT NULL, `role_id` int(11) DEFAULT NULL, `username` varchar(255) DEFAULT NULL, `password` varchar(255) DEFAULT NULL, `login_token` varchar(255) DEFAULT NULL, `login_ip` varchar(255) DEFAULT NULL, `is_active_account` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `lms2_user_accounts_fk0` (`user_id`), KEY `lms2_user_accounts_fk1` (`role_id`), CONSTRAINT `lms2_user_accounts_fk0` FOREIGN KEY (`user_id`) REFERENCES `lms2_users` (`id`), CONSTRAINT `lms2_user_accounts_fk1` FOREIGN KEY (`role_id`) REFERENCES `lms2_roles` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lms2_user_accounts` -- LOCK TABLES `lms2_user_accounts` WRITE; /*!40000 ALTER TABLE `lms2_user_accounts` DISABLE KEYS */; INSERT INTO `lms2_user_accounts` VALUES (11,10,115,'111111','$2y$10$Bu/Uhn2hvOuANfYWFGq7F.AljHEsBMzK2HyV7fgIkysM9jv6lq2yK',NULL,NULL,1),(12,11,115,'1','$2y$10$qiWtgjgBBvJsGyOGuSG9U.ib7WHso7WYwWM1EuY1LmbF1WOId1L1y',NULL,NULL,1),(13,12,NULL,'ASD','$2y$10$z6btnt5cbjNTbzsLR3qY4uYuMcML280Hblw4klS5T13.zBFo7hmpi',NULL,NULL,1),(14,13,NULL,'GM123','$2y$10$H1xsD7SAvLxt5Mmnz/Alh.zuuLpGNId04Onyy4N8tB2mbPc1Xtr9u',NULL,NULL,1); /*!40000 ALTER TABLE `lms2_user_accounts` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lms2_user_contacts` -- DROP TABLE IF EXISTS `lms2_user_contacts`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lms2_user_contacts` ( `id` int(11) NOT NULL AUTO_INCREMENT, `user_id` int(11) DEFAULT NULL, `mobile` varchar(255) DEFAULT NULL, `email` varchar(255) DEFAULT NULL, `address` varchar(255) DEFAULT NULL, `city_id` int(11) DEFAULT NULL, `facebook` varchar(255) DEFAULT NULL, `instagram` varchar(255) DEFAULT NULL, `whatsapp` varchar(255) DEFAULT NULL, `viber` varchar(255) DEFAULT NULL, `linkedin` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`), KEY `lms2_user_contacts_fk0` (`user_id`), CONSTRAINT `lms2_user_contacts_fk0` FOREIGN KEY (`user_id`) REFERENCES `lms2_users` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lms2_user_contacts` -- LOCK TABLES `lms2_user_contacts` WRITE; /*!40000 ALTER TABLE `lms2_user_contacts` DISABLE KEYS */; INSERT INTO `lms2_user_contacts` VALUES (9,10,'9389592854','143CLARKZ@GMAIL.COM',NULL,NULL,NULL,NULL,NULL,NULL,NULL),(10,11,'9123456789','candaya@autohubgroup.com',NULL,NULL,NULL,NULL,NULL,NULL,NULL),(11,12,'9876567877','ASDSAJBDSAJ@JWNSDJS.COM',NULL,NULL,NULL,NULL,NULL,NULL,NULL),(12,13,'9123456788','GM@EMAIL.COM',NULL,NULL,NULL,NULL,NULL,NULL,NULL); /*!40000 ALTER TABLE `lms2_user_contacts` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lms2_user_menu_states` -- DROP TABLE IF EXISTS `lms2_user_menu_states`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lms2_user_menu_states` ( `id` int(11) NOT NULL AUTO_INCREMENT, `user_id` int(11) DEFAULT NULL, `menu_id` int(11) DEFAULT NULL, `status` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `lms2_user_menu_states_fk0` (`user_id`), KEY `lms2_user_menu_states_fk1` (`menu_id`), CONSTRAINT `lms2_user_menu_states_fk0` FOREIGN KEY (`user_id`) REFERENCES `lms2_users` (`id`), CONSTRAINT `lms2_user_menu_states_fk1` FOREIGN KEY (`menu_id`) REFERENCES `lms2_menus` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lms2_user_menu_states` -- LOCK TABLES `lms2_user_menu_states` WRITE; /*!40000 ALTER TABLE `lms2_user_menu_states` DISABLE KEYS */; /*!40000 ALTER TABLE `lms2_user_menu_states` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lms2_users` -- DROP TABLE IF EXISTS `lms2_users`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lms2_users` ( `id` int(11) NOT NULL AUTO_INCREMENT, `default_dealer_id` int(11) DEFAULT NULL, `default_position_id` int(11) DEFAULT NULL, `gender_id` int(11) DEFAULT NULL, `id_number` varchar(255) DEFAULT NULL, `firstname` varchar(255) DEFAULT NULL, `middlename` varchar(255) DEFAULT NULL, `lastname` varchar(255) DEFAULT NULL, `birthday` date DEFAULT NULL, `avatar` varchar(255) DEFAULT NULL, `date_added` datetime DEFAULT NULL, `status` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `lms2_user_fk2` (`gender_id`), KEY `lms2_user_fk0` (`default_dealer_id`), KEY `lms2_user_fk1` (`default_position_id`), CONSTRAINT `lms2_user_fk0` FOREIGN KEY (`default_dealer_id`) REFERENCES `lms2_dealers` (`id`), CONSTRAINT `lms2_user_fk1` FOREIGN KEY (`default_position_id`) REFERENCES `lms2_positions` (`id`), CONSTRAINT `lms2_user_fk2` FOREIGN KEY (`gender_id`) REFERENCES `lms2_gender` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lms2_users` -- LOCK TABLES `lms2_users` WRITE; /*!40000 ALTER TABLE `lms2_users` DISABLE KEYS */; INSERT INTO `lms2_users` VALUES (10,1,NULL,NULL,'111111','CLARENCE',NULL,'ANDAYA',NULL,NULL,'2021-09-18 16:28:38',1),(11,7,NULL,NULL,'1','ADMIN',NULL,'ACCOUNT',NULL,NULL,'2021-10-12 14:33:18',1),(12,2,NULL,NULL,'ASD','ASD',NULL,'ASD',NULL,NULL,'2021-10-22 22:58:42',1),(13,2,1,NULL,'GM123','GM',NULL,'ACCOUNT',NULL,NULL,'2021-10-29 10:24:08',1); /*!40000 ALTER TABLE `lms2_users` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lms2_vehicle_brands` -- DROP TABLE IF EXISTS `lms2_vehicle_brands`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lms2_vehicle_brands` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT NULL, `logo` varchar(255) DEFAULT NULL, `added_by` int(11) DEFAULT NULL, `date_added` datetime DEFAULT NULL, `status` int(11) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`), KEY `lms2_vehicle_brands_fk0` (`added_by`), CONSTRAINT `lms2_vehicle_brands_fk0` FOREIGN KEY (`added_by`) REFERENCES `lms2_users` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lms2_vehicle_brands` -- LOCK TABLES `lms2_vehicle_brands` WRITE; /*!40000 ALTER TABLE `lms2_vehicle_brands` DISABLE KEYS */; INSERT INTO `lms2_vehicle_brands` VALUES (2,'FORD',NULL,NULL,'2021-09-14 04:47:33',1); /*!40000 ALTER TABLE `lms2_vehicle_brands` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lms2_vehicle_colors` -- DROP TABLE IF EXISTS `lms2_vehicle_colors`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lms2_vehicle_colors` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT NULL, `added_by` int(11) DEFAULT NULL, `date_added` datetime DEFAULT NULL, `status` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `lms2_vehicle_colors_fk0` (`added_by`), CONSTRAINT `lms2_vehicle_colors_fk0` FOREIGN KEY (`added_by`) REFERENCES `lms2_users` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lms2_vehicle_colors` -- LOCK TABLES `lms2_vehicle_colors` WRITE; /*!40000 ALTER TABLE `lms2_vehicle_colors` DISABLE KEYS */; INSERT INTO `lms2_vehicle_colors` VALUES (1,'RED',NULL,'2021-09-14 05:39:06',1),(2,'BLUE',NULL,'2021-09-14 05:39:22',1),(3,'GREEN',NULL,'2021-09-14 05:39:45',1),(4,'PINK',NULL,'2021-09-14 05:40:13',1),(5,'VIOLET',NULL,'2021-09-14 05:40:13',1); /*!40000 ALTER TABLE `lms2_vehicle_colors` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `lms2_vehicle_models` -- DROP TABLE IF EXISTS `lms2_vehicle_models`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lms2_vehicle_models` ( `id` int(11) NOT NULL AUTO_INCREMENT, `brand_id` int(11) DEFAULT NULL, `name` varchar(255) DEFAULT NULL, `added_by` int(11) DEFAULT NULL, `date_added` datetime DEFAULT NULL, `status` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `lms2_vehicle_models_fk0` (`brand_id`), KEY `lms2_vehicle_models_fk1` (`added_by`), CONSTRAINT `lms2_vehicle_models_fk0` FOREIGN KEY (`brand_id`) REFERENCES `lms2_vehicle_brands` (`id`), CONSTRAINT `lms2_vehicle_models_fk1` FOREIGN KEY (`added_by`) REFERENCES `lms2_users` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lms2_vehicle_models` -- LOCK TABLES `lms2_vehicle_models` WRITE; /*!40000 ALTER TABLE `lms2_vehicle_models` DISABLE KEYS */; INSERT INTO `lms2_vehicle_models` VALUES (1,2,'RANGER',NULL,'2021-09-14 04:51:17',1),(4,2,'sds',NULL,NULL,1),(5,2,'2342',NULL,NULL,1); /*!40000 ALTER TABLE `lms2_vehicle_models` ENABLE KEYS */; UNLOCK TABLES; -- -- Temporary table structure for view `lms2_view_lead_all_activities` -- DROP TABLE IF EXISTS `lms2_view_lead_all_activities`; /*!50001 DROP VIEW IF EXISTS `lms2_view_lead_all_activities`*/; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; /*!50001 CREATE TABLE `lms2_view_lead_all_activities` ( `activity_type_id` tinyint NOT NULL, `inquire_id` tinyint NOT NULL, `description` tinyint NOT NULL, `firstname` tinyint NOT NULL, `lastname` tinyint NOT NULL, `date_added` tinyint NOT NULL, `progress` tinyint NOT NULL, `type` tinyint NOT NULL, `identification` tinyint NOT NULL ) ENGINE=MyISAM */; SET character_set_client = @saved_cs_client; -- -- Table structure for table `lms_cnf_system` -- DROP TABLE IF EXISTS `lms_cnf_system`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `lms_cnf_system` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT NULL, `value` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `lms_cnf_system` -- LOCK TABLES `lms_cnf_system` WRITE; /*!40000 ALTER TABLE `lms_cnf_system` DISABLE KEYS */; INSERT INTO `lms_cnf_system` VALUES (1,'url','http://127.0.0.1/AutoHub-CRM/lms/'),(2,'maintenance',NULL),(3,'name','CRM'); /*!40000 ALTER TABLE `lms_cnf_system` ENABLE KEYS */; UNLOCK TABLES; -- -- Final view structure for view `lms2_view_lead_all_activities` -- /*!50001 DROP TABLE IF EXISTS `lms2_view_lead_all_activities`*/; /*!50001 DROP VIEW IF EXISTS `lms2_view_lead_all_activities`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8mb4 */; /*!50001 SET character_set_results = utf8mb4 */; /*!50001 SET collation_connection = utf8mb4_unicode_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `lms2_view_lead_all_activities` AS select `t1`.`id` AS `activity_type_id`,`t1`.`inquire_id` AS `inquire_id`,`t1`.`description` AS `description`,`t1`.`firstname` AS `firstname`,`t1`.`lastname` AS `lastname`,`t1`.`date_added` AS `date_added`,concat(date_format(`t1`.`date_added`,'%Y-%m-%d'),' - ',`t1`.`description`) AS `progress`,`t1`.`type` AS `type`,`t1`.`identification` AS `identification` from ((select `la`.`id` AS `id`,`la`.`inquire_id` AS `inquire_id`,`lpd`.`name` AS `description`,`u`.`firstname` AS `firstname`,`u`.`lastname` AS `lastname`,`la`.`date_added` AS `date_added`,'Progress' AS `type`,'progress' AS `identification` from ((`crm`.`lms2_lead_activities` `la` join `crm`.`lms2_lead_progress_description` `lpd` on(`la`.`activity_description_id` = `lpd`.`id`)) join `crm`.`lms2_users` `u` on(`la`.`added_by` = `u`.`id`)) where 1 and `la`.`status` = 1) union all (select `n`.`id` AS `id`,`n`.`inquire_id` AS `inquire_id`,'Add note' AS `description`,`u`.`firstname` AS `firstname`,`u`.`lastname` AS `lastname`,`n`.`date_added` AS `date_added`,'Notes' AS `type`,'note' AS `identification` from (`crm`.`lms2_lead_notes` `n` join `crm`.`lms2_users` `u` on(`n`.`added_by` = `u`.`id`)) where 1 and `n`.`status` = 1) union all (select `ch`.`id` AS `id`,`ch`.`inquire_id` AS `inquire_id`,'Call a client' AS `description`,`u`.`firstname` AS `firstname`,`u`.`lastname` AS `lastname`,`ch`.`date_added` AS `date_added`,'Action' AS `type`,'call' AS `identification` from (`crm`.`lms2_lead_call_histories` `ch` join `crm`.`lms2_users` `u` on(`ch`.`added_by` = `u`.`id`)) where 1 and `ch`.`status` = 1) union all (select `sh`.`id` AS `id`,`sh`.`inquire_id` AS `inquire_id`,'Text a client' AS `description`,`u`.`firstname` AS `firstname`,`u`.`lastname` AS `lastname`,`sh`.`date_added` AS `date_added`,'Action' AS `type`,'sms' AS `identification` from (`crm`.`lms2_lead_sms_histories` `sh` join `crm`.`lms2_users` `u` on(`sh`.`added_by` = `u`.`id`)) where 1 and `sh`.`status` = 1) union all (select `eh`.`id` AS `id`,`eh`.`inquire_id` AS `inquire_id`,'Email a client' AS `description`,`u`.`firstname` AS `firstname`,`u`.`lastname` AS `lastname`,`eh`.`date_added` AS `date_added`,'Action' AS `type`,'email' AS `identification` from (`crm`.`lms2_lead_email_histories` `eh` join `crm`.`lms2_users` `u` on(`eh`.`added_by` = `u`.`id`)) where 1 and `eh`.`status` = 1) union all (select `it`.`id` AS `id`,`it`.`inquire_id` AS `inquire_id`,'Tag client as inactive' AS `description`,`u`.`firstname` AS `firstname`,`u`.`lastname` AS `lastname`,`it`.`date_added` AS `date_added`,'Action' AS `type`,'inactive' AS `identification` from (`crm`.`lms2_lead_inactive_tags` `it` join `crm`.`lms2_users` `u` on(`it`.`added_by` = `u`.`id`)) where 1 and `it`.`status` = 1)) `t1` where 1 order by `t1`.`date_added` desc */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; -- Dump completed on 2021-11-05 16:41:00