-- phpMyAdmin SQL Dump
-- version 5.2.1
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Nov 21, 2024 at 10:02 AM
-- Server version: 5.5.68-MariaDB
-- PHP Version: 8.3.11

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
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: `koreauto_dreamparadisedb`
--

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

--
-- Table structure for table `all_discount_tbl`
--

CREATE TABLE `all_discount_tbl` (
  `all_discount_tbl_id` int(11) NOT NULL,
  `discount_val` float NOT NULL DEFAULT '0',
  `discount_type` int(11) NOT NULL DEFAULT '0',
  `status` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `all_discount_tbl`
--

INSERT INTO `all_discount_tbl` (`all_discount_tbl_id`, `discount_val`, `discount_type`, `status`) VALUES
(1, 0, 1, 0);

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

--
-- Table structure for table `bank_details`
--

CREATE TABLE `bank_details` (
  `bank_detail_id` int(11) NOT NULL,
  `name` varchar(30) NOT NULL,
  `account_number` int(11) NOT NULL,
  `bank` varchar(30) NOT NULL,
  `branch` varchar(30) NOT NULL,
  `branch_id` int(11) NOT NULL,
  `added_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Table structure for table `branch`
--

CREATE TABLE `branch` (
  `branch_id` int(11) NOT NULL,
  `branch_name` varchar(255) NOT NULL,
  `phonenumbers` text NOT NULL,
  `address` text NOT NULL,
  `email` varchar(100) NOT NULL,
  `logo` varchar(254) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `branch`
--

INSERT INTO `branch` (`branch_id`, `branch_name`, `phonenumbers`, `address`, `email`, `logo`) VALUES
(1, 'Dream Paradise Water Front by Capricorn', '077 69 000 69', 'Matale', 'dreamparadise@gmail.com', 'images/quotation/873535.jpeg');

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

--
-- Table structure for table `cash_in_out`
--

CREATE TABLE `cash_in_out` (
  `cash_id` int(11) NOT NULL,
  `added_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `date` date NOT NULL,
  `m5000` int(11) NOT NULL DEFAULT '0',
  `m1000` int(11) NOT NULL DEFAULT '0',
  `m500` int(11) NOT NULL DEFAULT '0',
  `m100` int(11) NOT NULL DEFAULT '0',
  `m50` int(11) NOT NULL DEFAULT '0',
  `m20` int(11) NOT NULL DEFAULT '0',
  `coins` int(11) NOT NULL DEFAULT '0',
  `user_id` int(11) NOT NULL,
  `branch_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `cash_out`
--

CREATE TABLE `cash_out` (
  `cashoutid` int(11) NOT NULL,
  `added_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `date` date NOT NULL,
  `m5000` int(11) NOT NULL,
  `m1000` int(11) NOT NULL,
  `m500` int(11) NOT NULL,
  `m100` int(11) NOT NULL,
  `m50` int(11) NOT NULL,
  `m20` int(11) NOT NULL,
  `coins` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `branch_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `invoice_other_details`
--

CREATE TABLE `invoice_other_details` (
  `invoice_other_id` int(11) NOT NULL,
  `order_id` int(11) NOT NULL,
  `branch_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `invoice_other_details`
--

INSERT INTO `invoice_other_details` (`invoice_other_id`, `order_id`, `branch_id`) VALUES
(1, 1, 1),
(2, 1, 1);

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

--
-- Table structure for table `mobilecategory`
--

CREATE TABLE `mobilecategory` (
  `ctid` int(11) NOT NULL,
  `catename` varchar(50) NOT NULL,
  `add_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `status` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `mobilecategory`
--

INSERT INTO `mobilecategory` (`ctid`, `catename`, `add_date`, `status`) VALUES
(1, 'None', '2024-08-30 07:09:53', 1),
(2, 'Rooms', '2024-11-07 06:26:06', 1),
(4, 'Services', '2024-11-07 06:26:17', 1),
(5, 'Resturants', '2024-11-07 06:26:47', 1),
(6, 'Hotels', '2024-11-07 06:26:58', 1),
(7, 'Bar', '2024-11-07 06:32:12', 1),
(8, 'Others', '2024-11-07 06:32:23', 1);

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

--
-- Table structure for table `mobilecity`
--

CREATE TABLE `mobilecity` (
  `cyid` int(11) NOT NULL,
  `country` int(11) NOT NULL,
  `cityname` varchar(100) NOT NULL,
  `crate` float NOT NULL,
  `add_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `status` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `mobilecity`
--

INSERT INTO `mobilecity` (`cyid`, `country`, `cityname`, `crate`, `add_date`, `status`) VALUES
(1, 1, 'Piliyandala', 200, '2024-01-07 14:09:03', 1);

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

--
-- Table structure for table `mobilecountry`
--

CREATE TABLE `mobilecountry` (
  `coid` int(11) NOT NULL,
  `countryname` varchar(50) NOT NULL,
  `add_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `status` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `mobilecountry`
--

INSERT INTO `mobilecountry` (`coid`, `countryname`, `add_date`, `status`) VALUES
(1, 'Sri Lanka', '2022-11-25 15:23:47', 1);

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

--
-- Table structure for table `mobilecustomerquote`
--

CREATE TABLE `mobilecustomerquote` (
  `cqid` int(11) NOT NULL,
  `custid` int(11) NOT NULL,
  `prid` int(11) NOT NULL,
  `product_type_id` int(11) NOT NULL,
  `fram_width` int(11) NOT NULL,
  `fram_height` int(11) NOT NULL,
  `numberofpleats` int(11) NOT NULL,
  `pole` int(11) NOT NULL,
  `per_unit` float NOT NULL,
  `qty` int(11) NOT NULL,
  `total` float NOT NULL,
  `add_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `status` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `mobilecustomers`
--

CREATE TABLE `mobilecustomers` (
  `coid` int(11) NOT NULL,
  `customerid` int(11) NOT NULL,
  `cname` varchar(50) NOT NULL,
  `cemail` varchar(50) NOT NULL,
  `cphone` varchar(20) NOT NULL,
  `caddress` text NOT NULL,
  `ccredit` float NOT NULL,
  `add_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `status` int(11) NOT NULL,
  `credit_limit` float NOT NULL,
  `comission` float NOT NULL,
  `route` int(11) DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `mobilecustomers`
--

INSERT INTO `mobilecustomers` (`coid`, `customerid`, `cname`, `cemail`, `cphone`, `caddress`, `ccredit`, `add_date`, `status`, `credit_limit`, `comission`, `route`) VALUES
(1, 0, 'N/W', '', '01122222222', 'Colombo', 0, '2024-11-07 06:42:48', 1, 0, 0, 0);

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

--
-- Table structure for table `mobilecustomizedproduct`
--

CREATE TABLE `mobilecustomizedproduct` (
  `cpid` int(11) NOT NULL,
  `customizedproductid` int(11) NOT NULL,
  `includeproduct` int(11) NOT NULL,
  `inqty` decimal(10,2) NOT NULL,
  `branch_id` int(11) NOT NULL,
  `add_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `status` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `mobilecustomizedproduct`
--

INSERT INTO `mobilecustomizedproduct` (`cpid`, `customizedproductid`, `includeproduct`, `inqty`, `branch_id`, `add_date`, `status`) VALUES
(1, 155, 148, 2.00, 1, '2024-10-10 01:13:34', 1);

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

--
-- Table structure for table `mobileexpense`
--

CREATE TABLE `mobileexpense` (
  `expid` int(11) NOT NULL,
  `expcategory` int(11) NOT NULL,
  `expdate` date NOT NULL,
  `amount` float NOT NULL,
  `refno` varchar(20) NOT NULL,
  `expname` varchar(100) NOT NULL,
  `expdescription` text NOT NULL,
  `add_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `status` int(11) NOT NULL,
  `branch_id` int(11) NOT NULL DEFAULT '0',
  `user_id` int(11) NOT NULL,
  `lottery_number` varchar(30) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `mobileexpensecategory`
--

CREATE TABLE `mobileexpensecategory` (
  `epid` int(11) NOT NULL,
  `epname` varchar(100) NOT NULL,
  `add_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `status` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `mobileexpensecategory`
--

INSERT INTO `mobileexpensecategory` (`epid`, `epname`, `add_date`, `status`) VALUES
(1, 'None', '2024-05-06 07:09:37', 1),
(3, 'Desal', '2024-06-08 16:21:12', 1),
(4, 'Foods', '2024-06-08 16:32:38', 1),
(5, 'Other', '2024-11-07 06:41:41', 1),
(6, 'Salary Advance ', '2024-11-07 06:41:38', 1),
(7, 'Petrol', '2024-11-07 06:41:54', 1),
(8, 'Lottery', '2024-06-27 10:25:26', 1);

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

--
-- Table structure for table `mobilelocation`
--

CREATE TABLE `mobilelocation` (
  `loid` int(11) NOT NULL,
  `country` int(11) NOT NULL,
  `location` varchar(50) NOT NULL,
  `add_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `status` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `mobileorders`
--

CREATE TABLE `mobileorders` (
  `order_id` int(11) NOT NULL,
  `orid` varchar(20) NOT NULL,
  `pay_option` varchar(50) NOT NULL,
  `amount` float NOT NULL,
  `paid_amount` float NOT NULL,
  `due_amount` float NOT NULL,
  `card_no` varchar(20) DEFAULT NULL,
  `cheque_no` text,
  `cheque_due_date` varchar(50) DEFAULT NULL,
  `customer` varchar(10) DEFAULT NULL,
  `delivery_cost` float DEFAULT NULL,
  `country` int(11) DEFAULT NULL,
  `city` int(11) DEFAULT NULL,
  `user_id` int(11) NOT NULL,
  `create_at` datetime NOT NULL,
  `status` int(11) NOT NULL DEFAULT '0',
  `discount` float NOT NULL DEFAULT '0',
  `payment_option_number` varchar(50) DEFAULT NULL,
  `dis_type` int(11) NOT NULL DEFAULT '0',
  `branch_id` int(11) NOT NULL DEFAULT '0',
  `admin_id` int(11) NOT NULL DEFAULT '0',
  `admin_commiision` float NOT NULL DEFAULT '0',
  `customer_commision` float NOT NULL DEFAULT '0',
  `cheque_number` varchar(150) NOT NULL,
  `gift_card_number` varchar(20) DEFAULT NULL,
  `mobile_payment_method` varchar(20) DEFAULT NULL,
  `all_discount` float NOT NULL DEFAULT '0',
  `discount_type` int(11) NOT NULL DEFAULT '0',
  `tax` float NOT NULL DEFAULT '0',
  `tax_type` int(11) NOT NULL DEFAULT '0',
  `cardpayment` float NOT NULL DEFAULT '0',
  `kot_id` int(11) NOT NULL DEFAULT '0',
  `room` varchar(10) NOT NULL DEFAULT '0',
  `table_no` varchar(10) NOT NULL DEFAULT '0',
  `order_type` varchar(20) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `mobilepayees`
--

CREATE TABLE `mobilepayees` (
  `pyid` int(11) NOT NULL,
  `prefno` varchar(50) NOT NULL,
  `mobileany` int(11) NOT NULL,
  `paytype` int(11) NOT NULL,
  `currency` varchar(20) NOT NULL,
  `payname` varchar(50) NOT NULL,
  `payaddress` text NOT NULL,
  `paycountry` int(11) NOT NULL,
  `telephoneno` int(11) NOT NULL,
  `email` varchar(50) NOT NULL,
  `website` varchar(50) NOT NULL,
  `bankdetails` int(11) NOT NULL,
  `note` text NOT NULL,
  `add_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `status` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `mobilepaymentmethod`
--

CREATE TABLE `mobilepaymentmethod` (
  `pmid` int(11) NOT NULL,
  `pmname` varchar(50) NOT NULL,
  `add_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `status` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `mobilepaytype`
--

CREATE TABLE `mobilepaytype` (
  `ptid` int(11) NOT NULL,
  `ptname` varchar(50) NOT NULL,
  `add_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `status` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `mobilepaytype`
--

INSERT INTO `mobilepaytype` (`ptid`, `ptname`, `add_date`, `status`) VALUES
(1, 'Customer', '2022-09-06 10:06:56', 1),
(2, 'Supplier', '2022-09-06 10:07:16', 1);

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

--
-- Table structure for table `mobileproducts`
--

CREATE TABLE `mobileproducts` (
  `prid` int(11) NOT NULL,
  `prcode` varchar(20) CHARACTER SET utf8 NOT NULL,
  `itemcode` varchar(20) CHARACTER SET utf8 NOT NULL,
  `proname` varchar(200) COLLATE utf8_unicode_ci NOT NULL,
  `category` int(11) NOT NULL,
  `subcategory` int(11) DEFAULT '0',
  `supplier` int(11) NOT NULL,
  `unit` int(11) NOT NULL,
  `expdate` date NOT NULL,
  `mqty` decimal(10,2) NOT NULL,
  `qty` decimal(10,2) NOT NULL,
  `pdescription` text CHARACTER SET utf8 NOT NULL,
  `discount1` float NOT NULL DEFAULT '0',
  `discountpersentage` varchar(10) CHARACTER SET utf8 DEFAULT NULL,
  `price` float NOT NULL DEFAULT '0',
  `profitmargin` float NOT NULL DEFAULT '0',
  `sellprice` float NOT NULL DEFAULT '0',
  `cover` varchar(500) CHARACTER SET utf8 NOT NULL,
  `add_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `status` int(11) NOT NULL,
  `producttype` varchar(20) CHARACTER SET utf8 NOT NULL,
  `brand_id` int(11) NOT NULL,
  `market_price` float NOT NULL,
  `warranty` text COLLATE utf8_unicode_ci NOT NULL,
  `discount_type1` int(11) NOT NULL DEFAULT '0',
  `tax1` float NOT NULL DEFAULT '0',
  `tax_type1` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `mobileproducts`
--

INSERT INTO `mobileproducts` (`prid`, `prcode`, `itemcode`, `proname`, `category`, `subcategory`, `supplier`, `unit`, `expdate`, `mqty`, `qty`, `pdescription`, `discount1`, `discountpersentage`, `price`, `profitmargin`, `sellprice`, `cover`, `add_date`, `status`, `producttype`, `brand_id`, `market_price`, `warranty`, `discount_type1`, `tax1`, `tax_type1`) VALUES
(148, '0000148', '0000148', 'genaral items', 1, 1, 1, 1, '0000-00-00', 5.00, 11000.00, '', 0, NULL, 0, 0, 0, '', '2024-11-07 06:44:23', 1, 'None', 1, 0, '', 0, 0, 0),
(149, '0000149', '0000149', 'Black Opal Arrack 750ml', 7, 2, 1, 1, '0000-00-00', 5.00, 100.00, '', 0, NULL, 3549, 371, 3920, '', '2024-11-21 03:57:42', 1, 'Product', 1, 3920, 'None', 0, 0, 0),
(150, '0000150', '0000150', 'Black Opal Arrack 375ml', 7, 2, 1, 1, '0000-00-00', 5.00, 100.00, '', 0, NULL, 1864, 196, 2060, '', '2024-11-21 03:58:44', 1, 'Product', 1, 2060, 'None', 0, 0, 0),
(151, '0000151', 'SL031', 'Black Opal Arrack 180ml', 7, 2, 1, 1, '0000-00-00', 5.00, 100.00, '', 0, NULL, 915, 125, 1040, '', '2024-11-21 03:59:52', 1, 'Product', 1, 1040, 'None', 0, 0, 0),
(152, '0000152', 'SL035', 'Trple Blue Arrack 750ml', 7, 2, 1, 1, '0000-00-00', 5.00, 100.00, '', 0, NULL, 3341, 359, 3700, '', '2024-11-21 04:01:10', 1, 'Product', 1, 3700, 'None', 0, 0, 0),
(153, '0000153', 'SL037', 'Trple Blue Arrack 375ml', 7, 2, 1, 1, '0000-00-00', 5.00, 100.00, '', 0, NULL, 1670, 190, 1860, '', '2024-11-21 04:02:18', 1, 'Product', 1, 1860, 'None', 0, 0, 0);

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

--
-- Table structure for table `mobilepurchase`
--

CREATE TABLE `mobilepurchase` (
  `q_id` int(11) NOT NULL,
  `q_customer` int(11) NOT NULL,
  `q_amount` float NOT NULL,
  `q_user` int(11) NOT NULL,
  `q_date` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `mobilepurchase_items`
--

CREATE TABLE `mobilepurchase_items` (
  `qi_id` int(11) NOT NULL,
  `qi_no` int(11) NOT NULL,
  `qi_pro_id` int(11) NOT NULL,
  `qi_pro_price` float NOT NULL,
  `qi_pro_qty` int(11) NOT NULL,
  `qi_pro_discount` float NOT NULL,
  `qi_user` int(11) NOT NULL,
  `qi_date` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `mobileroombooking`
--

CREATE TABLE `mobileroombooking` (
  `rbid` int(11) NOT NULL,
  `booknumber` varchar(20) NOT NULL,
  `customer` int(10) NOT NULL,
  `room` int(10) NOT NULL,
  `checkindate` date NOT NULL,
  `checkoutdate` date NOT NULL,
  `capacity` int(10) NOT NULL,
  `note` text NOT NULL,
  `add_date` int(11) NOT NULL,
  `status` int(10) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `mobilerooms`
--

CREATE TABLE `mobilerooms` (
  `rmid` int(11) NOT NULL,
  `roomtype` int(10) NOT NULL,
  `roomname` varchar(100) NOT NULL,
  `capacity` int(10) NOT NULL,
  `roomprice` float NOT NULL,
  `roomdescription` text NOT NULL,
  `add_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `status` int(10) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `mobileroomtype`
--

CREATE TABLE `mobileroomtype` (
  `rtid` int(11) NOT NULL,
  `typename` varchar(50) NOT NULL,
  `add_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `status` int(10) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `mobileroute`
--

CREATE TABLE `mobileroute` (
  `rtid` int(11) NOT NULL,
  `routename` varchar(50) NOT NULL,
  `add_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `status` int(10) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `mobileroute`
--

INSERT INTO `mobileroute` (`rtid`, `routename`, `add_date`, `status`) VALUES
(1, 'None', '2024-11-07 06:41:23', 1);

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

--
-- Table structure for table `mobilesettings`
--

CREATE TABLE `mobilesettings` (
  `stid` int(11) NOT NULL,
  `systemname` varchar(100) NOT NULL,
  `permission` varchar(20) NOT NULL,
  `themecolor` varchar(20) NOT NULL,
  `systemlogo` varchar(500) NOT NULL,
  `add_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `status` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `mobilesettings`
--

INSERT INTO `mobilesettings` (`stid`, `systemname`, `permission`, `themecolor`, `systemlogo`, `add_date`, `status`) VALUES
(1, 'Dream Paradise Water Front by Capricorn', 'Yes', 'Blue', '999882.png', '2024-11-21 01:59:26', 1);

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

--
-- Table structure for table `mobilestock`
--

CREATE TABLE `mobilestock` (
  `sid` int(11) NOT NULL,
  `productid` int(11) NOT NULL,
  `pqty` decimal(10,2) NOT NULL,
  `add_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `status` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `mobilesubcategory`
--

CREATE TABLE `mobilesubcategory` (
  `sbid` int(11) NOT NULL,
  `category` int(11) NOT NULL,
  `subname` varchar(50) NOT NULL,
  `add_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `status` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `mobilesubcategory`
--

INSERT INTO `mobilesubcategory` (`sbid`, `category`, `subname`, `add_date`, `status`) VALUES
(1, 1, 'N/W', '2024-08-30 07:10:32', 1),
(2, 7, 'Arrack', '2024-11-21 03:54:24', 1),
(3, 7, 'Arrack - Shots', '2024-11-21 03:54:37', 1),
(4, 7, 'Whiskey', '2024-11-21 03:54:51', 1),
(5, 7, 'Whiskey - Shots', '2024-11-21 03:55:04', 1),
(6, 7, 'Brandy', '2024-11-21 03:55:24', 1),
(7, 7, 'Brandy - Shots', '2024-11-21 03:55:34', 1);

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

--
-- Table structure for table `mobilesuppliers`
--

CREATE TABLE `mobilesuppliers` (
  `spid` int(11) NOT NULL,
  `vtype` varchar(20) NOT NULL,
  `spname` varchar(100) NOT NULL,
  `spemail` varchar(50) NOT NULL,
  `spphone` varchar(20) NOT NULL,
  `spphone1` varchar(20) NOT NULL,
  `spphone2` varchar(20) NOT NULL,
  `spaddress` text NOT NULL,
  `spdescription` text NOT NULL,
  `credit` float NOT NULL,
  `add_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `status` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `mobilesuppliers`
--

INSERT INTO `mobilesuppliers` (`spid`, `vtype`, `spname`, `spemail`, `spphone`, `spphone1`, `spphone2`, `spaddress`, `spdescription`, `credit`, `add_date`, `status`) VALUES
(1, 'Supplier', 'None', 'nw@gmail.com', '0000000', '000000000', '0000000', 'N/W', 'N/W', 0, '2024-03-11 07:20:29', 1);

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

--
-- Table structure for table `mobiletemporarycart`
--

CREATE TABLE `mobiletemporarycart` (
  `tempid` int(11) NOT NULL,
  `orderid` int(11) NOT NULL DEFAULT '0',
  `proid` int(11) NOT NULL,
  `pro_price` float NOT NULL,
  `pro_dis` float NOT NULL,
  `pro_qty` decimal(10,2) NOT NULL,
  `user_id` int(11) NOT NULL,
  `return_qty` int(11) NOT NULL DEFAULT '0',
  `return_date` datetime NOT NULL,
  `return_user` int(11) NOT NULL,
  `hold` int(11) NOT NULL DEFAULT '0',
  `pro_name` varchar(50) DEFAULT NULL,
  `pro_discount` float NOT NULL DEFAULT '0',
  `pro_dis_price` float NOT NULL DEFAULT '0',
  `discount_type` int(11) NOT NULL DEFAULT '0',
  `branch_id` int(11) NOT NULL DEFAULT '0',
  `added_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `return_to_new` int(11) NOT NULL DEFAULT '0',
  `return_item_id` int(11) NOT NULL DEFAULT '0',
  `tax` float NOT NULL DEFAULT '0',
  `tax_type` int(11) NOT NULL DEFAULT '0',
  `freeitem` int(11) NOT NULL DEFAULT '0',
  `market_return` int(11) NOT NULL DEFAULT '0',
  `market_price2` float NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `mobiletype`
--

CREATE TABLE `mobiletype` (
  `tyid` int(11) NOT NULL,
  `type_name` varchar(50) NOT NULL,
  `width` int(11) NOT NULL,
  `height` int(11) NOT NULL,
  `noofpleats` int(11) NOT NULL,
  `add_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `status` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `mobileusers`
--

CREATE TABLE `mobileusers` (
  `user_id` int(11) NOT NULL,
  `image` varchar(500) NOT NULL,
  `fullname` varchar(50) NOT NULL,
  `user_name` varchar(15) NOT NULL,
  `user_email` varchar(40) NOT NULL,
  `user_pass` varchar(255) NOT NULL,
  `admintype` int(10) NOT NULL,
  `ucomission` float NOT NULL,
  `joining_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `status` varchar(20) NOT NULL,
  `branch_id` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `mobileusers`
--

INSERT INTO `mobileusers` (`user_id`, `image`, `fullname`, `user_name`, `user_email`, `user_pass`, `admintype`, `ucomission`, `joining_date`, `status`, `branch_id`) VALUES
(1, '693864.png', 'Dream Paradise', 'admin', 'dreamparadise@gmail.com', '$2y$10$YR84zna.NeLw97iVGttDCeSZFwJk6BzfNg6S6GZ2V6eqChiM9doAK', 1, 0, '2024-11-21 02:17:16', '1', 1),
(2, '474636.png', 'Kamal Silva', 'kamal4', 'kamal4@gmail.com', '$2y$10$6aDuY.2EcldfS1rH654idOWmYqhnQt5k0M05Gekc0vvo8bdcyaacy', 6, 0, '2024-08-06 18:28:26', '1', 1);

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

--
-- Table structure for table `mobile_brand`
--

CREATE TABLE `mobile_brand` (
  `brand_id` int(11) NOT NULL,
  `brand_name` varchar(100) NOT NULL,
  `status` int(11) NOT NULL DEFAULT '1',
  `added_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `mobile_brand`
--

INSERT INTO `mobile_brand` (`brand_id`, `brand_name`, `status`, `added_date`) VALUES
(1, 'None', 1, '2024-08-29 12:34:24');

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

--
-- Table structure for table `mobile_credit_payments`
--

CREATE TABLE `mobile_credit_payments` (
  `credit_payment_id` int(11) NOT NULL,
  `customer_id` int(11) NOT NULL,
  `paymethod` varchar(20) NOT NULL,
  `chequenumber` int(10) NOT NULL,
  `chequedate` date NOT NULL,
  `added_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `amount` float NOT NULL,
  `user_id` int(11) NOT NULL,
  `branch_id` int(11) NOT NULL,
  `cheque_is_paid` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Table structure for table `mobile_drawer_balance`
--

CREATE TABLE `mobile_drawer_balance` (
  `drawer_balance_id` int(11) NOT NULL,
  `drawer_balance_date` datetime NOT NULL,
  `branch_id` int(11) NOT NULL,
  `added_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `user_id` int(11) NOT NULL,
  `amount` float NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Table structure for table `mobile_kot`
--

CREATE TABLE `mobile_kot` (
  `kot_id` int(11) NOT NULL,
  `added_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `order_type` varchar(10) NOT NULL,
  `print` int(11) NOT NULL DEFAULT '1',
  `status` int(11) NOT NULL DEFAULT '0',
  `order_id` int(11) NOT NULL DEFAULT '0',
  `table_no` varchar(10) NOT NULL DEFAULT '0',
  `room_no` varchar(10) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `mobile_order_type`
--

CREATE TABLE `mobile_order_type` (
  `type_Id` int(11) NOT NULL,
  `order_type` varchar(20) NOT NULL,
  `added_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `mobile_order_type`
--

INSERT INTO `mobile_order_type` (`type_Id`, `order_type`, `added_date`) VALUES
(1, 'Dine In', '2024-03-19 07:50:49'),
(2, 'Take Away', '2024-03-19 07:51:23'),
(3, 'Delivery', '2024-03-19 07:51:49'),
(4, 'Table', '2024-03-19 07:52:00');

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

--
-- Table structure for table `mobile_purchase_order`
--

CREATE TABLE `mobile_purchase_order` (
  `purchase_order_id` int(11) NOT NULL,
  `purchase_order_no` varchar(50) DEFAULT NULL,
  `added_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `suppler_id` int(11) NOT NULL,
  `total_amount` float NOT NULL DEFAULT '0',
  `invoice_no` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `mobile_tables`
--

CREATE TABLE `mobile_tables` (
  `table_id` int(11) NOT NULL,
  `table_no` varchar(5) NOT NULL,
  `sit_capacity` int(11) NOT NULL,
  `added_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` int(11) NOT NULL DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `mobile_tables`
--

INSERT INTO `mobile_tables` (`table_id`, `table_no`, `sit_capacity`, `added_date`, `status`) VALUES
(1, '01', 4, '2024-06-12 17:54:51', 1),
(2, '02', 2, '2024-06-12 17:57:03', 1),
(3, '03', 2, '2024-06-12 17:57:20', 1),
(4, '04', 2, '2024-06-12 17:57:34', 1),
(5, '05', 4, '2024-06-12 17:57:46', 1);

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

--
-- Table structure for table `mobile_table_availability`
--

CREATE TABLE `mobile_table_availability` (
  `table_availability_id` int(11) NOT NULL,
  `table_id` int(11) NOT NULL,
  `table_fill` int(11) NOT NULL,
  `availability_status` int(11) NOT NULL,
  `added_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `money_in_out`
--

CREATE TABLE `money_in_out` (
  `money_in_id` int(11) NOT NULL,
  `money` float NOT NULL DEFAULT '0',
  `in_out` int(11) NOT NULL,
  `added_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `reson` varchar(50) NOT NULL,
  `branch_id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `order_type`
--

CREATE TABLE `order_type` (
  `order_type_id` int(11) NOT NULL,
  `order_type` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `order_type`
--

INSERT INTO `order_type` (`order_type_id`, `order_type`) VALUES
(1, 'Table');

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

--
-- Table structure for table `pages`
--

CREATE TABLE `pages` (
  `page_id` int(11) NOT NULL,
  `page_link` varchar(100) NOT NULL,
  `page_name` varchar(100) NOT NULL,
  `module_name` varchar(100) NOT NULL,
  `action` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `pages`
--

INSERT INTO `pages` (`page_id`, `page_link`, `page_name`, `module_name`, `action`) VALUES
(1, 'home.php', 'Dashboard', 'Dashboard', 'View'),
(140, 'user-permissions.php', 'User Permissions', 'Users', 'Update'),
(141, 'categorylist.php', 'Category List', 'Category', 'View'),
(142, 'addcategory.php', 'Add Category', 'Category', 'Add'),
(143, 'editcategory.php', 'Edit Category', 'Category', 'Edit'),
(144, 'deletecategory.php', 'Delete Category', 'Category', 'Delete'),
(145, 'saleslist.php', 'Sales List', 'Sales', 'View'),
(146, 'pos-panel.php', 'Pos Panel', 'Sales', 'Add'),
(148, 'subcategorylist.php', 'List Sub Category', 'Sub Category', 'View'),
(149, 'editsubcategory.php', 'Edit Sub Category', 'Sub Category', 'Edit'),
(150, 'delete_subcategory.php', 'Delete Subcategory', 'Subcategory', 'Delete'),
(151, 'brandlist.php', 'Brand List', 'Brand', 'View'),
(152, 'addbrand.php', 'Add Brand', 'Brand', 'Add'),
(153, 'unitlist.php', 'Unit List ', 'Unit', 'View'),
(154, 'editunit.php', 'Edit Unit', 'Unit', 'Edit'),
(155, 'deleteunit.php', 'Delete Unit', 'Unit', 'Delete'),
(156, 'addunit.php', 'Add Unit', 'Unit', 'Add'),
(157, 'productlist.php', 'Product List', 'Product', 'View'),
(158, 'editproduct.php', 'Edit Product', 'Product', 'Edit'),
(159, 'deleteproduct.php', 'Delete Product', 'Product', 'Delete'),
(160, 'addproduct.php', 'Add Product', 'Product', 'Add'),
(161, 'customizedproductlist.php', 'Customized Product List', 'Product', 'View'),
(162, 'addcustomizedproduct.php', 'Add Customized Product', 'Product', 'Add'),
(163, 'importproduct.php', 'Import Product', 'Product', 'Add'),
(164, 'stocklist.php', 'Stock List', 'Product', 'View'),
(165, 'editstock.php', 'Edit Stock', 'Product', 'Edit'),
(166, 'deletestock.php', 'Delete Stock', 'Product', 'Delete'),
(167, 'addstock.php', 'Add Stock', 'Product', 'Add'),
(168, 'genaratebarcode.php', 'Genarate Barcode', 'Barcode', 'Add'),
(169, 'add-quotation.php', 'Add Quotation', 'Quotation', 'Add'),
(170, 'quotationlist.php', 'Quotation List', 'Quotation', 'View'),
(171, 'expenselist.php', 'Expense List', 'Expense', 'View'),
(172, 'createexpense.php', 'Create Expense', 'Expense', 'Add'),
(173, 'expensecategorylist.php', 'Expense Category List', 'Expense', 'View'),
(174, 'salesreturnlist.php', 'Sales Return List ', 'Sales Return', 'View'),
(175, 'createsales_return.php', 'Add Slaes Rerturn', 'Slaes Rerturn', 'Add'),
(176, 'customerlist.php', 'Customer List', 'Customer', 'View'),
(177, 'editcustomer.php', 'Edit Customer', 'Customer', 'Edit'),
(178, 'deletecustomer.php', 'Delete Customer', 'Customer', 'Delete'),
(179, 'addcustomer.php', 'Add Customer', 'Customer', 'Add'),
(180, 'supplierlist.php', 'Supplier List', 'Supplier', 'View'),
(181, 'editsupplier.php', 'Edit Supplier', 'Supplier', 'Edit'),
(182, 'deletesupplier.php', 'Delete Supplier', 'Supplier', 'Delete'),
(183, 'addsupplier.php', 'Add Supplier', 'Supplier', 'Add'),
(184, 'branchlist.php', 'Branch List', 'Company Details', 'View'),
(185, 'editbranch.php', 'Edit Branch', 'Company Details', 'Edit'),
(186, 'deletebranch.php', 'Delete Branch', 'Company Details', 'Delete'),
(187, 'addbranch.php', 'Add Branch', 'Company Details', 'Add'),
(188, 'all-bank-details.php', 'Bank Details', 'Company Details', 'View'),
(189, 'add-bank-details.php', 'Add Bank Details', 'Company Details', 'Add'),
(190, 'all-terms-condition.php', 'Terms Condition', 'Company Details', 'View'),
(191, 'add-terms-condition.php', 'Add Terms Condition', 'Company Details', 'Add'),
(192, 'drawerlist.php', 'Drawer List', 'Drawer Balance', 'View'),
(193, 'adddrawer.php', 'Add Drawer Balance', 'Drawer Balance', 'Add'),
(194, 'addcredit.php', 'Add Credit', 'Credit Balance', 'Add'),
(195, 'listcredit.php', 'List Credit', 'Credit Balance', 'View'),
(196, 'addpurchaseorder.php', 'Add Purchase Order', 'Purchase Order', 'Add'),
(197, 'listpurchaseorder.php', 'List Purchase Order', 'Purchase Order', 'View'),
(198, 'view-purchase-order.php', 'View Purchase Order Items', 'Purchase Order', 'View'),
(199, 'addtable.php', 'Add Table', 'Table', 'Add'),
(200, 'listtables.php', 'List Tables', 'Tables', 'View'),
(201, 'istkot.php', 'List kot', 'KOT', 'View'),
(202, 'view-kot.php', 'View KOT', 'KOT', 'View'),
(203, 'salesreport.php', 'Sales Report', 'Report', 'View'),
(204, 'stockreport.php', 'Stock Report', 'Report', 'View'),
(205, 'quotationreport.php', 'Quotation Report', 'Report', 'View'),
(206, 'customerreport.php', 'Customer Report', 'Report', 'View'),
(207, 'supplierreport.php', 'Supplier Report', 'Report', 'View'),
(208, 'supplier-wise-product.php', 'Supplier Wise Product', 'Report', 'View'),
(209, 'credit-update-report.php', 'Credit Update Report', 'Report', 'View'),
(210, 'profit-report.php', 'Profit Report', 'Report', 'View'),
(211, 'cash-payment-report.php', 'Cash Payment Report', 'Report', 'View'),
(212, 'cheques-payment-report.php', 'Cheques Payment Report ', 'Report ', 'View'),
(213, 'card-payment-report.php', 'Card Payment Report', 'Report', 'View'),
(214, 'dine-in-order-report.php', 'Dine in Order Report', 'Report', 'View'),
(215, 'take-away-order-report.php', 'Take Away Order Report', 'Report', 'View'),
(216, 'delivery-order-report.php', 'Delivery Order Report', 'Report', 'View'),
(217, 'table-order-report.php', 'Table Order Report', 'Report', 'View'),
(218, 'purchase-order-report.php', 'Purchase Order Report', 'Report', 'View'),
(219, 'return-report.php', 'Return Report', 'Report', 'View'),
(220, 'newuser.php', 'Add User', 'User', 'View'),
(221, 'userlists.php', 'User List', 'User ', 'View'),
(222, 'newuseredit.php', 'Edit User', 'User', 'Edit'),
(223, 'deleteuser.php', 'Delete User', 'User', 'Delete'),
(224, 'add-user-group.php', 'Add User Group', 'User', 'Add'),
(225, 'list-user-groups.php', 'List User Groups', 'User', 'View'),
(226, 'edit-user-group.php', 'Edit User Group', 'User', 'Edit'),
(227, 'delete-user-group.php', 'Delete User Group ', 'User', 'Delete'),
(228, 'money-in.php', 'Money In', 'Cash In Out', 'Add'),
(229, 'money-out.php', 'Money Out', 'Cash In Out', 'Add'),
(230, 'listmoneyin.php', 'List Money In', 'Cash In Out', 'View'),
(231, 'listmoneyout.php', 'List Money Out', 'Cash In Out', 'View'),
(232, 'return-list.php', 'Return List', 'Return ', 'View'),
(233, 'add-sales-return.php', 'Add Sales Return', 'Return', 'Add'),
(234, 'return-stock.php', 'Return Stock', 'Return ', 'View'),
(235, 'cashsalesreport.php', 'Cash Sales Report', 'Report', 'View'),
(236, 'cardsalesreport.php', 'Card Sales Report', 'Report', 'View'),
(237, 'banktransfersalesreport.php', 'Bank Transfer Sales Report', 'Report', 'View'),
(238, 'chequessalesreport.php', 'Cheques Sales Report', 'Report', 'View'),
(239, 'customercommissionreport.php', 'Customer Commission Report', 'Report', 'View'),
(240, 'employeescommissionreport.php', 'Employees Commission Report', 'Report', 'View'),
(241, 'stock-valivation-report.php', 'Stock Valivation Report', 'Report', 'View'),
(242, 'expenses-report.php', 'Expenses Report', 'Report', 'View'),
(243, 'supplier-wise-payments-report.php', 'Supplier Wise Payments Report', 'Report', 'View'),
(244, 'product-wise-sales-report.php', 'Product Wise Sales Report', 'Report', 'View'),
(245, 'seller-wise-sales-report.php', 'Seller Wise Sales Report', 'Report', 'View'),
(246, 'seller-wise-stock-valivation-report.php', 'Seller Wise Stock Valivation Report', 'Report', 'View'),
(247, 'stock-report.php', 'Sales Stock Report', 'Report', 'View'),
(248, 'customer-report.php', 'Customer Report', 'Report', 'View'),
(249, 'purchase-order-payments.php', 'Purchase Order Payments', 'Purchase Order', 'Add'),
(250, 'purchase-order-paymnets-list.php', 'Purchase Order Paymnets List', 'Purchase Order', 'View'),
(251, 'subaddcategory.php', 'Add Subcategory', 'Subcategory', 'Add'),
(252, 'pedding-sales-bill.php', 'Pedding Sales Bill', 'Pedding Sales Bill', 'View'),
(253, 'pendingcashpaymentlist.php', 'Pending Cash Payment List', 'Pending Sales Bill', 'View'),
(254, 'pendingcardpaymentlist.php', 'Pending Card Payment Sales', 'Pending Sales Bill', 'View'),
(255, 'pendingbanktransferpaymentlist.php', 'Pending Bank Transfer Sales', 'Pending Sales Bill', 'View'),
(256, 'pendingchequespaymentlist.php', 'Pending Cheques Payment Sales', 'Pending Sales Bill', 'View'),
(257, 'viewsalesitemslist.php', 'View Sales Items List', 'Sales List', 'View'),
(258, 'editexpense.php', 'Edit Expenses', 'Expenses', 'Edit'),
(259, 'cash-in.php', 'Cash In', 'Cash In Out', 'Add'),
(260, 'cash-out.php', 'Cash Balance', 'Cash In Out', 'View'),
(261, 'listcash.php', 'List Cash', 'Cash In Out', 'View'),
(262, 'listcashbalance.php', 'List Cash Balance', 'Cash In Out', 'View'),
(263, 'addroute.php', 'Add Route', 'Route', 'Add'),
(264, 'editroute.php', 'Edit Route', 'Route', 'Edit'),
(265, 'deleteroute.php', 'Delete Route', 'Route', 'Delete'),
(266, 'routelist.php', 'Route List', 'Route', 'View'),
(267, 'detailed-loading-summery.php', 'Details Loading Summery Report', 'Report', 'View'),
(268, 'detailed-invoice-summery.php', 'Details Invoice Summery Report', 'Report', 'View'),
(269, 'free-item-report.php', 'Free Items Report', 'Report', 'View'),
(270, 'market-return-report.php', 'Market Return Report', 'Report', 'View'),
(271, 'delete-purchase-order.php', 'Delete Purchase Order', 'Purchase Order', 'Delete'),
(272, 'delete-return.php', 'Delete Return', 'Return', 'Delete'),
(273, 'take-away-edit.php', 'Take Away ', 'Sales List', 'View'),
(274, 'dine-in-edit.php', 'Dine In', 'Sales List', 'View'),
(275, 'table-edit.php', 'Table', 'Sales List', 'View'),
(276, 'delivery-edit.php', 'Delivery', 'Sales List', 'View'),
(277, 'listkot.php', 'List KOT', 'KOT', 'View'),
(278, 'listtables.php', 'List Tables', 'Tables', 'View'),
(279, 'addtable.php', 'Add Table', 'Tables', 'Add'),
(280, 'edittable.php', 'Edit Table', 'Tables', 'Edit'),
(281, 'checkavailability.php', 'Check Availability', 'Booking', 'View'),
(282, 'bookinglist.php', 'Booking List', 'Booking', 'View'),
(283, 'addbooking.php', 'Add Booking', 'Booking', 'Add'),
(284, 'roomslist.php', 'Rooms List', 'Booking', 'View');

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

--
-- Table structure for table `purchase_order_items`
--

CREATE TABLE `purchase_order_items` (
  `purchase_order_item_id` int(11) NOT NULL,
  `added_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `product_id` int(11) NOT NULL,
  `qty` int(11) NOT NULL,
  `supplyer_id` int(11) NOT NULL,
  `purchase_order_id` int(11) NOT NULL,
  `price` float NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `purchase_order_payments`
--

CREATE TABLE `purchase_order_payments` (
  `purchase_order_payment_id` int(11) NOT NULL,
  `purchase_order_id` int(11) NOT NULL,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `payment` float NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `quotations`
--

CREATE TABLE `quotations` (
  `q_id` int(11) NOT NULL,
  `q_customer` int(11) NOT NULL,
  `q_amount` float NOT NULL,
  `q_user` int(11) NOT NULL,
  `q_date` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `quotation_items`
--

CREATE TABLE `quotation_items` (
  `qi_id` int(11) NOT NULL,
  `qi_no` int(11) NOT NULL,
  `qi_pro_id` int(11) NOT NULL,
  `qi_pro_price` float NOT NULL,
  `qi_pro_qty` int(11) NOT NULL,
  `qi_pro_discount` float NOT NULL,
  `qi_user` int(11) NOT NULL,
  `qi_date` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `tax`
--

CREATE TABLE `tax` (
  `tax_id` int(11) NOT NULL,
  `tax` float NOT NULL,
  `tax_type` int(11) NOT NULL DEFAULT '0',
  `status` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tax`
--

INSERT INTO `tax` (`tax_id`, `tax`, `tax_type`, `status`) VALUES
(1, 0, 1, 0);

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

--
-- Table structure for table `tbl_quatation_other_details`
--

CREATE TABLE `tbl_quatation_other_details` (
  `quatition_other_id` int(11) NOT NULL,
  `q_id` int(11) NOT NULL,
  `branch_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Table structure for table `tbl_quotations`
--

CREATE TABLE `tbl_quotations` (
  `quotations_id` int(11) NOT NULL,
  `quotations_no` varchar(10) NOT NULL,
  `date` date NOT NULL,
  `Logo` varchar(254) NOT NULL,
  `discount` int(11) NOT NULL,
  `from_compay_name` varchar(50) NOT NULL,
  `from_compay_address` varchar(150) NOT NULL,
  `from_compay_phone` varchar(30) NOT NULL,
  `fromcompanyemail` varchar(100) NOT NULL,
  `for_company_name` varchar(50) NOT NULL,
  `for_compny_address` varchar(150) DEFAULT NULL,
  `for_compny_phone` varchar(30) NOT NULL,
  `emailfor` varchar(100) DEFAULT NULL,
  `cpersonfor` varchar(30) DEFAULT NULL,
  `bank_name` varchar(100) NOT NULL,
  `account_number` varchar(100) NOT NULL,
  `bank` varchar(30) NOT NULL,
  `branch` varchar(30) NOT NULL,
  `terms_and_condition` longtext NOT NULL,
  `added_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `quotations_total` float NOT NULL,
  `total` float NOT NULL,
  `no_of_days` int(11) NOT NULL,
  `validity_period` varchar(50) DEFAULT NULL,
  `due_date` varchar(100) DEFAULT NULL,
  `advance_payment` float NOT NULL DEFAULT '0',
  `pdf_title` varchar(20) NOT NULL,
  `description` varchar(254) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Table structure for table `tbl_quotations_items`
--

CREATE TABLE `tbl_quotations_items` (
  `quotations_item_id` int(11) NOT NULL,
  `product_id` int(11) NOT NULL,
  `quotations_id` int(11) NOT NULL,
  `qty` int(11) NOT NULL,
  `price` float NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Table structure for table `tbl_return`
--

CREATE TABLE `tbl_return` (
  `return_id` int(11) NOT NULL,
  `order_id` int(11) NOT NULL,
  `stat` int(11) NOT NULL DEFAULT '0',
  `return_datetime` datetime NOT NULL,
  `return_amount` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Table structure for table `tbl_return_items`
--

CREATE TABLE `tbl_return_items` (
  `return_items_id` int(11) NOT NULL,
  `return_id` int(11) NOT NULL,
  `prid` int(11) NOT NULL,
  `qty` float NOT NULL,
  `order_id` int(11) NOT NULL,
  `return_type` int(11) NOT NULL DEFAULT '0',
  `return_reson` varchar(100) NOT NULL,
  `added_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `item_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Table structure for table `tbl_stock`
--

CREATE TABLE `tbl_stock` (
  `stock_id` int(11) NOT NULL,
  `prid` int(11) NOT NULL,
  `branch_id` int(11) NOT NULL,
  `qty` double NOT NULL,
  `add_date` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `tbl_stock`
--

INSERT INTO `tbl_stock` (`stock_id`, `prid`, `branch_id`, `qty`, `add_date`) VALUES
(63, 148, 1, 11000, '2024-11-07 12:08:06'),
(64, 149, 1, 100, '2024-11-21 09:27:25'),
(65, 150, 1, 100, '2024-11-21 09:28:31'),
(66, 151, 1, 100, '2024-11-21 09:29:39'),
(67, 152, 1, 100, '2024-11-21 09:30:58'),
(68, 153, 1, 100, '2024-11-21 09:32:08');

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

--
-- Table structure for table `tbl_user_branch`
--

CREATE TABLE `tbl_user_branch` (
  `user_branch_id` int(11) NOT NULL,
  `branch_id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `tbl_user_branch`
--

INSERT INTO `tbl_user_branch` (`user_branch_id`, `branch_id`, `user_id`) VALUES
(1, 1, 1),
(2, 1, 2);

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

--
-- Table structure for table `temp_purchase_order`
--

CREATE TABLE `temp_purchase_order` (
  `temp_purchase_order_id` int(11) NOT NULL,
  `product_id` int(11) NOT NULL,
  `qty` int(11) NOT NULL,
  `price` float NOT NULL,
  `supplier` int(11) NOT NULL,
  `invoice_no` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `temp_return_qty`
--

CREATE TABLE `temp_return_qty` (
  `temp_return_qty_id` int(11) NOT NULL,
  `order_id` varchar(20) NOT NULL,
  `product_id` int(11) NOT NULL,
  `return_qty` float NOT NULL,
  `return_type` int(11) NOT NULL DEFAULT '0',
  `return_reson` varchar(100) NOT NULL,
  `return_amount` float NOT NULL,
  `return_status` int(11) NOT NULL DEFAULT '0',
  `order_item_id` int(11) NOT NULL,
  `add_to_return` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `terms_and_conditions`
--

CREATE TABLE `terms_and_conditions` (
  `id` int(11) NOT NULL,
  `conditions` longtext NOT NULL,
  `added_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `branch_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Table structure for table `unit`
--

CREATE TABLE `unit` (
  `unit_id` int(11) NOT NULL,
  `unit_name` varchar(50) NOT NULL,
  `status` int(11) NOT NULL DEFAULT '1',
  `added_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `unit`
--

INSERT INTO `unit` (`unit_id`, `unit_name`, `status`, `added_date`) VALUES
(1, 'None', 1, '2024-02-02 12:41:41'),
(2, 'Pack', 1, '2024-02-03 11:21:06'),
(3, 'Meters', 1, '2024-02-06 10:58:24'),
(4, 'Feet', 1, '2024-02-06 10:58:45'),
(5, 'KG', 1, '2024-02-06 11:01:12'),
(6, 'G', 1, '2024-02-06 11:01:39'),
(7, 'ML', 1, '2024-02-14 07:10:37'),
(8, 'L', 1, '2024-02-14 07:10:50'),
(9, 'Bottle', 1, '2024-06-04 10:29:08'),
(10, 'box', 1, '2024-06-26 08:55:57');

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

--
-- Table structure for table `user_groups`
--

CREATE TABLE `user_groups` (
  `group_id` int(11) NOT NULL,
  `group_name` varchar(100) NOT NULL,
  `group_status` int(11) NOT NULL,
  `group_added` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `user_groups`
--

INSERT INTO `user_groups` (`group_id`, `group_name`, `group_status`, `group_added`) VALUES
(1, 'super admin', 1, '0000-00-00 00:00:00'),
(3, 'Admin', 1, '2021-07-04 19:45:19'),
(4, 'Manager', 1, '2021-07-04 20:26:53'),
(5, 'User', 1, '2021-07-20 19:43:08'),
(6, 'Cashier', 1, '2024-06-15 19:48:00'),
(7, 'Dropshipper', 1, '2024-09-13 13:31:27'),
(8, 'Uploader', 1, '2024-09-13 13:53:34');

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

--
-- Table structure for table `user_permissions`
--

CREATE TABLE `user_permissions` (
  `permission_id` int(11) NOT NULL,
  `user_group_id` int(11) NOT NULL,
  `page_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `user_permissions`
--

INSERT INTO `user_permissions` (`permission_id`, `user_group_id`, `page_id`) VALUES
(111, 1, 1),
(114, 1, 140),
(116, 1, 146),
(117, 1, 145),
(118, 1, 142),
(119, 1, 143),
(120, 1, 144),
(121, 1, 147),
(122, 1, 148),
(123, 1, 149),
(125, 1, 152),
(126, 1, 157),
(127, 1, 158),
(128, 1, 159),
(132, 1, 168),
(133, 1, 150),
(134, 1, 153),
(135, 1, 154),
(136, 1, 155),
(137, 1, 156),
(138, 1, 160),
(139, 1, 161),
(140, 1, 162),
(141, 1, 163),
(142, 1, 164),
(143, 1, 165),
(144, 1, 166),
(145, 1, 167),
(146, 1, 169),
(147, 1, 170),
(148, 1, 171),
(149, 1, 172),
(150, 1, 173),
(151, 1, 174),
(152, 1, 175),
(153, 1, 176),
(154, 1, 177),
(155, 1, 178),
(157, 1, 180),
(158, 1, 181),
(159, 1, 182),
(160, 1, 183),
(164, 1, 179),
(165, 1, 184),
(166, 1, 185),
(167, 1, 186),
(168, 1, 187),
(169, 1, 188),
(170, 1, 189),
(171, 1, 190),
(172, 1, 191),
(173, 1, 192),
(174, 1, 193),
(175, 1, 194),
(176, 1, 195),
(177, 1, 196),
(178, 1, 197),
(179, 1, 198),
(180, 1, 199),
(181, 1, 200),
(182, 1, 201),
(183, 1, 202),
(184, 1, 203),
(185, 1, 204),
(186, 1, 205),
(187, 1, 206),
(188, 1, 207),
(189, 1, 208),
(190, 1, 209),
(191, 1, 210),
(192, 1, 211),
(193, 1, 212),
(194, 1, 213),
(195, 1, 214),
(196, 1, 215),
(197, 1, 216),
(198, 1, 217),
(199, 1, 218),
(200, 1, 219),
(201, 1, 220),
(202, 1, 221),
(203, 1, 222),
(204, 1, 223),
(205, 1, 224),
(206, 1, 225),
(207, 1, 226),
(208, 1, 227),
(210, 3, 168),
(212, 3, 187),
(214, 3, 151),
(215, 6, 146),
(216, 6, 1),
(217, 7, 168),
(218, 7, 151),
(219, 7, 152),
(220, 7, 141),
(221, 7, 142),
(222, 1, 151),
(223, 1, 141),
(224, 1, 228),
(225, 1, 229),
(226, 1, 230),
(227, 1, 231),
(228, 1, 232),
(229, 1, 233),
(230, 1, 234),
(231, 1, 235),
(232, 1, 236),
(233, 1, 237),
(234, 1, 238),
(241, 1, 241),
(242, 1, 242),
(243, 1, 243),
(244, 1, 244),
(245, 1, 240),
(247, 1, 239),
(248, 1, 245),
(249, 1, 246),
(250, 1, 247),
(251, 1, 248),
(252, 1, 249),
(253, 1, 250),
(254, 1, 251),
(255, 1, 252),
(256, 1, 253),
(257, 1, 254),
(258, 1, 255),
(259, 1, 256),
(260, 1, 257),
(261, 1, 258),
(262, 1, 259),
(263, 1, 260),
(264, 1, 261),
(265, 1, 262),
(266, 1, 267),
(267, 1, 268),
(268, 1, 263),
(269, 1, 264),
(270, 1, 265),
(271, 1, 266),
(272, 1, 269),
(273, 1, 270),
(274, 1, 271),
(275, 1, 272),
(276, 4, 152),
(277, 1, 273),
(278, 1, 274),
(279, 1, 275),
(280, 1, 276),
(281, 1, 281),
(282, 1, 282),
(283, 1, 283),
(284, 1, 284),
(285, 1, 277),
(286, 1, 278),
(288, 1, 280),
(289, 1, 279);

--
-- Indexes for dumped tables
--

--
-- Indexes for table `all_discount_tbl`
--
ALTER TABLE `all_discount_tbl`
  ADD PRIMARY KEY (`all_discount_tbl_id`);

--
-- Indexes for table `bank_details`
--
ALTER TABLE `bank_details`
  ADD PRIMARY KEY (`bank_detail_id`);

--
-- Indexes for table `branch`
--
ALTER TABLE `branch`
  ADD PRIMARY KEY (`branch_id`);

--
-- Indexes for table `cash_in_out`
--
ALTER TABLE `cash_in_out`
  ADD PRIMARY KEY (`cash_id`);

--
-- Indexes for table `cash_out`
--
ALTER TABLE `cash_out`
  ADD PRIMARY KEY (`cashoutid`);

--
-- Indexes for table `invoice_other_details`
--
ALTER TABLE `invoice_other_details`
  ADD PRIMARY KEY (`invoice_other_id`);

--
-- Indexes for table `mobilecategory`
--
ALTER TABLE `mobilecategory`
  ADD PRIMARY KEY (`ctid`);

--
-- Indexes for table `mobilecity`
--
ALTER TABLE `mobilecity`
  ADD PRIMARY KEY (`cyid`);

--
-- Indexes for table `mobilecountry`
--
ALTER TABLE `mobilecountry`
  ADD PRIMARY KEY (`coid`);

--
-- Indexes for table `mobilecustomerquote`
--
ALTER TABLE `mobilecustomerquote`
  ADD PRIMARY KEY (`cqid`);

--
-- Indexes for table `mobilecustomers`
--
ALTER TABLE `mobilecustomers`
  ADD PRIMARY KEY (`coid`);

--
-- Indexes for table `mobilecustomizedproduct`
--
ALTER TABLE `mobilecustomizedproduct`
  ADD PRIMARY KEY (`cpid`);

--
-- Indexes for table `mobileexpense`
--
ALTER TABLE `mobileexpense`
  ADD PRIMARY KEY (`expid`);

--
-- Indexes for table `mobileexpensecategory`
--
ALTER TABLE `mobileexpensecategory`
  ADD PRIMARY KEY (`epid`);

--
-- Indexes for table `mobilelocation`
--
ALTER TABLE `mobilelocation`
  ADD PRIMARY KEY (`loid`);

--
-- Indexes for table `mobileorders`
--
ALTER TABLE `mobileorders`
  ADD PRIMARY KEY (`order_id`);

--
-- Indexes for table `mobilepayees`
--
ALTER TABLE `mobilepayees`
  ADD PRIMARY KEY (`pyid`);

--
-- Indexes for table `mobilepaymentmethod`
--
ALTER TABLE `mobilepaymentmethod`
  ADD PRIMARY KEY (`pmid`);

--
-- Indexes for table `mobilepaytype`
--
ALTER TABLE `mobilepaytype`
  ADD PRIMARY KEY (`ptid`);

--
-- Indexes for table `mobileproducts`
--
ALTER TABLE `mobileproducts`
  ADD PRIMARY KEY (`prid`);

--
-- Indexes for table `mobilepurchase`
--
ALTER TABLE `mobilepurchase`
  ADD PRIMARY KEY (`q_id`);

--
-- Indexes for table `mobilepurchase_items`
--
ALTER TABLE `mobilepurchase_items`
  ADD PRIMARY KEY (`qi_id`);

--
-- Indexes for table `mobileroombooking`
--
ALTER TABLE `mobileroombooking`
  ADD PRIMARY KEY (`rbid`);

--
-- Indexes for table `mobilerooms`
--
ALTER TABLE `mobilerooms`
  ADD PRIMARY KEY (`rmid`);

--
-- Indexes for table `mobileroomtype`
--
ALTER TABLE `mobileroomtype`
  ADD PRIMARY KEY (`rtid`);

--
-- Indexes for table `mobileroute`
--
ALTER TABLE `mobileroute`
  ADD PRIMARY KEY (`rtid`);

--
-- Indexes for table `mobilesettings`
--
ALTER TABLE `mobilesettings`
  ADD PRIMARY KEY (`stid`);

--
-- Indexes for table `mobilestock`
--
ALTER TABLE `mobilestock`
  ADD PRIMARY KEY (`sid`);

--
-- Indexes for table `mobilesubcategory`
--
ALTER TABLE `mobilesubcategory`
  ADD PRIMARY KEY (`sbid`);

--
-- Indexes for table `mobilesuppliers`
--
ALTER TABLE `mobilesuppliers`
  ADD PRIMARY KEY (`spid`);

--
-- Indexes for table `mobiletemporarycart`
--
ALTER TABLE `mobiletemporarycart`
  ADD PRIMARY KEY (`tempid`);

--
-- Indexes for table `mobiletype`
--
ALTER TABLE `mobiletype`
  ADD PRIMARY KEY (`tyid`);

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

--
-- Indexes for table `mobile_brand`
--
ALTER TABLE `mobile_brand`
  ADD PRIMARY KEY (`brand_id`);

--
-- Indexes for table `mobile_credit_payments`
--
ALTER TABLE `mobile_credit_payments`
  ADD PRIMARY KEY (`credit_payment_id`);

--
-- Indexes for table `mobile_drawer_balance`
--
ALTER TABLE `mobile_drawer_balance`
  ADD PRIMARY KEY (`drawer_balance_id`);

--
-- Indexes for table `mobile_kot`
--
ALTER TABLE `mobile_kot`
  ADD PRIMARY KEY (`kot_id`);

--
-- Indexes for table `mobile_order_type`
--
ALTER TABLE `mobile_order_type`
  ADD PRIMARY KEY (`type_Id`);

--
-- Indexes for table `mobile_purchase_order`
--
ALTER TABLE `mobile_purchase_order`
  ADD PRIMARY KEY (`purchase_order_id`);

--
-- Indexes for table `mobile_tables`
--
ALTER TABLE `mobile_tables`
  ADD PRIMARY KEY (`table_id`);

--
-- Indexes for table `mobile_table_availability`
--
ALTER TABLE `mobile_table_availability`
  ADD PRIMARY KEY (`table_availability_id`);

--
-- Indexes for table `money_in_out`
--
ALTER TABLE `money_in_out`
  ADD PRIMARY KEY (`money_in_id`);

--
-- Indexes for table `order_type`
--
ALTER TABLE `order_type`
  ADD PRIMARY KEY (`order_type_id`);

--
-- Indexes for table `pages`
--
ALTER TABLE `pages`
  ADD PRIMARY KEY (`page_id`);

--
-- Indexes for table `purchase_order_items`
--
ALTER TABLE `purchase_order_items`
  ADD PRIMARY KEY (`purchase_order_item_id`);

--
-- Indexes for table `purchase_order_payments`
--
ALTER TABLE `purchase_order_payments`
  ADD PRIMARY KEY (`purchase_order_payment_id`);

--
-- Indexes for table `quotations`
--
ALTER TABLE `quotations`
  ADD PRIMARY KEY (`q_id`);

--
-- Indexes for table `quotation_items`
--
ALTER TABLE `quotation_items`
  ADD PRIMARY KEY (`qi_id`);

--
-- Indexes for table `tax`
--
ALTER TABLE `tax`
  ADD PRIMARY KEY (`tax_id`);

--
-- Indexes for table `tbl_quatation_other_details`
--
ALTER TABLE `tbl_quatation_other_details`
  ADD PRIMARY KEY (`quatition_other_id`);

--
-- Indexes for table `tbl_quotations`
--
ALTER TABLE `tbl_quotations`
  ADD PRIMARY KEY (`quotations_id`);

--
-- Indexes for table `tbl_quotations_items`
--
ALTER TABLE `tbl_quotations_items`
  ADD PRIMARY KEY (`quotations_item_id`);

--
-- Indexes for table `tbl_return`
--
ALTER TABLE `tbl_return`
  ADD PRIMARY KEY (`return_id`);

--
-- Indexes for table `tbl_return_items`
--
ALTER TABLE `tbl_return_items`
  ADD PRIMARY KEY (`return_items_id`);

--
-- Indexes for table `tbl_stock`
--
ALTER TABLE `tbl_stock`
  ADD PRIMARY KEY (`stock_id`);

--
-- Indexes for table `tbl_user_branch`
--
ALTER TABLE `tbl_user_branch`
  ADD PRIMARY KEY (`user_branch_id`);

--
-- Indexes for table `temp_purchase_order`
--
ALTER TABLE `temp_purchase_order`
  ADD PRIMARY KEY (`temp_purchase_order_id`);

--
-- Indexes for table `temp_return_qty`
--
ALTER TABLE `temp_return_qty`
  ADD PRIMARY KEY (`temp_return_qty_id`);

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

--
-- Indexes for table `unit`
--
ALTER TABLE `unit`
  ADD PRIMARY KEY (`unit_id`);

--
-- Indexes for table `user_groups`
--
ALTER TABLE `user_groups`
  ADD PRIMARY KEY (`group_id`);

--
-- Indexes for table `user_permissions`
--
ALTER TABLE `user_permissions`
  ADD PRIMARY KEY (`permission_id`),
  ADD KEY `page_id` (`page_id`),
  ADD KEY `user_group_id` (`user_group_id`);

--
-- AUTO_INCREMENT for dumped tables
--

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

--
-- AUTO_INCREMENT for table `bank_details`
--
ALTER TABLE `bank_details`
  MODIFY `bank_detail_id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `branch`
--
ALTER TABLE `branch`
  MODIFY `branch_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `cash_in_out`
--
ALTER TABLE `cash_in_out`
  MODIFY `cash_id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `cash_out`
--
ALTER TABLE `cash_out`
  MODIFY `cashoutid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `invoice_other_details`
--
ALTER TABLE `invoice_other_details`
  MODIFY `invoice_other_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `mobilecategory`
--
ALTER TABLE `mobilecategory`
  MODIFY `ctid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;

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

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

--
-- AUTO_INCREMENT for table `mobilecustomerquote`
--
ALTER TABLE `mobilecustomerquote`
  MODIFY `cqid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mobilecustomers`
--
ALTER TABLE `mobilecustomers`
  MODIFY `coid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

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

--
-- AUTO_INCREMENT for table `mobileexpense`
--
ALTER TABLE `mobileexpense`
  MODIFY `expid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mobileexpensecategory`
--
ALTER TABLE `mobileexpensecategory`
  MODIFY `epid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;

--
-- AUTO_INCREMENT for table `mobilelocation`
--
ALTER TABLE `mobilelocation`
  MODIFY `loid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mobileorders`
--
ALTER TABLE `mobileorders`
  MODIFY `order_id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mobilepayees`
--
ALTER TABLE `mobilepayees`
  MODIFY `pyid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mobilepaymentmethod`
--
ALTER TABLE `mobilepaymentmethod`
  MODIFY `pmid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mobilepaytype`
--
ALTER TABLE `mobilepaytype`
  MODIFY `ptid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `mobileproducts`
--
ALTER TABLE `mobileproducts`
  MODIFY `prid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=154;

--
-- AUTO_INCREMENT for table `mobilepurchase`
--
ALTER TABLE `mobilepurchase`
  MODIFY `q_id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mobilepurchase_items`
--
ALTER TABLE `mobilepurchase_items`
  MODIFY `qi_id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mobileroombooking`
--
ALTER TABLE `mobileroombooking`
  MODIFY `rbid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mobilerooms`
--
ALTER TABLE `mobilerooms`
  MODIFY `rmid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mobileroomtype`
--
ALTER TABLE `mobileroomtype`
  MODIFY `rtid` int(11) NOT NULL AUTO_INCREMENT;

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

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

--
-- AUTO_INCREMENT for table `mobilestock`
--
ALTER TABLE `mobilestock`
  MODIFY `sid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mobilesubcategory`
--
ALTER TABLE `mobilesubcategory`
  MODIFY `sbid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;

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

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

--
-- AUTO_INCREMENT for table `mobiletype`
--
ALTER TABLE `mobiletype`
  MODIFY `tyid` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mobileusers`
--
ALTER TABLE `mobileusers`
  MODIFY `user_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

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

--
-- AUTO_INCREMENT for table `mobile_credit_payments`
--
ALTER TABLE `mobile_credit_payments`
  MODIFY `credit_payment_id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mobile_drawer_balance`
--
ALTER TABLE `mobile_drawer_balance`
  MODIFY `drawer_balance_id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mobile_kot`
--
ALTER TABLE `mobile_kot`
  MODIFY `kot_id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mobile_order_type`
--
ALTER TABLE `mobile_order_type`
  MODIFY `type_Id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `mobile_purchase_order`
--
ALTER TABLE `mobile_purchase_order`
  MODIFY `purchase_order_id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `mobile_tables`
--
ALTER TABLE `mobile_tables`
  MODIFY `table_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `mobile_table_availability`
--
ALTER TABLE `mobile_table_availability`
  MODIFY `table_availability_id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `money_in_out`
--
ALTER TABLE `money_in_out`
  MODIFY `money_in_id` int(11) NOT NULL AUTO_INCREMENT;

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

--
-- AUTO_INCREMENT for table `pages`
--
ALTER TABLE `pages`
  MODIFY `page_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=285;

--
-- AUTO_INCREMENT for table `purchase_order_items`
--
ALTER TABLE `purchase_order_items`
  MODIFY `purchase_order_item_id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `purchase_order_payments`
--
ALTER TABLE `purchase_order_payments`
  MODIFY `purchase_order_payment_id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `quotations`
--
ALTER TABLE `quotations`
  MODIFY `q_id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `quotation_items`
--
ALTER TABLE `quotation_items`
  MODIFY `qi_id` int(11) NOT NULL AUTO_INCREMENT;

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

--
-- AUTO_INCREMENT for table `tbl_quatation_other_details`
--
ALTER TABLE `tbl_quatation_other_details`
  MODIFY `quatition_other_id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `tbl_quotations`
--
ALTER TABLE `tbl_quotations`
  MODIFY `quotations_id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `tbl_quotations_items`
--
ALTER TABLE `tbl_quotations_items`
  MODIFY `quotations_item_id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `tbl_return`
--
ALTER TABLE `tbl_return`
  MODIFY `return_id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `tbl_return_items`
--
ALTER TABLE `tbl_return_items`
  MODIFY `return_items_id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `tbl_stock`
--
ALTER TABLE `tbl_stock`
  MODIFY `stock_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=69;

--
-- AUTO_INCREMENT for table `tbl_user_branch`
--
ALTER TABLE `tbl_user_branch`
  MODIFY `user_branch_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `temp_purchase_order`
--
ALTER TABLE `temp_purchase_order`
  MODIFY `temp_purchase_order_id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `temp_return_qty`
--
ALTER TABLE `temp_return_qty`
  MODIFY `temp_return_qty_id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `terms_and_conditions`
--
ALTER TABLE `terms_and_conditions`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `unit`
--
ALTER TABLE `unit`
  MODIFY `unit_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;

--
-- AUTO_INCREMENT for table `user_groups`
--
ALTER TABLE `user_groups`
  MODIFY `group_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;

--
-- AUTO_INCREMENT for table `user_permissions`
--
ALTER TABLE `user_permissions`
  MODIFY `permission_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=290;
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 */;
