daily commit
Showing
application/models/Vehicle_model.php
0 → 100644
-- phpMyAdmin SQL Dump | -- phpMyAdmin SQL Dump | ||
-- version 4.8.3 | -- version 4.7.9 | ||
-- https://www.phpmyadmin.net/ | -- https://www.phpmyadmin.net/ | ||
-- | -- | ||
-- Host: db | -- Host: 127.0.0.1:3306 | ||
-- Generation Time: Dec 15, 2018 at 12:21 PM | -- Generation Time: Dec 16, 2018 at 04:01 PM | ||
-- Server version: 5.6.41 | -- Server version: 5.7.21 | ||
-- PHP Version: 7.2.8 | -- PHP Version: 5.6.35 | ||
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; | SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; | ||
SET AUTOCOMMIT = 0; | SET AUTOCOMMIT = 0; | ||
... | @@ -28,15 +28,17 @@ SET time_zone = "+00:00"; | ... | @@ -28,15 +28,17 @@ SET time_zone = "+00:00"; |
-- Table structure for table `admin_users` | -- Table structure for table `admin_users` | ||
-- | -- | ||
CREATE TABLE `admin_users` ( | DROP TABLE IF EXISTS `admin_users`; | ||
`id` int(11) NOT NULL, | CREATE TABLE IF NOT EXISTS `admin_users` ( | ||
`id` int(11) NOT NULL AUTO_INCREMENT, | |||
`username` varchar(100) NOT NULL, | `username` varchar(100) NOT NULL, | ||
`password` varchar(100) NOT NULL, | `password` varchar(100) NOT NULL, | ||
`user_type` tinyint(3) NOT NULL COMMENT '1 => Super Admin, 2 => Mechanic', | `user_type` tinyint(3) NOT NULL COMMENT '1 => Super Admin, 2 => Mechanic', | ||
`display_name` varchar(200) NOT NULL, | `display_name` varchar(200) NOT NULL, | ||
`profile_image` varchar(500) NOT NULL, | `profile_image` varchar(500) NOT NULL, | ||
`status` tinyint(4) NOT NULL DEFAULT '1' | `status` tinyint(4) NOT NULL DEFAULT '1', | ||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; | PRIMARY KEY (`id`) | ||
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=latin1; | |||
-- | -- | ||
-- Dumping data for table `admin_users` | -- Dumping data for table `admin_users` | ||
... | @@ -54,8 +56,9 @@ INSERT INTO `admin_users` (`id`, `username`, `password`, `user_type`, `display_n | ... | @@ -54,8 +56,9 @@ INSERT INTO `admin_users` (`id`, `username`, `password`, `user_type`, `display_n |
-- Table structure for table `customers` | -- Table structure for table `customers` | ||
-- | -- | ||
CREATE TABLE `customers` ( | DROP TABLE IF EXISTS `customers`; | ||
`customer_id` int(20) NOT NULL, | CREATE TABLE IF NOT EXISTS `customers` ( | ||
`customer_id` int(20) NOT NULL AUTO_INCREMENT, | |||
`first_name` varchar(50) NOT NULL, | `first_name` varchar(50) NOT NULL, | ||
`last_name` varchar(50) NOT NULL, | `last_name` varchar(50) NOT NULL, | ||
`phone` varchar(20) DEFAULT NULL, | `phone` varchar(20) DEFAULT NULL, | ||
... | @@ -64,8 +67,9 @@ CREATE TABLE `customers` ( | ... | @@ -64,8 +67,9 @@ CREATE TABLE `customers` ( |
`profile_image` varchar(500) DEFAULT NULL, | `profile_image` varchar(500) DEFAULT NULL, | ||
`password` varchar(50) DEFAULT NULL, | `password` varchar(50) DEFAULT NULL, | ||
`date_of_birth` varchar(200) DEFAULT NULL, | `date_of_birth` varchar(200) DEFAULT NULL, | ||
`status` tinyint(3) NOT NULL DEFAULT '1' | `status` tinyint(3) NOT NULL DEFAULT '1', | ||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; | PRIMARY KEY (`customer_id`) | ||
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1; | |||
-- | -- | ||
-- Dumping data for table `customers` | -- Dumping data for table `customers` | ||
... | @@ -77,14 +81,57 @@ INSERT INTO `customers` (`customer_id`, `first_name`, `last_name`, `phone`, `ema | ... | @@ -77,14 +81,57 @@ INSERT INTO `customers` (`customer_id`, `first_name`, `last_name`, `phone`, `ema |
-- -------------------------------------------------------- | -- -------------------------------------------------------- | ||
-- | -- | ||
-- Table structure for table `customer_vehicle` | |||
-- | |||
DROP TABLE IF EXISTS `customer_vehicle`; | |||
CREATE TABLE IF NOT EXISTS `customer_vehicle` ( | |||
`customer_veh_id` int(11) NOT NULL AUTO_INCREMENT, | |||
`customer_id` int(11) DEFAULT NULL, | |||
`car_name` varchar(250) DEFAULT NULL, | |||
`car_model` varchar(150) DEFAULT NULL, | |||
`car_maker` varchar(150) DEFAULT NULL, | |||
`car_model_year` varchar(150) DEFAULT NULL, | |||
`car_vin` varchar(150) DEFAULT NULL, | |||
`vehicle_data` longtext, | |||
`car_location` varchar(250) DEFAULT NULL, | |||
`car_loc_lat` varchar(150) DEFAULT NULL, | |||
`car_loc_lng` varchar(150) DEFAULT NULL, | |||
`created_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, | |||
`status` tinyint(3) NOT NULL DEFAULT '3', | |||
PRIMARY KEY (`customer_veh_id`) | |||
) ENGINE=MyISAM AUTO_INCREMENT=25 DEFAULT CHARSET=latin1; | |||
-- | |||
-- Dumping data for table `customer_vehicle` | |||
-- | |||
INSERT INTO `customer_vehicle` (`customer_veh_id`, `customer_id`, `car_name`, `car_model`, `car_maker`, `car_model_year`, `car_vin`, `vehicle_data`, `car_location`, `car_loc_lat`, `car_loc_lng`, `created_date`, `status`) VALUES | |||
(11, NULL, '2008 Hyundai Sonata GLS', 'sonata', 'hyundai', '2008', NULL, '{\"vehicle\":\"2008 Hyundai Sonata GLS\",\"attributes\":{\"Year\":\"2008\",\"Make\":\"Hyundai\",\"Model\":\"Sonata\",\"Trim\":\"GLS\",\"Short Trim\":\"GLS\",\"Trim Variations\":\"GLS\",\"Made In\":\"United States\",\"Vehicle Style\":\"Sedan (4-Door)\",\"Vehicle Type\":\"Car\",\"Vehicle Size\":\"Midsize\",\"Vehicle Category\":\"Large Cars\",\"Doors\":\"4\",\"Fuel Type\":\"Regular Unleaded\",\"Fuel Capacity\":\"17.7 gallon\",\"City Mileage\":\"21 miles\\/gallon\",\"Highway Mileage\":\"30 - 31 miles\\/gallon\",\"Engine\":\"2.4L L4 DOHC 16V\",\"Engine Size\":\"2.4\",\"Engine Cylinders\":\"4\",\"Transmission Type\":\"Automatic\",\"Transmission Gears\":\"4\",\"Driven Wheels\":\"Front Wheel Drive\",\"Anti-Brake System\":\"4-Wheel ABS\",\"Steering Type\":\"R&P\",\"Curb Weight\":\"3266\",\"Gross Weight\":\"\",\"Overall Height\":\"58.00 inches\",\"Overall Length\":\"188.90 inches\",\"Overall Width\":\"72.10 inches\",\"Standard Seating\":\"5\",\"Optional Seating\":\"\",\"Invoice Price\":\"$18,083\",\"Delivery Charges\":\"$675\",\"MSRP\":\"$18,870\"},\"success\":true,\"error\":\"\"}', 'DFW International Airport (DFW), Aviation Drive, DFW Airport, TX, USA', '32.8555236', '-97.03887', '2018-12-16 13:56:12', 3), | |||
(14, NULL, '2018 Hyundai Sonata Sport', 'sonata', 'hyundai', '2018', NULL, '{\"vehicle\":\"2018 Hyundai Sonata Sport\",\"attributes\":{\"Year\":\"2018\",\"Make\":\"Hyundai\",\"Model\":\"Sonata\",\"Trim\":\"Sport\",\"Short Trim\":\"SEL\",\"Trim Variations\":\"SEL \\/ Limited SULEV \\/ Sport \\/ Limited \\/ SEL SULEV\",\"Made In\":\"United States\",\"Vehicle Style\":\"Sedan (4-Door)\",\"Vehicle Type\":\"Passenger Car\",\"Vehicle Size\":\"\",\"Vehicle Category\":\"\",\"Doors\":\"4\",\"Fuel Type\":\"Gasoline\",\"Fuel Capacity\":\"\",\"City Mileage\":\"\",\"Highway Mileage\":\"\",\"Engine\":\"GDI THETA-II\",\"Engine Size\":\"2.4\",\"Engine Cylinders\":\"4\",\"Transmission Type\":\"\",\"Transmission Gears\":\"\",\"Driven Wheels\":\"\",\"Anti-Brake System\":\"\",\"Steering Type\":\"\",\"Curb Weight\":\"\",\"Gross Weight\":\"\",\"Overall Height\":\"\",\"Overall Length\":\"\",\"Overall Width\":\"\",\"Standard Seating\":\"\",\"Optional Seating\":\"\",\"Invoice Price\":\"\",\"Delivery Charges\":\"\",\"MSRP\":\"\"},\"success\":true,\"error\":\"\"}', 'Dilworth-glyndon-felton, MN, USA', '46.9858777', '-96.5887048', '2018-12-16 15:23:51', 3), | |||
(15, NULL, '2018 Hyundai Sonata Sport', 'sonata', 'hyundai', '2018', NULL, '{\"vehicle\":\"2018 Hyundai Sonata Sport\",\"attributes\":{\"Year\":\"2018\",\"Make\":\"Hyundai\",\"Model\":\"Sonata\",\"Trim\":\"Sport\",\"Short Trim\":\"SEL\",\"Trim Variations\":\"SEL \\/ Limited SULEV \\/ Sport \\/ Limited \\/ SEL SULEV\",\"Made In\":\"United States\",\"Vehicle Style\":\"Sedan (4-Door)\",\"Vehicle Type\":\"Passenger Car\",\"Vehicle Size\":\"\",\"Vehicle Category\":\"\",\"Doors\":\"4\",\"Fuel Type\":\"Gasoline\",\"Fuel Capacity\":\"\",\"City Mileage\":\"\",\"Highway Mileage\":\"\",\"Engine\":\"GDI THETA-II\",\"Engine Size\":\"2.4\",\"Engine Cylinders\":\"4\",\"Transmission Type\":\"\",\"Transmission Gears\":\"\",\"Driven Wheels\":\"\",\"Anti-Brake System\":\"\",\"Steering Type\":\"\",\"Curb Weight\":\"\",\"Gross Weight\":\"\",\"Overall Height\":\"\",\"Overall Length\":\"\",\"Overall Width\":\"\",\"Standard Seating\":\"\",\"Optional Seating\":\"\",\"Invoice Price\":\"\",\"Delivery Charges\":\"\",\"MSRP\":\"\"},\"success\":true,\"error\":\"\"}', 'Ghirardelli Square, North Point Street, San Francisco, CA, USA', '37.8058763', '-122.4229502', '2018-12-16 15:27:09', 3), | |||
(16, NULL, '2018 Hyundai Sonata Sport', 'sonata', 'hyundai', '2018', NULL, '{\"vehicle\":\"2018 Hyundai Sonata Sport\",\"attributes\":{\"Year\":\"2018\",\"Make\":\"Hyundai\",\"Model\":\"Sonata\",\"Trim\":\"Sport\",\"Short Trim\":\"SEL\",\"Trim Variations\":\"SEL \\/ Limited SULEV \\/ Sport \\/ Limited \\/ SEL SULEV\",\"Made In\":\"United States\",\"Vehicle Style\":\"Sedan (4-Door)\",\"Vehicle Type\":\"Passenger Car\",\"Vehicle Size\":\"\",\"Vehicle Category\":\"\",\"Doors\":\"4\",\"Fuel Type\":\"Gasoline\",\"Fuel Capacity\":\"\",\"City Mileage\":\"\",\"Highway Mileage\":\"\",\"Engine\":\"GDI THETA-II\",\"Engine Size\":\"2.4\",\"Engine Cylinders\":\"4\",\"Transmission Type\":\"\",\"Transmission Gears\":\"\",\"Driven Wheels\":\"\",\"Anti-Brake System\":\"\",\"Steering Type\":\"\",\"Curb Weight\":\"\",\"Gross Weight\":\"\",\"Overall Height\":\"\",\"Overall Length\":\"\",\"Overall Width\":\"\",\"Standard Seating\":\"\",\"Optional Seating\":\"\",\"Invoice Price\":\"\",\"Delivery Charges\":\"\",\"MSRP\":\"\"},\"success\":true,\"error\":\"\"}', 'FDR Drive, Brooklyn, NY, USA', '40.7100593', '-73.9894836', '2018-12-16 15:29:43', 3), | |||
(17, NULL, '2018 Hyundai Sonata Sport', 'sonata', 'hyundai', '2018', NULL, '{\"vehicle\":\"2018 Hyundai Sonata Sport\",\"attributes\":{\"Year\":\"2018\",\"Make\":\"Hyundai\",\"Model\":\"Sonata\",\"Trim\":\"Sport\",\"Short Trim\":\"SEL\",\"Trim Variations\":\"SEL \\/ Limited SULEV \\/ Sport \\/ Limited \\/ SEL SULEV\",\"Made In\":\"United States\",\"Vehicle Style\":\"Sedan (4-Door)\",\"Vehicle Type\":\"Passenger Car\",\"Vehicle Size\":\"\",\"Vehicle Category\":\"\",\"Doors\":\"4\",\"Fuel Type\":\"Gasoline\",\"Fuel Capacity\":\"\",\"City Mileage\":\"\",\"Highway Mileage\":\"\",\"Engine\":\"GDI THETA-II\",\"Engine Size\":\"2.4\",\"Engine Cylinders\":\"4\",\"Transmission Type\":\"\",\"Transmission Gears\":\"\",\"Driven Wheels\":\"\",\"Anti-Brake System\":\"\",\"Steering Type\":\"\",\"Curb Weight\":\"\",\"Gross Weight\":\"\",\"Overall Height\":\"\",\"Overall Length\":\"\",\"Overall Width\":\"\",\"Standard Seating\":\"\",\"Optional Seating\":\"\",\"Invoice Price\":\"\",\"Delivery Charges\":\"\",\"MSRP\":\"\"},\"success\":true,\"error\":\"\"}', 'FGCU Boulevard South, Fort Myers, FL, USA', '26.4604871', '-81.7715028', '2018-12-16 15:37:55', 3), | |||
(18, NULL, '2018 Hyundai Sonata Sport', 'sonata', 'hyundai', '2018', NULL, '{\"vehicle\":\"2018 Hyundai Sonata Sport\",\"attributes\":{\"Year\":\"2018\",\"Make\":\"Hyundai\",\"Model\":\"Sonata\",\"Trim\":\"Sport\",\"Short Trim\":\"SEL\",\"Trim Variations\":\"SEL \\/ Limited SULEV \\/ Sport \\/ Limited \\/ SEL SULEV\",\"Made In\":\"United States\",\"Vehicle Style\":\"Sedan (4-Door)\",\"Vehicle Type\":\"Passenger Car\",\"Vehicle Size\":\"\",\"Vehicle Category\":\"\",\"Doors\":\"4\",\"Fuel Type\":\"Gasoline\",\"Fuel Capacity\":\"\",\"City Mileage\":\"\",\"Highway Mileage\":\"\",\"Engine\":\"GDI THETA-II\",\"Engine Size\":\"2.4\",\"Engine Cylinders\":\"4\",\"Transmission Type\":\"\",\"Transmission Gears\":\"\",\"Driven Wheels\":\"\",\"Anti-Brake System\":\"\",\"Steering Type\":\"\",\"Curb Weight\":\"\",\"Gross Weight\":\"\",\"Overall Height\":\"\",\"Overall Length\":\"\",\"Overall Width\":\"\",\"Standard Seating\":\"\",\"Optional Seating\":\"\",\"Invoice Price\":\"\",\"Delivery Charges\":\"\",\"MSRP\":\"\"},\"success\":true,\"error\":\"\"}', '6679A Broadway, Bronx, NY, USA', '40.9107395', '-73.8968306', '2018-12-16 15:40:57', 3), | |||
(19, NULL, '2017 Hyundai Sonata SE', 'sonata', 'hyundai', '2017', NULL, '{\"vehicle\":\"2017 Hyundai Sonata SE\",\"attributes\":{\"Year\":\"2017\",\"Make\":\"Hyundai\",\"Model\":\"Sonata\",\"Trim\":\"SE\",\"Short Trim\":\"SE\",\"Trim Variations\":\"Base PZEV \\/ Base \\/ SE PZEV \\/ SE \\/ Eco \\/ Sport \\/ Limited \\/ Sport 2.0T \\/ Limited 2.0T\",\"Made In\":\"United States\",\"Vehicle Style\":\"Sedan (4-Door)\",\"Vehicle Type\":\"Car\",\"Vehicle Size\":\"Midsize\",\"Vehicle Category\":\"Large Cars\",\"Doors\":\"4\",\"Fuel Type\":\"Regular Unleaded\",\"Fuel Capacity\":\"18.5 gallon\",\"City Mileage\":\"25 miles\\/gallon\",\"Highway Mileage\":\"36 miles\\/gallon\",\"Engine\":\"2.4L L4 DOHC 16V\",\"Engine Size\":\"2.4\",\"Engine Cylinders\":\"4\",\"Transmission Type\":\"Automatic\",\"Transmission Gears\":\"6\",\"Driven Wheels\":\"Front Wheel Drive\",\"Anti-Brake System\":\"4-Wheel ABS\",\"Steering Type\":\"R&P\",\"Curb Weight\":\"3252\",\"Gross Weight\":\"\",\"Overall Height\":\"58.10 inches\",\"Overall Length\":\"191.10 inches\",\"Overall Width\":\"73.40 inches\",\"Standard Seating\":\"5\",\"Optional Seating\":\"\",\"Invoice Price\":\"$21,047\",\"Delivery Charges\":\"$835\",\"MSRP\":\"$21,950\"},\"success\":true,\"error\":\"\"}', 'SDF airport (SDF), Terminal Drive, Louisville, KY, USA', '38.175662', '-85.7369231', '2018-12-16 15:42:04', 3), | |||
(20, NULL, '2018 Hyundai Sonata Sport', 'sonata', 'hyundai', '2018', NULL, '{\"vehicle\":\"2018 Hyundai Sonata Sport\",\"attributes\":{\"Year\":\"2018\",\"Make\":\"Hyundai\",\"Model\":\"Sonata\",\"Trim\":\"Sport\",\"Short Trim\":\"SEL\",\"Trim Variations\":\"SEL \\/ Limited SULEV \\/ Sport \\/ Limited \\/ SEL SULEV\",\"Made In\":\"United States\",\"Vehicle Style\":\"Sedan (4-Door)\",\"Vehicle Type\":\"Passenger Car\",\"Vehicle Size\":\"\",\"Vehicle Category\":\"\",\"Doors\":\"4\",\"Fuel Type\":\"Gasoline\",\"Fuel Capacity\":\"\",\"City Mileage\":\"\",\"Highway Mileage\":\"\",\"Engine\":\"GDI THETA-II\",\"Engine Size\":\"2.4\",\"Engine Cylinders\":\"4\",\"Transmission Type\":\"\",\"Transmission Gears\":\"\",\"Driven Wheels\":\"\",\"Anti-Brake System\":\"\",\"Steering Type\":\"\",\"Curb Weight\":\"\",\"Gross Weight\":\"\",\"Overall Height\":\"\",\"Overall Length\":\"\",\"Overall Width\":\"\",\"Standard Seating\":\"\",\"Optional Seating\":\"\",\"Invoice Price\":\"\",\"Delivery Charges\":\"\",\"MSRP\":\"\"},\"success\":true,\"error\":\"\"}', '2615 Massachusetts Avenue, Cambridge, MA, USA', '42.4010983', '-71.1352662', '2018-12-16 15:47:53', 3), | |||
(21, NULL, '2018 Hyundai Sonata Sport', 'sonata', 'hyundai', '2018', NULL, '{\"vehicle\":\"2018 Hyundai Sonata Sport\",\"attributes\":{\"Year\":\"2018\",\"Make\":\"Hyundai\",\"Model\":\"Sonata\",\"Trim\":\"Sport\",\"Short Trim\":\"SEL\",\"Trim Variations\":\"SEL \\/ Limited SULEV \\/ Sport \\/ Limited \\/ SEL SULEV\",\"Made In\":\"United States\",\"Vehicle Style\":\"Sedan (4-Door)\",\"Vehicle Type\":\"Passenger Car\",\"Vehicle Size\":\"\",\"Vehicle Category\":\"\",\"Doors\":\"4\",\"Fuel Type\":\"Gasoline\",\"Fuel Capacity\":\"\",\"City Mileage\":\"\",\"Highway Mileage\":\"\",\"Engine\":\"GDI THETA-II\",\"Engine Size\":\"2.4\",\"Engine Cylinders\":\"4\",\"Transmission Type\":\"\",\"Transmission Gears\":\"\",\"Driven Wheels\":\"\",\"Anti-Brake System\":\"\",\"Steering Type\":\"\",\"Curb Weight\":\"\",\"Gross Weight\":\"\",\"Overall Height\":\"\",\"Overall Length\":\"\",\"Overall Width\":\"\",\"Standard Seating\":\"\",\"Optional Seating\":\"\",\"Invoice Price\":\"\",\"Delivery Charges\":\"\",\"MSRP\":\"\"},\"success\":true,\"error\":\"\"}', '2547 Massachusetts Avenue, Cambridge, MA, USA', '42.4002336', '-71.1338137', '2018-12-16 15:49:20', 3), | |||
(23, NULL, '2013 Hyundai Sonata GLS', 'sonata', 'hyundai', '2013', NULL, '{\"vehicle\":\"2013 Hyundai Sonata GLS\",\"attributes\":{\"Year\":\"2013\",\"Make\":\"Hyundai\",\"Model\":\"Sonata\",\"Trim\":\"GLS\",\"Short Trim\":\"GLS\",\"Trim Variations\":\"GLS \\/ GLS PZEV\",\"Made In\":\"United States\",\"Vehicle Style\":\"Sedan (4-Door)\",\"Vehicle Type\":\"Car\",\"Vehicle Size\":\"Car\",\"Vehicle Category\":\"Large Cars\",\"Doors\":\"4\",\"Fuel Type\":\"Regular Unleaded\",\"Fuel Capacity\":\"18.5 gallon\",\"City Mileage\":\"24 miles\\/gallon\",\"Highway Mileage\":\"35 miles\\/gallon\",\"Engine\":\"2.4L L4 DOHC 16V\",\"Engine Size\":\"2.4\",\"Engine Cylinders\":\"4\",\"Transmission Type\":\"Automatic\",\"Transmission Gears\":\"6\",\"Driven Wheels\":\"Front Wheel Drive\",\"Anti-Brake System\":\"4-Wheel ABS\",\"Steering Type\":\"R&P\",\"Curb Weight\":\"3199\",\"Gross Weight\":\"\",\"Overall Height\":\"57.90 inches\",\"Overall Length\":\"189.80 inches\",\"Overall Width\":\"72.20 inches\",\"Standard Seating\":\"5\",\"Optional Seating\":\"\",\"Invoice Price\":\"$20,293\",\"Delivery Charges\":\"$795\",\"MSRP\":\"$21,195\"},\"success\":true,\"error\":\"\"}', 'Dallas, TX, USA', '32.7766642', '-96.7969879', '2018-12-16 15:54:49', 3), | |||
(24, NULL, '2018 Hyundai Sonata Sport', 'sonata', 'hyundai', '2018', NULL, '{\"vehicle\":\"2018 Hyundai Sonata Sport\",\"attributes\":{\"Year\":\"2018\",\"Make\":\"Hyundai\",\"Model\":\"Sonata\",\"Trim\":\"Sport\",\"Short Trim\":\"SEL\",\"Trim Variations\":\"SEL \\/ Limited SULEV \\/ Sport \\/ Limited \\/ SEL SULEV\",\"Made In\":\"United States\",\"Vehicle Style\":\"Sedan (4-Door)\",\"Vehicle Type\":\"Passenger Car\",\"Vehicle Size\":\"\",\"Vehicle Category\":\"\",\"Doors\":\"4\",\"Fuel Type\":\"Gasoline\",\"Fuel Capacity\":\"\",\"City Mileage\":\"\",\"Highway Mileage\":\"\",\"Engine\":\"GDI THETA-II\",\"Engine Size\":\"2.4\",\"Engine Cylinders\":\"4\",\"Transmission Type\":\"\",\"Transmission Gears\":\"\",\"Driven Wheels\":\"\",\"Anti-Brake System\":\"\",\"Steering Type\":\"\",\"Curb Weight\":\"\",\"Gross Weight\":\"\",\"Overall Height\":\"\",\"Overall Length\":\"\",\"Overall Width\":\"\",\"Standard Seating\":\"\",\"Optional Seating\":\"\",\"Invoice Price\":\"\",\"Delivery Charges\":\"\",\"MSRP\":\"\"},\"success\":true,\"error\":\"\"}', 'R G Skinner Parkway, Jacksonville, FL, USA', '30.2099654', '-81.5130142', '2018-12-16 15:57:38', 3); | |||
-- -------------------------------------------------------- | |||
-- | |||
-- Table structure for table `issues` | -- Table structure for table `issues` | ||
-- | -- | ||
CREATE TABLE `issues` ( | DROP TABLE IF EXISTS `issues`; | ||
`issue_id` int(11) NOT NULL, | CREATE TABLE IF NOT EXISTS `issues` ( | ||
`issue_id` int(11) NOT NULL AUTO_INCREMENT, | |||
`issue` varchar(500) NOT NULL, | `issue` varchar(500) NOT NULL, | ||
`status` tinyint(3) NOT NULL DEFAULT '1' | `status` tinyint(3) NOT NULL DEFAULT '1', | ||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; | PRIMARY KEY (`issue_id`) | ||
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=latin1; | |||
-- | -- | ||
-- Dumping data for table `issues` | -- Dumping data for table `issues` | ||
... | @@ -105,8 +152,9 @@ INSERT INTO `issues` (`issue_id`, `issue`, `status`) VALUES | ... | @@ -105,8 +152,9 @@ INSERT INTO `issues` (`issue_id`, `issue`, `status`) VALUES |
-- Table structure for table `mechanic` | -- Table structure for table `mechanic` | ||
-- | -- | ||
CREATE TABLE `mechanic` ( | DROP TABLE IF EXISTS `mechanic`; | ||
`id` int(11) NOT NULL, | CREATE TABLE IF NOT EXISTS `mechanic` ( | ||
`id` int(11) NOT NULL AUTO_INCREMENT, | |||
`mechanic_id` int(11) NOT NULL, | `mechanic_id` int(11) NOT NULL, | ||
`shop_id` int(11) NOT NULL DEFAULT '0', | `shop_id` int(11) NOT NULL DEFAULT '0', | ||
`first_name` varchar(50) NOT NULL, | `first_name` varchar(50) NOT NULL, | ||
... | @@ -120,8 +168,9 @@ CREATE TABLE `mechanic` ( | ... | @@ -120,8 +168,9 @@ CREATE TABLE `mechanic` ( |
`licence_number` varchar(250) DEFAULT NULL, | `licence_number` varchar(250) DEFAULT NULL, | ||
`licence_exp_date` varchar(250) DEFAULT NULL, | `licence_exp_date` varchar(250) DEFAULT NULL, | ||
`location_lat` varchar(30) DEFAULT NULL, | `location_lat` varchar(30) DEFAULT NULL, | ||
`location_lng` varchar(30) DEFAULT NULL | `location_lng` varchar(30) DEFAULT NULL, | ||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; | PRIMARY KEY (`id`) | ||
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1; | |||
-- | -- | ||
-- Dumping data for table `mechanic` | -- Dumping data for table `mechanic` | ||
... | @@ -138,14 +187,16 @@ INSERT INTO `mechanic` (`id`, `mechanic_id`, `shop_id`, `first_name`, `last_name | ... | @@ -138,14 +187,16 @@ INSERT INTO `mechanic` (`id`, `mechanic_id`, `shop_id`, `first_name`, `last_name |
-- Table structure for table `mechanic_issues` | -- Table structure for table `mechanic_issues` | ||
-- | -- | ||
CREATE TABLE `mechanic_issues` ( | DROP TABLE IF EXISTS `mechanic_issues`; | ||
`id` int(11) NOT NULL, | CREATE TABLE IF NOT EXISTS `mechanic_issues` ( | ||
`id` int(11) NOT NULL AUTO_INCREMENT, | |||
`issue_id` int(11) DEFAULT NULL, | `issue_id` int(11) DEFAULT NULL, | ||
`mechanic_id` int(11) DEFAULT NULL, | `mechanic_id` int(11) DEFAULT NULL, | ||
`issue_description` longtext, | `issue_description` longtext, | ||
`service_fee` double NOT NULL DEFAULT '0', | `service_fee` double NOT NULL DEFAULT '0', | ||
`status` tinyint(3) NOT NULL DEFAULT '1' | `status` tinyint(3) NOT NULL DEFAULT '1', | ||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; | PRIMARY KEY (`id`) | ||
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1; | |||
-- | -- | ||
-- Dumping data for table `mechanic_issues` | -- Dumping data for table `mechanic_issues` | ||
... | @@ -163,14 +214,16 @@ INSERT INTO `mechanic_issues` (`id`, `issue_id`, `mechanic_id`, `issue_descripti | ... | @@ -163,14 +214,16 @@ INSERT INTO `mechanic_issues` (`id`, `issue_id`, `mechanic_id`, `issue_descripti |
-- Table structure for table `mechanic_shop` | -- Table structure for table `mechanic_shop` | ||
-- | -- | ||
CREATE TABLE `mechanic_shop` ( | DROP TABLE IF EXISTS `mechanic_shop`; | ||
`shop_id` int(11) NOT NULL, | CREATE TABLE IF NOT EXISTS `mechanic_shop` ( | ||
`shop_id` int(11) NOT NULL AUTO_INCREMENT, | |||
`shop_name` varchar(250) NOT NULL, | `shop_name` varchar(250) NOT NULL, | ||
`address` varchar(500) NOT NULL, | `address` varchar(500) NOT NULL, | ||
`phone` varchar(15) NOT NULL, | `phone` varchar(15) NOT NULL, | ||
`email_id` varchar(150) NOT NULL, | `email_id` varchar(150) NOT NULL, | ||
`status` tinyint(3) NOT NULL DEFAULT '1' | `status` tinyint(3) NOT NULL DEFAULT '1', | ||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; | PRIMARY KEY (`shop_id`) | ||
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1; | |||
-- | -- | ||
-- Dumping data for table `mechanic_shop` | -- Dumping data for table `mechanic_shop` | ||
... | @@ -186,8 +239,9 @@ INSERT INTO `mechanic_shop` (`shop_id`, `shop_name`, `address`, `phone`, `email_ | ... | @@ -186,8 +239,9 @@ INSERT INTO `mechanic_shop` (`shop_id`, `shop_name`, `address`, `phone`, `email_ |
-- Table structure for table `setting` | -- Table structure for table `setting` | ||
-- | -- | ||
CREATE TABLE `setting` ( | DROP TABLE IF EXISTS `setting`; | ||
`id` int(11) NOT NULL, | CREATE TABLE IF NOT EXISTS `setting` ( | ||
`id` int(11) NOT NULL AUTO_INCREMENT, | |||
`title` varchar(250) NOT NULL, | `title` varchar(250) NOT NULL, | ||
`title_short` varchar(250) NOT NULL, | `title_short` varchar(250) NOT NULL, | ||
`site_logo` varchar(150) NOT NULL, | `site_logo` varchar(150) NOT NULL, | ||
... | @@ -199,8 +253,9 @@ CREATE TABLE `setting` ( | ... | @@ -199,8 +253,9 @@ CREATE TABLE `setting` ( |
`smtp_password` varchar(150) NOT NULL, | `smtp_password` varchar(150) NOT NULL, | ||
`google_api_key` varchar(500) DEFAULT NULL, | `google_api_key` varchar(500) DEFAULT NULL, | ||
`vin_audit_url` varchar(500) DEFAULT NULL, | `vin_audit_url` varchar(500) DEFAULT NULL, | ||
`vin_audit_api` varchar(500) DEFAULT NULL | `vin_audit_api` varchar(500) DEFAULT NULL, | ||
) ENGINE=MyISAM DEFAULT CHARSET=latin1; | PRIMARY KEY (`id`) | ||
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1; | |||
-- | -- | ||
-- Dumping data for table `setting` | -- Dumping data for table `setting` | ||
... | @@ -208,98 +263,6 @@ CREATE TABLE `setting` ( | ... | @@ -208,98 +263,6 @@ CREATE TABLE `setting` ( |
INSERT INTO `setting` (`id`, `title`, `title_short`, `site_logo`, `fav_icon`, `country_flag`, `currency`, `smtp_host`, `smtp_username`, `smtp_password`, `google_api_key`, `vin_audit_url`, `vin_audit_api`) VALUES | INSERT INTO `setting` (`id`, `title`, `title_short`, `site_logo`, `fav_icon`, `country_flag`, `currency`, `smtp_host`, `smtp_username`, `smtp_password`, `google_api_key`, `vin_audit_url`, `vin_audit_api`) VALUES | ||
(1, 'd-Car Fixers', 'd-CarFixers', 'assets/uploads/services/1539680946_1523012036_hj.jpg', 'assets/uploads/services/1539680946_1523540473_guenstig_reifen.png', 'US', 'USD', '[email protected]', 'AIzaSyC9JX3BZZfx2S6GQieC_PqjuJdUbZ7_wyM1', 'Golden_1234', 'AIzaSyCcc-YDSJyDpehNE6qfntfWpEQ4uS4aq6A', 'https://specifications.vinaudit.com/getspecifications.php', 'VA_DEMO_KEY'); | (1, 'd-Car Fixers', 'd-CarFixers', 'assets/uploads/services/1539680946_1523012036_hj.jpg', 'assets/uploads/services/1539680946_1523540473_guenstig_reifen.png', 'US', 'USD', '[email protected]', 'AIzaSyC9JX3BZZfx2S6GQieC_PqjuJdUbZ7_wyM1', 'Golden_1234', 'AIzaSyCcc-YDSJyDpehNE6qfntfWpEQ4uS4aq6A', 'https://specifications.vinaudit.com/getspecifications.php', 'VA_DEMO_KEY'); | ||
-- | |||
-- Indexes for dumped tables | |||
-- | |||
-- | |||
-- Indexes for table `admin_users` | |||
-- | |||
ALTER TABLE `admin_users` | |||
ADD PRIMARY KEY (`id`); | |||
-- | |||
-- Indexes for table `customers` | |||
-- | |||
ALTER TABLE `customers` | |||
ADD PRIMARY KEY (`customer_id`); | |||
-- | |||
-- Indexes for table `issues` | |||
-- | |||
ALTER TABLE `issues` | |||
ADD PRIMARY KEY (`issue_id`); | |||
-- | |||
-- Indexes for table `mechanic` | |||
-- | |||
ALTER TABLE `mechanic` | |||
ADD PRIMARY KEY (`id`); | |||
-- | |||
-- Indexes for table `mechanic_issues` | |||
-- | |||
ALTER TABLE `mechanic_issues` | |||
ADD PRIMARY KEY (`id`); | |||
-- | |||
-- Indexes for table `mechanic_shop` | |||
-- | |||
ALTER TABLE `mechanic_shop` | |||
ADD PRIMARY KEY (`shop_id`); | |||
-- | |||
-- Indexes for table `setting` | |||
-- | |||
ALTER TABLE `setting` | |||
ADD PRIMARY KEY (`id`); | |||
-- | |||
-- AUTO_INCREMENT for dumped tables | |||
-- | |||
-- | |||
-- AUTO_INCREMENT for table `admin_users` | |||
-- | |||
ALTER TABLE `admin_users` | |||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13; | |||
-- | |||
-- AUTO_INCREMENT for table `customers` | |||
-- | |||
ALTER TABLE `customers` | |||
MODIFY `customer_id` int(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; | |||
-- | |||
-- AUTO_INCREMENT for table `issues` | |||
-- | |||
ALTER TABLE `issues` | |||
MODIFY `issue_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8; | |||
-- | |||
-- AUTO_INCREMENT for table `mechanic` | |||
-- | |||
ALTER TABLE `mechanic` | |||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7; | |||
-- | |||
-- AUTO_INCREMENT for table `mechanic_issues` | |||
-- | |||
ALTER TABLE `mechanic_issues` | |||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; | |||
-- | |||
-- AUTO_INCREMENT for table `mechanic_shop` | |||
-- | |||
ALTER TABLE `mechanic_shop` | |||
MODIFY `shop_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; | |||
-- | |||
-- AUTO_INCREMENT for table `setting` | |||
-- | |||
ALTER TABLE `setting` | |||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; | |||
COMMIT; | COMMIT; | ||
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; | ||
... | ... |
Please
register
or
sign in
to comment