-- phpMyAdmin SQL Dump
-- version 5.2.2
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Mar 12, 2025 at 07:38 AM
-- Server version: 10.6.21-MariaDB-cll-lve
-- PHP Version: 8.3.17

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: `pos1seoprodevelo_klfashiondb`
--

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

--
-- 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 COLLATE=latin1_swedish_ci;

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

INSERT INTO `all_discount_tbl` (`all_discount_tbl_id`, `discount_val`, `discount_type`, `status`) VALUES
(1, 10, 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 COLLATE=utf8mb4_general_ci;

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

--
-- 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,
  `startdate` date NOT NULL,
  `enddate` date NOT NULL,
  `packege` int(10) NOT NULL,
  `status` int(10) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

INSERT INTO `branch` (`branch_id`, `branch_name`, `phonenumbers`, `address`, `email`, `logo`, `startdate`, `enddate`, `packege`, `status`) VALUES
(1, 'KL Fashion', '071 803 4141', 'Galle Fort 2,Galle', 'klfashion@gmail.com', 'images/quotation/873535.jpeg', '2024-10-18', '2025-11-18', 1, 1);

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

--
-- 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=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- 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=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- 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 COLLATE=utf8mb4_general_ci;

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

--
-- Table structure for table `in_out_time`
--

CREATE TABLE `in_out_time` (
  `in_out_time_id` int(11) NOT NULL,
  `in_or_out` int(11) NOT NULL DEFAULT 0,
  `user_id` int(11) NOT NULL,
  `date_time` varchar(50) NOT NULL,
  `latitude` varchar(50) NOT NULL,
  `longitude` varchar(50) NOT NULL,
  `added_date` timestamp NOT NULL DEFAULT current_timestamp(),
  `branch_id` int(10) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- 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=utf8mb3 COLLATE=utf8mb3_general_ci;

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

INSERT INTO `mobilecategory` (`ctid`, `catename`, `add_date`, `status`) VALUES
(1, 'None', '2024-10-30 17:25:53', 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=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- 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=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- 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=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- 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,
  `branch_id` int(10) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

INSERT INTO `mobilecustomers` (`coid`, `customerid`, `cname`, `cemail`, `cphone`, `caddress`, `ccredit`, `add_date`, `status`, `credit_limit`, `comission`, `route`, `branch_id`) VALUES
(1, 0, 'N/W', '', '00000000000', 'None', 0, '2025-02-12 17:45:15', 1, 0, 5, 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=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- 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=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `mobileexpense`
--

INSERT INTO `mobileexpense` (`expid`, `expcategory`, `expdate`, `amount`, `refno`, `expname`, `expdescription`, `add_date`, `status`, `branch_id`, `user_id`, `lottery_number`) VALUES
(1, 5, '0000-00-00', 430, '', 'delivery', 'deliver charge eka bill print eke', '2025-02-03 07:09:24', 1, 1, 5, NULL),
(2, 5, '0000-00-00', 500, '', 'delivery', 'bill printing eka gaththa', '2025-02-05 06:36:24', 1, 1, 5, NULL),
(3, 5, '0000-00-00', 200, '', 'plaint', 'tinaer ekak gann 100i pepaer cuter ekk ganni', '2025-02-06 09:01:47', 1, 1, 5, NULL),
(4, 7, '0000-00-00', 427, '', 'for system', 'do a relode to phone for get system online', '2025-02-06 09:34:01', 1, 4, 4, NULL),
(5, 4, '2025-02-07', 500, '', 'kama', 'kama eki bus ekati', '2025-02-07 09:08:57', 1, 1, 5, NULL),
(6, 5, '2025-02-07', 650, '', 'delivery', 'cash on delivery', '2025-02-07 10:36:35', 1, 1, 5, NULL),
(7, 9, '2025-02-10', 100, '', '100 incense stick packe ekak gathttha', '', '2025-02-10 10:09:10', 1, 1, 1, NULL),
(8, 5, '2025-02-11', 150, '', 'handun kuru', 'handun kuru ....cash got from vidhu  by dilshan', '2025-02-11 07:47:50', 1, 4, 4, NULL),
(9, 5, '2025-02-10', 200, '', 'bus[akila aiyata]', '', '2025-02-11 07:53:36', 1, 1, 5, NULL),
(10, 7, '2025-02-11', 200, '', 'data', 'data', '2025-02-11 08:26:05', 1, 1, 5, NULL),
(11, 4, '2025-02-13', 500, '1234', 'test', 'test', '2025-02-12 20:31:48', 1, 1, 1, NULL),
(12, 4, '2025-02-13', 500, '1234', 'test', 'test', '2025-02-13 05:00:00', 1, 1, 1, NULL),
(13, 3, '2025-02-15', 500, 'fhfgh', 'For thel', 'For thel', '2025-02-15 05:00:00', 1, 1, 1, NULL),
(14, 4, '2025-02-15', 1200, 'adad', '2 chicken Rice', '2 chicken Rice', '2025-02-15 05:00:00', 1, 1, 1, NULL),
(15, 4, '2025-02-16', 700, 'ghhjkkkll', 'ghhjkkkll', 'ghhjkkkll', '2025-02-16 05:00:00', 1, 1, 1, NULL);

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

--
-- 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=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- 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-10-30 09:37:00', 1),
(6, 'Advance ', '2024-10-30 09:36:56', 1),
(7, 'Data', '2024-10-30 09:36:52', 1),
(8, 'Lottery', '2024-06-27 10:25:26', 1),
(9, 'incense sticks', '2025-02-10 09:31:21', 1),
(10, 'courier', '2025-02-10 09:33:24', 1),
(11, 'vidu \'s personal expensess', '2025-02-11 04:46:32', 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 COLLATE=latin1_swedish_ci;

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

--
-- 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 DEFAULT NULL,
  `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
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- Table structure for table `mobilepackage`
--

CREATE TABLE `mobilepackage` (
  `pkid` int(11) NOT NULL,
  `packagename` varchar(50) NOT NULL,
  `validtime` int(11) NOT NULL,
  `add_date` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `status` int(10) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `mobilepackage`
--

INSERT INTO `mobilepackage` (`pkid`, `packagename`, `validtime`, `add_date`, `status`) VALUES
(1, 'Monthly', 30, '2024-11-16 07:40:43', 1),
(2, 'Six Month', 180, '2024-11-16 07:41:08', 1),
(3, 'Yearly', 365, '2024-11-16 07:41:32', 1),
(4, 'Lifetime', 0, '2024-11-16 07:41:45', 1);

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

--
-- 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 COLLATE=latin1_swedish_ci;

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

--
-- 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 COLLATE=latin1_swedish_ci;

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

--
-- 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 COLLATE=latin1_swedish_ci;

--
-- 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 utf8mb3 COLLATE utf8mb3_general_ci NOT NULL,
  `itemcode` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL,
  `proname` varchar(100) 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 utf8mb3 COLLATE utf8mb3_general_ci NOT NULL,
  `discount1` float NOT NULL DEFAULT 0,
  `discountpersentage` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci 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 utf8mb3 COLLATE utf8mb3_general_ci NOT NULL,
  `add_date` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `status` int(11) NOT NULL,
  `producttype` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL,
  `brand_id` int(11) NOT NULL,
  `market_price` float NOT NULL,
  `warranty` text NOT NULL,
  `discount_type1` int(11) NOT NULL DEFAULT 0,
  `tax1` float NOT NULL DEFAULT 0,
  `tax_type1` int(11) NOT NULL DEFAULT 0,
  `prsize` int(10) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_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`, `prsize`) VALUES
(148, '0000148', '0000148', 'genaral items', 1, 1, 1, 1, '0000-00-00', 5.00, 11000.00, '', 0, NULL, 0, 0, 0, '', '2025-03-12 02:03:03', 1, 'None', 1, 0, '', 0, 0, 0, 1);

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

--
-- 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=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- 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=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- 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=utf8mb3 COLLATE=utf8mb3_general_ci;

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

INSERT INTO `mobileroute` (`rtid`, `routename`, `add_date`, `status`) VALUES
(1, 'None', '2024-10-30 09:36:40', 1);

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

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

CREATE TABLE `mobilesettings` (
  `stid` int(11) NOT NULL,
  `systemname` varchar(255) 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 COLLATE=latin1_swedish_ci;

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

INSERT INTO `mobilesettings` (`stid`, `systemname`, `permission`, `themecolor`, `systemlogo`, `add_date`, `status`) VALUES
(1, 'KL Fashion', 'Yes', 'Blue', '999882.png', '2025-03-12 01:59:38', 1);

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

--
-- Table structure for table `mobilesize`
--

CREATE TABLE `mobilesize` (
  `szid` int(11) NOT NULL,
  `sizename` varchar(50) NOT NULL,
  `add_date` timestamp NOT NULL DEFAULT current_timestamp(),
  `status` int(10) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `mobilesize`
--

INSERT INTO `mobilesize` (`szid`, `sizename`, `add_date`, `status`) VALUES
(1, 'None', '2024-11-02 11:09:57', 1),
(2, '2XS', '2024-11-02 11:14:36', 1),
(3, 'XS', '2024-11-02 11:14:42', 1),
(4, 'S', '2024-11-02 11:14:50', 1),
(5, 'M', '2024-11-02 11:14:56', 1),
(6, 'L', '2024-11-02 11:15:03', 1),
(7, 'XL', '2024-11-02 11:15:11', 1),
(8, '2XL', '2024-11-02 11:15:24', 1),
(9, '4XL', '2024-11-02 11:16:56', 1),
(10, '26', '2024-11-02 11:17:08', 1),
(11, '28', '2024-11-02 11:17:15', 1),
(12, '30', '2024-11-02 11:17:27', 1),
(13, '32', '2024-11-02 11:17:37', 1),
(14, '34', '2024-11-02 11:17:48', 1),
(15, '36', '2024-11-02 11:17:57', 1),
(16, '38', '2024-11-02 11:18:06', 1),
(17, '40', '2024-11-02 11:18:14', 1),
(18, '75', '2024-11-22 14:29:41', 1),
(19, '80', '2024-11-22 14:29:49', 1),
(20, '85', '2024-11-22 14:29:56', 1),
(21, '90', '2024-11-22 14:30:04', 1),
(22, '95', '2024-11-22 14:30:11', 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=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- 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=utf8mb3 COLLATE=utf8mb3_general_ci;

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

INSERT INTO `mobilesubcategory` (`sbid`, `category`, `subname`, `add_date`, `status`) VALUES
(1, 1, 'None', '2025-03-12 02:03:47', 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=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- 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=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- 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=utf8mb3 COLLATE=utf8mb3_general_ci;

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

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

CREATE TABLE `mobileusers` (
  `user_id` int(11) NOT NULL,
  `image` varchar(500) NOT NULL,
  `fullname` varchar(50) NOT NULL,
  `phonenumber` int(11) NOT NULL,
  `address` text 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,
  `basicsalary` float NOT NULL,
  `othourrate` float NOT NULL,
  `perhourrate` int(11) NOT NULL DEFAULT 0,
  `dailyworkinhours` int(11) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

INSERT INTO `mobileusers` (`user_id`, `image`, `fullname`, `phonenumber`, `address`, `user_name`, `user_email`, `user_pass`, `admintype`, `ucomission`, `joining_date`, `status`, `branch_id`, `basicsalary`, `othourrate`, `perhourrate`, `dailyworkinhours`) VALUES
(1, '943974.png', 'KL Fashion', 0, '', 'admin', 'klfashion@gmail.com', '$2y$10$5fnaqM5Ecc1mv4/uY3znMejABhXLHmeBG/3oQYevFAM7mNk/jD0tm', 1, 5, '2025-03-12 02:00:10', '1', 1, 0, 0, 0, 0);

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

--
-- 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 COLLATE=utf8mb4_general_ci;

--
-- 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 COLLATE=utf8mb4_general_ci;

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

--
-- 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 COLLATE=utf8mb4_general_ci;

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

--
-- 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=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- 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=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- 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=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- 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, 'addsize.php', 'Add Size', 'Size', 'Add'),
(274, 'editsize.php', 'Edit Size', 'Size', 'Edit'),
(275, 'deletesize.php', 'Delete Size', 'Size', 'Delete'),
(276, 'sizelist.php', 'Size List', 'Size', 'View'),
(277, 'add-payments-and-deductions.php', 'Add Payments and Deductions', 'Salary', 'Add'),
(278, 'list-payments-and-deductions.php', 'List Payments and Deductions', 'Salary', 'View'),
(279, 'add-user-in-time.php', 'Add User In Time', 'Salary', 'Add'),
(280, 'add-user-out-time.php', 'Add User Out Time', 'Salary', 'Add'),
(281, 'list-user-in-time.php', 'List User In Time', 'Salary', 'View'),
(282, 'list-user-out-time.php', 'List User Out Time', 'Salary', 'View'),
(283, 'genarate-salary-list.php', 'List Salary', 'Salary', 'Add/View'),
(285, 'expenseaddcategory.php', 'Add Expenses Category', 'Expenses', 'Add'),
(286, 'item-return.php', 'Item Return', 'Return', 'Add'),
(287, 'stockaddlist.php', 'Stock Add List', 'Product', 'View'),
(288, 'stocktransferlist.php', 'Stock Transfer List', 'Product', 'View'),
(289, 'dailysalesviewreport.php', 'Daily Sales View Report', 'Report', 'View'),
(290, 'dailystockaddreport.php', 'Daily Stock Add Report', 'Report', 'View'),
(291, 'dailyshoptransferreport.php', 'Daily Shop Transfer Report', 'Report', 'View'),
(292, 'dailyreturnupdatereport.php', 'Daily Return Update Report', 'Report', 'View');

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

--
-- Table structure for table `payments_and_deductions`
--

CREATE TABLE `payments_and_deductions` (
  `pd_id` int(11) NOT NULL,
  `payments_or_deductions` int(11) NOT NULL DEFAULT 0,
  `user_Id` int(11) NOT NULL,
  `amount` float NOT NULL,
  `added_date` timestamp NOT NULL DEFAULT current_timestamp(),
  `note` varchar(254) DEFAULT NULL,
  `branch_id` int(10) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- 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=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- 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 COLLATE=latin1_swedish_ci;

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

--
-- 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=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- 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=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- 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 COLLATE=latin1_swedish_ci;

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

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

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

--
-- Table structure for table `tblstocktrafer`
--

CREATE TABLE `tblstocktrafer` (
  `tsid` int(11) NOT NULL,
  `productid` int(10) NOT NULL,
  `tsqty` double NOT NULL,
  `frombranch` int(10) NOT NULL,
  `tobranch` int(10) NOT NULL,
  `stype` varchar(20) NOT NULL,
  `add_date` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `status` int(10) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- 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 COLLATE=utf8mb4_general_ci;

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

--
-- 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 COLLATE=utf8mb4_general_ci;

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

--
-- 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 COLLATE=utf8mb4_general_ci;

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

--
-- 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` float NOT NULL DEFAULT 0,
  `branch_id` int(11) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

--
-- 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,
  `branch_id` int(11) NOT NULL DEFAULT 0,
  `return_item_amount` int(11) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

--
-- 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 COLLATE=utf8mb4_general_ci;

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

INSERT INTO `tbl_stock` (`stock_id`, `prid`, `branch_id`, `qty`, `add_date`) VALUES
(63, 148, 1, 11000, '2025-03-12 07:37:30');

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

--
-- 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 COLLATE=utf8mb4_general_ci;

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

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

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

--
-- 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 COLLATE=latin1_swedish_ci;

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

--
-- 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,
  `branch_id` int(11) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

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

--
-- 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 COLLATE=utf8mb4_general_ci;

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

--
-- 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 COLLATE=utf8mb4_general_ci;

--
-- 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'),
(11, 'Qty', 1, '2024-11-20 17:12:49');

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

--
-- 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=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- 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=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- 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),
(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),
(215, 6, 146),
(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),
(295, 1, 273),
(296, 1, 276),
(297, 1, 275),
(298, 1, 274),
(299, 4, 168),
(300, 4, 228),
(301, 4, 229),
(302, 4, 259),
(303, 4, 260),
(304, 4, 1),
(305, 4, 192),
(306, 4, 193),
(307, 4, 172),
(308, 4, 164),
(309, 4, 167),
(310, 4, 233),
(311, 4, 146),
(312, 4, 160),
(313, 4, 160),
(314, 4, 156),
(315, 4, 156),
(316, 4, 156),
(317, 6, 228),
(318, 6, 229),
(319, 6, 259),
(320, 6, 260),
(321, 6, 1),
(322, 6, 172),
(323, 6, 233),
(327, 1, 151),
(329, 1, 168),
(331, 6, 167),
(332, 4, 261),
(333, 1, 277),
(335, 1, 278),
(336, 1, 279),
(337, 1, 280),
(338, 1, 281),
(339, 1, 282),
(340, 1, 283),
(341, 1, 284),
(342, 1, 284),
(343, 1, 285),
(346, 1, 286),
(347, 1, 287),
(348, 1, 288),
(349, 1, 289),
(350, 1, 290),
(351, 1, 291),
(352, 1, 292);

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

--
-- Table structure for table `working_days`
--

CREATE TABLE `working_days` (
  `working_days_id` int(11) NOT NULL,
  `year_and_month` varchar(30) NOT NULL,
  `days` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

--
-- Dumping data for table `working_days`
--

INSERT INTO `working_days` (`working_days_id`, `year_and_month`, `days`) VALUES
(1, '2024-09', 20);

--
-- 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 `in_out_time`
--
ALTER TABLE `in_out_time`
  ADD PRIMARY KEY (`in_out_time_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 `mobilepackage`
--
ALTER TABLE `mobilepackage`
  ADD PRIMARY KEY (`pkid`);

--
-- 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 `mobileroute`
--
ALTER TABLE `mobileroute`
  ADD PRIMARY KEY (`rtid`);

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

--
-- Indexes for table `mobilesize`
--
ALTER TABLE `mobilesize`
  ADD PRIMARY KEY (`szid`);

--
-- 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_purchase_order`
--
ALTER TABLE `mobile_purchase_order`
  ADD PRIMARY KEY (`purchase_order_id`);

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

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

--
-- Indexes for table `payments_and_deductions`
--
ALTER TABLE `payments_and_deductions`
  ADD PRIMARY KEY (`pd_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 `tblstocktrafer`
--
ALTER TABLE `tblstocktrafer`
  ADD PRIMARY KEY (`tsid`);

--
-- 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`);

--
-- Indexes for table `working_days`
--
ALTER TABLE `working_days`
  ADD PRIMARY KEY (`working_days_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=2;

--
-- 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 for table `in_out_time`
--
ALTER TABLE `in_out_time`
  MODIFY `in_out_time_id` int(11) NOT NULL AUTO_INCREMENT;

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

--
-- 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=2;

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

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

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

--
-- 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 `mobilepackage`
--
ALTER TABLE `mobilepackage`
  MODIFY `pkid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- 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=149;

--
-- 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 `mobileroute`
--
ALTER TABLE `mobileroute`
  MODIFY `rtid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

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

--
-- AUTO_INCREMENT for table `mobilesize`
--
ALTER TABLE `mobilesize`
  MODIFY `szid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=23;

--
-- 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=2;

--
-- 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 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=2;

--
-- 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_purchase_order`
--
ALTER TABLE `mobile_purchase_order`
  MODIFY `purchase_order_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 `pages`
--
ALTER TABLE `pages`
  MODIFY `page_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=293;

--
-- AUTO_INCREMENT for table `payments_and_deductions`
--
ALTER TABLE `payments_and_deductions`
  MODIFY `pd_id` int(11) NOT NULL AUTO_INCREMENT;

--
-- 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 `tblstocktrafer`
--
ALTER TABLE `tblstocktrafer`
  MODIFY `tsid` int(11) NOT NULL AUTO_INCREMENT;

--
-- 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=64;

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

--
-- 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=101;

--
-- 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=12;

--
-- 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=353;

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