daily commit 07-12-2018
Showing
application/controllers/Customer.php
0 → 100644
This diff is collapsed.
Click to expand it.
application/controllers/Issue.php
0 → 100644
application/controllers/Mechanic.php
0 → 100644
This diff is collapsed.
Click to expand it.
application/controllers/Shop.php
0 → 100644
application/models/Customer_model.php
0 → 100644
application/models/Issue_model.php
0 → 100644
This diff is collapsed.
Click to expand it.
application/views/Issue/issueForm.php
0 → 100644
application/views/Issue/issueMapping.php
0 → 100644
application/views/Issue/viewIssues.php
0 → 100644
application/views/Issue/viewMappedIssues.php
0 → 100644
application/views/Mechanic/mechanicForm.php
0 → 100644
This diff is collapsed.
Click to expand it.
application/views/Mechanic/viewMechanic.php
0 → 100644
application/views/Shop/shopForm.php
0 → 100644
application/views/Shop/viewShops.php
0 → 100644
This diff is collapsed.
Click to expand it.
... | @@ -3,7 +3,7 @@ | ... | @@ -3,7 +3,7 @@ |
-- https://www.phpmyadmin.net/ | -- https://www.phpmyadmin.net/ | ||
-- | -- | ||
-- Host: db | -- Host: db | ||
-- Generation Time: Dec 04, 2018 at 12:41 PM | -- Generation Time: Dec 07, 2018 at 12:37 PM | ||
-- Server version: 5.6.41 | -- Server version: 5.6.41 | ||
-- PHP Version: 7.2.8 | -- PHP Version: 7.2.8 | ||
... | @@ -43,8 +43,10 @@ CREATE TABLE `admin_users` ( | ... | @@ -43,8 +43,10 @@ CREATE TABLE `admin_users` ( |
-- | -- | ||
INSERT INTO `admin_users` (`id`, `username`, `password`, `user_type`, `display_name`, `profile_image`, `status`) VALUES | INSERT INTO `admin_users` (`id`, `username`, `password`, `user_type`, `display_name`, `profile_image`, `status`) VALUES | ||
(1, 'admin', '202cb962ac59075b964b07152d234b70', 1, 'Super Admin', 'assets/uploads/services/1542079854_234858854male.jpg', 1), | (1, 'admin', '202cb962ac59075b964b07152d234b70', 1, 'Super Admin User', 'assets/uploads/services/1543990056_1523012120_default.png', 1), | ||
(2, 'mechanic', '202cb962ac59075b964b07152d234b70', 2, 'Mechanic', '', 1); | (2, 'mechanic', '202cb962ac59075b964b07152d234b70', 2, 'Mechanic', 'assets/uploads/services/1544088354_car1.jpg', 1), | ||
(11, 'cfghbfchdrfg', '97a4aa7bfb0e20d7b9813ffe99f91fd4', 2, 'lnoik', 'assets/uploads/services/1544013534_images.jpg', 0), | |||
(12, 'admin123', '202cb962ac59075b964b07152d234b70', 2, 'Super Admin', 'assets/uploads/services/1544091403_Himalayan.jpg', 1); | |||
-- -------------------------------------------------------- | -- -------------------------------------------------------- | ||
... | @@ -68,6 +70,31 @@ CREATE TABLE `customers` ( | ... | @@ -68,6 +70,31 @@ CREATE TABLE `customers` ( |
-- -------------------------------------------------------- | -- -------------------------------------------------------- | ||
-- | -- | ||
-- Table structure for table `issues` | |||
-- | |||
CREATE TABLE `issues` ( | |||
`issue_id` int(11) NOT NULL, | |||
`issue` varchar(500) NOT NULL, | |||
`status` tinyint(3) NOT NULL DEFAULT '1' | |||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; | |||
-- | |||
-- Dumping data for table `issues` | |||
-- | |||
INSERT INTO `issues` (`issue_id`, `issue`, `status`) VALUES | |||
(1, 'Oil Change and General Service (Free Water Service).', 2), | |||
(2, 'Wheel Alignment and General Service (Free Water Service)', 1), | |||
(3, 'General Water Service and Periodic General Check up', 1), | |||
(4, 'Water Service (With polishing)', 1), | |||
(5, 'Water Service (Without polishing)', 1), | |||
(6, 'Oil Change and General Service (Free Water Service and Polishing).', 1), | |||
(7, 'Oil Change and General Service (Free Water Service and Polishing).', 1); | |||
-- -------------------------------------------------------- | |||
-- | |||
-- Table structure for table `mechanic` | -- Table structure for table `mechanic` | ||
-- | -- | ||
... | @@ -79,7 +106,6 @@ CREATE TABLE `mechanic` ( | ... | @@ -79,7 +106,6 @@ CREATE TABLE `mechanic` ( |
`last_name` varchar(50) NOT NULL, | `last_name` varchar(50) NOT NULL, | ||
`email_id` varchar(250) NOT NULL, | `email_id` varchar(250) NOT NULL, | ||
`phone` varchar(15) NOT NULL, | `phone` varchar(15) NOT NULL, | ||
`profile_image` varchar(500) NOT NULL, | |||
`address` varchar(250) DEFAULT NULL, | `address` varchar(250) DEFAULT NULL, | ||
`city` varchar(200) DEFAULT NULL, | `city` varchar(200) DEFAULT NULL, | ||
`state` varchar(200) DEFAULT NULL, | `state` varchar(200) DEFAULT NULL, | ||
... | @@ -94,8 +120,35 @@ CREATE TABLE `mechanic` ( | ... | @@ -94,8 +120,35 @@ CREATE TABLE `mechanic` ( |
-- Dumping data for table `mechanic` | -- Dumping data for table `mechanic` | ||
-- | -- | ||
INSERT INTO `mechanic` (`id`, `mechanic_id`, `shop_id`, `first_name`, `last_name`, `email_id`, `phone`, `profile_image`, `address`, `city`, `state`, `licence`, `licence_number`, `licence_exp_date`, `location_lat`, `location_lng`) VALUES | INSERT INTO `mechanic` (`id`, `mechanic_id`, `shop_id`, `first_name`, `last_name`, `email_id`, `phone`, `address`, `city`, `state`, `licence`, `licence_number`, `licence_exp_date`, `location_lat`, `location_lng`) VALUES | ||
(1, 2, 0, 'Tobin', 'Thomas', '[email protected]', '9995559194', '', 'Techware Software Solution', 'Ernakulam', 'Kerala', '', '6556596695', '85469415265', NULL, NULL); | (1, 2, 0, 'Tobin', 'Thomas', '[email protected]', '9995559194', 'Techware Software Solution', 'Ernakulam', 'Kerala', 'assets/uploads/services/1544088274_1523012036_hj.jpg', '', '', NULL, NULL), | ||
(5, 11, 0, 'kjo', 'kjo', '[email protected]', '34653456344456', 'Techware', 'Aiea', 'Hawaii', 'assets/uploads/services/1544091718_sniper.jpg', 'dfrgdersgt', '12/13/2018', NULL, NULL), | |||
(6, 12, 0, 'Driver', 'john', '[email protected]', '9995551234', 'Techware', 'Aiea', 'Hawaii', 'assets/uploads/services/1544091568_1523012036_hj.jpg', 'LI00051545', '12/25/2018', NULL, NULL); | |||
-- -------------------------------------------------------- | |||
-- | |||
-- Table structure for table `mechanic_issues` | |||
-- | |||
CREATE TABLE `mechanic_issues` ( | |||
`id` int(11) NOT NULL, | |||
`issue_id` int(11) DEFAULT NULL, | |||
`mechanic_id` int(11) DEFAULT NULL, | |||
`issue_description` longtext, | |||
`service_fee` double NOT NULL DEFAULT '0', | |||
`status` tinyint(3) NOT NULL DEFAULT '1' | |||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; | |||
-- | |||
-- Dumping data for table `mechanic_issues` | |||
-- | |||
INSERT INTO `mechanic_issues` (`id`, `issue_id`, `mechanic_id`, `issue_description`, `service_fee`, `status`) VALUES | |||
(1, 1, 12, 'sert', 435345, 0), | |||
(2, 2, 2, 'fghdrftyhudsrxfytuh we e4rtwe4t we5tywer5 we5twer tew4rte etewt aw4raew w3rw3e w3r4wer fghdrftyhudsrxfytuh we e4rtwe4t we5tywer5 we5twer tew4rte etewt aw4raew w3rw3e w3r4wer fghdrftyhudsrxfytuh we e4rtwe4t we5tywer5 we5twer tew4rte etewt aw4raew w3rw3e w3r4wer fghdrftyhudsrxfytuh we e4rtwe4t we5tywer5 we5twer tew4rte etewt aw4raew w3rw3e w3r4wer fghdrftyhudsrxfytuh we e4rtwe4t we5tywer5 we5twer tew4rte etewt aw4raew w3rw3e w3r4wer ', 435345, 0), | |||
(3, 1, 2, 'edrte ew4te ew5ter e354trs5 edrte ew4te ew5ter e354trs5 edrte ew4te ew5ter e354trs5 edrte ew4te ew5ter e354trs5 ', 435345, 0), | |||
(4, 1, 2, 'edrte ew4te ew5ter e354trs5 edrte ew4te ew5ter e354trs5 edrte ew4te ew5ter e354trs5 edrte ew4te ew5ter e354trs5 ', 435345, 0); | |||
-- -------------------------------------------------------- | -- -------------------------------------------------------- | ||
... | @@ -112,6 +165,14 @@ CREATE TABLE `mechanic_shop` ( | ... | @@ -112,6 +165,14 @@ CREATE TABLE `mechanic_shop` ( |
`status` tinyint(3) NOT NULL DEFAULT '1' | `status` tinyint(3) NOT NULL DEFAULT '1' | ||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; | ||
-- | |||
-- Dumping data for table `mechanic_shop` | |||
-- | |||
INSERT INTO `mechanic_shop` (`shop_id`, `shop_name`, `address`, `phone`, `email_id`, `status`) VALUES | |||
(1, 'Mechanic Shop', 'Kakkanad', '9995559194', '[email protected]', 1), | |||
(2, 'New Shop 1', 'Techware', '9995559194', '[email protected]', 0); | |||
-- -------------------------------------------------------- | -- -------------------------------------------------------- | ||
-- | -- | ||
... | @@ -156,12 +217,24 @@ ALTER TABLE `customers` | ... | @@ -156,12 +217,24 @@ ALTER TABLE `customers` |
ADD PRIMARY KEY (`customer_id`); | ADD PRIMARY KEY (`customer_id`); | ||
-- | -- | ||
-- Indexes for table `issues` | |||
-- | |||
ALTER TABLE `issues` | |||
ADD PRIMARY KEY (`issue_id`); | |||
-- | |||
-- Indexes for table `mechanic` | -- Indexes for table `mechanic` | ||
-- | -- | ||
ALTER TABLE `mechanic` | ALTER TABLE `mechanic` | ||
ADD PRIMARY KEY (`id`); | ADD PRIMARY KEY (`id`); | ||
-- | -- | ||
-- Indexes for table `mechanic_issues` | |||
-- | |||
ALTER TABLE `mechanic_issues` | |||
ADD PRIMARY KEY (`id`); | |||
-- | |||
-- Indexes for table `mechanic_shop` | -- Indexes for table `mechanic_shop` | ||
-- | -- | ||
ALTER TABLE `mechanic_shop` | ALTER TABLE `mechanic_shop` | ||
... | @@ -181,7 +254,7 @@ ALTER TABLE `setting` | ... | @@ -181,7 +254,7 @@ ALTER TABLE `setting` |
-- AUTO_INCREMENT for table `admin_users` | -- AUTO_INCREMENT for table `admin_users` | ||
-- | -- | ||
ALTER TABLE `admin_users` | ALTER TABLE `admin_users` | ||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; | MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13; | ||
-- | -- | ||
-- AUTO_INCREMENT for table `customers` | -- AUTO_INCREMENT for table `customers` | ||
... | @@ -190,16 +263,28 @@ ALTER TABLE `customers` | ... | @@ -190,16 +263,28 @@ ALTER TABLE `customers` |
MODIFY `customer_id` int(20) NOT NULL AUTO_INCREMENT; | MODIFY `customer_id` int(20) NOT NULL AUTO_INCREMENT; | ||
-- | -- | ||
-- 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` | -- AUTO_INCREMENT for table `mechanic` | ||
-- | -- | ||
ALTER TABLE `mechanic` | ALTER TABLE `mechanic` | ||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; | 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` | -- AUTO_INCREMENT for table `mechanic_shop` | ||
-- | -- | ||
ALTER TABLE `mechanic_shop` | ALTER TABLE `mechanic_shop` | ||
MODIFY `shop_id` int(11) NOT NULL AUTO_INCREMENT; | MODIFY `shop_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; | ||
-- | -- | ||
-- AUTO_INCREMENT for table `setting` | -- AUTO_INCREMENT for table `setting` | ||
... | ... |
Please
register
or
sign in
to comment