-- 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
Text
lorem ipsum
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
test
',11,'2021-10-15 16:21:41',1),(23,80,'My Important Test Email','Test All html elements mail 1 2 dsdfsd vxvcvxvxc
ACEDERAANDAYACLARENCE ANDAYACLARENCE
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
lorem
ipsum
dolor
amet
lorem
ipsum
dolor
amet
lorem
ipsum
dolor
amet
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\":\"0\"},{\"alert_activity\":\"0\"}]',10,'2021-10-28 16:48:43',NULL,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=59 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); /*!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=23 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 (19,1,11,13,88,'[from] call [target].','2021-11-04 15:46:02',0,1),(20,1,11,13,88,'[from] added a note to [target].','2021-11-04 16:06:22',0,1),(21,1,11,13,88,'[from] change status of [target] to %s.','2021-11-04 16:07:28',0,1),(22,1,11,13,88,'[from] change status of [target] to COLD.','2021-11-04 16:07:52',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-04 16:56:49