-- phpMyAdmin SQL Dump
-- version 4.8.5
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Oct 25, 2023 at 06:56 AM
-- Server version: 10.1.38-MariaDB
-- PHP Version: 5.6.40

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";


/*!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 */;

--
-- Database: `scanner2`
--

-- --------------------------------------------------------

--
-- Table structure for table `customer`
--

CREATE TABLE `customer` (
  `salesman` int(11) NOT NULL,
  `customer_id` int(11) NOT NULL,
  `name` varchar(100) NOT NULL,
  `contact_no` varchar(100) NOT NULL,
  `AllotmentNo` varchar(100) DEFAULT NULL,
  `chassis_no` varchar(50) DEFAULT NULL,
  `complete_chassis_no` varchar(255) NOT NULL,
  `documents` varchar(100) DEFAULT NULL,
  `Product` varchar(100) NOT NULL,
  `date` date DEFAULT NULL,
  `status` varchar(20) NOT NULL COMMENT 'Pending,Allotment,Proceed,Completed,Uploaded',
  `Remark` varchar(10000) DEFAULT NULL,
  `added_by` int(11) NOT NULL,
  `taxReceipt` varchar(100) DEFAULT NULL,
  `crtm` varchar(100) DEFAULT NULL,
  `registration_no` varchar(100) NOT NULL,
  `reg_date` date DEFAULT NULL,
  `order_status` int(11) NOT NULL,
  `order_date` date NOT NULL,
  `receive` int(11) NOT NULL,
  `receive_date` date NOT NULL,
  `fittment` int(11) NOT NULL,
  `fittment_date` date NOT NULL,
  `fitness` varchar(100) DEFAULT NULL,
  `permit` varchar(100) DEFAULT NULL,
  `rcCopy` varchar(100) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

-- --------------------------------------------------------

--
-- Table structure for table `customer_menu`
--

CREATE TABLE `customer_menu` (
  `customer_menu_id` int(11) NOT NULL,
  `customer_id` int(11) NOT NULL,
  `menu_id` int(11) NOT NULL,
  `menu_option_id` int(11) NOT NULL,
  `filename` varchar(255) NOT NULL,
  `added_by` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

-- --------------------------------------------------------

--
-- Table structure for table `menu`
--

CREATE TABLE `menu` (
  `menu_id` int(11) NOT NULL,
  `menu_name` varchar(100) NOT NULL,
  `has_option` varchar(10) NOT NULL COMMENT 'Yes,No',
  `visibility` varchar(10) NOT NULL COMMENT 'Yes,No',
  `no_of_page` int(11) NOT NULL,
  `file_format` varchar(6) NOT NULL COMMENT 'jpg,pdf',
  `compulsory` varchar(5) NOT NULL COMMENT 'yes,no'
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `menu`
--

INSERT INTO `menu` (`menu_id`, `menu_name`, `has_option`, `visibility`, `no_of_page`, `file_format`, `compulsory`) VALUES
(19, 'TaxInvoice', 'No', 'Yes', 1, 'jpg', 'yes'),
(26, 'Form20', 'No', 'Yes', 2, 'pdf', 'yes'),
(17, 'Form21', 'No', 'Yes', 1, 'jpg', 'yes'),
(16, 'Form22', 'No', 'Yes', 1, 'jpg', 'yes'),
(15, 'DISCLAIMER', 'No', 'Yes', 1, 'jpg', 'yes'),
(20, 'INSURANCE', 'No', 'Yes', 1, 'jpg', 'yes'),
(21, 'SIGN', 'No', 'Yes', 1, 'jpg', 'yes'),
(22, 'IdProof', 'Yes', 'Yes', 1, 'jpg', 'no'),
(23, 'AddressProof', 'Yes', 'Yes', 1, 'jpg', 'yes'),
(27, 'Form34', 'No', 'Yes', 1, 'jpg', 'no'),
(28, 'Dealer_Inspection_Letter', 'No', 'Yes', 1, 'jpg', 'no'),
(90, 'Letter', 'No', 'Yes', 1, 'pdf', 'yes');

-- --------------------------------------------------------

--
-- Table structure for table `menu_option`
--

CREATE TABLE `menu_option` (
  `menu_option_id` int(11) NOT NULL,
  `menu_id` int(11) NOT NULL,
  `name` varchar(100) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `menu_option`
--

INSERT INTO `menu_option` (`menu_option_id`, `menu_id`, `name`) VALUES
(1, 2, 'Votter_Id'),
(2, 2, 'yoyo_proof'),
(3, 2, 'kjk'),
(6, 22, 'ElectionCard'),
(7, 22, 'DrivingLIC'),
(8, 22, 'AadharCard'),
(9, 22, 'PanCard'),
(10, 22, 'PASSPORT'),
(11, 22, 'GovtEmployeeID'),
(12, 23, 'ElectionCard'),
(13, 23, 'LightBill'),
(14, 23, 'VeraBill'),
(15, 23, 'TelephoneBill'),
(16, 23, 'PASSPORT'),
(17, 23, 'IndexCopy'),
(18, 23, 'RentAgreement'),
(19, 23, 'GovtPaySlip'),
(20, 23, 'AnyOther'),
(21, 23, 'GasBill');

-- --------------------------------------------------------

--
-- Table structure for table `modification`
--

CREATE TABLE `modification` (
  `Id` int(11) NOT NULL,
  `Pending` varchar(100) DEFAULT NULL,
  `Allotment` varchar(100) DEFAULT NULL,
  `Proceed` varchar(100) DEFAULT NULL,
  `Upload` varchar(100) DEFAULT NULL,
  `Insp` varchar(100) DEFAULT NULL,
  `Payment` varchar(100) DEFAULT NULL,
  `Semi` varchar(100) DEFAULT NULL,
  `Hsrp` varchar(100) DEFAULT NULL,
  `Fitment` varchar(100) DEFAULT NULL,
  `Ready` varchar(100) DEFAULT NULL,
  `Register` varchar(100) DEFAULT NULL,
  `Full` varchar(100) DEFAULT NULL,
  `CId` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- --------------------------------------------------------

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

CREATE TABLE `permissions` (
  `Id` int(11) NOT NULL,
  `UId` int(11) NOT NULL,
  `Tabs` varchar(100) NOT NULL,
  `Submenu` varchar(10000) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- --------------------------------------------------------

--
-- Table structure for table `product`
--

CREATE TABLE `product` (
  `Id` int(11) NOT NULL,
  `name` varchar(100) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- --------------------------------------------------------

--
-- Table structure for table `salesman`
--

CREATE TABLE `salesman` (
  `id` int(11) NOT NULL,
  `name` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- --------------------------------------------------------

--
-- Table structure for table `user`
--

CREATE TABLE `user` (
  `user_id` int(11) NOT NULL,
  `username` varchar(100) NOT NULL,
  `password` varchar(100) NOT NULL,
  `name` varchar(100) NOT NULL,
  `type` varchar(20) NOT NULL COMMENT 'app_user,admin'
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `user`
--

INSERT INTO `user` (`user_id`, `username`, `password`, `name`, `type`) VALUES
(1, 'admin', '000', 'Admin', 'admin');

--
-- Indexes for dumped tables
--

--
-- Indexes for table `customer`
--
ALTER TABLE `customer`
  ADD PRIMARY KEY (`customer_id`);

--
-- Indexes for table `customer_menu`
--
ALTER TABLE `customer_menu`
  ADD PRIMARY KEY (`customer_menu_id`);

--
-- Indexes for table `menu`
--
ALTER TABLE `menu`
  ADD PRIMARY KEY (`menu_id`);

--
-- Indexes for table `menu_option`
--
ALTER TABLE `menu_option`
  ADD PRIMARY KEY (`menu_option_id`);

--
-- Indexes for table `modification`
--
ALTER TABLE `modification`
  ADD PRIMARY KEY (`Id`);

--
-- Indexes for table `permissions`
--
ALTER TABLE `permissions`
  ADD PRIMARY KEY (`Id`);

--
-- Indexes for table `product`
--
ALTER TABLE `product`
  ADD PRIMARY KEY (`Id`);

--
-- Indexes for table `salesman`
--
ALTER TABLE `salesman`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `user`
--
ALTER TABLE `user`
  ADD PRIMARY KEY (`user_id`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `customer`
--
ALTER TABLE `customer`
  MODIFY `customer_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8416;

--
-- AUTO_INCREMENT for table `customer_menu`
--
ALTER TABLE `customer_menu`
  MODIFY `customer_menu_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=82888;

--
-- AUTO_INCREMENT for table `menu`
--
ALTER TABLE `menu`
  MODIFY `menu_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=91;

--
-- AUTO_INCREMENT for table `menu_option`
--
ALTER TABLE `menu_option`
  MODIFY `menu_option_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=22;

--
-- AUTO_INCREMENT for table `modification`
--
ALTER TABLE `modification`
  MODIFY `Id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=25;

--
-- AUTO_INCREMENT for table `permissions`
--
ALTER TABLE `permissions`
  MODIFY `Id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=73;

--
-- AUTO_INCREMENT for table `product`
--
ALTER TABLE `product`
  MODIFY `Id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `salesman`
--
ALTER TABLE `salesman`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=25;

--
-- AUTO_INCREMENT for table `user`
--
ALTER TABLE `user`
  MODIFY `user_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=18;
COMMIT;

/*!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 */;
