-- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Feb 10, 2025 at 08:25 AM
-- Server version: 10.1.13-MariaDB
-- PHP Version: 5.6.20

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

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

--
-- Table structure for table `admin_login`
--

CREATE TABLE `admin_login` (
  `id` int(11) NOT NULL,
  `username` text NOT NULL,
  `password` text NOT NULL,
  `loginstatus` tinyint(4) NOT NULL COMMENT '1-activestatus, 2-inactivestatus, 0-deletestatus',
  `flag` tinyint(4) NOT NULL COMMENT '1-active,0-delete',
  `user_permisson` varchar(200) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `admin_usermenulist`
--

CREATE TABLE `admin_usermenulist` (
  `id` int(11) NOT NULL,
  `filenames` text,
  `uadd` tinyint(4) DEFAULT NULL,
  `uedit` tinyint(4) DEFAULT NULL,
  `udelete` tinyint(4) DEFAULT NULL,
  `ushow` tinyint(4) DEFAULT NULL,
  `uprintout` tinyint(4) DEFAULT NULL,
  `uexcelformat` tinyint(4) DEFAULT NULL,
  `ustatus` tinyint(4) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `cash_expense_entry`
--

CREATE TABLE `cash_expense_entry` (
  `id` int(11) NOT NULL,
  `cashno` varchar(200) DEFAULT NULL,
  `expensedate` varchar(250) DEFAULT NULL,
  `expensetype` text,
  `expenser` varchar(32) NOT NULL,
  `empname` varchar(64) NOT NULL,
  `expense_details` longtext,
  `amount` decimal(10,2) DEFAULT NULL,
  `remark` longtext NOT NULL,
  `status` varchar(16) NOT NULL,
  `flag` tinyint(4) DEFAULT NULL,
  `accountyear` varchar(15) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `cash_expense_entry`
--

INSERT INTO `cash_expense_entry` (`id`, `cashno`, `expensedate`, `expensetype`, `expenser`, `empname`, `expense_details`, `amount`, `remark`, `status`, `flag`, `accountyear`) VALUES
(1, '1', '2025-02-01', '1', '1', 'BALA', '10 TEA', '150.00', '', '', 1, '2024-2025'),
(2, '2', '2025-02-03', '2', '1', 'BALA', '5 LTR', '550.00', '', '', 1, '2024-2025');

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

--
-- Table structure for table `collection_customer`
--

CREATE TABLE `collection_customer` (
  `id` bigint(20) NOT NULL,
  `cashno` varchar(255) DEFAULT NULL,
  `collectiondate` varchar(100) DEFAULT NULL,
  `customerID` int(11) DEFAULT NULL,
  `pending` decimal(10,2) DEFAULT NULL,
  `paymenttype` text,
  `amount` decimal(10,2) DEFAULT NULL,
  `flag` tinyint(4) DEFAULT NULL,
  `saleID` int(11) DEFAULT NULL,
  `paymentreference` varchar(250) DEFAULT NULL,
  `remark` varchar(512) NOT NULL,
  `accountyear` varchar(15) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `customer_master`
--

CREATE TABLE `customer_master` (
  `id` int(11) NOT NULL,
  `cname` varchar(250) DEFAULT NULL,
  `caddress` text,
  `customer_state` varchar(250) DEFAULT NULL,
  `pincode` varchar(50) DEFAULT NULL,
  `mobile` varchar(20) DEFAULT NULL,
  `opening_balance` decimal(10,2) DEFAULT NULL,
  `ccode` varchar(250) DEFAULT NULL,
  `createdate` date DEFAULT NULL COMMENT 'logined user name save ',
  `createdby` varchar(200) DEFAULT NULL,
  `userID` int(11) DEFAULT NULL COMMENT 'logined user name id',
  `isdelete` tinyint(4) DEFAULT '1' COMMENT '0-Delete,1-Not Delete'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `customer_master`
--

INSERT INTO `customer_master` (`id`, `cname`, `caddress`, `customer_state`, `pincode`, `mobile`, `opening_balance`, `ccode`, `createdate`, `createdby`, `userID`, `isdelete`) VALUES
(1, 'bala', 'cbe', 'TamilNadu', '641006', '9786876323', '1000.00', 'CUS-1', '2025-02-07', 'admin', 1, 1),
(2, 'Jegatheesh', 'cbe', 'TamilNadu', '876876', '9898988767', '500.00', 'CUS-2', '2025-02-07', 'admin', 1, 1),
(3, 'Feenix', 'cbe', 'TamilNadu', '987987', '9898987878', '0.00', 'CUS-3', '2025-02-07', 'admin', 1, 1),
(4, 'Rapid', 'cbe', 'TamilNadu', '987987', '9898989878', '0.00', 'CUS-4', '2025-02-07', 'admin', 1, 1);

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

--
-- Table structure for table `customer_payment_header`
--

CREATE TABLE `customer_payment_header` (
  `id` int(11) NOT NULL,
  `cashno` varchar(255) DEFAULT NULL,
  `sales_inv` varchar(32) NOT NULL,
  `collectiondate` varchar(100) DEFAULT NULL,
  `customerID` int(11) DEFAULT NULL,
  `pending` decimal(10,2) NOT NULL,
  `paymenttype` varchar(32) NOT NULL,
  `paymentreference` varchar(32) NOT NULL,
  `flag` tinyint(4) DEFAULT NULL,
  `status` varchar(32) NOT NULL,
  `bank_name` varchar(32) NOT NULL,
  `handover` varchar(32) NOT NULL,
  `transactionno` varchar(32) NOT NULL,
  `remark` varchar(512) NOT NULL,
  `paidby` varchar(32) NOT NULL,
  `received_amount` decimal(10,2) NOT NULL,
  `cash_amount` decimal(10,2) NOT NULL,
  `bank_amount` decimal(10,2) NOT NULL,
  `discount` decimal(10,2) NOT NULL,
  `tray_amount` decimal(10,2) NOT NULL,
  `saleid` int(11) NOT NULL,
  `payment_through` varchar(32) NOT NULL,
  `accountyear` varchar(15) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `customer_payment_header`
--

INSERT INTO `customer_payment_header` (`id`, `cashno`, `sales_inv`, `collectiondate`, `customerID`, `pending`, `paymenttype`, `paymentreference`, `flag`, `status`, `bank_name`, `handover`, `transactionno`, `remark`, `paidby`, `received_amount`, `cash_amount`, `bank_amount`, `discount`, `tray_amount`, `saleid`, `payment_through`, `accountyear`) VALUES
(1, 'SCL/24-25/1', '', '2025-02-07', 1, '5650.00', 'Cash', 'CASH', 1, '', '', '', '', '', 'admin', '650.00', '0.00', '0.00', '0.00', '0.00', 0, 'Accounts', '2024-2025');

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

--
-- Table structure for table `customer_statement`
--

CREATE TABLE `customer_statement` (
  `id` int(11) NOT NULL,
  `entrydate` date NOT NULL,
  `customer_id` int(11) NOT NULL,
  `customername` varchar(32) NOT NULL,
  `sale_type` varchar(32) NOT NULL,
  `salesamount` float NOT NULL,
  `collectionamount` float NOT NULL,
  `mode` varchar(32) NOT NULL,
  `salesid` varchar(32) NOT NULL,
  `collectionid` varchar(32) NOT NULL,
  `create_date` date NOT NULL,
  `flag` tinyint(4) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `employee_master`
--

CREATE TABLE `employee_master` (
  `id` int(11) NOT NULL,
  `ename` varchar(250) DEFAULT NULL,
  `eaddress` text,
  `mobile` varchar(20) DEFAULT NULL,
  `ecode` varchar(250) DEFAULT NULL,
  `createdate` date DEFAULT NULL COMMENT 'logined user name save ',
  `createdby` varchar(200) DEFAULT NULL,
  `userID` int(11) DEFAULT NULL COMMENT 'logined user name id',
  `isdelete` tinyint(4) DEFAULT '1' COMMENT '0-Delete,1-Not Delete'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `employee_master`
--

INSERT INTO `employee_master` (`id`, `ename`, `eaddress`, `mobile`, `ecode`, `createdate`, `createdby`, `userID`, `isdelete`) VALUES
(1, 'BALA', 'CBE', '9786876323', 'EMP-1', '2025-02-08', 'admin', 1, 1);

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

--
-- Table structure for table `expense_master`
--

CREATE TABLE `expense_master` (
  `id` int(11) NOT NULL,
  `expense` text NOT NULL,
  `flag` tinyint(4) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `expense_master`
--

INSERT INTO `expense_master` (`id`, `expense`, `flag`) VALUES
(1, 'TEA', 1),
(2, 'PETROL', 1),
(3, 'EB', 1);

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

--
-- Table structure for table `login_details`
--

CREATE TABLE `login_details` (
  `id` bigint(20) NOT NULL,
  `login_date_start` datetime DEFAULT NULL,
  `ip` text,
  `useragent` text,
  `userid` int(11) DEFAULT NULL,
  `session_code` int(11) DEFAULT NULL,
  `login_date_end` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `login_details`
--

INSERT INTO `login_details` (`id`, `login_date_start`, `ip`, `useragent`, `userid`, `session_code`, `login_date_end`) VALUES
(0, '2025-02-07 18:13:40', '::1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36', 1, 95307, NULL),
(1, NULL, '223.185.22.211', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36', 1, 87270, '2025-02-05 15:08:18'),
(2, '2025-02-05 09:38:26', '223.185.22.211', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36', 1, 15404, NULL),
(3, '2025-02-07 05:51:24', '223.185.22.211', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36', 1, 79250, NULL),
(4, '2025-02-07 18:02:51', '49.206.118.115', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36', 1, 84987, NULL),
(5, '2025-02-08 07:38:28', '223.185.24.160', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36', 1, 78752, NULL),
(6, '2025-02-08 09:00:13', '223.185.24.160', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36', 1, 73811, NULL),
(7, '2025-02-08 10:53:16', '::1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36', 1, 59134, NULL),
(8, '2025-02-10 07:54:37', '::1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36', 1, 65750, NULL);

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

--
-- Table structure for table `podetails`
--

CREATE TABLE `podetails` (
  `id` int(11) NOT NULL,
  `saleheader_id` int(11) DEFAULT NULL,
  `productID` varchar(128) DEFAULT NULL,
  `sale_eqty` varchar(50) DEFAULT NULL,
  `partno` varchar(32) NOT NULL,
  `create_date` varchar(150) DEFAULT NULL,
  `flag` tinyint(4) DEFAULT NULL,
  `accountyear` varchar(15) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `poheader`
--

CREATE TABLE `poheader` (
  `id` int(11) NOT NULL,
  `invoice_no` varchar(250) DEFAULT NULL,
  `invoicedate` varchar(50) DEFAULT NULL,
  `supplier_id` int(11) DEFAULT NULL,
  `workorder_no` varchar(65) NOT NULL,
  `itemcount` int(11) DEFAULT NULL,
  `create_date` varchar(50) DEFAULT NULL,
  `flag` tinyint(4) DEFAULT NULL,
  `accountyear` varchar(15) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `productiondetails`
--

CREATE TABLE `productiondetails` (
  `id` int(11) NOT NULL,
  `productionheader_id` int(11) DEFAULT NULL,
  `partno` varchar(32) NOT NULL,
  `product_name` varchar(64) NOT NULL,
  `productID` int(11) DEFAULT NULL,
  `sale_eqty` varchar(50) DEFAULT NULL,
  `create_date` varchar(150) DEFAULT NULL,
  `flag` tinyint(4) DEFAULT NULL,
  `accountyear` varchar(15) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `productionheader`
--

CREATE TABLE `productionheader` (
  `id` int(11) NOT NULL,
  `production_no` varchar(250) DEFAULT NULL,
  `invoicedate` varchar(50) DEFAULT NULL,
  `product_name` varchar(64) DEFAULT NULL,
  `partno` varchar(64) NOT NULL,
  `workorder_no` varchar(64) NOT NULL,
  `itemcount` int(11) DEFAULT NULL,
  `create_date` varchar(50) DEFAULT NULL,
  `flag` tinyint(4) DEFAULT NULL,
  `accountyear` varchar(15) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `product_mapping_customer`
--

CREATE TABLE `product_mapping_customer` (
  `id` int(11) NOT NULL,
  `purchase_productid` int(11) NOT NULL,
  `productID` int(11) NOT NULL,
  `customerID` int(11) NOT NULL,
  `productcode` varchar(250) NOT NULL,
  `productname` varchar(255) NOT NULL,
  `prodct_description` text NOT NULL,
  `qty_type` varchar(32) NOT NULL,
  `quantity` decimal(10,2) NOT NULL,
  `purchase_rate` decimal(10,2) NOT NULL,
  `sale_rate` decimal(10,2) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `product_mapping_customer`
--

INSERT INTO `product_mapping_customer` (`id`, `purchase_productid`, `productID`, `customerID`, `productcode`, `productname`, `prodct_description`, `qty_type`, `quantity`, `purchase_rate`, `sale_rate`) VALUES
(1, 1, 1, 1, 'SPR-1', 'Poosanikaai 10kg', '.', 'KGS', '10.00', '6.00', '0.00'),
(2, 1, 2, 1, 'SPR-2', 'Poosanikaai 50kg', '.', 'KGS', '60.00', '6.00', '0.00'),
(3, 1, 1, 2, 'SPR-1', 'Poosanikaai 10kg', '.', 'KGS', '10.00', '6.00', '0.00'),
(4, 1, 2, 2, 'SPR-2', 'Poosanikaai 50kg', '.', 'KGS', '60.00', '6.00', '0.00'),
(5, 1, 1, 3, 'SPR-1', 'Poosanikaai 10kg', '.', 'KGS', '10.00', '6.00', '0.00'),
(6, 1, 2, 3, 'SPR-2', 'Poosanikaai 50kg', '.', 'KGS', '60.00', '6.00', '0.00'),
(7, 1, 1, 4, 'SPR-1', 'Poosanikaai 10kg', '.', 'KGS', '10.00', '6.00', '0.00'),
(8, 1, 2, 4, 'SPR-2', 'Poosanikaai 50kg', '.', 'KGS', '60.00', '6.00', '0.00'),
(9, 3, 3, 1, 'SPR-3', 'Sambar Poosani 10kg', '.', 'KGS', '10.00', '12.00', '0.00'),
(10, 3, 3, 2, 'SPR-3', 'Sambar Poosani 10kg', '.', 'KGS', '10.00', '12.00', '0.00'),
(11, 3, 3, 3, 'SPR-3', 'Sambar Poosani 10kg', '.', 'KGS', '10.00', '12.00', '0.00'),
(12, 3, 3, 4, 'SPR-3', 'Sambar Poosani 10kg', '.', 'KGS', '10.00', '12.00', '0.00'),
(13, 3, 4, 1, 'SPR-4', 'Sambar Poosani 50kg', '.', '', '50.00', '12.00', '0.00'),
(14, 3, 4, 2, 'SPR-4', 'Sambar Poosani 50kg', '.', '', '50.00', '12.00', '0.00'),
(15, 3, 4, 3, 'SPR-4', 'Sambar Poosani 50kg', '.', '', '50.00', '12.00', '0.00'),
(16, 3, 4, 4, 'SPR-4', 'Sambar Poosani 50kg', '.', '', '50.00', '12.00', '0.00');

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

--
-- Table structure for table `product_mapping_supplier`
--

CREATE TABLE `product_mapping_supplier` (
  `id` int(11) NOT NULL,
  `productID` int(11) NOT NULL,
  `supplierID` int(11) NOT NULL,
  `productcode` varchar(250) NOT NULL,
  `productname` varchar(255) NOT NULL,
  `prodct_description` text NOT NULL,
  `qty_type` varchar(32) NOT NULL,
  `quantity` decimal(10,2) NOT NULL,
  `adjustment_qty` decimal(10,2) NOT NULL,
  `purchase_rate` decimal(10,2) NOT NULL,
  `sale_rate` decimal(10,2) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `product_mapping_supplier`
--

INSERT INTO `product_mapping_supplier` (`id`, `productID`, `supplierID`, `productcode`, `productname`, `prodct_description`, `qty_type`, `quantity`, `adjustment_qty`, `purchase_rate`, `sale_rate`) VALUES
(1, 1, 1, 'MPR-1', 'Poosanikaai', '.', 'KGS', '1.00', '0.00', '5.00', '0.00'),
(2, 2, 1, 'MPR-2', 'Avarai', '', 'KGS', '1.00', '60.00', '5.00', '0.00'),
(4, 1, 2, 'MPR-1', 'Poosanikaai', '.', 'KGS', '1.00', '0.00', '5.00', '0.00'),
(5, 2, 2, 'MPR-2', 'Avarai', '', 'KGS', '1.00', '60.00', '5.00', '0.00'),
(6, 3, 1, 'MPR-3', 'Sambar Poosani', '.', 'KGS', '1.00', '50.00', '10.00', '0.00'),
(7, 3, 2, 'MPR-3', 'Sambar Poosani', '.', 'KGS', '1.00', '50.00', '10.00', '0.00');

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

--
-- Table structure for table `product_master`
--

CREATE TABLE `product_master` (
  `id` int(11) NOT NULL,
  `purchase_productid` int(11) NOT NULL,
  `productcode` text NOT NULL,
  `productname` text NOT NULL,
  `qty_type` varchar(12) NOT NULL,
  `purchase_rate` text NOT NULL,
  `quantity` decimal(10,2) NOT NULL,
  `prodct_description` text NOT NULL,
  `createddate` date NOT NULL,
  `createdby` varchar(200) NOT NULL,
  `userId` int(11) NOT NULL,
  `isdelete` tinyint(4) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `product_master`
--

INSERT INTO `product_master` (`id`, `purchase_productid`, `productcode`, `productname`, `qty_type`, `purchase_rate`, `quantity`, `prodct_description`, `createddate`, `createdby`, `userId`, `isdelete`) VALUES
(1, 1, 'SPR-1', 'Poosanikaai 10kg', 'KGS', '6', '10.00', '.', '2025-02-07', 'admin', 0, 1),
(2, 1, 'SPR-2', 'Poosanikaai 50kg', 'KGS', '6', '60.00', '.', '2025-02-07', 'admin', 0, 1),
(3, 3, 'SPR-3', 'Sambar Poosani 10kg', 'KGS', '12', '10.00', '.', '2025-02-08', 'admin', 0, 1),
(4, 3, 'SPR-4', 'Sambar Poosani 50kg', 'KGS', '12', '50.00', '.', '2025-02-08', 'admin', 0, 1);

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

--
-- Table structure for table `purchasedetails`
--

CREATE TABLE `purchasedetails` (
  `id` int(11) NOT NULL,
  `purchaseheader_id` int(11) DEFAULT NULL,
  `productID` int(11) DEFAULT NULL,
  `productname` varchar(64) NOT NULL,
  `qty_type` varchar(64) NOT NULL,
  `loadqty` decimal(10,2) NOT NULL,
  `adj_qty` decimal(10,2) NOT NULL,
  `purchase_eqty` decimal(10,2) DEFAULT NULL,
  `purchase_prate` decimal(10,2) DEFAULT NULL,
  `purchasenetamt` decimal(10,2) DEFAULT NULL,
  `status` varchar(32) NOT NULL,
  `create_date` varchar(150) DEFAULT NULL,
  `flag` tinyint(4) DEFAULT NULL,
  `accountyear` varchar(15) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `purchasedetails`
--

INSERT INTO `purchasedetails` (`id`, `purchaseheader_id`, `productID`, `productname`, `qty_type`, `loadqty`, `adj_qty`, `purchase_eqty`, `purchase_prate`, `purchasenetamt`, `status`, `create_date`, `flag`, `accountyear`) VALUES
(1, 1, 1, 'Poosanikaai 10kg', 'KGS', '1000.00', '50.00', '950.00', '5.00', '4750.00', '', '2025-02-07 07:40:42', 1, '2024-2025'),
(2, 2, 3, 'Sambar Poosani 10kg', 'KGS', '2500.00', '50.00', '2450.00', '10.00', '24500.00', 'DELETED', '2025-02-08 07:42:21', 1, '2024-2025'),
(3, 3, 3, 'Sambar Poosani 10kg', 'KGS', '2500.00', '50.00', '2450.00', '10.00', '24500.00', '', '2025-02-08 10:54:13', 1, '2024-2025'),
(4, 3, 1, 'Poosanikaai 10kg', 'KGS', '1000.00', '50.00', '950.00', '5.00', '4750.00', '', '2025-02-08 10:54:13', 1, '2024-2025');

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

--
-- Table structure for table `purchaseheader`
--

CREATE TABLE `purchaseheader` (
  `id` int(11) NOT NULL,
  `invoice_no` varchar(250) DEFAULT NULL,
  `purchase_date` date DEFAULT NULL,
  `supplier_id` int(11) DEFAULT NULL,
  `sname` varchar(120) DEFAULT NULL,
  `po_number` varchar(32) NOT NULL,
  `supplier_invoice` varchar(32) NOT NULL,
  `supplier_invoice_date` date NOT NULL,
  `itemcount` int(11) DEFAULT NULL,
  `vehicle_rent` decimal(10,2) NOT NULL,
  `tamount` varchar(50) DEFAULT NULL,
  `remark` varchar(1024) NOT NULL,
  `status` varchar(32) NOT NULL,
  `user` varchar(64) NOT NULL,
  `create_date` varchar(50) DEFAULT NULL,
  `flag` tinyint(4) DEFAULT NULL,
  `accountyear` varchar(15) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `purchaseheader`
--

INSERT INTO `purchaseheader` (`id`, `invoice_no`, `purchase_date`, `supplier_id`, `sname`, `po_number`, `supplier_invoice`, `supplier_invoice_date`, `itemcount`, `vehicle_rent`, `tamount`, `remark`, `status`, `user`, `create_date`, `flag`, `accountyear`) VALUES
(1, 'PUR/24-25/001', '2025-02-07', 1, 'rapid', '', '0', '2025-02-07', 1, '0.00', '4750', '', '', 'admin', '2025-02-07 07:40:42', 1, '2024-2025'),
(2, 'PUR/24-25/002', '2025-02-08', 2, 'Rajan', '', '0', '2025-02-08', 1, '0.00', '24500', '', 'DELETED', 'admin', '2025-02-08 07:42:21', 1, '2024-2025'),
(3, 'PUR/24-25/002', '2025-02-08', 2, 'Rajan', '', '0', '2025-02-08', 2, '400.00', '29250', '', '', 'admin', '2025-02-08 10:54:13', 1, '2024-2025');

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

--
-- Table structure for table `purchase_product_master`
--

CREATE TABLE `purchase_product_master` (
  `id` int(11) NOT NULL,
  `productcode` text NOT NULL,
  `productname` text NOT NULL,
  `qty_type` varchar(12) NOT NULL,
  `purchase_rate` decimal(10,2) NOT NULL,
  `quantity` decimal(10,2) NOT NULL,
  `adjustment_qty` decimal(10,2) NOT NULL,
  `prodct_description` text NOT NULL,
  `createddate` date NOT NULL,
  `createdby` varchar(200) NOT NULL,
  `userId` int(11) NOT NULL,
  `isdelete` tinyint(4) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `purchase_product_master`
--

INSERT INTO `purchase_product_master` (`id`, `productcode`, `productname`, `qty_type`, `purchase_rate`, `quantity`, `adjustment_qty`, `prodct_description`, `createddate`, `createdby`, `userId`, `isdelete`) VALUES
(1, 'MPR-1', 'Poosanikaai', 'KGS', '5.00', '1.00', '0.00', '.', '2025-02-07', 'admin', 0, 1),
(2, 'MPR-2', 'Avarai', 'KGS', '5.00', '1.00', '60.00', '', '2025-02-07', 'admin', 0, 1),
(3, 'MPR-3', 'Sambar Poosani', 'KGS', '10.00', '1.00', '50.00', '.', '2025-02-08', 'admin', 0, 1);

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

--
-- Table structure for table `saledetails`
--

CREATE TABLE `saledetails` (
  `id` int(11) NOT NULL,
  `saleheader_id` int(11) DEFAULT NULL,
  `purchase_productID` int(11) NOT NULL,
  `productID` int(11) DEFAULT NULL,
  `conv_qty` decimal(10,2) NOT NULL,
  `sale_eqty` varchar(50) DEFAULT NULL,
  `kooli_rate` decimal(10,2) NOT NULL,
  `kooli_charge` decimal(10,2) NOT NULL,
  `sale_prate` decimal(10,2) DEFAULT NULL,
  `salenetamt` decimal(10,2) DEFAULT NULL,
  `status` longtext NOT NULL,
  `create_date` varchar(150) DEFAULT NULL,
  `flag` tinyint(4) DEFAULT NULL,
  `accountyear` varchar(15) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `saledetails`
--

INSERT INTO `saledetails` (`id`, `saleheader_id`, `purchase_productID`, `productID`, `conv_qty`, `sale_eqty`, `kooli_rate`, `kooli_charge`, `sale_prate`, `salenetamt`, `status`, `create_date`, `flag`, `accountyear`) VALUES
(1, 1, 1, 1, '10.00', '5', '0.00', '0.00', '6.00', '300.00', 'DELETED', '2025-02-07 07:43:07', 1, '2024-2025'),
(2, 1, 1, 2, '60.00', '10', '0.00', '0.00', '6.00', '3600.00', 'DELETED', '2025-02-07 07:43:07', 1, '2024-2025'),
(3, 2, 1, 1, '10.00', '10', '20.00', '200.00', '6.00', '600.00', '', '2025-02-07 07:44:25', 1, '2024-2025'),
(4, 2, 1, 2, '60.00', '10', '25.00', '250.00', '6.00', '3600.00', '', '2025-02-07 07:44:25', 1, '2024-2025'),
(5, 3, 3, 3, '10.00', '10', '25.00', '250.00', '12.00', '1200.00', 'DELETED', '2025-02-08 07:48:36', 1, '2024-2025'),
(6, 3, 3, 4, '50.00', '10', '35.00', '350.00', '12.00', '6000.00', 'DELETED', '2025-02-08 07:48:36', 1, '2024-2025'),
(7, 4, 3, 3, '10.00', '10', '25.00', '250.00', '12.00', '1200.00', '', '2025-02-08 11:32:10', 1, '2024-2025'),
(8, 4, 3, 4, '50.00', '10', '35.00', '350.00', '12.00', '6000.00', '', '2025-02-08 11:32:10', 1, '2024-2025'),
(9, 4, 1, 2, '60.00', '1', '0.00', '0.00', '6.00', '360.00', '', '2025-02-08 11:32:10', 1, '2024-2025');

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

--
-- Table structure for table `saleheader`
--

CREATE TABLE `saleheader` (
  `id` int(11) NOT NULL,
  `invoice_no` varchar(250) DEFAULT NULL,
  `sale_date` varchar(50) DEFAULT NULL,
  `customer_id` int(11) DEFAULT NULL,
  `cname` varchar(64) NOT NULL,
  `vehicleno` varchar(32) NOT NULL,
  `billing_address` longtext NOT NULL,
  `del_address` longtext NOT NULL,
  `notes` longtext NOT NULL,
  `description` text NOT NULL,
  `extra_amount` decimal(10,2) NOT NULL,
  `itemcount` int(11) DEFAULT NULL,
  `pending_tamount` decimal(10,2) NOT NULL,
  `tamount` varchar(50) DEFAULT NULL,
  `status` varchar(32) NOT NULL,
  `user` varchar(32) NOT NULL,
  `create_date` varchar(50) DEFAULT NULL,
  `flag` tinyint(4) DEFAULT NULL,
  `accountyear` varchar(15) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `saleheader`
--

INSERT INTO `saleheader` (`id`, `invoice_no`, `sale_date`, `customer_id`, `cname`, `vehicleno`, `billing_address`, `del_address`, `notes`, `description`, `extra_amount`, `itemcount`, `pending_tamount`, `tamount`, `status`, `user`, `create_date`, `flag`, `accountyear`) VALUES
(1, 'INV/24-25/001', '2025-02-07', 1, 'bala', '', 'cbe-641006', '', '', '', '0.00', 2, '1000.00', '3900', 'DELETED', 'admin', '2025-02-07 07:43:07', 1, '2024-2025'),
(2, 'INV/24-25/001', '2025-02-07', 1, 'bala', '', 'cbe-641006', '', '', '', '450.00', 2, '1000.00', '4200', '', 'admin', '2025-02-07 07:44:25', 1, '2024-2025'),
(3, 'INV/24-25/002', '2025-02-08', 1, 'bala', '', 'cbe-641006', '', '', '', '600.00', 2, '4550.00', '7200', 'DELETED', 'admin', '2025-02-08 07:48:36', 1, '2024-2025'),
(4, 'INV/24-25/002', '2025-02-08', 1, 'bala', '', 'cbe-641006', '', '', '', '600.00', 3, '4550.00', '7560', '', 'admin', '2025-02-08 11:32:10', 1, '2024-2025');

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

--
-- Table structure for table `supplier_master`
--

CREATE TABLE `supplier_master` (
  `id` int(11) NOT NULL,
  `sname` varchar(250) DEFAULT NULL,
  `saddress` text,
  `supplier_state` varchar(250) DEFAULT NULL,
  `pincode` varchar(50) DEFAULT NULL,
  `mobile` varchar(20) DEFAULT NULL,
  `opening_balance` decimal(10,2) DEFAULT NULL,
  `other_ref` text,
  `scode` varchar(250) DEFAULT NULL,
  `createdate` date DEFAULT NULL COMMENT 'logined user name save ',
  `createdby` varchar(200) DEFAULT NULL,
  `userID` int(11) DEFAULT NULL COMMENT 'logined user name id',
  `isdelete` tinyint(4) DEFAULT '1' COMMENT '0-Delete,1-Not Delete'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `supplier_master`
--

INSERT INTO `supplier_master` (`id`, `sname`, `saddress`, `supplier_state`, `pincode`, `mobile`, `opening_balance`, `other_ref`, `scode`, `createdate`, `createdby`, `userID`, `isdelete`) VALUES
(1, 'rapid', 'cbe', 'TamilNadu', '641006', '8124010173', '500.00', NULL, 'SUPP-1', '2025-02-07', 'admin', 1, 1),
(2, 'Rajan', 'cbe', 'TamilNadu', '987987', '9898989887', '2000.00', NULL, 'SUPP-2', '2025-02-07', 'admin', 1, 1);

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

--
-- Table structure for table `supplier_payment`
--

CREATE TABLE `supplier_payment` (
  `id` bigint(20) NOT NULL,
  `cashno` varchar(255) DEFAULT NULL,
  `collectiondate` varchar(100) DEFAULT NULL,
  `supplierID` int(11) DEFAULT NULL,
  `pending` decimal(10,2) DEFAULT NULL,
  `paymenttype` text,
  `amount` decimal(10,2) DEFAULT NULL,
  `flag` tinyint(4) DEFAULT NULL,
  `purchaseID` int(11) DEFAULT NULL,
  `paymentreference` varchar(250) DEFAULT NULL,
  `accountyear` varchar(15) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `supplier_payment_header`
--

CREATE TABLE `supplier_payment_header` (
  `id` int(11) NOT NULL,
  `cashno` varchar(255) DEFAULT NULL,
  `collectiondate` varchar(100) DEFAULT NULL,
  `supplierID` int(11) DEFAULT NULL,
  `pending` decimal(10,2) NOT NULL,
  `paymenttype` varchar(32) NOT NULL,
  `paymentreference` varchar(32) NOT NULL,
  `flag` tinyint(4) DEFAULT NULL,
  `status` varchar(32) NOT NULL,
  `bank_name` varchar(32) NOT NULL,
  `handover` varchar(32) NOT NULL,
  `transactionno` varchar(32) NOT NULL,
  `remark` varchar(512) NOT NULL,
  `paidby` varchar(32) NOT NULL,
  `received_amount` decimal(10,2) NOT NULL,
  `saleid` int(11) NOT NULL,
  `payment_through` varchar(32) NOT NULL,
  `accountyear` varchar(15) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `supplier_payment_header`
--

INSERT INTO `supplier_payment_header` (`id`, `cashno`, `collectiondate`, `supplierID`, `pending`, `paymenttype`, `paymentreference`, `flag`, `status`, `bank_name`, `handover`, `transactionno`, `remark`, `paidby`, `received_amount`, `saleid`, `payment_through`, `accountyear`) VALUES
(1, 'PCL/24-25/1', '2025-02-07', 1, '0.00', 'Gpay', '', 1, '', '', '', '', '.', 'admin', '5000.00', 0, 'Accounts', '2024-2025');

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

--
-- Table structure for table `supplier_statement`
--

CREATE TABLE `supplier_statement` (
  `id` int(11) NOT NULL,
  `entrydate` date NOT NULL,
  `supplier_id` int(11) NOT NULL,
  `suppliername` varchar(32) NOT NULL,
  `purchase_type` varchar(32) NOT NULL,
  `purchaseamount` float NOT NULL,
  `collectionamount` float NOT NULL,
  `mode` varchar(32) NOT NULL,
  `purchaseid` varchar(32) NOT NULL,
  `collectionid` varchar(32) NOT NULL,
  `create_date` date NOT NULL,
  `flag` tinyint(4) NOT NULL,
  `accountyear` varchar(33) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `type_master`
--

CREATE TABLE `type_master` (
  `id` int(11) NOT NULL,
  `category` varchar(32) NOT NULL,
  `type` text NOT NULL,
  `flag` tinyint(4) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `user_login`
--

CREATE TABLE `user_login` (
  `id` int(11) NOT NULL,
  `username` text NOT NULL,
  `password` text NOT NULL,
  `loginstatus` tinyint(4) NOT NULL COMMENT '1-activestatus, 2-inactivestatus, 0-deletestatus',
  `flag` tinyint(4) NOT NULL COMMENT '1-active,0-delete',
  `user_permisson` varchar(200) NOT NULL,
  `session_code` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `user_login`
--

INSERT INTO `user_login` (`id`, `username`, `password`, `loginstatus`, `flag`, `user_permisson`, `session_code`) VALUES
(1, 'admin', 'admin', 1, 1, 'ADMIN@thinkofmind.com', 65750),
(10, 'jega', 'jega@123', 1, 1, 'USER', 98328);

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

--
-- Table structure for table `user_permission`
--

CREATE TABLE `user_permission` (
  `id` int(11) NOT NULL,
  `userID` int(11) NOT NULL,
  `filenames` text NOT NULL,
  `dataadd` tinyint(4) NOT NULL,
  `dataedit` tinyint(4) NOT NULL,
  `datadelete` tinyint(4) NOT NULL,
  `datashow` tinyint(4) NOT NULL,
  `dataprint` tinyint(4) NOT NULL,
  `dataexcelformat` tinyint(4) NOT NULL,
  `activestatus` tinyint(4) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `user_permission`
--

INSERT INTO `user_permission` (`id`, `userID`, `filenames`, `dataadd`, `dataedit`, `datadelete`, `datashow`, `dataprint`, `dataexcelformat`, `activestatus`) VALUES
(1, 1, 'productMaster', 1, 1, 1, 1, 1, 1, 1),
(2, 1, 'productpriceMaster', 1, 1, 1, 1, 1, 1, 1),
(3, 1, 'customerMaster', 1, 1, 1, 1, 1, 1, 1),
(4, 1, 'supplierMaster', 1, 1, 1, 1, 1, 1, 1),
(5, 1, 'expenseMaster', 1, 1, 1, 1, 1, 1, 1),
(6, 1, 'employeeMaster', 1, 1, 1, 1, 1, 1, 1),
(7, 1, 'Sales', 1, 1, 1, 1, 1, 1, 1),
(8, 1, 'Purchase', 1, 1, 1, 1, 1, 1, 1),
(9, 1, 'Accounts', 1, 1, 1, 1, 1, 1, 1),
(10, 1, 'reports', 1, 1, 1, 1, 1, 1, 1),
(11, 10, 'productMaster', 1, 1, 0, 1, 0, 0, 1),
(12, 10, 'productpriceMaster', 0, 0, 0, 1, 0, 0, 1),
(13, 10, 'customerMaster', 1, 1, 0, 1, 0, 0, 1),
(14, 10, 'supplierMaster', 1, 1, 0, 1, 0, 0, 1),
(15, 10, 'expenseMaster', 1, 1, 0, 1, 0, 0, 1),
(16, 10, 'employeeMaster', 1, 1, 0, 1, 0, 0, 1),
(17, 10, 'Sales', 1, 1, 0, 1, 0, 0, 1),
(18, 10, 'Purchase', 1, 1, 0, 1, 0, 0, 1),
(19, 10, 'Accounts', 1, 1, 0, 1, 0, 0, 1),
(20, 10, 'reports', 0, 0, 0, 1, 0, 0, 1);

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

--
-- Table structure for table `user_permission_master`
--

CREATE TABLE `user_permission_master` (
  `id` int(11) NOT NULL,
  `filenames` text NOT NULL,
  `dataadd` tinyint(4) NOT NULL,
  `dataedit` tinyint(4) NOT NULL,
  `datadelete` tinyint(4) NOT NULL,
  `datashow` tinyint(4) NOT NULL,
  `dataprint` tinyint(4) NOT NULL,
  `dataexcelformat` tinyint(4) NOT NULL,
  `activestatus` tinyint(4) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `user_permission_master`
--

INSERT INTO `user_permission_master` (`id`, `filenames`, `dataadd`, `dataedit`, `datadelete`, `datashow`, `dataprint`, `dataexcelformat`, `activestatus`) VALUES
(1, 'productMaster', 0, 0, 0, 0, 0, 0, 1),
(2, 'productpriceMaster', 0, 0, 0, 0, 0, 0, 1),
(3, 'customerMaster', 0, 0, 0, 0, 0, 0, 1),
(4, 'supplierMaster', 0, 0, 0, 0, 0, 0, 1),
(5, 'expenseMaster', 0, 0, 0, 0, 0, 0, 1),
(6, 'employeeMaster', 0, 0, 0, 0, 0, 0, 1),
(7, 'Sales', 0, 0, 0, 0, 0, 0, 1),
(8, 'Purchase', 0, 0, 0, 0, 0, 0, 1),
(9, 'Accounts', 0, 0, 0, 0, 0, 0, 1),
(10, 'reports', 0, 0, 0, 0, 0, 0, 1);

--
-- Indexes for dumped tables
--

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `admin_login`
--
ALTER TABLE `admin_login`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `admin_usermenulist`
--
ALTER TABLE `admin_usermenulist`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `cash_expense_entry`
--
ALTER TABLE `cash_expense_entry`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `collection_customer`
--
ALTER TABLE `collection_customer`
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `customer_master`
--
ALTER TABLE `customer_master`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `customer_payment_header`
--
ALTER TABLE `customer_payment_header`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `customer_statement`
--
ALTER TABLE `customer_statement`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `employee_master`
--
ALTER TABLE `employee_master`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `expense_master`
--
ALTER TABLE `expense_master`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `login_details`
--
ALTER TABLE `login_details`
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT for table `podetails`
--
ALTER TABLE `podetails`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `poheader`
--
ALTER TABLE `poheader`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `productiondetails`
--
ALTER TABLE `productiondetails`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `productionheader`
--
ALTER TABLE `productionheader`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `product_mapping_customer`
--
ALTER TABLE `product_mapping_customer`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17;
--
-- AUTO_INCREMENT for table `product_mapping_supplier`
--
ALTER TABLE `product_mapping_supplier`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT for table `product_master`
--
ALTER TABLE `product_master`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `purchasedetails`
--
ALTER TABLE `purchasedetails`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `purchaseheader`
--
ALTER TABLE `purchaseheader`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `purchase_product_master`
--
ALTER TABLE `purchase_product_master`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `saledetails`
--
ALTER TABLE `saledetails`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
--
-- AUTO_INCREMENT for table `saleheader`
--
ALTER TABLE `saleheader`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `supplier_master`
--
ALTER TABLE `supplier_master`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `supplier_payment`
--
ALTER TABLE `supplier_payment`
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `supplier_payment_header`
--
ALTER TABLE `supplier_payment_header`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `supplier_statement`
--
ALTER TABLE `supplier_statement`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `type_master`
--
ALTER TABLE `type_master`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `user_login`
--
ALTER TABLE `user_login`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
--
-- AUTO_INCREMENT for table `user_permission`
--
ALTER TABLE `user_permission`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=21;
--
-- AUTO_INCREMENT for table `user_permission_master`
--
ALTER TABLE `user_permission_master`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
/*!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 */;
