-- phpMyAdmin SQL Dump
-- version 4.4.14
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Mar 24, 2025 at 11:25 AM
-- Server version: 5.6.26
-- PHP Version: 5.6.12

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

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

--
-- Table structure for table `accounttype`
--

CREATE TABLE IF NOT EXISTS `accounttype` (
  `id` int(10) NOT NULL,
  `name` varchar(30) NOT NULL,
  `type` varchar(50) NOT NULL,
  `companyid` varchar(10) NOT NULL,
  `userid` varchar(10) NOT NULL,
  `description` text NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `accounttype`
--

INSERT INTO `accounttype` (`id`, `name`, `type`, `companyid`, `userid`, `description`) VALUES
(1, 'Asset', 'BS', '1', '415', 'Asset'),
(2, 'Liability', 'BS', '1', '415', 'Liability'),
(3, 'Equity', 'BS', '1', '415', 'Equity'),
(4, 'Income', 'PL', '1', '415', 'Income'),
(5, 'Expense', 'PL', '1', '415', 'Expense');

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

--
-- Table structure for table `activityloggs`
--

CREATE TABLE IF NOT EXISTS `activityloggs` (
  `id` int(30) NOT NULL,
  `userid` varchar(30) NOT NULL,
  `timedone` varchar(50) NOT NULL,
  `actiondone` text NOT NULL,
  `ip` text NOT NULL,
  `companyid` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `adjustmentcodes`
--

CREATE TABLE IF NOT EXISTS `adjustmentcodes` (
  `id` int(50) NOT NULL,
  `name` text NOT NULL,
  `code` varchar(50) NOT NULL,
  `description` text,
  `status` varchar(50) NOT NULL,
  `sort_order` varchar(50) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `adjustmentcodes`
--

INSERT INTO `adjustmentcodes` (`id`, `name`, `code`, `description`, `status`, `sort_order`) VALUES
(1, 'Cargo Transit Out', '01', NULL, 'Y', '1'),
(2, 'Cargo Transit In', '02', NULL, 'Y', '2'),
(3, 'Adjustment In', '03', NULL, 'Y', '3'),
(4, 'Adjustment Out', '04', NULL, 'Y', '4'),
(5, 'Discarding', '05', NULL, 'Y', '5'),
(6, 'Processing Raw', '06', NULL, 'Y', '6'),
(7, 'Processing Result', '07', NULL, 'Y', '7');

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

--
-- Table structure for table `admintable`
--

CREATE TABLE IF NOT EXISTS `admintable` (
  `id` int(11) NOT NULL,
  `username` varchar(50) NOT NULL,
  `password` varchar(20) DEFAULT NULL,
  `surname` varchar(50) NOT NULL,
  `firstname` varchar(50) NOT NULL,
  `phone` varchar(50) NOT NULL,
  `campus` varchar(30) NOT NULL,
  `college` varchar(30) NOT NULL,
  `department` varchar(30) NOT NULL,
  `type` varchar(50) NOT NULL,
  `token` text NOT NULL,
  `email` varchar(50) NOT NULL,
  `createdate` varchar(50) NOT NULL,
  `status` varchar(50) NOT NULL,
  `idno` varchar(40) NOT NULL,
  `updatedat` varchar(40) NOT NULL
) ENGINE=MyISAM AUTO_INCREMENT=33 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `admintable`
--

INSERT INTO `admintable` (`id`, `username`, `password`, `surname`, `firstname`, `phone`, `campus`, `college`, `department`, `type`, `token`, `email`, `createdate`, `status`, `idno`, `updatedat`) VALUES
(1, 'admin', 'Robisearch321', 'dd', 'ddd', '222222222', '', '', '', '', '', 'admqin@gmail.com', '', 'active', '2222222', '2016-11-07 04:32:35');

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

--
-- Table structure for table `advance`
--

CREATE TABLE IF NOT EXISTS `advance` (
  `id` int(11) NOT NULL,
  `tenantid` varchar(50) NOT NULL,
  `todate` varchar(50) NOT NULL,
  `amount` varchar(50) NOT NULL,
  `description` text NOT NULL,
  `status` varchar(50) NOT NULL DEFAULT 'active',
  `createdat` varchar(50) NOT NULL,
  `userid` varchar(50) NOT NULL,
  `companyid` varchar(50) NOT NULL,
  `balance` varchar(50) NOT NULL,
  `closedate` varchar(30) NOT NULL,
  `startdate` varchar(30) NOT NULL,
  `paid` decimal(10,0) DEFAULT NULL,
  `branchid` int(11) NOT NULL DEFAULT '1',
  `plotno` varchar(50) DEFAULT NULL,
  `houseno` varchar(50) DEFAULT NULL
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `advance`
--

INSERT INTO `advance` (`id`, `tenantid`, `todate`, `amount`, `description`, `status`, `createdat`, `userid`, `companyid`, `balance`, `closedate`, `startdate`, `paid`, `branchid`, `plotno`, `houseno`) VALUES
(1, '4 ', '', '5000', '', 'active', '2025-02-13 11:50:54am', '1', '1', '0', '2025-02-14 23:59:59', '2025-02-13 00:00:00', NULL, 1, '', '11739436625');

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

--
-- Table structure for table `advancepayment`
--

CREATE TABLE IF NOT EXISTS `advancepayment` (
  `id` int(30) NOT NULL,
  `createdat` varchar(30) NOT NULL,
  `userid` varchar(30) NOT NULL,
  `companyid` varchar(30) NOT NULL,
  `amount` varchar(30) NOT NULL,
  `balance` varchar(30) NOT NULL,
  `description` text NOT NULL,
  `advanceid` int(30) DEFAULT NULL,
  `branchid` varchar(20) NOT NULL DEFAULT '1'
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `advancepayment`
--

INSERT INTO `advancepayment` (`id`, `createdat`, `userid`, `companyid`, `amount`, `balance`, `description`, `advanceid`, `branchid`) VALUES
(1, '2025-01-16 09:00:16', '1', '1', '2337', '-2337', 'payment received', NULL, '1'),
(2, '2025-02-13 11:45:14', '1', '1', '120', '-120', 'payment received', NULL, '1');

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

--
-- Table structure for table `agent`
--

CREATE TABLE IF NOT EXISTS `agent` (
  `id` int(40) NOT NULL,
  `firstname` varchar(100) NOT NULL,
  `lastname` varchar(100) NOT NULL,
  `location` varchar(100) NOT NULL,
  `phone` varchar(100) NOT NULL,
  `email` varchar(100) NOT NULL,
  `description` text NOT NULL,
  `idno` varchar(100) NOT NULL,
  `country` varchar(100) NOT NULL,
  `gender` varchar(10) NOT NULL,
  `createdat` varchar(100) NOT NULL,
  `updatedat` varchar(100) NOT NULL,
  `userid` varchar(100) NOT NULL,
  `county` varchar(40) NOT NULL,
  `accountno` varchar(100) NOT NULL,
  `accountname` varchar(100) NOT NULL,
  `companyid` varchar(100) NOT NULL,
  `status` varchar(10) NOT NULL DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `alerts`
--

CREATE TABLE IF NOT EXISTS `alerts` (
  `id` int(100) NOT NULL,
  `contact` text NOT NULL,
  `postedtime` varchar(40) NOT NULL,
  `message` text NOT NULL,
  `status` varchar(50) NOT NULL DEFAULT 'active',
  `userid` varchar(50) NOT NULL,
  `companyid` varchar(50) NOT NULL,
  `duedate` varchar(30) NOT NULL,
  `duetime` varchar(30) NOT NULL,
  `deliverystatus` varchar(10) NOT NULL DEFAULT 'new',
  `name` varchar(30) NOT NULL,
  `type` varchar(30) NOT NULL,
  `groupname` varchar(30) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `allcurrencies`
--

CREATE TABLE IF NOT EXISTS `allcurrencies` (
  `id` int(10) NOT NULL,
  `country` varchar(100) NOT NULL,
  `currency` varchar(20) NOT NULL,
  `code` varchar(20) NOT NULL,
  `symbol` varchar(10) NOT NULL,
  `companyid` int(11) NOT NULL DEFAULT '1'
) ENGINE=InnoDB AUTO_INCREMENT=80 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `allcurrencies`
--

INSERT INTO `allcurrencies` (`id`, `country`, `currency`, `code`, `symbol`, `companyid`) VALUES
(1, 'Albania', 'Albanian lek', 'ALL', 'L', 1),
(2, 'Argentina', 'Argentine peso', 'ARS', '$', 1),
(3, 'Armenia', 'Armenian dram', 'AMD', '?', 1),
(4, 'Australia', 'Australian dollar', 'AUD', '$', 1),
(5, 'Azerbaijan', 'Azerbaijani manat', 'AZN', '?', 1),
(6, 'Belarus', 'Belarusian rubel', 'BYN', 'Rbl', 1),
(7, 'Bolivia', 'Boliviano', 'BOB', 'Bs.', 1),
(8, 'Botswana', 'Botswana pula', 'BWP', 'P', 1),
(9, 'Bulgaria', 'Bulgarian lev', 'BGN', '??.', 1),
(10, 'Brazil', 'Brazilian real', 'BRL', 'R$', 1),
(11, 'Cambodia', 'Cambodian riel', 'KHR', '?', 1),
(12, 'Canada', 'Canadian dollar', 'CAD', '$', 1),
(13, 'China', 'Chinese yuan (Renmin', 'CNY', '?', 1),
(14, 'Colombia', 'Colombian peso', 'COP', '$', 1),
(15, 'Costa Rica', 'Costa Rican col?n', 'CRC', '?', 1),
(16, 'Croatia', 'Croatian kuna', 'HRK', 'kn', 1),
(17, 'Cuba', 'Cuban peso', 'CUP', '$', 1),
(18, 'Czech Republic', 'Czech koruna', 'CZK', 'K?', 1),
(19, 'Denmark', 'Danish krone', 'DKK', 'kr.', 1),
(20, 'Dominican Republic', 'Dominican peso', 'DOP', '$', 1),
(21, 'Egypt', 'Egyptian pound', 'EGP', 'E?', 1),
(22, 'El Salvador', 'El Salvador col?n', 'SVC', '?', 1),
(23, 'European Union', 'Euro', 'EUR', '?', 1),
(24, 'Fiji', 'Fijian dollar', 'FJD', 'FJ$', 1),
(25, 'Ghana', 'Ghanaian cedi', 'GHS', 'GH?', 1),
(26, 'Guatemala', 'Guatemalan quetzal', 'GTQ', 'Q', 1),
(27, 'Guinea', 'Guinean franc', 'GNF', 'FG', 1),
(28, 'Guyana', 'Guyanese dollar', 'GYD', '$', 1),
(29, 'Hong Kong', 'Hong Kong dollar', 'HKD', '$', 1),
(30, 'Honduras', 'Honduran lempira', 'HNL', 'L', 1),
(31, 'Hungary', 'Hungarian forint', 'HUF', 'Ft', 1),
(32, 'India', 'Indian rupee', 'INR', '?', 1),
(33, 'Iceland', 'Icelandic kr?na', 'ISK', 'kr', 1),
(34, 'Iran', 'Iranian rial', 'IRR', '?', 1),
(35, 'Israel', 'Israeli shekel', 'ILS', '?', 1),
(36, 'Japan', 'Japanese yen', 'JPY', '?', 1),
(37, 'Kazakhstan', 'Kazakhstani tenge', 'KZT', '?', 1),
(38, 'Kenya', 'Kenyan shilling', 'KES', 'Ksh', 1),
(39, 'Kuwait', 'Kuwaiti dinar', 'KWD', '?.?', 1),
(40, 'Malawi', 'Malawian kwacha', 'MWK', 'MK', 1),
(41, 'Malaysia', 'Malaysian ringgit', 'MYR', 'RM', 1),
(42, 'Mexico', 'Mexican peso', 'MXN', '$', 1),
(43, 'Morocco', 'Moroccan dirham', 'MAD', 'MAD', 1),
(44, 'Namibia', 'Namibian dollar', 'NAD', 'N$', 1),
(45, 'Nepal', 'Nepalese rupee', 'NPR', 'Rs.', 1),
(46, 'New Zealand', 'New Zealand dollar', 'NZD', '$', 1),
(47, 'Norway', 'Norwegian krone', 'NOK', 'kr', 1),
(48, 'Oman', 'Omani rial', 'OMR', '?.?.', 1),
(49, 'Pakistan', 'Pakistani rupee', 'PKR', 'Rs', 1),
(50, 'Peru', 'Sol', 'PEN', 'S/', 1),
(51, 'Philippines', 'Philippine peso', 'PHP', '?', 1),
(52, 'Poland', 'Polish z?oty', 'PLN', 'z?', 1),
(53, 'Qatar', 'Qatari riyal', 'QAR', 'QR', 1),
(54, 'Romania', 'Romanian leu', 'RON', 'L', 1),
(55, 'Russia', 'Russian ruble', 'RUB', '?', 1),
(56, 'Saudi Arabia', 'Saudi riyal', 'SAR', '?.?', 1),
(57, 'Serbia', 'Serbian dinar', 'RSD', 'din', 1),
(58, 'Seychelles', 'Seychellois rupee', 'SCR', '?', 1),
(59, 'Singapore', 'Singapore dollar', 'SGD', '$', 1),
(60, 'Solomon Islands', 'Solomon Islands doll', 'SBD', 'Si$', 1),
(61, 'Somalia', 'Somali shilling', 'SOS', 'Sh.so', 1),
(62, 'South Africa', 'South African rand', 'ZAR', 'R', 1),
(63, 'Sri Lanka', 'Sri Lankan rupee', 'LKR', 'Re', 1),
(64, 'Sweden', 'Swedish krona', 'SEK', 'kr', 1),
(65, 'Switzerland', 'Swiss franc', 'CHF', 'CHf.', 1),
(66, 'Syria', 'Syrian pound', 'SYP', '?S', 1),
(67, 'Taiwan', 'New Taiwan dollar', 'TWD', 'NT$', 1),
(68, 'Thailand', 'Thai baht', 'THB', '?', 1),
(69, 'Trinidad and Tobago', 'Trinidad and Tobago ', 'TTD', 'TT$', 1),
(70, 'Turkey', 'Turkish lira', 'TRY', '?', 1),
(71, 'Ukraine', 'Ukrainian hryvnia', 'UAH', '?', 1),
(72, 'United Kingdom', 'Pound sterling', 'GBP', '?', 1),
(73, 'United States', 'United States dollar', 'USD', '$', 1),
(74, 'Uruguay', 'Uruguayan Peso', 'UYU', '$', 1),
(75, 'Uzbekistan', 'Uzbekistani sum', 'UZS', 'so?m', 1),
(76, 'Venezuela', 'Venezuelan bol?var', 'VED', 'Bs.', 1),
(77, 'Vietnam', 'Vietnamese dong', 'VND', '?', 1),
(78, 'Yemen', 'Yemeni rial', 'YER', '?', 1),
(79, 'Zimbabwe', 'Zimbabwean dollar', 'ZWL', '$', 1);

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

--
-- Table structure for table `alldocuments`
--

CREATE TABLE IF NOT EXISTS `alldocuments` (
  `id` int(11) NOT NULL,
  `name` text NOT NULL,
  `img_id` varchar(50) NOT NULL,
  `userid` int(11) NOT NULL,
  `date` varchar(50) DEFAULT NULL,
  `documentname` text,
  `companyid` varchar(100) NOT NULL DEFAULT '1',
  `branchid` int(11) NOT NULL DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `allpayments`
--

CREATE TABLE IF NOT EXISTS `allpayments` (
  `id` int(50) NOT NULL,
  `type` varchar(50) NOT NULL,
  `userid` varchar(50) NOT NULL,
  `amount` varchar(50) NOT NULL,
  `description` text NOT NULL,
  `dateposted` varchar(50) NOT NULL,
  `user` varchar(100) NOT NULL,
  `status` varchar(50) NOT NULL DEFAULT 'active',
  `createdat` varchar(50) NOT NULL,
  `receiptno` varchar(100) NOT NULL,
  `idno` varchar(100) NOT NULL,
  `contact` varchar(100) NOT NULL,
  `controller` varchar(100) NOT NULL,
  `imgid` varchar(100) NOT NULL,
  `img_id` text NOT NULL,
  `plotno` varchar(50) NOT NULL,
  `landlord` varchar(50) NOT NULL,
  `companyid` varchar(100) NOT NULL,
  `advance` varchar(20) NOT NULL,
  `direct` varchar(20) NOT NULL,
  `balance` varchar(20) NOT NULL,
  `mpesa` varchar(20) NOT NULL,
  `cash` varchar(20) NOT NULL,
  `card` varchar(20) NOT NULL,
  `cheque` varchar(20) NOT NULL,
  `month` varchar(20) NOT NULL,
  `year` varchar(20) NOT NULL,
  `paid` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `announcement`
--

CREATE TABLE IF NOT EXISTS `announcement` (
  `id` int(50) NOT NULL,
  `title` text NOT NULL,
  `target` varchar(50) NOT NULL,
  `message` text NOT NULL,
  `dateposted` varchar(50) NOT NULL,
  `status` varchar(50) NOT NULL,
  `type` varchar(50) NOT NULL,
  `companyid` int(11) NOT NULL,
  `userid` int(11) NOT NULL,
  `memberid` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `approvals`
--

CREATE TABLE IF NOT EXISTS `approvals` (
  `id` int(11) NOT NULL,
  `level` varchar(5) NOT NULL,
  `description` text NOT NULL,
  `createdate` varchar(50) NOT NULL,
  `status` varchar(50) NOT NULL DEFAULT 'active',
  `userid` varchar(50) NOT NULL,
  `updatedate` varchar(50) NOT NULL,
  `companyid` varchar(50) NOT NULL,
  `invoice` varchar(20) NOT NULL,
  `applicationid` int(20) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `approvals`
--

INSERT INTO `approvals` (`id`, `level`, `description`, `createdate`, `status`, `userid`, `updatedate`, `companyid`, `invoice`, `applicationid`) VALUES
(1, '', '', '2025-01-23 06:09:40', 'Approved', '1', '', '1', '11736407271', 1),
(2, '', '', '2025-01-23 06:17:32', 'TemporaryApproved', '1', '', '1', '11737601984', 8),
(3, '', '', '2025-01-23 06:18:36', 'Approved', '1', '', '1', '11737601984', 8),
(4, '', '', '2025-01-23 06:44:41', 'Rejected', '1', '', '1', '11737600589', 6),
(5, '', '', '2025-01-23 06:44:54', 'Approved', '1', '', '1', '11737600589', 6);

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

--
-- Table structure for table `asignrooms`
--

CREATE TABLE IF NOT EXISTS `asignrooms` (
  `id` int(11) NOT NULL,
  `roomid` varchar(40) NOT NULL,
  `plotno` varchar(100) DEFAULT NULL,
  `houseno` varchar(100) DEFAULT NULL,
  `status` varchar(40) NOT NULL,
  `createdat` varchar(100) NOT NULL,
  `updatedat` varchar(100) NOT NULL,
  `userid` varchar(100) NOT NULL,
  `memberid` varchar(50) NOT NULL,
  `companyid` varchar(30) NOT NULL,
  `exactdate` varchar(50) NOT NULL,
  `floor` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `assessment`
--

CREATE TABLE IF NOT EXISTS `assessment` (
  `id` int(20) NOT NULL,
  `invoice` varchar(50) NOT NULL,
  `registrationno` varchar(50) NOT NULL,
  `claimno` varchar(50) NOT NULL,
  `insurer` varchar(50) NOT NULL,
  `model` varchar(50) NOT NULL,
  `color` varchar(50) NOT NULL,
  `yom` varchar(50) NOT NULL,
  `tyres` varchar(50) NOT NULL,
  `policyno` varchar(50) NOT NULL,
  `make` varchar(50) NOT NULL,
  `engineno` varchar(50) NOT NULL,
  `mileage` varchar(50) NOT NULL,
  `repairer` varchar(50) NOT NULL,
  `chassisno` varchar(50) NOT NULL,
  `instructionsby` varchar(50) NOT NULL,
  `instructions` text NOT NULL,
  `preaccident` text NOT NULL,
  `garagedetails` text NOT NULL,
  `latentdameges` text NOT NULL,
  `userid` int(11) NOT NULL,
  `branchid` int(11) NOT NULL,
  `companyid` int(11) NOT NULL,
  `dateposted` varchar(30) NOT NULL,
  `deliverymode` text NOT NULL,
  `date` varchar(30) NOT NULL,
  `assessmentdate` varchar(20) NOT NULL,
  `insuredname` varchar(30) NOT NULL,
  `colour` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `assets`
--

CREATE TABLE IF NOT EXISTS `assets` (
  `id` int(30) NOT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `category` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `supplier` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `code` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `description` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `tax_included` int(10) NOT NULL DEFAULT '16',
  `buyingprice` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `assetcondition` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `type` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `assetvalue` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `start_date` date DEFAULT NULL,
  `end_date` date DEFAULT NULL,
  `size` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `store` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `serialno` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `imgid` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `override_default_tax` int(1) NOT NULL DEFAULT '0',
  `is_service` int(1) NOT NULL DEFAULT '0',
  `deleted` int(1) NOT NULL DEFAULT '0',
  `qty` decimal(10,2) NOT NULL,
  `dateposted` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `userid` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `companyid` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `expdate` date NOT NULL,
  `orderamount` text COLLATE utf8_unicode_ci NOT NULL,
  `shortname` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `status` varchar(30) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'active',
  `uom` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'pcs',
  `producttype` varchar(30) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'Inventory',
  `assetaccount` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `salesaccount` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `expenseaccount` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `mode` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `depreciationpercent` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `branch` varchar(30) COLLATE utf8_unicode_ci NOT NULL DEFAULT '1',
  `invoice` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `depreciation` varchar(30) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `accumulativeaccount` varchar(30) COLLATE utf8_unicode_ci DEFAULT NULL,
  `accumdepreciation` varchar(30) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

--
-- Table structure for table `assignbranches`
--

CREATE TABLE IF NOT EXISTS `assignbranches` (
  `id` int(11) NOT NULL,
  `branchid` int(11) DEFAULT NULL,
  `employeeno` int(11) DEFAULT NULL,
  `status` int(11) NOT NULL,
  `description` text COMMENT 'Description of a credit / debit',
  `userid` int(30) NOT NULL,
  `createdate` varchar(30) NOT NULL,
  `companyid` int(11) NOT NULL,
  `updateddate` varchar(40) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Add or sub entitlement for employees or contracts';

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

--
-- Table structure for table `assigntask`
--

CREATE TABLE IF NOT EXISTS `assigntask` (
  `id` int(30) NOT NULL,
  `branchid` int(11) DEFAULT NULL,
  `employeeid` int(11) DEFAULT NULL,
  `status` varchar(11) NOT NULL DEFAULT 'active',
  `userid` int(30) NOT NULL,
  `createdate` varchar(30) NOT NULL,
  `companyid` int(11) NOT NULL,
  `updateddate` varchar(40) NOT NULL,
  `taskid` int(11) NOT NULL,
  `mode` varchar(20) NOT NULL,
  `target` varchar(20) NOT NULL,
  `period` varchar(20) NOT NULL,
  `description` text NOT NULL,
  `fromdate` varchar(30) NOT NULL,
  `todate` varchar(30) NOT NULL,
  `year` varchar(20) NOT NULL,
  `defaulttype` varchar(20) NOT NULL,
  `tasktype` varchar(10) NOT NULL DEFAULT 'General'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Add or sub entitlement for employees or contracts';

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

--
-- Table structure for table `attendance`
--

CREATE TABLE IF NOT EXISTS `attendance` (
  `id` int(100) NOT NULL,
  `idno` varchar(100) NOT NULL,
  `surname` varchar(100) NOT NULL,
  `date` datetime NOT NULL,
  `timein` varchar(100) NOT NULL,
  `timeout` varchar(100) NOT NULL,
  `type` varchar(100) NOT NULL,
  `createddate` varchar(100) NOT NULL,
  `comment` text NOT NULL,
  `timediffrence` varchar(5) NOT NULL DEFAULT '0',
  `device` varchar(30) NOT NULL,
  `totaltime` varchar(20) DEFAULT NULL,
  `checkoutime` datetime NOT NULL,
  `status` int(20) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `backup`
--

CREATE TABLE IF NOT EXISTS `backup` (
  `id` int(20) NOT NULL,
  `user` text NOT NULL,
  `host` text NOT NULL,
  `password` text NOT NULL,
  `server` text NOT NULL,
  `path` text NOT NULL,
  `status` varchar(40) NOT NULL DEFAULT 'active',
  `createdat` varchar(40) NOT NULL,
  `userid` int(11) NOT NULL,
  `companyid` int(11) NOT NULL DEFAULT '1',
  `database` text NOT NULL,
  `location` varchar(20) NOT NULL DEFAULT 'offline'
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `backup`
--

INSERT INTO `backup` (`id`, `user`, `host`, `password`, `server`, `path`, `status`, `createdat`, `userid`, `companyid`, `database`, `location`) VALUES
(1, 'root', 'localhost', 'robisearchltd@2023', 'C:\\xampp\\mysql\\bin\\', 'C:/Backup/', 'active', '2020-10-30 20:47:10', 1, 1, 'robipos', 'offline');

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

--
-- Table structure for table `bankcodes`
--

CREATE TABLE IF NOT EXISTS `bankcodes` (
  `id` int(11) NOT NULL,
  `name` text NOT NULL,
  `code` varchar(50) NOT NULL,
  `description` text NOT NULL,
  `status` varchar(20) NOT NULL,
  `sort_order` varchar(50) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=48 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bankcodes`
--

INSERT INTO `bankcodes` (`id`, `name`, `code`, `description`, `status`, `sort_order`) VALUES
(1, 'MAYFAIR BANK LIMITED', '1', 'MAYFAIR BANK LIMITED', 'Y', '1'),
(2, 'M-PAYMENT', '2', 'M-PAYMENT', 'Y', '2'),
(3, 'KENYA POST OFFICE SAVINGS BANK', '3', 'KENYA POST OFFICE SAVINGS BANK', 'Y', '3'),
(4, 'FIRST COMMUNITY BANKS LIMITED', '4', 'FIRST COMMUNITY BANKS LIMITED', 'Y', '4'),
(5, 'GULF AFRICAN BANK LTD', '5', 'GULF AFRICAN BANK LTD', 'Y', '5'),
(6, 'FAMILY BANK LTD', '6', 'FAMILY BANK LTD', 'Y', '6'),
(7, 'EQUITY BANK LIMITED', '7', 'EQUITY BANK LIMITED', 'Y', '7'),
(8, 'SIDIAN BANK LIMITED', '8', 'SIDIAN BANK LIMITED', 'Y', '8'),
(9, 'DIAMOND TRUST BANK LIMITED', '9', 'DIAMOND TRUST BANK LIMITED', 'Y', '9'),
(10, 'HOUSING FINANCE BANK', '10', 'HOUSING FINANCE BANK', 'Y', '10'),
(11, 'SBM BANK (KENYA) LIMITED', '11', 'SBM BANK (KENYA) LIMITED', 'Y', '11'),
(12, 'DEVELOPMENT BANK OF KENYA LIMITED', '12', 'DEVELOPMENT BANK OF KENYA LIMITED', 'Y', '12'),
(13, 'I&M BANK LIMITED', '13', 'I&M BANK LIMITED', 'Y', '13'),
(14, 'GUARDIAN BANK LIMITED', '14', 'GUARDIAN BANK LIMITED', 'Y', '14'),
(15, 'VICTORIA COMMERCIAL BANK LIMITED', '15', 'VICTORIA COMMERCIAL BANK LIMITED', 'Y', '15'),
(16, 'GUARANTY TRUST BANK KENYA LIMITED', '16', 'GUARANTY TRUST BANK KENYA LIMITED', 'Y', '16'),
(17, 'JAMII BORA BANK', '17', 'JAMII BORA BANK', 'Y', '17'),
(18, 'PARAMOUNT UNIVERSAL BANK LIMITED', '18', 'PARAMOUNT UNIVERSAL BANK LIMITED', 'Y', '18'),
(19, 'EQUATORIAL COMMERCIAL HOLDING LIMITED', '19', 'EQUATORIAL COMMERCIAL HOLDING LIMITED', 'Y', '19'),
(20, 'GIRO COMMERCIAL BANK LIMITED', '20', 'GIRO COMMERCIAL BANK LIMITED', 'Y', '20'),
(21, 'NIC BANK LIMITED', '21', 'NIC BANK LIMITED', 'Y', '21'),
(22, 'IMPERIAL BANK LIMITED', '22', 'IMPERIAL BANK LIMITED', 'Y', '22'),
(23, 'CFC STANBIC BANK KENYA LIMITED', '23', 'CFC STANBIC BANK KENYA LIMITED', 'Y', '23'),
(24, 'CHASE BANK LIMITED', '24', 'CHASE BANK LIMITED', 'Y', '24'),
(25, 'ACCESS BANK (KENYA) PLC', '25', 'ACCESS BANK (KENYA) PLC', 'Y', '25'),
(26, 'CREDIT BANK LIMITED', '26', 'CREDIT BANK LIMITED', 'Y', '26'),
(27, 'CONSOLIDATED BANK OF KENYA LIMITED', '27', 'CONSOLIDATED BANK OF KENYA LIMITED', 'Y', '27'),
(28, 'DUBAI BANK KENYA LIMITED', '28', 'DUBAI BANK KENYA LIMITED', 'Y', '28'),
(29, 'BANK OF AFRICA KENYA LIMITED', '29', 'BANK OF AFRICA KENYA LIMITED', 'Y', '29'),
(30, 'MIDDLE EAST BANK KENYA LIMITED', '30', 'MIDDLE EAST BANK KENYA LIMITED', 'Y', '30'),
(31, 'HABIB BANK A.G. ZURICH', '31', 'HABIB BANK A.G. ZURICH', 'Y', '31'),
(32, 'CITIBANK N.A.', '32', 'CITIBANK N.A.', 'Y', '32'),
(33, 'ORIENTAL COMMERCIAL BANK LIMITED', '33', 'ORIENTAL COMMERCIAL BANK LIMITED', 'Y', '33'),
(34, 'NATIONAL BANK OF KENYA LTD', '34', 'NATIONAL BANK OF KENYA LTD', 'Y', '34'),
(35, 'PRIME BANK LIMITED', '35', 'PRIME BANK LIMITED', 'Y', '35'),
(36, 'CENTRAL BANK OF KENYA', '36', 'CENTRAL BANK OF KENYA', 'Y', '36'),
(37, 'HABIB BANK LIMITED', '37', 'HABIB BANK LIMITED', 'Y', '37'),
(38, 'COMMERCIAL BANK OF AFRICA LIMITED', '38', 'COMMERCIAL BANK OF AFRICA LIMITED', 'Y', '38'),
(39, 'BANK OF BARODA KENYA LIMITED', '39', 'BANK OF BARODA KENYA LIMITED', 'Y', '39'),
(40, 'BANK OF INDIA', '40', 'BANK OF INDIA', 'Y', '40'),
(41, 'ABSA BANK KENYA PLC', '41', 'ABSA BANK KENYA PLC', 'Y', '41'),
(42, 'STANDARD CHARTERED BANK KENYA LIMITED', '42', 'STANDARD CHARTERED BANK KENYA LIMITED', 'Y', '42'),
(43, 'KENYA COMMERCIAL BANK LTD', '43', 'KENYA COMMERCIAL BANK LTD', 'Y', '43'),
(44, 'AFRICAN BANKING CORP BANK LTD', '44', 'AFRICAN BANKING CORP BANK LTD', 'Y', '44'),
(45, 'ECO BANK LIMITED', '45', 'ECO BANK LIMITED', 'Y', '45'),
(46, 'UBA KENYA BANK LTD', '46', 'UBA KENYA BANK LTD', 'Y', '46'),
(47, 'CO-OPERATIVE BANK OF KENYA LIMITED', '47', 'CO-OPERATIVE BANK OF KENYA LIMITED', 'Y', '47');

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

--
-- Table structure for table `banks`
--

CREATE TABLE IF NOT EXISTS `banks` (
  `id` int(50) NOT NULL,
  `expendituretype` varchar(50) NOT NULL,
  `amount` varchar(50) NOT NULL,
  `description` text NOT NULL,
  `paiddate` varchar(50) NOT NULL,
  `incharge` varchar(40) NOT NULL,
  `bankname` int(11) NOT NULL,
  `userid` varchar(50) NOT NULL,
  `companyid` varchar(50) NOT NULL,
  `entrydate` varchar(50) NOT NULL,
  `invoice` varchar(30) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `banks`
--

INSERT INTO `banks` (`id`, `expendituretype`, `amount`, `description`, `paiddate`, `incharge`, `bankname`, `userid`, `companyid`, `entrydate`, `invoice`) VALUES
(1, '', '0.00', '', '2025-01-09 11:28:56', 'ROBERT', 1030, '1', '1', '2025-01-09 11:56:40', 'BANK-11736412988');

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

--
-- Table structure for table `batchlist`
--

CREATE TABLE IF NOT EXISTS `batchlist` (
  `id` int(30) NOT NULL,
  `type` varchar(30) NOT NULL,
  `userid` varchar(30) NOT NULL,
  `exactime` varchar(50) NOT NULL,
  `batchid` varchar(50) NOT NULL,
  `invoice` varchar(30) NOT NULL,
  `companyid` int(11) NOT NULL,
  `branchid` int(11) NOT NULL,
  `batchno` int(11) NOT NULL,
  `description` text NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `batchlist`
--

INSERT INTO `batchlist` (`id`, `type`, `userid`, `exactime`, `batchid`, `invoice`, `companyid`, `branchid`, `batchno`, `description`) VALUES
(1, 'P.O', '1', '2025-01-09 10:08:54', '11736406513', '11736405923', 1, 1, 1, ''),
(2, 'P.O', '1', '2025-01-09 10:10:39', '11736406629', '11736405923', 1, 1, 1, ''),
(3, 'P.O', '1', '2025-02-05 16:42:52', '11738762970', '11736405923', 1, 1, 1, ''),
(4, 'S.O', '1', '2025-02-05 16:44:08', '11738763045', '111736850381', 1, 1, 1, ''),
(5, 'P.O', '1', '2025-02-13 10:07:56', '11739430471', '11736405923', 1, 1, 1, ''),
(6, 'P.O', '1', '2025-03-13 17:38:05', '11741876681', '11741876437', 1, 1, 1, ''),
(7, 'S.O', '1', '2025-03-22 11:51:38', '11742633497', '111742627873', 1, 1, 1, ''),
(8, 'S.O', '1', '2025-03-22 13:32:47', '11742639565', '111742639540', 1, 1, 1, '');

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

--
-- Table structure for table `beds`
--

CREATE TABLE IF NOT EXISTS `beds` (
  `id` int(11) NOT NULL,
  `houseno` varchar(100) NOT NULL,
  `status` varchar(40) NOT NULL DEFAULT 'active',
  `createdat` varchar(100) NOT NULL,
  `updatedat` varchar(100) NOT NULL,
  `userid` varchar(100) NOT NULL,
  `name` varchar(50) NOT NULL,
  `companyid` varchar(30) NOT NULL,
  `roomid` varchar(20) NOT NULL,
  `plotno` varchar(20) DEFAULT NULL,
  `description` text NOT NULL,
  `chargeid` int(20) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `blog`
--

CREATE TABLE IF NOT EXISTS `blog` (
  `id` int(50) NOT NULL,
  `companyid` varchar(60) NOT NULL,
  `title` text NOT NULL,
  `answers` text NOT NULL,
  `email` varchar(50) NOT NULL,
  `phone` varchar(30) NOT NULL,
  `date` varchar(60) NOT NULL,
  `description` text NOT NULL,
  `postedtime` varchar(60) NOT NULL,
  `userid` varchar(60) NOT NULL,
  `invoice` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `blogs`
--

CREATE TABLE IF NOT EXISTS `blogs` (
  `id` int(50) NOT NULL,
  `companyid` varchar(60) NOT NULL,
  `title` text NOT NULL,
  `answers` text NOT NULL,
  `email` varchar(50) NOT NULL,
  `phone` varchar(30) NOT NULL,
  `date` varchar(60) NOT NULL,
  `description` text NOT NULL,
  `postedtime` varchar(60) NOT NULL,
  `userid` varchar(60) NOT NULL,
  `invoice` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `bookroom`
--

CREATE TABLE IF NOT EXISTS `bookroom` (
  `id` int(20) NOT NULL,
  `houseno` varchar(60) NOT NULL,
  `plotno` varchar(50) NOT NULL,
  `idno` varchar(50) NOT NULL,
  `tenantid` varchar(40) NOT NULL,
  `entrydate` varchar(50) NOT NULL,
  `description` text NOT NULL,
  `checkoutdate` varchar(50) NOT NULL,
  `status` varchar(50) NOT NULL,
  `userid` varchar(50) NOT NULL,
  `createdat` varchar(50) NOT NULL,
  `updatedat` varchar(50) NOT NULL,
  `companyid` varchar(100) NOT NULL,
  `amount` varchar(30) NOT NULL,
  `paymentstatus` varchar(30) NOT NULL,
  `paymentmode` varchar(30) NOT NULL,
  `paymentcode` varchar(30) NOT NULL,
  `totalamount` decimal(10,2) NOT NULL,
  `overpayment` decimal(10,2) NOT NULL,
  `discount` varchar(30) NOT NULL,
  `transactioncode` varchar(30) NOT NULL,
  `roomtype` varchar(40) NOT NULL,
  `number` varchar(10) NOT NULL,
  `total` varchar(30) NOT NULL,
  `balance` varchar(30) NOT NULL,
  `mpesa` varchar(30) NOT NULL,
  `card` varchar(30) NOT NULL,
  `bookroom` varchar(20) NOT NULL,
  `credit` varchar(30) NOT NULL,
  `voucher` varchar(10) NOT NULL,
  `cheque` varchar(30) NOT NULL,
  `points` varchar(30) NOT NULL,
  `people` varchar(10) NOT NULL,
  `category` varchar(30) NOT NULL DEFAULT 'accommodation',
  `deposite` decimal(10,2) NOT NULL,
  `chargeid` int(11) NOT NULL,
  `booings` int(11) NOT NULL DEFAULT '1',
  `branchid` int(10) NOT NULL DEFAULT '1',
  `tax1` decimal(10,2) NOT NULL,
  `tax2` decimal(10,2) NOT NULL,
  `vatable` decimal(10,2) NOT NULL,
  `mytable` varchar(20) NOT NULL,
  `salesperson` varchar(20) DEFAULT NULL,
  `receiptno` varchar(20) DEFAULT NULL,
  `discountedtotal` varchar(20) NOT NULL DEFAULT '',
  `bedid` int(11) DEFAULT '1',
  `bedname` varchar(100) NOT NULL,
  `currency` varchar(20) DEFAULT NULL,
  `updatedid` int(20) DEFAULT NULL,
  `othercurrency` varchar(20) DEFAULT NULL,
  `othercurrencyamount` decimal(10,4) DEFAULT NULL,
  `tocurrencyamount` decimal(10,4) DEFAULT NULL,
  `tocurrencychnage` decimal(10,4) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

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

CREATE TABLE IF NOT EXISTS `branch` (
  `id` int(11) NOT NULL,
  `name` varchar(50) NOT NULL,
  `description` text NOT NULL,
  `createdate` varchar(50) NOT NULL,
  `status` varchar(50) NOT NULL DEFAULT 'active',
  `userid` varchar(50) NOT NULL,
  `updatedate` varchar(50) NOT NULL,
  `companyid` varchar(50) NOT NULL,
  `invoice` text NOT NULL,
  `currency` varchar(20) NOT NULL DEFAULT 'KES',
  `logo` text NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;

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

INSERT INTO `branch` (`id`, `name`, `description`, `createdate`, `status`, `userid`, `updatedate`, `companyid`, `invoice`, `currency`, `logo`) VALUES
(1, 'BRANCH A', '<H1 style="margin:0px;">ROBISEARCH LTD( SAMPLE) </H1>\r\nNAIROBI, KENYA,0718667391, www.robisearch.com\r\n</BR>COMPANY PIN: P1XXXXXXX</br>\r\n</BR>TILL NO:111111111</br>\r\nCall us today if you need this Pos :0716413386\r\n\r\n', '2025-02-21 12:43:25', 'active', '1', '', '1', '<B> INVOICE TERMS</B></BR>\r\n1. This invoice is payable on demand unless terms specified.<br>\r\n2. Good once sold are not returnable<br>\r\n3. Ownership of the above good will be vested in Dimetrica limited until fully paid\r\n\r\n', 'KES', '2023-08-101691646451.jpeg');

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

--
-- Table structure for table `branchlist`
--

CREATE TABLE IF NOT EXISTS `branchlist` (
  `id` int(11) NOT NULL,
  `tin` varchar(50) NOT NULL,
  `bhfId` varchar(50) NOT NULL,
  `bhfNm` text NOT NULL,
  `bhfSttsCd` varchar(50) NOT NULL DEFAULT 'active',
  `prvncNm` text NOT NULL,
  `dstrtNm` text NOT NULL,
  `sctrNm` varchar(50) NOT NULL,
  `locDesc` varchar(50) DEFAULT NULL,
  `mgrNm` varchar(50) NOT NULL DEFAULT 'KES',
  `mgrTelNo` varchar(50) NOT NULL,
  `mgrEmail` text NOT NULL,
  `hqYn` text NOT NULL,
  `branchid` varchar(50) DEFAULT NULL,
  `companyid` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `brands`
--

CREATE TABLE IF NOT EXISTS `brands` (
  `id` int(50) NOT NULL,
  `companyid` varchar(60) NOT NULL,
  `title` text NOT NULL,
  `description` text NOT NULL,
  `email` varchar(50) NOT NULL,
  `phone` varchar(30) NOT NULL,
  `date` varchar(60) NOT NULL,
  `website` text NOT NULL,
  `postedtime` varchar(60) NOT NULL,
  `userid` varchar(60) NOT NULL,
  `invoice` int(11) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `brands`
--

INSERT INTO `brands` (`id`, `companyid`, `title`, `description`, `email`, `phone`, `date`, `website`, `postedtime`, `userid`, `invoice`) VALUES
(1, '1', 'JKUAT', 'Our partner in ICT Field', 'karenmakena3@gmail.com', '0702400635', '', 'http://www.jkuat.ac.ke/', '2016-12-13 06:47:33am', '', 0),
(2, '1', 'SimbaNet', 'Our partner in in Nikague App', '', '', '', 'https://www.simbanet.net/', '', '', 0);

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

--
-- Table structure for table `budget`
--

CREATE TABLE IF NOT EXISTS `budget` (
  `id` int(11) NOT NULL,
  `code` varchar(20) NOT NULL,
  `createdate` varchar(20) NOT NULL,
  `expamount` decimal(10,2) NOT NULL,
  `usedamount` decimal(10,2) NOT NULL,
  `balance` decimal(10,2) NOT NULL,
  `year` varchar(20) NOT NULL,
  `month` varchar(20) NOT NULL,
  `userid` int(11) NOT NULL,
  `companyid` int(11) NOT NULL,
  `branch` int(11) NOT NULL,
  `updatedby` int(11) NOT NULL,
  `description` text NOT NULL,
  `todate` varchar(30) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `bulkdispatch`
--

CREATE TABLE IF NOT EXISTS `bulkdispatch` (
  `id` int(11) NOT NULL,
  `branchid` varchar(100) NOT NULL,
  `invoice` varchar(100) NOT NULL,
  `frombranch` varchar(50) NOT NULL,
  `remarks` varchar(100) NOT NULL DEFAULT 'new',
  `enddate` varchar(50) NOT NULL,
  `userid` varchar(20) NOT NULL,
  `companyid` varchar(20) NOT NULL,
  `createdate` varchar(50) NOT NULL,
  `description` text NOT NULL,
  `name` varchar(50) NOT NULL,
  `approvedby` int(20) NOT NULL,
  `dateapproved` int(20) NOT NULL,
  `tobranch` varchar(20) NOT NULL,
  `status` varchar(20) NOT NULL DEFAULT 'new',
  `startdate` varchar(20) NOT NULL,
  `type` varchar(30) NOT NULL DEFAULT 'Transfer',
  `category` varchar(20) NOT NULL DEFAULT 'products'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `bulkhouse`
--

CREATE TABLE IF NOT EXISTS `bulkhouse` (
  `id` int(40) NOT NULL,
  `plotno` varchar(60) NOT NULL,
  `houseno` varchar(40) NOT NULL,
  `tenantid` varchar(100) NOT NULL,
  `amount` decimal(10,2) NOT NULL,
  `type` varchar(100) NOT NULL,
  `description` varchar(100) NOT NULL,
  `discount` varchar(100) NOT NULL,
  `idno` varchar(100) NOT NULL,
  `createdat` datetime NOT NULL,
  `updatedat` varchar(100) NOT NULL,
  `userid` varchar(100) NOT NULL,
  `duedate` varchar(40) NOT NULL,
  `paymentstatus` varchar(40) NOT NULL,
  `paymentmode` varchar(40) NOT NULL,
  `paymentcode` varchar(100) NOT NULL,
  `transactioncode` varchar(100) NOT NULL,
  `approvedby` varchar(60) NOT NULL,
  `approvaldate` varchar(60) NOT NULL,
  `phone` varchar(40) NOT NULL,
  `roomtype` decimal(10,2) NOT NULL,
  `balance` varchar(40) NOT NULL DEFAULT '0',
  `companyid` varchar(100) NOT NULL DEFAULT '1',
  `exactdate` varchar(50) NOT NULL,
  `vat` decimal(10,2) NOT NULL,
  `paymentdate` varchar(30) NOT NULL,
  `name` text NOT NULL,
  `chargeid` varchar(30) NOT NULL,
  `branchid` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `bulkreservation`
--

CREATE TABLE IF NOT EXISTS `bulkreservation` (
  `id` int(20) NOT NULL,
  `houseno` varchar(60) NOT NULL,
  `plotno` varchar(50) NOT NULL,
  `idno` varchar(50) NOT NULL,
  `tenantid` varchar(40) NOT NULL,
  `entrydate` varchar(50) NOT NULL,
  `description` text NOT NULL,
  `checkoutdate` varchar(50) NOT NULL,
  `status` varchar(50) NOT NULL,
  `userid` varchar(50) NOT NULL,
  `createdat` varchar(50) NOT NULL,
  `updatedat` varchar(50) NOT NULL,
  `companyid` varchar(100) NOT NULL,
  `amount` varchar(30) NOT NULL,
  `paymentstatus` varchar(30) NOT NULL,
  `paymentmode` varchar(30) NOT NULL,
  `paymentcode` varchar(30) NOT NULL,
  `totalamount` decimal(10,2) NOT NULL,
  `overpayment` decimal(10,2) NOT NULL,
  `discount` varchar(30) NOT NULL,
  `transactioncode` varchar(30) NOT NULL,
  `roomtype` varchar(40) NOT NULL,
  `number` varchar(10) NOT NULL,
  `total` varchar(30) NOT NULL,
  `balance` varchar(30) NOT NULL,
  `mpesa` varchar(30) NOT NULL,
  `card` varchar(30) NOT NULL,
  `bookroom` varchar(20) NOT NULL,
  `credit` varchar(30) NOT NULL,
  `voucher` varchar(10) NOT NULL,
  `cheque` varchar(30) NOT NULL,
  `points` varchar(30) NOT NULL,
  `people` varchar(10) NOT NULL,
  `category` varchar(30) NOT NULL DEFAULT 'accommodation',
  `deposite` decimal(10,2) NOT NULL,
  `chargeid` int(11) NOT NULL,
  `booings` int(11) NOT NULL DEFAULT '1',
  `branchid` int(10) NOT NULL DEFAULT '1',
  `currency` varchar(20) DEFAULT NULL,
  `tax1` decimal(10,2) NOT NULL,
  `tax2` decimal(10,2) NOT NULL,
  `vatable` decimal(10,2) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `bulkreservation`
--

INSERT INTO `bulkreservation` (`id`, `houseno`, `plotno`, `idno`, `tenantid`, `entrydate`, `description`, `checkoutdate`, `status`, `userid`, `createdat`, `updatedat`, `companyid`, `amount`, `paymentstatus`, `paymentmode`, `paymentcode`, `totalamount`, `overpayment`, `discount`, `transactioncode`, `roomtype`, `number`, `total`, `balance`, `mpesa`, `card`, `bookroom`, `credit`, `voucher`, `cheque`, `points`, `people`, `category`, `deposite`, `chargeid`, `booings`, `branchid`, `currency`, `tax1`, `tax2`, `vatable`) VALUES
(1, 'Group', 'Group', '', '1', '', '   ', '2024-12-21 10:00:00', 'new', '1', '2024-12-20 11:36:05', '', '1', '0', 'Cleared', 'Cash', '', '0.00', '0.00', '0', '11734683765', '0', '2', '0', '0', '0', '0', '', '0', '0', '0', '0', '2', 'ict', '0.00', 0, 1, 1, NULL, '0.00', '0.00', '0.00'),
(2, 'Group', 'Group', '', '1', '', '   ', '2024-12-21 10:00:00', 'new', '1', '2024-12-20 11:39:02', '', '1', '0', 'Cleared', 'Invoice', 'Q233457', '0.00', '0.00', '0', '11734683942', '8000', '4', '8000', '-6000', '2000', '0', '', '6000', '0', '0', '0', '4', 'Business', '0.00', 0, 1, 1, NULL, '1103.45', '0.00', '6896.55'),
(3, 'Group', 'Group', '', '1', '', '   ', '2024-12-21 10:00:00', 'new', '1', '2024-12-20 11:51:07', '', '1', '0', 'Cleared', 'Cash', '', '0.00', '0.00', '0', '11734684667', '8000', '3', '8000', '-8000', '0', '0', '', '8000', '0', '0', '0', '3', 'ict', '0.00', 0, 1, 1, NULL, '1103.45', '0.00', '6896.55'),
(4, 'Group', 'Group', '', '3', '', '   ', '2025-01-29 10:00:00', 'new', '1', '2025-01-28 07:28:53', '', '1', '6000', 'Cleared', 'Cash', 'Q233457', '0.00', '0.00', '0', '11738038533', '6000', '88', '6000', '0', '0', '0', '', '0', '0', '0', '0', '88', 'Business', '0.00', 0, 1, 1, NULL, '813.56', '101.69', '5084.75'),
(5, 'Group', 'Group', '', '3', '', '   ', '2025-01-29 10:00:00', 'new', '1', '2025-01-28 07:30:05', '', '1', '0', 'Cleared', 'Cash', '', '0.00', '0.00', '0', '11738038605', '0', '7', '0', '0', '0', '0', '', '0', '0', '0', '0', '7', 'Business', '0.00', 0, 1, 1, NULL, '0.00', '0.00', '0.00'),
(6, 'Group', 'Group', '', '3', '', '   ', '2025-01-29 10:00:00', 'new', '1', '2025-01-28 09:12:45', '', '1', '8000', 'Cleared', 'Cash', '', '0.00', '0.00', '0', '11738044765', '8000', '4', '8000', '0', '0', '0', '', '0', '0', '0', '0', '4', 'Business', '0.00', 0, 1, 1, NULL, '1084.75', '135.59', '6779.66'),
(7, 'Group', 'Group', '', '6', '', '   ', '2025-01-29 10:00:00', 'new', '1', '2025-01-28 09:20:45', '', '1', '0', 'Cleared', 'Cash', '', '0.00', '0.00', '0', '11738045245', '0', '4', '0', '0', '0', '0', '', '0', '0', '0', '0', '4', 'ict', '0.00', 0, 1, 1, NULL, '0.00', '0.00', '0.00'),
(8, 'Group', 'Group', '', '4', '', '   ', '2025-02-07 10:00:00', 'new', '1', '2025-02-06 18:08:02', '', '1', '0', 'Cleared', 'Cash', '', '0.00', '0.00', '0', '11738854482', '0', '4', '0', '0', '0', '0', '', '0', '0', '0', '0', '4', 'Business', '0.00', 0, 1, 1, NULL, '0.00', '0.00', '0.00');

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

--
-- Table structure for table `callcenter`
--

CREATE TABLE IF NOT EXISTS `callcenter` (
  `id` int(11) NOT NULL,
  `subject` varchar(50) NOT NULL,
  `description` text NOT NULL,
  `createdate` varchar(50) NOT NULL,
  `status` varchar(50) NOT NULL DEFAULT 'active',
  `userid` varchar(50) NOT NULL,
  `updatedate` varchar(50) NOT NULL,
  `companyid` varchar(50) NOT NULL,
  `category` varchar(30) NOT NULL,
  `messageid` varchar(30) NOT NULL,
  `updatedby` int(11) NOT NULL,
  `updateddate` varchar(30) NOT NULL,
  `callername` text NOT NULL,
  `receiver` text NOT NULL,
  `calldate` varchar(30) NOT NULL,
  `phone` varchar(50) NOT NULL,
  `media` text NOT NULL,
  `email` varchar(50) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `category`
--

CREATE TABLE IF NOT EXISTS `category` (
  `id` int(11) NOT NULL,
  `name` varchar(50) NOT NULL,
  `description` text NOT NULL,
  `createdate` varchar(50) NOT NULL,
  `status` varchar(50) NOT NULL DEFAULT 'active',
  `userid` varchar(50) NOT NULL,
  `updatedate` varchar(50) NOT NULL,
  `companyid` varchar(50) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `category`
--

INSERT INTO `category` (`id`, `name`, `description`, `createdate`, `status`, `userid`, `updatedate`, `companyid`) VALUES
(1, 'Everyone', '', '2023-12-29 07:55:55', 'active', '1', '', '1'),
(2, 'OTHERS', '', '2021-08-23 03:04:54pm', 'active', '1', '', '1');

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

--
-- Table structure for table `charges`
--

CREATE TABLE IF NOT EXISTS `charges` (
  `id` int(20) NOT NULL,
  `type` varchar(40) NOT NULL,
  `description` text NOT NULL,
  `status` varchar(40) NOT NULL,
  `createdat` varchar(100) NOT NULL,
  `updatedat` varchar(100) NOT NULL,
  `userid` varchar(100) NOT NULL,
  `priority` int(11) NOT NULL,
  `companyid` int(5) NOT NULL DEFAULT '1',
  `branchid` int(20) DEFAULT NULL
) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `charges`
--

INSERT INTO `charges` (`id`, `type`, `description`, `status`, `createdat`, `updatedat`, `userid`, `priority`, `companyid`, `branchid`) VALUES
(1, 'RENT', '', '', '2018-05-30 14:28:37', '', '', 0, 1, NULL),
(2, 'DEPOSIT', '', '', '2018-05-30 14:27:39', '', '', 0, 1, NULL),
(3, 'WATER/POWER DEPOSIT', '', '', '2018-05-30 14:28:49', '', '', 0, 1, NULL),
(4, 'PENALTY', '', '', '2018-06-25 13:38:03', '', '', 0, 1, NULL),
(5, 'WATER', '', '', '2018-06-27 11:33:55', '', '', 0, 1, NULL),
(6, 'PARTIAL PAYMENT', '', '', '2018-06-29 16:22:30', '', '', 0, 1, NULL),
(7, 'GARBAGE', '', '', '2018-07-03 16:56:46', '', '', 0, 1, NULL),
(8, 'DAMAGES', '', '', '2018-07-17 12:30:05', '', '', 0, 1, NULL),
(9, 'AGREEMENT FORM', '', '', '2018-07-23 10:21:11', '', '', 0, 1, NULL),
(10, 'POWER', '', '', '2018-08-04 10:42:10', '', '', 0, 1, NULL),
(11, 'SEWAGE', 'SEWAGE', '', '2020-05-27 16:23:21', '', '', 2, 1, NULL),
(12, 'BED ONLY', '', '', '2020-05-28 15:38:20', '', '', 1, 1, NULL),
(13, 'BED AND BREAKFAST', '', '', '2020-05-28 15:38:39', '', '', 2, 1, NULL),
(14, 'PROJECTOR', '', '', '2023-04-28 08:21:52', '', '', 0, 1, NULL),
(15, 'LAUNDRY', 'LAUNDRY', '', '2023-04-28 08:22:20', '', '', 0, 1, NULL),
(16, 'ROOM TRANSFER', '200', '', '2023-04-30 06:16:29', '', '', 2, 1, NULL),
(17, 'BED 1', '0', '', '2023-05-11 11:10:44', '', '', 1, 1, NULL),
(18, 'SERVICE CH DEPOSIT', '0', '', '2023-05-11 11:10:51', '', '', 0, 1, NULL),
(19, 'SERVICE CHARGE', '0', '', '2023-09-01 11:09:35', '', '', 1, 1, NULL);

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

--
-- Table structure for table `checkin`
--

CREATE TABLE IF NOT EXISTS `checkin` (
  `id` int(11) NOT NULL,
  `subject` varchar(50) NOT NULL,
  `description` text NOT NULL,
  `createdate` varchar(50) NOT NULL,
  `status` varchar(50) NOT NULL DEFAULT 'active',
  `userid` varchar(50) NOT NULL,
  `updatedate` varchar(50) NOT NULL,
  `companyid` varchar(50) NOT NULL,
  `category` varchar(30) NOT NULL,
  `messageid` varchar(30) NOT NULL,
  `updatedby` int(11) NOT NULL,
  `updateddate` varchar(30) NOT NULL,
  `visitorid` int(60) NOT NULL,
  `receiver` text NOT NULL,
  `calldate` varchar(30) NOT NULL,
  `phone` varchar(50) NOT NULL,
  `media` text NOT NULL,
  `email` varchar(50) DEFAULT NULL,
  `idno` varchar(50) NOT NULL,
  `name` varchar(100) NOT NULL,
  `business` varchar(100) NOT NULL,
  `vehicleno` varchar(100) NOT NULL,
  `vehiclecolor` varchar(100) NOT NULL,
  `vehiclemodel` varchar(100) NOT NULL,
  `location` varchar(100) NOT NULL,
  `checkindate` varchar(100) NOT NULL,
  `checkoutdate` varchar(100) NOT NULL,
  `branchid` varchar(20) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `checkin`
--

INSERT INTO `checkin` (`id`, `subject`, `description`, `createdate`, `status`, `userid`, `updatedate`, `companyid`, `category`, `messageid`, `updatedby`, `updateddate`, `visitorid`, `receiver`, `calldate`, `phone`, `media`, `email`, `idno`, `name`, `business`, `vehicleno`, `vehiclecolor`, `vehiclemodel`, `location`, `checkindate`, `checkoutdate`, `branchid`) VALUES
(1, '', 'A2', '2025-03-13', 'Closed', '1', '', '1', 'General', '', 1, '2025-03-13 14:13:25', 1, '1', '', '254718667391', '', 'director@robisearch.com', '23434212', 'ROBERT', 'robisearch', 'KDB634T', 'WHITE', 'NISSAN', 'Main Gate', '2025-03-13 14:11:44', '2025-03-13 14:13:25', ''),
(2, '', 'NA', '2025-03-13', 'Active', '1', '', '1', 'General', '', 0, '', 2, '1', '', '254700139073', '', 'mercymwendwa643@gmail.com', '23434212', 'JAMES', 'UON', 'KDW3455', 'WHITE', 'NISSAN', 'Main Gate', '2025-03-13 14:13:40', '', ''),
(3, '', 'R00M7', '2025-03-13', 'Closed', '1', '', '1', 'General', '', 1, '2025-03-13 14:22:54', 3, '1', '', '254700139076', '', 'gabmureithi50@gmail.com', '234342127', 'TOM', 'UON', 'TXE467', 'WHITE', 'NISSAN', 'Main Gate', '2025-03-13 14:20:46', '2025-03-13 14:22:54', ''),
(4, '', 'ROO9', '2025-03-13', 'Active', '1', '', '1', 'General', '', 0, '', 1, '1', '', '254718667391', '', 'director@robisearch.com', '23434212', 'ROBERT', 'robisearch', 'KDB634T', 'WHITE', 'NISSAN', 'Main Gate', '2025-03-13 14:23:21', '', ''),
(5, '0', 'ROBERT OUMA', '2025-03-20', 'Active', '1', '', '1', 'General', '1', 0, '', 4, '1', '', '254718667394', '', 'gabmureithi50@gmail.com', '23434212', 'ROBERT', 'UON', 'KDB634R', '', '', 'Main Gate', '2025-03-20 04:52:05', '', ''),
(6, '1', 'test', '2025-03-20', 'Active', '1', '', '1', 'General', '1', 0, '', 3, '1', '', '254700139076', '11742436277', 'gabmureithi50@gmail.com', '234342127', 'TOM', 'UON', 'TXE467', 'WHITE', 'NISSAN', 'Main Gate', '2025-03-20 05:04:29', '', '1');

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

--
-- Table structure for table `cheque`
--

CREATE TABLE IF NOT EXISTS `cheque` (
  `id` int(50) NOT NULL,
  `expendituretype` varchar(50) NOT NULL,
  `amount` varchar(50) NOT NULL,
  `description` text NOT NULL,
  `paiddate` varchar(50) NOT NULL,
  `incharge` varchar(40) NOT NULL,
  `bankname` varchar(50) NOT NULL,
  `userid` varchar(50) NOT NULL,
  `companyid` varchar(50) NOT NULL,
  `entrydate` varchar(50) NOT NULL,
  `invoice` varchar(30) NOT NULL,
  `business` varchar(100) NOT NULL,
  `type` varchar(15) NOT NULL,
  `chequenumber` varchar(70) NOT NULL,
  `exactdate` varchar(30) NOT NULL,
  `status` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `collection`
--

CREATE TABLE IF NOT EXISTS `collection` (
  `id` int(11) NOT NULL,
  `paiddate` varchar(100) NOT NULL,
  `invoice` varchar(100) NOT NULL,
  `amount` varchar(100) NOT NULL,
  `remarks` varchar(100) NOT NULL,
  `balance` varchar(30) NOT NULL,
  `userid` varchar(20) NOT NULL,
  `companyid` varchar(20) NOT NULL,
  `paymentmethodes` int(10) NOT NULL,
  `createdate` varchar(50) NOT NULL,
  `name` varchar(30) NOT NULL DEFAULT 'payment',
  `transactioncode` varchar(50) NOT NULL,
  `supplier` int(11) DEFAULT NULL,
  `branchid` int(11) DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `commission`
--

CREATE TABLE IF NOT EXISTS `commission` (
  `id` int(11) NOT NULL,
  `userid` varchar(50) NOT NULL,
  `companyid` varchar(50) NOT NULL,
  `name` varchar(50) NOT NULL,
  `datesold` varchar(40) NOT NULL,
  `sellingprice` decimal(10,2) NOT NULL,
  `profit` varchar(50) NOT NULL,
  `mode` varchar(50) NOT NULL,
  `code` varchar(50) NOT NULL,
  `paymentdate` varchar(50) NOT NULL,
  `rate` varchar(30) NOT NULL,
  `customer` varchar(30) NOT NULL,
  `customerphone` varchar(50) NOT NULL,
  `customeremail` varchar(50) NOT NULL,
  `customerlocation` varchar(50) NOT NULL,
  `description` text NOT NULL,
  `dateposted` varchar(40) NOT NULL,
  `status` varchar(10) NOT NULL DEFAULT 'New',
  `paid` decimal(10,2) NOT NULL,
  `expcommission` decimal(10,2) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `complain`
--

CREATE TABLE IF NOT EXISTS `complain` (
  `id` int(11) NOT NULL,
  `subject` varchar(50) NOT NULL,
  `description` text NOT NULL,
  `createdate` varchar(50) NOT NULL,
  `status` varchar(50) NOT NULL DEFAULT 'active',
  `userid` varchar(50) NOT NULL,
  `updatedate` varchar(50) NOT NULL,
  `companyid` varchar(50) DEFAULT '1',
  `type` varchar(30) NOT NULL,
  `messageid` varchar(30) DEFAULT NULL,
  `updatedby` int(11) NOT NULL,
  `updateddate` varchar(30) NOT NULL,
  `serial` varchar(200) NOT NULL,
  `name` text NOT NULL,
  `invoice` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `complaindata`
--

CREATE TABLE IF NOT EXISTS `complaindata` (
  `id` int(30) NOT NULL,
  `description` text NOT NULL,
  `date` varchar(50) NOT NULL,
  `taskid` varchar(50) NOT NULL,
  `userid` varchar(50) NOT NULL,
  `status` varchar(50) NOT NULL DEFAULT 'newstock',
  `companyid` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `computers`
--

CREATE TABLE IF NOT EXISTS `computers` (
  `id` int(11) NOT NULL,
  `name` varchar(50) NOT NULL,
  `description` text NOT NULL,
  `createdate` varchar(50) NOT NULL,
  `status` varchar(50) NOT NULL DEFAULT 'active',
  `userid` varchar(50) NOT NULL,
  `updatedate` varchar(50) NOT NULL,
  `companyid` varchar(50) NOT NULL,
  `invoice` text NOT NULL,
  `computerno` text NOT NULL,
  `fromdate` varchar(30) NOT NULL,
  `todate` varchar(30) DEFAULT NULL,
  `receiptno` varchar(50) NOT NULL,
  `duration` int(11) NOT NULL,
  `phone` varchar(20) DEFAULT NULL,
  `extensiontype` varchar(30) NOT NULL,
  `computernostatus` varchar(20) NOT NULL DEFAULT 'new',
  `computernodate` varchar(20) NOT NULL,
  `computernouserdata` text NOT NULL,
  `updatedid` int(11) DEFAULT NULL
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `computers`
--

INSERT INTO `computers` (`id`, `name`, `description`, `createdate`, `status`, `userid`, `updatedate`, `companyid`, `invoice`, `computerno`, `fromdate`, `todate`, `receiptno`, `duration`, `phone`, `extensiontype`, `computernostatus`, `computernodate`, `computernouserdata`, `updatedid`) VALUES
(1, 'ROBISEARCH LTD', 'e44', '2023-02-13 07:08:17', 'Closed', '1', '2023-02-13 07:13:34', '1', '3', 'B0-22-7A-ED-77-F6', '2023-02-24', '2023-02-10', '', 0, NULL, 'New Installation', 'new', '', '', 1);

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

--
-- Table structure for table `constants`
--

CREATE TABLE IF NOT EXISTS `constants` (
  `id` int(11) NOT NULL,
  `name` varchar(30) NOT NULL,
  `amount` decimal(10,2) NOT NULL,
  `status` varchar(20) NOT NULL DEFAULT 'active',
  `companyid` int(11) NOT NULL,
  `userid` int(11) NOT NULL,
  `category` varchar(20) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `constants`
--

INSERT INTO `constants` (`id`, `name`, `amount`, `status`, `companyid`, `userid`, `category`) VALUES
(1, 'Relief', '2400.00', 'active', 1, 1, 'Relief'),
(2, 'Pension', '200.00', 'active', 1, 1, 'Pension'),
(3, 'NSSF', '200.00', 'oldrate', 1, 1, 'NSSF'),
(4, 'Minimum Paye', '24000.00', 'active', 1, 1, 'MinimumPaye'),
(5, 'Housing Levy', '1.50', 'active', 1, 1, 'Housing Levy'),
(6, 'Housing Levy Relief', '15.00', 'active', 1, 1, 'Housing Levy Relief');

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

--
-- Table structure for table `contact`
--

CREATE TABLE IF NOT EXISTS `contact` (
  `id` int(50) NOT NULL,
  `country` varchar(60) NOT NULL,
  `firstname` varchar(50) NOT NULL,
  `lastname` varchar(50) NOT NULL,
  `email` varchar(50) NOT NULL,
  `phone` varchar(30) NOT NULL,
  `date` varchar(60) NOT NULL,
  `description` text NOT NULL,
  `postedtime` varchar(60) NOT NULL,
  `userid` varchar(60) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `contactdetails`
--

CREATE TABLE IF NOT EXISTS `contactdetails` (
  `id` int(50) NOT NULL,
  `title` text NOT NULL,
  `website` text NOT NULL,
  `contactdetails` text NOT NULL,
  `email` text NOT NULL,
  `phone` text NOT NULL,
  `date` varchar(60) NOT NULL,
  `description` text NOT NULL,
  `postedtime` varchar(60) NOT NULL,
  `userid` varchar(60) NOT NULL,
  `companyid` int(11) NOT NULL,
  `branchid` int(11) NOT NULL,
  `facebook` text NOT NULL,
  `twitter` text NOT NULL,
  `instagram` text NOT NULL,
  `linkedin` text NOT NULL,
  `youtube` text NOT NULL,
  `location` text NOT NULL,
  `aboutustitle` text NOT NULL,
  `aboutus` text NOT NULL,
  `whyustitle` text NOT NULL,
  `whyus` text NOT NULL,
  `whatsapp` text NOT NULL,
  `websites` text NOT NULL,
  `otherlinks` text NOT NULL,
  `termstitle` text NOT NULL,
  `terms` text NOT NULL,
  `deliverytitle` text NOT NULL,
  `delivery` text NOT NULL,
  `privacytitle` text NOT NULL,
  `privacy` text NOT NULL,
  `branches` text NOT NULL,
  `telegram` text NOT NULL,
  `otherlinktitle` text NOT NULL,
  `aboutuslogo` text NOT NULL,
  `businessname` text NOT NULL,
  `business` varchar(30) NOT NULL,
  `vision` text NOT NULL,
  `mission` text NOT NULL,
  `corevalues` text NOT NULL,
  `ourpromise` text NOT NULL,
  `returnpolicy` text NOT NULL,
  `workinghours` text NOT NULL,
  `updatedat` varchar(30) NOT NULL,
  `updatedby` int(11) NOT NULL,
  `careertitle` text NOT NULL,
  `career` text NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `contactdetails`
--

INSERT INTO `contactdetails` (`id`, `title`, `website`, `contactdetails`, `email`, `phone`, `date`, `description`, `postedtime`, `userid`, `companyid`, `branchid`, `facebook`, `twitter`, `instagram`, `linkedin`, `youtube`, `location`, `aboutustitle`, `aboutus`, `whyustitle`, `whyus`, `whatsapp`, `websites`, `otherlinks`, `termstitle`, `terms`, `deliverytitle`, `delivery`, `privacytitle`, `privacy`, `branches`, `telegram`, `otherlinktitle`, `aboutuslogo`, `businessname`, `business`, `vision`, `mission`, `corevalues`, `ourpromise`, `returnpolicy`, `workinghours`, `updatedat`, `updatedby`, `careertitle`, `career`) VALUES
(1, '', 'https://robisearch.com/', 'kinoti', 'karenmakena3@gmail.com', '0754413386, 0716413386,0780655987', '', 'We have from 01/07/2020 to 31/8/2010', '2016-12-13 06:47:33am', '1', 1, 0, 'https://web.facebook.com/Robiearch/', 'https://twitter.com/robisearch', 'https://www.linkedin.com/in/robert-manyala-995177122/', 'https://www.linkedin.com/in/robert-manyala-995177122/', 'https://www.youtube.com/channel/UC9Z1YpMKlCgwqn4H1nT1hLg/featured', 'Nairobi -Nara Fourth Floor,</br> Kisii-Oyondi Building', '<b>About Us </b>', 'Robisearch Ltd is an ICT company that begun in 2011 as a result of innovations that transform lives globally. We are a member of the Nairobi Chambers (KNCCI) organization.We have great experience in dealing with customers having handled over 500 clients in all Kenyan towns such as Juja, Nairobi, Mombasa and Kisumu as well as beyond the country.We provide our clients with adequate support thus providing more value to our customers .Our systems are customized to fit a clients particular need.We are the company behind various innovations like…..</br>', 'Why Us ', 'We have a well-organized support and maintenance structure that we will sign with you as a Service Level Agreement that guarantees you;', 'https://api.whatsapp.com/send?phone=254716413386&text=&source=&data=&app_absent=', '', 'POS.robisearch.com/', 'Terms and Condition ', 'karenmakena3@gmail.com', 'Delivery Information', 'Shipping Agents and Times</br>\r\n\r\nOur products ordered before 3pm are shipped within 24 Hours using the following carriers, Umash Bus Sacco, Easy Coach Sacco, North Rift Sacco or any other of your choice. Orders Placed in later hours are shipped on the following days</br>\r\nZipping Zones and Costs</br>\r\n\r\nOur shipping Zones are categorized into Coast Region, Rift Valley Region, Nairobi Region, North Easter Region and Nyanza Region. All orders to be collected at our shop are not chargeable any shipping cost. However all the other places we charge shipping cost depending with what our shipping agents charges; basically a shipping cost of between Ksh300- 400 applies except for regions within Nairobi County where a fee of roughly Ksh 150 – 200 applies. All shipping cost is subject to change without any notice.</br>', 'Privacy Details', 'PRIVACY POLICY</br>\r\n\r\nThis Privacy Policy explains what personal data is collected when you use the jiji.ng any jiji.ng mobile application, or website (“Jiji”, "Website", or "App") and the services provided through it (together with the Website and the App, the “Service”), how such personal data will be used, shared.</br>\r\n\r\nBY USING THE SERVICE, YOU PROMISE US THAT (I) YOU HAVE READ, UNDERSTOOD AND AGREED TO THIS PRIVACY POLICY, AND (II) YOU ARE OVER 16 YEARS OF AGE (OR HAVE HAD YOUR PARENT OR GUARDIAN READ AND AGREED TO THIS PRIVACY POLICY FOR YOU). If you do not agree or you are unable to make this promise, you must not use the Service. In such case, you must contact the support team via online chat or email to request deletion of your account and data.</br>\r\n\r\nProcess in respect of personal data, means to collect, store, and disclose to others.</br>\r\n\r\nTABLE OF CONTENTS</br>\r\n\r\n1. PERSONAL DATA CONTROLLER</br>\r\n\r\n2. CATEGORIES OF PERSONAL DATA WE COLLECT</br>\r\n\r\n3. FOR WHAT PURPOSES WE PROCESS PERSONAL DATA</br>\r\n\r\n4. AUTHORISED REQUIREMENT FOR PROCESSING YOUR PERSONAL DATA</br>\r\n\r\n5. WHO WE SHARE YOUR PERSONAL DATA WITH\r\n</br>\r\n6. HOW YOU CAN EXERCISE YOUR PRIVACY RIGHTS</br>\r\n\r\n7. AGE LIMITATION</br>\r\n\r\n8. CHANGES TO THIS PRIVACY POLICY</br>\r\n\r\n9. DATA RETENTION\r\n</br>\r\n10. CONTACT US</br>', 'Juja, Kisii', 'https://api.whatsapp.com/send?phone=254716413386&text=&source=&data=&app_absent=', 'POS LINK', '2147483647', 'Robisearch is an ICT business organization that deals ICT based solutions. We have been in the industry since 2011. Our main activity is software developement. ', 'ROBISEARCH LTD', '  Transforming the world through innovation', '  To be the best ICT company offering innovate services globally.', 'nnovation, Integrity, hardwork, commitment, honesty, equality, justice, fairness, love.', 'To Give the best services at all times', 'Return Policy</br>\r\n\r\nAll defined terms used below shall have the meanings set forth in our Terms and Conditions. If you are not happy with your purchase, we will accept a return of a unused product within 7 days. Once we receive the returned item Breejoz Baby Shop & Maternity Collections will then give a full refund (excluding shipping as we are unable to refund the initial shipping cost of your order). Please allow 1-2 weeks for your return to be processed.</br>', ' WORKING HOURS</br>\r\n\r\n    Mon 8:00am - 6:00pm</br>\r\n Tue 8:00am - 6:00pm</br>\r\n    Wed 8:00am - 6:00pm</br>\r\n    Thur 8:00am - 6:00pm</br>\r\n    Fri 8:00am - 6:00pm</br>\r\n    Sat 8:00am - 6:00pm</br>\r\n\r\n', '2020-07-04 08:44:24', 1, 'Job Vacancy', 'Join our sales team as online marketers');

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

--
-- Table structure for table `countrycodes`
--

CREATE TABLE IF NOT EXISTS `countrycodes` (
  `id` int(50) NOT NULL,
  `name` text NOT NULL,
  `code` varchar(50) NOT NULL,
  `description` text,
  `status` varchar(50) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=253 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `countrycodes`
--

INSERT INTO `countrycodes` (`id`, `name`, `code`, `description`, `status`) VALUES
(1, 'ASCENSION ISLAND ', 'AC', NULL, 'Y'),
(2, 'ANDORRA', 'AD', NULL, 'Y'),
(3, 'UNITED ARAB EMIRATES ', 'AE', NULL, 'Y'),
(4, 'ANTIGUA AND BARBUDA', 'AG', NULL, 'Y'),
(5, 'ANGUILLA', 'AI', NULL, 'Y'),
(6, 'ALBANIA ', 'AL', NULL, 'Y'),
(7, 'ARMENIA', 'AM', NULL, 'Y'),
(8, 'NETHERLANDS ANTILLES ', 'AN', NULL, 'Y'),
(9, 'ANGOLA', 'AO', NULL, 'Y'),
(10, 'ANTARCTICA', 'AQ', NULL, 'Y'),
(11, 'ARGENTINA', 'AR', NULL, 'Y'),
(12, 'AMERICAN SAMOA', 'AS', NULL, 'Y'),
(13, 'AUSTRIA', 'AT', NULL, 'Y'),
(14, 'AUSTRALIA', 'AU', NULL, 'Y'),
(15, 'ARUBA', 'AW', NULL, 'Y'),
(16, 'ALAND ISLANDS', 'AX', NULL, 'Y'),
(17, 'AZERBAIJAN', 'AZ', NULL, 'Y'),
(18, 'BOSNIA AND HERZEGOVINA ', 'BA', NULL, 'Y'),
(19, 'BARBADOS ', 'BB', NULL, 'Y'),
(20, 'BANGLADESH ', 'BD', NULL, 'Y'),
(21, 'BELGIUM ', 'BE', NULL, 'Y'),
(22, 'BURKINA FASO ', 'BF', NULL, 'Y'),
(23, 'BULGARIA ', 'BG', NULL, 'Y'),
(24, 'BAHRAIN', 'BH', NULL, 'Y'),
(25, 'BURUNDI ', 'BI', NULL, 'Y'),
(26, 'BENIN ', 'BJ', NULL, 'Y'),
(27, 'BERMUDA ', 'BM', NULL, 'Y'),
(28, 'BRUNEI DARUSSALAM ', 'BN', NULL, 'Y'),
(29, 'BOLIVIA ', 'BO', NULL, 'Y'),
(30, 'BRAZIL ', 'BR', NULL, 'Y'),
(31, 'BAHAMAS ', 'BS', NULL, 'Y'),
(32, 'BHUTAN ', 'BT', NULL, 'Y'),
(33, 'BOUVET ISLAND ', 'BV', NULL, 'Y'),
(34, 'BOTSWANA ', 'BW', NULL, 'Y'),
(35, 'BELARUS ', 'BY', NULL, 'Y'),
(36, 'BELIZE ', 'BZ', NULL, 'Y'),
(37, 'CANADA ', 'CA', NULL, 'Y'),
(38, 'COCOS (KEELING) ISLANDS ', 'CC', NULL, 'Y'),
(39, 'CONGO, DEMOCRATIC REPUBLIC ', 'CD', NULL, 'Y'),
(40, 'CENTRAL AFRICAN REPUBLIC ', 'CF', NULL, 'Y'),
(41, 'CONGO ', 'CG', NULL, 'Y'),
(42, 'SWITZERLAND ', 'CH', NULL, 'Y'),
(43, 'COTE D''IVOIRE (IVORY COAST) ', 'CI', NULL, 'Y'),
(44, 'COOK ISLANDS ', 'CK', NULL, 'Y'),
(45, 'CHILE ', 'CL', NULL, 'Y'),
(46, 'CAMEROON ', 'CM', NULL, 'Y'),
(47, 'CHINA ', 'CN', NULL, 'Y'),
(48, 'COLOMBIA ', 'CO', NULL, 'Y'),
(49, 'COSTA RICA ', 'CR', NULL, 'Y'),
(50, 'CZECHOSLOVAKIA (FORMER) ', 'CS', NULL, 'Y'),
(51, 'CUBA ', 'CU', NULL, 'Y'),
(52, 'CAPE VERDE ', 'CV', NULL, 'Y'),
(53, 'CHRISTMAS ISLAND ', 'CX', NULL, 'Y'),
(54, 'CYPRUS ', 'CY', NULL, 'Y'),
(55, 'CZECH REPUBLIC ', 'CZ', NULL, 'Y'),
(56, 'GERMANY ', 'DE', NULL, 'Y'),
(57, 'DJIBOUTI ', 'DJ', NULL, 'Y'),
(58, 'DENMARK ', 'DK', NULL, 'Y'),
(59, 'DOMINICA ', 'DM', NULL, 'Y'),
(60, 'DOMINICAN REPUBLIC ', 'DO', NULL, 'Y'),
(61, 'ALGERIA', 'DZ', NULL, 'Y'),
(62, 'ECUADOR ', 'EC', NULL, 'Y'),
(63, 'ESTONIA ', 'EE', NULL, 'Y'),
(64, 'EGYPT ', 'EG', NULL, 'Y'),
(65, 'WESTERN SAHARA ', 'EH', NULL, 'Y'),
(66, 'ERITREA ', 'ER', NULL, 'Y'),
(67, 'SPAIN ', 'ES', NULL, 'Y'),
(68, 'ETHIOPIA ', 'ET', NULL, 'Y'),
(69, 'EUROPEAN UNION ', 'EU', NULL, 'Y'),
(70, 'FINLAND ', 'FI', NULL, 'Y'),
(71, 'FIJI ', 'FJ', NULL, 'Y'),
(72, 'FALKLAND ISLANDS (MALVINAS) ', 'FK', NULL, 'Y'),
(73, 'MICRONESIA ', 'FM', NULL, 'Y'),
(74, 'FAROE ISLANDS ', 'FO', NULL, 'Y'),
(75, 'FRANCE ', 'FR', NULL, 'Y'),
(76, 'FRANCE, METROPOLITAN ', 'FX', NULL, 'Y'),
(77, 'GABON ', 'GA', NULL, 'Y'),
(78, 'GREAT BRITAIN (UK) ', 'GB', NULL, 'Y'),
(79, 'GRENADA ', 'GD', NULL, 'Y'),
(80, 'GEORGIA ', 'GE', NULL, 'Y'),
(81, 'FRENCH GUIANA ', 'GF', NULL, 'Y'),
(82, 'GUERNSEY ', 'GG', NULL, 'Y'),
(83, 'GHANA ', 'GH', NULL, 'Y'),
(84, 'GIBRALTAR ', 'GI', NULL, 'Y'),
(85, 'GREENLAND ', 'GL', NULL, 'Y'),
(86, 'GAMBIA ', 'GM', NULL, 'Y'),
(87, 'GUINEA ', 'GN', NULL, 'Y'),
(88, 'GUADELOUPE ', 'GP', NULL, 'Y'),
(89, 'EQUATORIAL GUINEA ', 'GQ', NULL, 'Y'),
(90, 'GREECE ', 'GR', NULL, 'Y'),
(91, 'S. GEORGIA AND S. SANDWICH ISLS. ', 'GS', NULL, 'Y'),
(92, 'GUATEMALA ', 'GT', NULL, 'Y'),
(93, 'GUAM ', 'GU', NULL, 'Y'),
(94, 'GUINEA     BISSAU ', 'GW', NULL, 'Y'),
(95, 'GUYANA ', 'GY', NULL, 'Y'),
(96, 'HONG KONG ', 'HK', NULL, 'Y'),
(97, 'HEARD AND MCDONALD ISLANDS ', 'HM', NULL, 'Y'),
(98, 'HONDURAS ', 'HN', NULL, 'Y'),
(99, 'CROATIA (HRVATSKA) ', 'HR', NULL, 'Y'),
(100, 'HAITI ', 'HT', NULL, 'Y'),
(101, 'HUNGARY ', 'HU', NULL, 'Y'),
(102, 'INDONESIA ', 'ID', NULL, 'Y'),
(103, 'IRELAND ', 'IE', NULL, 'Y'),
(104, 'ISRAEL ', 'IL', NULL, 'Y'),
(105, 'ISLE OF MAN ', 'IM', NULL, 'Y'),
(106, 'INDIA ', 'IN', NULL, 'Y'),
(107, 'BRITISH INDIAN OCEAN TERRITORY ', 'IO', NULL, 'Y'),
(108, 'IRAQ ', 'IQ', NULL, 'Y'),
(109, 'IRAN ', 'IR', NULL, 'Y'),
(110, 'ICELAND ', 'IS', NULL, 'Y'),
(111, 'ITALY ', 'IT', NULL, 'Y'),
(112, 'JERSEY ', 'JE', NULL, 'Y'),
(113, 'JAMAICA ', 'JM', NULL, 'Y'),
(114, 'JORDAN ', 'JO', NULL, 'Y'),
(115, 'JAPAN ', 'JP', NULL, 'Y'),
(116, 'KENYA ', 'KE', NULL, 'Y'),
(117, 'KYRGYZSTAN ', 'KG', NULL, 'Y'),
(118, 'CAMBODIA ', 'KH', NULL, 'Y'),
(119, 'KIRIBATI ', 'KI', NULL, 'Y'),
(120, 'COMOROS ', 'KM', NULL, 'Y'),
(121, 'SAINT KITTS AND NEVIS ', 'KN', NULL, 'Y'),
(122, 'NORTH KOREA', 'KP', NULL, 'Y'),
(123, 'SOUTH KOREA', 'KR', NULL, 'Y'),
(124, 'KUWAIT ', 'KW', NULL, 'Y'),
(125, 'CAYMAN ISLANDS ', 'KY', NULL, 'Y'),
(126, 'KAZAKHSTAN ', 'KZ', NULL, 'Y'),
(127, 'LAOS ', 'LA', NULL, 'Y'),
(128, 'LEBANON ', 'LB', NULL, 'Y'),
(129, 'SAINT LUCIA ', 'LC', NULL, 'Y'),
(130, 'LIECHTENSTEIN ', 'LI', NULL, 'Y'),
(131, 'SRI LANKA ', 'LK', NULL, 'Y'),
(132, 'LIBERIA ', 'LR', NULL, 'Y'),
(133, 'LESOTHO ', 'LS', NULL, 'Y'),
(134, 'LITHUANIA ', 'LT', NULL, 'Y'),
(135, 'LUXEMBOURG ', 'LU', NULL, 'Y'),
(136, 'LATVIA ', 'LV', NULL, 'Y'),
(137, 'LIBYA ', 'LY', NULL, 'Y'),
(138, 'MOROCCO ', 'MA', NULL, 'Y'),
(139, 'MONACO ', 'MC', NULL, 'Y'),
(140, 'MOLDOVA ', 'MD', NULL, 'Y'),
(141, 'MONTENEGRO ', 'ME', NULL, 'Y'),
(142, 'MADAGASCAR ', 'MG', NULL, 'Y'),
(143, 'MARSHALL ISLANDS ', 'MH', NULL, 'Y'),
(144, 'F.Y.R.O.M. (MACEDONIA) ', 'MK', NULL, 'Y'),
(145, 'MALI ', 'ML', NULL, 'Y'),
(146, 'MYANMAR ', 'MM', NULL, 'Y'),
(147, 'MONGOLIA ', 'MN', NULL, 'Y'),
(148, 'MACAU ', 'MO', NULL, 'Y'),
(149, 'NORTHERN MARIANA ISLANDS ', 'MP', NULL, 'Y'),
(150, 'MARTINIQUE ', 'MQ', NULL, 'Y'),
(151, 'MAURITANIA ', 'MR', NULL, 'Y'),
(152, 'MONTSERRAT ', 'MS', NULL, 'Y'),
(153, 'MALTA ', 'MT', NULL, 'Y'),
(154, 'MAURITIUS ', 'MU', NULL, 'Y'),
(155, 'MALDIVES ', 'MV', NULL, 'Y'),
(156, 'MALAWI ', 'MW', NULL, 'Y'),
(157, 'MEXICO ', 'MX', NULL, 'Y'),
(158, 'MALAYSIA ', 'MY', NULL, 'Y'),
(159, 'MOZAMBIQUE ', 'MZ', NULL, 'Y'),
(160, 'NAMIBIA ', 'NA', NULL, 'Y'),
(161, 'NEW CALEDONIA ', 'NC', NULL, 'Y'),
(162, 'NIGER ', 'NE', NULL, 'Y'),
(163, 'NORFOLK ISLAND ', 'NF', NULL, 'Y'),
(164, 'NIGERIA ', 'NG', NULL, 'Y'),
(165, 'NICARAGUA ', 'NI', NULL, 'Y'),
(166, 'NETHERLANDS ', 'NL', NULL, 'Y'),
(167, 'NORWAY ', 'NO', NULL, 'Y'),
(168, 'NEPAL ', 'NP', NULL, 'Y'),
(169, 'NAURU ', 'NR', NULL, 'Y'),
(170, 'NEUTRAL ZONE ', 'NT', NULL, 'Y'),
(171, 'NIUE ', 'NU', NULL, 'Y'),
(172, 'NEW ZEALAND (AOTEAROA) ', 'NZ', NULL, 'Y'),
(173, 'OMAN ', 'OM', NULL, 'Y'),
(174, 'PANAMA ', 'PA', NULL, 'Y'),
(175, 'PERU ', 'PE', NULL, 'Y'),
(176, 'FRENCH POLYNESIA ', 'PF', NULL, 'Y'),
(177, 'PAPUA NEW GUINEA ', 'PG', NULL, 'Y'),
(178, 'PHILIPPINES ', 'PH', NULL, 'Y'),
(179, 'PAKISTAN ', 'PK', NULL, 'Y'),
(180, 'POLAND ', 'PL', NULL, 'Y'),
(181, 'ST. PIERRE AND MIQUELON ', 'PM', NULL, 'Y'),
(182, 'PITCAIRN ', 'PN', NULL, 'Y'),
(183, 'PUERTO RICO ', 'PR', NULL, 'Y'),
(184, 'PALESTINIAN TERRITORY, OCCUPIED ', 'PS', NULL, 'Y'),
(185, 'PORTUGAL ', 'PT', NULL, 'Y'),
(186, 'PALAU ', 'PW', NULL, 'Y'),
(187, 'PARAGUAY ', 'PY', NULL, 'Y'),
(188, 'QATAR ', 'QA', NULL, 'Y'),
(189, 'REUNION ', 'RE', NULL, 'Y'),
(190, 'ROMANIA ', 'RO', NULL, 'Y'),
(191, 'SERBIA ', 'RS', NULL, 'Y'),
(192, 'RUSSIAN FEDERATION ', 'RU', NULL, 'Y'),
(193, 'RWANDA ', 'RW', NULL, 'Y'),
(194, 'SAUDI ARABIA ', 'SA', NULL, 'Y'),
(195, 'SOLOMON ISLANDS ', 'SB', NULL, 'Y'),
(196, 'SEYCHELLES ', 'SC', NULL, 'Y'),
(197, 'SUDAN ', 'SD', NULL, 'Y'),
(198, 'SWEDEN ', 'SE', NULL, 'Y'),
(199, 'SINGAPORE ', 'SG', NULL, 'Y'),
(200, 'ST. HELENA ', 'SH', NULL, 'Y'),
(201, 'SLOVENIA ', 'SI', NULL, 'Y'),
(202, 'SVALBARD & JAN MAYEN ISLANDS ', 'SJ', NULL, 'Y'),
(203, 'SLOVAK REPUBLIC ', 'SK', NULL, 'Y'),
(204, 'SIERRA LEONE ', 'SL', NULL, 'Y'),
(205, 'SAN MARINO ', 'SM', NULL, 'Y'),
(206, 'SENEGAL ', 'SN', NULL, 'Y'),
(207, 'SOMALIA ', 'SO', NULL, 'Y'),
(208, 'SURINAME ', 'SR', NULL, 'Y'),
(209, 'SAO TOME AND PRINCIPE ', 'ST', NULL, 'Y'),
(210, 'USSR (FORMER) ', 'SU', NULL, 'Y'),
(211, 'EL SALVADOR ', 'SV', NULL, 'Y'),
(212, 'SYRIA ', 'SY', NULL, 'Y'),
(213, 'SWAZILAND ', 'SZ', NULL, 'Y'),
(214, 'TURKS AND CAICOS ISLANDS ', 'TC', NULL, 'Y'),
(215, 'CHAD ', 'TD', NULL, 'Y'),
(216, 'FRENCH SOUTHERN TERRITORIES ', 'TF', NULL, 'Y'),
(217, 'TOGO ', 'TG', NULL, 'Y'),
(218, 'THAILAND ', 'TH', NULL, 'Y'),
(219, 'TAJIKISTAN ', 'TJ', NULL, 'Y'),
(220, 'TOKELAU ', 'TK', NULL, 'Y'),
(221, 'TURKMENISTAN ', 'TM', NULL, 'Y'),
(222, 'TUNISIA ', 'TN', NULL, 'Y'),
(223, 'TONGA ', 'TO', NULL, 'Y'),
(224, 'EAST TIMOR ', 'TP', NULL, 'Y'),
(225, 'TURKEY ', 'TR', NULL, 'Y'),
(226, 'TRINIDAD AND TOBAGO ', 'TT', NULL, 'Y'),
(227, 'TUVALU ', 'TV', NULL, 'Y'),
(228, 'TAIWAN ', 'TW', NULL, 'Y'),
(229, 'TANZANIA ', 'TZ', NULL, 'Y'),
(230, 'UKRAINE ', 'UA', NULL, 'Y'),
(231, 'UGANDA ', 'UG', NULL, 'Y'),
(232, 'UNITED KINGDOM ', 'UK', NULL, 'Y'),
(233, 'US MINOR OUTLYING ISLANDS ', 'UM', NULL, 'Y'),
(234, 'UNITED STATES ', 'US', NULL, 'Y'),
(235, 'URUGUAY ', 'UY', NULL, 'Y'),
(236, 'UZBEKISTAN ', 'UZ', NULL, 'Y'),
(237, 'VATICAN CITY STATE (HOLY SEE) ', 'VA', NULL, 'Y'),
(238, 'SAINT VINCENT & THE GRENADINES ', 'VC', NULL, 'Y'),
(239, 'VENEZUELA ', 'VE', NULL, 'Y'),
(240, 'BRITISH VIRGIN ISLANDS ', 'VG', NULL, 'Y'),
(241, 'VIRGIN ISLANDS (U.S.) ', 'VI', NULL, 'Y'),
(242, 'VIET NAM ', 'VN', NULL, 'Y'),
(243, 'VANUATU ', 'VU', NULL, 'Y'),
(244, 'WALLIS AND FUTUNA ISLANDS ', 'WF', NULL, 'Y'),
(245, 'SAMOA ', 'WS', NULL, 'Y'),
(246, 'YEMEN ', 'YE', NULL, 'Y'),
(247, 'MAYOTTE ', 'YT', NULL, 'Y'),
(248, 'SERBIA AND MONTENEGRO (FORMER) ', 'YU', NULL, 'Y'),
(249, 'SOUTH AFRICA ', 'ZA', NULL, 'Y'),
(250, 'ZAMBIA ', 'ZM', NULL, 'Y'),
(251, '(ZAIRE) SEE CD CONGO, DEMOCRATIC REPUBLIC ', 'ZR', NULL, 'Y'),
(252, 'ZIMBABWE', 'ZW', NULL, 'Y');

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

--
-- Table structure for table `county`
--

CREATE TABLE IF NOT EXISTS `county` (
  `id` int(40) NOT NULL,
  `code` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `provincecode` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `description` text COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB AUTO_INCREMENT=48 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `county`
--

INSERT INTO `county` (`id`, `code`, `name`, `provincecode`, `description`, `created_at`, `updated_at`) VALUES
(1, '1', 'Mombasa', '2', 'Mombasa', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(2, '2', 'Kwale', '2', 'Kwale', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(3, '3', 'Kilifi', '2', 'Kilifi', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(4, '4', 'Tana River', '2', 'Tana River', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(5, '5', 'Lamu', '2', 'Lamu', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(6, '6', 'Taita-Taveta', '2', 'Taita-Taveta', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(7, '7', 'Garissa', '5', 'Garissa', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(8, '8', 'Wajir', '5', 'Wajir', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(9, '9', 'Mandera', '5', 'Mandera', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(10, '10', 'Marsabit', '3', 'Marsabit', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(11, '11', 'Isiolo', '3', 'Isiolo', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(12, '12', 'Meru', '3', 'Meru', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(13, '13', 'Tharaka-Nithi', '3', 'Tharaka-Nithi', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(14, '14', 'Embu', '3', 'Embu', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(15, '15', 'Kitui', '3', 'Kitui', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(16, '16', 'Machakos', '3', 'Machakos', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(17, '17', 'Makueni', '3', 'Makueni', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(18, '18', 'Nyandarua', '1', 'Nyandarua', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(19, '19', 'Nyeri', '1', 'Nyeri', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(20, '20', 'Kirinyaga', '1', 'Kirinyaga', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(21, '21', 'Murang''a', '1', 'Murang''a', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(22, '22', 'Kiambu', '1', 'Kiambu', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(23, '23', 'Turkana', '7', 'Turkana', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(24, '24', 'West Pokot', '7', 'West Pokot', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(25, '25', 'Samburu', '7', 'Samburu', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(26, '26', 'Trans-Nzoia', '7', 'Trans-Nzoia', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(27, '27', 'Uasin Gishu', '7', 'Uasin Gishu', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(28, '28', 'Elgeyo-Marakwet', '7', 'Elgeyo-Marakwet', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(29, '29', 'Nandi', '7', 'Nandi', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(30, '30', 'Baringo', '7', 'Baringo', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(31, '31', 'Laikipia', '7', 'Laikipia', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(32, '32', 'Nakuru', '7', 'Nakuru', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(33, '33', 'Narok', '7', 'Narok', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(34, '34', 'Kajiado', '7', 'Kajiado', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(35, '35', 'Kericho', '7', 'Kericho', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(36, '36', 'Bomet', '7', 'Bomet', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(37, '37', 'Kakamega', '8', 'Kakamega', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(38, '38', 'Vihiga', '8', 'Vihiga', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(39, '39', 'Bungoma', '8', 'Bungoma', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(40, '40', 'Busia', '8', 'Busia', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(41, '41', 'Siaya', '6', 'Siaya', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(42, '42', 'Kisumu', '6', 'Kisumu', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(43, '43', 'Homa Bay', '6', 'Homa Bay', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(44, '44', 'Migori', '6', 'Migori', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(45, '45', 'Kisii', '6', 'Kisii', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(46, '46', 'Nyamira', '6', 'Nyamira', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(47, '47', 'Nairobi', '4', 'Nairobi', '0000-00-00 00:00:00', '0000-00-00 00:00:00');

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

--
-- Table structure for table `currency`
--

CREATE TABLE IF NOT EXISTS `currency` (
  `id` int(11) NOT NULL,
  `name` varchar(50) NOT NULL,
  `description` text NOT NULL,
  `createdate` varchar(50) NOT NULL,
  `status` varchar(50) NOT NULL DEFAULT 'active',
  `userid` varchar(50) NOT NULL,
  `updatedate` varchar(50) NOT NULL,
  `companyid` varchar(50) NOT NULL,
  `branchid` int(20) NOT NULL DEFAULT '1',
  `basecurrency` varchar(30) NOT NULL,
  `baseamount` varchar(30) NOT NULL,
  `tocurrency` varchar(30) NOT NULL,
  `toamount` varchar(30) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=40 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `currency`
--

INSERT INTO `currency` (`id`, `name`, `description`, `createdate`, `status`, `userid`, `updatedate`, `companyid`, `branchid`, `basecurrency`, `baseamount`, `tocurrency`, `toamount`) VALUES
(17, 'USD', '', '2023-07-23 15:56:01', 'active', '9', '', '1', 1, 'USD', '1', '', '1'),
(18, 'TZS', '', '2023-07-23 15:57:10', 'active', '9', '', '1', 1, 'USD', '1', '', '2500'),
(29, 'EUR', '', '2023-09-28 09:06:17', 'active', '1', '', '1', 1, 'EUR', '1', '', '1'),
(30, 'GBP', '', '2023-09-28 09:06:28', 'active', '1', '', '1', 1, 'GBP', '1', '', '1'),
(31, 'KES', '', '2023-09-28 09:06:42', 'active', '1', '', '1', 1, 'KES', '1', '', '1'),
(32, 'TZS', '', '2023-09-28 09:07:01', 'active', '1', '', '1', 1, 'TZS', '1', '', '1'),
(33, 'KES', '', '2023-10-24 11:52:59', 'active', '9', '', '1', 1, 'USD', '1', '', '150'),
(34, 'EUR', '', '2023-10-29 10:31:44', 'active', '9', '', '1', 1, 'USD', '1', '', '0.94'),
(35, 'GBP', '', '2023-10-29 10:32:02', 'active', '9', '', '1', 1, 'USD', '1', '', '0.83'),
(36, 'USD', '', '2023-10-30 14:52:36', 'active', '9', '', '1', 1, 'KES', '1', '', '0.0067'),
(37, 'USD', '', '2023-11-06 12:36:08', 'active', '9', '', '1', 1, 'TZS', '1', '', '0.0004'),
(39, 'UG', '', '2025-03-10 22:20:16', 'active', '1', '', '1', 1, 'KES', '1', '', '28');

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

--
-- Table structure for table `currencycodes`
--

CREATE TABLE IF NOT EXISTS `currencycodes` (
  `id` int(50) NOT NULL,
  `name` text NOT NULL,
  `code` varchar(50) NOT NULL,
  `description` text,
  `status` varchar(50) NOT NULL,
  `symbol` varchar(50) NOT NULL,
  `sort_order` varchar(50) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=180 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `currencycodes`
--

INSERT INTO `currencycodes` (`id`, `name`, `code`, `description`, `status`, `symbol`, `sort_order`) VALUES
(1, 'United Arab Emirates dirham', 'AED', NULL, 'Y', 'AED', '1'),
(2, 'Afghan afghani', 'AFN', NULL, 'Y', 'AFN', '2'),
(3, 'Albanian lek', 'ALL', NULL, 'Y', 'ALL', '3'),
(4, 'Armenian dram', 'AMD', NULL, 'Y', 'AMD', '4'),
(5, 'Netherlands Antillean guilder', 'ANG', NULL, 'Y', 'ANG', '5'),
(6, 'Angolan kwanza', 'AOA', NULL, 'Y', 'AOA', '6'),
(7, 'Argentine peso', 'ARS', NULL, 'Y', 'ARS', '7'),
(8, 'Australian dollar', 'AUD', NULL, 'Y', 'AUD', '8'),
(9, 'Aruban florin', 'AWG', NULL, 'Y', 'AWG', '9'),
(10, 'Azerbaijani manat', 'AZN', NULL, 'Y', 'AZN', '10'),
(11, 'Bosnia and Herzegovina convertible mark', 'BAM', NULL, 'Y', 'BAM', '11'),
(12, 'Barbados dollar', 'BBD', NULL, 'Y', 'BBD', '12'),
(13, 'Bangladeshi taka', 'BDT', NULL, 'Y', 'BDT', '13'),
(14, 'Bulgarian lev', 'BGN', NULL, 'Y', 'BGN', '14'),
(15, 'Bahraini dinar', 'BHD', NULL, 'Y', 'BHD', '15'),
(16, 'Burundian franc', 'BIF', NULL, 'Y', 'BIF', '16'),
(17, 'Bermudian dollar', 'BMD', NULL, 'Y', 'BMD', '17'),
(18, 'Brunei dollar', 'BND', NULL, 'Y', 'BND', '18'),
(19, 'Boliviano', 'BOB', NULL, 'Y', 'BOB', '19'),
(20, 'Bolivian Mvdol (funds code)', 'BOV', NULL, 'Y', 'BOV', '20'),
(21, 'Brazilian real', 'BRL', NULL, 'Y', 'BRL', '21'),
(22, 'Bahamian dollar', 'BSD', NULL, 'Y', 'BSD', '22'),
(23, 'Bhutanese ngultrum', 'BTN', NULL, 'Y', 'BTN', '23'),
(24, 'Botswana pula', 'BWP', NULL, 'Y', 'BWP', '24'),
(25, 'New Belarusian ruble', 'BYN', NULL, 'Y', 'BYN', '25'),
(26, 'Belarusian ruble', 'BYR', NULL, 'Y', 'BYR', '26'),
(27, 'Belize dollar', 'BZD', NULL, 'Y', 'BZD', '27'),
(28, 'Canadian dollar', 'CAD', NULL, 'Y', 'CAD', '28'),
(29, 'Congolese franc', 'CDF', NULL, 'Y', 'CDF', '29'),
(30, 'WIR Euro (complementary currency)', 'CHE', NULL, 'Y', 'CHE', '30'),
(31, 'Swiss franc', 'CHF', NULL, 'Y', 'CHF', '31'),
(32, 'WIR Franc (complementary currency)', 'CHW', NULL, 'Y', 'CHW', '32'),
(33, 'Unidad de Fomento (funds code)', 'CLF', NULL, 'Y', 'CLF', '33'),
(34, 'Chilean peso', 'CLP', NULL, 'Y', 'CLP', '34'),
(35, 'Chinese yuan', 'CNY', NULL, 'Y', 'CNY', '35'),
(36, 'Colombian peso', 'COP', NULL, 'Y', 'COP', '36'),
(37, 'Unidad de Valor Real (UVR) (funds code)', 'COU', NULL, 'Y', 'COU', '37'),
(38, 'Costa Rican colon', 'CRC', NULL, 'Y', 'CRC', '38'),
(39, 'Cuban convertible peso', 'CUC', NULL, 'Y', 'CUC', '39'),
(40, 'Cuban peso', 'CUP', NULL, 'Y', 'CUP', '40'),
(41, 'Cape Verde escudo', 'CVE', NULL, 'Y', 'CVE', '41'),
(42, 'Czech koruna', 'CZK', NULL, 'Y', 'CZK', '42'),
(43, 'Djiboutian franc', 'DJF', NULL, 'Y', 'DJF', '43'),
(44, 'Danish krone', 'DKK', NULL, 'Y', 'DKK', '44'),
(45, 'Dominican peso', 'DOP', NULL, 'Y', 'DOP', '45'),
(46, 'Algerian dinar', 'DZD', NULL, 'Y', 'DZD', '46'),
(47, 'Egyptian pound', 'EGP', NULL, 'Y', 'EGP', '47'),
(48, 'Eritrean nakfa', 'ERN', NULL, 'Y', 'ERN', '48'),
(49, 'Ethiopian birr', 'ETB', NULL, 'Y', 'ETB', '49'),
(50, 'Euro', 'EUR', NULL, 'Y', 'EUR', '50'),
(51, 'Fiji dollar', 'FJD', NULL, 'Y', 'FJD', '51'),
(52, 'Falkland Islands pound', 'FKP', NULL, 'Y', 'FKP', '52'),
(53, 'Pound sterling', 'GBP', NULL, 'Y', 'GBP', '53'),
(54, 'Georgian lari', 'GEL', NULL, 'Y', 'GEL', '54'),
(55, 'Ghanaian cedi', 'GHS', NULL, 'Y', 'GHS', '55'),
(56, 'Gibraltar pound', 'GIP', NULL, 'Y', 'GIP', '56'),
(57, 'Gambian dalasi', 'GMD', NULL, 'Y', 'GMD', '57'),
(58, 'Guinean franc', 'GNF', NULL, 'Y', 'GNF', '58'),
(59, 'Guatemalan quetzal', 'GTQ', NULL, 'Y', 'GTQ', '59'),
(60, 'Guyanese dollar', 'GYD', NULL, 'Y', 'GYD', '60'),
(61, 'Hong Kong dollar', 'HKD', NULL, 'Y', 'HKD', '61'),
(62, 'Honduran lempira', 'HNL', NULL, 'Y', 'HNL', '62'),
(63, 'Croatian kuna', 'HRK', NULL, 'Y', 'HRK', '63'),
(64, 'Haitian gourde', 'HTG', NULL, 'Y', 'HTG', '64'),
(65, 'Hungarian forint', 'HUF', NULL, 'Y', 'HUF', '65'),
(66, 'Indonesian rupiah', 'IDR', NULL, 'Y', 'IDR', '66'),
(67, 'Israeli new shekel', 'ILS', NULL, 'Y', 'ILS', '67'),
(68, 'Indian rupee', 'INR', NULL, 'Y', 'INR', '68'),
(69, 'Iraqi dinar', 'IQD', NULL, 'Y', 'IQD', '69'),
(70, 'Iranian rial', 'IRR', NULL, 'Y', 'IRR', '70'),
(71, 'Icelandic króna', 'ISK', NULL, 'Y', 'ISK', '71'),
(72, 'Jamaican dollar', 'JMD', NULL, 'Y', 'JMD', '72'),
(73, 'Jordanian dinar', 'JOD', NULL, 'Y', 'JOD', '73'),
(74, 'Japanese yen', 'JPY', NULL, 'Y', 'JPY', '74'),
(75, 'Kenyan shilling', 'KES', NULL, 'Y', 'KES', '75'),
(76, 'Kyrgyzstani som', 'KGS', NULL, 'Y', 'KGS', '76'),
(77, 'Cambodian riel', 'KHR', NULL, 'Y', 'KHR', '77'),
(78, 'Comoro franc', 'KMF', NULL, 'Y', 'KMF', '78'),
(79, 'North Korean won', 'KPW', NULL, 'Y', 'KPW', '79'),
(80, 'South Korean won', 'KRW', NULL, 'Y', 'KRW', '80'),
(81, 'Kuwaiti dinar', 'KWD', NULL, 'Y', 'KWD', '81'),
(82, 'Cayman Islands dollar', 'KYD', NULL, 'Y', 'KYD', '82'),
(83, 'Kazakhstani tenge', 'KZT', NULL, 'Y', 'KZT', '83'),
(84, 'Lao kip', 'LAK', NULL, 'Y', 'LAK', '84'),
(85, 'Lebanese pound', 'LBP', NULL, 'Y', 'LBP', '85'),
(86, 'Sri Lankan rupee', 'LKR', NULL, 'Y', 'LKR', '86'),
(87, 'Liberian dollar', 'LRD', NULL, 'Y', 'LRD', '87'),
(88, 'Lesotho loti', 'LSL', NULL, 'Y', 'LSL', '88'),
(89, 'Libyan dinar', 'LYD', NULL, 'Y', 'LYD', '89'),
(90, 'Moroccan dirham', 'MAD', NULL, 'Y', 'MAD', '90'),
(91, 'Moldovan leu', 'MDL', NULL, 'Y', 'MDL', '91'),
(92, 'Malagasy ariary', 'MGA', NULL, 'Y', 'MGA', '92'),
(93, 'Macedonian denar', 'MKD', NULL, 'Y', 'MKD', '93'),
(94, 'Myanmar kyat', 'MMK', NULL, 'Y', 'MMK', '94'),
(95, 'Mongolian tögrög', 'MNT', NULL, 'Y', 'MNT', '95'),
(96, 'Macanese pataca', 'MOP', NULL, 'Y', 'MOP', '96'),
(97, 'Mauritanian ouguiya', 'MRO', NULL, 'Y', 'MRO', '97'),
(98, 'Mauritian rupee', 'MUR', NULL, 'Y', 'MUR', '98'),
(99, 'Maldivian rufiyaa', 'MVR', NULL, 'Y', 'MVR', '99'),
(100, 'Malawian kwacha', 'MWK', NULL, 'Y', 'MWK', '100'),
(101, 'Mexican peso', 'MXN', NULL, 'Y', 'MXN', '101'),
(102, 'Mexican Unidad de Inversion (UDI) (funds code)', 'MXV', NULL, 'Y', 'MXV', '102'),
(103, 'Malaysian ringgit', 'MYR', NULL, 'Y', 'MYR', '103'),
(104, 'Mozambican metical', 'MZN', NULL, 'Y', 'MZN', '104'),
(105, 'Namibian dollar', 'NAD', NULL, 'Y', 'NAD', '105'),
(106, 'Nigerian naira', 'NGN', NULL, 'Y', 'NGN', '106'),
(107, 'Nicaraguan córdoba', 'NIO', NULL, 'Y', 'NIO', '107'),
(108, 'Norwegian krone', 'NOK', NULL, 'Y', 'NOK', '108'),
(109, 'Nepalese rupee', 'NPR', NULL, 'Y', 'NPR', '109'),
(110, 'New Zealand dollar', 'NZD', NULL, 'Y', 'NZD', '110'),
(111, 'Omani rial', 'OMR', NULL, 'Y', 'OMR', '111'),
(112, 'Panamanian balboa', 'PAB', NULL, 'Y', 'PAB', '112'),
(113, 'Peruvian Sol', 'PEN', NULL, 'Y', 'PEN', '113'),
(114, 'Papua New Guinean kina', 'PGK', NULL, 'Y', 'PGK', '114'),
(115, 'Philippine peso', 'PHP', NULL, 'Y', 'PHP', '115'),
(116, 'Pakistani rupee', 'PKR', NULL, 'Y', 'PKR', '116'),
(117, 'Polish zloty', 'PLN', NULL, 'Y', 'PLN', '117'),
(118, 'Paraguayan guaraní', 'PYG', NULL, 'Y', 'PYG', '118'),
(119, 'Qatari riyal', 'QAR', NULL, 'Y', 'QAR', '119'),
(120, 'Romanian leu', 'RON', NULL, 'Y', 'RON', '120'),
(121, 'Serbian dinar', 'RSD', NULL, 'Y', 'RSD', '121'),
(122, 'Russian ruble', 'RUB', NULL, 'Y', 'RUB', '122'),
(123, 'Rwandan franc', 'RWF', NULL, 'Y', 'RWF', '123'),
(124, 'Saudi riyal', 'SAR', NULL, 'Y', 'SAR', '124'),
(125, 'Solomon Islands dollar', 'SBD', NULL, 'Y', 'SBD', '125'),
(126, 'Seychelles rupee', 'SCR', NULL, 'Y', 'SCR', '126'),
(127, 'Sudanese pound', 'SDG', NULL, 'Y', 'SDG', '127'),
(128, 'Swedish krona/kronor', 'SEK', NULL, 'Y', 'SEK', '128'),
(129, 'Singapore dollar', 'SGD', NULL, 'Y', 'SGD', '129'),
(130, 'Saint Helena pound', 'SHP', NULL, 'Y', 'SHP', '130'),
(131, 'Sierra Leonean leone', 'SLL', NULL, 'Y', 'SLL', '131'),
(132, 'Somali shilling', 'SOS', NULL, 'Y', 'SOS', '132'),
(133, 'Surinamese dollar', 'SRD', NULL, 'Y', 'SRD', '133'),
(134, 'South Sudanese pound', 'SSP', NULL, 'Y', 'SSP', '134'),
(135, 'São Tomé and Príncipe dobra', 'STD', NULL, 'Y', 'STD', '135'),
(136, 'Salvadoran colón', 'SVC', NULL, 'Y', 'SVC', '136'),
(137, 'Syrian pound', 'SYP', NULL, 'Y', 'SYP', '137'),
(138, 'Swazi lilangeni', 'SZL', NULL, 'Y', 'SZL', '138'),
(139, 'Thai baht', 'THB', NULL, 'Y', 'THB', '139'),
(140, 'Tajikistani somoni', 'TJS', NULL, 'Y', 'TJS', '140'),
(141, 'Turkmenistani manat', 'TMT', NULL, 'Y', 'TMT', '141'),
(142, 'Tunisian dinar', 'TND', NULL, 'Y', 'TND', '142'),
(143, 'Tongan pa?anga', 'TOP', NULL, 'Y', 'TOP', '143'),
(144, 'Turkish lira', 'TRY', NULL, 'Y', 'TRY', '144'),
(145, 'Trinidad and Tobago dollar', 'TTD', NULL, 'Y', 'TTD', '145'),
(146, 'New Taiwan dollar', 'TWD', NULL, 'Y', 'TWD', '146'),
(147, 'Tanzanian shilling', 'TZS', NULL, 'Y', 'TZS', '147'),
(148, 'Ukrainian hryvnia', 'UAH', NULL, 'Y', 'UAH', '148'),
(149, 'Ugandan shilling', 'UGX', NULL, 'Y', 'UGX', '149'),
(150, 'United States dollar', 'USD', NULL, 'Y', 'USD', '150'),
(151, 'United States dollar (next day) (funds code)', 'USN', NULL, 'Y', 'USN', '151'),
(152, 'Uruguay Peso en Unidades Indexadas (URUIURUI) (funds code)', 'UYI', NULL, 'Y', 'UYI', '152'),
(153, 'Uruguayan peso', 'UYU', NULL, 'Y', 'UYU', '153'),
(154, 'Uzbekistan som', 'UZS', NULL, 'Y', 'UZS', '154'),
(155, 'Venezuelan bolívar', 'VEF', NULL, 'Y', 'VEF', '155'),
(156, 'Vietnamese dong', 'VND', NULL, 'Y', 'VND', '156'),
(157, 'Vanuatu vatu', 'VUV', NULL, 'Y', 'VUV', '157'),
(158, 'Samoan tala', 'WST', NULL, 'Y', 'WST', '158'),
(159, 'CFA franc BEAC', 'XAF', NULL, 'Y', 'XAF', '159'),
(160, 'Silver (one troy ounce)', 'XAG', NULL, 'Y', 'XAG', '160'),
(161, 'Gold (one troy ounce)', 'XAU', NULL, 'Y', 'XAU', '161'),
(162, 'European Composite Unit (EURCO) (bond market unit)', 'XBA', NULL, 'Y', 'XBA', '162'),
(163, 'European Monetary Unit (E.M.U.-6) (bond market unit)', 'XBB', NULL, 'Y', 'XBB', '163'),
(164, 'European Unit of Account 9 (E.U.A.-9) (bond market unit)', 'XBC', NULL, 'Y', 'XBC', '164'),
(165, 'European Unit of Account 17 (E.U.A.-17) (bond market unit)', 'XBD', NULL, 'Y', 'XBD', '165'),
(166, 'East Caribbean dollar', 'XCD', NULL, 'Y', 'XCD', '166'),
(167, 'Special drawing rights', 'XDR', NULL, 'Y', 'XDR', '167'),
(168, 'CFA franc BCEAO', 'XOF', NULL, 'Y', 'XOF', '168'),
(169, 'Palladium (one troy ounce)', 'XPD', NULL, 'Y', 'XPD', '169'),
(170, 'CFP franc (franc Pacifique)', 'XPF', NULL, 'Y', 'XPF', '170'),
(171, 'Platinum (one troy ounce)', 'XPT', NULL, 'Y', 'XPT', '171'),
(172, 'SUCRE', 'XSU', NULL, 'Y', 'XSU', '172'),
(173, 'Code reserved for testing purposes', 'XTS', NULL, 'Y', 'XTS', '173'),
(174, 'ADB Unit of Account', 'XUA', NULL, 'Y', 'XUA', '174'),
(175, 'No currency', 'XXX', NULL, 'Y', 'XXX', '175'),
(176, 'Yemeni rial', 'YER', NULL, 'Y', 'YER', '176'),
(177, 'South African rand', 'ZAR', NULL, 'Y', 'ZAR', '177'),
(178, 'Zambian kwacha', 'ZMW', NULL, 'Y', 'ZMW', '178'),
(179, 'Zimbabwean dollar A/10', 'ZWL', NULL, 'Y', 'ZWL', '179');

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

--
-- Table structure for table `customedproductcategory`
--

CREATE TABLE IF NOT EXISTS `customedproductcategory` (
  `id` int(11) NOT NULL,
  `name` varchar(50) NOT NULL,
  `description` text NOT NULL,
  `createdate` varchar(50) NOT NULL,
  `status` varchar(50) NOT NULL DEFAULT 'active',
  `userid` varchar(50) NOT NULL,
  `updatedate` varchar(50) NOT NULL,
  `companyid` varchar(100) NOT NULL,
  `branchid` varchar(30) NOT NULL,
  `commission` varchar(20) NOT NULL DEFAULT '0',
  `shipping` varchar(20) NOT NULL,
  `type` varchar(30) NOT NULL DEFAULT 'Percentage',
  `imgid` varchar(50) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

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

CREATE TABLE IF NOT EXISTS `customer` (
  `id` int(11) NOT NULL,
  `firstname` varchar(100) NOT NULL,
  `surname` varchar(50) NOT NULL,
  `username` varchar(100) NOT NULL,
  `phone` varchar(100) NOT NULL,
  `business` varchar(50) NOT NULL,
  `county` varchar(50) NOT NULL,
  `createddate` varchar(50) NOT NULL,
  `password` varchar(30) NOT NULL,
  `website` varchar(100) NOT NULL,
  `dob` varchar(50) NOT NULL,
  `idno` varchar(50) NOT NULL,
  `description` text NOT NULL,
  `box` varchar(50) NOT NULL,
  `source` varchar(50) DEFAULT NULL,
  `town` varchar(50) NOT NULL,
  `country` varchar(50) NOT NULL,
  `updatedate` varchar(50) NOT NULL,
  `category` varchar(50) NOT NULL,
  `apiaccount_id` varchar(30) NOT NULL DEFAULT '1',
  `recoverpassword` varchar(50) NOT NULL,
  `status` varchar(50) NOT NULL DEFAULT 'new',
  `companyid` int(10) NOT NULL DEFAULT '1',
  `service` text NOT NULL,
  `usertype` varchar(50) DEFAULT NULL,
  `smstype` int(10) NOT NULL DEFAULT '2',
  `refer` text NOT NULL,
  `email` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `customerfiscalyear`
--

CREATE TABLE IF NOT EXISTS `customerfiscalyear` (
  `id` int(40) NOT NULL,
  `name` varchar(60) NOT NULL,
  `status` varchar(20) NOT NULL DEFAULT 'active',
  `startdate` datetime NOT NULL,
  `enddate` datetime NOT NULL,
  `companyid` int(11) NOT NULL,
  `userid` int(11) NOT NULL,
  `createdate` varchar(30) NOT NULL,
  `opening` decimal(10,2) NOT NULL,
  `closing` decimal(10,2) NOT NULL,
  `priority` int(11) NOT NULL,
  `number` varchar(50) NOT NULL,
  `branchid` int(11) NOT NULL DEFAULT '1',
  `category` varchar(20) NOT NULL DEFAULT 'customer'
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `customerfiscalyear`
--

INSERT INTO `customerfiscalyear` (`id`, `name`, `status`, `startdate`, `enddate`, `companyid`, `userid`, `createdate`, `opening`, `closing`, `priority`, `number`, `branchid`, `category`) VALUES
(1, '', 'active', '2022-00-00 00:00:00', '2021-00-00 00:00:00', 1, 1, '\r\n<div style="border:1px solid', '3333.00', '44444.00', 0, '1', 0, 'member');

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

--
-- Table structure for table `customersupplierbalance`
--

CREATE TABLE IF NOT EXISTS `customersupplierbalance` (
  `id` int(40) NOT NULL,
  `description` varchar(60) NOT NULL,
  `status` varchar(20) NOT NULL DEFAULT 'active',
  `startdate` datetime NOT NULL,
  `enddate` datetime NOT NULL,
  `companyid` int(11) NOT NULL,
  `userid` int(11) NOT NULL,
  `createdate` varchar(30) NOT NULL,
  `opening` decimal(10,2) NOT NULL,
  `closing` decimal(10,2) NOT NULL,
  `priority` int(11) NOT NULL,
  `number` varchar(50) NOT NULL,
  `branchid` int(11) NOT NULL DEFAULT '1',
  `customerid` int(11) NOT NULL,
  `type` varchar(20) NOT NULL DEFAULT 'customer'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `dailycharges`
--

CREATE TABLE IF NOT EXISTS `dailycharges` (
  `myinvoice` varchar(50) DEFAULT NULL,
  `id` int(11) NOT NULL,
  `invoice` varchar(100) NOT NULL,
  `code` varchar(100) NOT NULL,
  `qty` varchar(10) NOT NULL,
  `amount` varchar(100) NOT NULL,
  `salestype` varchar(100) NOT NULL,
  `discount` varchar(100) NOT NULL,
  `dateposted` varchar(50) NOT NULL,
  `address` text NOT NULL,
  `description` text NOT NULL,
  `user` varchar(50) NOT NULL,
  `bprice` varchar(50) NOT NULL,
  `type` varchar(50) NOT NULL DEFAULT 'cash',
  `tax` decimal(10,2) NOT NULL,
  `sprice` varchar(100) NOT NULL,
  `balance` varchar(50) NOT NULL,
  `customer` varchar(50) NOT NULL,
  `userid` varchar(50) NOT NULL,
  `mode` varchar(50) NOT NULL DEFAULT '16',
  `companyid` varchar(100) NOT NULL,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `maincategory` varchar(50) NOT NULL,
  `category` varchar(50) NOT NULL,
  `status` varchar(30) DEFAULT 'checkin',
  `branch` varchar(30) NOT NULL,
  `ordersales` varchar(20) NOT NULL DEFAULT 'new',
  `uom` varchar(30) NOT NULL,
  `sales` varchar(30) NOT NULL,
  `updatedat` varchar(50) NOT NULL,
  `updatedby` varchar(10) NOT NULL,
  `taxindicator` varchar(10) NOT NULL DEFAULT 'yes',
  `serial` varchar(50) DEFAULT NULL,
  `tax2` varchar(20) NOT NULL,
  `discountype` varchar(20) NOT NULL,
  `discountvalue` varchar(20) NOT NULL,
  `vattype` varchar(20) NOT NULL,
  `taxable` decimal(10,2) NOT NULL,
  `uomqty` varchar(30) NOT NULL DEFAULT '0',
  `stockbefore` varchar(30) NOT NULL,
  `stockafter` varchar(30) NOT NULL,
  `taxtype` varchar(30) NOT NULL DEFAULT 'Inclusive',
  `stock` varchar(20) NOT NULL DEFAULT 'branch',
  `producttype` varchar(30) NOT NULL,
  `assetaccount` varchar(30) NOT NULL,
  `salesaccount` varchar(30) NOT NULL,
  `expenseaccount` varchar(30) DEFAULT NULL,
  `start` varchar(20) NOT NULL,
  `close` varchar(20) NOT NULL,
  `transactioncode` varchar(50) NOT NULL,
  `name` varchar(20) NOT NULL,
  `chargeid` varchar(20) NOT NULL,
  `plotno` varchar(20) NOT NULL,
  `houseno` varchar(20) NOT NULL,
  `cost` varchar(20) NOT NULL,
  `createdat` varchar(30) NOT NULL,
  `discountedtotal` varchar(20) DEFAULT NULL,
  `idno` varchar(20) DEFAULT NULL,
  `phone` varchar(50) DEFAULT NULL,
  `checkin` varchar(30) DEFAULT NULL,
  `checkout` varchar(30) DEFAULT NULL,
  `roomtype` varchar(20) DEFAULT NULL,
  `bedid` varchar(20) DEFAULT NULL,
  `bedname` varchar(20) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `dailycollections`
--

CREATE TABLE IF NOT EXISTS `dailycollections` (
  `id` int(40) NOT NULL,
  `idno` varchar(50) NOT NULL,
  `description` text NOT NULL,
  `userid` varchar(50) NOT NULL,
  `createdat` varchar(50) NOT NULL,
  `updatedat` varchar(50) NOT NULL,
  `companyid` varchar(100) NOT NULL,
  `amount` varchar(30) NOT NULL,
  `name` varchar(30) NOT NULL,
  `total` varchar(30) NOT NULL,
  `balance` varchar(30) NOT NULL,
  `mpesa` varchar(30) NOT NULL,
  `card` varchar(30) NOT NULL,
  `credit` varchar(30) NOT NULL,
  `voucher` varchar(10) NOT NULL,
  `cheque` varchar(30) NOT NULL,
  `points` varchar(30) NOT NULL,
  `controller` varchar(30) NOT NULL,
  `expense` varchar(30) NOT NULL,
  `cash` varchar(30) NOT NULL,
  `discount` varchar(30) NOT NULL,
  `entrydate` varchar(30) NOT NULL,
  `contact` varchar(30) NOT NULL,
  `transactioncode` varchar(30) NOT NULL,
  `status` varchar(30) NOT NULL DEFAULT 'active',
  `tax` decimal(10,2) NOT NULL,
  `sort` decimal(10,2) NOT NULL,
  `sortmoney` decimal(10,2) NOT NULL,
  `transactiondate` varchar(30) NOT NULL,
  `branchid` int(11) NOT NULL,
  `openingbalance` decimal(10,2) NOT NULL,
  `closingbalance` decimal(10,2) NOT NULL,
  `cashcollected` decimal(10,2) NOT NULL,
  `totalsales` decimal(10,2) NOT NULL,
  `debt` decimal(10,0) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `dailytasks`
--

CREATE TABLE IF NOT EXISTS `dailytasks` (
  `id` int(30) NOT NULL,
  `branchid` int(11) DEFAULT NULL,
  `status` varchar(11) NOT NULL DEFAULT 'active',
  `userid` int(30) NOT NULL,
  `createdate` varchar(30) NOT NULL,
  `companyid` int(11) NOT NULL,
  `updateddate` varchar(40) NOT NULL,
  `taskid` int(11) NOT NULL,
  `achieved` varchar(20) NOT NULL,
  `period` varchar(20) NOT NULL,
  `description` text NOT NULL,
  `exactdate` varchar(30) NOT NULL,
  `day` varchar(20) NOT NULL,
  `comment` text NOT NULL,
  `updatedby` int(11) NOT NULL,
  `mykey` varchar(50) NOT NULL,
  `approval` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Add or sub entitlement for employees or contracts';

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

--
-- Table structure for table `damages`
--

CREATE TABLE IF NOT EXISTS `damages` (
  `id` int(10) NOT NULL,
  `expendituretype` varchar(50) NOT NULL,
  `user` varchar(50) NOT NULL,
  `qty` varchar(50) NOT NULL,
  `details` text NOT NULL,
  `datedamaged` varchar(50) NOT NULL,
  `incharge` varchar(40) NOT NULL,
  `product` text NOT NULL,
  `userid` varchar(50) NOT NULL,
  `companyid` varchar(30) NOT NULL,
  `entrydate` varchar(50) NOT NULL,
  `supplier` varchar(30) NOT NULL,
  `original` decimal(10,2) NOT NULL,
  `balance` decimal(10,2) NOT NULL,
  `branchid` int(5) DEFAULT '1',
  `invoice` varchar(50) NOT NULL,
  `buyingprice` varchar(20) NOT NULL,
  `ttbrice` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `deals`
--

CREATE TABLE IF NOT EXISTS `deals` (
  `id` int(50) NOT NULL,
  `owner` varchar(100) NOT NULL,
  `title` varchar(100) NOT NULL,
  `contact` varchar(100) NOT NULL,
  `type` varchar(100) NOT NULL,
  `nextstep` text NOT NULL,
  `contactname` varchar(100) NOT NULL,
  `amount` varchar(100) NOT NULL,
  `fromdate` datetime NOT NULL,
  `todate` datetime NOT NULL,
  `probability` varchar(100) NOT NULL,
  `expectedrevenue` varchar(100) NOT NULL,
  `stage` varchar(100) NOT NULL,
  `status` varchar(100) NOT NULL DEFAULT 'active',
  `comments` text NOT NULL,
  `userid` varchar(100) NOT NULL,
  `dateposted` datetime NOT NULL,
  `companyid` varchar(100) NOT NULL,
  `allsteps` text NOT NULL,
  `dealowner` varchar(30) NOT NULL,
  `branchid` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `dealsfeedback`
--

CREATE TABLE IF NOT EXISTS `dealsfeedback` (
  `id` int(11) NOT NULL,
  `name` text NOT NULL,
  `description` text NOT NULL,
  `createdate` varchar(50) NOT NULL,
  `status` varchar(50) NOT NULL DEFAULT 'active',
  `userid` varchar(50) NOT NULL,
  `updatedate` varchar(50) NOT NULL,
  `companyid` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `dealstatus`
--

CREATE TABLE IF NOT EXISTS `dealstatus` (
  `id` int(11) NOT NULL,
  `name` varchar(45) DEFAULT NULL,
  `companyid` int(11) NOT NULL DEFAULT '1'
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `dealstatus`
--

INSERT INTO `dealstatus` (`id`, `name`, `companyid`) VALUES
(1, 'Interested', 1),
(2, 'Not Interested', 1),
(3, 'Closed', 1),
(4, 'Don''t Call me again', 1),
(5, 'Ordered', 1),
(6, 'Not Ordered', 1),
(7, 'Not Picking', 1),
(8, 'Call Later', 1);

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

--
-- Table structure for table `debitcredit`
--

CREATE TABLE IF NOT EXISTS `debitcredit` (
  `id` int(30) NOT NULL,
  `account` varchar(50) NOT NULL,
  `code` varchar(50) NOT NULL,
  `crateddate` datetime NOT NULL,
  `debit` decimal(10,2) DEFAULT NULL,
  `credit` decimal(10,2) DEFAULT NULL,
  `balance` varchar(20) NOT NULL,
  `userid` varchar(20) NOT NULL,
  `companyid` varchar(20) NOT NULL,
  `description` text NOT NULL,
  `branch` varchar(30) NOT NULL,
  `supplier` varchar(30) NOT NULL,
  `type` varchar(30) NOT NULL,
  `refno` varchar(30) NOT NULL,
  `mode` varchar(50) NOT NULL,
  `confirm` varchar(30) NOT NULL DEFAULT 'No',
  `updatedat` varchar(30) DEFAULT NULL,
  `updatedby` int(11) DEFAULT NULL,
  `transactioncode` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `delivery`
--

CREATE TABLE IF NOT EXISTS `delivery` (
  `id` int(11) NOT NULL,
  `itemid` text NOT NULL,
  `createdate` varchar(50) NOT NULL,
  `status` varchar(50) NOT NULL DEFAULT 'new',
  `userid` varchar(50) NOT NULL,
  `updatedate` varchar(50) NOT NULL,
  `companyid` varchar(100) NOT NULL,
  `code` varchar(30) NOT NULL,
  `branch` varchar(30) NOT NULL,
  `qty` varchar(10) NOT NULL,
  `buyingprice` decimal(10,2) NOT NULL,
  `sellingprice` decimal(10,2) NOT NULL,
  `invoice` varchar(50) DEFAULT NULL,
  `serial` varchar(50) NOT NULL,
  `orderno` varchar(50) NOT NULL,
  `name` text NOT NULL,
  `description` text NOT NULL,
  `batchno` int(11) NOT NULL,
  `myid` int(50) NOT NULL,
  `staff` int(11) NOT NULL,
  `shipping` decimal(10,2) NOT NULL,
  `commission` decimal(10,2) NOT NULL,
  `ordereddate` varchar(50) NOT NULL,
  `supplier` int(11) NOT NULL DEFAULT '1',
  `profit` varchar(20) NOT NULL,
  `commissionrate` varchar(20) NOT NULL,
  `type` varchar(30) NOT NULL,
  `mode` varchar(30) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `department`
--

CREATE TABLE IF NOT EXISTS `department` (
  `id` int(50) NOT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `description` text COLLATE utf8_unicode_ci NOT NULL,
  `faculty_id` int(11) NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `department`
--

INSERT INTO `department` (`id`, `name`, `description`, `faculty_id`, `created_at`, `updated_at`) VALUES
(1, 'ICT', 'ICT', 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(2, 'Sales', '', 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00');

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

--
-- Table structure for table `depositrefunds`
--

CREATE TABLE IF NOT EXISTS `depositrefunds` (
  `id` int(100) NOT NULL,
  `houseno` varchar(100) NOT NULL,
  `type` varchar(40) NOT NULL,
  `description` text NOT NULL,
  `plotno` varchar(100) NOT NULL,
  `balance` decimal(10,2) NOT NULL,
  `status` varchar(100) NOT NULL,
  `createdat` varchar(100) NOT NULL,
  `updatedat` varchar(100) NOT NULL,
  `userid` varchar(100) NOT NULL,
  `companyid` varchar(100) NOT NULL,
  `branchid` int(30) NOT NULL DEFAULT '1',
  `amount` decimal(10,2) NOT NULL,
  `before` varchar(20) DEFAULT NULL,
  `after` varchar(20) DEFAULT NULL,
  `bookingid` int(20) NOT NULL,
  `tenantid` int(11) NOT NULL,
  `receiptno` varchar(50) NOT NULL,
  `transactioncode` varchar(50) NOT NULL,
  `mode` varchar(30) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `device`
--

CREATE TABLE IF NOT EXISTS `device` (
  `id` int(11) NOT NULL,
  `name` varchar(50) DEFAULT NULL,
  `description` text NOT NULL,
  `createdate` varchar(50) NOT NULL,
  `status` varchar(50) NOT NULL DEFAULT 'active',
  `userid` varchar(50) NOT NULL,
  `updatedate` varchar(50) NOT NULL,
  `companyid` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `discount`
--

CREATE TABLE IF NOT EXISTS `discount` (
  `id` int(11) NOT NULL,
  `discount` varchar(50) NOT NULL,
  `name` text NOT NULL,
  `createdate` varchar(50) NOT NULL,
  `status` varchar(50) NOT NULL DEFAULT 'active',
  `userid` varchar(50) NOT NULL,
  `updatedate` varchar(50) NOT NULL,
  `companyid` varchar(50) NOT NULL,
  `branchid` int(11) NOT NULL DEFAULT '1',
  `type` varchar(20) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `discount`
--

INSERT INTO `discount` (`id`, `discount`, `name`, `createdate`, `status`, `userid`, `updatedate`, `companyid`, `branchid`, `type`) VALUES
(1, '1000', 'BASIC', '2023-05-16 14:12:30', 'active', '1', '', '1', 1, 'Amount'),
(2, '10', 'PREMIUM DISCOUNT', '2023-11-11 07:36:57', 'active', '1', 'Yes', '1', 1, 'Percentage'),
(3, '1000', 'BASIC', '2025-03-17 06:03:30', 'active', '1', 'No', '1', 1, 'Amount'),
(4, '1000', 'BASIC', '2025-03-17 06:13:51', 'active', '1', '', '1', 1, 'Amount');

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

--
-- Table structure for table `distribution`
--

CREATE TABLE IF NOT EXISTS `distribution` (
  `id` int(11) NOT NULL,
  `itemid` text NOT NULL,
  `createdate` varchar(50) NOT NULL,
  `status` varchar(50) NOT NULL DEFAULT 'new',
  `userid` varchar(50) NOT NULL,
  `updatedate` varchar(50) NOT NULL,
  `companyid` varchar(100) NOT NULL,
  `code` varchar(30) NOT NULL,
  `branch` varchar(30) NOT NULL,
  `qty` varchar(10) NOT NULL,
  `buyingprice` decimal(10,2) NOT NULL,
  `sellingprice` decimal(10,2) NOT NULL,
  `invoice` varchar(50) DEFAULT NULL,
  `serial` varchar(50) NOT NULL,
  `orderno` varchar(50) NOT NULL,
  `name` text NOT NULL,
  `description` text NOT NULL,
  `batchno` int(11) NOT NULL,
  `myid` int(50) NOT NULL,
  `staff` int(11) NOT NULL,
  `shipping` decimal(10,2) NOT NULL,
  `commission` decimal(10,2) NOT NULL,
  `ordereddate` varchar(50) NOT NULL,
  `supplier` int(11) NOT NULL DEFAULT '1',
  `profit` varchar(20) NOT NULL,
  `commissionrate` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `district`
--

CREATE TABLE IF NOT EXISTS `district` (
  `id` int(30) NOT NULL,
  `code` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `countyid` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `description` text COLLATE utf8_unicode_ci,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `provincecode` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

--
-- Table structure for table `documents`
--

CREATE TABLE IF NOT EXISTS `documents` (
  `id` int(50) NOT NULL,
  `documentname` varchar(100) NOT NULL,
  `idno` varchar(50) NOT NULL,
  `category` varchar(100) NOT NULL,
  `name` text NOT NULL,
  `dateposted` varchar(100) NOT NULL,
  `description` text NOT NULL,
  `userid` varchar(50) NOT NULL,
  `status` varchar(50) NOT NULL DEFAULT 'active',
  `entrydate` varchar(50) NOT NULL,
  `img_id` varchar(100) NOT NULL,
  `companyid` varchar(50) NOT NULL,
  `mydocuments` text,
  `invoice` varchar(50) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `doorlock`
--

CREATE TABLE IF NOT EXISTS `doorlock` (
  `id` int(20) NOT NULL,
  `type` varchar(40) NOT NULL,
  `description` text NOT NULL,
  `status` varchar(40) NOT NULL,
  `createdat` varchar(100) NOT NULL,
  `updatedat` varchar(100) NOT NULL,
  `userid` varchar(100) NOT NULL,
  `name` varchar(50) NOT NULL,
  `companyid` int(5) NOT NULL DEFAULT '1',
  `branchid` int(20) DEFAULT NULL,
  `guest` varchar(50) NOT NULL,
  `roomtype` varchar(50) NOT NULL,
  `roomno` varchar(50) NOT NULL,
  `guesttype` varchar(50) NOT NULL,
  `chargetype` varchar(50) NOT NULL,
  `issuedqty` varchar(50) NOT NULL,
  `recycledcardqty` varchar(50) NOT NULL,
  `state` varchar(50) NOT NULL,
  `checkintime` varchar(50) NOT NULL,
  `departuretime` varchar(50) NOT NULL,
  `vouchertype` varchar(50) NOT NULL,
  `voucherno` varchar(50) NOT NULL,
  `checkouttime` varchar(50) NOT NULL,
  `area1` varchar(50) NOT NULL,
  `area2` varchar(50) NOT NULL,
  `operator` varchar(50) NOT NULL,
  `remark` varchar(50) NOT NULL,
  `familyroom` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `email_accounts`
--

CREATE TABLE IF NOT EXISTS `email_accounts` (
  `id` int(11) NOT NULL,
  `email` varchar(50) NOT NULL,
  `password` varchar(100) NOT NULL,
  `smtp_host` varchar(50) NOT NULL,
  `smtp_port` int(11) NOT NULL,
  `userid` int(11) NOT NULL,
  `companyid` int(11) NOT NULL,
  `name` varchar(50) NOT NULL,
  `server` int(11) NOT NULL,
  `createdate` varchar(30) NOT NULL,
  `protocol` varchar(30) NOT NULL DEFAULT 'smtp'
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `email_accounts`
--

INSERT INTO `email_accounts` (`id`, `email`, `password`, `smtp_host`, `smtp_port`, `userid`, `companyid`, `name`, `server`, `createdate`, `protocol`) VALUES
(1, 'marketing@mombasacontinental.com', 'Pass@123', 'mail.mombasacontinental.com', 587, 1, 465, 'ROBISEARCH LTD/TASK MANAGER', 1, '', 'mail/smtp'),
(2, 'support@robisearch.com', 'support!@##@!', 'ssl://mail.robisearch.com', 465, 1, 1, 'ROBISEARCH LTD/TASK MANAGER', 2, '2019-06-23 05:28:28pm', 'smtp'),
(3, 'oukobert@gmail.com', '0718667391', 'ssl://smtp.googlemail.com', 465, 1, 1, 'robisearch', 1, '2019-11-04 11:00:33am', 'smtp');

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

--
-- Table structure for table `employeecharges`
--

CREATE TABLE IF NOT EXISTS `employeecharges` (
  `id` int(11) NOT NULL,
  `code` varchar(20) NOT NULL,
  `name` text NOT NULL,
  `createdate` varchar(50) NOT NULL,
  `status` varchar(50) NOT NULL DEFAULT 'Active',
  `userid` varchar(50) NOT NULL,
  `updatedate` varchar(50) NOT NULL,
  `companyid` varchar(50) NOT NULL,
  `category` varchar(20) NOT NULL DEFAULT 'Minus',
  `amountmode` varchar(20) NOT NULL,
  `qtymode` varchar(20) NOT NULL,
  `quantity` decimal(10,2) NOT NULL,
  `amount` decimal(10,2) NOT NULL,
  `unit` varchar(50) NOT NULL,
  `memberid` int(11) NOT NULL,
  `statutory` varchar(20) DEFAULT NULL
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `employeecharges`
--

INSERT INTO `employeecharges` (`id`, `code`, `name`, `createdate`, `status`, `userid`, `updatedate`, `companyid`, `category`, `amountmode`, `qtymode`, `quantity`, `amount`, `unit`, `memberid`, `statutory`) VALUES
(3, '9', 'NSSF', '2025-01-21 18:52:19', 'Active', '1', '', '1', 'Deduction', 'Fixed', 'Fixed', '1.00', '1800.00', '', 1, 'NSSF'),
(4, '2005', 'House Levy', '2025-01-21 18:53:04', 'Active', '1', '', '1', 'Deduction', 'Fixed', 'Fixed', '1.00', '450.00', '1.5', 1, 'HOUSE LEVY'),
(5, '10', 'SHIF', '2025-01-21 18:53:34', 'Active', '1', '', '1', 'Deduction', 'Fixed', 'Fixed', '1.00', '825.00', '2.75', 1, 'NHIF'),
(6, '8', 'PAYE', '2025-01-21 18:55:45', 'Active', '1', '', '1', 'Deduction', 'Fixed', 'Fixed', '1.00', '731.25', '', 1, 'PAYE'),
(7, '9', 'NSSF', '2025-01-24 06:20:36', 'Active', '1', '', '1', 'Deduction', 'Fixed', 'Fixed', '1.00', '1800.00', '', 4, 'NSSF'),
(8, '8', 'PAYE', '2025-01-24 06:20:54', 'Active', '1', '', '1', 'Deduction', 'Fixed', 'Fixed', '1.00', '731.25', '', 4, 'PAYE'),
(9, '10', 'SHIF', '2025-01-24 06:21:45', 'Active', '1', '', '1', 'Deduction', 'Fixed', 'Fixed', '1.00', '825.00', '2.75', 4, 'NHIF'),
(10, '2005', 'House Levy', '2025-01-24 06:24:17', 'Active', '1', '', '1', 'Deduction', 'Fixed', 'Fixed', '1.00', '450.00', '1.5', 4, 'HOUSE LEVY');

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

--
-- Table structure for table `employeepayments`
--

CREATE TABLE IF NOT EXISTS `employeepayments` (
  `id` int(11) NOT NULL,
  `code` varchar(20) NOT NULL,
  `name` text NOT NULL,
  `createdate` varchar(50) NOT NULL,
  `status` varchar(50) NOT NULL DEFAULT 'Active',
  `userid` varchar(50) NOT NULL,
  `updatedate` varchar(50) NOT NULL,
  `companyid` varchar(50) NOT NULL,
  `category` varchar(20) NOT NULL DEFAULT 'Minus',
  `amountmode` varchar(20) NOT NULL,
  `qtymode` varchar(20) NOT NULL,
  `quantity` decimal(10,2) NOT NULL,
  `amount` decimal(10,2) NOT NULL,
  `unit` varchar(50) NOT NULL,
  `memberid` int(11) NOT NULL,
  `salaryid` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `etiminitialization`
--

CREATE TABLE IF NOT EXISTS `etiminitialization` (
  `id` int(11) NOT NULL,
  `tin` varchar(50) NOT NULL,
  `bhfOpenDt` varchar(50) DEFAULT NULL,
  `createdate` datetime NOT NULL,
  `sdcId` varchar(50) DEFAULT '00',
  `mrcNo` text,
  `cmcKey` text,
  `companyid` varchar(50) NOT NULL,
  `branchid` varchar(50) NOT NULL,
  `updatedid` varchar(20) NOT NULL DEFAULT 'KES',
  `updatedby` varchar(20) DEFAULT NULL,
  `userid` int(11) NOT NULL,
  `name` text NOT NULL,
  `bhfid` varchar(50) DEFAULT NULL,
  `bhfSttsCd` varchar(50) DEFAULT NULL,
  `url` text NOT NULL,
  `onlineoffline` varchar(20) NOT NULL,
  `phone` varchar(50) NOT NULL,
  `code` varchar(50) NOT NULL,
  `status` varchar(50) NOT NULL,
  `verification` text NOT NULL,
  `requestdate` varchar(50) NOT NULL,
  `confirmationdate` varchar(50) NOT NULL,
  `businesskey` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `etimsactivations`
--

CREATE TABLE IF NOT EXISTS `etimsactivations` (
  `id` int(11) NOT NULL,
  `name` varchar(50) NOT NULL,
  `description` text NOT NULL,
  `createdate` varchar(50) NOT NULL,
  `status` varchar(50) NOT NULL DEFAULT 'active',
  `userid` varchar(50) NOT NULL,
  `updatedate` varchar(50) NOT NULL,
  `companyid` varchar(50) NOT NULL,
  `invoice` text NOT NULL,
  `computerno` text NOT NULL,
  `fromdate` varchar(30) NOT NULL,
  `todate` varchar(30) DEFAULT NULL,
  `bhfid` varchar(50) NOT NULL,
  `duration` int(11) NOT NULL,
  `phone` varchar(20) DEFAULT NULL,
  `extensiontype` varchar(30) DEFAULT 'New Installation',
  `computernostatus` varchar(20) NOT NULL DEFAULT 'new',
  `computernodate` varchar(20) NOT NULL,
  `computernouserdata` text NOT NULL,
  `updatedid` int(11) DEFAULT NULL,
  `tin` text NOT NULL,
  `sdcId` text NOT NULL,
  `cmcKey` text NOT NULL,
  `mrcNo` text NOT NULL,
  `url` text NOT NULL,
  `onlineoffline` varchar(50) NOT NULL,
  `businesskey` text NOT NULL,
  `code` varchar(50) NOT NULL,
  `verification` text NOT NULL,
  `branchid` varchar(5) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `evaluation`
--

CREATE TABLE IF NOT EXISTS `evaluation` (
  `invoice` varchar(100) NOT NULL,
  `id` int(20) NOT NULL,
  `serialno` varchar(50) NOT NULL,
  `insuredname` varchar(50) NOT NULL,
  `insurer` varchar(50) NOT NULL,
  `expirydate` varchar(50) NOT NULL,
  `inspectedby` varchar(50) NOT NULL,
  `contact` varchar(50) NOT NULL,
  `policyno` varchar(50) NOT NULL,
  `instructions` text NOT NULL,
  `registrationno` varchar(50) NOT NULL,
  `make` varchar(50) NOT NULL,
  `model` varchar(50) NOT NULL,
  `colour` varchar(50) NOT NULL,
  `yom` varchar(50) NOT NULL,
  `fueltype` varchar(50) NOT NULL,
  `engineno` varchar(50) NOT NULL,
  `chassisno` varchar(50) NOT NULL,
  `mileage` varchar(50) NOT NULL,
  `enginerating` varchar(50) NOT NULL,
  `countryoforigin` varchar(50) NOT NULL,
  `locationofinspection` varchar(50) NOT NULL,
  `coachwork` varchar(50) NOT NULL,
  `mechanical` varchar(50) NOT NULL,
  `electrical` varchar(50) NOT NULL,
  `tyres` varchar(50) NOT NULL,
  `generalcondition` text NOT NULL,
  `assessedvalue` varchar(50) NOT NULL,
  `features` text NOT NULL,
  `anittheft` varchar(50) NOT NULL,
  `windscreenvalue` varchar(50) NOT NULL,
  `radiovalue` varchar(50) NOT NULL,
  `remarks` text NOT NULL,
  `reportdetails` text NOT NULL,
  `date` date NOT NULL,
  `pin` varchar(50) NOT NULL,
  `userid` int(11) NOT NULL,
  `branchid` int(11) NOT NULL,
  `companyid` int(11) NOT NULL,
  `dateposted` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `events`
--

CREATE TABLE IF NOT EXISTS `events` (
  `id` int(50) NOT NULL,
  `title` varchar(100) NOT NULL,
  `fromdate` varchar(50) NOT NULL,
  `todate` varchar(50) NOT NULL,
  `host` varchar(100) NOT NULL,
  `participants` text NOT NULL,
  `location` varchar(100) NOT NULL,
  `status` varchar(40) NOT NULL DEFAULT 'new',
  `comments` text NOT NULL,
  `repeated` varchar(50) NOT NULL,
  `dateposted` varchar(100) NOT NULL,
  `userid` varchar(100) NOT NULL,
  `updatedat` varchar(100) NOT NULL,
  `companyid` varchar(50) NOT NULL,
  `one` varchar(20) NOT NULL,
  `two` varchar(20) NOT NULL,
  `three` varchar(20) DEFAULT NULL,
  `branchid` int(10) NOT NULL DEFAULT '1',
  `four` varchar(20) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `expenses`
--

CREATE TABLE IF NOT EXISTS `expenses` (
  `id` int(50) NOT NULL,
  `type` varchar(50) NOT NULL,
  `userid` varchar(50) NOT NULL,
  `amount` varchar(50) NOT NULL,
  `description` text NOT NULL,
  `dateposted` datetime NOT NULL,
  `user` varchar(100) NOT NULL,
  `status` varchar(50) NOT NULL DEFAULT 'Active',
  `datespent` datetime NOT NULL,
  `receiptno` varchar(100) NOT NULL,
  `idno` varchar(100) NOT NULL,
  `contact` varchar(100) NOT NULL,
  `controller` varchar(100) NOT NULL,
  `imgid` varchar(100) NOT NULL,
  `img_id` text NOT NULL,
  `companyid` varchar(100) NOT NULL,
  `accounttype` varchar(50) NOT NULL,
  `bankname` varchar(60) NOT NULL,
  `supplier` varchar(30) NOT NULL,
  `invoice` varchar(30) NOT NULL,
  `paymentmethodes` varchar(30) NOT NULL,
  `duedate` varchar(30) NOT NULL,
  `terms` text NOT NULL,
  `balance` decimal(10,2) NOT NULL,
  `paid` decimal(10,2) NOT NULL,
  `updatedat` varchar(30) NOT NULL,
  `updatedby` int(11) NOT NULL,
  `branchid` int(11) NOT NULL DEFAULT '1',
  `allocation` varchar(20) NOT NULL DEFAULT 'No',
  `invoicestatus` varchar(20) NOT NULL DEFAULT 'No',
  `allocationtext` text NOT NULL,
  `loanpaid` decimal(10,2) NOT NULL,
  `loanbalance` decimal(10,2) NOT NULL,
  `duration` varchar(20) NOT NULL,
  `monthlyrate` varchar(20) NOT NULL,
  `department` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `faqs`
--

CREATE TABLE IF NOT EXISTS `faqs` (
  `id` int(50) NOT NULL,
  `companyid` varchar(60) NOT NULL,
  `title` text NOT NULL,
  `answers` text NOT NULL,
  `email` varchar(50) NOT NULL,
  `phone` varchar(30) NOT NULL,
  `date` varchar(60) NOT NULL,
  `description` text NOT NULL,
  `postedtime` varchar(60) NOT NULL,
  `userid` varchar(60) NOT NULL,
  `invoice` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `fingers`
--

CREATE TABLE IF NOT EXISTS `fingers` (
  `id` int(100) NOT NULL,
  `admno` varchar(200) NOT NULL,
  `fingername` varchar(50) NOT NULL,
  `regdate` varchar(100) NOT NULL,
  `template` text NOT NULL,
  `status` varchar(100) NOT NULL DEFAULT 'active'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `fiscalyear`
--

CREATE TABLE IF NOT EXISTS `fiscalyear` (
  `id` int(30) NOT NULL,
  `name` varchar(60) NOT NULL,
  `status` varchar(20) NOT NULL DEFAULT 'active',
  `startdate` datetime NOT NULL,
  `enddate` datetime NOT NULL,
  `companyid` int(11) NOT NULL,
  `userid` int(11) NOT NULL,
  `createdate` varchar(30) NOT NULL,
  `opening` decimal(10,2) NOT NULL,
  `closing` decimal(10,2) NOT NULL,
  `priority` int(11) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `fiscalyear`
--

INSERT INTO `fiscalyear` (`id`, `name`, `status`, `startdate`, `enddate`, `companyid`, `userid`, `createdate`, `opening`, `closing`, `priority`) VALUES
(1, '2025 Fiscal Year', 'active', '2025-01-01 00:00:00', '2025-12-31 23:59:00', 1, 1, '2025-02-13 11:50:14', '0.00', '0.00', 0);

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

--
-- Table structure for table `followups`
--

CREATE TABLE IF NOT EXISTS `followups` (
  `id` int(30) NOT NULL,
  `date` varchar(50) NOT NULL,
  `followupid` varchar(50) NOT NULL,
  `userid` varchar(50) NOT NULL,
  `status` varchar(50) NOT NULL DEFAULT 'newstock',
  `companyid` varchar(100) NOT NULL,
  `nextdate` datetime NOT NULL,
  `feedback` text NOT NULL,
  `recommendation` text NOT NULL,
  `challanges` text NOT NULL,
  `level` varchar(50) NOT NULL,
  `branchid` int(11) NOT NULL,
  `finalid` varchar(50) NOT NULL,
  `dateposted` datetime NOT NULL,
  `type` varchar(20) NOT NULL DEFAULT 'Deal',
  `completed` varchar(20) NOT NULL DEFAULT 'no',
  `dealowner` varchar(20) DEFAULT NULL,
  `stage` varchar(20) DEFAULT NULL,
  `allsteps` varchar(20) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `gatepass`
--

CREATE TABLE IF NOT EXISTS `gatepass` (
  `id` int(11) NOT NULL,
  `subject` varchar(50) NOT NULL,
  `description` text NOT NULL,
  `createdate` varchar(50) NOT NULL,
  `status` varchar(50) NOT NULL DEFAULT 'active',
  `userid` varchar(50) NOT NULL,
  `updatedate` varchar(50) NOT NULL,
  `companyid` varchar(50) NOT NULL,
  `category` varchar(30) NOT NULL,
  `messageid` varchar(30) NOT NULL,
  `updatedby` int(11) NOT NULL,
  `updateddate` varchar(30) NOT NULL,
  `callername` text NOT NULL,
  `receiver` text NOT NULL,
  `calldate` varchar(30) NOT NULL,
  `phone` varchar(50) NOT NULL,
  `media` text NOT NULL,
  `email` varchar(50) DEFAULT NULL,
  `idno` varchar(50) NOT NULL,
  `name` varchar(100) NOT NULL,
  `business` varchar(100) NOT NULL,
  `vehicleno` varchar(100) NOT NULL,
  `vehiclecolor` varchar(100) NOT NULL,
  `vehiclemodel` varchar(100) NOT NULL,
  `location` varchar(100) NOT NULL,
  `checkindate` varchar(100) NOT NULL,
  `checkoutdate` varchar(100) NOT NULL,
  `branchid` int(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `glaccounts`
--

CREATE TABLE IF NOT EXISTS `glaccounts` (
  `id` int(30) NOT NULL,
  `userid` varchar(50) NOT NULL,
  `companyid` varchar(50) NOT NULL,
  `accounttype` varchar(50) NOT NULL,
  `accountname` varchar(80) NOT NULL,
  `bankname` varchar(50) DEFAULT NULL,
  `openingdate` varchar(50) NOT NULL,
  `description` int(11) NOT NULL,
  `accountstatus` varchar(50) NOT NULL,
  `amount` varchar(50) NOT NULL,
  `createdate` varchar(50) NOT NULL,
  `number` varchar(50) NOT NULL,
  `currency` varchar(30) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=221 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `glaccounts`
--

INSERT INTO `glaccounts` (`id`, `userid`, `companyid`, `accounttype`, `accountname`, `bankname`, `openingdate`, `description`, `accountstatus`, `amount`, `createdate`, `number`, `currency`) VALUES
(30, '1', '1', '1', 'Control Acc (Cash)', '', '2018-07-20 13:23:56', 1, '', '-183735', '2020-10-01 13:01:12', '1000', '1'),
(31, '1', '1', '1', 'Mpesa', '', '2020-05-10 17:24:37', 1, '', '34000', '2020-05-10 17:28:13', '1010', '1'),
(33, '351', '1', '1', 'KCB account', '', '2018-06-01', 1, '', '-3852698', '2019-07-30 19:18:31', '1030', '1'),
(34, '1', '1', '6', 'Accounts receivable', '', '2018-06-01', 1, '', '400', '2020-01-07 05:46:09', '1100', ''),
(35, '351', '1', '6', 'Inventory assets', '', '2018-07-20 13:29:27', 1, '', '-1500', '2019-07-20 23:18:46', '1110', '1'),
(36, '2', '1', '6', 'checking account', '', '2018-07-20 14:14:59', 1, '', '0', '2018-07-20 14:15:36pm', '1120', 'KES'),
(37, '351', '1', '6', 'Tax Assets', '', '2018-07-20 14:15:37', 1, '', '0', '2019-07-20 13:01:36', '1130', ''),
(38, '2', '1', '6', 'loans & advances', '', '2018-07-20 14:17:01', 1, '', '0', '2018-07-20 14:18:41pm', '1140', 'KES'),
(39, '2', '1', '6', 'securities & deposits', '', '2018-07-20 14:18:42', 1, '', '0', '2018-07-20 14:19:49pm', '1150', 'KES'),
(40, '351', '1', '6', 'Allowance for doubtful accounts', '', '2018-07-20 14:19:50', 1, '', '0', '2019-07-20 12:05:22', '1160', ''),
(41, '351', '1', '6', 'Prepayments', '', '2018-07-20 14:37:09', 1, '', '0', '2019-07-20 13:03:33', '1170', ''),
(44, '351', '1', '6', 'Salary advances', '', '2018-07-20 14:42:02', 1, '', '0', '2019-07-20 12:58:57', '1200', ''),
(45, '351', '1', '7', 'Land', '', '2018-07-20 14:43:05', 1, '', '0', '2019-07-20 13:00:33', '1500', ''),
(46, '351', '1', '7', 'Motor Vehicle', '', '2018-07-20 15:05:47', 1, '', '0', '2019-07-20 13:04:35', '1510', ''),
(47, '1', '1', '27', 'Softwares', '', '2018-07-20 15:06:36', 4, '', '0', '2019-10-28 05:41:59', '1520', ''),
(48, '351', '1', '7', 'Buildings', '', '2018-07-20 15:07:38', 1, '', '0', '2019-07-20 13:07:02', '1530', ''),
(49, '351', '1', '7', 'Plants & Machinery', '', '2018-07-20 15:09:21', 1, '', '0', '2019-07-20 13:08:16', '1540', ''),
(50, '351', '1', '7', 'Office Equipments', '', '2018-07-20 15:13:54', 1, '', '0', '2019-07-20 13:09:35', '1550', ''),
(51, '351', '1', '7', 'Furnitures & Fixtures', '', '2018-07-20 15:18:17', 1, '', '0', '2019-07-20 13:10:29', '1560', ''),
(52, '351', '1', '7', 'Depreciation ', '117', '2018-07-20 15:20:15', 1, '', '0', '2019-07-20 13:13:53', '1570', ''),
(53, '351', '1', '7', 'Depletable assets', '', '2018-07-20 15:21:07', 1, '', '0', '2019-07-20 13:30:32', '1580', '1'),
(54, '351', '1', '7', 'Leasehold improvements', '', '2018-07-20 15:22:55', 1, '', '0', '2019-07-20 13:36:59', '1590', ''),
(55, '351', '1', '7', 'Accumulated depreciation', '', '2018-07-20 15:23:48', 1, '', '0', '2019-07-20 13:17:21', '1600', ''),
(57, '351', '1', '9', 'Capital ', '', '2018-07-20 15:43:54', 1, '', '0', '2019-07-20 14:18:04', '1800', ''),
(58, '416', '1', '29', 'Office purchases', '', '2018-07-20 16:02:41', 5, '', '0', '2019-10-16 17:53:18', '1850', ''),
(59, '2', '1', '8', 'stock of raw materials', '', '2018-07-20 16:04:29', 1, '', '0', '2018-07-20 16:07:35pm', '1860', 'KES'),
(63, '351', '1', '14', 'Loan payable', '', '2018-07-23 12:06:08', 2, '', '0', '2019-07-20 14:11:32', '2000', ''),
(64, '351', '1', '14', 'Dividends payable', '', '2018-07-23 12:33:51', 2, '', '0', '2019-07-20 15:08:15', '2010', '1'),
(65, '2', '1', '14', 'Income tax payable', '', '2018-07-23 12:35:15', 2, '', '0', '2018-07-23 12:36:09pm', '2020', 'KES'),
(66, '351', '1', '14', 'Accrued Expenses Payable ', '', '2018-07-23 12:36:09', 2, '', '0', '2019-07-20 13:33:39', '2030', '1'),
(67, '351', '1', '14', 'Payroll Liabilities', '', '2018-07-23 12:37:11', 2, '', '0', '2019-07-20 13:24:33', '2040', ''),
(68, '351', '1', '14', 'Current tax liability', '', '2018-07-23 12:37:58', 2, '', '0', '2019-07-20 15:10:18', '2050', '1'),
(69, '1', '1', '14', 'Customer Deposits ', '', '2018-07-23 12:38:55 ', 2, '', '0', '2024-02-01 06:08:04', '2060', ''),
(70, '351', '1', '14', 'Insurance payable', '', '2018-07-23 12:39:33', 2, '', '0', '2019-07-20 15:12:04', '2070', ''),
(72, '351', '1', '14', 'Sales & services tax payable', '', '2018-07-23 12:40:58', 2, '', '0', '2019-07-20 15:14:57', '2090', ''),
(74, '351', '1', '14', 'Bank Overdraft', '', '2018-07-23 12:43:29', 2, '', '0', '2019-07-20 13:52:34', '2110', '1'),
(75, '351', '1', '14', 'Current portion of obligations under finance leases', '', '2018-07-23 12:44:39', 2, '', '0', '2019-07-20 15:19:30', '2120', ''),
(76, '351', '1', '15', 'Long term debt', '', '2018-07-23 12:57:42', 2, '', '0', '2019-07-20 15:16:19', '2500', ''),
(78, '351', '1', '15', 'Notes payable', '', '2018-07-23 13:00:31', 2, '', '0', '2019-07-20 13:58:01', '2510', ''),
(79, '351', '1', '15', 'Liabilities related to assets held for sale', '', '2018-07-23 13:01:58', 2, '', '0', '2019-07-20 15:28:14', '2520', '1'),
(80, '2', '1', '15', 'shareholder notes payable', '', '2018-07-23 13:02:46', 2, '', '0', '2018-07-23 13:04:38pm', '2530', 'KES'),
(81, '351', '1', '15', 'Accrued non-current liabilities', '', '2018-07-23 13:04:38', 2, '', '0', '2019-07-22 09:45:51', '2540', ''),
(82, '2', '1', '15', 'accrued holiday payable', '', '2018-07-23 13:15:07', 2, '', '0', '2018-07-23 13:19:53pm', '2550', 'KES'),
(83, '2', '1', '26', 'ordinary shares', '', '2018-07-23 13:54:16', 3, '', '0', '2018-07-23 13:55:37pm', '3000', 'KES'),
(84, '1', '1', '26', 'opening balance Equity', '', '2018-07-23 13:55:37', 3, '', '-50000', '2020-05-09 20:15:00', '3010', ''),
(85, '2', '1', '26', 'partner contributions', '', '2018-07-23 13:56:29', 3, '', '0', '2018-07-23 13:57:14pm', '3020', 'KES'),
(86, '2', '1', '26', 'share capital', '', '2018-07-23 13:57:15', 3, '', '0', '2018-07-23 13:59:17pm', '3030', 'KES'),
(87, '2', '1', '26', 'capital stock', '', '2018-07-23 13:59:18', 3, '', '0', '2018-07-23 14:00:06pm', '3040', 'KES'),
(89, '351', '1', '26', 'Dividend disbursed', '', '2018-07-23 14:00:07', 3, '', '0', '2019-07-22 09:44:29', '3050', ''),
(90, '2', '1', '26', 'other comprehensive income', '', '2018-07-23 14:05:14', 3, '', '0', '2018-07-23 14:06:04pm', '3060', 'KES'),
(91, '2', '1', '26', 'retained earnings', '', '2018-07-23 14:06:06', 3, '', '0', '2018-07-23 14:06:41pm', '3070', 'KES'),
(92, '2', '1', '26', 'paid in capital', '', '2018-07-23 14:06:42', 3, '', '0', '2018-07-23 14:08:06pm', '3080', 'KES'),
(93, '2', '1', '26', 'equity in earnings of subsidiaries', '', '2018-07-23 14:08:07', 3, '', '0', '2018-07-23 14:09:00pm', '3090', 'KES'),
(94, '351', '1', '27', 'Sales', '', '2018-06-01', 4, '', '0', '2019-07-23 11:30:51', '4000', ''),
(95, '351', '1', '27', 'Maintainance/Training fees', '94', '2018-07-23 14:09:38', 4, '', '0', '2019-07-20 15:53:04', '4010', ''),
(97, '351', '1', '30', 'expenses included in valuation', '', '2018-06-01 ', 5, '', '0', '2019-07-23 11:33:52', '5010', ''),
(98, '351', '1', '30', 'stock adjustment', '', '2018-07-23 14:27:39', 5, '', '0', '2019-07-20 17:25:59', '5020', ''),
(99, '1', '1', '8', 'Cost of Good sold', '', '2018-07-01', 5, '', '0', '2020-05-11 09:26:16', '5500', ''),
(100, '351', '1', '29', 'Transport', '', '2018-06-01', 5, '', '0', '2019-07-23 11:27:46', '5510', ''),
(101, '351', '1', '29', 'Rent Expenses', '', '2018-07-23 14:33:51', 5, '', '0', '2019-07-20 17:40:22', '5520', ''),
(102, '351', '1', '29', 'Utilities', '', '2018-07-23 14:34:24', 5, '', '0', '2019-07-20 17:42:59', '5530', '1'),
(103, '351', '1', '29', 'Advertisements', '', '2018-07-23 14:34:52', 5, '', '0', '2019-07-20 17:47:48', '5540', '1'),
(104, '351', '1', '29', 'Salary Costs', '', '2018-07-23 14:35:41', 5, '', '50000', '2019-07-20 20:26:30', '5550', ''),
(105, '1', '1', '29', 'Staff Costs', '', '2020-07-23 14:36:42', 5, '', '0', '2020-06-30 21:02:43', '5560', '1'),
(106, '351', '1', '29', 'Staff Uniforms', '105', '2018-07-23 14:37:26', 5, '', '0', '2019-07-20 20:43:01', '5561', '1'),
(107, '351', '1', '29', 'Staff Welfare ', '105', '2018-07-23 14:38:50', 5, '', '0', '2019-07-20 20:47:45', '5562', '1'),
(114, '351', '1', '29', 'Training Fees', '', '2018-07-23 14:46:18', 5, '', '0', '2019-07-20 21:00:54', '5650', '1'),
(115, '351', '1', '29', 'Marketing expenses', '', '2018-07-23 14:47:47', 5, '', '0', '2019-07-20 20:59:00', '5660', ''),
(118, '351', '1', '29', 'Bid Bond Charges', '120', '2018-07-23 14:51:10', 5, '', '0', '2019-07-20 21:51:57', '5711', '1'),
(119, '351', '1', '29', 'Bank Service Charges ', '', '2018-07-23 14:54:26', 5, '', '0', '2019-07-20 21:24:05', '5700', '1'),
(120, '351', '1', '29', 'Tender expenses', '', '2018-07-23 14:55:12', 5, '', '0', '2019-07-20 21:49:11', '5710', ''),
(122, '351', '1', '29', 'Outsourced Printing & Scanning', '', '2018-07-23 15:02:34', 5, '', '0', '2019-07-20 21:55:42', '5730', ''),
(123, '351', '1', '30', 'Commission on sales', '', '2018-07-23 15:03:42', 5, '', '0', '2019-07-20 21:56:36', '5740', '1'),
(124, '351', '1', '29', 'Accomodation', '', '2018-07-23 15:04:46', 5, '', '0', '2019-07-20 21:58:04', '5750', ''),
(125, '351', '1', '29', 'Professional /Legal expenses', '', '2018-07-23 15:05:55', 5, '', '0', '2019-07-20 22:28:51', '5760', '1'),
(126, '351', '1', '28', 'Postage & Delivery', '', '2018-07-23 15:06:59', 4, '', '0', '2019-07-20 22:00:51', '5770', '1'),
(127, '1', '1', '29', 'Painting', '', '2018-07-23 15:07:48 ', 5, '', '0', '2024-02-26 12:40:36', '5780', ''),
(128, '351', '1', '29', 'Depreciation Expense', '', '2018-07-23 15:08:24', 5, '', '0', '2019-07-20 22:03:48', '5790', ''),
(129, '351', '1', '29', 'Miscellaneous', '', '2018-07-23 15:09:39', 5, '', '0', '2019-07-20 22:05:47', '5800', ''),
(130, '351', '1', '27', 'Point of sale', '94', '2018-06-01 ', 4, '', '0', '2019-08-08 09:12:19', '4020', ''),
(131, '351', '1', '27', 'Bulk Sms', '94', '2018-07-23 15:12:25', 4, '', '0', '2019-07-20 15:56:23', '4030', '1'),
(132, '351', '1', '27', 'property management System', '94', '2018-07-23 15:13:09', 4, '', '0', '2019-07-20 16:16:00', '4040', '1'),
(133, '351', '1', '27', 'Biometric system', '94', '2018-07-23 15:13:41', 4, '', '2393.5', '2019-07-20 16:14:44', '4050', '1'),
(134, '351', '1', '27', 'school management System', '94', '2018-07-23 15:14:35', 4, '', '0', '2019-07-20 16:17:38', '4060', '1'),
(135, '351', '1', '27', 'Hospital management System', '94', '2018-07-23 15:15:15', 4, '', '0', '2019-07-20 16:19:26', '4070', ''),
(136, '351', '1', '27', 'Website Development', '94', '2018-07-23 15:16:03', 4, '', '0', '2019-07-20 16:25:53', '4080', '1'),
(137, '1', '1', '27', 'Vehicle Loan', '94', '2018-07-23 15:16:38 ', 4, '', '2000000', '2023-05-27 12:46:29', '4090', ''),
(139, '351', '1', '27', 'Hardware', '94', '2018-07-23 15:18:10', 4, '', '0', '2019-07-20 16:49:09', '4110', '1'),
(140, '351', '1', '27', 'Graphic Design', '94', '2018-07-23 15:18:56', 4, '', '0', '2019-07-20 16:50:40', '4120', '1'),
(141, '351', '1', '27', 'Thermal rolls', '94', '2018-07-23 15:19:38', 4, '', '0', '2019-07-20 16:54:33', '4130', '1'),
(143, '479', '1', '1', 'Paybill', '', '2018-07-26 12:58:21', 1, '', '-6666664999', '2019-01-18 17:14:27', '1020', '1'),
(144, '351', '1', '14', 'Account payable', '', '2018-06-01', 2, '', '0', '2019-07-23 11:29:59', '2130', ''),
(148, '351', '1', '1', 'Director''s Account', '', '2018-06-01', 1, '', '6000', '2019-08-22 08:43:26', '1040', '1'),
(151, '351', '1', '8', 'Hardware', '58', '2018-10-30 09:48:11', 5, '', '0', '2019-09-04 10:25:47', '1851', '1'),
(152, '351', '1', '27', 'Labour Fees', '94', '2018-11-01 12:09:21', 4, '', '0', '2019-07-20 16:57:21', '4160', '1'),
(154, '351', '1', '29', 'Supplies', '156', '2018-11-05 16:43:21', 5, '', '0', '2019-07-18 14:43:13', '5900', '1'),
(155, '1', '1', '29', 'Branding', '156', '2018-11-05 16:46:57 ', 5, '', '0', '2024-02-26 12:40:51', '5910', ''),
(156, '351', '1', '29', 'Office Expenses', '', '2018-11-05 16:47:29', 5, '', '0', '2019-07-18 14:15:56', '5920', '1'),
(157, '351', '1', '27', 'Management Information System', '94', '2019-01-31 16:43:09', 4, '', '0', '2019-07-20 16:58:11', '4170', '1'),
(158, '351', '1', '29', 'Mpesa  charges', '', '2019-05-25 12:20:26', 5, '', '0', '2019-07-20 22:26:12', '5930', '1'),
(159, '351', '1', '1', 'Petty cash', '', '2019-06-01', 1, '', '-577', '2019-08-22 15:25:29', '1050', '1'),
(160, '351', '1', '29', 'Discount Allowed', '', '2019-07-08 ', 5, '', '0', '2019-07-20 23:17:13', '5030', '1'),
(161, '351', '1', '6', 'Withholding Tax', '', '2019-07-20 13:24:34', 1, '', '0', '2019-07-20 13:28:18', '1210', ''),
(162, '351', '1', '6', 'Discount Recieved', '', '2019-07-20 13:28:19', 1, '', '0', '2019-07-20 13:29:38', '1220', '1'),
(163, '351', '1', '6', 'Accrued Income Receivable ', '', '2019-07-20 13:33:40', 1, '', '0', '2019-07-20 13:36:05', '1230', '1'),
(164, '351', '1', '14', 'NHIF', '67', '2019-07-20 14:03:52', 2, '', '0', '2019-07-20 14:06:21', '2041', '1'),
(165, '351', '1', '14', 'NSSF', '67', '2019-07-20 14:06:22', 2, '', '0', '2019-07-20 14:07:21', '2042', ''),
(166, '351', '1', '14', 'PAYE', '67', '2019-07-20 14:07:21', 2, '', '0', '2019-07-20 14:08:21', '2043', '1'),
(167, '351', '1', '14', 'Net Pay', '', '2019-07-20 14:08:21', 2, '', '0', '2019-07-20 14:10:20', '2045', ''),
(168, '1', '1', '27', 'Donations', '131', '2019-07-20 15:56:24 ', 4, '', '140800', '2023-03-08 12:44:25', '4031', '1'),
(169, '351', '1', '27', 'Bulk Sms Branding', '131', '2019-07-20 16:07:38', 4, '', '0', '2019-07-20 16:09:27', '4032', ''),
(170, '1', '1', '27', 'Bulk Sms Recharge', '131', '2019-07-20 16:09:28', 4, '', '0', '2019-10-26 13:53:32', '4033', '1'),
(171, '351', '1', '27', 'Hotel Accommodation System', '94', '2019-07-20 16:19:27', 4, '', '0', '2019-07-20 16:23:52', '4100', '1'),
(172, '351', '1', '27', 'Miscellaneous Income', '94', '2019-07-20 16:58:12', 4, '', '0', '2019-07-20 17:00:06', '4180', '1'),
(173, '351', '1', '27', 'Mpesa Intergration', '94', '2019-07-20 17:00:07', 4, '', '0', '2019-07-20 17:02:30', '4190', '1'),
(174, '351', '1', '27', 'Biometric Bulk Sms Intergration', '94', '2019-07-20 17:02:31', 4, '', '0', '2019-07-20 17:38:53', '4195', ''),
(175, '351', '1', '8', 'Thermal rolls', '58', '2019-07-20 17:32:58', 5, '', '0', '2019-09-04 10:26:06', '1852', '1'),
(176, '351', '1', '29', 'Electricity', '102', '2019-07-20 17:42:59', 5, '', '0', '2019-07-20 17:44:30', '5531', '1'),
(177, '351', '1', '29', 'Water', '102', '2019-07-20 17:44:31', 5, '', '0', '2019-07-20 17:45:22', '5532', '1'),
(178, '351', '1', '29', 'Wages/Overtime', '104', '2019-07-20 20:26:31', 5, '', '0', '2019-07-20 20:29:49', '5551', '1'),
(179, '1', '1', '29', 'Staff Airtime', '105', '2020-07-20 20:47:45', 5, '', '0', '2020-06-30 21:03:42', '5563', '1'),
(180, '1', '1', '29', 'Medical Expenses ', '105', '2019-07-20 20:50:12', 5, '', '0', '2020-06-30 22:16:41', '5566', '1'),
(181, '351', '1', '29', 'NSSF-Employer', '105', '2019-07-20 20:51:37', 5, '', '0', '2019-07-20 20:53:29', '5565', '1'),
(182, '351', '1', '29', 'Meal Expenses ', '', '2019-07-20 22:28:52', 5, '', '0', '2019-07-20 22:48:43', '5250', '1'),
(183, '351', '1', '29', 'Refunds', '', '2019-07-20 22:48:44', 5, '', '0', '2019-07-20 22:49:44', '5240', '1'),
(184, '351', '1', '30', 'Loss on Disposal of fixed Assets ', '', '2019-07-20 22:49:45', 5, '', '0', '2019-07-20 22:53:18', '5220', '1'),
(185, '351', '1', '29', 'Internet Expenses ', '', '2019-07-20 22:53:19', 5, '', '0', '2019-07-20 22:56:13', '5200', ''),
(186, '351', '1', '29', 'Telephone  Expenses ', '', '2019-07-20 22:56:14', 5, '', '0', '2019-07-20 22:57:42', '5210', '1'),
(187, '351', '1', '29', 'Dues & Subscriptions', '', '2019-07-20 22:57:43', 5, '', '0', '2019-07-20 23:02:13', '5180', '1'),
(188, '351', '1', '29', 'Donations', '', '2019-07-20 23:02:14', 5, '', '0', '2019-07-20 23:03:34', '5170', '1'),
(189, '351', '1', '29', 'Chaitable Donations', '188', '2019-07-20 23:03:35', 5, '', '0', '2019-07-20 23:04:51', '5171', '1'),
(190, '351', '1', '29', 'Non-Charitable Donations', '188', '2019-07-20 23:04:52', 5, '', '0', '2019-07-20 23:08:00', '5172', '1'),
(191, '351', '1', '29', 'Business Licences & Permits ', '', '2019-07-20 23:08:01', 5, '', '0', '2019-07-20 23:09:26', '5960', '1'),
(192, '351', '1', '29', 'Bad debts written off', '', '2019-07-20 23:09:27', 5, '', '0', '2019-07-20 23:10:42', '5950', '1'),
(193, '351', '1', '29', 'Bad debts ', '', '2019-07-20 23:10:43', 5, '', '0', '2019-07-20 23:11:35', '5940', '1'),
(194, '351', '1', '27', 'suspense Income A/C', '', '2019-07-22 22:00:00', 4, '', '2393.5', '2019-07-27 17:14:05', '4050', '1'),
(195, '351', '1', '29', 'suspense Expense A/C', '', '2019-07-22 22:05:38', 5, '', '0', '2019-07-27 17:15:19', '5040', '1'),
(196, '351', '1', '34', 'Opening Balance', '', '2018-06-01', 4, '', '0', '2019-07-30 09:29:55', '1060', '1'),
(197, '351', '1', '29', 'CCTV Installation fee', '', '2018-06-01', 5, '', '0', '2019-08-21 10:15:30', '5190', '1'),
(198, '351', '1', '29', 'Director''s Expenses', '', '2018-06-01', 5, '', '0', '2019-08-23 14:53:11', '5720', '1'),
(199, '351', '1', '29', 'Staff Allowance', '105', '2019-06-01 ', 5, '', '-521', '2019-10-01 15:22:06', '5564', '1'),
(200, '1', '1', '1', 'Witholding Account', '', '2019-10-01 11:49:23 ', 1, '', '6666659825.5', '2021-11-25 16:26:21', '1035', '1'),
(201, '1', '1', '7', 'LAPTOPS', '', '2020-09-17 09:30:28', 1, '', '0', '2020-09-17 09:31:53', '1501', ''),
(202, '1', '1', '7', 'Amblifier', '', '2020-09-22 10:17:58', 1, '', '0', '2020-09-22 10:19:53', '1502', ''),
(205, '1', '1', '1', 'Bonga points Account', '', '2021-03-08 15:21:56 ', 1, '', '2000', '2021-09-07 06:35:52', '1011', '1'),
(206, '1', '1', '29', 'CARE PURCHASE', '', '2021-07-19 15:02:30  ', 5, '', '0', '2023-05-27 12:48:58', '5171', ''),
(207, '1', '1', '27', 'RENT COLLECTED', '', '2021-09-17 06:42:46', 4, '', '0', '2021-09-17 06:47:13', '4161', '1'),
(208, '1', '1', '27', 'DEPOSIT COLLECTED', '', '2021-09-17 06:14:47', 4, '', '0', '2021-09-17 06:48:29', '4162', '1'),
(209, '1', '1', '27', 'WATER/POWER DEPOSIT', '', '2021-09-17 06:30:48', 4, '', '0', '2021-09-17 06:48:46', '4163', ''),
(210, '1', '1', '27', 'PENALTY', '', '2021-09-17 06:47:48', 4, '', '0', '2021-09-17 06:49:02', '4164', ''),
(211, '1', '1', '27', 'WATER', '', '2021-09-17 06:04:49', 4, '', '0', '2021-09-17 06:49:27', '4165', '1'),
(212, '1', '1', '27', 'PARTIAL PAYMENT', '', '2021-09-17 06:29:49', 4, '', '0', '2021-09-17 06:49:47', '4166', '1'),
(213, '1', '1', '29', 'GARBAGE', '', '2021-09-17 06:49:49 ', 5, '', '0', '2024-05-06 05:36:16', '4167', ''),
(214, '1', '1', '27', 'DAMAGES', '', '2021-09-17 06:09:50', 4, '', '0', '2021-09-17 06:50:31', '4168', '1'),
(215, '1', '1', '27', 'AGREEMENT FORM', '', '2021-09-17 06:32:50', 4, '', '0', '2021-09-17 06:50:50', '4169', '1'),
(216, '1', '1', '27', 'POWER', '', '2021-09-17 06:51:50', 4, '', '4000', '2021-09-17 06:51:16', '4171', '1'),
(217, '1', '1', '27', 'SEWAGE', '', '2021-09-17 06:17:51', 4, '', '-47000', '2021-09-17 06:51:44', '4172', '1'),
(218, '1', '1', '27', 'BED ONLY', '', '2021-09-17 06:45:51', 4, '', '7000', '2021-09-17 06:52:22', '4173', '1'),
(219, '1', '1', '27', 'BED AND BREAKFAST', '', '2021-09-17 06:24:52', 4, '', '-55555', '2021-09-17 06:52:42', '4174', '1'),
(220, '1', '1', '28', 'Foreign Exchange gain/loss', '', '2023-07-30 07:48:19', 4, '', '0', '2023-07-30 07:21:27', '4001', '5');

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

--
-- Table structure for table `glfiscalyear`
--

CREATE TABLE IF NOT EXISTS `glfiscalyear` (
  `id` int(40) NOT NULL,
  `name` varchar(60) NOT NULL,
  `status` varchar(20) NOT NULL DEFAULT 'active',
  `startdate` datetime NOT NULL,
  `enddate` datetime NOT NULL,
  `companyid` int(11) NOT NULL,
  `userid` int(11) NOT NULL,
  `createdate` varchar(30) NOT NULL,
  `opening` decimal(10,2) NOT NULL,
  `closing` decimal(10,2) NOT NULL,
  `priority` int(11) NOT NULL,
  `number` varchar(50) NOT NULL,
  `branchid` int(11) NOT NULL DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `glgroups`
--

CREATE TABLE IF NOT EXISTS `glgroups` (
  `id` int(30) NOT NULL,
  `userid` varchar(50) NOT NULL,
  `companyid` varchar(50) NOT NULL,
  `accounttype` varchar(50) NOT NULL,
  `accountname` varchar(80) NOT NULL,
  `groupname` bigint(50) NOT NULL DEFAULT '1',
  `openingdate` varchar(50) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=35 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `glgroups`
--

INSERT INTO `glgroups` (`id`, `userid`, `companyid`, `accounttype`, `accountname`, `groupname`, `openingdate`) VALUES
(1, '2', '1', '1', 'Banks', 0, ''),
(6, '2', '1', '1', 'Current asset', 0, ''),
(7, '2', '1', '1', 'Fixed assets', 0, ''),
(8, '2', '1', '5', 'Cost of Good Sold', 0, ''),
(9, '2', '1', '1', 'Capital asset', 0, ''),
(14, '2', '1', '2', 'Current liabilities', 0, ''),
(15, '2', '1', '2', 'Longterm liabilities', 0, ''),
(26, '2', '1', '3', 'Equity', 0, ''),
(27, '2', '1', '4', 'Income', 0, ''),
(28, '2', '1', '4', 'Other income', 0, ''),
(29, '2', '1', '5', 'Expenses', 0, ''),
(30, '2', '1', '5', 'Other expenses', 0, ''),
(31, '2', '1', '2', 'Share Capital', 0, ''),
(32, '2', '1', '2', 'Retained Earnings', 0, ''),
(33, '2', '1', '4', 'Cash', 1, ''),
(34, '2', '1', '4', 'Equity', 1, '');

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

--
-- Table structure for table `grouping`
--

CREATE TABLE IF NOT EXISTS `grouping` (
  `id` int(50) NOT NULL,
  `memberid` varchar(50) NOT NULL,
  `userid` varchar(50) NOT NULL,
  `createdate` varchar(50) NOT NULL,
  `user` varchar(50) NOT NULL,
  `status` varchar(50) NOT NULL DEFAULT 'active',
  `updatedat` varchar(50) NOT NULL,
  `categoryid` varchar(50) NOT NULL,
  `companyid` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `groupleavedays`
--

CREATE TABLE IF NOT EXISTS `groupleavedays` (
  `id` int(11) NOT NULL,
  `group` int(11) DEFAULT NULL,
  `employeeno` int(11) DEFAULT NULL,
  `overtime` int(11) DEFAULT NULL COMMENT 'Link to an overtime request',
  `startdate` date DEFAULT NULL,
  `enddate` date DEFAULT NULL,
  `type` int(11) NOT NULL,
  `days` decimal(10,2) NOT NULL,
  `description` text COMMENT 'Description of a credit / debit',
  `userid` int(30) NOT NULL,
  `createdate` varchar(30) NOT NULL,
  `companyid` int(11) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8 COMMENT='Add or sub entitlement for employees or contracts';

--
-- Dumping data for table `groupleavedays`
--

INSERT INTO `groupleavedays` (`id`, `group`, `employeeno`, `overtime`, `startdate`, `enddate`, `type`, `days`, `description`, `userid`, `createdate`, `companyid`) VALUES
(1, NULL, 1, NULL, '2023-02-15', '2023-04-25', 1, '90.00', '', 1, '2023-02-15 12:36:46pm', 0),
(14, NULL, 6, NULL, '2023-01-27', '2023-07-11', 2, '9.49', '', 1, '2023-07-11 07:05:18pm', 0),
(15, NULL, 12, NULL, '2023-08-01', '2023-12-31', 2, '21.00', '', 1, '2023-08-31 03:04:22am', 0),
(16, NULL, 1, NULL, '2019-06-11', '2023-09-02', 2, '67.83', '', 1, '2023-09-02 08:10:55am', 0);

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

--
-- Table structure for table `house`
--

CREATE TABLE IF NOT EXISTS `house` (
  `id` int(100) NOT NULL,
  `houseno` varchar(100) NOT NULL,
  `type` varchar(40) NOT NULL,
  `description` text NOT NULL,
  `plotno` varchar(100) NOT NULL,
  `cost` varchar(100) NOT NULL,
  `status` varchar(100) NOT NULL,
  `createdat` varchar(100) NOT NULL,
  `updatedat` varchar(100) NOT NULL,
  `userid` varchar(100) NOT NULL,
  `floor` varchar(100) NOT NULL,
  `companyid` varchar(100) NOT NULL,
  `vat` decimal(10,2) NOT NULL,
  `commission` decimal(10,2) NOT NULL,
  `priority` int(11) NOT NULL,
  `category` varchar(30) NOT NULL DEFAULT 'rental',
  `branchid` int(30) NOT NULL DEFAULT '1',
  `vat2` decimal(10,2) NOT NULL,
  `paymentdetails` text NOT NULL,
  `meternumber` text NOT NULL,
  `utility` varchar(20) DEFAULT 'yes',
  `waterno` varchar(30) NOT NULL,
  `waterrate` varchar(30) NOT NULL,
  `watercharge` varchar(30) NOT NULL,
  `watermonth` varchar(30) NOT NULL,
  `wateryear` varchar(30) NOT NULL,
  `electricityno` varchar(30) NOT NULL,
  `electricityrate` varchar(30) NOT NULL,
  `electricitycharge` varchar(30) NOT NULL,
  `electricitymonth` varchar(30) NOT NULL,
  `electricityyear` varchar(30) NOT NULL,
  `bowholeno` varchar(30) NOT NULL,
  `bowholerate` varchar(30) NOT NULL,
  `bowholecharge` varchar(30) NOT NULL,
  `bowholemonth` varchar(30) NOT NULL,
  `bowholeyear` varchar(30) NOT NULL,
  `beds` varchar(5) DEFAULT NULL,
  `bedstatus` varchar(20) NOT NULL DEFAULT 'no'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `housekeeping`
--

CREATE TABLE IF NOT EXISTS `housekeeping` (
  `id` int(11) NOT NULL,
  `name` varchar(50) NOT NULL,
  `description` text NOT NULL,
  `createdate` varchar(50) NOT NULL,
  `status` varchar(50) NOT NULL DEFAULT 'active',
  `userid` varchar(50) NOT NULL,
  `updatedate` varchar(50) NOT NULL,
  `companyid` varchar(100) NOT NULL,
  `houseno` varchar(30) NOT NULL,
  `plotno` varchar(20) NOT NULL DEFAULT '0',
  `approvedby` varchar(20) NOT NULL,
  `comments` text NOT NULL,
  `approval` varchar(30) NOT NULL DEFAULT 'new',
  `exactdate` varchar(30) NOT NULL,
  `type` text NOT NULL,
  `counter` int(11) NOT NULL DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `insurance`
--

CREATE TABLE IF NOT EXISTS `insurance` (
  `id` int(11) NOT NULL,
  `name` text NOT NULL,
  `code` varchar(50) NOT NULL,
  `description` text NOT NULL,
  `status` varchar(20) NOT NULL,
  `rate` varchar(50) NOT NULL,
  `createdate` varchar(50) NOT NULL,
  `branchid` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `invoice`
--

CREATE TABLE IF NOT EXISTS `invoice` (
  `id` int(40) NOT NULL,
  `plotno` varchar(60) NOT NULL,
  `houseno` varchar(40) NOT NULL,
  `tenantid` varchar(100) NOT NULL,
  `amount` decimal(10,2) NOT NULL,
  `type` varchar(100) NOT NULL,
  `description` varchar(100) NOT NULL,
  `month` varchar(100) NOT NULL,
  `year` varchar(100) NOT NULL,
  `createdat` varchar(100) NOT NULL,
  `updatedat` varchar(100) NOT NULL,
  `userid` varchar(100) NOT NULL,
  `duedate` varchar(40) NOT NULL,
  `paymentstatus` varchar(40) NOT NULL,
  `paymentmode` varchar(40) NOT NULL,
  `paymentcode` varchar(100) NOT NULL,
  `transactioncode` varchar(100) NOT NULL,
  `approval` varchar(30) NOT NULL DEFAULT 'new',
  `approvedby` varchar(60) NOT NULL,
  `approvaldate` varchar(60) NOT NULL,
  `totalamount` varchar(40) NOT NULL,
  `paid` decimal(10,2) NOT NULL,
  `balance` varchar(40) NOT NULL DEFAULT '0',
  `companyid` varchar(100) NOT NULL DEFAULT '1',
  `commission` decimal(10,2) NOT NULL,
  `vat` decimal(10,2) NOT NULL,
  `paymentdate` varchar(30) NOT NULL,
  `order` int(11) NOT NULL,
  `priority` int(11) NOT NULL,
  `coparent` decimal(10,2) NOT NULL,
  `coparentcommission` decimal(10,2) NOT NULL,
  `coparentvat` decimal(10,2) NOT NULL,
  `coparentdate` varchar(30) NOT NULL,
  `coparentuserid` int(11) NOT NULL,
  `chargeid` varchar(30) NOT NULL,
  `branchid` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `itemclassification`
--

CREATE TABLE IF NOT EXISTS `itemclassification` (
  `id` int(11) NOT NULL,
  `name` text NOT NULL,
  `itm_class_code` varchar(100) DEFAULT NULL,
  `itm_class_level` varchar(50) NOT NULL,
  `tax_type_code` varchar(50) DEFAULT NULL,
  `status` varchar(50) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=1001 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `itemclassification`
--

INSERT INTO `itemclassification` (`id`, `name`, `itm_class_code`, `itm_class_level`, `tax_type_code`, `status`) VALUES
(1, 'VAT Act', '99000000', '1', NULL, 'Y'),
(2, 'Goods', '99010000', '2', NULL, 'Y'),
(3, 'Exempt Goods (Paragraph 1 - 99)', '99011000', '3', NULL, 'Y'),
(4, 'Bovine Semen of tariff number 05111000', '99011001', '4', NULL, 'Y'),
(5, 'Fish eggs and roes of tariff number 0511990110', '99011002', '4', NULL, 'Y'),
(6, 'Animal semen other than of bovine of tariff number 0511999010', '99011003', '4', NULL, 'Y'),
(7, 'Soya beans whether or not broken of tariff numbers 12011000 and 12019000', '99011004', '4', NULL, 'Y'),
(8, 'Groundnuts not roasted or otherwise cooked In shell of tariff number 12024100', '99011005', '4', NULL, 'Y'),
(9, 'Groundnuts not roasted or otherwise cooked Shelled whether or not broken of tariff number 12024200', '99011006', '4', NULL, 'Y'),
(10, 'Copra of tariff number 12030000', '99011007', '4', NULL, 'Y'),
(11, 'Linseed whether or not broken of tariff number 12040000', '99011008', '4', NULL, 'Y'),
(12, 'Low erucic acid rape or colza seed of tariff number 12051000', '99011009', '4', NULL, 'Y'),
(13, 'Other rape or colza seed of tariff number  12059000', '99011010', '4', NULL, 'Y'),
(14, 'Sunflower seeds whether or not broken of tariff number 12060000', '99011011', '4', NULL, 'Y'),
(15, 'Cotton seeds  whether or not broken  Seed of tariff numbers 12072100 and 12072900', '99011012', '4', NULL, 'Y'),
(16, 'Sesamum seeds whether or not broken of tariff number 12074000', '99011013', '4', NULL, 'Y'),
(17, 'Mustard seeds whether or  not broken of tariff number 12075000', '99011014', '4', NULL, 'Y'),
(18, 'Safflower seeds  whether or  not broken 12076000', '99011015', '4', NULL, 'Y'),
(19, 'Other oil seeds and oleaginous fruits whether or not broken of tariff number 12079900', '99011016', '4', NULL, 'Y'),
(20, 'Sugarcane of tariff number 1212990300;Sugarcane of tariff number 1212990300;Unprocessed produce of plant species camellia sinensis', '99011017', '4', NULL, 'Y'),
(21, 'Live animals of chapter 1', '99011018', '4', NULL, 'Y'),
(22, 'Meat and edible offals of chapter 2 excluding those of heading 0209 and 0210', '99011019', '4', NULL, 'Y'),
(23, 'Fish and crustaceans molluscs and other aquatic invertebrates of chapter 3 excluding those of tariff heading 0305 0306 and 0307', '99011020', '4', NULL, 'Y'),
(24, 'Unprocessed milk', '99011021', '4', NULL, 'Y'),
(25, 'Fresh birds eggs in shell', '99011022', '4', NULL, 'Y'),
(26, 'Edible Vegetables and certain roots and tubers of Chapter 7 excluding those of tariff heading 0711', '99011023', '4', NULL, 'Y'),
(27, 'Edible fruits and nuts peal of citrus fruits or melon of chapter 8 excluding those of tariff heading 0811 0812 0813 and 0814', '99011024', '4', NULL, 'Y'),
(28, 'Cereals of chapter 10 excluding seeds of tariff heading 1002 ', '99011025', '4', NULL, 'Y'),
(29, 'Syringes with or without needles of tarrif no 90183100', '99011032', '4', NULL, 'Y'),
(30, 'Tubular metal needles and needles for sutures of tariff number 90183200', '99011035', '4', NULL, 'Y'),
(31, 'Catheters cannulae and the like of tariff number 90183900', '99011036', '4', NULL, 'Y'),
(32, 'Blood bags', '99011037', '4', NULL, 'Y'),
(33, 'Blood and fluid infusion sets', '99011038', '4', NULL, 'Y'),
(34, 'Materials articles and equipment including motor vehicles listed under the first schedule paragraph 39 of the VAT Act.', '99011039', '4', NULL, 'Y'),
(35, 'Madeup fishing nets of manmade textile material of tariff number 56081100', '99011040', '4', NULL, 'Y'),
(36, 'Mosquito nets of tariff No 6304990110', '99011041', '4', NULL, 'Y'),
(37, 'Materials waste residues and by products whether or not in the form of pellets and preparations of a kind used in animal feeding of tariff numbers as listed in Part 1 of the first schedule of VAT Act 2013', '99011043', '4', NULL, 'Y'),
(38, 'Unprocessed green tea', '99011044', '4', NULL, 'Y'),
(39, 'Inputs or raw materials supplied to solar equipment manufacturers for manufacture of solar equipment or deep cycle sealed batteries which exclusively use or store solar power ', '99011048', '4', NULL, 'Y'),
(40, 'Aircraft parts of heading 8803 excluding parts of goods of heading 8801', '99011049', '4', NULL, 'Y'),
(41, 'Taxable goods imported or purchased for direct and exclusive use in the implementation of official aid funded projects upon approval by the Cabinet Secretary responsible for the National Treasury', '99011051', '4', NULL, 'Y'),
(42, 'Goods imported or purchased locally for use by the local film producers and local filming agents upon recommendation by the Kenya Film Commission subject to approval by CS TNT', '99011054', '4', NULL, 'Y'),
(43, 'Inputs or raw materials locally purchased or imported by manufacturers of agricultural machinery and implements upon approval by the Cabinet Secretary responsible for industrialization', '99011056', '4', NULL, 'Y'),
(44, 'All goods including material supplies equipment machinery and motor vehicles for official use by the Kenya Defence Forces and the National Police Service', '99011057', '4', NULL, 'Y'),
(45, 'Direction finding compasses instruments and appliances for aircraft', '99011058', '4', NULL, 'Y'),
(46, 'Wheat seeds of tariff numbers 10011100 and 1001990100', '99011059', '4', NULL, 'Y'),
(47, 'Taxable goods for direct and exclusive use for the construction of tourism facilities recreational parks of fifty acres or more convention and conference facilities upon recommendation by the Cabinet Secretary responsible for matters relating to recreational parks', '99011062', '4', NULL, 'Y'),
(48, 'Taxable goods equipment and apparatus for the direct and exclusive use for construction of specialized hospitals with a minimum bed capacity of fifty with accommodation facilities upon the recommendation by the Cabinet Secretary responsible for health who shall issue guidelines for the criteria to be used to determine eligibility for the exemption provided that notwithstanding this subparagraph any approval granted by the cabinet Secretary before the commencement thereof in respect of the supply of taxable goods and which is in supply of taxable goods and which is in force at such commencement shall continue to apply of the exempted taxable goods is made in full', '99011063', '4', NULL, 'Y'),
(49, 'Inputs or raw materials locally purchased or imported by manufacturers of clean cook stoves approved by the CS TNT upon recommendation by the CS responsible for energy', '99011066', '4', NULL, 'Y'),
(50, 'Super absorbent polymer SAP of tariff number 39069000', '99011068', '4', NULL, 'Y'),
(51, 'Carrier tissue white 1 ply 14 point 5 GSM 47032100', '99011069', '4', NULL, 'Y'),
(52, 'IP super soft fluff pulp for fluff 310 treated pulp 488 times 125 mm cellose of tariff number 47032100', '99011070', '4', NULL, 'Y'),
(53, 'Perforated PE film 15 to 22 gsm of tariff number 3990219000', '99011071', '4', NULL, 'Y'),
(54, 'Spunbound nonwoven 15 to 25 gsm of tariff number 56031100', '99011072', '4', NULL, 'Y'),
(55, 'Airlid paper with super absorbent polymer 180gsm67 of tariff number 48030000', '99011073', '4', NULL, 'Y'),
(56, 'Airlid paper with super absorbent polymer 80gsm67 of tariff number 48030000', '99011074', '4', NULL, 'Y'),
(57, 'Pressure sensitive adhesive of tariff number 3506990100', '99011077', '4', NULL, 'Y'),
(58, 'Plain polythene filmLPDE of tariff number 399021199010', '99011078', '4', NULL, 'Y'),
(59, 'Plain polythene filmPE of tariff number 399021199010', '99011079', '4', NULL, 'Y'),
(60, 'PE white 25 to 40 gsm release paper of tarrif number 48114900', '99011080', '4', NULL, 'Y'),
(61, 'ADL 25 to 40 gsm of tariff number 56031100', '99011081', '4', NULL, 'Y'),
(62, 'Elasticized side tape of tariff number 54024400', '99011082', '4', NULL, 'Y'),
(63, '12 to 16 gsm spunbound piyropo nonwoven coverstock 12gsm spunbound PP nonwoven SMS hydrophobic leg cuffs of tariff number 56031100', '99011083', '4', NULL, 'Y'),
(64, 'Polymetric elastic 2 over 3 strands of tariff number 3990199010', '99011084', '4', NULL, 'Y'),
(65, 'Any other aircraft spare parts imported by aircraft operators or persons engaged in the business of aircraft maintenance upon recommendation by the competent authority responsible for civil aviation', '99011089', '4', NULL, 'Y'),
(66, 'Inputs for the manufacture of pesticides upon recommendation by the Cabinet Secretary for the time being responsible for matters relating to agriculture', '99011090', '4', NULL, 'Y'),
(67, 'Locally assembled motor vehicles for transportation of tourists purchased before clearance through Customs following conditions as specified in the VAT Act 2013 1st Schedule Section A no9901', '99011091', '4', NULL, 'Y'),
(68, 'The supply of natural water excluding bottled water by a NG, CGor any political subdivision thereof or a person approved by the CS responsible for water development for domestic or for industrial use', '99011095', '4', NULL, 'Y'),
(69, 'Articles of apparel clothing accessories and equipment specially designed for safety or protective purposes for use in registered hospitals and clinics or by CG or LA in firefighting', '99011096', '4', NULL, 'Y'),
(70, 'Goods imported by passengers arriving from places outside Kenya as specified in the VAT Act 2013 First Schedule section A no 99', '99011099', '4', NULL, 'Y'),
(71, 'Exempt Goods (Paragraph 100 - 146)', '99011100', '3', NULL, 'Y'),
(72, 'Alcoholic or non alcoholic beverages supplied to the Kenya Defence Forces Canteen Organization', '99011101', '4', NULL, 'Y'),
(73, 'Hearing aids excluding parts and accessories of tariff Number 90214000', '99011103', '4', NULL, 'Y'),
(74, 'Locally manufactured motherboards', '99011105', '4', NULL, 'Y'),
(75, 'Inputs for the manufacture of motherboards approved by the Cabinet Secretary responsible for information communication technology', '99011106', '4', NULL, 'Y'),
(76, 'Plant machinery and equipment used in the construction of a plastics recycling plant', '99011107', '4', NULL, 'Y'),
(77, 'The supply of maize corn flour cassava flour wheat or meslin flour and maize flour containing cassava flour by more than ten percent in weight provided that this paragra', '99011108', '4', NULL, 'Y'),
(78, 'Goods imported or purchased locally for the direct and exclusive use in the construction of houses under an affordable housing scheme approved by the CS on the recommendation of the CS responsible for matters relating to housing', '99011109', '4', NULL, 'Y'),
(79, 'Musical instruments and other musical equipment imported or purchased locally for exclusive use by educational institutions upon recommendation by the Cabinet Secretary responsible for Education', '99011110', '4', NULL, 'Y'),
(80, 'Maize corn seeds of tariff no 10051000', '99011111', '4', NULL, 'Y'),
(81, 'Taxable good excl. motor vehicle imported or purchased for direct exclusive use in geothermal, oil, mining prospecting, exploration, product sharing as per the Energy Act 2019, Petroleum Act 2019, the Mining Act 2016 upon recommendation by the CS', '99011112', '4', NULL, 'Y'),
(82, 'Specialized equipment for the development and generation of solar and wind energy upon recommendation to the commissioner by the cabinet secretary responsible for matters relating to energy ', '99011113', '4', NULL, 'Y'),
(83, 'Taxable goods supplied to persons that had a contract with the government prior to 25-04-2020 and contract provided for exemption from VAT provided that this exemption shall apply to the unexpired period of contract upon recommendation by CS Energy', '99011114', '4', NULL, 'Y'),
(84, 'Medical ventilators and the inputs for the manufacture of medical ventilators upon recommendation by the cabinet secretary responsible for matters relating to health ', '99011115', '4', NULL, 'Y'),
(85, 'Physiotherapy accessories treadmills for cardiology therapy and treatment of tariff number 9506990100 for use by licensed hospitals upon approval by the cabinet secretary responsible for matters relating to health ', '99011116', '4', NULL, 'Y'),
(86, 'Dexpanthenol of tariff number 33049900 used for medical nappy rash treatment by licensed hospitals upon approval by the cabinet secretary responsible for matters relating to health ', '99011117', '4', NULL, 'Y'),
(87, 'Medicaments of tariff number 30034100 30034200 30034300 30034900 30036000 excluding goods of heading 3002 3005 or 3006 consisting of two or more constituents which have been mixed together for theraputic or prophylactic uses', '99011118', '4', NULL, 'Y'),
(88, 'Diagnostic or laboratory reagents of tariff number 38220000 on a backing prepared diagnostic or laboratory reagents whether or not on a backing other than those of heading 3002 or 3006 certified reference materials upon approval by CS Health ', '99011119', '4', NULL, 'Y'),
(89, 'Electrodiagnostic apparatus of tariff numbers 90181100 90181200 90181300 90181400 90181900 90182000 90189000  upon approval by the cabinet secretary responsible for matters relating to health ', '99011120', '4', NULL, 'Y'),
(90, 'Other instruments and appliances of tariff number 90184100 used in dental sciences dental drill engines whether or not combined on a single base with other dental equipment  upon approval by CS Health', '99011121', '4', NULL, 'Y'),
(91, 'Other instruments and appliances including surgical blades of tariff number 90184900 90185000 90189000 used in dental sciences dental drill engines whether or not combined on a single base with other dental equipment upon approval by CS Health', '99011122', '4', NULL, 'Y'),
(92, 'Ozone therapy Oxygen therapy aerosol therapy artificial respiration or other theraputic respiration apapratus upon approval by CS Health ', '99011123', '4', NULL, 'Y'),
(93, 'Other breathing appliances and gas masks excluding protective masks having neither mechanical parts nor replaceable filters upon approval by CS Health', '99011124', '4', NULL, 'Y'),
(94, 'Artificial teeth and dental fittings of tariff number 90212100 90212900 and artificial parts of the body of tariff number 90213100 90213900 90215000 and 90219000 upon approval by CS Health', '99011125', '4', NULL, 'Y'),
(95, 'Apparatus based on the use of x rays whether or not for medical surgical or dental of tariff numbers 90221200 90221300 90221400 and 90221900 upon approval by CS Health', '99011126', '4', NULL, 'Y'),
(96, 'Apparatus based on the use of alpha beta or gamma radiations whether or not medical surgical or dental of tariff numbers 90222100 90222900 90223000 and 90229000 upon approval by CS Health', '99011127', '4', NULL, 'Y'),
(97, 'Discs tape solid-state nonvolatile storage devices smart cards and other media for the recording of sound or of other phenomena whether or not recorded of tariff number 85238010 but excluding products of chapter 37 software upon approval by CS Health', '99011128', '4', NULL, 'Y'),
(98, 'Management support services', '80161500', '3', NULL, 'Y'),
(99, 'Silk fabrics', '11161500', '3', NULL, 'Y'),
(100, 'Screws', '31161500', '3', NULL, 'Y'),
(101, 'Agricultural machinery for planting and seeding', '21101600', '3', NULL, 'Y'),
(102, 'Amebicides and Trichomonacides and Antiprotozoals', '51101600', '3', NULL, 'Y'),
(103, 'Mechanical engineering', '81101600', '3', NULL, 'Y'),
(104, 'Paving equipment', '22101600', '3', NULL, 'Y'),
(105, 'Integrated circuits', '32101600', '3', NULL, 'Y'),
(106, 'Broadcast advertising', '82101600', '3', NULL, 'Y'),
(107, 'Fire services', '92101600', '3', NULL, 'Y'),
(108, 'Processed and synthetic rubber', '13101600', '3', NULL, 'Y'),
(109, 'Shirts and blouses', '53101600', '3', NULL, 'Y'),
(110, 'Chemicals and fertilizers production', '73101600', '3', NULL, 'Y'),
(111, 'Oil and gas utilities', '83101600', '3', NULL, 'Y'),
(112, 'Political officials', '93101600', '3', NULL, 'Y'),
(113, 'Lifting equipment and accessories', '24101600', '3', NULL, 'Y'),
(114, 'Paper processing machines and accessories', '44101600', '3', NULL, 'Y'),
(115, 'Aid financing', '84101600', '3', NULL, 'Y'),
(116, 'Solid and gel fuels', '15101600', '3', NULL, 'Y'),
(117, 'Product and material transport vehicles', '25101600', '3', NULL, 'Y'),
(118, 'Printing machinery accessories', '45101600', '3', NULL, 'Y'),
(119, 'Healthcare provider support persons', '85101600', '3', NULL, 'Y'),
(120, 'Commercial land parcels', '95101600', '3', NULL, 'Y'),
(121, 'Ammunition', '46101600', '3', NULL, 'Y'),
(122, 'Outdoor furniture', '56101600', '3', NULL, 'Y'),
(123, 'Hazardous material decontamination', '76101600', '3', NULL, 'Y'),
(124, 'Scientific vocational training services', '86101600', '3', NULL, 'Y'),
(125, 'Water treatment consumables', '47101600', '3', NULL, 'Y'),
(126, 'Environmental planning', '77101600', '3', NULL, 'Y'),
(127, 'Food preparation equipment', '48101600', '3', NULL, 'Y'),
(128, 'Rail cargo transport', '78101600', '3', NULL, 'Y'),
(129, 'Lamps and lightbulbs', '39101600', '3', NULL, 'Y'),
(130, 'Collectibles', '49101600', '3', NULL, 'Y'),
(131, 'Drilling and operation machinery', '20111600', '3', NULL, 'Y'),
(132, 'Cement and lime', '30111600', '3', NULL, 'Y'),
(133, 'Flowering plants', '70111600', '3', NULL, 'Y'),
(134, 'Temporary personnel services', '80111600', '3', NULL, 'Y'),
(135, 'Meeting facilities', '90111600', '3', NULL, 'Y'),
(136, 'Stone', '11111600', '3', NULL, 'Y'),
(137, 'Aquaculture equipment', '21111600', '3', NULL, 'Y'),
(138, 'Length and thickness and distance measuring instruments', '41111600', '3', NULL, 'Y'),
(139, 'Antimetabolites', '51111600', '3', NULL, 'Y'),
(140, 'Computer programmers', '81111600', '3', NULL, 'Y'),
(141, 'Household assistance and care', '91111600', '3', NULL, 'Y'),
(142, 'Non technical writing', '82111600', '3', NULL, 'Y'),
(143, 'Disarmament', '92111600', '3', NULL, 'Y'),
(144, 'Shoes', '53111600', '3', NULL, 'Y'),
(145, 'Mobile communications services', '83111600', '3', NULL, 'Y'),
(146, 'Political representation and participation', '93111600', '3', NULL, 'Y'),
(147, 'Novelty paper', '14111600', '3', NULL, 'Y'),
(148, 'Cash handling supplies', '44111600', '3', NULL, 'Y'),
(149, 'Clocks', '54111600', '3', NULL, 'Y'),
(150, 'Audit services', '84111600', '3', NULL, 'Y'),
(151, 'Safety and rescue water craft', '25111600', '3', NULL, 'Y'),
(152, 'Projectors and supplies', '45111600', '3', NULL, 'Y'),
(153, 'Non contagious disease prevention and control', '85111600', '3', NULL, 'Y'),
(154, 'Open traffic thoroughfares', '95111600', '3', NULL, 'Y'),
(155, 'Power generators', '26111600', '3', NULL, 'Y'),
(156, 'Building component cleaning services', '76111600', '3', NULL, 'Y'),
(157, 'Adult education', '86111600', '3', NULL, 'Y'),
(158, 'Panel systems', '56111600', '3', NULL, 'Y'),
(159, 'Ironing equipment', '47111600', '3', NULL, 'Y'),
(160, 'Forming tools', '27111600', '3', NULL, 'Y'),
(161, 'Environmental rehabilitation', '77111600', '3', NULL, 'Y'),
(162, 'Passenger railway transportation', '78111600', '3', NULL, 'Y'),
(163, 'Exterior lighting fixtures and accessories ', '39111600', '3', NULL, 'Y'),
(164, 'Bird and fowl food', '10121600', '3', NULL, 'Y'),
(165, 'Asphalts', '30121600', '3', NULL, 'Y'),
(166, 'Livestock industry', '70121600', '3', NULL, 'Y'),
(167, 'Business law services', '80121600', '3', NULL, 'Y'),
(168, 'Travel document assistance', '90121600', '3', NULL, 'Y'),
(169, 'Drilling bits', '20121600', '3', NULL, 'Y'),
(170, 'Studio aids', '60121600', '3', NULL, 'Y'),
(171, 'Wood', '11121600', '3', NULL, 'Y'),
(172, 'Monetary systems and issues', '81121600', '3', NULL, 'Y'),
(173, 'Pipette tips', '41121600', '3', NULL, 'Y'),
(174, 'Veterinary products', '42121600', '3', NULL, 'Y'),
(175, 'Table and kitchen linen and accessories', '52121600', '3', NULL, 'Y'),
(176, 'Engraving', '82121600', '3', NULL, 'Y'),
(177, 'Detective services', '92121600', '3', NULL, 'Y'),
(178, 'Textile working machinery and equipment and accessories', '23121600', '3', NULL, 'Y'),
(179, 'Purses and handbags and bags', '53121600', '3', NULL, 'Y'),
(180, 'Information centers', '83121600', '3', NULL, 'Y'),
(181, 'International relations and cooperation', '93121600', '3', NULL, 'Y'),
(182, 'Desk supplies', '44121600', '3', NULL, 'Y'),
(183, 'Tissue papers', '14121600', '3', NULL, 'Y'),
(184, 'Funds transfer and clearance and exchange services', '84121600', '3', NULL, 'Y'),
(185, 'Camera accessories', '45121600', '3', NULL, 'Y'),
(186, 'Labels', '55121600', '3', NULL, 'Y'),
(187, 'Medical doctor specialist services', '85121600', '3', NULL, 'Y'),
(188, 'Transport buildings and structures', '95121600', '3', NULL, 'Y'),
(189, 'Electrical cable and accessories', '26121600', '3', NULL, 'Y'),
(190, 'Nonhazardous waste disposal', '76121600', '3', NULL, 'Y'),
(191, 'Junior colleges', '86121600', '3', NULL, 'Y'),
(192, 'Floor machines and accessories', '47121600', '3', NULL, 'Y'),
(193, 'Soil pollution', '77121600', '3', NULL, 'Y'),
(194, 'Material handling services', '78121600', '3', NULL, 'Y'),
(195, 'Circuit protection devices and accessories', '39121600', '3', NULL, 'Y'),
(196, 'Camping furniture', '49121600', '3', NULL, 'Y'),
(197, 'Animal containment', '10131600', '3', NULL, 'Y'),
(198, 'Bricks', '30131600', '3', NULL, 'Y'),
(199, 'Eggs and egg substitutes', '50131600', '3', NULL, 'Y'),
(200, 'Land and soil preparation', '70131600', '3', NULL, 'Y'),
(201, 'Sale of property and building', '80131600', '3', NULL, 'Y'),
(202, 'Musical instrument sets', '60131600', '3', NULL, 'Y'),
(203, 'Other animal products', '11131600', '3', NULL, 'Y'),
(204, 'Anticoagulants', '51131600', '3', NULL, 'Y'),
(205, 'Pyrotechnics', '12131600', '3', NULL, 'Y'),
(206, 'Blinds and shades', '52131600', '3', NULL, 'Y'),
(207, 'Photographers and cinematographers', '82131600', '3', NULL, 'Y'),
(208, 'Medical staff clothing and related articles', '42131600', '3', NULL, 'Y'),
(209, 'Faceting equipment and accessories', '23131600', '3', NULL, 'Y'),
(210, 'Bath and body', '53131600', '3', NULL, 'Y'),
(211, 'Meat and poultry and seafood processing', '73131600', '3', NULL, 'Y'),
(212, 'Food and nutrition policy planning and programs', '93131600', '3', NULL, 'Y'),
(213, 'Industrial freezers', '24131600', '3', NULL, 'Y'),
(214, 'Life and health and accident insurance', '84131600', '3', NULL, 'Y'),
(215, 'Charity organizations', '94131600', '3', NULL, 'Y'),
(216, 'Civilian and commercial rotary wing aircraft', '25131600', '3', NULL, 'Y'),
(217, 'Moving picture media', '45131600', '3', NULL, 'Y'),
(218, 'Fission fuel assemblies', '15131600', '3', NULL, 'Y'),
(219, 'Medical ethics', '85131600', '3', NULL, 'Y'),
(220, 'Portable commercial and industrial buildings and structures', '95131600', '3', NULL, 'Y'),
(221, 'Toxic spill cleanup', '76131600', '3', NULL, 'Y'),
(222, 'Music and drama', '86131600', '3', NULL, 'Y'),
(223, 'Exhaust structures or screening equipment', '26131600', '3', NULL, 'Y'),
(224, 'Brooms and mops and brushes and accessories', '47131600', '3', NULL, 'Y'),
(225, 'Noise pollution', '77131600', '3', NULL, 'Y'),
(226, 'General goods storage', '78131600', '3', NULL, 'Y'),
(227, 'Wire protection devices', '39131600', '3', NULL, 'Y'),
(228, 'Valves', '40141600', '3', NULL, 'Y'),
(229, 'Crop protection', '70141600', '3', NULL, 'Y'),
(230, 'Sales and business promotion activities', '80141600', '3', NULL, 'Y'),
(231, 'Non metallic waste and scrap', '11141600', '3', NULL, 'Y'),
(232, 'Supply chain management', '81141600', '3', NULL, 'Y'),
(233, 'Domestic laundry appliances and supplies', '52141600', '3', NULL, 'Y'),
(234, 'Graphic display services', '82141600', '3', NULL, 'Y'),
(235, 'Rare earth metals', '12141600', '3', NULL, 'Y'),
(236, 'Basins and bedpans and urinals and admission kits', '42141600', '3', NULL, 'Y'),
(237, 'Mass transit system construction services', '72141600', '3', NULL, 'Y'),
(238, 'Leather preparing machinery and accessories', '23141600', '3', NULL, 'Y'),
(239, 'Thread and yarn processing', '73141600', '3', NULL, 'Y'),
(240, 'Population', '93141600', '3', NULL, 'Y'),
(241, 'Miscellaneous sewing supplies', '53141600', '3', NULL, 'Y'),
(242, 'Cushioning supplies', '24141600', '3', NULL, 'Y'),
(243, 'Personal credit agencies', '84141600', '3', NULL, 'Y'),
(244, 'Prefabricated residential buildings and structures', '95141600', '3', NULL, 'Y'),
(245, 'Darkroom supplies', '45141600', '3', NULL, 'Y'),
(246, 'Herbal treatments', '85141600', '3', NULL, 'Y'),
(247, 'Subcritical assembly equipment', '26141600', '3', NULL, 'Y'),
(248, 'Students organizations', '86141600', '3', NULL, 'Y'),
(249, 'Inspection', '78141600', '3', NULL, 'Y'),
(250, 'Cereal seeds', '10151600', '3', NULL, 'Y'),
(251, 'Roofing accessories', '30151600', '3', NULL, 'Y'),
(252, 'Compressors', '40151600', '3', NULL, 'Y'),
(253, 'Edible animal oils and fats', '50151600', '3', NULL, 'Y'),
(254, 'Forestry industry', '70151600', '3', NULL, 'Y'),
(255, 'International trade services', '80151600', '3', NULL, 'Y'),
(256, 'Threads', '11151600', '3', NULL, 'Y'),
(257, 'Chains', '31151600', '3', NULL, 'Y'),
(258, 'Cholinergic blocking agents', '51151600', '3', NULL, 'Y'),
(259, 'Cartography', '81151600', '3', NULL, 'Y'),
(260, 'Clinical laboratory instruments', '41151600', '3', NULL, 'Y'),
(261, 'Dental and subspecialty instruments and devices', '42151600', '3', NULL, 'Y'),
(262, 'Domestic kitchen tools and utensils', '52151600', '3', NULL, 'Y'),
(263, 'Specialized communication system services', '72151600', '3', NULL, 'Y'),
(264, 'Cement and ceramics and glass industry machinery and equipment and supplies', '23151600', '3', NULL, 'Y'),
(265, 'Packaging services', '73151600', '3', NULL, 'Y'),
(266, 'Public finance', '93151600', '3', NULL, 'Y'),
(267, 'Nutrition issues', '85151600', '3', NULL, 'Y'),
(268, 'Security and control equipment', '46151600', '3', NULL, 'Y'),
(269, 'Ceiling materials', '30161600', '3', NULL, 'Y'),
(270, 'Purification', '40161600', '3', NULL, 'Y'),
(271, 'Flora', '70161600', '3', NULL, 'Y'),
(272, 'Business facilities oversight', '80161600', '3', NULL, 'Y'),
(273, 'Wool fabrics', '11161600', '3', NULL, 'Y'),
(274, 'Bolts', '31161600', '3', NULL, 'Y'),
(275, 'Other oilfield support services', '71161600', '3', NULL, 'Y'),
(276, 'Electronic mail and messaging services', '81161600', '3', NULL, 'Y'),
(277, 'Extracorporeal hemodialysis equipment and supplies', '42161600', '3', NULL, 'Y'),
(278, 'Audio visual equipment accessories', '52161600', '3', NULL, 'Y'),
(279, 'Foundry supplies', '23161600', '3', NULL, 'Y'),
(280, 'Manufacture of transport equipment', '73161600', '3', NULL, 'Y'),
(281, 'Taxes other than income tax', '93161600', '3', NULL, 'Y'),
(282, 'Water safety', '46161600', '3', NULL, 'Y'),
(283, 'Racquet and court sports equipment', '49161600', '3', NULL, 'Y'),
(284, 'Chemical fertilizers and plant nutrients', '10171600', '3', NULL, 'Y'),
(285, 'Windows', '30171600', '3', NULL, 'Y'),
(286, 'Water quality management services', '70171600', '3', NULL, 'Y'),
(287, 'Publicity and marketing support services', '80171600', '3', NULL, 'Y'),
(288, 'Bushings', '31171600', '3', NULL, 'Y'),
(289, 'Laxatives', '51171600', '3', NULL, 'Y'),
(290, 'Stainless steel alloys', '11171600', '3', NULL, 'Y'),
(291, 'Ecological science services', '81171600', '3', NULL, 'Y'),
(292, 'Microbiology devices', '41171600', '3', NULL, 'Y'),
(293, 'Pigments', '12171600', '3', NULL, 'Y'),
(294, 'Mobile medical services extricating and immobilizing and transporting products', '42171600', '3', NULL, 'Y'),
(295, 'Manufacture of precision instruments', '73171600', '3', NULL, 'Y'),
(296, 'International trade', '93171600', '3', NULL, 'Y'),
(297, 'Defrosting and defogging systems', '25171600', '3', NULL, 'Y'),
(298, 'Hospice care', '85171600', '3', NULL, 'Y'),
(299, 'Surveillance and detection equipment', '46171600', '3', NULL, 'Y'),
(300, 'Boxing equipment', '49171600', '3', NULL, 'Y'),
(301, 'Non sanitary residential fixtures', '30181600', '3', NULL, 'Y'),
(302, 'Thyroid and antithyroid drugs', '51181600', '3', NULL, 'Y'),
(303, 'Blood pressure units and related products', '42181600', '3', NULL, 'Y'),
(304, 'Oils', '12181600', '3', NULL, 'Y'),
(305, 'Food cutting machinery', '23181600', '3', NULL, 'Y'),
(306, 'Automotive chassis', '25181600', '3', NULL, 'Y'),
(307, 'Safety footwear', '46181600', '3', NULL, 'Y'),
(308, 'Panel and paint services', '78181600', '3', NULL, 'Y'),
(309, 'Ladders and scaffolding accessories', '30191600', '3', NULL, 'Y'),
(310, 'Abrasive wheels', '31191600', '3', NULL, 'Y'),
(311, 'Electrolytes', '51191600', '3', NULL, 'Y'),
(312, 'Medical facility building systems', '42191600', '3', NULL, 'Y'),
(313, 'Personal communications device accessories or parts', '43191600', '3', NULL, 'Y'),
(314, 'Space transportation support systems and equipment', '25191600', '3', NULL, 'Y'),
(315, 'Fire fighting equipment', '46191600', '3', NULL, 'Y'),
(316, 'Adhesives', '31201600', '3', NULL, 'Y'),
(317, 'Vaccines and antigens and toxoids', '51201600', '3', NULL, 'Y'),
(318, 'Medical magnetic resonance imaging MRI products', '42201600', '3', NULL, 'Y'),
(319, 'Chassis components', '43201600', '3', NULL, 'Y'),
(320, 'Weight and resistance training equipment', '49201600', '3', NULL, 'Y'),
(321, 'Paint additives', '31211600', '3', NULL, 'Y'),
(322, 'Bathroom and bathing aids for the physically challenged', '42211600', '3', NULL, 'Y'),
(323, 'Weighing machinery excluding balances of a sensitivity of 5 cg or better of tariff number 84233100 including weight operated counting or checking machines weighing machine weights of all kinds upon approval by CS Health', '99011129', '4', NULL, 'Y'),
(324, 'Fetal Doppler Pocket Wgd002 Pc and pulse oximeter finger held Gima band Pc of tariff number 90181900 upon approval by the cabinet sectretary responsible for matters relating to health ', '99011130', '4', NULL, 'Y'),
(325, 'Sterilizer Dry Heat Wgd001Grx05A Pc autoclave steam tables tops of tariff number 8419902000 upon approval by the cabinet sectretary responsible for matters relating to health ', '99011131', '4', NULL, 'Y'),
(326, 'Needle holders and urine bags of tariff heading 399026', '99011132', '4', NULL, 'Y'),
(327, 'Tourniquets of tariff number 3990269099 for use by licensed hospitals upon approval by the cabinet sectretary responsible for matters relating to health ', '99011133', '4', NULL, 'Y'),
(328, 'Taxable supplies incl. fish feeding and handling water operations cold storage fish cages pond construction, maintenance, fish processing and handling imported or purchased for direct exclusive use on the recommendation of the relevant State Dept', '99011134', '4', NULL, 'Y'),
(329, 'Pre fabricated biogas digesters ', '99011135', '4', NULL, 'Y'),
(330, 'Biogas ', '99011136', '4', NULL, 'Y'),
(331, 'Sustainable fuel briquettes and pellets for household and commercial use ', '99011137', '4', NULL, 'Y'),
(332, 'The supply of denatured ethanol of tariff number 22072000', '99011138', '4', NULL, 'Y'),
(333, 'Tractors other than road tractors for semitrailers', '99011139', '4', NULL, 'Y'),
(334, 'Plant and machinery of chapter 84 and 85 imported by manufacturers of pharmaceutical products or investors in the manufacture of pharmaceutical products upon the recommendation of CS Health', '99011140', '4', NULL, 'Y'),
(335, 'Medical oxygen supplied to registered hospitals ', '99011141', '4', NULL, 'Y'),
(336, 'Urine bags adult diapers artificial breasts colostomy or ileostomy bags for medical use ', '99011142', '4', NULL, 'Y'),
(337, 'Inputs and raw materials  used in the manufacture of passenger motor vehicle ', '99011143', '4', NULL, 'Y'),
(338, 'Locally manufactured passenger motor vehicles: vehicles for the transportation of passengers whose ex-factory value comprises at least 30 percent of parts designed and manufactured in Kenya by an original equipment manufacturer operating in Kenya.', '99011144', '4', NULL, 'Y'),
(339, 'Taxable goods inputs and raw materials imported  or locally purchased by company under SOFA manufacturing human vaccines with a capital investment of atleast 10Bn shillings subject to approval of CS TNT upon recommendation of CS Health', '99011145', '4', NULL, 'Y'),
(340, 'Such capital goods the exemption of which the Cabinet Secretary may determine to promote investment in the manufacturing sector provided that the value of such investment is not less than two billion shillings ', '99011146', '4', NULL, 'Y'),
(341, 'Zero Rated Goods', '99012000', '3', NULL, 'Y'),
(342, 'Shipstores supplied to international sea or air carriers on international voyage or flight', '99012003', '4', NULL, 'Y'),
(343, 'The supply of coffee and tea for export to coffee or tea auction centers', '99012004', '4', NULL, 'Y'),
(344, 'Transportation of passengers by air carriers on international flight', '99012005', '4', NULL, 'Y'),
(345, 'Goods purchased from duty free shops by passengers departing to places outside Kenya', '99012009', '4', NULL, 'Y'),
(346, 'Inputs or raw materials either produced locally or imported supplied to pharmaceutical manufacturers in Kenya for manufacturing medicaments as approved from time to time by the Cabinet Secretary in consultation with CS Health', '99012011', '4', NULL, 'Y'),
(347, 'The supply of ordinary bread', '99012013', '4', NULL, 'Y'),
(348, 'Milk and cream not concentrated nor containing added sugar or other sweetening matter of tariff numbers 04011000 04012000 04014000 04015000', '99012015', '4', NULL, 'Y'),
(349, 'All inputs and raw materials whether produced locally or imported supplied to manufacturers of agricultural pest control products upon recommendation by CS Agriculture', '99012016', '4', NULL, 'Y'),
(350, 'Agricultural pest control products', '99012019', '4', NULL, 'Y'),
(351, 'The supply of maize corn flour cassava flour wheat or meslin flour and maize flour containing cassava flour by more than ten percent in weight', '99012022', '4', NULL, 'Y'),
(352, 'The Fertilizers of chapter 31', '99012024', '4', NULL, 'Y'),
(353, 'Inputs of raw materials locally purchased or imported by manufacturers of fertilizer as approved from time to time by the Cabinet Secretary responsible for Agriculture', '99012025', '4', NULL, 'Y'),
(354, 'Other Rate Goods (8%)', '99013000', '3', NULL, 'Y'),
(355, 'Petroleum Products', '99013001', '4', NULL, 'Y'),
(356, 'Services', '99020000', '2', NULL, 'Y'),
(357, 'Exempt Service', '99021000', '3', NULL, 'Y'),
(358, 'Financial Services', '99021001', '4', NULL, 'Y'),
(359, 'Insurance & reinsurance services ', '99021002', '4', NULL, 'Y'),
(360, 'Education services ', '99021003', '4', NULL, 'Y'),
(361, 'Medical veterinary dental  Ambulance and nursing services', '99021004', '4', NULL, 'Y'),
(362, 'Agricultural animal husbandry and horticultural services', '99021005', '4', NULL, 'Y'),
(363, 'Burial and cremation services', '99021006', '4', NULL, 'Y'),
(364, 'Transportation of passengers by any means of conveyance excluding international air transport or where the means of conveyance is hired or chartered', '99021007', '4', NULL, 'Y'),
(365, 'Supply by way of sale renting leasing hiring letting of land or residential premises residential premises means land or a building occupied or capable of being occupied as a residence excluding hotel and holiday accomodation and subject to the provi', '99021008', '4', NULL, 'Y'),
(366, 'Community social and welfare services provided by National Government County Government or any political subdivision thereof', '99021009', '4', NULL, 'Y'),
(367, 'Tea and coffee brokerage services', '99021010', '4', NULL, 'Y'),
(368, 'Services rendered by educational, political, religious, welfare & other philanthropic associations to their members and social welfare services provided by charitable organizations.', '99021011', '4', NULL, 'Y'),
(369, 'Entertainment Services', '99021012', '4', NULL, 'Y'),
(370, 'Accommodation and Restaurant Services', '99021013', '4', NULL, 'Y'),
(371, 'Conference services conducted for educational institutions as part of learning where such institutions are approved by the Ministry for the time being responsible for Education', '99021014', '4', NULL, 'Y'),
(372, 'Car park services provided by National Government County Government anypolitical subdivision therefore by an employer to his employees on the premises of the employer', '99021015', '4', NULL, 'Y'),
(373, 'The supply of airtime by any person other than by a provider of cellular mobile telephone services or wireless telephone services', '99021016', '4', NULL, 'Y'),
(374, 'Betting gaming and lotteries services', '99021017', '4', NULL, 'Y'),
(375, 'Hiring leasing and chartering of aircrafts excluding helicopters of tariff 88021100 and 88021200', '99021018', '4', NULL, 'Y'),
(376, 'Taxable services for direct and exclusive use in the implementation of official aid funded projects upon approval by the Cabinet Secretary to the National Treasury', '99021020', '4', NULL, 'Y'),
(377, 'Services imported or procured locally for use by the local film producers or local film agents upon recommendation by the Kenya Film Commission subject to approval by the Cabinet Secretary for the National Treasury', '99021021', '4', NULL, 'Y'),
(378, 'Supply of sewerage services by the national government a county government any political subdivision thereof or a person approved by the Cabinet Secretary for the time being responsible for water development', '99021023', '4', NULL, 'Y'),
(379, 'Entry fees into the national parks and national reserves', '99021024', '4', NULL, 'Y'),
(380, 'The services of tour operators excluding inhouse supplies', '99021025', '4', NULL, 'Y'),
(381, 'Taxable services for direct and exclusive use for the construction of tourism facilities recreational parks of 50 acres or more convention and conference facilities upon the recommendation by the CS responsible for  recreational park', '99021026', '4', NULL, 'Y'),
(382, 'Taxable services for direct and exclusive use for the construction of specialized hospitals with accommodation facilities upon recommendation by CS Health who shall issue guidelines for the criteria to determine the eligibility for the exemption', '99021027', '4', NULL, 'Y'),
(383, 'Postal services provide through the supply of postage stamps including rental post boxes or mail bags and subsidiary services thereto', '99021029', '4', NULL, 'Y'),
(384, 'The transfer of assets and other transactions related to the transfer of asets into real estate investment trusts and asset backed securities', '99021033', '4', NULL, 'Y'),
(385, 'Zero Rated Service', '99022000', '3', NULL, 'Y'),
(386, 'The supply of taxable services to international sea or air carriers on international voyage or flight', '99022006', '4', NULL, 'Y'),
(387, 'Supply of taxable services in respect of goods in transit', '99022010', '4', NULL, 'Y'),
(388, 'The transportation of goods originating from Kenya to a place outside Kenya', '99022020', '4', NULL, 'Y'),
(389, 'Transportation of sugarcane from farms to miling factories', '99022021', '4', NULL, 'Y'),
(390, 'The exportation of taxable services in respect of business process outsourcing ', '99022023', '4', NULL, 'Y'),
(391, 'Goods or Services', '99030000', '2', NULL, 'Y'),
(392, 'Exempt Goods or Services', '99031000', '3', NULL, 'Y'),
(393, 'Zero Rated Goods or Services', '99032000', '3', NULL, 'Y'),
(394, 'The supply of goods or taxable services to an export processing zone business as specified in the Export Processing Zones Act Cap 517 as being eligible forduty and tax free importation', '99032002', '4', NULL, 'Y'),
(395, 'Supply to international and regional organizations', '99032004', '4', NULL, 'Y'),
(396, 'Supply to the War Graves Commission', '99032005', '4', NULL, 'Y'),
(397, 'Supply to National Red Cross Society and St John Ambulance', '99032008', '4', NULL, 'Y'),
(398, 'The supply of goods or taxable services to a special economic zone enterprise', '99032012', '4', NULL, 'Y'),
(399, 'Government Undertaking', '99040000', '2', NULL, 'Y'),
(400, 'Zero Rated Government Undertaking', '99042000', '3', NULL, 'Y'),
(401, 'Physical and occupational therapy and rehabilitation products', '42250000', '2', NULL, 'Y'),
(402, 'Metal forming machinery and accessories', '23250000', '2', NULL, 'Y'),
(403, 'Structural materials', '30260000', '2', NULL, 'Y'),
(404, 'Housings and cabinets and casings', '31260000', '2', NULL, 'Y'),
(405, 'Adrenergic blocking agents', '51260000', '2', NULL, 'Y'),
(406, 'Postmortem and mortuary equipment and supplies', '42260000', '2', NULL, 'Y'),
(407, 'Rapid prototyping machinery and accessories', '23260000', '2', NULL, 'Y'),
(408, 'Diagnoses of endocrine, nutritional and metabolic diseases  ', '85260000', '2', NULL, 'Y'),
(409, 'Machine made parts', '31270000', '2', NULL, 'Y'),
(410, 'Anaesthetic drugs and related adjuncts and analeptics', '51270000', '2', NULL, 'Y'),
(411, 'Respiratory and anesthesia and resuscitation products', '42270000', '2', NULL, 'Y'),
(412, 'Welding and soldering and brazing machinery and accessories and supplies', '23270000', '2', NULL, 'Y'),
(413, 'Diagnoses of mental and behavioral disorders  ', '85270000', '2', NULL, 'Y'),
(414, 'Stampings and sheet components', '31280000', '2', NULL, 'Y'),
(415, 'Antibacterials', '51280000', '2', NULL, 'Y'),
(416, 'Medical cleaning and sterilization products', '42280000', '2', NULL, 'Y'),
(417, 'Metal treatment machinery', '23280000', '2', NULL, 'Y'),
(418, 'Antidepressants', '51290000', '2', NULL, 'Y'),
(419, 'Machined extrusions', '31290000', '2', NULL, 'Y'),
(420, 'Surgical products', '42290000', '2', NULL, 'Y'),
(421, 'Industrial machine tools', '23290000', '2', NULL, 'Y'),
(422, 'Fresh fruits', '50300000', '2', NULL, 'Y'),
(423, 'Antifungal drugs', '51300000', '2', NULL, 'Y'),
(424, 'Machined forgings', '31300000', '2', NULL, 'Y'),
(425, 'Medical training and education supplies', '42300000', '2', NULL, 'Y'),
(426, 'Wire machinery and equipment', '23300000', '2', NULL, 'Y'),
(427, 'Organic fresh fruits', '50310000', '2', NULL, 'Y'),
(428, 'Antihistamines or H1 blockers', '51310000', '2', NULL, 'Y'),
(429, 'Fabricated pipe assemblies', '31310000', '2', NULL, 'Y'),
(430, 'Wound care products', '42310000', '2', NULL, 'Y'),
(431, 'Dried fruit', '50320000', '2', NULL, 'Y'),
(432, 'Antihyperlipidemic and hypocholesterolemic agents', '51320000', '2', NULL, 'Y'),
(433, 'Fabricated bar stock assemblies', '31320000', '2', NULL, 'Y'),
(434, 'Orthopedic surgical implants', '42320000', '2', NULL, 'Y'),
(435, 'Dried organic fruit', '50330000', '2', NULL, 'Y'),
(436, 'Antipsychotics', '51330000', '2', NULL, 'Y'),
(437, 'Fabricated structural assemblies', '31330000', '2', NULL, 'Y'),
(438, 'Frozen fruit', '50340000', '2', NULL, 'Y'),
(439, 'Antiviral drugs', '51340000', '2', NULL, 'Y'),
(440, 'Fabricated sheet assemblies', '31340000', '2', NULL, 'Y'),
(441, 'Estrogens and progestins and internal contraceptives', '51350000', '2', NULL, 'Y'),
(442, 'Fabricated tube assemblies', '31350000', '2', NULL, 'Y'),
(443, 'Compounds and mixtures', '12350000', '2', NULL, 'Y'),
(444, 'Canned or jarred fruit', '50360000', '2', NULL, 'Y'),
(445, 'Hypnotics', '51360000', '2', NULL, 'Y'),
(446, 'Fabricated plate assemblies', '31360000', '2', NULL, 'Y'),
(447, 'Canned or jarred organic fruit', '50370000', '2', NULL, 'Y'),
(448, 'Refractories', '31370000', '2', NULL, 'Y'),
(449, 'Controlled substance analgesics', '51370000', '2', NULL, 'Y'),
(450, 'Fresh fruit purees', '50380000', '2', NULL, 'Y'),
(451, 'Nonsteroidal anti inflammatory drugs NSAIDs', '51380000', '2', NULL, 'Y'),
(452, 'Magnets and magnetic materials', '31380000', '2', NULL, 'Y'),
(453, 'Diagnoses of certain conditions originating in the perinatal period', '85380000', '2', NULL, 'Y'),
(454, 'Sympathomimetic or adrenergic drugs', '51390000', '2', NULL, 'Y'),
(455, 'Machinings', '31390000', '2', NULL, 'Y'),
(456, 'Fresh vegetables', '50400000', '2', NULL, 'Y'),
(457, 'Tranquilizers and antimanic and antianxiety drugs', '51400000', '2', NULL, 'Y'),
(458, 'Gaskets', '31400000', '2', NULL, 'Y'),
(459, 'Organic fresh vegetables', '50410000', '2', NULL, 'Y'),
(460, 'Vasodilators', '51410000', '2', NULL, 'Y'),
(461, 'Seals', '31410000', '2', NULL, 'Y'),
(462, 'Dried vegetables', '50420000', '2', NULL, 'Y'),
(463, 'Corticosteroids', '51420000', '2', NULL, 'Y'),
(464, 'Sintered parts', '31420000', '2', NULL, 'Y'),
(465, 'Dried organic vegetables', '50430000', '2', NULL, 'Y'),
(466, 'Antihypertensive drugs', '51430000', '2', NULL, 'Y'),
(467, 'Frozen vegetables', '50440000', '2', NULL, 'Y'),
(468, 'Radiopharmaceuticals and contrast media', '51440000', '2', NULL, 'Y'),
(469, 'Frozen organic vegetables', '50450000', '2', NULL, 'Y'),
(470, 'Anthelmintics', '51450000', '2', NULL, 'Y'),
(471, 'Canned or jarred vegetables', '50460000', '2', NULL, 'Y'),
(472, 'Herbal drugs', '51460000', '2', NULL, 'Y'),
(473, 'Canned or jarred organic vegetables', '50470000', '2', NULL, 'Y'),
(474, 'Antiseptics', '51470000', '2', NULL, 'Y'),
(475, 'Nutritional supplements', '50500000', '2', NULL, 'Y'),
(476, 'Rapid response kits', '57010100', '3', NULL, 'Y'),
(477, 'Humanitarian operational services', '57020100', '3', NULL, 'Y'),
(478, 'Health emergency kits', '57030100', '3', NULL, 'Y'),
(479, 'Educational kits', '57040100', '3', NULL, 'Y'),
(480, 'Emergency nutritional kits', '57050100', '3', NULL, 'Y'),
(481, 'Emergency clothing kits', '57060100', '3', NULL, 'Y'),
(482, 'Logistics emergency kits', '57070100', '3', NULL, 'Y'),
(483, 'Emergency IT equipment kits', '57080100', '3', NULL, 'Y'),
(484, 'Training services for users of agricultural machinery and equipment ', '70190100', '3', NULL, 'Y'),
(485, 'Emergency latrine facility', '57030200', '3', NULL, 'Y'),
(486, 'Recreational kits', '57040200', '3', NULL, 'Y'),
(487, 'Food emergency rations', '57050200', '3', NULL, 'Y'),
(488, 'Shelter emergency kits', '57060200', '3', NULL, 'Y'),
(489, 'Water, sanitation and hygiene kits', '57030300', '3', NULL, 'Y'),
(490, 'Early childhood development', '57040300', '3', NULL, 'Y'),
(491, 'Food emergency kits', '57050300', '3', NULL, 'Y'),
(492, 'Office emergency kits', '57060300', '3', NULL, 'Y'),
(493, 'Personal protective equipment', '57030400', '3', NULL, 'Y'),
(494, 'Multipurpose emergency kits', '57060400', '3', NULL, 'Y'),
(495, 'Single family dwelling construction services', '72111000', '3', NULL, 'Y'),
(496, 'Resins', '13111000', '3', NULL, 'Y'),
(497, 'New industrial building and warehouse construction services', '72121000', '3', NULL, 'Y'),
(498, 'Library furnishings', '56121000', '3', NULL, 'Y'),
(499, 'Power conditioning equipment', '39121000', '3', NULL, 'Y'),
(500, 'Keyboard instruments', '60131000', '3', NULL, 'Y'),
(501, 'Electronic component parts and raw materials and accessories', '32131000', '3', NULL, 'Y'),
(502, 'Toys', '60141000', '3', NULL, 'Y'),
(503, 'Highway and road construction services', '72141000', '3', NULL, 'Y'),
(504, 'Body tools', '27141000', '3', NULL, 'Y'),
(505, 'Boiler and furnace construction and maintenance services', '72151000', '3', NULL, 'Y'),
(506, 'Oilfield modeling services', '71161000', '3', NULL, 'Y'),
(507, 'Batch mixers', '23191000', '3', NULL, 'Y'),
(508, 'Gas liquid contacting systems', '23201000', '3', NULL, 'Y'),
(509, 'Public safety training equipment', '46201000', '3', NULL, 'Y'),
(510, 'Airport Maintenance', '78201000', '3', NULL, 'Y'),
(511, 'Pulses', '50221000', '3', NULL, 'Y'),
(512, 'Arrival department machinery and equipment', '23221000', '3', NULL, 'Y'),
(513, 'Log debarkers and accessories', '23231000', '3', NULL, 'Y'),
(514, 'Electric alternating current AC motors', '26101100', '3', NULL, 'Y'),
(515, 'Multiple unit dwelling construction services', '72111100', '3', NULL, 'Y'),
(516, 'Rosins', '13111100', '3', NULL, 'Y'),
(517, 'Rapid response kits', '57111100', '3', NULL, 'Y'),
(518, 'Commercial and office building construction services', '72121100', '3', NULL, 'Y'),
(519, 'Distribution and control centers and accessories', '39121100', '3', NULL, 'Y'),
(520, 'Live Plant and Animal Material and Accessories and Supplies', '10000000', '1', NULL, 'Y'),
(521, 'Mining and Well Drilling Machinery and Accessories', '20000000', '1', NULL, 'Y'),
(522, 'Structures and Building and Construction and Manufacturing Components and Supplies', '30000000', '1', NULL, 'Y'),
(523, 'Distribution and Conditioning Systems and Equipment and Components', '40000000', '1', NULL, 'Y'),
(524, 'Food Beverage and Tobacco Products', '50000000', '1', NULL, 'Y'),
(525, 'Farming and Fishing and Forestry and Wildlife Contracting Services', '70000000', '1', NULL, 'Y'),
(526, 'Management and Business Professionals and Administrative Services', '80000000', '1', NULL, 'Y'),
(527, 'Travel and Food and Lodging and Entertainment Services', '90000000', '1', NULL, 'Y'),
(528, 'Musical Instruments and Games and Toys and Arts and Crafts and Educational Equipment and Materials and Accessories and Supplies', '60000000', '1', NULL, 'Y'),
(529, 'Mineral and Textile and Inedible Plant and Animal Materials', '11000000', '1', NULL, 'Y'),
(530, 'Farming and Fishing and Forestry and Wildlife Machinery and Accessories', '21000000', '1', NULL, 'Y'),
(531, 'Manufacturing Components and Supplies', '31000000', '1', NULL, 'Y'),
(532, 'Laboratory and Measuring and Observing and Testing Equipment', '41000000', '1', NULL, 'Y'),
(533, 'Drugs and Pharmaceutical Products', '51000000', '1', NULL, 'Y'),
(534, 'Mining and oil and gas services', '71000000', '1', NULL, 'Y'),
(535, 'Engineering and Research and Technology Based Services', '81000000', '1', NULL, 'Y'),
(536, 'Personal and Domestic Services', '91000000', '1', NULL, 'Y'),
(537, 'Chemicals including Bio Chemicals and Gas Materials', '12000000', '1', NULL, 'Y'),
(538, 'Building and Construction Machinery and Accessories', '22000000', '1', NULL, 'Y'),
(539, 'Electronic Components and Supplies', '32000000', '1', NULL, 'Y'),
(540, 'Medical Equipment and Accessories and Supplies', '42000000', '1', NULL, 'Y'),
(541, 'Domestic Appliances and Supplies and Consumer Electronic Products', '52000000', '1', NULL, 'Y'),
(542, 'Building and Facility Construction and Maintenance Services ', '72000000', '1', NULL, 'Y'),
(543, 'Editorial and Design and Graphic and Fine Art Services', '82000000', '1', NULL, 'Y'),
(544, 'National Defense and Public Order and Security and Safety Services', '92000000', '1', NULL, 'Y'),
(545, 'Resin and Rosin and Rubber and Foam and Film and Elastomeric Materials', '13000000', '1', NULL, 'Y'),
(546, 'Industrial Manufacturing and Processing Machinery and Accessories', '23000000', '1', NULL, 'Y'),
(547, 'Information Technology Broadcasting and Telecommunications', '43000000', '1', NULL, 'Y'),
(548, 'Apparel and Luggage and Personal Care Products', '53000000', '1', NULL, 'Y'),
(549, 'Industrial Production and Manufacturing Services', '73000000', '1', NULL, 'Y'),
(550, 'Public Utilities and Public Sector Related Services', '83000000', '1', NULL, 'Y'),
(551, 'Politics and Civic Affairs Services', '93000000', '1', NULL, 'Y'),
(552, 'Paper Materials and Products', '14000000', '1', NULL, 'Y'),
(553, 'Material Handling and Conditioning and Storage Machinery and their Accessories and Supplies', '24000000', '1', NULL, 'Y');
INSERT INTO `itemclassification` (`id`, `name`, `itm_class_code`, `itm_class_level`, `tax_type_code`, `status`) VALUES
(554, 'Office Equipment and Accessories and Supplies', '44000000', '1', NULL, 'Y'),
(555, 'Timepieces and Jewelry and Gemstone Products', '54000000', '1', NULL, 'Y'),
(556, 'Financial and Insurance Services', '84000000', '1', NULL, 'Y'),
(557, 'Organizations and Clubs', '94000000', '1', NULL, 'Y'),
(558, 'Financial Instruments, Products, Contracts and Agreements', '64000000', '1', NULL, 'Y'),
(559, 'Fuels and Fuel Additives and Lubricants and Anti corrosive Materials', '15000000', '1', NULL, 'Y'),
(560, 'Commercial and Military and Private Vehicles and their Accessories and Components', '25000000', '1', NULL, 'Y'),
(561, 'Printing and Photographic and Audio and Visual Equipment and Supplies', '45000000', '1', NULL, 'Y'),
(562, 'Published Products', '55000000', '1', NULL, 'Y'),
(563, 'Healthcare Services', '85000000', '1', NULL, 'Y'),
(564, 'Land and Buildings and Structures and Thoroughfares', '95000000', '1', NULL, 'Y'),
(565, 'Power Generation and Distribution Machinery and Accessories', '26000000', '1', NULL, 'Y'),
(566, 'Defense and Law Enforcement and Security and Safety Equipment and Supplies', '46000000', '1', NULL, 'Y'),
(567, 'Industrial Cleaning Services', '76000000', '1', NULL, 'Y'),
(568, 'Education and Training Services', '86000000', '1', NULL, 'Y'),
(569, 'Furniture and Furnishings', '56000000', '1', NULL, 'Y'),
(570, 'Tools and General Machinery', '27000000', '1', NULL, 'Y'),
(571, 'Cleaning Equipment and Supplies', '47000000', '1', NULL, 'Y'),
(572, 'Environmental Services', '77000000', '1', NULL, 'Y'),
(573, 'Humanitarian Relief Items, Kits, or Accessories', '57000000', '1', NULL, 'Y'),
(574, 'Service Industry Machinery and Equipment and Supplies', '48000000', '1', NULL, 'Y'),
(575, 'Transportation and Storage and Mail Services', '78000000', '1', NULL, 'Y'),
(576, 'Electrical Systems and Lighting and Components and Accessories and Supplies', '39000000', '1', NULL, 'Y'),
(577, 'Sports and Recreational Equipment and Supplies and Accessories', '49000000', '1', NULL, 'Y'),
(578, 'Survival supplies', '57010000', '2', NULL, 'Y'),
(579, 'Services related to humanitarian relief actions', '57020000', '2', NULL, 'Y'),
(580, 'Humanitarian health supplies', '57030000', '2', NULL, 'Y'),
(581, 'Educational or recreational items', '57040000', '2', NULL, 'Y'),
(582, 'Humanitarian relief food', '57050000', '2', NULL, 'Y'),
(583, 'Shelter and relief items', '57060000', '2', NULL, 'Y'),
(584, 'Humanitarian logistics supplies', '57070000', '2', NULL, 'Y'),
(585, 'Humanitarian IT equipment', '57080000', '2', NULL, 'Y'),
(586, 'Live animals', '10100000', '2', NULL, 'Y'),
(587, 'Mining and quarrying machinery and equipment', '20100000', '2', NULL, 'Y'),
(588, 'Structural components and basic shapes', '30100000', '2', NULL, 'Y'),
(589, 'Heating and ventilation and air circulation', '40100000', '2', NULL, 'Y'),
(590, 'Nuts and seeds', '50100000', '2', NULL, 'Y'),
(591, 'Fisheries and aquaculture', '70100000', '2', NULL, 'Y'),
(592, 'Management advisory services', '80100000', '2', NULL, 'Y'),
(593, 'Restaurants and catering', '90100000', '2', NULL, 'Y'),
(594, 'Developmental and professional teaching aids and materials and accessories and supplies', '60100000', '2', NULL, 'Y'),
(595, 'Minerals and ores and metals', '11100000', '2', NULL, 'Y'),
(596, 'Agricultural and forestry and landscape machinery and equipment', '21100000', '2', NULL, 'Y'),
(597, 'Castings and casting assemblies', '31100000', '2', NULL, 'Y'),
(598, 'Laboratory and scientific equipment', '41100000', '2', NULL, 'Y'),
(599, 'Amebicides and trichomonacides and antiprotozoals', '51100000', '2', NULL, 'Y'),
(600, 'Mining services', '71100000', '2', NULL, 'Y'),
(601, 'Professional engineering services', '81100000', '2', NULL, 'Y'),
(602, 'Personal appearance', '91100000', '2', NULL, 'Y'),
(603, 'Heavy construction machinery and equipment', '22100000', '2', NULL, 'Y'),
(604, 'Printed circuits and integrated circuits and microassemblies', '32100000', '2', NULL, 'Y'),
(605, 'Floor coverings', '52100000', '2', NULL, 'Y'),
(606, 'Building and facility maintenance and repair services', '72100000', '2', NULL, 'Y'),
(607, 'Advertising', '82100000', '2', NULL, 'Y'),
(608, 'Public order and safety', '92100000', '2', NULL, 'Y'),
(609, 'Rubber and elastomers', '13100000', '2', NULL, 'Y'),
(610, 'Raw materials processing machinery', '23100000', '2', NULL, 'Y'),
(611, 'Clothing', '53100000', '2', NULL, 'Y'),
(612, 'Plastic and chemical industries', '73100000', '2', NULL, 'Y'),
(613, 'Utilities', '83100000', '2', NULL, 'Y'),
(614, 'Political systems and institutions', '93100000', '2', NULL, 'Y'),
(615, 'Paper materials', '14100000', '2', NULL, 'Y'),
(616, 'Material handling machinery and equipment', '24100000', '2', NULL, 'Y'),
(617, 'Office machines and their supplies and accessories', '44100000', '2', NULL, 'Y'),
(618, 'Jewelry', '54100000', '2', NULL, 'Y'),
(619, 'Development finance', '84100000', '2', NULL, 'Y'),
(620, 'Work related organizations', '94100000', '2', NULL, 'Y'),
(621, 'Bank offered products ', '64100000', '2', NULL, 'Y'),
(622, 'Fuels', '15100000', '2', NULL, 'Y'),
(623, 'Motor vehicles', '25100000', '2', NULL, 'Y'),
(624, 'Printing and publishing equipment', '45100000', '2', NULL, 'Y'),
(625, 'Printed media', '55100000', '2', NULL, 'Y'),
(626, 'Comprehensive health services', '85100000', '2', NULL, 'Y'),
(627, 'Land parcels', '95100000', '2', NULL, 'Y'),
(628, 'Power sources', '26100000', '2', NULL, 'Y'),
(629, 'Light weapons and ammunition', '46100000', '2', NULL, 'Y'),
(630, 'Accommodation furniture', '56100000', '2', NULL, 'Y'),
(631, 'Decontamination services', '76100000', '2', NULL, 'Y'),
(632, 'Vocational training', '86100000', '2', NULL, 'Y'),
(633, 'Water and wastewater treatment supply and disposal', '47100000', '2', NULL, 'Y'),
(634, 'Environmental management', '77100000', '2', NULL, 'Y'),
(635, 'Institutional food services equipment', '48100000', '2', NULL, 'Y'),
(636, 'Mail and cargo transport', '78100000', '2', NULL, 'Y'),
(637, 'Lamps and lightbulbs and lamp components', '39100000', '2', NULL, 'Y'),
(638, 'Collectibles and awards', '49100000', '2', NULL, 'Y'),
(639, 'Well drilling and operation equipment', '20110000', '2', NULL, 'Y'),
(640, 'Concrete and cement and plaster', '30110000', '2', NULL, 'Y'),
(641, 'Meat and poultry products', '50110000', '2', NULL, 'Y'),
(642, 'Horticulture', '70110000', '2', NULL, 'Y'),
(643, 'Human resources services', '80110000', '2', NULL, 'Y'),
(644, 'Hotels and lodging and meeting facilities', '90110000', '2', NULL, 'Y'),
(645, 'Domestic pet products', '10110000', '2', NULL, 'Y'),
(646, 'Classroom decoratives and supplies', '60110000', '2', NULL, 'Y'),
(647, 'Earth and stone', '11110000', '2', NULL, 'Y'),
(648, 'Fishing and aquaculture equipment', '21110000', '2', NULL, 'Y'),
(649, 'Extrusions', '31110000', '2', NULL, 'Y'),
(650, 'Measuring and observing and testing instruments', '41110000', '2', NULL, 'Y'),
(651, 'Antineoplastic agents', '51110000', '2', NULL, 'Y'),
(652, 'Oil and gas exploration services', '71110000', '2', NULL, 'Y'),
(653, 'Computer services', '81110000', '2', NULL, 'Y'),
(654, 'Domestic and personal assistance', '91110000', '2', NULL, 'Y'),
(655, 'Discrete semiconductor devices', '32110000', '2', NULL, 'Y'),
(656, 'Writing and translations', '82110000', '2', NULL, 'Y'),
(657, 'Military services and national defense', '92110000', '2', NULL, 'Y'),
(658, 'Residential building construction services', '72110000', '2', NULL, 'Y'),
(659, 'Petroleum processing machinery', '23110000', '2', NULL, 'Y'),
(660, 'Footwear', '53110000', '2', NULL, 'Y'),
(661, 'Wood and paper industries', '73110000', '2', NULL, 'Y'),
(662, 'Telecommunications media services', '83110000', '2', NULL, 'Y'),
(663, 'Socio political conditions', '93110000', '2', NULL, 'Y'),
(664, 'Resins and rosins and other resin derived materials', '13110000', '2', NULL, 'Y'),
(665, 'Paper products', '14110000', '2', NULL, 'Y'),
(666, 'Containers and storage', '24110000', '2', NULL, 'Y'),
(667, 'Office and desk accessories', '44110000', '2', NULL, 'Y'),
(668, 'Timepieces', '54110000', '2', NULL, 'Y'),
(669, 'Accounting and bookkeeping services', '84110000', '2', NULL, 'Y'),
(670, 'Religious organizations', '94110000', '2', NULL, 'Y'),
(671, 'Securities', '64110000', '2', NULL, 'Y'),
(672, 'Gaseous fuels and additives', '15110000', '2', NULL, 'Y'),
(673, 'Marine transport', '25110000', '2', NULL, 'Y'),
(674, 'Audio and visual presentation and composing equipment', '45110000', '2', NULL, 'Y'),
(675, 'Electronic reference material', '55110000', '2', NULL, 'Y'),
(676, 'Disease prevention and control', '85110000', '2', NULL, 'Y'),
(677, 'Thoroughfares', '95110000', '2', NULL, 'Y'),
(678, 'Batteries and generators and kinetic power transmission', '26110000', '2', NULL, 'Y'),
(679, 'Conventional war weapons', '46110000', '2', NULL, 'Y'),
(680, 'Cleaning and janitorial services', '76110000', '2', NULL, 'Y'),
(681, 'Alternative educational systems', '86110000', '2', NULL, 'Y'),
(682, 'Commercial and industrial furniture', '56110000', '2', NULL, 'Y'),
(683, 'Hand tools', '27110000', '2', NULL, 'Y'),
(684, 'Industrial laundry and dry cleaning equipment', '47110000', '2', NULL, 'Y'),
(685, 'Environmental protection', '77110000', '2', NULL, 'Y'),
(686, 'Passenger transport', '78110000', '2', NULL, 'Y'),
(687, 'Vending machines', '48110000', '2', NULL, 'Y'),
(688, 'Lighting Fixtures and Accessories', '39110000', '2', NULL, 'Y'),
(689, 'Animal feed', '10120000', '2', NULL, 'Y'),
(690, 'Roads and landscape', '30120000', '2', NULL, 'Y'),
(691, 'Seafood', '50120000', '2', NULL, 'Y'),
(692, 'Livestock services', '70120000', '2', NULL, 'Y'),
(693, 'Legal services', '80120000', '2', NULL, 'Y'),
(694, 'Travel facilitation', '90120000', '2', NULL, 'Y'),
(695, 'Arts and crafts equipment and accessories and supplies', '60120000', '2', NULL, 'Y'),
(696, 'Oil and gas drilling and exploration equipment', '20120000', '2', NULL, 'Y'),
(697, 'Non edible plant and forestry products', '11120000', '2', NULL, 'Y'),
(698, 'Laboratory supplies and fixtures', '41120000', '2', NULL, 'Y'),
(699, 'Antiarrythmics and antianginals and cardioplegics and drugs for heart failure', '51120000', '2', NULL, 'Y'),
(700, 'Economics', '81120000', '2', NULL, 'Y'),
(701, 'Well drilling and construction services', '71120000', '2', NULL, 'Y'),
(702, 'Passive discrete components', '32120000', '2', NULL, 'Y'),
(703, 'Veterinary equipment and supplies', '42120000', '2', NULL, 'Y'),
(704, 'Bedclothes and table and kitchen linen and towels', '52120000', '2', NULL, 'Y'),
(705, 'Reproduction services', '82120000', '2', NULL, 'Y'),
(706, 'Security and personal safety', '92120000', '2', NULL, 'Y'),
(707, 'Nonresidential building construction services', '72120000', '2', NULL, 'Y'),
(708, 'Textile and fabric machinery and accessories', '23120000', '2', NULL, 'Y'),
(709, 'Luggage and handbags and packs and cases', '53120000', '2', NULL, 'Y'),
(710, 'Metal and mineral industries', '73120000', '2', NULL, 'Y'),
(711, 'Information services', '83120000', '2', NULL, 'Y'),
(712, 'International relations', '93120000', '2', NULL, 'Y'),
(713, 'Industrial use papers', '14120000', '2', NULL, 'Y'),
(714, 'Packaging materials', '24120000', '2', NULL, 'Y'),
(715, 'Office supplies', '44120000', '2', NULL, 'Y'),
(716, 'Gemstones', '54120000', '2', NULL, 'Y'),
(717, 'Banking and investment', '84120000', '2', NULL, 'Y'),
(718, 'Clubs', '94120000', '2', NULL, 'Y'),
(719, 'Insurable interest contracts', '64120000', '2', NULL, 'Y'),
(720, 'Lubricants and oils and greases and anti corrosives', '15120000', '2', NULL, 'Y'),
(721, 'Railway and tramway machinery and equipment', '25120000', '2', NULL, 'Y'),
(722, 'Photographic or filming or video equipment', '45120000', '2', NULL, 'Y'),
(723, 'Signage and accessories', '55120000', '2', NULL, 'Y'),
(724, 'Medical practice', '85120000', '2', NULL, 'Y'),
(725, 'Permanent buildings and structures', '95120000', '2', NULL, 'Y'),
(726, 'Electrical wire and cable and harness', '26120000', '2', NULL, 'Y'),
(727, 'Missiles', '46120000', '2', NULL, 'Y'),
(728, 'Refuse disposal and treatment', '76120000', '2', NULL, 'Y'),
(729, 'Educational institutions', '86120000', '2', NULL, 'Y'),
(730, 'Classroom and instructional and institutional furniture and fixtures', '56120000', '2', NULL, 'Y'),
(731, 'Janitorial equipment', '47120000', '2', NULL, 'Y'),
(732, 'Pollution tracking and monitoring and rehabilitation', '77120000', '2', NULL, 'Y'),
(733, 'Hydraulic machinery and equipment', '27120000', '2', NULL, 'Y'),
(734, 'Material packing and handling', '78120000', '2', NULL, 'Y'),
(735, 'Gambling or wagering equipment', '48120000', '2', NULL, 'Y'),
(736, 'Electrical equipment and components and supplies', '39120000', '2', NULL, 'Y'),
(737, 'Camping and outdoor equipment and accessories', '49120000', '2', NULL, 'Y'),
(738, 'Structural building products', '30130000', '2', NULL, 'Y'),
(739, 'Musical Instruments and parts and accessories', '60130000', '2', NULL, 'Y'),
(740, 'Dairy products and eggs', '50130000', '2', NULL, 'Y'),
(741, 'Land and soil preparation and management and protection', '70130000', '2', NULL, 'Y'),
(742, 'Real estate services', '80130000', '2', NULL, 'Y'),
(743, 'Performing arts', '90130000', '2', NULL, 'Y'),
(744, 'Oil and gas drilling and operation materials', '20130000', '2', NULL, 'Y'),
(745, 'Animal containment and habitats', '10130000', '2', NULL, 'Y'),
(746, 'Non edible animal products', '11130000', '2', NULL, 'Y'),
(747, 'Forgings', '31130000', '2', NULL, 'Y'),
(748, 'Hematolic drugs', '51130000', '2', NULL, 'Y'),
(749, 'Statistics', '81130000', '2', NULL, 'Y'),
(750, 'Oil and gas extraction and production enhancement services', '71130000', '2', NULL, 'Y'),
(751, 'Explosive materials', '12130000', '2', NULL, 'Y'),
(752, 'Window treatments', '52130000', '2', NULL, 'Y'),
(753, 'Photographic services', '82130000', '2', NULL, 'Y'),
(754, 'Electronic hardware and component parts and accessories', '32130000', '2', NULL, 'Y'),
(755, 'Medical apparel and textiles', '42130000', '2', NULL, 'Y'),
(756, 'Lapidary machinery and equipment', '23130000', '2', NULL, 'Y'),
(757, 'Personal care products', '53130000', '2', NULL, 'Y'),
(758, 'Food and beverage industries', '73130000', '2', NULL, 'Y'),
(759, 'Humanitarian aid and relief', '93130000', '2', NULL, 'Y'),
(760, 'Industrial refrigeration', '24130000', '2', NULL, 'Y'),
(761, 'Civic organizations and associations and movements', '94130000', '2', NULL, 'Y'),
(762, 'Insurance and retirement services', '84130000', '2', NULL, 'Y'),
(763, 'Fuel for nuclear reactors', '15130000', '2', NULL, 'Y'),
(764, 'Aircraft', '25130000', '2', NULL, 'Y'),
(765, 'Photographic and recording media', '45130000', '2', NULL, 'Y'),
(766, 'Medical science research and experimentation', '85130000', '2', NULL, 'Y'),
(767, 'Portable buildings and structures', '95130000', '2', NULL, 'Y'),
(768, 'Power generation', '26130000', '2', NULL, 'Y'),
(769, 'Rockets and subsystems', '46130000', '2', NULL, 'Y'),
(770, 'Toxic and hazardous waste cleanup', '76130000', '2', NULL, 'Y'),
(771, 'Specialized educational services', '86130000', '2', NULL, 'Y'),
(772, 'Merchandising furniture and accessories', '56130000', '2', NULL, 'Y'),
(773, 'Cleaning and janitorial supplies', '47130000', '2', NULL, 'Y'),
(774, 'Pollutants tracking and monitoring and rehabilitation services', '77130000', '2', NULL, 'Y'),
(775, 'Pneumatic machinery and equipment', '27130000', '2', NULL, 'Y'),
(776, 'Storage', '78130000', '2', NULL, 'Y'),
(777, 'Funeral equipment and materials', '48130000', '2', NULL, 'Y'),
(778, 'Fishing and hunting equipment', '49130000', '2', NULL, 'Y'),
(779, 'Electrical wire management devices and accessories and supplies', '39130000', '2', NULL, 'Y'),
(780, 'Saddlery and harness goods', '10140000', '2', NULL, 'Y'),
(781, 'Insulation', '30140000', '2', NULL, 'Y'),
(782, 'Fluid and gas distribution', '40140000', '2', NULL, 'Y'),
(783, 'Toys and games', '60140000', '2', NULL, 'Y'),
(784, 'Crop production and management and protection', '70140000', '2', NULL, 'Y'),
(785, 'Marketing and distribution', '80140000', '2', NULL, 'Y'),
(786, 'Commercial sports', '90140000', '2', NULL, 'Y'),
(787, 'Oil and gas operating and production equipment', '20140000', '2', NULL, 'Y'),
(788, 'Scrap and waste materials', '11140000', '2', NULL, 'Y'),
(789, 'Moldings', '31140000', '2', NULL, 'Y'),
(790, 'Central nervous system drugs', '51140000', '2', NULL, 'Y'),
(791, 'Manufacturing technologies', '81140000', '2', NULL, 'Y'),
(792, 'Oil and gas restoration and reclamation services', '71140000', '2', NULL, 'Y'),
(793, 'Domestic appliances', '52140000', '2', NULL, 'Y'),
(794, 'Graphic design', '82140000', '2', NULL, 'Y'),
(795, 'Elements and gases', '12140000', '2', NULL, 'Y'),
(796, 'Patient care and treatment products and supplies', '42140000', '2', NULL, 'Y'),
(797, 'Electron tube devices and accessories', '32140000', '2', NULL, 'Y'),
(798, 'Heavy construction services', '72140000', '2', NULL, 'Y'),
(799, 'Leatherworking repairing machinery and equipment', '23140000', '2', NULL, 'Y'),
(800, 'Fibers and textiles and fabric industries', '73140000', '2', NULL, 'Y'),
(801, 'Community and social services', '93140000', '2', NULL, 'Y'),
(802, 'Sewing supplies and accessories', '53140000', '2', NULL, 'Y'),
(803, 'Credit agencies', '84140000', '2', NULL, 'Y'),
(804, 'Packing supplies', '24140000', '2', NULL, 'Y'),
(805, 'Governmental property right conferrals', '64140000', '2', NULL, 'Y'),
(806, 'Prefabricated buildings and structures', '95140000', '2', NULL, 'Y'),
(807, 'Photographic filmmaking supplies', '45140000', '2', NULL, 'Y'),
(808, 'Alternative and holistic medicine', '85140000', '2', NULL, 'Y'),
(809, 'Atomic and nuclear energy machinery and equipment', '26140000', '2', NULL, 'Y'),
(810, 'Launchers', '46140000', '2', NULL, 'Y'),
(811, 'Educational facilities', '86140000', '2', NULL, 'Y'),
(812, 'Decorative adornments', '56140000', '2', NULL, 'Y'),
(813, 'Automotive specialty tools', '27140000', '2', NULL, 'Y'),
(814, 'Environmental laboratory services', '77140000', '2', NULL, 'Y'),
(815, 'Transport services', '78140000', '2', NULL, 'Y'),
(816, 'Watersports equipment', '49140000', '2', NULL, 'Y'),
(817, 'Seeds and bulbs and seedlings and cuttings', '10150000', '2', NULL, 'Y'),
(818, 'Exterior finishing materials', '30150000', '2', NULL, 'Y'),
(819, 'Industrial pumps and compressors', '40150000', '2', NULL, 'Y'),
(820, 'Edible oils and fats', '50150000', '2', NULL, 'Y'),
(821, 'Forestry', '70150000', '2', NULL, 'Y'),
(822, 'Trade policy and services', '80150000', '2', NULL, 'Y'),
(823, 'Entertainment services', '90150000', '2', NULL, 'Y'),
(824, 'Fibers and threads and yarns', '11150000', '2', NULL, 'Y'),
(825, 'Rope and chain and cable and wire and strap', '31150000', '2', NULL, 'Y'),
(826, 'Autonomic nervous system drugs', '51150000', '2', NULL, 'Y'),
(827, 'Earth science services', '81150000', '2', NULL, 'Y'),
(828, 'Oil and gas data management and processing services', '71150000', '2', NULL, 'Y'),
(829, 'Clinical laboratory and toxicology testing systems, components, and supplies', '41150000', '2', NULL, 'Y'),
(830, 'Domestic kitchenware and kitchen supplies', '52150000', '2', NULL, 'Y'),
(831, 'Professional artists and performers', '82150000', '2', NULL, 'Y'),
(832, 'Dental equipment and supplies', '42150000', '2', NULL, 'Y'),
(833, 'Automation control devices and components and accessories', '32150000', '2', NULL, 'Y'),
(834, 'Specialized trade construction and maintenance services', '72150000', '2', NULL, 'Y'),
(835, 'Industrial process machinery and equipment and supplies', '23150000', '2', NULL, 'Y'),
(836, 'Manufacturing support services', '73150000', '2', NULL, 'Y'),
(837, 'Public administration and finance services', '93150000', '2', NULL, 'Y'),
(838, 'Spacecraft', '25150000', '2', NULL, 'Y'),
(839, 'Food and nutrition services', '85150000', '2', NULL, 'Y'),
(840, 'Law enforcement', '46150000', '2', NULL, 'Y'),
(841, 'Winter sports equipment', '49150000', '2', NULL, 'Y'),
(842, 'Floriculture and silviculture products', '10160000', '2', NULL, 'Y'),
(843, 'Interior finishing materials', '30160000', '2', NULL, 'Y'),
(844, 'Industrial filtering and purification', '40160000', '2', NULL, 'Y'),
(845, 'Chocolate and sugars and sweeteners and confectionary products', '50160000', '2', NULL, 'Y'),
(846, 'Wildlife and flora', '70160000', '2', NULL, 'Y'),
(847, 'Business administration services', '80160000', '2', NULL, 'Y'),
(848, 'Fabrics and leather materials', '11160000', '2', NULL, 'Y'),
(849, 'Hardware', '31160000', '2', NULL, 'Y'),
(850, 'Drugs affecting the respiratory tract', '51160000', '2', NULL, 'Y'),
(851, 'Oil and gas well project management services', '71160000', '2', NULL, 'Y'),
(852, 'Information Technology Service Delivery', '81160000', '2', NULL, 'Y'),
(853, 'Dialysis equipment and supplies', '42160000', '2', NULL, 'Y'),
(854, 'Consumer electronics', '52160000', '2', NULL, 'Y'),
(855, 'Additives', '12160000', '2', NULL, 'Y'),
(856, 'Film and theater production support services', '82160000', '2', NULL, 'Y'),
(857, 'Foundry machines and equipment and supplies', '23160000', '2', NULL, 'Y'),
(858, 'Machinery and transport equipment manufacture', '73160000', '2', NULL, 'Y'),
(859, 'Taxation', '93160000', '2', NULL, 'Y'),
(860, 'Non motorized cycles', '25160000', '2', NULL, 'Y'),
(861, 'Medical Surgical Equipment Maintenance Refurbishment and Repair Services', '85160000', '2', NULL, 'Y'),
(862, 'Public safety and control', '46160000', '2', NULL, 'Y'),
(863, 'Field and court sports equipment', '49160000', '2', NULL, 'Y'),
(864, 'Fertilizers and plant nutrients and herbicides', '10170000', '2', NULL, 'Y'),
(865, 'Pipe piping and pipe fittings', '40170000', '2', NULL, 'Y'),
(866, 'Doors and windows and glass', '30170000', '2', NULL, 'Y'),
(867, 'Seasonings and preservatives', '50170000', '2', NULL, 'Y'),
(868, 'Water resources development and oversight', '70170000', '2', NULL, 'Y'),
(869, 'Public relations and professional communications services', '80170000', '2', NULL, 'Y'),
(870, 'Bearings and bushings and wheels and gears', '31170000', '2', NULL, 'Y'),
(871, 'Drugs affecting the gastrointestinal system', '51170000', '2', NULL, 'Y'),
(872, 'Alloys', '11170000', '2', NULL, 'Y'),
(873, 'Biological science services', '81170000', '2', NULL, 'Y'),
(874, 'Diagnostic and microbiological devices', '41170000', '2', NULL, 'Y'),
(875, 'Colorants', '12170000', '2', NULL, 'Y'),
(876, 'Domestic wall treatments', '52170000', '2', NULL, 'Y'),
(877, 'Mobile medical services products', '42170000', '2', NULL, 'Y'),
(878, 'Manufacture of electrical goods and precision instruments', '73170000', '2', NULL, 'Y'),
(879, 'Trade policy and regulation', '93170000', '2', NULL, 'Y'),
(880, 'Transportation components and systems', '25170000', '2', NULL, 'Y'),
(881, 'Death and dying support services', '85170000', '2', NULL, 'Y'),
(882, 'Security surveillance and detection', '46170000', '2', NULL, 'Y'),
(883, 'Gymnastics and boxing equipment', '49170000', '2', NULL, 'Y'),
(884, 'Plumbing fixtures', '30180000', '2', NULL, 'Y'),
(885, 'Bread and bakery products', '50180000', '2', NULL, 'Y'),
(886, 'Tubes tubing and tube fittings', '40180000', '2', NULL, 'Y'),
(887, 'Packings glands boots and covers', '31180000', '2', NULL, 'Y'),
(888, 'Hormones and hormone antagonists', '51180000', '2', NULL, 'Y'),
(889, 'Metal oxide', '11180000', '2', NULL, 'Y'),
(890, 'Waxes and oils', '12180000', '2', NULL, 'Y'),
(891, 'Patient exam and monitoring products', '42180000', '2', NULL, 'Y'),
(892, 'Industrial food and beverage equipment', '23180000', '2', NULL, 'Y'),
(893, 'Machining and processing services', '73180000', '2', NULL, 'Y'),
(894, 'Vehicle bodies and trailers', '25180000', '2', NULL, 'Y'),
(895, 'Personal safety and protection', '46180000', '2', NULL, 'Y'),
(896, 'Transportation repair or maintenance services', '78180000', '2', NULL, 'Y'),
(897, 'Target and table games and equipment', '49180000', '2', NULL, 'Y'),
(898, 'Pest control products', '10190000', '2', NULL, 'Y'),
(899, 'Construction and maintenance support equipment', '30190000', '2', NULL, 'Y'),
(900, 'Prepared and preserved foods', '50190000', '2', NULL, 'Y'),
(901, 'Agricultural machinery and equipment assembly and installation services', '70190000', '2', NULL, 'Y'),
(902, 'Grinding and polishing and smoothing materials', '31190000', '2', NULL, 'Y'),
(903, 'Agents affecting water and electrolytes', '51190000', '2', NULL, 'Y'),
(904, 'Metal waste scrap and by products', '11190000', '2', NULL, 'Y'),
(905, 'Solvents', '12190000', '2', NULL, 'Y'),
(906, 'Medical facility products', '42190000', '2', NULL, 'Y'),
(907, 'Communications Devices and Accessories', '43190000', '2', NULL, 'Y'),
(908, 'Mixers and their parts and accessories', '23190000', '2', NULL, 'Y'),
(909, 'Transportation services equipment', '25190000', '2', NULL, 'Y'),
(910, 'Fire protection', '46190000', '2', NULL, 'Y'),
(911, 'Beverages', '50200000', '2', NULL, 'Y'),
(912, 'Live rose bushes', '10200000', '2', NULL, 'Y'),
(913, 'Adhesives and sealants', '31200000', '2', NULL, 'Y'),
(914, 'Immunomodulating drugs', '51200000', '2', NULL, 'Y'),
(915, 'Medical diagnostic imaging and nuclear medicine products', '42200000', '2', NULL, 'Y'),
(916, 'Components for information technology or broadcasting or telecommunications', '43200000', '2', NULL, 'Y'),
(917, 'Mass transfer equipment', '23200000', '2', NULL, 'Y'),
(918, 'Aerospace systems and components and equipment', '25200000', '2', NULL, 'Y'),
(919, 'Defense and law enforcement and security and safety training equipment', '46200000', '2', NULL, 'Y'),
(920, 'Aviation-Related Services And Consultancy', '78200000', '2', NULL, 'Y'),
(921, 'Fitness equipment', '49200000', '2', NULL, 'Y'),
(922, 'Tobacco and smoking products and substitutes', '50210000', '2', NULL, 'Y'),
(923, 'Live plants of high species or variety count flowers', '10210000', '2', NULL, 'Y'),
(924, 'Paints and primers and finishes', '31210000', '2', NULL, 'Y'),
(925, 'Independent living aids for the physically challenged', '42210000', '2', NULL, 'Y'),
(926, 'Computer Equipment and Accessories', '43210000', '2', NULL, 'Y'),
(927, 'Electronic manufacturing machinery and equipment and accessories', '23210000', '2', NULL, 'Y'),
(928, 'Diagnoses of infectious and parasitic diseases-part a', '85210000', '2', NULL, 'Y'),
(929, 'Workplace safety equipment and supplies and training materials', '46210000', '2', NULL, 'Y'),
(930, 'Other sports', '49210000', '2', NULL, 'Y'),
(931, 'Cereal and pulse products', '50220000', '2', NULL, 'Y'),
(932, 'Live plants of low species or variety count flowers', '10220000', '2', NULL, 'Y'),
(933, 'Dyeing and tanning extracts', '31220000', '2', NULL, 'Y'),
(934, 'Intravenous and arterial administration products', '42220000', '2', NULL, 'Y'),
(935, 'Data Voice or Multimedia Network Equipment or Platforms and Accessories', '43220000', '2', NULL, 'Y'),
(936, 'Chicken processing machinery and equipment', '23220000', '2', NULL, 'Y'),
(937, 'Military weapon and ammunition disarmament and disposal equipment and related products', '46220000', '2', NULL, 'Y'),
(938, 'Sports equipment and accessories', '49220000', '2', NULL, 'Y'),
(939, 'Machined raw stock', '31230000', '2', NULL, 'Y'),
(940, 'Clinical nutrition', '42230000', '2', NULL, 'Y'),
(941, 'Software', '43230000', '2', NULL, 'Y'),
(942, 'Sawmilling and lumber processing machinery and equipment', '23230000', '2', NULL, 'Y'),
(943, 'Portable Structure Building Components', '30240000', '2', NULL, 'Y'),
(944, 'Industrial optics', '31240000', '2', NULL, 'Y'),
(945, 'Drugs affecting the ears, eye, nose and skin', '51240000', '2', NULL, 'Y'),
(946, 'Orthopedic and prosthetic and sports medicine products', '42240000', '2', NULL, 'Y'),
(947, 'Metal cutting machinery and accessories', '23240000', '2', NULL, 'Y'),
(948, 'Recreation and playground and swimming and spa equipment and supplies', '49240000', '2', NULL, 'Y'),
(949, 'Underground mining structures and materials', '30250000', '2', NULL, 'Y'),
(950, 'Pneumatic and hydraulic and electric control systems', '31250000', '2', NULL, 'Y'),
(951, 'Brass instruments', '60131100', '3', NULL, 'Y'),
(952, 'Games', '60141100', '3', NULL, 'Y'),
(953, 'Well plugging and abandonment services', '71141100', '3', NULL, 'Y'),
(954, 'Infrastructure building and surfacing and paving services', '72141100', '3', NULL, 'Y'),
(955, 'Oilfield data management services', '71151100', '3', NULL, 'Y'),
(956, 'Plumbing construction services', '72151100', '3', NULL, 'Y'),
(957, 'Coating services', '73181100', '3', NULL, 'Y'),
(958, 'Continuous mixers', '23191100', '3', NULL, 'Y'),
(959, 'Small arms weapons training equipment', '46201100', '3', NULL, 'Y'),
(960, 'Cereals', '50221100', '3', NULL, 'Y'),
(961, 'Killing and defeathering department machinery and equipment', '23221100', '3', NULL, 'Y'),
(962, 'Ophthalmic agents', '51241100', '3', NULL, 'Y'),
(963, 'Electric direct current DC motors', '26101200', '3', NULL, 'Y'),
(964, 'Plastic films', '13111200', '3', NULL, 'Y'),
(965, 'Agricultural building construction services', '72121200', '3', NULL, 'Y'),
(966, 'Woodwind instruments', '60131200', '3', NULL, 'Y'),
(967, 'Marine construction services', '72141200', '3', NULL, 'Y'),
(968, 'Heating and cooling and air conditioning HVAC construction and maintenance services', '72151200', '3', NULL, 'Y'),
(969, 'Industrial drying equipment', '23201200', '3', NULL, 'Y'),
(970, 'Dermatologic agents', '51241200', '3', NULL, 'Y'),
(971, 'Non electric motors', '26101300', '3', NULL, 'Y'),
(972, 'Foams', '13111300', '3', NULL, 'Y'),
(973, 'Art and craft cutting products', '60121300', '3', NULL, 'Y'),
(974, 'Automotive garage and service station construction services', '72121300', '3', NULL, 'Y'),
(975, 'Electrical boxes and enclosures and fittings and accessories', '39121300', '3', NULL, 'Y'),
(976, 'String instruments', '60131300', '3', NULL, 'Y'),
(977, 'Painting and paper hanging services', '72151300', '3', NULL, 'Y'),
(978, 'Flour and milled products', '50221300', '3', NULL, 'Y'),
(979, 'Motor or generator components', '26101400', '3', NULL, 'Y'),
(980, 'Aviation Specific Training', '86101400', '3', NULL, 'Y'),
(981, 'Language Specific Editorial and Writing Services', '82111400', '3', NULL, 'Y'),
(982, 'Classroom And Language Laboratory Equipment & Interpretation Systems', '45111400', '3', NULL, 'Y'),
(983, 'Completion tools and equipment', '20121400', '3', NULL, 'Y'),
(984, 'Specialized public building construction services', '72121400', '3', NULL, 'Y'),
(985, 'Cafeteria and lunchroom furnishings', '56121400', '3', NULL, 'Y'),
(986, 'Electrical lugs plugs and connectors', '39121400', '3', NULL, 'Y'),
(987, 'Percussion instruments', '60131400', '3', NULL, 'Y'),
(988, 'Safety and Rescue Aircraft', '25131400', '3', NULL, 'Y'),
(989, 'Fundraising Services', '80141400', '3', NULL, 'Y'),
(990, 'Detention facility construction and repair services', '72141400', '3', NULL, 'Y'),
(991, 'Wall covering construction services', '72151400', '3', NULL, 'Y'),
(992, 'System Cards', '43201400', '3', NULL, 'Y'),
(993, 'Metal grinding machines', '23241400', '3', NULL, 'Y'),
(994, 'Welding machinery', '23271400', '3', NULL, 'Y'),
(995, 'Livestock', '10101500', '3', NULL, 'Y'),
(996, 'Cutting equipment', '20101500', '3', NULL, 'Y'),
(997, 'Angles', '30101500', '3', NULL, 'Y'),
(998, 'Ventilation', '40101500', '3', NULL, 'Y'),
(999, 'Fisheries operations', '70101500', '3', NULL, 'Y'),
(1000, 'Business and corporate management consultation services', '80101500', '3', NULL, 'Y');

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

--
-- Table structure for table `itemstatuscodes`
--

CREATE TABLE IF NOT EXISTS `itemstatuscodes` (
  `id` int(50) NOT NULL,
  `code` varchar(50) NOT NULL,
  `description` text,
  `status` varchar(50) NOT NULL,
  `name` text NOT NULL,
  `sort_order` varchar(50) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `itemstatuscodes`
--

INSERT INTO `itemstatuscodes` (`id`, `code`, `description`, `status`, `name`, `sort_order`) VALUES
(1, 'Y', NULL, 'Y', 'Active', '1'),
(2, 'N', NULL, 'N', 'Inactive', '2');

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

--
-- Table structure for table `itemtypecodes`
--

CREATE TABLE IF NOT EXISTS `itemtypecodes` (
  `id` int(50) NOT NULL,
  `name` text NOT NULL,
  `code` varchar(50) NOT NULL,
  `description` text,
  `status` varchar(50) NOT NULL,
  `sort_order` varchar(50) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `itemtypecodes`
--

INSERT INTO `itemtypecodes` (`id`, `name`, `code`, `description`, `status`, `sort_order`) VALUES
(1, 'Raw Material', '1', 'Raw Material', 'Y', '1'),
(2, 'Finished Product', '2', 'Finished Product', 'Y', '2'),
(3, 'Service', '3', 'Service without stock', '', '');

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

--
-- Table structure for table `journal`
--

CREATE TABLE IF NOT EXISTS `journal` (
  `id` int(50) NOT NULL,
  `currency` varchar(50) NOT NULL,
  `amount` varchar(50) NOT NULL,
  `description` text NOT NULL,
  `journaldate` varchar(50) NOT NULL,
  `incharge` varchar(40) NOT NULL,
  `userid` varchar(50) NOT NULL,
  `companyid` varchar(50) NOT NULL,
  `entrydate` varchar(50) NOT NULL,
  `invoice` varchar(30) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `labels`
--

CREATE TABLE IF NOT EXISTS `labels` (
  `id` int(11) NOT NULL,
  `itemid` varchar(50) NOT NULL,
  `createdate` varchar(50) NOT NULL,
  `status` varchar(50) NOT NULL DEFAULT 'new',
  `userid` varchar(50) NOT NULL,
  `updatedate` varchar(50) NOT NULL,
  `companyid` varchar(100) NOT NULL,
  `code` varchar(30) NOT NULL,
  `branch` varchar(30) NOT NULL,
  `qty` decimal(10,4) NOT NULL,
  `buyingprice` decimal(10,2) NOT NULL,
  `sellingprice` decimal(10,2) NOT NULL,
  `invoice` varchar(50) DEFAULT NULL,
  `name` text NOT NULL,
  `description` text NOT NULL,
  `batchno` int(11) NOT NULL,
  `myid` int(50) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `labels`
--

INSERT INTO `labels` (`id`, `itemid`, `createdate`, `status`, `userid`, `updatedate`, `companyid`, `code`, `branch`, `qty`, `buyingprice`, `sellingprice`, `invoice`, `name`, `description`, `batchno`, `myid`) VALUES
(1, '', '2025-02-22 06:10:11', 'new', '1', '', '1', '6161101604192.00', '1', '0.0000', '0.00', '200.00', NULL, 'GUARANA ELECTRIC', '', 0, 0);

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

--
-- Table structure for table `labour`
--

CREATE TABLE IF NOT EXISTS `labour` (
  `id` int(11) NOT NULL,
  `code` varchar(20) NOT NULL,
  `createdate` varchar(20) NOT NULL,
  `qty` decimal(10,2) NOT NULL,
  `usedamount` decimal(10,2) NOT NULL,
  `balance` decimal(10,2) NOT NULL,
  `year` varchar(20) NOT NULL,
  `month` varchar(20) NOT NULL,
  `userid` int(11) NOT NULL,
  `companyid` int(11) NOT NULL,
  `branch` int(11) NOT NULL,
  `updatedby` int(11) NOT NULL,
  `description` text NOT NULL,
  `employeeid` varchar(30) NOT NULL,
  `exactdate` varchar(30) NOT NULL,
  `rate` decimal(10,2) NOT NULL,
  `total` decimal(10,2) NOT NULL,
  `type` varchar(20) NOT NULL DEFAULT 'pay',
  `status` int(20) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `landlord`
--

CREATE TABLE IF NOT EXISTS `landlord` (
  `id` int(40) NOT NULL,
  `firstname` varchar(100) NOT NULL,
  `lastname` varchar(100) NOT NULL,
  `location` varchar(100) NOT NULL,
  `phone` varchar(100) NOT NULL,
  `email` varchar(100) NOT NULL,
  `description` text NOT NULL,
  `idno` varchar(100) NOT NULL,
  `country` varchar(100) NOT NULL,
  `gender` varchar(10) NOT NULL,
  `createdat` varchar(100) NOT NULL,
  `updatedat` varchar(100) NOT NULL,
  `userid` varchar(100) NOT NULL,
  `county` varchar(40) NOT NULL,
  `accountname` varchar(100) NOT NULL,
  `accountno` varchar(100) NOT NULL,
  `companyid` varchar(100) NOT NULL,
  `status` varchar(10) NOT NULL DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `lease`
--

CREATE TABLE IF NOT EXISTS `lease` (
  `id` int(10) NOT NULL,
  `branchfrom` varchar(50) NOT NULL,
  `serial` varchar(50) NOT NULL,
  `qty` varchar(50) NOT NULL,
  `details` text NOT NULL,
  `dateleased` varchar(50) NOT NULL,
  `incharge` varchar(40) NOT NULL,
  `product` text NOT NULL,
  `userid` varchar(50) NOT NULL,
  `companyid` varchar(30) NOT NULL,
  `entrydate` varchar(50) NOT NULL,
  `supplier` varchar(30) NOT NULL,
  `original` decimal(10,2) NOT NULL,
  `balance` decimal(10,2) NOT NULL,
  `branchid` int(11) NOT NULL DEFAULT '1',
  `amount` varchar(10) NOT NULL DEFAULT '0.00',
  `duedate` varchar(20) NOT NULL,
  `status` varchar(30) NOT NULL DEFAULT 'Dispatched',
  `mode` varchar(30) NOT NULL,
  `invoice` varchar(30) NOT NULL,
  `totalamount` varchar(30) NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `leavegroup`
--

CREATE TABLE IF NOT EXISTS `leavegroup` (
  `id` int(10) unsigned NOT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `description` text COLLATE utf8_unicode_ci,
  `createdat` varchar(30) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updatedat` varchar(30) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0000-00-00 00:00:00',
  `total` int(30) NOT NULL,
  `startdate` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `enddate` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `defaultleavetype` int(30) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

--
-- Table structure for table `leaves`
--

CREATE TABLE IF NOT EXISTS `leaves` (
  `id` int(30) NOT NULL,
  `startdate` datetime DEFAULT NULL,
  `enddate` datetime DEFAULT NULL,
  `status` varchar(11) DEFAULT NULL,
  `employee` int(11) DEFAULT NULL,
  `cause` text,
  `startdatetype` varchar(12) DEFAULT NULL,
  `enddatetype` varchar(12) DEFAULT NULL,
  `duration` decimal(10,2) DEFAULT NULL,
  `type` int(11) DEFAULT NULL,
  `description` text COMMENT 'Comments on leave request',
  `change_type` int(11) NOT NULL,
  `updatedby` int(11) NOT NULL,
  `updateddate` timestamp NULL DEFAULT NULL,
  `photo` text NOT NULL,
  `incharge` varchar(30) NOT NULL,
  `userid` varchar(30) NOT NULL,
  `postedtime` varchar(30) NOT NULL,
  `img_id` text,
  `comments` text NOT NULL,
  `manager` int(10) NOT NULL,
  `companyid` int(11) DEFAULT '1',
  `branchid` int(20) NOT NULL DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='List of changes in leave requests table';

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

--
-- Table structure for table `leavetypes`
--

CREATE TABLE IF NOT EXISTS `leavetypes` (
  `id` int(11) NOT NULL,
  `name` varchar(50) NOT NULL,
  `description` text NOT NULL,
  `createdate` varchar(50) NOT NULL,
  `gender` varchar(30) NOT NULL,
  `deduct` varchar(10) NOT NULL,
  `companyid` int(11) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `leavetypes`
--

INSERT INTO `leavetypes` (`id`, `name`, `description`, `createdate`, `gender`, `deduct`, `companyid`) VALUES
(1, 'maternity leave', '', '2019-06-03 01:46:56pm', 'Female', 'No', 0),
(2, 'Normal leave', 'all', '2019-06-03 01:47:13pm', 'Both', 'No', 0),
(3, 'Emergency', '', '2019-06-03 01:47:41pm', 'Both', 'No', 0),
(4, 'Sick Leave', '', '2023-02-15 12:24:43pm', 'Both', 'No', 0);

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

--
-- Table structure for table `loggs`
--

CREATE TABLE IF NOT EXISTS `loggs` (
  `id` int(20) NOT NULL,
  `type` varchar(30) NOT NULL,
  `userid` varchar(30) NOT NULL,
  `timein` varchar(50) NOT NULL,
  `timeout` varchar(50) NOT NULL,
  `browser` text NOT NULL,
  `ip` text NOT NULL,
  `action` varchar(30) DEFAULT 'loggedin',
  `companyid` int(11) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `loggs`
--

INSERT INTO `loggs` (`id`, `type`, `userid`, `timein`, `timeout`, `browser`, `ip`, `action`, `companyid`) VALUES
(1, 'admin', '1', '2025-03-24 13:21:30', '2025-03-24 13:22:44', '', '::1', 'loggedin', 1);

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

--
-- Table structure for table `loyalitycards`
--

CREATE TABLE IF NOT EXISTS `loyalitycards` (
  `id` int(30) NOT NULL,
  `value` decimal(10,2) NOT NULL,
  `customer_id` int(10) DEFAULT NULL,
  `deleted` int(1) NOT NULL DEFAULT '0',
  `status` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `description` text COLLATE utf8_unicode_ci NOT NULL,
  `userid` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `dateposted` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `dateupdated` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `companyid` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `cardnumber` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `type` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `branchid` int(11) NOT NULL,
  `amount` decimal(10,2) NOT NULL,
  `mode` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `invoice` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `originalamount` decimal(10,2) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

--
-- Table structure for table `maincategory`
--

CREATE TABLE IF NOT EXISTS `maincategory` (
  `id` int(10) NOT NULL,
  `name` varchar(50) NOT NULL,
  `description` text NOT NULL,
  `createdate` varchar(50) NOT NULL,
  `status` varchar(50) NOT NULL DEFAULT 'active',
  `userid` varchar(50) NOT NULL,
  `updatedate` varchar(50) NOT NULL,
  `companyid` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `mainmenu`
--

CREATE TABLE IF NOT EXISTS `mainmenu` (
  `id` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `icon` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `status` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '1',
  `url` text COLLATE utf8_unicode_ci NOT NULL,
  `type` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'side',
  `sort` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `mainmenu`
--

INSERT INTO `mainmenu` (`id`, `name`, `icon`, `status`, `url`, `type`, `sort`) VALUES
('accomodation', 'Accomodation', '', '1', 'user/accomodation', 'side', 8),
('assetliability', 'Assets and Liabilities', '', '1', 'user/assetliability', 'side', 7),
('banking', 'Banking', '', '1', 'user/banking', 'side', 6),
('contact', 'Contacts', '', '1', 'user/contact', 'side', 4),
('goodservice', 'Goods and Services', '', '1', 'user/goodservice', 'side', 3),
('humanresource', 'HR', 'grouping', '1', 'user/viewrequest', 'side', 8),
('moneyin', 'Money In', '', '1', 'user/moneyin', 'side', 1),
('moneyout', 'Money out', '', '1', 'user/moneyout', 'side', 2),
('project', 'Projects', '', '1', 'user/project', 'side', 5),
('report', 'Reports', '', '1', 'user/report', 'side', 9),
('setting', 'Settings', '', '1', 'user/setting', 'side', 10);

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

--
-- Table structure for table `mainservices`
--

CREATE TABLE IF NOT EXISTS `mainservices` (
  `id` int(11) NOT NULL,
  `name` varchar(45) DEFAULT NULL,
  `companyid` int(11) NOT NULL DEFAULT '1'
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `mainservices`
--

INSERT INTO `mainservices` (`id`, `name`, `companyid`) VALUES
(1, 'General systems', 1),
(2, 'E-commerce', 1),
(3, 'Biometric', 1),
(4, 'Website', 1),
(5, 'PMS', 1),
(6, 'Bulk sms', 1),
(7, 'Pos', 1);

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

--
-- Table structure for table `mergedmpesa`
--

CREATE TABLE IF NOT EXISTS `mergedmpesa` (
  `id` int(11) NOT NULL,
  `amount` decimal(10,2) NOT NULL,
  `userid` int(20) NOT NULL,
  `companyid` int(5) NOT NULL,
  `dateposted` varchar(30) NOT NULL,
  `paymentstatus` varchar(10) NOT NULL,
  `branch` int(10) NOT NULL,
  `type` varchar(30) NOT NULL,
  `code` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `message`
--

CREATE TABLE IF NOT EXISTS `message` (
  `id` int(11) NOT NULL,
  `name` varchar(50) NOT NULL,
  `description` text NOT NULL,
  `createdate` varchar(50) NOT NULL,
  `status` varchar(50) NOT NULL DEFAULT 'active',
  `userid` varchar(50) NOT NULL,
  `updatedate` varchar(50) NOT NULL,
  `companyid` varchar(50) NOT NULL,
  `branchid` int(11) NOT NULL DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `meterreading`
--

CREATE TABLE IF NOT EXISTS `meterreading` (
  `id` int(11) NOT NULL,
  `houseno` varchar(60) NOT NULL,
  `plotno` varchar(50) NOT NULL,
  `idno` varchar(50) NOT NULL,
  `tenantid` varchar(40) NOT NULL,
  `entrydate` varchar(50) NOT NULL,
  `description` text NOT NULL,
  `checkoutdate` datetime NOT NULL,
  `status` varchar(50) NOT NULL,
  `userid` varchar(50) NOT NULL,
  `createdat` datetime NOT NULL,
  `updatedat` varchar(50) NOT NULL,
  `companyid` varchar(100) NOT NULL,
  `amount` varchar(30) NOT NULL,
  `paymentstatus` varchar(30) NOT NULL,
  `paymentmode` varchar(30) NOT NULL,
  `paymentcode` varchar(30) NOT NULL,
  `totalamount` decimal(10,2) NOT NULL,
  `overpayment` decimal(10,2) NOT NULL,
  `discount` varchar(30) NOT NULL,
  `transactioncode` varchar(30) NOT NULL,
  `roomtype` varchar(40) NOT NULL,
  `number` varchar(10) NOT NULL,
  `total` varchar(30) NOT NULL,
  `year` varchar(30) NOT NULL,
  `month` varchar(30) NOT NULL,
  `opening` varchar(20) NOT NULL,
  `closing` varchar(30) NOT NULL,
  `meternumber` varchar(10) NOT NULL,
  `opendate` varchar(30) NOT NULL,
  `closedate` varchar(30) NOT NULL,
  `phone` varchar(10) NOT NULL,
  `category` varchar(30) NOT NULL DEFAULT 'accommodation',
  `deposite` decimal(10,2) NOT NULL,
  `chargeid` int(11) NOT NULL,
  `booings` int(11) NOT NULL DEFAULT '1',
  `branchid` int(10) NOT NULL DEFAULT '1',
  `currency` varchar(20) DEFAULT NULL,
  `rate` varchar(30) NOT NULL,
  `charge` varchar(30) NOT NULL,
  `type` varchar(20) NOT NULL,
  `updatedby` varchar(20) NOT NULL,
  `usedqty` varchar(20) NOT NULL,
  `roomid` int(20) DEFAULT NULL,
  `roomchargeid` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `migrations`
--

CREATE TABLE IF NOT EXISTS `migrations` (
  `migration` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `batch` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `migrations`
--

INSERT INTO `migrations` (`migration`, `batch`) VALUES
('2014_10_12_000000_create_users_table', 1),
('2014_10_12_100000_create_password_resets_table', 1),
('2016_07_02_112357_Product', 1);

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

--
-- Table structure for table `modules`
--

CREATE TABLE IF NOT EXISTS `modules` (
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `sort` int(10) NOT NULL,
  `icon` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `id` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `status` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '1',
  `url` text COLLATE utf8_unicode_ci NOT NULL,
  `type` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'side',
  `menu` varchar(30) COLLATE utf8_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `modules`
--

INSERT INTO `modules` (`name`, `sort`, `icon`, `id`, `status`, `url`, `type`, `menu`) VALUES
('Accomodation', 84, 'money', 'accomodation', '1', 'admin/viewpallmyplots', 'side', 'accomodation'),
('Accounting(Charts of Accounts)', 35, 'battery-quarter', 'accounting', '1', 'user/allaccounting', 'side', 'banking'),
('Accounting Reports', 35, 'money', 'accountingreports', '1', 'user/startsales', 'side', 'banking'),
('Assets', 49, 'paw', 'assets', '1', 'user/viewassets', 'side', 'assetliability'),
('Bank Deposits', 35, 'money', 'bankdeposits', '1', 'user/viewbanks', 'side', 'banking'),
('Bank Transfer', 35, 'money', 'banktransfer', '1', 'user/viewbanktransfer', 'side', 'banking'),
('Biometric Records', 31, 'rss-square', 'biometricrecords', '1', 'user/allattendance', 'side', 'humanresource'),
('Branch', 81, 'rss-square', 'branch', '1', 'user/viewbranch', 'side', 'setting'),
('Call center', 12, 'rss-square', 'callcenter', '1', 'user/callcenter', 'side', 'contact'),
('Cashier Sales', 87, 'folder-open', 'cashiersales', '1', 'user/mysales', 'side', 'moneyin'),
('Cheque Management', 34, 'money', 'chequemanagemant', '1', 'user/viewcheque', 'side', 'banking'),
('Comments/Complains', 11, 'paw', 'complain', '1', 'user/complain', 'side', 'project'),
('Configuration', 5, 'home', 'config', '1', 'user/viewconfiguration', 'top', 'setting'),
('Counter Radio Button', 90, 'rss-square', 'counterradiobutton', '1', 'radio', 'side', 'setting'),
('Damaged products', 50, 'paw', 'damagedproducts', '1', 'user/viewdamages', 'side', 'assetliability'),
('Deals', 11, 'calendar-times-o', 'deals', '1', 'user/viedeals', 'side', 'project'),
('Departments', 31, 'rss-square', 'departments', '1', 'user/department', 'side', 'humanresource'),
('Display Counter', 6, 'rss-square', 'displaycounter', '0', 'display', 'side', 'goodservice'),
('Display Sales Report', 24, 'folder-open', 'displayreport', '1', 'user/displayreport', 'side', 'report'),
('Documents', 14, 'folder-open-o', 'documents', '1', 'user/viewdocuments', 'side', 'project'),
('E-Commerce', 8, 'grouping', 'ecommerce', '1', 'user/ecommerce', 'side', 'moneyin'),
('Events', 10, 'line-chart', 'events', '1', 'user/viewevents', 'side', 'project'),
('Grouping Members', 20, 'paper-plane', 'grouping', '1', 'user/viewgrouping', 'side', 'contact'),
('Human Resource', 14, 'rss-square', 'humanresource', '1', 'user/viewrequest', 'side', 'humanresource'),
('Income', 85, 'window-close', 'income', '1', 'user/allinvoices', 'side', 'moneyin'),
('Expenses', 85, 'window-close', 'incomeexpenses', '1', 'user/viewexpenses', 'side', 'moneyout'),
('Dispatched stocklist/Store', 60, 'sort-amount-asc', 'incomingstock', '1', 'user/viewincomingstock', 'side', 'goodservice'),
('Issued Store Items', 59, 'sort-amount-asc', 'incomingstore', '1', 'user/viewallorder', 'side', 'goodservice'),
('journal entry', 35, 'money', 'journalentry', '1', 'user/viewjournalentry', 'side', 'banking'),
('Labour Records', 31, 'rss-square', 'labourrecords', '1', 'user/viewlabour', 'side', 'humanresource'),
('Leave Management', 31, 'rss-square', 'leavemanagement', '1', 'user/viewleaves', 'side', 'humanresource'),
('Low Store', 55, 'battery-quarter', 'lowproducts', '1', 'user/viewwarningproducts', 'side', 'goodservice'),
('Low stocklist', 57, 'battery-quarter', 'lowstocklist', '1', 'user/viewlowstore', 'side', 'goodservice'),
('Loyality Cards', 30, 'credit-card', 'loyalitycards', '1', 'user/viewloyality', 'side', 'project'),
('People/Contacts', 80, 'rss-square', 'members', '1', 'user/viewmember', 'side', 'contact'),
('Open and Close Sales', 87, 'money', 'openclose', '0', 'user/openclose', 'side', 'moneyin'),
('Change password', 9, 'hourglass-start', 'password', '1', 'user/passwordform', 'side', 'setting'),
('Payroll', 30, 'rss-square', 'payroll', '1', 'user/salaryhistory', 'side', 'humanresource'),
('Payroll Setup', 31, 'rss-square', 'payrollsetup', '1', 'user/payrollsetup', 'side', 'humanresource'),
('Category of people', 33, 'address-book-o', 'peoplecategory', '1', 'user/viewcategory', 'side', 'contact'),
('Print Receipt', 1, 'recycle', 'printreceipt', '1', 'user/printreceipts', 'side', 'goodservice'),
('Stock List(Counter)', 66, 'snowflake-o', 'productlist', '1', 'user/viewproductlist', 'side', 'goodservice'),
('Products(Main store)', 65, 'snowflake-o', 'products', '1', 'user/viewproducts', 'side', 'goodservice'),
('Category of Products', 70, 'recycle', 'productscategory', '1', 'user/viewproductcategory', 'side', 'goodservice'),
('Update profile', 8, 'blind', 'profile', '1', 'user/profileform', 'side', 'setting'),
('Projects Management', 50, 'bullseye', 'projectsmanagement', '1', 'user/viewprojets', 'side', 'project'),
('Purchases', 86, 'automobile', 'purchases', '1', 'user/viewpurchases', 'side', 'moneyout'),
('Quotation', 8, 'money', 'quotation', '1', 'user/allquatation', 'side', 'moneyin'),
('Record Delivery', 87, 'cart-plus', 'recorddelivery', '1', 'user/deliveryhome', 'side', 'moneyin'),
('Manage Report', 25, 'folder-open', 'reports', '1', 'user/startsales', 'side', 'report'),
('Retail sales', 90, 'cart-plus', 'sales', '1', 'user/viewsales', 'side', 'moneyin'),
('Sales Order', 86, 'money', 'salesorder', '1', 'user/salesorder', 'side', 'moneyin'),
('Select User', 1, 'rss-square', 'selectuser', '0', 'login', 'side', 'contact'),
('Send Sms', 15, 'paper-plane', 'sendsms', '1', 'user/viewsms', 'side', 'project'),
('Tasks', 12, 'bullseye', 'task', '1', 'user/viewtasks', 'side', 'project'),
('Tasks Category', 13, 'birthday-cake', 'taskscategory', '1', 'user/viewtaskcategory', 'side', 'project'),
('Users', 75, 'rss-square', 'users', '1', 'user/viewemployee', 'side', 'contact'),
('Return/RePrint Sales', 86, 'paw', 'viewreturnsales', '1', 'user/viewreturnsales', 'side', 'moneyout'),
('Whole sale', 88, 'cart-plus', 'wholesale', '1', 'user/viewwholesales', 'side', 'moneyin');

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

--
-- Table structure for table `modulesactions`
--

CREATE TABLE IF NOT EXISTS `modulesactions` (
  `actionid` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `moduleid` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `name` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `sort` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `modulesactions`
--

INSERT INTO `modulesactions` (`actionid`, `moduleid`, `name`, `sort`) VALUES
('accommodationcleaner', 'accomodation', 'Tick ONLY if Cleaner', 26),
('accommodationreceiptionist', 'accomodation', 'Tick  ONLY if Receptionist', 27),
('accomodationmanager', 'accomodation', 'Tick  ONLY if manager', 25),
('accountlimit', 'sales', 'Enforce Daily Sales Limit', 16),
('add', 'assets', 'Add asset', 1),
('add', 'bankdeposits', 'add', 1),
('add', 'banktransfer', 'add', 1),
('add', 'biometricrecords', 'add', 1),
('add', 'branch', 'Add Baranch', 1),
('add', 'callcenter', 'Add Calls', 1),
('add', 'chequemanagemant', 'Post Cheque', 1),
('add', 'complain', 'Add complain', 2),
('add', 'config', 'add', 1),
('add', 'damagedproducts', 'add', 1),
('add', 'deals', 'add', 1),
('add', 'departments', 'add', 1),
('add', 'documents', 'add', 1),
('add', 'ecommerce', 'Add', 1),
('add', 'events', 'add', 1),
('add', 'grouping', 'add', 1),
('add', 'humanresource', 'Add Expense Request Form', 1),
('add', 'income', 'add', 2),
('add', 'incomeexpenses', 'add', 1),
('add', 'incomingstock', 'add', 1),
('add', 'incomingstore', 'Add incoming', 1),
('add', 'journalentry', 'add', 1),
('add', 'labourrecords', 'add', 1),
('add', 'leavemanagement', 'add', 0),
('add', 'lowproducts', 'add', 1),
('add', 'lowstocklist', 'add', 6),
('add', 'loyalitycards', 'add', 1),
('add', 'members', 'add', 1),
('add', 'payroll', 'add', 1),
('add', 'payrollsetup', 'add', 1),
('add', 'peoplecategory', 'add', 1),
('add', 'productlist', 'Add Products', 7),
('add', 'products', 'add', 1),
('add', 'productscategory', 'add', 1),
('add', 'projectsmanagement', 'Create New Project', 2),
('add', 'purchases', 'add', 1),
('add', 'quotation', 'Add Quotaion', 1),
('add', 'recorddelivery', 'Add Delivery', 1),
('add', 'sales', 'add', 1),
('add', 'salesorder', 'Create Sales Order', 1),
('add', 'sendsms', 'add', 1),
('add', 'task', 'add', 1),
('add', 'taskscategory', 'add', 1),
('add', 'users', 'add', 1),
('add', 'viewreturnsales', 'add', 1),
('add', 'wholesale', 'add', 1),
('AddAgents', 'deals', 'Add Agents', 30),
('addbatchno', 'purchases', 'Add batch No', 33),
('addcharges', 'accomodation', 'Add Room Chaerges', 4),
('adddailycollection', 'cashiersales', 'Add Daily Collection', 7),
('addexpirydate', 'purchases', 'Add Expiry Date', 34),
('addhouse', 'accomodation', 'Add House', 1),
('addpossiblefeedback', 'deals', 'Add Possible feedback', 20),
('addroom', 'accomodation', 'Add Room', 3),
('addstock', 'productlist', 'Add stock', 4),
('addstock', 'products', 'addstock', 4),
('advancebooking', 'accomodation', 'advance booking', 11),
('all', 'cashiersales', 'View all Cashier sales', 4),
('allcompalin', 'complain', 'View Others Complain', 11),
('allleaves ', 'humanresource', 'View all leaves', 20),
('allocate', 'humanresource', 'Allocate Money', 5),
('allowdiscountdropdown', 'sales', 'Allow Discount Drop Down', 7),
('approve', 'humanresource', 'Make Approval', 2),
('approve', 'purchases', 'Approve Purchase order', 22),
('approveorders', 'ecommerce', 'Approve New orders', 7),
('assignproduction', 'productlist', 'Assign Production Items', 62),
('assignrooms', 'accomodation', 'Asign Cleaning rooms', 7),
('assigntask', 'task', 'Assign Task', 10),
('backdatesales', 'sales', 'Back date sales', 17),
('bioattendance', 'humanresource', 'Biometric Attendance', 30),
('budget', 'purchases', 'View Budget', 10),
('bulk', 'productlist', 'Upload bulk stock', 1),
('bulk', 'products', 'bulk', 5),
('bulkcheckin', 'accomodation', 'Bulk Checkin', 58),
('bulkpriceupdate', 'productlist', 'Bulk Price Update', 33),
('bulkpriceupdate', 'products', 'Bulk Price Update', 33),
('bulkreservation', 'accomodation', 'Bulk Reservation', 59),
('bulkstatuschange', 'accomodation', 'Bulk Room Status Change', 60),
('cancel', 'accomodation', 'Cancel Payment/Bookings', 3),
('card', 'accomodation', 'Sale in Visa Card', 2),
('card', 'sales', 'Card Sales', 7),
('cash', 'accomodation', 'Sale in Cash', 2),
('cash', 'sales', 'Sell in Cash', 3),
('cashiersales', 'cashiersales', 'View Sales', 5),
('change', 'password', 'change', 1),
('changepayment', 'accomodation', 'Change payment', 9),
('changeserialstatus', 'productlist', 'Change Serial Status', 20),
('changestatus', 'cashiersales', 'Approve Till Collections', 68),
('changestatus', 'recorddelivery', 'Change Status', 6),
('changetaxstatus', 'sales', 'Change Tax Status', 30),
('changeuomonsales', 'sales', 'Change Unit Of Measurement', 33),
('checkin', 'accomodation', 'View Room window', 4),
('checkinroom', 'accomodation', 'Check in Rooms', 2),
('checkoutcustomerwithbalance', 'accomodation', 'Check out customer with balance', 20),
('checkoutroom', 'accomodation', 'Check out Room', 3),
('cheque', 'accomodation', 'Sale in Cheque/Bank', 2),
('cheque', 'sales', 'Cheque/Bank sales', 8),
('ClaimDamaged', 'recorddelivery', 'Change to Claim Damaged', 17),
('claimmpesacode', 'sales', 'Claim Mpesa Code', 67),
('ClaimOK', 'recorddelivery', 'Cahange to Claim OK', 16),
('Claimraised', 'recorddelivery', 'Change to Claim raised', 15),
('cleanrooms', 'accomodation', 'Clean Rooms', 4),
('clear', 'viewreturnsales', 'Clear Sales', 5),
('clearallsales', 'cashiersales', 'Clear all sales for others', 10),
('clearpayments', 'sales', 'Clear/Add payments', 7),
('clearsales', 'accomodation', 'Clear room sales', 40),
('clearsalesisdefault', 'cashiersales', 'Enable Clear-Sales Page As Default', 79),
('closebill', 'sales', ' Close Bill', 6),
('closeexpense', 'incomeexpenses', 'Close Expense', 3),
('config', 'accomodation', 'Accommodation Settings', 33),
('credit', 'accomodation', 'Sale in Credit', 2),
('credit', 'sales', 'Credit sales', 10),
('creditnote', 'sales', 'Credit Note', 8),
('customerregister', 'accomodation', 'Customer Register', 10),
('dailycollections', 'accomodation', 'Daily Collections', 56),
('dailypayments', 'accomodation', 'View Daily Payments', 10),
('dailysales', 'accomodation', ' Daily Sales', 1),
('dailysalesonly', 'cashiersales', 'View Only Daily sales Report', 40),
('deactivateserialstatus', 'wholesale', 'Dont Change Barcord/Serial Status to Used', 9),
('delete', 'assets', 'Delete', 5),
('delete', 'bankdeposits', 'delete', 3),
('delete', 'branch', 'Delete Branch', 5),
('delete', 'callcenter', 'Delete calls', 5),
('delete', 'cashiersales', 'Delete Sales', 4),
('delete', 'complain', 'Delete Complain', 11),
('delete', 'config', 'delete', 0),
('delete', 'damagedproducts', 'delete', 3),
('delete', 'deals', 'delete', 3),
('delete', 'documents', 'delete', 3),
('delete', 'ecommerce', 'delete', 3),
('delete', 'events', 'delete', 3),
('delete', 'grouping', 'delete', 3),
('delete', 'humanresource', 'Delete Expense Request Form', 3),
('delete', 'incomingstock', 'delete', 3),
('delete', 'incomingstore', 'Delete incoming', 3),
('delete', 'peoplecategory', 'delete', 3),
('delete', 'productlist', 'Delete Products', 4),
('delete', 'products', 'delete', 3),
('delete', 'productscategory', 'delete', 3),
('delete', 'projectsmanagement', 'Delete Products', 5),
('delete', 'purchases', 'delete', 3),
('delete', 'quotation', 'Delete', 3),
('delete', 'recorddelivery', 'Delete Delivery', 5),
('delete', 'reports', 'Delete sales', 3),
('delete', 'sales', 'delete', 3),
('delete', 'sendsms', 'delete', 3),
('delete', 'task', 'delete', 3),
('delete', 'taskscategory', 'delete', 3),
('delete', 'users', 'delete', 3),
('delete', 'viewreturnsales', 'delete', 3),
('delete', 'wholesale', 'delete', 2),
('deleteallroles', 'users', 'Delete all Roles', 5),
('deletebank', 'accounting', 'Delete Bank Account', 2),
('deletedailycollections', 'cashiersales', 'Delete Daily Collections', 9),
('deleteglaccount', 'accounting', 'Delete GL Account', 4),
('deleteorder', 'products', 'Delete Order', 5),
('deletepeople', 'members', 'Delete Contacts', 5),
('deleteproductionitem', 'productlist', 'Delete Production Item', 63),
('Delivered', 'recorddelivery', 'Change to Delivered', 14),
('detailedvatinvoice', 'income', 'Show Detailed Vat Invoice', 5),
('discount', 'sales', 'Print Discount', 5),
('dispatch', 'products', 'Dispatch Products', 6),
('Dispatched', 'recorddelivery', 'Change to Dispatched', 10),
('displaybeforevat', 'income', 'Display price before Vat', 6),
('displaycustomers', 'sales', 'Display employees using buttons', 5),
('displaypreviousbalance', 'sales', 'Display Previous Bal on Invoice', 65),
('dontprint', 'sales', 'Display Dont Print Button', 15),
('dontreceivepartialpayment', 'income', 'Do Not Receive partial payment', 9),
('dontshowbp', 'reports', 'Dont Show B.Price', 7),
('dontshowprofit', 'reports', 'Don Not Show Profit', 10),
('dontshowstock', 'productlist', 'Dont show stock', 82),
('dontshowstock', 'products', 'Dont show stock', 80),
('dontshowstock', 'sales', 'Dont show stock balance during sales', 30),
('dontshowtotal', 'cashiersales', 'Do Not Show grand Total', 6),
('download', 'callcenter', 'download calls', 4),
('download', 'reports', 'download', 2),
('downloaddeals', 'deals', 'Download deals', 20),
('editmpesa', 'cashiersales', 'Enter Mpesa Amount Directly', 3),
('editmpesadate', 'cashiersales', 'Edit Mpesa Entry date', 5),
('editopenclosestock', 'productlist', 'Update Closing and Opening stock', 10),
('editsellingprice', 'sales', 'Change Selling Price', 7),
('editstocktaken', 'productlist', 'Change closed and stock taken', 9),
('entermpesacode', 'cashiersales', 'Enter Mpesa Code', 3),
('entermpesacode', 'sales', 'Enter Mpesa Code', 40),
('FailedDelivery', 'recorddelivery', 'Change to Failed Delivery', 12),
('givediscount', 'accomodation', 'Give Discount', 4),
('giveloyalityponts', 'sales', 'Give Poinsts', 30),
('hold', 'sales', 'hold sales', 7),
('housekeeping', 'accomodation', 'House Keeping', 9),
('leaseitems', 'sales', 'Lease Items', 30),
('leavesetup', 'humanresource', 'Add Leave setup', 8),
('linksalesorders', 'openclose', 'Link Order and sales', 4),
('Logout', 'sales', 'Log out After printing', 5),
('managecustomer', 'accomodation', 'Manager Customer', 22),
('managehotel', 'accomodation', 'Manage Hotel', 6),
('managerental', 'accomodation', 'Manage Rental Houses', 8),
('mergebill', 'sales', 'Merge Bill:', 32),
('meterreading', 'accomodation', 'Meter Reading', 30),
('more', 'lowstocklist', 'View more', 6),
('more', 'productlist', 'View Added stock', 2),
('more', 'products', 'more', 4),
('moresales', 'sales', 'Add More Sales', 4),
('moresales', 'viewreturnsales', 'Add more Sales', 5),
('move', 'productlist', 'Move stock/ Break/Distribute', 2),
('mpesa', 'accomodation', 'Sale in mpesa', 2),
('mpesa', 'sales', 'Sale in Mpesa', 6),
('mpesabalance', 'sales', 'Bank /Mpesa Balance', 5),
('mpesapendingreport', 'cashiersales', 'View All Pending Mpesa Report', 20),
('mpesaverifiedreport', 'cashiersales', 'View All Verified Mpesa Report', 21),
('negativesales', 'sales', 'Make Negative sales', 60),
('negativestockadjustment', 'productlist', 'Negative Stock Adjustment', 51),
('negativestockadjustment', 'products', 'Negative Stock Adjustment', 51),
('Novatsales', 'config', 'No Vat Sales', 20),
('opencloseshift', 'members', 'Open and Close Employee Shift', 26),
('openclosestock', 'productlist', 'Open and Close stock', 8),
('order', 'sales', 'User Order Button', 6),
('overalclearingpendingtasks', 'task', 'Clear Overal pending tasks for anyone', 20),
('pendingisdefault', 'cashiersales', 'Enable Pending Page As Default', 69),
('plotexpenses', 'accomodation', 'Plot Expenses', 63),
('points', 'accomodation', 'Sale in Loyality Points', 2),
('points', 'sales', 'Loyality Point sales', 9),
('Post Bank Deposits', 'accomodation', 'bankdeposits', 6),
('postemployeenoteforothers', 'task', 'Post Employee Notes for others', 20),
('postexpense', 'accomodation', 'Post Expense', 5),
('postgeneraltask', 'task', 'Post General Task', 5),
('postrentalexpenses', 'incomeexpenses', 'Post rental Expeses', 20),
('postspecifictask', 'task', 'Post Specific Task', 3),
('posttaskforothers', 'task', 'Post task for others', 11),
('price', 'products', 'change price', 7),
('printbill', 'sales', ' Print Bill', 6),
('printdelivery', 'sales', 'Print delivery', 38),
('printreceipt', 'sales', 'Print Receipt', 1),
('productcode', 'config', 'Display Product code in receipt', 5),
('productdiscount', 'sales', 'Give discount Product', 6),
('receiptno', 'sales', 'Enter Receipt No Directly', 50),
('receivedublicatecodes', 'income', 'Receive Dublicate Cheque / Transaction codes', 8),
('receiveoverpayment', 'income', 'Receive overpayment', 7),
('recordcoins', 'sales', 'Record Savings/Coins', 26),
('removeallstock', 'products', 'View all outgoing stock', 7),
('removestock', 'products', 'Issue stock from store', 6),
('report', 'recorddelivery', 'Delivery Report', 9),
('reprint', 'sales', 'Reprint Receipt', 5),
('restrictbillprintingtotwo', 'sales', 'Restrict Bill Printing to 2', 66),
('return', 'viewreturnsales', 'Return Sales', 4),
('returnclearedsales', 'viewreturnsales', 'Return Cleared/ Closed Sales', 7),
('ReturnedandReceived', 'recorddelivery', 'Change to Returned and Received', 13),
('reversempesa', 'cashiersales', 'Reverse Mpesa', 9),
('sale', 'sales', 'sale', 4),
('sale', 'wholesale', 'sale', 0),
('salebelowbprice', 'sales', 'Can sell below set b.price', 10),
('salesbeyondbprice', 'sales', 'Can sell below set s.price', 9),
('salesorder', 'purchases', 'Sales Order', 10),
('salesperson', 'sales', 'Choose Sales person', 50),
('select', 'sales', 'Select Customers', 5),
('selectcurrency', 'sales', 'Select Currency', 50),
('selectmessage', 'sales', 'Select Order Message', 1),
('selectroom', 'sales', 'Select Room', 12),
('selecttable', 'sales', 'Select Table', 35),
('sell', 'openclose', 'Sell', 1),
('sellusingserialonly', 'wholesale', 'Sell Using Serial Only', 10),
('sendsms', 'sales', 'Send Digital Receipt/Sms', 40),
('setup', 'ecommerce', 'Setup E-commerce', 6),
('showdefaultserials', 'purchases', 'Generate with default Serial Numbers', 20),
('showsitemmovement', 'cashiersales', 'show item movement', 80),
('splitbill', 'sales', 'Split Bill', 31),
('stocktaking', 'productlist', 'Do stock Taking', 8),
('suspend', 'sales', 'Suspend/Cancel Sales', 1),
('swapsales', 'sales', 'Swap Sales', 80),
('transfer', 'productlist', 'Transfer Products', 3),
('transferdeals', 'deals', 'Transfer Deals', 30),
('transfersms', 'sendsms', 'Transfer sms to others', 5),
('upadate', 'callcenter', 'Update', 2),
('update', 'assets', 'Update', 2),
('update', 'bankdeposits', 'update', 2),
('update', 'branch', 'Update Branch', 3),
('update', 'complain', 'Update Complain', 6),
('update', 'config', 'update', 2),
('update', 'damagedproducts', 'update', 2),
('update', 'deals', 'update', 2),
('update', 'documents', 'update', 2),
('update', 'ecommerce', 'Upadate Data', 2),
('update', 'events', 'update', 2),
('update', 'grouping', 'update', 2),
('update', 'humanresource', 'Update Expense Request Form', 2),
('update', 'incomeexpenses', 'update', 3),
('update', 'incomingstock', 'update', 2),
('update', 'lowproducts', 'update', 1),
('update', 'loyalitycards', 'update', 2),
('update', 'members', 'update', 2),
('update', 'peoplecategory', 'update', 2),
('update', 'productlist', 'Update Product', 6),
('update', 'products', 'update', 2),
('update', 'productscategory', 'update', 2),
('update', 'profile', 'update', 1),
('update', 'projectsmanagement', 'Edit Projects', 4),
('update', 'purchases', 'update', 2),
('update', 'quotation', 'Update', 2),
('update', 'recorddelivery', 'Update Delivery', 3),
('update', 'reports', 'update sales', 4),
('update', 'sales', 'update', 2),
('update', 'salesorder', 'Update Sales Order', 4),
('update', 'sendsms', 'update', 2),
('update', 'task', 'update', 2),
('update', 'taskscategory', 'update', 2),
('update', 'users', 'update', 2),
('update', 'viewreturnsales', 'update', 2),
('update', 'wholesale', 'update', 4),
('updatebuyingprice', 'purchases', 'update buying price', 4),
('updatecharges', 'accomodation', 'Update Room Charges', 4),
('updateclosedexpenses', 'incomeexpenses', 'Edit closed expenses', 4),
('updateclosedinvoice', 'purchases', 'update closed invoice', 6),
('updatedailycollections', 'cashiersales', 'Update Daily Collection', 9),
('updatehouse', 'accomodation', 'Update House', 5),
('updatepaymentmode', 'sales', 'Update Payment Mode', 7),
('updateproductionitem', 'productlist', 'Update Production Item', 64),
('updateqtysales', 'sales', 'Update Quantity on sales Window', 61),
('UpdateRenewal', 'members', 'Update Renewal', 30),
('updateroom', 'accomodation', 'Update  Room', 5),
('updatesellingprice', 'purchases', 'update selling price', 5),
('updateserial', 'purchases', 'Update Serial', 35),
('updatestock', 'productlist', 'Update Stock (Cl.Stock)', 2),
('uploadexpenses', 'incomeexpenses', 'Upload Expenses', 30),
('usekeyboard', 'sales', 'Use Internal Keyboard', 50),
('view', 'accounting', 'View Accounting', 4),
('view', 'accountingreports', 'view', 1),
('view', 'branch', 'View Branch', 2),
('view', 'callcenter', 'View Calls', 3),
('view', 'chequemanagemant', 'View Cheques', 2),
('view', 'complain', 'View Complain', 5),
('view', 'displayreport', 'Display Report', 1),
('view', 'humanresource', 'View Expense Request Form', 4),
('View', 'income', 'View', 1),
('view', 'incomingstock', 'View Incoming store products', 2),
('view', 'incomingstore', 'View Incoming store products', 4),
('view', 'lowstocklist', 'View', 6),
('view', 'productlist', 'View Products', 5),
('view', 'projectsmanagement', 'View Projects', 1),
('view', 'quotation', 'View', 5),
('view', 'recorddelivery', 'View Delivery', 2),
('view', 'reports', 'view', 1),
('view', 'salesorder', 'View Sales Order', 3),
('View others contact', 'deals', 'viewcontact', 20),
('viewall', 'deals', 'View other people''s deals', 5),
('viewall', 'quotation', 'View others quoation', 10),
('viewall', 'reports', 'View all Branches', 6),
('viewall', 'salesorder', 'View others Sales Order', 5),
('viewall', 'task', 'View other people''s tasks', 2),
('viewallcollections', 'cashiersales', 'View Others Daily Collection', 16),
('viewallcounters', 'cashiersales', 'View All Counters', 20),
('viewallcounters', 'purchases', 'View All Counters', 20),
('viewalldocuments', 'documents', 'View all Documents', 5),
('viewallpayroll', 'humanresource', 'View Payroll For everyone', 5),
('viewbills', 'incomeexpenses', 'View Bills', 6),
('viewbprice', 'productlist', 'Dont View Bprice', 88),
('viewbprice', 'products', 'Dont View Bprice', 88),
('viewbuyingprice', 'sales', 'view buying price', 7),
('viewcommission', 'cashiersales', 'View Commision', 31),
('viewcreditors', 'incomeexpenses', 'VIew creditors', 8),
('viewdailycollections', 'cashiersales', 'View Daily Collection', 8),
('viewdebtors', 'incomeexpenses', 'View Deptors', 7),
('viewdirectpurchases', 'purchases', 'View Direct Purchase', 8),
('viewexpense', 'incomeexpenses', 'View Expense', 6),
('viewhouse', 'accomodation', 'View House', 1),
('viewmpesamessages', 'cashiersales', 'View Mpesa Messages', 40),
('vieworders', 'ecommerce', 'View Orders', 4),
('viewothersgeneraltask', 'task', 'View Others General Task', 9),
('viewothersspecifictask', 'task', 'View Others Specific Task', 7),
('viewproduction', 'productlist', 'View Production', 60),
('viewproductsfromallbranches', 'productlist', 'View Products From All Branches', 30),
('viewpurchase', 'purchases', 'Purchase Order', 9),
('viewquotation', 'purchases', 'View Quotation', 7),
('viewreport', 'openclose', 'view open and close report', 3),
('viewreports', 'accomodation', 'View Reports', 22),
('viewroomcleaned', 'accomodation', 'View Room Cleaned', 33),
('viewrooms', 'accomodation', 'View All Rooms', 1),
('viewserials', 'productlist', 'View serial Number', 20),
('viewserials', 'purchases', 'View serial Numbers', 8),
('viewtill', 'cashiersales', 'View Till Collections', 8),
('voucher', 'accomodation', 'Sale in Voucher', 2),
('voucher', 'sales', 'Gift Voucher sales', 9),
('wiewinvoices', 'incomeexpenses', 'View all Expenses', 5);

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

--
-- Table structure for table `moneydocuments`
--

CREATE TABLE IF NOT EXISTS `moneydocuments` (
  `id` int(50) NOT NULL,
  `name` text NOT NULL,
  `imageid` varchar(50) NOT NULL,
  `user` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `mpesasales`
--

CREATE TABLE IF NOT EXISTS `mpesasales` (
  `id` int(11) NOT NULL,
  `amount` decimal(10,2) NOT NULL,
  `userid` int(20) NOT NULL,
  `companyid` int(5) NOT NULL,
  `dateposted` varchar(30) NOT NULL,
  `paymentstatus` varchar(10) NOT NULL,
  `branch` int(10) NOT NULL,
  `type` varchar(30) NOT NULL,
  `code` varchar(50) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `mpesasales`
--

INSERT INTO `mpesasales` (`id`, `amount`, `userid`, `companyid`, `dateposted`, `paymentstatus`, `branch`, `type`, `code`) VALUES
(1, '1000.00', 1, 1, '2024-12-23 10:49:29', '1', 1, '1', 'SBQ87I2PHE'),
(2, '10550.00', 1, 1, '2025-02-13 10:38:59', '1', 1, '1', 'TB86AB2CX8'),
(3, '1260.00', 1, 1, '2025-03-07 06:25:13', 'Cleared', 1, 'MPESA', 'TBP9DVL2HZ'),
(4, '5000.00', 1, 1, '2025-03-07 06:27:42', 'Cleared', 1, 'MPESA', 'TBP2E0KSOG'),
(5, '1290.00', 1, 1, '2025-03-07 08:35:21', 'Cleared', 1, 'MPESA', 'TC49CDFCR5');

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

--
-- Table structure for table `nation`
--

CREATE TABLE IF NOT EXISTS `nation` (
  `id` int(11) NOT NULL,
  `code` varchar(4) NOT NULL DEFAULT '',
  `name` varchar(100) NOT NULL DEFAULT '',
  `description` varchar(40) DEFAULT NULL,
  `status` varchar(20) DEFAULT NULL
) ENGINE=InnoDB AUTO_INCREMENT=253 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `nation`
--

INSERT INTO `nation` (`id`, `code`, `name`, `description`, `status`) VALUES
(1, 'AC', 'ASCENSION ISLAND ', NULL, 'Y'),
(2, 'AD', 'ANDORRA', NULL, 'Y'),
(3, 'AE', 'UNITED ARAB EMIRATES ', NULL, 'Y'),
(4, 'AG', 'ANTIGUA AND BARBUDA', NULL, 'Y'),
(5, 'AI', 'ANGUILLA', NULL, 'Y'),
(6, 'AL', 'ALBANIA ', NULL, 'Y'),
(7, 'AM', 'ARMENIA', NULL, 'Y'),
(8, 'AN', 'NETHERLANDS ANTILLES ', NULL, 'Y'),
(9, 'AO', 'ANGOLA', NULL, 'Y'),
(10, 'AQ', 'ANTARCTICA', NULL, 'Y'),
(11, 'AR', 'ARGENTINA', NULL, 'Y'),
(12, 'AS', 'AMERICAN SAMOA', NULL, 'Y'),
(13, 'AT', 'AUSTRIA', NULL, 'Y'),
(14, 'AU', 'AUSTRALIA', NULL, 'Y'),
(15, 'AW', 'ARUBA', NULL, 'Y'),
(16, 'AX', 'ALAND ISLANDS', NULL, 'Y'),
(17, 'AZ', 'AZERBAIJAN', NULL, 'Y'),
(18, 'BA', 'BOSNIA AND HERZEGOVINA ', NULL, 'Y'),
(19, 'BB', 'BARBADOS ', NULL, 'Y'),
(20, 'BD', 'BANGLADESH ', NULL, 'Y'),
(21, 'BE', 'BELGIUM ', NULL, 'Y'),
(22, 'BF', 'BURKINA FASO ', NULL, 'Y'),
(23, 'BG', 'BULGARIA ', NULL, 'Y'),
(24, 'BH', 'BAHRAIN', NULL, 'Y'),
(25, 'BI', 'BURUNDI ', NULL, 'Y'),
(26, 'BJ', 'BENIN ', NULL, 'Y'),
(27, 'BM', 'BERMUDA ', NULL, 'Y'),
(28, 'BN', 'BRUNEI DARUSSALAM ', NULL, 'Y'),
(29, 'BO', 'BOLIVIA ', NULL, 'Y'),
(30, 'BR', 'BRAZIL ', NULL, 'Y'),
(31, 'BS', 'BAHAMAS ', NULL, 'Y'),
(32, 'BT', 'BHUTAN ', NULL, 'Y'),
(33, 'BV', 'BOUVET ISLAND ', NULL, 'Y'),
(34, 'BW', 'BOTSWANA ', NULL, 'Y'),
(35, 'BY', 'BELARUS ', NULL, 'Y'),
(36, 'BZ', 'BELIZE ', NULL, 'Y'),
(37, 'CA', 'CANADA ', NULL, 'Y'),
(38, 'CC', 'COCOS (KEELING) ISLANDS ', NULL, 'Y'),
(39, 'CD', 'CONGO, DEMOCRATIC REPUBLIC ', NULL, 'Y'),
(40, 'CF', 'CENTRAL AFRICAN REPUBLIC ', NULL, 'Y'),
(41, 'CG', 'CONGO ', NULL, 'Y'),
(42, 'CH', 'SWITZERLAND ', NULL, 'Y'),
(43, 'CI', 'COTE D''IVOIRE (IVORY COAST) ', NULL, 'Y'),
(44, 'CK', 'COOK ISLANDS ', NULL, 'Y'),
(45, 'CL', 'CHILE ', NULL, 'Y'),
(46, 'CM', 'CAMEROON ', NULL, 'Y'),
(47, 'CN', 'CHINA ', NULL, 'Y'),
(48, 'CO', 'COLOMBIA ', NULL, 'Y'),
(49, 'CR', 'COSTA RICA ', NULL, 'Y'),
(50, 'CS', 'CZECHOSLOVAKIA (FORMER) ', NULL, 'Y'),
(51, 'CU', 'CUBA ', NULL, 'Y'),
(52, 'CV', 'CAPE VERDE ', NULL, 'Y'),
(53, 'CX', 'CHRISTMAS ISLAND ', NULL, 'Y'),
(54, 'CY', 'CYPRUS ', NULL, 'Y'),
(55, 'CZ', 'CZECH REPUBLIC ', NULL, 'Y'),
(56, 'DE', 'GERMANY ', NULL, 'Y'),
(57, 'DJ', 'DJIBOUTI ', NULL, 'Y'),
(58, 'DK', 'DENMARK ', NULL, 'Y'),
(59, 'DM', 'DOMINICA ', NULL, 'Y'),
(60, 'DO', 'DOMINICAN REPUBLIC ', NULL, 'Y'),
(61, 'DZ', 'ALGERIA', NULL, 'Y'),
(62, 'EC', 'ECUADOR ', NULL, 'Y'),
(63, 'EE', 'ESTONIA ', NULL, 'Y'),
(64, 'EG', 'EGYPT ', NULL, 'Y'),
(65, 'EH', 'WESTERN SAHARA ', NULL, 'Y'),
(66, 'ER', 'ERITREA ', NULL, 'Y'),
(67, 'ES', 'SPAIN ', NULL, 'Y'),
(68, 'ET', 'ETHIOPIA ', NULL, 'Y'),
(69, 'EU', 'EUROPEAN UNION ', NULL, 'Y'),
(70, 'FI', 'FINLAND ', NULL, 'Y'),
(71, 'FJ', 'FIJI ', NULL, 'Y'),
(72, 'FK', 'FALKLAND ISLANDS (MALVINAS) ', NULL, 'Y'),
(73, 'FM', 'MICRONESIA ', NULL, 'Y'),
(74, 'FO', 'FAROE ISLANDS ', NULL, 'Y'),
(75, 'FR', 'FRANCE ', NULL, 'Y'),
(76, 'FX', 'FRANCE, METROPOLITAN ', NULL, 'Y'),
(77, 'GA', 'GABON ', NULL, 'Y'),
(78, 'GB', 'GREAT BRITAIN (UK) ', NULL, 'Y'),
(79, 'GD', 'GRENADA ', NULL, 'Y'),
(80, 'GE', 'GEORGIA ', NULL, 'Y'),
(81, 'GF', 'FRENCH GUIANA ', NULL, 'Y'),
(82, 'GG', 'GUERNSEY ', NULL, 'Y'),
(83, 'GH', 'GHANA ', NULL, 'Y'),
(84, 'GI', 'GIBRALTAR ', NULL, 'Y'),
(85, 'GL', 'GREENLAND ', NULL, 'Y'),
(86, 'GM', 'GAMBIA ', NULL, 'Y'),
(87, 'GN', 'GUINEA ', NULL, 'Y'),
(88, 'GP', 'GUADELOUPE ', NULL, 'Y'),
(89, 'GQ', 'EQUATORIAL GUINEA ', NULL, 'Y'),
(90, 'GR', 'GREECE ', NULL, 'Y'),
(91, 'GS', 'S. GEORGIA AND S. SANDWICH ISLS. ', NULL, 'Y'),
(92, 'GT', 'GUATEMALA ', NULL, 'Y'),
(93, 'GU', 'GUAM ', NULL, 'Y'),
(94, 'GW', 'GUINEA     BISSAU ', NULL, 'Y'),
(95, 'GY', 'GUYANA ', NULL, 'Y'),
(96, 'HK', 'HONG KONG ', NULL, 'Y'),
(97, 'HM', 'HEARD AND MCDONALD ISLANDS ', NULL, 'Y'),
(98, 'HN', 'HONDURAS ', NULL, 'Y'),
(99, 'HR', 'CROATIA (HRVATSKA) ', NULL, 'Y'),
(100, 'HT', 'HAITI ', NULL, 'Y'),
(101, 'HU', 'HUNGARY ', NULL, 'Y'),
(102, 'ID', 'INDONESIA ', NULL, 'Y'),
(103, 'IE', 'IRELAND ', NULL, 'Y'),
(104, 'IL', 'ISRAEL ', NULL, 'Y'),
(105, 'IM', 'ISLE OF MAN ', NULL, 'Y'),
(106, 'IN', 'INDIA ', NULL, 'Y'),
(107, 'IO', 'BRITISH INDIAN OCEAN TERRITORY ', NULL, 'Y'),
(108, 'IQ', 'IRAQ ', NULL, 'Y'),
(109, 'IR', 'IRAN ', NULL, 'Y'),
(110, 'IS', 'ICELAND ', NULL, 'Y'),
(111, 'IT', 'ITALY ', NULL, 'Y'),
(112, 'JE', 'JERSEY ', NULL, 'Y'),
(113, 'JM', 'JAMAICA ', NULL, 'Y'),
(114, 'JO', 'JORDAN ', NULL, 'Y'),
(115, 'JP', 'JAPAN ', NULL, 'Y'),
(116, 'KE', 'KENYA ', NULL, 'Y'),
(117, 'KG', 'KYRGYZSTAN ', NULL, 'Y'),
(118, 'KH', 'CAMBODIA ', NULL, 'Y'),
(119, 'KI', 'KIRIBATI ', NULL, 'Y'),
(120, 'KM', 'COMOROS ', NULL, 'Y'),
(121, 'KN', 'SAINT KITTS AND NEVIS ', NULL, 'Y'),
(122, 'KP', 'NORTH KOREA', NULL, 'Y'),
(123, 'KR', 'SOUTH KOREA', NULL, 'Y'),
(124, 'KW', 'KUWAIT ', NULL, 'Y'),
(125, 'KY', 'CAYMAN ISLANDS ', NULL, 'Y'),
(126, 'KZ', 'KAZAKHSTAN ', NULL, 'Y'),
(127, 'LA', 'LAOS ', NULL, 'Y'),
(128, 'LB', 'LEBANON ', NULL, 'Y'),
(129, 'LC', 'SAINT LUCIA ', NULL, 'Y'),
(130, 'LI', 'LIECHTENSTEIN ', NULL, 'Y'),
(131, 'LK', 'SRI LANKA ', NULL, 'Y'),
(132, 'LR', 'LIBERIA ', NULL, 'Y'),
(133, 'LS', 'LESOTHO ', NULL, 'Y'),
(134, 'LT', 'LITHUANIA ', NULL, 'Y'),
(135, 'LU', 'LUXEMBOURG ', NULL, 'Y'),
(136, 'LV', 'LATVIA ', NULL, 'Y'),
(137, 'LY', 'LIBYA ', NULL, 'Y'),
(138, 'MA', 'MOROCCO ', NULL, 'Y'),
(139, 'MC', 'MONACO ', NULL, 'Y'),
(140, 'MD', 'MOLDOVA ', NULL, 'Y'),
(141, 'ME', 'MONTENEGRO ', NULL, 'Y'),
(142, 'MG', 'MADAGASCAR ', NULL, 'Y'),
(143, 'MH', 'MARSHALL ISLANDS ', NULL, 'Y'),
(144, 'MK', 'F.Y.R.O.M. (MACEDONIA) ', NULL, 'Y'),
(145, 'ML', 'MALI ', NULL, 'Y'),
(146, 'MM', 'MYANMAR ', NULL, 'Y'),
(147, 'MN', 'MONGOLIA ', NULL, 'Y'),
(148, 'MO', 'MACAU ', NULL, 'Y'),
(149, 'MP', 'NORTHERN MARIANA ISLANDS ', NULL, 'Y'),
(150, 'MQ', 'MARTINIQUE ', NULL, 'Y'),
(151, 'MR', 'MAURITANIA ', NULL, 'Y'),
(152, 'MS', 'MONTSERRAT ', NULL, 'Y'),
(153, 'MT', 'MALTA ', NULL, 'Y'),
(154, 'MU', 'MAURITIUS ', NULL, 'Y'),
(155, 'MV', 'MALDIVES ', NULL, 'Y'),
(156, 'MW', 'MALAWI ', NULL, 'Y'),
(157, 'MX', 'MEXICO ', NULL, 'Y'),
(158, 'MY', 'MALAYSIA ', NULL, 'Y'),
(159, 'MZ', 'MOZAMBIQUE ', NULL, 'Y'),
(160, 'NA', 'NAMIBIA ', NULL, 'Y'),
(161, 'NC', 'NEW CALEDONIA ', NULL, 'Y'),
(162, 'NE', 'NIGER ', NULL, 'Y'),
(163, 'NF', 'NORFOLK ISLAND ', NULL, 'Y'),
(164, 'NG', 'NIGERIA ', NULL, 'Y'),
(165, 'NI', 'NICARAGUA ', NULL, 'Y'),
(166, 'NL', 'NETHERLANDS ', NULL, 'Y'),
(167, 'NO', 'NORWAY ', NULL, 'Y'),
(168, 'NP', 'NEPAL ', NULL, 'Y'),
(169, 'NR', 'NAURU ', NULL, 'Y'),
(170, 'NT', 'NEUTRAL ZONE ', NULL, 'Y'),
(171, 'NU', 'NIUE ', NULL, 'Y'),
(172, 'NZ', 'NEW ZEALAND (AOTEAROA) ', NULL, 'Y'),
(173, 'OM', 'OMAN ', NULL, 'Y'),
(174, 'PA', 'PANAMA ', NULL, 'Y'),
(175, 'PE', 'PERU ', NULL, 'Y'),
(176, 'PF', 'FRENCH POLYNESIA ', NULL, 'Y'),
(177, 'PG', 'PAPUA NEW GUINEA ', NULL, 'Y'),
(178, 'PH', 'PHILIPPINES ', NULL, 'Y'),
(179, 'PK', 'PAKISTAN ', NULL, 'Y'),
(180, 'PL', 'POLAND ', NULL, 'Y'),
(181, 'PM', 'ST. PIERRE AND MIQUELON ', NULL, 'Y'),
(182, 'PN', 'PITCAIRN ', NULL, 'Y'),
(183, 'PR', 'PUERTO RICO ', NULL, 'Y'),
(184, 'PS', 'PALESTINIAN TERRITORY, OCCUPIED ', NULL, 'Y'),
(185, 'PT', 'PORTUGAL ', NULL, 'Y'),
(186, 'PW', 'PALAU ', NULL, 'Y'),
(187, 'PY', 'PARAGUAY ', NULL, 'Y'),
(188, 'QA', 'QATAR ', NULL, 'Y'),
(189, 'RE', 'REUNION ', NULL, 'Y'),
(190, 'RO', 'ROMANIA ', NULL, 'Y'),
(191, 'RS', 'SERBIA ', NULL, 'Y'),
(192, 'RU', 'RUSSIAN FEDERATION ', NULL, 'Y'),
(193, 'RW', 'RWANDA ', NULL, 'Y'),
(194, 'SA', 'SAUDI ARABIA ', NULL, 'Y'),
(195, 'SB', 'SOLOMON ISLANDS ', NULL, 'Y'),
(196, 'SC', 'SEYCHELLES ', NULL, 'Y'),
(197, 'SD', 'SUDAN ', NULL, 'Y'),
(198, 'SE', 'SWEDEN ', NULL, 'Y'),
(199, 'SG', 'SINGAPORE ', NULL, 'Y'),
(200, 'SH', 'ST. HELENA ', NULL, 'Y'),
(201, 'SI', 'SLOVENIA ', NULL, 'Y'),
(202, 'SJ', 'SVALBARD & JAN MAYEN ISLANDS ', NULL, 'Y'),
(203, 'SK', 'SLOVAK REPUBLIC ', NULL, 'Y'),
(204, 'SL', 'SIERRA LEONE ', NULL, 'Y'),
(205, 'SM', 'SAN MARINO ', NULL, 'Y'),
(206, 'SN', 'SENEGAL ', NULL, 'Y'),
(207, 'SO', 'SOMALIA ', NULL, 'Y'),
(208, 'SR', 'SURINAME ', NULL, 'Y'),
(209, 'ST', 'SAO TOME AND PRINCIPE ', NULL, 'Y'),
(210, 'SU', 'USSR (FORMER) ', NULL, 'Y'),
(211, 'SV', 'EL SALVADOR ', NULL, 'Y'),
(212, 'SY', 'SYRIA ', NULL, 'Y'),
(213, 'SZ', 'SWAZILAND ', NULL, 'Y'),
(214, 'TC', 'TURKS AND CAICOS ISLANDS ', NULL, 'Y'),
(215, 'TD', 'CHAD ', NULL, 'Y'),
(216, 'TF', 'FRENCH SOUTHERN TERRITORIES ', NULL, 'Y'),
(217, 'TG', 'TOGO ', NULL, 'Y'),
(218, 'TH', 'THAILAND ', NULL, 'Y'),
(219, 'TJ', 'TAJIKISTAN ', NULL, 'Y'),
(220, 'TK', 'TOKELAU ', NULL, 'Y'),
(221, 'TM', 'TURKMENISTAN ', NULL, 'Y'),
(222, 'TN', 'TUNISIA ', NULL, 'Y'),
(223, 'TO', 'TONGA ', NULL, 'Y'),
(224, 'TP', 'EAST TIMOR ', NULL, 'Y'),
(225, 'TR', 'TURKEY ', NULL, 'Y'),
(226, 'TT', 'TRINIDAD AND TOBAGO ', NULL, 'Y'),
(227, 'TV', 'TUVALU ', NULL, 'Y'),
(228, 'TW', 'TAIWAN ', NULL, 'Y'),
(229, 'TZ', 'TANZANIA ', NULL, 'Y'),
(230, 'UA', 'UKRAINE ', NULL, 'Y'),
(231, 'UG', 'UGANDA ', NULL, 'Y'),
(232, 'UK', 'UNITED KINGDOM ', NULL, 'Y'),
(233, 'UM', 'US MINOR OUTLYING ISLANDS ', NULL, 'Y'),
(234, 'US', 'UNITED STATES ', NULL, 'Y'),
(235, 'UY', 'URUGUAY ', NULL, 'Y'),
(236, 'UZ', 'UZBEKISTAN ', NULL, 'Y'),
(237, 'VA', 'VATICAN CITY STATE (HOLY SEE) ', NULL, 'Y'),
(238, 'VC', 'SAINT VINCENT & THE GRENADINES ', NULL, 'Y'),
(239, 'VE', 'VENEZUELA ', NULL, 'Y'),
(240, 'VG', 'BRITISH VIRGIN ISLANDS ', NULL, 'Y'),
(241, 'VI', 'VIRGIN ISLANDS (U.S.) ', NULL, 'Y'),
(242, 'VN', 'VIET NAM ', NULL, 'Y'),
(243, 'VU', 'VANUATU ', NULL, 'Y'),
(244, 'WF', 'WALLIS AND FUTUNA ISLANDS ', NULL, 'Y'),
(245, 'WS', 'SAMOA ', NULL, 'Y'),
(246, 'YE', 'YEMEN ', NULL, 'Y'),
(247, 'YT', 'MAYOTTE ', NULL, 'Y'),
(248, 'YU', 'SERBIA AND MONTENEGRO (FORMER) ', NULL, 'Y'),
(249, 'ZA', 'SOUTH AFRICA ', NULL, 'Y'),
(250, 'ZM', 'ZAMBIA ', NULL, 'Y'),
(251, 'ZR', '(ZAIRE) SEE CD CONGO, DEMOCRATIC REPUBLIC ', NULL, 'Y'),
(252, 'ZW', 'ZIMBABWE', NULL, 'Y');

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

--
-- Table structure for table `newstock`
--

CREATE TABLE IF NOT EXISTS `newstock` (
  `id` int(50) NOT NULL,
  `name` varchar(50) NOT NULL,
  `description` text NOT NULL,
  `total` decimal(10,2) NOT NULL,
  `date` varchar(50) NOT NULL,
  `item_id1` varchar(50) NOT NULL,
  `userid` varchar(50) NOT NULL,
  `status` varchar(50) NOT NULL DEFAULT 'newstock',
  `companyid` varchar(100) NOT NULL,
  `invoice_number` varchar(30) NOT NULL,
  `supplier` varchar(30) NOT NULL,
  `buyingprice` decimal(10,4) NOT NULL,
  `amount` varchar(30) NOT NULL,
  `type` varchar(30) NOT NULL DEFAULT '1',
  `balance` varchar(30) NOT NULL,
  `stockfrom` varchar(50) NOT NULL,
  `stockto` varchar(50) NOT NULL,
  `item_id` varchar(30) NOT NULL,
  `invoice` varchar(30) NOT NULL,
  `discount` varchar(10) NOT NULL,
  `qty` decimal(10,2) NOT NULL,
  `tax` varchar(30) NOT NULL,
  `sellingprice` varchar(11) NOT NULL,
  `vat` varchar(50) NOT NULL,
  `taxable` varchar(50) NOT NULL,
  `vatrate` varchar(50) NOT NULL DEFAULT '16',
  `serial` varchar(30) NOT NULL,
  `itemstatus` varchar(30) NOT NULL DEFAULT 'received',
  `updatedby` int(11) NOT NULL,
  `updatedat` datetime NOT NULL,
  `uom` varchar(30) NOT NULL,
  `uomqty` varchar(30) NOT NULL DEFAULT '0',
  `branchid` int(11) NOT NULL DEFAULT '1',
  `buyingpriceinclusive` decimal(10,2) DEFAULT NULL,
  `taxtype` varchar(20) NOT NULL DEFAULT 'Inclusive',
  `category` varchar(20) NOT NULL DEFAULT 'branch',
  `projectid` int(50) DEFAULT NULL,
  `batchno` varchar(50) NOT NULL,
  `enddate` varchar(30) NOT NULL,
  `frombefore` varchar(20) NOT NULL,
  `fromafter` varchar(20) NOT NULL,
  `fromremoved` varchar(20) NOT NULL,
  `taskCd` varchar(50) NOT NULL,
  `itemSeq` varchar(50) NOT NULL,
  `itemClsCd` varchar(50) DEFAULT NULL,
  `taxTyCd` varchar(50) DEFAULT NULL,
  `pkgUnitCd` varchar(50) DEFAULT NULL,
  `imptItemsttsCd` varchar(50) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `newupgrade`
--

CREATE TABLE IF NOT EXISTS `newupgrade` (
  `id` int(11) NOT NULL,
  `name` varchar(45) DEFAULT NULL,
  `companyid` int(11) NOT NULL DEFAULT '1',
  `description` text NOT NULL,
  `phone` varchar(50) NOT NULL,
  `email` varchar(50) NOT NULL,
  `exactdate` varchar(50) NOT NULL,
  `comment` text NOT NULL,
  `status` varchar(30) NOT NULL DEFAULT 'new'
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `newupgrade`
--

INSERT INTO `newupgrade` (`id`, `name`, `companyid`, `description`, `phone`, `email`, `exactdate`, `comment`, `status`) VALUES
(1, 'General systems', 1, '', '', '', '', '', 'new'),
(2, 'E-commerce', 1, '', '', '', '', '', 'new'),
(3, 'Biometric', 1, '', '', '', '', '', 'new'),
(4, 'Website', 1, '', '', '', '', '', 'new'),
(5, 'PMS', 1, '', '', '', '', '', 'new'),
(6, 'Bulk sms', 1, '', '', '', '', '', 'new'),
(7, 'Pos', 1, '', '', '', '', '', 'new');

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

--
-- Table structure for table `nhif`
--

CREATE TABLE IF NOT EXISTS `nhif` (
  `id` int(50) NOT NULL,
  `start` decimal(10,2) NOT NULL,
  `end` decimal(10,2) NOT NULL,
  `amount` decimal(10,2) NOT NULL,
  `branchid` int(11) NOT NULL,
  `companyid` int(11) NOT NULL,
  `status` varchar(20) NOT NULL DEFAULT 'active',
  `category` varchar(20) NOT NULL,
  `userid` int(11) NOT NULL,
  `nhifrelief` decimal(10,2) DEFAULT NULL
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `nhif`
--

INSERT INTO `nhif` (`id`, `start`, `end`, `amount`, `branchid`, `companyid`, `status`, `category`, `userid`, `nhifrelief`) VALUES
(1, '0.00', '10926.00', '300.00', 1, 1, 'active', 'yes', 1, '0.00'),
(2, '10927.00', '99999999.99', '2.75', 1, 1, 'active', 'no', 1, '0.00');

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

--
-- Table structure for table `nhif2`
--

CREATE TABLE IF NOT EXISTS `nhif2` (
  `id` int(50) NOT NULL,
  `start` decimal(10,2) NOT NULL,
  `end` decimal(10,2) NOT NULL,
  `amount` decimal(10,2) NOT NULL,
  `branchid` int(11) NOT NULL,
  `companyid` int(11) NOT NULL,
  `status` varchar(20) NOT NULL DEFAULT 'active',
  `category` varchar(20) NOT NULL,
  `userid` int(11) NOT NULL,
  `nhifrelief` decimal(10,2) DEFAULT NULL
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `nhif2`
--

INSERT INTO `nhif2` (`id`, `start`, `end`, `amount`, `branchid`, `companyid`, `status`, `category`, `userid`, `nhifrelief`) VALUES
(1, '0.00', '5999.00', '150.00', 1, 1, 'active', 'employee', 1, '22.50'),
(2, '6000.00', '7999.00', '300.00', 1, 1, 'active', 'employee', 1, '45.00'),
(3, '8000.00', '11999.00', '400.00', 1, 1, 'active', 'employee', 1, '60.00'),
(4, '12000.00', '14999.00', '500.00', 1, 1, 'active', 'employee', 1, '75.00'),
(5, '15000.00', '19999.00', '600.00', 1, 1, 'active', 'employee', 1, '90.00'),
(6, '20000.00', '24999.00', '750.00', 1, 1, 'active', 'employee', 1, '112.50'),
(7, '25000.00', '29999.00', '850.00', 1, 1, 'active', 'employee', 1, '127.50'),
(8, '30000.00', '34999.00', '900.00', 1, 1, 'active', 'employee', 1, '135.00'),
(9, '35000.00', '39000.00', '950.00', 1, 1, 'active', 'employee', 1, '142.50'),
(10, '40000.00', '44999.00', '1000.00', 1, 1, 'active', 'employee', 1, '150.00'),
(11, '45000.00', '49000.00', '1100.00', 1, 1, 'active', 'employee', 1, '165.00'),
(12, '50000.00', '59999.00', '1200.00', 1, 1, 'active', 'employee', 1, '180.00'),
(13, '60000.00', '69999.00', '1300.00', 1, 1, 'active', 'employee', 1, '195.00'),
(14, '70000.00', '79999.00', '1400.00', 1, 1, 'active', 'employee', 1, '210.00'),
(15, '80000.00', '89999.00', '1500.00', 1, 1, 'active', 'employee', 1, '225.00'),
(16, '90000.00', '99999.00', '1600.00', 1, 1, 'active', 'employee', 1, '240.00'),
(17, '100000.00', '99999999.00', '1700.00', 1, 1, 'active', 'employee', 1, '255.00'),
(18, '0.00', '0.00', '500.00', 1, 1, 'active', 'employer', 1, '75.00');

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

--
-- Table structure for table `noticelist`
--

CREATE TABLE IF NOT EXISTS `noticelist` (
  `id` int(50) NOT NULL,
  `noticeNo` varchar(50) NOT NULL,
  `title` text NOT NULL,
  `cont` text NOT NULL,
  `dtlUrl` text NOT NULL,
  `regrNm` varchar(50) NOT NULL,
  `regDt` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `nssf`
--

CREATE TABLE IF NOT EXISTS `nssf` (
  `id` int(11) NOT NULL,
  `start` decimal(10,2) NOT NULL,
  `end` decimal(10,2) NOT NULL,
  `amount` decimal(10,2) NOT NULL,
  `branchid` int(11) NOT NULL,
  `companyid` int(11) NOT NULL,
  `status` varchar(20) NOT NULL DEFAULT 'active',
  `category` varchar(20) NOT NULL,
  `userid` int(11) NOT NULL,
  `tire1` decimal(10,2) NOT NULL,
  `tire2` decimal(10,2) NOT NULL,
  `tire1tire2` decimal(10,2) NOT NULL,
  `type` varchar(50) NOT NULL DEFAULT 'percentage',
  `flatrate` varchar(50) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `nssf`
--

INSERT INTO `nssf` (`id`, `start`, `end`, `amount`, `branchid`, `companyid`, `status`, `category`, `userid`, `tire1`, `tire2`, `tire1tire2`, `type`, `flatrate`) VALUES
(1, '0.00', '7000.00', '6.00', 1, 1, 'active', 'employee', 1, '420.00', '0.00', '420.00', 'percentage', 'no'),
(2, '7000.00', '36000.00', '6.00', 1, 1, 'active', 'employee', 1, '0.00', '1740.00', '2160.00', 'percentage', 'no'),
(3, '36000.00', '50000000.00', '6.00', 1, 1, 'active', 'employee', 1, '0.00', '0.00', '0.00', 'percentage', 'yes');

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

--
-- Table structure for table `offdays`
--

CREATE TABLE IF NOT EXISTS `offdays` (
  `id` int(11) NOT NULL,
  `groupid` int(11) NOT NULL,
  `offday` varchar(30) NOT NULL,
  `type` int(11) NOT NULL,
  `title` varchar(128) NOT NULL,
  `userid` varchar(30) DEFAULT NULL,
  `createdate` varchar(30) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='List of non working days';

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

--
-- Table structure for table `offtypes`
--

CREATE TABLE IF NOT EXISTS `offtypes` (
  `id` int(10) NOT NULL,
  `name` varchar(50) NOT NULL,
  `createdate` varchar(50) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `offtypes`
--

INSERT INTO `offtypes` (`id`, `name`, `createdate`) VALUES
(1, 'All day is off', '2018-05-17 04:40:12am'),
(2, 'Half day is off', '2018-05-17 04:41:13am'),
(3, 'Morning is off ', '2018-05-17 04:41:30am'),
(4, 'Afternoon is off', '2018-05-17 04:41:30am');

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

--
-- Table structure for table `openorders`
--

CREATE TABLE IF NOT EXISTS `openorders` (
  `id` int(11) NOT NULL,
  `code` varchar(50) NOT NULL,
  `description` text NOT NULL,
  `startdate` varchar(50) NOT NULL,
  `status` varchar(50) NOT NULL DEFAULT 'active',
  `userid` varchar(50) NOT NULL,
  `updatedate` varchar(50) NOT NULL,
  `companyid` varchar(50) NOT NULL,
  `category` varchar(30) NOT NULL,
  `messageid` varchar(30) NOT NULL,
  `updatedby` int(11) NOT NULL,
  `updateddate` varchar(30) NOT NULL,
  `closedate` text NOT NULL,
  `receiver` text NOT NULL,
  `millage` varchar(30) NOT NULL,
  `fuel` varchar(50) NOT NULL,
  `trips` text NOT NULL,
  `createdate` varchar(30) NOT NULL,
  `nextfuel` varchar(20) NOT NULL,
  `previoufueldate` varchar(30) NOT NULL,
  `previousfuelused` varchar(20) NOT NULL,
  `adjusted` varchar(20) NOT NULL,
  `fuellimit` varchar(20) NOT NULL,
  `fuelrate` varchar(20) NOT NULL,
  `exactfuel` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `orderlist`
--

CREATE TABLE IF NOT EXISTS `orderlist` (
  `id` int(30) NOT NULL,
  `type` varchar(30) NOT NULL,
  `userid` varchar(30) NOT NULL,
  `exactime` varchar(50) NOT NULL,
  `batchid` varchar(50) NOT NULL,
  `itemid` varchar(30) NOT NULL,
  `invoice` varchar(30) NOT NULL,
  `qty` decimal(10,2) DEFAULT NULL,
  `companyid` int(11) NOT NULL,
  `branchid` int(11) NOT NULL,
  `code` varchar(30) NOT NULL,
  `amount` decimal(10,2) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `outgoingstock`
--

CREATE TABLE IF NOT EXISTS `outgoingstock` (
  `id` int(50) NOT NULL,
  `name` varchar(50) NOT NULL,
  `description` text NOT NULL,
  `total` varchar(50) NOT NULL,
  `date` varchar(50) NOT NULL,
  `item_id` varchar(50) NOT NULL,
  `userid` varchar(50) NOT NULL,
  `status` varchar(50) NOT NULL DEFAULT 'newstock',
  `companyid` varchar(100) NOT NULL,
  `invoice_number` varchar(30) NOT NULL,
  `supplier` varchar(30) NOT NULL,
  `buyingprice` varchar(30) NOT NULL,
  `amount` varchar(30) NOT NULL,
  `type` varchar(30) NOT NULL DEFAULT 'shop',
  `comments` text NOT NULL,
  `branchid` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `packagingcodes`
--

CREATE TABLE IF NOT EXISTS `packagingcodes` (
  `id` int(50) NOT NULL,
  `name` text NOT NULL,
  `code` varchar(50) NOT NULL,
  `description` text,
  `status` varchar(50) NOT NULL,
  `sort_order` varchar(50) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=53 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `packagingcodes`
--

INSERT INTO `packagingcodes` (`id`, `name`, `code`, `description`, `status`, `sort_order`) VALUES
(1, 'Ampoule', 'AM', 'Ampoule', 'Y', '1'),
(2, 'Barrel', 'BA', 'Barrel', 'Y', '2'),
(3, 'Bottlecrate', 'BC', 'Bottlecrate', 'Y', '3'),
(4, 'Bundle', 'BE', 'Bundle', 'Y', '4'),
(5, 'Balloon, non-protected', 'BF', 'Balloon, non-protected', 'Y', '5'),
(6, 'Bag', 'BG', 'Bag', 'Y', '6'),
(7, 'Bucket', 'BJ', 'Bucket', 'Y', '7'),
(8, 'Basket', 'BK', 'Basket', 'Y', '8'),
(9, 'Bale', 'BL', 'Bale', 'Y', '9'),
(10, 'Bottle, protected cylindrical', 'BQ', 'Bottle, protected cylindrical', 'Y', '10'),
(11, 'Bar', 'BR', 'Bar', 'Y', '11'),
(12, 'Bottle, bulbous', 'BV', 'Bottle, bulbous', 'Y', '12'),
(13, 'Bag', 'BZ', 'Bag', 'Y', '13'),
(14, 'Can', 'CA', 'Can', 'Y', '14'),
(15, 'Chest', 'CH', 'Chest', 'Y', '15'),
(16, 'Coffin', 'CJ', 'Coffin', 'Y', '16'),
(17, 'Coil', 'CL', 'Coil', 'Y', '17'),
(18, 'Wooden Box, Wooden Case', 'CR', 'Wooden Box, Wooden Case', 'Y', '18'),
(19, 'Cassette', 'CS', 'Cassette', 'Y', '19'),
(20, 'Carton', 'CT', 'Carton', 'Y', '20'),
(21, 'Container', 'CTN', 'Container', 'Y', '21'),
(22, 'Cylinder', 'CY', 'Cylinder', 'Y', '22'),
(23, 'Drum', 'DR', 'Drum', 'Y', '23'),
(24, 'Extra Countable Item', 'GT', 'Extra Countable Item', 'Y', '24'),
(25, 'Hand Baggage', 'HH', 'Hand Baggage', 'Y', '25'),
(26, 'Ingots', 'IZ', 'Ingots', 'Y', '26'),
(27, 'Jar', 'JR', 'Jar', 'Y', '27'),
(28, 'Jug', 'JU', 'Jug', 'Y', '28'),
(29, 'Jerry CAN Cylindrical', 'JY', 'Jerry CAN Cylindrical', 'Y', '29'),
(30, 'Canester', 'KZ', 'Canester', 'Y', '30'),
(31, 'Logs, in bundle/bunch/truss', 'LZ', 'Logs, in bundle/bunch/truss', 'Y', '31'),
(32, 'Net', 'NT', 'Net', 'Y', '32'),
(33, 'Non-Exterior Packaging Unit', 'OU', 'Non-Exterior Packaging Unit', 'Y', '33'),
(34, 'Poddon', 'PD', 'Poddon', 'Y', '34'),
(35, 'Plate', 'PG', 'Plate', 'Y', '35'),
(36, 'Pipe', 'PI', 'Pipe', 'Y', '36'),
(37, 'Pilot', 'PO', 'Pilot', 'Y', '37'),
(38, 'Traypack', 'PU', 'Traypack', 'Y', '38'),
(39, 'Reel', 'RL', 'Reel', 'Y', '39'),
(40, 'Roll', 'RO', 'Roll', 'Y', '40'),
(41, 'Rods, in bundle/bunch/truss', 'RZ', 'Rods, in bundle/bunch/truss', 'Y', '41'),
(42, 'Skeletoncase', 'SK', 'Skeletoncase', 'Y', '42'),
(43, 'Tank, cylindrical', 'TY', 'Tank, cylindrical', 'Y', '43'),
(44, 'Bulk,gas(at 1031 mbar 15 oC)', 'VG', 'Bulk,gas(at 1031 mbar 15 oC)', 'Y', '44'),
(45, 'Bulk,liquid(at normal temperature/pressure)', 'VL', 'Bulk,liquid(at normal temperature/pressure)', 'Y', '45'),
(46, 'Bulk, solid, large particles(nodules)', 'VO', 'Bulk, solid, large particles("nodules")', 'Y', '46'),
(47, 'Bulk, gas (liquefied at abnormal temperature/pressure)', 'VQ', 'Bulk, gas(liquefied at abnormal temperature/pressure)', 'Y', '47'),
(48, 'Bulk, solid, granular particles(grains)', 'VR', 'Bulk, solid, granular particles("grains")', 'Y', '48'),
(49, 'Extra Bulk Item', 'VT', 'Extra Bulk Item', 'Y', '49'),
(50, 'Bulk, fine particles(powder)', 'VY', 'Bulk, fine particles("powder")', 'Y', '50'),
(51, 'Mills', 'ML', 'cigarette Mills', 'Y', '51'),
(52, 'TAN', 'TN', '1TAN REFER TO 20BAGS', 'Y', '52');

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

--
-- Table structure for table `parceldelivery`
--

CREATE TABLE IF NOT EXISTS `parceldelivery` (
  `id` int(10) NOT NULL,
  `branchfrom` varchar(50) NOT NULL,
  `serial` varchar(50) NOT NULL,
  `qty` varchar(50) NOT NULL,
  `details` text NOT NULL,
  `dateposted` datetime NOT NULL,
  `customer` varchar(40) NOT NULL,
  `userid` varchar(50) NOT NULL,
  `companyid` varchar(30) NOT NULL,
  `entrydate` varchar(50) NOT NULL,
  `supplier` varchar(30) NOT NULL,
  `original` text NOT NULL,
  `balance` decimal(10,2) NOT NULL,
  `branchid` int(11) NOT NULL DEFAULT '1',
  `amount` varchar(10) NOT NULL DEFAULT '0.00',
  `duedate` varchar(20) NOT NULL,
  `status` varchar(30) NOT NULL DEFAULT 'Dispatched',
  `mode` varchar(30) NOT NULL,
  `invoice` varchar(30) NOT NULL,
  `totalamount` varchar(30) NOT NULL DEFAULT '',
  `type` varchar(50) DEFAULT NULL,
  `receiver` varchar(50) NOT NULL,
  `receiverphone` varchar(50) NOT NULL,
  `receiveraddress` text NOT NULL,
  `origin` text NOT NULL,
  `destination` text NOT NULL,
  `weight` varchar(50) NOT NULL,
  `receiveremail` varchar(50) DEFAULT NULL,
  `totalvalue` varchar(20) NOT NULL,
  `vat` decimal(10,2) NOT NULL,
  `vatable` decimal(10,2) NOT NULL,
  `receiveridno` varchar(20) NOT NULL,
  `riderdetails` text NOT NULL,
  `senderidno` varchar(50) NOT NULL,
  `senderphone` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `password_resets`
--

CREATE TABLE IF NOT EXISTS `password_resets` (
  `email` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `token` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

--
-- Table structure for table `paye`
--

CREATE TABLE IF NOT EXISTS `paye` (
  `id` int(11) NOT NULL,
  `start` decimal(10,2) NOT NULL,
  `end` decimal(15,2) NOT NULL,
  `amt` decimal(10,2) NOT NULL,
  `branchid` int(11) NOT NULL,
  `companyid` int(11) NOT NULL,
  `status` varchar(20) NOT NULL DEFAULT 'active',
  `percentage` decimal(10,2) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `paye`
--

INSERT INTO `paye` (`id`, `start`, `end`, `amt`, `branchid`, `companyid`, `status`, `percentage`) VALUES
(1, '0.00', '24000.00', '24000.00', 1, 1, 'active', '10.00'),
(2, '24001.00', '32333.00', '8333.00', 1, 1, 'active', '25.00'),
(3, '32333.00', '10000000000.00', '32333.00', 1, 1, 'active', '30.00');

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

--
-- Table structure for table `paymentcodes`
--

CREATE TABLE IF NOT EXISTS `paymentcodes` (
  `id` int(50) NOT NULL,
  `name` text NOT NULL,
  `code` varchar(50) NOT NULL,
  `description` text,
  `status` varchar(50) NOT NULL,
  `sort_order` varchar(50) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `paymentcodes`
--

INSERT INTO `paymentcodes` (`id`, `name`, `code`, `description`, `status`, `sort_order`) VALUES
(1, 'CASH', '01', 'CASH', 'Y', '1'),
(2, 'CREDIT', '02', 'CREDIT', 'Y', '2'),
(3, 'CASH/CREDIT', '03', 'CASH/CREDIT', 'Y', '3'),
(4, 'BANK CHECK', '04', 'BANK CHECK PAYMENT', 'Y', '4'),
(5, 'DEBIT&CREDIT CARD', '05', 'PAYMENT USING CARD', 'Y', '5'),
(6, 'MOBILE MONEY', '06', 'ANY TRANSACTION USING MOBILE MONEY SYSTEM', 'Y', '6'),
(7, 'OTHER', '07', 'OTHER MEANS OF PAYMENT', 'Y', '7');

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

--
-- Table structure for table `paymentmethodes`
--

CREATE TABLE IF NOT EXISTS `paymentmethodes` (
  `id` int(11) NOT NULL,
  `name` text NOT NULL,
  `description` text NOT NULL,
  `status` varchar(10) NOT NULL DEFAULT 'active',
  `dateposted` varchar(30) NOT NULL,
  `userid` varchar(30) NOT NULL,
  `companyid` varchar(30) NOT NULL,
  `type` text NOT NULL,
  `balance` varchar(30) NOT NULL,
  `branchid` int(11) NOT NULL,
  `accountno` text
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `paymentmethodes`
--

INSERT INTO `paymentmethodes` (`id`, `name`, `description`, `status`, `dateposted`, `userid`, `companyid`, `type`, `balance`, `branchid`, `accountno`) VALUES
(1, 'cash', 'Cash payment', 'active', '2021-09-07 05:52:05', '1', '1', '1050', '', 1, NULL),
(2, 'mpesa', 'mpesa', 'active', '2021-09-22 10:35:37', '1', '1', '1010', '', 1, NULL),
(3, 'card', 'card payment', 'active', '2021-09-07 05:52:50', '1', '1', '1030', '', 1, NULL),
(4, 'bank', 'Bank payment', 'active', '2021-09-07 05:53:23', '1', '1', '1030', '', 1, NULL),
(5, 'credit', 'account receivable ', 'active', '2021-09-07 06:31:55', '1', '1', '1100', '', 1, NULL),
(6, 'voucher', 'Directors account', 'active', '2021-09-07 06:32:21', '1', '1', '1040', '', 1, NULL),
(7, 'creditnote', 'Account payable', 'active', '2021-09-07 06:34:11', '1', '1', '2130', '', 1, NULL),
(8, 'points', 'Account redeemable', 'active', '2021-09-07 06:36:16', '1', '1', '2130', '', 1, NULL);

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

--
-- Table structure for table `payments`
--

CREATE TABLE IF NOT EXISTS `payments` (
  `id` int(100) NOT NULL,
  `paidto` varchar(100) NOT NULL,
  `paiby` varchar(100) NOT NULL,
  `paiddate` varchar(100) NOT NULL,
  `todate` varchar(100) NOT NULL,
  `contact` varchar(100) NOT NULL,
  `status` varchar(100) NOT NULL,
  `approvedby` varchar(100) NOT NULL,
  `type` varchar(100) NOT NULL,
  `amount` varchar(100) NOT NULL,
  `receiptno` varchar(100) NOT NULL DEFAULT 'no',
  `comments` text NOT NULL,
  `idno` varchar(50) NOT NULL,
  `userid` varchar(50) NOT NULL,
  `email` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `paymentsection`
--

CREATE TABLE IF NOT EXISTS `paymentsection` (
  `id` int(40) NOT NULL,
  `methodid` varchar(100) NOT NULL,
  `name` varchar(100) NOT NULL,
  `description` text NOT NULL,
  `createdat` varchar(100) NOT NULL,
  `updatedat` varchar(100) NOT NULL,
  `userid` varchar(100) NOT NULL,
  `companyid` varchar(100) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `paymentsection`
--

INSERT INTO `paymentsection` (`id`, `methodid`, `name`, `description`, `createdat`, `updatedat`, `userid`, `companyid`) VALUES
(8, '2', 'KCB Bank', 'KCB Bank', '2016-04-20 10:39:59', '', '3', '3'),
(9, '2', 'Equity Bank', 'Equity Bank', '2016-04-20 10:40:10', '', '3', '3'),
(10, '4', 'cash', 'CASH', '2016-04-20 10:40:34', '', '3', '3'),
(11, '3', 'Lipa rent', '', '2016-04-20 10:40:48', '', '3', '3'),
(12, '1', 'Airtel Money', 'Airtel Money', '2016-04-20 10:41:17', '', '3', '3'),
(13, '1', 'M-pesa', 'M-pesa', '2016-04-20 10:41:32', '', '3', '3'),
(15, '6', 'Coparent', 'Coparent', '2016-05-25 04:21:55', '', '3', '3'),
(16, '2', 'Unaitas', 'Unaitas', '2017-12-16 06:51:45', '', '', '');

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

--
-- Table structure for table `payroll`
--

CREATE TABLE IF NOT EXISTS `payroll` (
  `id` int(100) NOT NULL,
  `type` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `designation` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `allowance` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `paytype` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `nohours` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `salary` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `nodays` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `nodaysyearly` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `annualsalary` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `monthlysalary` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `dailysalary` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `comments` text COLLATE utf8_unicode_ci NOT NULL,
  `vat` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'active',
  `payee` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `nssf` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `nihf` text COLLATE utf8_unicode_ci NOT NULL,
  `employeeid` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `advance` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `userid` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `createdate` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `updatedat` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `companyid` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `other` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `month` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `year` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `loan` varchar(100) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

--
-- Table structure for table `people`
--

CREATE TABLE IF NOT EXISTS `people` (
  `id` int(11) NOT NULL,
  `nhifrelief` decimal(10,2) DEFAULT NULL,
  `firstname` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `surname` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `lastname` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `phone` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `email` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `password` text COLLATE utf8_unicode_ci NOT NULL,
  `address_1` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `gender` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `city` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `zip` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `country` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `comments` text COLLATE utf8_unicode_ci NOT NULL,
  `image_id` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `category` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'accommodation',
  `status` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '1',
  `company` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `account` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `website` text COLLATE utf8_unicode_ci NOT NULL,
  `idno` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `balance` decimal(10,2) NOT NULL,
  `userid` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `createdate` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `updatedat` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `companyid` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `entrydate` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `jobstatus` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `salary` decimal(10,2) NOT NULL,
  `department` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `dob` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `passport` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `ethnicity` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `religion` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `salarystartdate` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `salaryreviewdate` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `bankname` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `bankaccount` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `paymentmode` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `method` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `probationdate` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `number` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `relief` decimal(10,2) NOT NULL,
  `leavegroup` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `manager` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `marital` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `smstype` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `totalsms` decimal(10,2) NOT NULL,
  `apiaccount_id` int(11) NOT NULL,
  `photo` text COLLATE utf8_unicode_ci NOT NULL,
  `code` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `service` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `usertype` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'user',
  `username` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `county` int(11) NOT NULL,
  `province` int(11) NOT NULL,
  `box` int(11) DEFAULT NULL,
  `town` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `updatedate` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `recoverpassword` int(11) NOT NULL,
  `createddate` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `rate` decimal(10,2) DEFAULT NULL,
  `kra` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `nssf` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `nhif` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `paid` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `supplierbalance` decimal(10,2) NOT NULL,
  `balanceuploaded` int(11) DEFAULT '0',
  `savedcoins` decimal(10,2) NOT NULL,
  `savedpoints` decimal(10,2) NOT NULL,
  `customerlimit` varchar(10) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'no',
  `limitamount` decimal(10,2) NOT NULL,
  `dropdown` varchar(10) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'no',
  `lastbalancedate` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `accountname` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `accountno` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `certificate` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `shares` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `certificateno` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `renewaldetails` varchar(30) COLLATE utf8_unicode_ci DEFAULT NULL,
  `salesperson` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL,
  `idnumber` text COLLATE utf8_unicode_ci,
  `branchid` int(11) NOT NULL DEFAULT '1',
  `bankcode` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `branchcode` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `group` int(20) DEFAULT NULL,
  `transactionid` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `smscode` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `timesent` datetime NOT NULL,
  `computerno` text COLLATE utf8_unicode_ci NOT NULL,
  `computernostatus` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'new',
  `computernodate` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `computernouserdata` text COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `people`
--

INSERT INTO `people` (`id`, `nhifrelief`, `firstname`, `surname`, `lastname`, `phone`, `email`, `password`, `address_1`, `gender`, `city`, `zip`, `country`, `comments`, `image_id`, `category`, `status`, `company`, `account`, `website`, `idno`, `balance`, `userid`, `createdate`, `updatedat`, `companyid`, `entrydate`, `jobstatus`, `salary`, `department`, `dob`, `passport`, `ethnicity`, `religion`, `salarystartdate`, `salaryreviewdate`, `bankname`, `bankaccount`, `paymentmode`, `method`, `probationdate`, `number`, `relief`, `leavegroup`, `manager`, `marital`, `smstype`, `totalsms`, `apiaccount_id`, `photo`, `code`, `service`, `usertype`, `username`, `county`, `province`, `box`, `town`, `updatedate`, `recoverpassword`, `createddate`, `rate`, `kra`, `nssf`, `nhif`, `paid`, `supplierbalance`, `balanceuploaded`, `savedcoins`, `savedpoints`, `customerlimit`, `limitamount`, `dropdown`, `lastbalancedate`, `accountname`, `accountno`, `certificate`, `shares`, `certificateno`, `renewaldetails`, `salesperson`, `idnumber`, `branchid`, `bankcode`, `branchcode`, `group`, `transactionid`, `smscode`, `timesent`, `computerno`, `computernostatus`, `computernodate`, `computernouserdata`) VALUES
(1, '123.75', 'Admin', 'Advanta', 'FAITH', '254718667391', 'robisearch@gmail.com', '098765432', '254718667391', 'female', '', '', '0', '', '155663771675825033', 'user', '1', '', '', '', '3343455', '-2229819.00', '1', '2025-03-24', '', '1', '2019-06-11', 'Contract', '30000.00', '', '2019-06-06', '', '', '', '2019-06-05', '2019-06-06', 'KCB', '2412423', 'Daily', '1', '2019-09-20', '0222222', '0.00', '', '', 'Single', '', '500.00', 1, '', '1000', 'yes', 'admin', '', 0, 0, 0, '', '2019-08-28', 0, '', '5.00', '', '', '', 'Yes', '0.00', 0, '0.00', '983215.20', 'no', '200.00', '', '2024-12-20 12:14:12', '', '', '', '', '', '', '', 'P06666xxx', 1, '022', '444', 0, '', '534032', '2022-10-23 20:40:59', 'B0-22-7A-ED-77-F6', 'new', '2023-02-04 09:37:04', 'Submited by ROBERT MANYALA, With Phone No: 254718667391 at 2023-02-04 09:37:04'),
(2, NULL, 'Default2', 'Default', 'Default2', '254718667391', 'admin', 'Robisearch321', 'Default', '', '', '', '1 ', '', NULL, 'supplier', '1', 'Default2', '', '', '666663', '5100.00', '1', '2025-03-06 10:24:56', '', '1', '', '', '0.00', '', '', '', '', '', '', '', '', '', 'Monthly', '4', '', '', '0.00', '', '', '', '', '0.00', 0, '', '', '', 'user', '', 0, 0, 0, '', '', 0, '', '10.00', '', '', '', 'yes', '2361.97', 0, '0.00', '11.40', 'no', '300.00', 'yes', '2025-03-24 05:03:52', '', '', '', '', '', '', '', '', 1, NULL, NULL, 0, '', '', '0000-00-00 00:00:00', '', 'new', '', '');

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

--
-- Table structure for table `peopleregistration`
--

CREATE TABLE IF NOT EXISTS `peopleregistration` (
  `id` int(11) NOT NULL,
  `nhifrelief` decimal(10,2) DEFAULT NULL,
  `firstname` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `surname` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `lastname` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `phone` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `email` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `password` text COLLATE utf8_unicode_ci NOT NULL,
  `address_1` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `gender` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `city` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `zip` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `country` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `comments` text COLLATE utf8_unicode_ci NOT NULL,
  `image_id` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `category` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'accommodation',
  `status` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '1',
  `company` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `account` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `website` text COLLATE utf8_unicode_ci NOT NULL,
  `idno` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `balance` decimal(10,2) NOT NULL,
  `userid` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `createdate` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `updatedat` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `companyid` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `entrydate` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `jobstatus` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `salary` decimal(10,2) NOT NULL,
  `department` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `dob` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `passport` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `ethnicity` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `religion` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `salarystartdate` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `salaryreviewdate` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `bankname` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `bankaccount` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `paymentmode` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `method` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `probationdate` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `number` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `relief` decimal(10,2) NOT NULL,
  `leavegroup` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `manager` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `marital` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `smstype` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `totalsms` decimal(10,2) NOT NULL,
  `apiaccount_id` int(11) NOT NULL,
  `photo` text COLLATE utf8_unicode_ci NOT NULL,
  `code` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `service` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `usertype` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'user',
  `username` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `county` int(11) NOT NULL,
  `province` int(11) NOT NULL,
  `box` int(11) NOT NULL,
  `town` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `updatedate` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `recoverpassword` int(11) NOT NULL,
  `createddate` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `rate` decimal(10,2) DEFAULT NULL,
  `kra` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `nssf` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `nhif` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `paid` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
  `supplierbalance` decimal(10,2) NOT NULL,
  `balanceuploaded` int(11) DEFAULT '0',
  `savedcoins` decimal(10,2) NOT NULL,
  `savedpoints` decimal(10,2) NOT NULL,
  `customerlimit` varchar(10) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'no',
  `limitamount` decimal(10,2) NOT NULL,
  `dropdown` varchar(10) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'no',
  `lastbalancedate` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `accountname` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `accountno` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `certificate` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `shares` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `certificateno` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `renewaldetails` varchar(30) COLLATE utf8_unicode_ci DEFAULT NULL,
  `salesperson` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL,
  `idnumber` text COLLATE utf8_unicode_ci,
  `branchid` int(11) NOT NULL DEFAULT '1',
  `bankcode` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `branchcode` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `group` int(20) DEFAULT NULL,
  `transactionid` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `smscode` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `timesent` datetime NOT NULL,
  `computerno` text COLLATE utf8_unicode_ci NOT NULL,
  `computernostatus` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'new',
  `computernodate` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `computernouserdata` text COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

--
-- Table structure for table `periods`
--

CREATE TABLE IF NOT EXISTS `periods` (
  `id` int(11) NOT NULL,
  `name` varchar(50) NOT NULL,
  `description` text NOT NULL,
  `createdate` varchar(50) NOT NULL,
  `status` varchar(50) NOT NULL DEFAULT 'active',
  `userid` varchar(50) NOT NULL,
  `updatedate` varchar(50) NOT NULL,
  `companyid` varchar(50) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `periods`
--

INSERT INTO `periods` (`id`, `name`, `description`, `createdate`, `status`, `userid`, `updatedate`, `companyid`) VALUES
(1, 'Daily', 'Daily', '', 'active', '1', '', '1'),
(2, 'Weekly', 'Weekly', '', 'active', '1', '', '1'),
(3, 'Monthly', 'Monthly', '', 'active', '1', '', '1'),
(4, 'Quarterly', 'Quarterly', '', 'active', '1', '', '1'),
(5, 'Annually', 'Annually', '', 'active', '1', '', '1'),
(6, 'Fortnightly', 'Fortnightly', '', 'active', '1', '', '1'),
(7, 'Bi monthly', 'Bi monthly', '', 'active', '1', '', '1');

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

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

CREATE TABLE IF NOT EXISTS `permissions` (
  `moduleid` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `userid` int(10) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `permissions`
--

INSERT INTO `permissions` (`moduleid`, `userid`) VALUES
('accomodation', 1),
('accounting', 1),
('accountingreports', 1),
('assets', 1),
('bankdeposits', 1),
('banktransfer', 1),
('biometricrecords', 1),
('branch', 1),
('callcenter', 1),
('cashiersales', 1),
('chequemanagemant', 1),
('complain', 1),
('config', 1),
('damagedproducts', 1),
('deals', 1),
('departments', 1),
('displayreport', 1),
('documents', 1),
('ecommerce', 1),
('events', 1),
('grouping', 1),
('humanresource', 1),
('income', 1),
('incomeexpenses', 1),
('incomingstock', 1),
('journalentry', 1),
('labourrecords', 1),
('leavemanagement', 1),
('lowproducts', 1),
('lowstocklist', 1),
('loyalitycards', 1),
('members', 1),
('password', 1),
('payroll', 1),
('payrollsetup', 1),
('peoplecategory', 1),
('productlist', 1),
('products', 1),
('productscategory', 1),
('profile', 1),
('projectsmanagement', 1),
('purchases', 1),
('quotation', 1),
('recorddelivery', 1),
('reports', 1),
('sales', 1),
('salesorder', 1),
('sendsms', 1),
('task', 1),
('taskscategory', 1),
('users', 1),
('viewreturnsales', 1),
('wholesale', 1),
('cashiersales', 4),
('password', 4),
('recorddelivery', 4),
('sales', 4),
('wholesale', 4),
('cashiersales', 12),
('income', 12),
('recorddelivery', 12),
('sales', 12);

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

--
-- Table structure for table `permissionsactions`
--

CREATE TABLE IF NOT EXISTS `permissionsactions` (
  `id` int(11) NOT NULL,
  `moduleid` varchar(100) NOT NULL,
  `userid` varchar(100) NOT NULL,
  `actionid` varchar(100) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=45191 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `permissionsactions`
--

INSERT INTO `permissionsactions` (`id`, `moduleid`, `userid`, `actionid`) VALUES
(31735, 'sales', '4', 'suspend'),
(31736, 'sales', '4', 'printreceipt'),
(31737, 'sales', '4', 'add'),
(31738, 'sales', '4', 'update'),
(31739, 'sales', '4', 'cash'),
(31740, 'sales', '4', 'moresales'),
(31741, 'sales', '4', 'sale'),
(31742, 'sales', '4', 'mpesa'),
(31743, 'sales', '4', 'clearpayments'),
(31744, 'sales', '4', 'updatepaymentmode'),
(31745, 'sales', '4', 'card'),
(31746, 'sales', '4', 'cheque'),
(31747, 'sales', '4', 'credit'),
(31748, 'sales', '4', 'dontprint'),
(31749, 'wholesale', '4', 'sale'),
(31750, 'wholesale', '4', 'add'),
(31751, 'wholesale', '4', 'delete'),
(31752, 'wholesale', '4', 'update'),
(31753, 'cashiersales', '4', 'entermpesacode'),
(31754, 'cashiersales', '4', 'editmpesa'),
(31755, 'cashiersales', '4', 'cashiersales'),
(31756, 'cashiersales', '4', 'editmpesadate'),
(31757, 'cashiersales', '4', 'dontshowtotal'),
(31758, 'cashiersales', '4', 'adddailycollection'),
(31759, 'cashiersales', '4', 'viewtill'),
(31760, 'cashiersales', '4', 'viewdailycollections'),
(31761, 'cashiersales', '4', 'updatedailycollections'),
(31762, 'cashiersales', '4', 'mpesapendingreport'),
(31763, 'cashiersales', '4', 'viewallcounters'),
(31764, 'cashiersales', '4', 'mpesaverifiedreport'),
(31765, 'cashiersales', '4', 'viewcommission'),
(31766, 'cashiersales', '4', 'dailysalesonly'),
(31767, 'cashiersales', '4', 'viewmpesamessages'),
(31768, 'recorddelivery', '4', 'add'),
(31769, 'recorddelivery', '4', 'view'),
(31770, 'recorddelivery', '4', 'update'),
(31771, 'recorddelivery', '4', 'delete'),
(31772, 'recorddelivery', '4', 'changestatus'),
(31773, 'recorddelivery', '4', 'report'),
(31774, 'recorddelivery', '4', 'Dispatched'),
(31775, 'recorddelivery', '4', 'FailedDelivery'),
(31776, 'recorddelivery', '4', 'ReturnedandReceived'),
(31777, 'recorddelivery', '4', 'Delivered'),
(31778, 'recorddelivery', '4', 'Claimraised'),
(31779, 'recorddelivery', '4', 'ClaimOK'),
(31780, 'recorddelivery', '4', 'ClaimDamaged'),
(31781, 'password', '4', 'change'),
(43345, 'sales', '12', 'add'),
(43346, 'sales', '12', 'printreceipt'),
(43347, 'sales', '12', 'suspend'),
(43348, 'sales', '12', 'selectmessage'),
(43349, 'sales', '12', 'update'),
(43350, 'sales', '12', 'delete'),
(43351, 'sales', '12', 'cash'),
(43352, 'sales', '12', 'moresales'),
(43353, 'sales', '12', 'sale'),
(43354, 'sales', '12', 'discount'),
(43355, 'sales', '12', 'select'),
(43356, 'sales', '12', 'Logout'),
(43357, 'sales', '12', 'mpesabalance'),
(43358, 'sales', '12', 'reprint'),
(43359, 'sales', '12', 'displaycustomers'),
(43360, 'sales', '12', 'mpesa'),
(43361, 'sales', '12', 'order'),
(43362, 'sales', '12', 'printbill'),
(43363, 'sales', '12', 'productdiscount'),
(43364, 'sales', '12', 'closebill'),
(43365, 'sales', '12', 'viewbuyingprice'),
(43366, 'sales', '12', 'editsellingprice'),
(43367, 'sales', '12', 'hold'),
(43368, 'sales', '12', 'card'),
(43369, 'sales', '12', 'updatepaymentmode'),
(43370, 'sales', '12', 'clearpayments'),
(43371, 'sales', '12', 'cheque'),
(43372, 'sales', '12', 'creditnote'),
(43373, 'sales', '12', 'voucher'),
(43374, 'sales', '12', 'salesbeyondbprice'),
(43375, 'sales', '12', 'points'),
(43376, 'sales', '12', 'salebelowbprice'),
(43377, 'sales', '12', 'credit'),
(43378, 'sales', '12', 'selectroom'),
(43379, 'sales', '12', 'dontprint'),
(43380, 'sales', '12', 'accountlimit'),
(43381, 'sales', '12', 'backdatesales'),
(43382, 'sales', '12', 'recordcoins'),
(43383, 'sales', '12', 'giveloyalityponts'),
(43384, 'sales', '12', 'changetaxstatus'),
(43385, 'sales', '12', 'leaseitems'),
(43386, 'sales', '12', 'dontshowstock'),
(43387, 'sales', '12', 'splitbill'),
(43388, 'sales', '12', 'mergebill'),
(43389, 'sales', '12', 'changeuomonsales'),
(43390, 'sales', '12', 'selecttable'),
(43391, 'sales', '12', 'printdelivery'),
(43392, 'sales', '12', 'entermpesacode'),
(43393, 'sales', '12', 'sendsms'),
(43394, 'sales', '12', 'salesperson'),
(43395, 'sales', '12', 'usekeyboard'),
(43396, 'sales', '12', 'receiptno'),
(43397, 'sales', '12', 'selectcurrency'),
(43398, 'sales', '12', 'negativesales'),
(43399, 'sales', '12', 'updateqtysales'),
(43400, 'sales', '12', 'displaypreviousbalance'),
(43401, 'sales', '12', 'restrictbillprintingtotwo'),
(43402, 'sales', '12', 'claimmpesacode'),
(43403, 'sales', '12', 'swapsales'),
(43404, 'cashiersales', '12', 'entermpesacode'),
(43405, 'cashiersales', '12', 'editmpesa'),
(43406, 'cashiersales', '12', 'all'),
(43407, 'cashiersales', '12', 'delete'),
(43408, 'cashiersales', '12', 'cashiersales'),
(43409, 'cashiersales', '12', 'editmpesadate'),
(43410, 'cashiersales', '12', 'dontshowtotal'),
(43411, 'cashiersales', '12', 'adddailycollection'),
(43412, 'cashiersales', '12', 'viewtill'),
(43413, 'cashiersales', '12', 'viewdailycollections'),
(43414, 'cashiersales', '12', 'updatedailycollections'),
(43415, 'cashiersales', '12', 'reversempesa'),
(43416, 'cashiersales', '12', 'deletedailycollections'),
(43417, 'cashiersales', '12', 'clearallsales'),
(43418, 'cashiersales', '12', 'viewallcollections'),
(43419, 'cashiersales', '12', 'mpesapendingreport'),
(43420, 'cashiersales', '12', 'viewallcounters'),
(43421, 'cashiersales', '12', 'mpesaverifiedreport'),
(43422, 'cashiersales', '12', 'viewcommission'),
(43423, 'cashiersales', '12', 'viewmpesamessages'),
(43424, 'cashiersales', '12', 'dailysalesonly'),
(43425, 'cashiersales', '12', 'changestatus'),
(43426, 'cashiersales', '12', 'pendingisdefault'),
(43427, 'cashiersales', '12', 'clearsalesisdefault'),
(43428, 'cashiersales', '12', 'showsitemmovement'),
(43429, 'recorddelivery', '12', 'add'),
(43430, 'recorddelivery', '12', 'view'),
(43431, 'recorddelivery', '12', 'changestatus'),
(43432, 'recorddelivery', '12', 'Dispatched'),
(43433, 'recorddelivery', '12', 'ReturnedandReceived'),
(43434, 'recorddelivery', '12', 'Delivered'),
(43435, 'recorddelivery', '12', 'Claimraised'),
(43436, 'recorddelivery', '12', 'ClaimOK'),
(43437, 'recorddelivery', '12', 'ClaimDamaged'),
(43438, 'income', '12', 'View'),
(43439, 'income', '12', 'add'),
(43440, 'income', '12', 'detailedvatinvoice'),
(43441, 'income', '12', 'displaybeforevat'),
(43442, 'income', '12', 'receiveoverpayment'),
(43443, 'income', '12', 'receivedublicatecodes'),
(43444, 'income', '12', 'dontreceivepartialpayment'),
(44843, 'sales', '1', 'printreceipt'),
(44844, 'sales', '1', 'add'),
(44845, 'sales', '1', 'suspend'),
(44846, 'sales', '1', 'selectmessage'),
(44847, 'sales', '1', 'update'),
(44848, 'sales', '1', 'delete'),
(44849, 'sales', '1', 'cash'),
(44850, 'sales', '1', 'moresales'),
(44851, 'sales', '1', 'sale'),
(44852, 'sales', '1', 'mpesabalance'),
(44853, 'sales', '1', 'select'),
(44854, 'sales', '1', 'discount'),
(44855, 'sales', '1', 'Logout'),
(44856, 'sales', '1', 'reprint'),
(44857, 'sales', '1', 'productdiscount'),
(44858, 'sales', '1', 'closebill'),
(44859, 'sales', '1', 'mpesa'),
(44860, 'sales', '1', 'order'),
(44861, 'sales', '1', 'printbill'),
(44862, 'sales', '1', 'viewbuyingprice'),
(44863, 'sales', '1', 'hold'),
(44864, 'sales', '1', 'allowdiscountdropdown'),
(44865, 'sales', '1', 'editsellingprice'),
(44866, 'sales', '1', 'updatepaymentmode'),
(44867, 'sales', '1', 'card'),
(44868, 'sales', '1', 'clearpayments'),
(44869, 'sales', '1', 'creditnote'),
(44870, 'sales', '1', 'cheque'),
(44871, 'sales', '1', 'points'),
(44872, 'sales', '1', 'salesbeyondbprice'),
(44873, 'sales', '1', 'voucher'),
(44874, 'sales', '1', 'credit'),
(44875, 'sales', '1', 'salebelowbprice'),
(44876, 'sales', '1', 'selectroom'),
(44877, 'sales', '1', 'dontprint'),
(44878, 'sales', '1', 'backdatesales'),
(44879, 'sales', '1', 'giveloyalityponts'),
(44880, 'sales', '1', 'leaseitems'),
(44881, 'sales', '1', 'changetaxstatus'),
(44882, 'sales', '1', 'splitbill'),
(44883, 'sales', '1', 'mergebill'),
(44884, 'sales', '1', 'changeuomonsales'),
(44885, 'sales', '1', 'selecttable'),
(44886, 'sales', '1', 'printdelivery'),
(44887, 'sales', '1', 'sendsms'),
(44888, 'sales', '1', 'salesperson'),
(44889, 'sales', '1', 'receiptno'),
(44890, 'sales', '1', 'updateqtysales'),
(44891, 'sales', '1', 'displaypreviousbalance'),
(44892, 'sales', '1', 'restrictbillprintingtotwo'),
(44893, 'sales', '1', 'claimmpesacode'),
(44894, 'sales', '1', 'swapsales'),
(44895, 'wholesale', '1', 'sale'),
(44896, 'wholesale', '1', 'add'),
(44897, 'wholesale', '1', 'delete'),
(44898, 'wholesale', '1', 'update'),
(44899, 'cashiersales', '1', 'entermpesacode'),
(44900, 'cashiersales', '1', 'editmpesa'),
(44901, 'cashiersales', '1', 'all'),
(44902, 'cashiersales', '1', 'delete'),
(44903, 'cashiersales', '1', 'cashiersales'),
(44904, 'cashiersales', '1', 'editmpesadate'),
(44905, 'cashiersales', '1', 'adddailycollection'),
(44906, 'cashiersales', '1', 'viewtill'),
(44907, 'cashiersales', '1', 'viewdailycollections'),
(44908, 'cashiersales', '1', 'updatedailycollections'),
(44909, 'cashiersales', '1', 'reversempesa'),
(44910, 'cashiersales', '1', 'deletedailycollections'),
(44911, 'cashiersales', '1', 'clearallsales'),
(44912, 'cashiersales', '1', 'viewallcollections'),
(44913, 'cashiersales', '1', 'mpesapendingreport'),
(44914, 'cashiersales', '1', 'mpesaverifiedreport'),
(44915, 'cashiersales', '1', 'viewcommission'),
(44916, 'cashiersales', '1', 'changestatus'),
(44917, 'cashiersales', '1', 'showsitemmovement'),
(44918, 'recorddelivery', '1', 'add'),
(44919, 'recorddelivery', '1', 'view'),
(44920, 'recorddelivery', '1', 'update'),
(44921, 'recorddelivery', '1', 'delete'),
(44922, 'recorddelivery', '1', 'changestatus'),
(44923, 'recorddelivery', '1', 'report'),
(44924, 'recorddelivery', '1', 'Dispatched'),
(44925, 'recorddelivery', '1', 'FailedDelivery'),
(44926, 'recorddelivery', '1', 'ReturnedandReceived'),
(44927, 'recorddelivery', '1', 'Delivered'),
(44928, 'recorddelivery', '1', 'Claimraised'),
(44929, 'recorddelivery', '1', 'ClaimOK'),
(44930, 'recorddelivery', '1', 'ClaimDamaged'),
(44931, 'purchases', '1', 'add'),
(44932, 'purchases', '1', 'update'),
(44933, 'purchases', '1', 'delete'),
(44934, 'purchases', '1', 'updatebuyingprice'),
(44935, 'purchases', '1', 'updatesellingprice'),
(44936, 'purchases', '1', 'updateclosedinvoice'),
(44937, 'purchases', '1', 'viewquotation'),
(44938, 'purchases', '1', 'viewdirectpurchases'),
(44939, 'purchases', '1', 'viewserials'),
(44940, 'purchases', '1', 'viewpurchase'),
(44941, 'purchases', '1', 'salesorder'),
(44942, 'purchases', '1', 'budget'),
(44943, 'purchases', '1', 'showdefaultserials'),
(44944, 'purchases', '1', 'approve'),
(44945, 'purchases', '1', 'addbatchno'),
(44946, 'purchases', '1', 'addexpirydate'),
(44947, 'purchases', '1', 'updateserial'),
(44948, 'salesorder', '1', 'add'),
(44949, 'salesorder', '1', 'view'),
(44950, 'salesorder', '1', 'update'),
(44951, 'salesorder', '1', 'viewall'),
(44952, 'viewreturnsales', '1', 'add'),
(44953, 'viewreturnsales', '1', 'update'),
(44954, 'viewreturnsales', '1', 'delete'),
(44955, 'viewreturnsales', '1', 'return'),
(44956, 'viewreturnsales', '1', 'clear'),
(44957, 'viewreturnsales', '1', 'moresales'),
(44958, 'viewreturnsales', '1', 'returnclearedsales'),
(44959, 'income', '1', 'View'),
(44960, 'income', '1', 'add'),
(44961, 'income', '1', 'detailedvatinvoice'),
(44962, 'income', '1', 'receivedublicatecodes'),
(44963, 'incomeexpenses', '1', 'add'),
(44964, 'incomeexpenses', '1', 'closeexpense'),
(44965, 'incomeexpenses', '1', 'update'),
(44966, 'incomeexpenses', '1', 'updateclosedexpenses'),
(44967, 'incomeexpenses', '1', 'viewbills'),
(44968, 'incomeexpenses', '1', 'viewexpense'),
(44969, 'incomeexpenses', '1', 'viewdebtors'),
(44970, 'incomeexpenses', '1', 'viewcreditors'),
(44971, 'incomeexpenses', '1', 'postrentalexpenses'),
(44972, 'incomeexpenses', '1', 'uploadexpenses'),
(44973, 'accomodation', '1', 'viewrooms'),
(44974, 'accomodation', '1', 'dailysales'),
(44975, 'accomodation', '1', 'addhouse'),
(44976, 'accomodation', '1', 'viewhouse'),
(44977, 'accomodation', '1', 'mpesa'),
(44978, 'accomodation', '1', 'cash'),
(44979, 'accomodation', '1', 'checkinroom'),
(44980, 'accomodation', '1', 'credit'),
(44981, 'accomodation', '1', 'cheque'),
(44982, 'accomodation', '1', 'voucher'),
(44983, 'accomodation', '1', 'points'),
(44984, 'accomodation', '1', 'card'),
(44985, 'accomodation', '1', 'checkoutroom'),
(44986, 'accomodation', '1', 'cancel'),
(44987, 'accomodation', '1', 'addroom'),
(44988, 'accomodation', '1', 'cleanrooms'),
(44989, 'accomodation', '1', 'addcharges'),
(44990, 'accomodation', '1', 'givediscount'),
(44991, 'accomodation', '1', 'updatecharges'),
(44992, 'accomodation', '1', 'checkin'),
(44993, 'accomodation', '1', 'updatehouse'),
(44994, 'accomodation', '1', 'updateroom'),
(44995, 'accomodation', '1', 'postexpense'),
(44996, 'accomodation', '1', 'Post Bank Deposits'),
(44997, 'accomodation', '1', 'managehotel'),
(44998, 'accomodation', '1', 'assignrooms'),
(44999, 'accomodation', '1', 'managerental'),
(45000, 'accomodation', '1', 'housekeeping'),
(45001, 'accomodation', '1', 'changepayment'),
(45002, 'accomodation', '1', 'dailypayments'),
(45003, 'accomodation', '1', 'customerregister'),
(45004, 'accomodation', '1', 'advancebooking'),
(45005, 'accomodation', '1', 'checkoutcustomerwithbalance'),
(45006, 'accomodation', '1', 'viewreports'),
(45007, 'accomodation', '1', 'managecustomer'),
(45008, 'accomodation', '1', 'accommodationreceiptionist'),
(45009, 'accomodation', '1', 'meterreading'),
(45010, 'accomodation', '1', 'viewroomcleaned'),
(45011, 'accomodation', '1', 'config'),
(45012, 'accomodation', '1', 'clearsales'),
(45013, 'accomodation', '1', 'dailycollections'),
(45014, 'accomodation', '1', 'bulkcheckin'),
(45015, 'accomodation', '1', 'bulkreservation'),
(45016, 'accomodation', '1', 'bulkstatuschange'),
(45017, 'accomodation', '1', 'plotexpenses'),
(45018, 'branch', '1', 'add'),
(45019, 'branch', '1', 'view'),
(45020, 'branch', '1', 'update'),
(45021, 'branch', '1', 'delete'),
(45022, 'members', '1', 'add'),
(45023, 'members', '1', 'update'),
(45024, 'members', '1', 'deletepeople'),
(45025, 'members', '1', 'opencloseshift'),
(45026, 'members', '1', 'UpdateRenewal'),
(45027, 'users', '1', 'add'),
(45028, 'users', '1', 'update'),
(45029, 'users', '1', 'delete'),
(45030, 'users', '1', 'deleteallroles'),
(45031, 'productscategory', '1', 'add'),
(45032, 'productscategory', '1', 'update'),
(45033, 'productscategory', '1', 'delete'),
(45034, 'productlist', '1', 'bulk'),
(45035, 'productlist', '1', 'move'),
(45036, 'productlist', '1', 'more'),
(45037, 'productlist', '1', 'updatestock'),
(45038, 'productlist', '1', 'transfer'),
(45039, 'productlist', '1', 'addstock'),
(45040, 'productlist', '1', 'delete'),
(45041, 'productlist', '1', 'view'),
(45042, 'productlist', '1', 'update'),
(45043, 'productlist', '1', 'add'),
(45044, 'productlist', '1', 'stocktaking'),
(45045, 'productlist', '1', 'openclosestock'),
(45046, 'productlist', '1', 'editstocktaken'),
(45047, 'productlist', '1', 'editopenclosestock'),
(45048, 'productlist', '1', 'changeserialstatus'),
(45049, 'productlist', '1', 'viewserials'),
(45050, 'productlist', '1', 'bulkpriceupdate'),
(45051, 'productlist', '1', 'negativestockadjustment'),
(45052, 'productlist', '1', 'viewproduction'),
(45053, 'productlist', '1', 'assignproduction'),
(45054, 'productlist', '1', 'deleteproductionitem'),
(45055, 'productlist', '1', 'updateproductionitem'),
(45056, 'products', '1', 'add'),
(45057, 'products', '1', 'update'),
(45058, 'products', '1', 'delete'),
(45059, 'products', '1', 'addstock'),
(45060, 'products', '1', 'more'),
(45061, 'products', '1', 'bulk'),
(45062, 'products', '1', 'deleteorder'),
(45063, 'products', '1', 'dispatch'),
(45064, 'products', '1', 'removestock'),
(45065, 'products', '1', 'price'),
(45066, 'products', '1', 'removeallstock'),
(45067, 'products', '1', 'bulkpriceupdate'),
(45068, 'products', '1', 'negativestockadjustment'),
(45069, 'incomingstock', '1', 'add'),
(45070, 'incomingstock', '1', 'update'),
(45071, 'incomingstock', '1', 'view'),
(45072, 'incomingstock', '1', 'delete'),
(45073, 'incomingstore', '1', 'add'),
(45074, 'incomingstore', '1', 'delete'),
(45075, 'incomingstore', '1', 'view'),
(45076, 'lowstocklist', '1', 'add'),
(45077, 'lowstocklist', '1', 'more'),
(45078, 'lowstocklist', '1', 'view'),
(45079, 'lowproducts', '1', 'add'),
(45080, 'lowproducts', '1', 'update'),
(45081, 'damagedproducts', '1', 'add'),
(45082, 'damagedproducts', '1', 'update'),
(45083, 'damagedproducts', '1', 'delete'),
(45084, 'projectsmanagement', '1', 'view'),
(45085, 'projectsmanagement', '1', 'add'),
(45086, 'projectsmanagement', '1', 'update'),
(45087, 'projectsmanagement', '1', 'delete'),
(45088, 'assets', '1', 'add'),
(45089, 'assets', '1', 'update'),
(45090, 'assets', '1', 'delete'),
(45091, 'accounting', '1', 'deletebank'),
(45092, 'accounting', '1', 'deleteglaccount'),
(45093, 'accounting', '1', 'view'),
(45094, 'bankdeposits', '1', 'add'),
(45095, 'bankdeposits', '1', 'update'),
(45096, 'bankdeposits', '1', 'delete'),
(45097, 'banktransfer', '1', 'add'),
(45098, 'journalentry', '1', 'add'),
(45099, 'accountingreports', '1', 'view'),
(45100, 'chequemanagemant', '1', 'add'),
(45101, 'chequemanagemant', '1', 'view'),
(45102, 'peoplecategory', '1', 'add'),
(45103, 'peoplecategory', '1', 'update'),
(45104, 'peoplecategory', '1', 'delete'),
(45105, 'departments', '1', 'add'),
(45106, 'payrollsetup', '1', 'add'),
(45107, 'labourrecords', '1', 'add'),
(45108, 'leavemanagement', '1', 'add'),
(45109, 'biometricrecords', '1', 'add'),
(45110, 'payroll', '1', 'add'),
(45111, 'loyalitycards', '1', 'add'),
(45112, 'loyalitycards', '1', 'update'),
(45113, 'reports', '1', 'view'),
(45114, 'reports', '1', 'download'),
(45115, 'reports', '1', 'update'),
(45116, 'reports', '1', 'viewall'),
(45117, 'displayreport', '1', 'view'),
(45118, 'grouping', '1', 'add'),
(45119, 'grouping', '1', 'update'),
(45120, 'grouping', '1', 'delete'),
(45121, 'sendsms', '1', 'add'),
(45122, 'sendsms', '1', 'update'),
(45123, 'sendsms', '1', 'delete'),
(45124, 'sendsms', '1', 'transfersms'),
(45125, 'documents', '1', 'add'),
(45126, 'documents', '1', 'update'),
(45127, 'documents', '1', 'delete'),
(45128, 'documents', '1', 'viewalldocuments'),
(45129, 'humanresource', '1', 'add'),
(45130, 'humanresource', '1', 'update'),
(45131, 'humanresource', '1', 'approve'),
(45132, 'humanresource', '1', 'delete'),
(45133, 'humanresource', '1', 'view'),
(45134, 'humanresource', '1', 'allocate'),
(45135, 'humanresource', '1', 'viewallpayroll'),
(45136, 'humanresource', '1', 'leavesetup'),
(45137, 'humanresource', '1', 'allleaves '),
(45138, 'humanresource', '1', 'bioattendance'),
(45139, 'taskscategory', '1', 'add'),
(45140, 'taskscategory', '1', 'update'),
(45141, 'taskscategory', '1', 'delete'),
(45142, 'task', '1', 'add'),
(45143, 'task', '1', 'viewall'),
(45144, 'task', '1', 'update'),
(45145, 'task', '1', 'postspecifictask'),
(45146, 'task', '1', 'delete'),
(45147, 'task', '1', 'postgeneraltask'),
(45148, 'task', '1', 'viewothersspecifictask'),
(45149, 'task', '1', 'viewothersgeneraltask'),
(45150, 'task', '1', 'assigntask'),
(45151, 'task', '1', 'posttaskforothers'),
(45152, 'task', '1', 'overalclearingpendingtasks'),
(45153, 'callcenter', '1', 'add'),
(45154, 'callcenter', '1', 'upadate'),
(45155, 'callcenter', '1', 'view'),
(45156, 'callcenter', '1', 'download'),
(45157, 'callcenter', '1', 'delete'),
(45158, 'deals', '1', 'add'),
(45159, 'deals', '1', 'update'),
(45160, 'deals', '1', 'delete'),
(45161, 'deals', '1', 'viewall'),
(45162, 'deals', '1', 'addpossiblefeedback'),
(45163, 'deals', '1', 'downloaddeals'),
(45164, 'deals', '1', 'View others contact'),
(45165, 'deals', '1', 'AddAgents'),
(45166, 'deals', '1', 'transferdeals'),
(45167, 'complain', '1', 'add'),
(45168, 'complain', '1', 'view'),
(45169, 'complain', '1', 'update'),
(45170, 'complain', '1', 'allcompalin'),
(45171, 'complain', '1', 'delete'),
(45172, 'events', '1', 'add'),
(45173, 'events', '1', 'update'),
(45174, 'events', '1', 'delete'),
(45175, 'password', '1', 'change'),
(45176, 'profile', '1', 'update'),
(45177, 'ecommerce', '1', 'add'),
(45178, 'ecommerce', '1', 'update'),
(45179, 'ecommerce', '1', 'delete'),
(45180, 'ecommerce', '1', 'vieworders'),
(45181, 'ecommerce', '1', 'setup'),
(45182, 'ecommerce', '1', 'approveorders'),
(45183, 'quotation', '1', 'add'),
(45184, 'quotation', '1', 'update'),
(45185, 'quotation', '1', 'delete'),
(45186, 'quotation', '1', 'view'),
(45187, 'quotation', '1', 'viewall'),
(45188, 'config', '1', 'delete'),
(45189, 'config', '1', 'add'),
(45190, 'config', '1', 'update');

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

--
-- Table structure for table `plot`
--

CREATE TABLE IF NOT EXISTS `plot` (
  `id` int(20) NOT NULL,
  `code` varchar(50) NOT NULL,
  `name` varchar(100) NOT NULL,
  `location` varchar(100) NOT NULL,
  `agentid` varchar(100) NOT NULL,
  `landlordid` varchar(100) NOT NULL,
  `totalhouse` varchar(100) NOT NULL,
  `country` varchar(40) NOT NULL,
  `createdat` varchar(100) NOT NULL,
  `updatedat` varchar(100) NOT NULL,
  `description` text NOT NULL,
  `userid` varchar(100) NOT NULL,
  `accountname` varchar(100) NOT NULL,
  `accountno` varchar(100) NOT NULL,
  `commission` varchar(100) NOT NULL,
  `companyid` varchar(100) NOT NULL,
  `status` varchar(10) NOT NULL DEFAULT '1',
  `tax` decimal(10,2) NOT NULL,
  `bank` text NOT NULL,
  `branch` text NOT NULL,
  `penalty` decimal(10,2) NOT NULL,
  `category` varchar(30) NOT NULL DEFAULT 'rental',
  `branchid` int(11) NOT NULL,
  `penaltytype` varchar(30) NOT NULL DEFAULT 'percentage',
  `areas` varchar(30) NOT NULL DEFAULT 'yes',
  `coparent` varchar(30) NOT NULL DEFAULT 'yes',
  `water` varchar(30) NOT NULL DEFAULT 'yes',
  `garbage` varchar(30) NOT NULL DEFAULT 'yes',
  `power` varchar(30) NOT NULL DEFAULT 'yes',
  `showpenalty` varchar(30) NOT NULL,
  `partial` varchar(30) NOT NULL DEFAULT '',
  `vat2` decimal(10,0) DEFAULT '0',
  `invoicedate` varchar(10) NOT NULL DEFAULT '01',
  `penaltydate` varchar(10) NOT NULL DEFAULT '10',
  `duedate` varchar(30) NOT NULL DEFAULT '10',
  `taxtype` varchar(30) NOT NULL DEFAULT 'Landlord',
  `invoicesms` text NOT NULL,
  `receiptsms` text NOT NULL,
  `utility` varchar(20) NOT NULL DEFAULT 'yes',
  `service` varchar(50) NOT NULL DEFAULT 'no',
  `servicedeposit` varchar(10) DEFAULT 'no',
  `lease` varchar(10) DEFAULT 'no'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `plotcharges`
--

CREATE TABLE IF NOT EXISTS `plotcharges` (
  `id` int(100) NOT NULL,
  `chargeid` varchar(40) NOT NULL,
  `description` text NOT NULL,
  `plotno` varchar(100) NOT NULL,
  `cost` varchar(100) NOT NULL,
  `status` varchar(40) NOT NULL,
  `createdat` varchar(100) NOT NULL,
  `updatedat` varchar(100) NOT NULL,
  `userid` varchar(100) NOT NULL,
  `order` int(10) NOT NULL,
  `plotcharges` int(5) NOT NULL DEFAULT '1',
  `companyid` int(11) NOT NULL DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `post`
--

CREATE TABLE IF NOT EXISTS `post` (
  `id` int(10) unsigned NOT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `description` text COLLATE utf8_unicode_ci,
  `createdat` varchar(30) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updatedat` varchar(30) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0000-00-00 00:00:00',
  `total` int(30) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `post`
--

INSERT INTO `post` (`id`, `name`, `description`, `createdat`, `updatedat`, `total`) VALUES
(1, 'Manager', '', '2025-01-23 05:37:58am', '0000-00-00 00:00:00', 0),
(2, 'HOD', '', '2025-01-23 05:38:03am', '0000-00-00 00:00:00', 0);

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

--
-- Table structure for table `postrecharge`
--

CREATE TABLE IF NOT EXISTS `postrecharge` (
  `id` int(11) NOT NULL,
  `amount` decimal(10,2) NOT NULL,
  `userid` int(20) NOT NULL,
  `companyid` int(5) NOT NULL,
  `dateposted` varchar(30) NOT NULL,
  `paymentstatus` varchar(10) NOT NULL,
  `branch` int(10) NOT NULL,
  `type` varchar(30) NOT NULL,
  `description` text NOT NULL,
  `balance` double(10,2) NOT NULL,
  `rate` decimal(10,2) NOT NULL,
  `balancebefore` decimal(10,2) DEFAULT NULL,
  `units` decimal(10,2) NOT NULL,
  `code` varchar(50) NOT NULL,
  `phone` varchar(30) NOT NULL,
  `business` text NOT NULL,
  `status` varchar(20) NOT NULL DEFAULT 'active'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `printers`
--

CREATE TABLE IF NOT EXISTS `printers` (
  `id` int(11) NOT NULL,
  `categoryno` varchar(50) NOT NULL,
  `description` text NOT NULL,
  `createdate` varchar(50) NOT NULL,
  `status` varchar(50) NOT NULL DEFAULT 'active',
  `userid` varchar(50) NOT NULL,
  `updatedate` varchar(50) NOT NULL,
  `companyid` varchar(50) NOT NULL,
  `branchid` int(11) NOT NULL DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `productcategory`
--

CREATE TABLE IF NOT EXISTS `productcategory` (
  `id` int(11) NOT NULL,
  `name` varchar(50) NOT NULL,
  `description` int(11) NOT NULL,
  `createdate` varchar(50) NOT NULL,
  `status` varchar(50) NOT NULL DEFAULT 'active',
  `userid` varchar(50) NOT NULL,
  `updatedate` varchar(50) NOT NULL,
  `companyid` varchar(100) NOT NULL,
  `maincategory` varchar(30) NOT NULL,
  `commission` varchar(20) NOT NULL DEFAULT '0',
  `shipping` varchar(20) NOT NULL,
  `type` varchar(30) NOT NULL DEFAULT 'Percentage',
  `imgid` varchar(50) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `productcategorybox`
--

CREATE TABLE IF NOT EXISTS `productcategorybox` (
  `id` int(11) NOT NULL,
  `name` varchar(50) NOT NULL,
  `description` int(11) NOT NULL,
  `createdate` varchar(50) NOT NULL,
  `status` varchar(50) NOT NULL DEFAULT 'active',
  `userid` varchar(50) NOT NULL,
  `updatedate` varchar(50) NOT NULL,
  `companyid` varchar(100) NOT NULL,
  `maincategory` varchar(30) NOT NULL,
  `commission` varchar(20) NOT NULL DEFAULT '0',
  `shipping` varchar(20) NOT NULL,
  `type` varchar(30) NOT NULL DEFAULT 'New',
  `imgid` varchar(50) DEFAULT NULL,
  `myheader` varchar(50) DEFAULT 'primary',
  `icon` varchar(50) NOT NULL DEFAULT 'home'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `productlist`
--

CREATE TABLE IF NOT EXISTS `productlist` (
  `id` int(30) NOT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `category` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `supplier` varchar(51) COLLATE utf8_unicode_ci DEFAULT NULL,
  `description` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `tax_included` decimal(10,2) NOT NULL DEFAULT '16.00',
  `buyingprice` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `sellingprice` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0.00',
  `promoprice` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `wholesaleprice` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `start_date` date DEFAULT NULL,
  `end_date` date DEFAULT NULL,
  `reorderevel` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `allow_alt_description` tinyint(1) NOT NULL,
  `is_serialized` tinyint(1) NOT NULL,
  `imgid` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `override_default_tax` int(1) NOT NULL DEFAULT '0',
  `is_service` int(1) NOT NULL DEFAULT '0',
  `deleted` int(1) NOT NULL DEFAULT '0',
  `qty` decimal(10,2) NOT NULL,
  `dateposted` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `userid` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `companyid` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `branch` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `expdate` date NOT NULL,
  `orderamount` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'mainitem',
  `taxtype` varchar(30) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'Inclusive',
  `shortname` text COLLATE utf8_unicode_ci NOT NULL,
  `status` varchar(30) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'active',
  `store` text COLLATE utf8_unicode_ci NOT NULL,
  `code` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `uom` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'pcs',
  `producttype` varchar(30) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'Inventory',
  `vattype` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'VATABLE',
  `reorderquantity` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `hscode` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `itemclassification` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `country` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `itemtype` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `packagingunit` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `salesunit` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `itemstatus` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `itemtax` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `iddd` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

--
-- Table structure for table `products`
--

CREATE TABLE IF NOT EXISTS `products` (
  `id` int(30) NOT NULL,
  `itemclassification` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `country` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `itemtype` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `packagingunit` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `salesunit` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `itemstatus` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `itemtax` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `category` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `supplier` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `code` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `description` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `tax_included` decimal(10,2) NOT NULL DEFAULT '16.00',
  `buyingprice` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `sellingprice` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0.00',
  `promoprice` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `wholesaleprice` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `start_date` date DEFAULT NULL,
  `end_date` date DEFAULT NULL,
  `reorderevel` int(50) DEFAULT NULL,
  `allow_alt_description` tinyint(1) NOT NULL,
  `is_serialized` tinyint(1) NOT NULL,
  `imgid` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `override_default_tax` int(1) NOT NULL DEFAULT '0',
  `is_service` int(1) NOT NULL DEFAULT '0',
  `deleted` int(1) NOT NULL DEFAULT '0',
  `qty` decimal(10,2) NOT NULL,
  `dateposted` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `userid` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `companyid` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `store` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `expdate` date NOT NULL,
  `orderamount` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'mainitem',
  `taxtype` varchar(30) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'Inclusive',
  `shortname` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `status` varchar(30) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'active',
  `uom` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'pcs',
  `producttype` varchar(30) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'Inventory',
  `assetaccount` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `salesaccount` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `expenseaccount` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `vattype` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'VATABLE',
  `reorderquantity` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `hscode` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

--
-- Table structure for table `productsgrouping`
--

CREATE TABLE IF NOT EXISTS `productsgrouping` (
  `id` int(50) NOT NULL,
  `memberid` varchar(50) NOT NULL,
  `userid` varchar(50) NOT NULL,
  `createdate` varchar(50) NOT NULL,
  `user` varchar(50) NOT NULL,
  `status` varchar(50) NOT NULL DEFAULT 'active',
  `updatedat` varchar(50) NOT NULL,
  `categoryid` varchar(50) NOT NULL,
  `companyid` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `projects`
--

CREATE TABLE IF NOT EXISTS `projects` (
  `id` int(30) NOT NULL,
  `name` varchar(50) NOT NULL,
  `description` text NOT NULL,
  `createdate` varchar(50) NOT NULL,
  `status` varchar(50) NOT NULL DEFAULT 'active',
  `userid` varchar(50) NOT NULL,
  `updatedate` varchar(50) NOT NULL,
  `companyid` varchar(50) NOT NULL,
  `invoice` text NOT NULL,
  `category` int(20) DEFAULT NULL
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `projects`
--

INSERT INTO `projects` (`id`, `name`, `description`, `createdate`, `status`, `userid`, `updatedate`, `companyid`, `invoice`, `category`) VALUES
(1, 'HOUSE KEEPING', '', '2025-02-06 19:14:46', 'active', '1', '', '1', '', 0),
(2, 'KITCHEN', '', '2025-02-06 19:14:55', 'active', '1', '', '1', '', 0);

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

--
-- Table structure for table `projectsbudget`
--

CREATE TABLE IF NOT EXISTS `projectsbudget` (
  `id` int(11) NOT NULL,
  `code` varchar(20) NOT NULL,
  `createdate` varchar(20) NOT NULL,
  `expamount` decimal(10,2) NOT NULL,
  `usedamount` decimal(10,2) NOT NULL,
  `balance` decimal(10,2) NOT NULL,
  `year` varchar(20) NOT NULL,
  `month` varchar(20) NOT NULL,
  `userid` int(11) NOT NULL,
  `companyid` int(11) NOT NULL,
  `branch` int(11) NOT NULL,
  `updatedby` int(11) NOT NULL,
  `description` text NOT NULL,
  `todate` varchar(30) DEFAULT NULL,
  `projectid` int(11) NOT NULL,
  `qty` varchar(20) NOT NULL,
  `uom` varchar(20) NOT NULL,
  `usedqty` varchar(20) DEFAULT NULL,
  `balanceqty` varchar(20) DEFAULT NULL,
  `buyingprice` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `projectsbudgettasks`
--

CREATE TABLE IF NOT EXISTS `projectsbudgettasks` (
  `id` int(11) NOT NULL,
  `code` varchar(20) NOT NULL,
  `createdate` varchar(20) NOT NULL,
  `expamount` decimal(10,2) NOT NULL,
  `usedamount` decimal(10,2) NOT NULL,
  `balance` decimal(10,2) NOT NULL,
  `year` varchar(20) NOT NULL,
  `month` varchar(20) NOT NULL,
  `userid` int(11) NOT NULL,
  `companyid` int(11) NOT NULL,
  `branch` int(11) NOT NULL,
  `updatedby` int(11) NOT NULL,
  `description` text NOT NULL,
  `todate` varchar(30) DEFAULT NULL,
  `projectid` int(11) NOT NULL,
  `qty` varchar(20) NOT NULL,
  `uom` varchar(20) NOT NULL,
  `usedqty` varchar(20) DEFAULT NULL,
  `balanceqty` varchar(20) DEFAULT NULL,
  `buyingprice` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `projectstask`
--

CREATE TABLE IF NOT EXISTS `projectstask` (
  `id` int(30) NOT NULL,
  `name` varchar(50) NOT NULL,
  `description` text NOT NULL,
  `createdate` varchar(50) NOT NULL,
  `status` varchar(50) NOT NULL DEFAULT 'active',
  `userid` varchar(50) NOT NULL,
  `updatedate` varchar(50) NOT NULL,
  `companyid` varchar(50) NOT NULL,
  `taskid` text NOT NULL,
  `category` int(20) DEFAULT NULL,
  `invoice` varchar(50) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `proposal`
--

CREATE TABLE IF NOT EXISTS `proposal` (
  `id` int(11) NOT NULL,
  `name` varchar(45) DEFAULT NULL,
  `companyid` int(11) NOT NULL DEFAULT '1',
  `description` text NOT NULL,
  `version` varchar(50) NOT NULL,
  `package` varchar(50) NOT NULL,
  `exactdate` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `province`
--

CREATE TABLE IF NOT EXISTS `province` (
  `id` int(20) NOT NULL,
  `code` varchar(40) COLLATE utf8_unicode_ci NOT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `description` text COLLATE utf8_unicode_ci,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `province`
--

INSERT INTO `province` (`id`, `code`, `name`, `description`, `created_at`, `updated_at`) VALUES
(1, '1', 'Central', 'Central', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(2, '2', 'Coast', 'Coast', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(3, '3', 'Eastern', 'Eastern', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(4, '4', 'Nairobi', 'Nairobi', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(5, '5', 'North Eastern', 'North Eastern', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(6, '6', 'Nyanza', 'Nyanza', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(7, '7', 'Rift valley', 'Rift valley', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(8, '8', 'Western', 'Western', '0000-00-00 00:00:00', '0000-00-00 00:00:00');

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

--
-- Table structure for table `purchasecodes`
--

CREATE TABLE IF NOT EXISTS `purchasecodes` (
  `id` int(50) NOT NULL,
  `name` text NOT NULL,
  `code` varchar(50) NOT NULL,
  `description` text,
  `status` varchar(50) NOT NULL,
  `sort_order` varchar(50) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `purchasecodes`
--

INSERT INTO `purchasecodes` (`id`, `name`, `code`, `description`, `status`, `sort_order`) VALUES
(1, 'Wait for Approval', '01', NULL, 'Y', '1'),
(2, 'Approved', '02', NULL, 'Y', '2'),
(3, 'Cancel Requested', '03', NULL, 'Y', '3'),
(4, 'Canceled', '04', NULL, 'Y', '4'),
(5, 'Refunded', '05', NULL, 'Y', '5'),
(6, 'Transferred', '06', NULL, 'Y', '6');

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

--
-- Table structure for table `purchaseorder`
--

CREATE TABLE `purchaseorder` (
  `id` int(11) NOT NULL,
  `supplier` varchar(30) NOT NULL,
  `invoice` varchar(50) NOT NULL,
  `orderdate` datetime NOT NULL,
  `ordernumber` varchar(30) NOT NULL,
  `description` text NOT NULL,
  `userid` varchar(30) NOT NULL,
  `createdate` datetime NOT NULL,
  `orderedby` text NOT NULL,
  `shippingto` text NOT NULL,
  `canceldate` datetime NOT NULL,
  `deliverymethod` varchar(30) NOT NULL,
  `fob` text NOT NULL,
  `terms` text NOT NULL,
  `deliverydate` varchar(30) NOT NULL,
  `status` varchar(20) NOT NULL DEFAULT 'p.o',
  `amount` decimal(10,2) NOT NULL,
  `companyid` varchar(30) NOT NULL,
  `balance` decimal(10,2) NOT NULL,
  `fromdate` datetime NOT NULL,
  `paiddate` datetime NOT NULL,
  `updateddate` date NOT NULL,
  `updatedid` varchar(30) NOT NULL,
  `pin` varchar(30) DEFAULT NULL,
  `vattype` varchar(10) NOT NULL,
  `vat` varchar(20) NOT NULL,
  `taxable` decimal(10,2) DEFAULT NULL,
  `vatrate` varchar(20) NOT NULL,
  `paid` varchar(20) NOT NULL,
  `transactionstatus` varchar(20) NOT NULL DEFAULT 'open',
  `remarks` text DEFAULT NULL,
  `entrydate` date NOT NULL,
  `branchid` int(11) NOT NULL,
  `controller` int(11) NOT NULL,
  `approvalstatus` varchar(30) DEFAULT NULL,
  `branchto` varchar(30) DEFAULT NULL,
  `qty` varchar(20) DEFAULT NULL,
  `EXEMPTED` decimal(10,0) DEFAULT NULL,
  `ZERORATED` decimal(10,0) DEFAULT NULL,
  `agent` int(11) DEFAULT NULL,
  `paymentmethodes` varchar(20) NOT NULL,
  `taxblAmtD` varchar(50) DEFAULT NULL,
  `taxblAmtE` varchar(50) DEFAULT NULL,
  `taxRtA` varchar(50) NOT NULL,
  `taxRtC` varchar(50) DEFAULT NULL,
  `taxRtD` varchar(50) DEFAULT NULL,
  `taxRtE` varchar(50) DEFAULT NULL,
  `taxblAmtB` varchar(50) DEFAULT NULL,
  `taxAmtA` varchar(50) DEFAULT NULL,
  `taxAmtB` varchar(50) DEFAULT NULL,
  `taxAmtC` varchar(50) DEFAULT NULL,
  `taxAmtD` varchar(50) DEFAULT NULL,
  `taxAmtE` varchar(50) DEFAULT NULL,
  `withholdingamount` varchar(20) DEFAULT NULL,
   `withholdingrate` varchar(20) DEFAULT NULL,

  `checkoutdate` varchar(20) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

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

--
-- Table structure for table `purchaseorderlist`
--

CREATE TABLE IF NOT EXISTS `purchaseorderlist` (
  `id` int(30) NOT NULL,
  `invoice` varchar(100) NOT NULL,
  `code` varchar(100) NOT NULL,
  `qty` varchar(100) NOT NULL,
  `amount` varchar(100) NOT NULL,
  `salestype` varchar(100) DEFAULT 'retail',
  `sprice` varchar(100) NOT NULL,
  `discount` varchar(100) NOT NULL,
  `dateposted` varchar(50) NOT NULL,
  `address` varchar(50) NOT NULL,
  `description` text NOT NULL,
  `user` varchar(50) NOT NULL,
  `bprice` varchar(50) NOT NULL,
  `type` varchar(50) NOT NULL DEFAULT 'cash',
  `tax` varchar(50) NOT NULL,
  `balance` varchar(50) NOT NULL,
  `customer` varchar(50) NOT NULL,
  `userid` varchar(50) NOT NULL,
  `mode` varchar(50) NOT NULL,
  `companyid` varchar(100) NOT NULL,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `maincategory` varchar(50) NOT NULL,
  `category` varchar(50) NOT NULL,
  `status` varchar(30) DEFAULT 'new',
  `branch` varchar(30) NOT NULL,
  `ordersales` varchar(20) NOT NULL DEFAULT 'new',
  `unit` varchar(10) NOT NULL,
  `totalweight` varchar(10) NOT NULL,
  `serial` varchar(50) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `quantitycodes`
--

CREATE TABLE IF NOT EXISTS `quantitycodes` (
  `id` int(50) NOT NULL,
  `name` text NOT NULL,
  `code` varchar(50) NOT NULL,
  `description` text,
  `status` varchar(50) NOT NULL,
  `company_id` varchar(20) NOT NULL,
  `sort_order` varchar(50) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=44 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `quantitycodes`
--

INSERT INTO `quantitycodes` (`id`, `name`, `code`, `description`, `status`, `company_id`, `sort_order`) VALUES
(1, 'Pair', '4B', 'Pair', 'Y', '1', '1'),
(2, 'Cap', 'AV', 'Cap', 'Y', '1', '2'),
(3, 'Barrel', 'BA', 'Barrel', 'Y', '1', '3'),
(4, 'bundle', 'BE', 'bundle', 'Y', '1', '4'),
(5, 'bag', 'BG', 'bag', 'Y', '1', '5'),
(6, 'block', 'BL', 'block', 'Y', '1', '6'),
(7, 'BLL Barrel (petroleum) (158,987 dm3)', 'BLL', 'BLL Barrel (petroleum) (158,987 dm3)', 'Y', '1', '7'),
(8, 'box', 'BX', 'box', 'Y', '1', '8'),
(9, 'Can', 'CA', 'Can', 'Y', '1', '9'),
(10, 'Cell', 'CEL', 'Cell', 'Y', '1', '10'),
(11, 'centimetre', 'CMT', 'centimetre', 'Y', '1', '11'),
(12, 'CARAT', 'CR', 'CARAT', 'Y', '1', '12'),
(13, 'Drum', 'DR', 'Drum', 'Y', '1', '13'),
(14, 'Dozen', 'DZ', 'Dozen', 'Y', '1', '14'),
(15, 'Gallon', 'GLL', 'Gallon', 'Y', '1', '15'),
(16, 'Gram', 'GRM', 'Gram', 'Y', '1', '16'),
(17, 'Gross', 'GRO', 'Gross', 'Y', '1', '17'),
(18, 'Kilo-Gramme', 'KG', 'Kilo-Gramme', 'Y', '1', '18'),
(19, 'kilometre', 'KTM', 'kilometre', 'Y', '1', '19'),
(20, 'kilowatt', 'KWT', 'kilowatt', 'Y', '1', '20'),
(21, 'Litre', 'L', 'Litre', 'Y', '1', '21'),
(22, 'pound', 'LBR', 'pound', 'Y', '1', '22'),
(23, 'link', 'LK', 'link', 'Y', '1', '23'),
(24, 'Litre', 'LTR', 'Litre', 'Y', '1', '24'),
(25, 'Metre', 'M', 'Metre', 'Y', '1', '25'),
(26, 'Square Metre', 'M2', 'Square Metre', 'Y', '1', '26'),
(27, 'Cubic Metre', 'M3', 'Cubic Metre', 'Y', '1', '27'),
(28, 'milligram', 'MGM', 'milligram', 'Y', '1', '28'),
(29, 'metre', 'MTR', 'metre', 'Y', '1', '29'),
(30, 'megawatt hour (1000 kW.h)', 'MWT', 'megawatt hour (1000 kW.h)', 'Y', '1', '30'),
(31, 'Number', 'NO', 'Number', 'Y', '1', '31'),
(32, 'part per thousand', 'NX', 'part per thousand', 'Y', '1', '32'),
(33, 'packet', 'PA', 'packet', 'Y', '1', '33'),
(34, 'plate', 'PG', 'plate', 'Y', '1', '34'),
(35, 'pair', 'PR', 'pair', 'Y', '1', '35'),
(36, 'reel', 'RL', 'reel', 'Y', '1', '36'),
(37, 'roll', 'RO', 'roll', 'Y', '1', '37'),
(38, 'set', 'SET', 'set', 'Y', '1', '38'),
(39, 'sheet', 'ST', 'sheet', 'Y', '1', '39'),
(40, 'tonne (metric ton)', 'TNE', 'tonne (metric ton)', 'Y', '1', '40'),
(41, 'tube', 'TU', 'tube', 'Y', '1', '41'),
(42, 'Pieces/item [Number]', 'U', 'Pieces/item [Number]', 'Y', '1', '42'),
(43, 'yard', 'YRD', 'yard', 'Y', '1', '43');

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

--
-- Table structure for table `quotation`
--

CREATE TABLE IF NOT EXISTS `quotation` (
  `id` int(30) NOT NULL,
  `supplier` text NOT NULL,
  `invoice` varchar(50) NOT NULL,
  `orderdate` varchar(30) NOT NULL,
  `ordernumber` varchar(30) DEFAULT NULL,
  `description` text NOT NULL,
  `userid` varchar(30) NOT NULL,
  `createdate` varchar(30) NOT NULL,
  `orderedby` text NOT NULL,
  `shippingto` text NOT NULL,
  `canceldate` varchar(30) NOT NULL,
  `deliverymethod` varchar(30) NOT NULL DEFAULT 'quotation',
  `fob` text NOT NULL,
  `terms` text NOT NULL,
  `deliverydate` varchar(30) NOT NULL,
  `status` varchar(20) NOT NULL DEFAULT 'new',
  `amount` varchar(30) NOT NULL,
  `companyid` varchar(30) NOT NULL,
  `preparedby` varchar(30) NOT NULL,
  `weight` varchar(10) NOT NULL DEFAULT 'No',
  `branchid` int(30) NOT NULL DEFAULT '1',
  `displayvat` varchar(50) DEFAULT NULL,
  `approvedby` int(11) DEFAULT NULL,
  `updatedid` int(11) DEFAULT NULL,
  `updateddate` varchar(50) DEFAULT NULL
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `quotation`
--

INSERT INTO `quotation` (`id`, `supplier`, `invoice`, `orderdate`, `ordernumber`, `description`, `userid`, `createdate`, `orderedby`, `shippingto`, `canceldate`, `deliverymethod`, `fob`, `terms`, `deliverydate`, `status`, `amount`, `companyid`, `preparedby`, `weight`, `branchid`, `displayvat`, `approvedby`, `updatedid`, `updateddate`) VALUES
(1, '4', '11736406765', '2025-01-09 10:12:45', '', '', '1', '2025-01-09 10:13:14', 'Taller 1', 'Main', '2025-01-09 10:12:45', 'requisition', '1', 'NA', '', 'Approved', '300', '1', '1', 'No', 1, NULL, 1, 1, '2025-01-17 16:34:42'),
(2, '3', '11737120888', '2025-01-17 16:34:48', '', 'ss', '1', '2025-01-17 16:34:56', 'ROBISEARCH LTD ROBISEARCH LTD', '', '2025-02-16 16:00:34', 'quotation', '1', '30 Days', '', 'new', '411120', '1', '1', 'No', 1, 'yes', 0, NULL, NULL),
(3, '6', '11739428991', '2025-02-13 09:43:11', NULL, '', '1', '2025-02-13 09:46:19', 'tom', '1', '2025-02-13 09:43:11', 'requisition', '1', 'NA', '', 'Approved', '440', '1', '1', 'No', 1, '', 1, 1, '2025-02-13 10:02:33'),
(4, '2', '11739429232', '2025-02-13 09:47:12', '', 'robisearchxxxxxxxxx', '1', '2025-02-13 09:47:34', 'Default Default', '', '2025-03-15 09:00:47', 'quotation', '1', '30 Days', '', 'new', '320', '1', '1', 'No', 1, 'yes', 1, NULL, NULL),
(5, '3', '11739429259', '2025-02-13 09:47:39', NULL, 'ddxxxxxxxx', '1', '2025-02-21 12:13:17', 'ROBISEARCH LTD ROBISEARCH LTD', 'ccccccccc', '2025-03-15 09:00:47', 'quotation', '', '30 Days', '', 'new', '0', '1', '4', 'No', 1, 'yes', 0, NULL, NULL),
(6, '', '11739430334', '2025-02-13 10:05:34', '', '', '1', '2025-02-13 10:05:48', '', '1', '2025-02-13 10:05:34', 'requisition', 'Main', 'NA', '', 'Approved', '2100', '1', '1', 'No', 1, NULL, 1, 1, '2025-02-13 10:06:12'),
(7, '2', '11740133076', '2025-02-21 13:17:57', NULL, 'ss', '1', '2025-03-13 13:38:05', 'Default Default', '', '2025-03-23 13:00:17', 'quotation', '', '30 Days', '', 'new', '395', '1', '1', 'Yes', 1, 'yes', 1, NULL, NULL);

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

--
-- Table structure for table `reasons`
--

CREATE TABLE IF NOT EXISTS `reasons` (
  `id` int(11) NOT NULL,
  `name` varchar(50) NOT NULL,
  `description` text NOT NULL,
  `createdate` varchar(50) NOT NULL,
  `status` varchar(50) NOT NULL DEFAULT 'active',
  `userid` varchar(50) NOT NULL,
  `updatedate` varchar(50) NOT NULL,
  `companyid` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `receipt`
--

CREATE TABLE IF NOT EXISTS `receipt` (
  `id` int(40) NOT NULL,
  `plotno` varchar(60) NOT NULL,
  `houseno` varchar(40) NOT NULL,
  `tenantid` varchar(100) NOT NULL,
  `amount` varchar(100) NOT NULL,
  `description` varchar(100) NOT NULL,
  `createdat` varchar(100) NOT NULL,
  `updatedat` varchar(100) NOT NULL,
  `userid` varchar(100) NOT NULL,
  `paymentstatus` varchar(40) NOT NULL,
  `paymentmode` varchar(40) NOT NULL,
  `transactioncode` varchar(100) DEFAULT NULL,
  `approvedby` varchar(60) NOT NULL,
  `approvaldate` varchar(60) NOT NULL,
  `overpayment` varchar(40) NOT NULL,
  `balance` decimal(10,2) NOT NULL DEFAULT '0.00',
  `companyid` varchar(100) NOT NULL,
  `paidby` varchar(50) NOT NULL,
  `exactime` varchar(30) NOT NULL,
  `paymentcode` varchar(30) NOT NULL,
  `paid` decimal(10,2) NOT NULL,
  `branchid` int(2) NOT NULL DEFAULT '1',
  `tax1` decimal(10,2) NOT NULL,
  `tax2` decimal(10,2) NOT NULL,
  `vatable` decimal(10,2) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `recharge`
--

CREATE TABLE IF NOT EXISTS `recharge` (
  `id` int(11) NOT NULL,
  `amount` decimal(10,2) NOT NULL,
  `userid` int(20) NOT NULL,
  `companyid` int(5) NOT NULL,
  `dateposted` varchar(30) NOT NULL,
  `paymentstatus` varchar(10) NOT NULL,
  `branch` int(10) NOT NULL,
  `type` varchar(30) NOT NULL,
  `description` text NOT NULL,
  `balance` double(10,2) NOT NULL,
  `rate` decimal(10,2) NOT NULL,
  `balancebefore` decimal(10,2) NOT NULL,
  `units` decimal(10,2) NOT NULL,
  `code` varchar(50) NOT NULL,
  `phone` varchar(30) NOT NULL,
  `business` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `refundreasoncodes`
--

CREATE TABLE IF NOT EXISTS `refundreasoncodes` (
  `id` int(50) NOT NULL,
  `name` text NOT NULL,
  `code` varchar(50) NOT NULL,
  `description` text,
  `status` varchar(50) NOT NULL,
  `sort_order` varchar(50) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `refundreasoncodes`
--

INSERT INTO `refundreasoncodes` (`id`, `name`, `code`, `description`, `status`, `sort_order`) VALUES
(1, 'Missing Quantity', '01', NULL, 'Y', '1'),
(2, 'Missing Waiting', '02', NULL, 'Y', '2'),
(3, 'Damaged', '03', NULL, 'Y', '3'),
(4, 'Wasted', '04', NULL, 'Y', '4'),
(5, 'Raw Material Shortage', '05', NULL, 'Y', '5'),
(6, 'Refund', '06', NULL, 'Y', '6'),
(7, 'Wrong Customer PIN', '07', NULL, 'Y', '7'),
(8, 'Wrong Customer name', '08', NULL, 'Y', '8'),
(9, 'Wrong Amount/price', '09', NULL, 'Y', '9'),
(10, 'Wrong Quantity', '10', NULL, 'Y', '10'),
(11, 'Wrong Item(s)', '11', NULL, 'Y', '11'),
(12, 'Wrong tax type', '12', NULL, 'Y', '12'),
(13, 'Other reason', '13', NULL, 'Y', '13');

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

--
-- Table structure for table `regions`
--

CREATE TABLE IF NOT EXISTS `regions` (
  `id` int(20) NOT NULL,
  `code` varchar(40) COLLATE utf8_unicode_ci NOT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `description` text COLLATE utf8_unicode_ci,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `regions`
--

INSERT INTO `regions` (`id`, `code`, `name`, `description`, `created_at`, `updated_at`) VALUES
(1, '1', 'Central', 'Central', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(2, '2', 'Coast', 'Coast', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(3, '3', 'Eastern', 'Eastern', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(4, '4', 'Nairobi', 'Nairobi', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(5, '5', 'North Eastern', 'North Eastern', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(6, '6', 'Nyanza', 'Nyanza', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(7, '7', 'Rift valley', 'Rift valley', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(8, '8', 'Western', 'Western', '0000-00-00 00:00:00', '0000-00-00 00:00:00');

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

--
-- Table structure for table `renewals`
--

CREATE TABLE IF NOT EXISTS `renewals` (
  `id` int(11) NOT NULL,
  `name` varchar(50) NOT NULL,
  `description` text NOT NULL,
  `createdate` varchar(50) NOT NULL,
  `status` varchar(50) NOT NULL DEFAULT 'active',
  `userid` varchar(50) NOT NULL,
  `updatedate` varchar(50) NOT NULL,
  `companyid` varchar(50) NOT NULL,
  `invoice` text NOT NULL,
  `computerno` text NOT NULL,
  `fromdate` varchar(30) NOT NULL,
  `todate` varchar(30) DEFAULT NULL,
  `receiptno` varchar(50) NOT NULL,
  `duration` int(11) NOT NULL,
  `phone` varchar(20) DEFAULT NULL,
  `extensiontype` varchar(30) NOT NULL,
  `updatedid` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `rentalpaymentmethodes`
--

CREATE TABLE IF NOT EXISTS `rentalpaymentmethodes` (
  `id` int(11) NOT NULL,
  `name` text NOT NULL,
  `description` text NOT NULL,
  `status` varchar(10) NOT NULL DEFAULT 'active',
  `dateposted` varchar(30) NOT NULL,
  `userid` varchar(30) NOT NULL,
  `companyid` varchar(30) NOT NULL,
  `type` text NOT NULL,
  `balance` varchar(30) NOT NULL,
  `branchid` int(11) NOT NULL,
  `accountno` text,
  `chargeid` int(20) DEFAULT NULL
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `rentalpaymentmethodes`
--

INSERT INTO `rentalpaymentmethodes` (`id`, `name`, `description`, `status`, `dateposted`, `userid`, `companyid`, `type`, `balance`, `branchid`, `accountno`, `chargeid`) VALUES
(1, 'RENT', '', 'active', '2021-09-17 06:53:31', '1', '1', '4161', '', 1, NULL, 1),
(2, 'DEPOSIT', 'DEPOSIT', 'active', '2021-09-17 06:53:51', '1', '1', '4162', '', 1, NULL, 2),
(3, 'WATER/POWER DEPOSIT', '', 'active', '2021-09-17 06:56:08', '1', '1', '4163', '', 1, NULL, 3),
(4, 'PENALTY', '', 'active', '2021-09-17 06:56:20', '1', '1', '4164', '', 1, NULL, 4),
(5, 'WATER', '', 'active', '2021-09-17 06:56:41', '1', '1', '4165', '', 1, NULL, 5),
(6, 'PARTIAL PAYMENT', '', 'active', '2021-09-17 06:57:00', '1', '1', '4166', '', 1, NULL, 6),
(7, 'GARBAGE', '', 'active', '2021-09-17 06:57:23', '1', '1', '4167', '', 1, NULL, 7),
(8, 'DAMAGES', '', 'active', '2021-09-17 06:57:35', '1', '1', '4168', '', 1, NULL, 8),
(9, 'AGREEMENT FORM', '', 'active', '2021-09-17 06:58:32', '1', '1', '4169', '', 1, NULL, 9),
(10, 'POWER', '', 'active', '2021-09-17 06:59:00', '1', '1', '4171', '', 1, NULL, 10),
(11, 'SEWAGE', 'SEWAGE', 'active', '2021-09-17 06:59:30', '1', '1', '4172', '', 1, NULL, 11),
(12, 'BED ONLY', '', 'active', '2021-09-17 06:59:55', '1', '1', '4173', '', 1, NULL, 12),
(13, 'BED AND BREAKFAST', '', 'active', '2021-09-17 07:00:38', '1', '1', '4174', '', 1, NULL, 13),
(14, 'POWER', 'eee', 'active', '2023-04-14 17:13:29', '1', '1', '4167', '', 1, NULL, 10),
(15, 'WATER', '', 'active', '2023-08-16 09:49:06', '1', '1', '4165', '', 1, NULL, 5),
(16, 'SERVICE CHARGE', '', 'active', '2023-09-01 11:11:46', '1', '1', '4169', '', 1, NULL, 19);

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

--
-- Table structure for table `report`
--

CREATE TABLE IF NOT EXISTS `report` (
  `id` int(50) NOT NULL,
  `country` varchar(60) NOT NULL,
  `type` varchar(50) NOT NULL,
  `county` varchar(50) NOT NULL,
  `school` varchar(50) NOT NULL,
  `category` varchar(30) NOT NULL,
  `contact` varchar(60) NOT NULL,
  `place` varchar(60) NOT NULL,
  `occurancedate` varchar(60) NOT NULL,
  `description` text NOT NULL,
  `postedtime` varchar(60) NOT NULL,
  `userid` varchar(60) NOT NULL,
  `img_id` varchar(60) NOT NULL,
  `updatedtime` varchar(40) NOT NULL,
  `status` varchar(40) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `requisition`
--

CREATE TABLE IF NOT EXISTS `requisition` (
  `id` int(30) NOT NULL,
  `name` text NOT NULL,
  `orderdate` varchar(30) NOT NULL,
  `ordernumber` varchar(30) NOT NULL,
  `description` text NOT NULL,
  `userid` varchar(30) NOT NULL,
  `createdate` varchar(30) NOT NULL,
  `orderedby` text NOT NULL,
  `shippingto` text NOT NULL,
  `canceldate` varchar(30) NOT NULL,
  `deliverymethod` varchar(30) NOT NULL,
  `fob` text NOT NULL,
  `terms` text NOT NULL,
  `deliverydate` varchar(30) NOT NULL,
  `status` varchar(20) NOT NULL DEFAULT 'new',
  `amount` varchar(30) NOT NULL,
  `companyid` varchar(30) NOT NULL,
  `preparedby` varchar(30) NOT NULL,
  `taskid` varchar(30) NOT NULL DEFAULT 'No',
  `branchid` int(30) NOT NULL DEFAULT '1',
  `subtaskid` varchar(50) DEFAULT NULL,
  `invoice` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `requisitionitems`
--

CREATE TABLE IF NOT EXISTS `requisitionitems` (
  `id` int(30) NOT NULL,
  `invoice` varchar(100) NOT NULL,
  `code` varchar(100) NOT NULL,
  `qty` varchar(100) NOT NULL,
  `amount` varchar(100) NOT NULL,
  `salestype` varchar(100) DEFAULT 'retail',
  `sprice` varchar(100) NOT NULL,
  `usedamount` varchar(100) NOT NULL,
  `dateposted` varchar(50) NOT NULL,
  `taskid` varchar(50) NOT NULL,
  `description` text NOT NULL,
  `user` varchar(50) NOT NULL,
  `bprice` varchar(50) NOT NULL,
  `type` varchar(50) NOT NULL DEFAULT 'cash',
  `tax` varchar(50) NOT NULL,
  `balance` varchar(50) NOT NULL,
  `customer` varchar(50) NOT NULL,
  `userid` varchar(50) NOT NULL,
  `subtaskid` varchar(50) NOT NULL,
  `companyid` varchar(100) NOT NULL,
  `createdate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `maincategory` varchar(50) NOT NULL,
  `category` varchar(50) NOT NULL,
  `status` varchar(30) DEFAULT 'new',
  `branch` varchar(30) NOT NULL,
  `usedqty` varchar(20) DEFAULT NULL,
  `balanceqty` varchar(10) NOT NULL,
  `expamount` varchar(10) NOT NULL,
  `uom` varchar(50) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `rolepermissions`
--

CREATE TABLE IF NOT EXISTS `rolepermissions` (
  `moduleid` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `userid` int(10) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `rolepermissions`
--

INSERT INTO `rolepermissions` (`moduleid`, `userid`) VALUES
('accomodation', 1),
('accounting', 1),
('accountingreports', 1),
('assets', 1),
('bankdeposits', 1),
('banktransfer', 1),
('branch', 1),
('callcenter', 1),
('cashiersales', 1),
('complain', 1),
('config', 1),
('damagedproducts', 1),
('deals', 1),
('displayreport', 1),
('documents', 1),
('ecommerce', 1),
('events', 1),
('grouping', 1),
('humanresource', 1),
('income', 1),
('incomeexpenses', 1),
('incomingstock', 1),
('incomingstore', 1),
('journalentry', 1),
('labourrecords', 1),
('lowproducts', 1),
('lowstocklist', 1),
('members', 1),
('password', 1),
('payroll', 1),
('peoplecategory', 1),
('productlist', 1),
('products', 1),
('productscategory', 1),
('profile', 1),
('projectsmanagement', 1),
('purchases', 1),
('recorddelivery', 1),
('reports', 1),
('sales', 1),
('sendsms', 1),
('task', 1),
('taskscategory', 1),
('users', 1),
('viewreturnsales', 1),
('wholesale', 1),
('cashiersales', 2),
('password', 2),
('recorddelivery', 2),
('sales', 2),
('cashiersales', 4),
('password', 4),
('sales', 4),
('viewreturnsales', 4),
('accounting', 5),
('accountingreports', 5),
('bankdeposits', 5),
('banktransfer', 5),
('incomeexpenses', 5),
('cashiersales', 8),
('password', 8),
('profile', 8),
('sales', 8);

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

--
-- Table structure for table `rolepermissionsactions`
--

CREATE TABLE IF NOT EXISTS `rolepermissionsactions` (
  `id` int(11) NOT NULL,
  `moduleid` varchar(100) NOT NULL,
  `userid` varchar(100) NOT NULL,
  `actionid` varchar(100) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=572 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `rolepermissionsactions`
--

INSERT INTO `rolepermissionsactions` (`id`, `moduleid`, `userid`, `actionid`) VALUES
(1, 'sales', '4', 'add'),
(2, 'sales', '4', 'suspend'),
(3, 'sales', '4', 'printreceipt'),
(4, 'sales', '4', 'update'),
(5, 'sales', '4', 'cash'),
(6, 'sales', '4', 'delete'),
(7, 'sales', '4', 'moresales'),
(8, 'sales', '4', 'sale'),
(9, 'sales', '4', 'Logout'),
(10, 'sales', '4', 'mpesabalance'),
(11, 'sales', '4', 'discount'),
(12, 'sales', '4', 'reprint'),
(13, 'sales', '4', 'select'),
(14, 'sales', '4', 'printbill'),
(15, 'sales', '4', 'productdiscount'),
(16, 'sales', '4', 'mpesa'),
(17, 'sales', '4', 'order'),
(18, 'sales', '4', 'closebill'),
(19, 'sales', '4', 'viewbuyingprice'),
(20, 'sales', '4', 'editsellingprice'),
(21, 'sales', '4', 'updatepaymentmode'),
(22, 'sales', '4', 'card'),
(23, 'sales', '4', 'clearpayments'),
(24, 'sales', '4', 'cheque'),
(25, 'sales', '4', 'creditnote'),
(26, 'sales', '4', 'voucher'),
(27, 'sales', '4', 'salesbeyondbprice'),
(28, 'sales', '4', 'points'),
(29, 'sales', '4', 'credit'),
(30, 'sales', '4', 'selectroom'),
(31, 'sales', '4', 'dontprint'),
(32, 'sales', '4', 'accountlimit'),
(33, 'sales', '4', 'backdatesales'),
(34, 'sales', '4', 'recordcoins'),
(35, 'sales', '4', 'changetaxstatus'),
(36, 'sales', '4', 'leaseitems'),
(37, 'sales', '4', 'giveloyalityponts'),
(38, 'sales', '4', 'dontshowstock'),
(39, 'sales', '4', 'splitbill'),
(40, 'sales', '4', 'changeuomonsales'),
(41, 'sales', '4', 'selecttable'),
(42, 'sales', '4', 'printdelivery'),
(43, 'sales', '4', 'sendsms'),
(44, 'sales', '4', 'selectcurrency'),
(45, 'sales', '4', 'salesperson'),
(46, 'sales', '4', 'usekeyboard'),
(47, 'sales', '4', 'receiptno'),
(48, 'sales', '4', 'negativesales'),
(49, 'cashiersales', '4', 'entermpesacode'),
(50, 'cashiersales', '4', 'editmpesa'),
(51, 'cashiersales', '4', 'all'),
(52, 'cashiersales', '4', 'delete'),
(53, 'cashiersales', '4', 'cashiersales'),
(54, 'cashiersales', '4', 'editmpesadate'),
(55, 'cashiersales', '4', 'dontshowtotal'),
(56, 'cashiersales', '4', 'adddailycollection'),
(57, 'cashiersales', '4', 'viewtill'),
(58, 'cashiersales', '4', 'viewdailycollections'),
(59, 'cashiersales', '4', 'deletedailycollections'),
(60, 'cashiersales', '4', 'updatedailycollections'),
(61, 'cashiersales', '4', 'reversempesa'),
(62, 'cashiersales', '4', 'clearallsales'),
(63, 'cashiersales', '4', 'viewallcollections'),
(64, 'cashiersales', '4', 'viewallcounters'),
(65, 'cashiersales', '4', 'mpesapendingreport'),
(66, 'cashiersales', '4', 'mpesaverifiedreport'),
(67, 'cashiersales', '4', 'viewcommission'),
(68, 'cashiersales', '4', 'viewmpesamessages'),
(69, 'cashiersales', '4', 'dailysalesonly'),
(70, 'viewreturnsales', '4', 'add'),
(71, 'viewreturnsales', '4', 'update'),
(72, 'viewreturnsales', '4', 'delete'),
(73, 'viewreturnsales', '4', 'return'),
(74, 'viewreturnsales', '4', 'clear'),
(75, 'viewreturnsales', '4', 'moresales'),
(76, 'password', '4', 'change'),
(77, 'sales', '8', 'add'),
(78, 'sales', '8', 'suspend'),
(79, 'sales', '8', 'update'),
(80, 'sales', '8', 'cash'),
(81, 'sales', '8', 'moresales'),
(82, 'sales', '8', 'sale'),
(83, 'sales', '8', 'Logout'),
(84, 'sales', '8', 'displaycustomers'),
(85, 'sales', '8', 'select'),
(86, 'sales', '8', 'printbill'),
(87, 'sales', '8', 'productdiscount'),
(88, 'sales', '8', 'mpesa'),
(89, 'sales', '8', 'order'),
(90, 'sales', '8', 'closebill'),
(91, 'sales', '8', 'viewbuyingprice'),
(92, 'sales', '8', 'editsellingprice'),
(93, 'sales', '8', 'updatepaymentmode'),
(94, 'sales', '8', 'card'),
(95, 'sales', '8', 'clearpayments'),
(96, 'sales', '8', 'cheque'),
(97, 'sales', '8', 'creditnote'),
(98, 'sales', '8', 'voucher'),
(99, 'sales', '8', 'salesbeyondbprice'),
(100, 'sales', '8', 'points'),
(101, 'sales', '8', 'credit'),
(102, 'sales', '8', 'selectroom'),
(103, 'sales', '8', 'dontprint'),
(104, 'sales', '8', 'backdatesales'),
(105, 'sales', '8', 'recordcoins'),
(106, 'sales', '8', 'changetaxstatus'),
(107, 'sales', '8', 'giveloyalityponts'),
(108, 'sales', '8', 'dontshowstock'),
(109, 'sales', '8', 'splitbill'),
(110, 'sales', '8', 'changeuomonsales'),
(111, 'sales', '8', 'selecttable'),
(112, 'sales', '8', 'printdelivery'),
(113, 'sales', '8', 'sendsms'),
(114, 'sales', '8', 'selectcurrency'),
(115, 'sales', '8', 'salesperson'),
(116, 'sales', '8', 'usekeyboard'),
(117, 'sales', '8', 'receiptno'),
(118, 'cashiersales', '8', 'entermpesacode'),
(119, 'cashiersales', '8', 'editmpesa'),
(120, 'cashiersales', '8', 'all'),
(121, 'cashiersales', '8', 'cashiersales'),
(122, 'cashiersales', '8', 'editmpesadate'),
(123, 'cashiersales', '8', 'dontshowtotal'),
(124, 'cashiersales', '8', 'viewtill'),
(125, 'cashiersales', '8', 'viewdailycollections'),
(126, 'cashiersales', '8', 'updatedailycollections'),
(127, 'cashiersales', '8', 'viewallcounters'),
(128, 'cashiersales', '8', 'viewcommission'),
(129, 'cashiersales', '8', 'viewmpesamessages'),
(130, 'cashiersales', '8', 'dailysalesonly'),
(131, 'password', '8', 'change'),
(132, 'profile', '8', 'update'),
(133, 'sales', '1', 'add'),
(134, 'sales', '1', 'suspend'),
(135, 'sales', '1', 'selectmessage'),
(136, 'sales', '1', 'printreceipt'),
(137, 'sales', '1', 'update'),
(138, 'sales', '1', 'cash'),
(139, 'sales', '1', 'delete'),
(140, 'sales', '1', 'moresales'),
(141, 'sales', '1', 'sale'),
(142, 'sales', '1', 'Logout'),
(143, 'sales', '1', 'mpesabalance'),
(144, 'sales', '1', 'displaycustomers'),
(145, 'sales', '1', 'discount'),
(146, 'sales', '1', 'reprint'),
(147, 'sales', '1', 'select'),
(148, 'sales', '1', 'printbill'),
(149, 'sales', '1', 'productdiscount'),
(150, 'sales', '1', 'mpesa'),
(151, 'sales', '1', 'order'),
(152, 'sales', '1', 'closebill'),
(153, 'sales', '1', 'viewbuyingprice'),
(154, 'sales', '1', 'editsellingprice'),
(155, 'sales', '1', 'updatepaymentmode'),
(156, 'sales', '1', 'card'),
(157, 'sales', '1', 'clearpayments'),
(158, 'sales', '1', 'cheque'),
(159, 'sales', '1', 'creditnote'),
(160, 'sales', '1', 'voucher'),
(161, 'sales', '1', 'salesbeyondbprice'),
(162, 'sales', '1', 'points'),
(163, 'sales', '1', 'credit'),
(164, 'sales', '1', 'selectroom'),
(165, 'sales', '1', 'dontprint'),
(166, 'sales', '1', 'accountlimit'),
(167, 'sales', '1', 'backdatesales'),
(168, 'sales', '1', 'recordcoins'),
(169, 'sales', '1', 'changetaxstatus'),
(170, 'sales', '1', 'leaseitems'),
(171, 'sales', '1', 'giveloyalityponts'),
(172, 'sales', '1', 'dontshowstock'),
(173, 'sales', '1', 'splitbill'),
(174, 'sales', '1', 'changeuomonsales'),
(175, 'sales', '1', 'selecttable'),
(176, 'sales', '1', 'printdelivery'),
(177, 'sales', '1', 'sendsms'),
(178, 'sales', '1', 'selectcurrency'),
(179, 'sales', '1', 'salesperson'),
(180, 'sales', '1', 'usekeyboard'),
(181, 'sales', '1', 'receiptno'),
(182, 'sales', '1', 'negativesales'),
(183, 'wholesale', '1', 'sale'),
(184, 'wholesale', '1', 'add'),
(185, 'wholesale', '1', 'delete'),
(186, 'wholesale', '1', 'update'),
(187, 'cashiersales', '1', 'entermpesacode'),
(188, 'cashiersales', '1', 'editmpesa'),
(189, 'cashiersales', '1', 'all'),
(190, 'cashiersales', '1', 'delete'),
(191, 'cashiersales', '1', 'cashiersales'),
(192, 'cashiersales', '1', 'editmpesadate'),
(193, 'cashiersales', '1', 'dontshowtotal'),
(194, 'cashiersales', '1', 'adddailycollection'),
(195, 'cashiersales', '1', 'viewtill'),
(196, 'cashiersales', '1', 'viewdailycollections'),
(197, 'cashiersales', '1', 'deletedailycollections'),
(198, 'cashiersales', '1', 'updatedailycollections'),
(199, 'cashiersales', '1', 'reversempesa'),
(200, 'cashiersales', '1', 'clearallsales'),
(201, 'cashiersales', '1', 'viewallcollections'),
(202, 'cashiersales', '1', 'viewallcounters'),
(203, 'cashiersales', '1', 'mpesapendingreport'),
(204, 'cashiersales', '1', 'mpesaverifiedreport'),
(205, 'cashiersales', '1', 'viewcommission'),
(206, 'cashiersales', '1', 'viewmpesamessages'),
(207, 'cashiersales', '1', 'dailysalesonly'),
(208, 'recorddelivery', '1', 'add'),
(209, 'recorddelivery', '1', 'view'),
(210, 'recorddelivery', '1', 'update'),
(211, 'recorddelivery', '1', 'delete'),
(212, 'recorddelivery', '1', 'changestatus'),
(213, 'recorddelivery', '1', 'report'),
(214, 'recorddelivery', '1', 'Dispatched'),
(215, 'recorddelivery', '1', 'FailedDelivery'),
(216, 'recorddelivery', '1', 'ReturnedandReceived'),
(217, 'recorddelivery', '1', 'Delivered'),
(218, 'recorddelivery', '1', 'Claimraised'),
(219, 'recorddelivery', '1', 'ClaimOK'),
(220, 'recorddelivery', '1', 'ClaimDamaged'),
(221, 'purchases', '1', 'add'),
(222, 'purchases', '1', 'update'),
(223, 'purchases', '1', 'delete'),
(224, 'purchases', '1', 'updatebuyingprice'),
(225, 'purchases', '1', 'updatesellingprice'),
(226, 'purchases', '1', 'updateclosedinvoice'),
(227, 'purchases', '1', 'viewquotation'),
(228, 'purchases', '1', 'viewserials'),
(229, 'purchases', '1', 'viewdirectpurchases'),
(230, 'purchases', '1', 'viewpurchase'),
(231, 'purchases', '1', 'salesorder'),
(232, 'purchases', '1', 'budget'),
(233, 'purchases', '1', 'showdefaultserials'),
(234, 'purchases', '1', 'viewallcounters'),
(235, 'purchases', '1', 'approve'),
(236, 'purchases', '1', 'addbatchno'),
(237, 'purchases', '1', 'addexpirydate'),
(238, 'viewreturnsales', '1', 'add'),
(239, 'viewreturnsales', '1', 'update'),
(240, 'viewreturnsales', '1', 'delete'),
(241, 'viewreturnsales', '1', 'return'),
(242, 'viewreturnsales', '1', 'clear'),
(243, 'viewreturnsales', '1', 'moresales'),
(244, 'income', '1', 'View'),
(245, 'income', '1', 'add'),
(246, 'income', '1', 'wiewinvoices'),
(247, 'income', '1', 'detailedvatinvoice'),
(248, 'incomeexpenses', '1', 'add'),
(249, 'incomeexpenses', '1', 'closeexpense'),
(250, 'incomeexpenses', '1', 'update'),
(251, 'incomeexpenses', '1', 'updateclosedexpenses'),
(252, 'incomeexpenses', '1', 'wiewinvoices'),
(253, 'incomeexpenses', '1', 'viewbills'),
(254, 'incomeexpenses', '1', 'viewexpense'),
(255, 'incomeexpenses', '1', 'viewdebtors'),
(256, 'incomeexpenses', '1', 'viewcreditors'),
(257, 'incomeexpenses', '1', 'postrentalexpenses'),
(258, 'accomodation', '1', 'viewrooms'),
(259, 'accomodation', '1', 'addhouse'),
(260, 'accomodation', '1', 'dailysales'),
(261, 'accomodation', '1', 'viewhouse'),
(262, 'accomodation', '1', 'voucher'),
(263, 'accomodation', '1', 'mpesa'),
(264, 'accomodation', '1', 'points'),
(265, 'accomodation', '1', 'credit'),
(266, 'accomodation', '1', 'card'),
(267, 'accomodation', '1', 'cash'),
(268, 'accomodation', '1', 'cheque'),
(269, 'accomodation', '1', 'checkinroom'),
(270, 'accomodation', '1', 'checkoutroom'),
(271, 'accomodation', '1', 'addroom'),
(272, 'accomodation', '1', 'cancel'),
(273, 'accomodation', '1', 'checkin'),
(274, 'accomodation', '1', 'addcharges'),
(275, 'accomodation', '1', 'givediscount'),
(276, 'accomodation', '1', 'cleanrooms'),
(277, 'accomodation', '1', 'updatecharges'),
(278, 'accomodation', '1', 'updateroom'),
(279, 'accomodation', '1', 'postexpense'),
(280, 'accomodation', '1', 'updatehouse'),
(281, 'accomodation', '1', 'Post Bank Deposits'),
(282, 'accomodation', '1', 'managehotel'),
(283, 'accomodation', '1', 'assignrooms'),
(284, 'accomodation', '1', 'managerental'),
(285, 'accomodation', '1', 'changepayment'),
(286, 'accomodation', '1', 'housekeeping'),
(287, 'accomodation', '1', 'customerregister'),
(288, 'accomodation', '1', 'dailypayments'),
(289, 'accomodation', '1', 'advancebooking'),
(290, 'accomodation', '1', 'checkoutcustomerwithbalance'),
(291, 'accomodation', '1', 'managecustomer'),
(292, 'accomodation', '1', 'viewreports'),
(293, 'accomodation', '1', 'accomodationmanager'),
(294, 'accomodation', '1', 'accommodationcleaner'),
(295, 'accomodation', '1', 'accommodationreceiptionist'),
(296, 'accomodation', '1', 'config'),
(297, 'accomodation', '1', 'viewroomcleaned'),
(298, 'accomodation', '1', 'clearsales'),
(299, 'accomodation', '1', 'dailycollections'),
(300, 'branch', '1', 'add'),
(301, 'branch', '1', 'view'),
(302, 'branch', '1', 'update'),
(303, 'branch', '1', 'delete'),
(304, 'members', '1', 'add'),
(305, 'members', '1', 'update'),
(306, 'members', '1', 'deletepeople'),
(307, 'members', '1', 'opencloseshift'),
(308, 'users', '1', 'add'),
(309, 'users', '1', 'update'),
(310, 'users', '1', 'delete'),
(311, 'users', '1', 'deleteallroles'),
(312, 'productscategory', '1', 'add'),
(313, 'productscategory', '1', 'update'),
(314, 'productscategory', '1', 'delete'),
(315, 'productlist', '1', 'bulk'),
(316, 'productlist', '1', 'updatestock'),
(317, 'productlist', '1', 'move'),
(318, 'productlist', '1', 'more'),
(319, 'productlist', '1', 'transfer'),
(320, 'productlist', '1', 'addstock'),
(321, 'productlist', '1', 'delete'),
(322, 'productlist', '1', 'view'),
(323, 'productlist', '1', 'update'),
(324, 'productlist', '1', 'add'),
(325, 'productlist', '1', 'openclosestock'),
(326, 'productlist', '1', 'stocktaking'),
(327, 'productlist', '1', 'editstocktaken'),
(328, 'productlist', '1', 'editopenclosestock'),
(329, 'productlist', '1', 'changeserialstatus'),
(330, 'productlist', '1', 'viewserials'),
(331, 'productlist', '1', 'viewproductsfromallbranches'),
(332, 'productlist', '1', 'bulkpriceupdate'),
(333, 'productlist', '1', 'viewbprice'),
(334, 'products', '1', 'add'),
(335, 'products', '1', 'update'),
(336, 'products', '1', 'delete'),
(337, 'products', '1', 'addstock'),
(338, 'products', '1', 'more'),
(339, 'products', '1', 'bulk'),
(340, 'products', '1', 'deleteorder'),
(341, 'products', '1', 'dispatch'),
(342, 'products', '1', 'removestock'),
(343, 'products', '1', 'price'),
(344, 'products', '1', 'removeallstock'),
(345, 'products', '1', 'bulkpriceupdate'),
(346, 'products', '1', 'viewbprice'),
(347, 'incomingstock', '1', 'add'),
(348, 'incomingstock', '1', 'update'),
(349, 'incomingstock', '1', 'view'),
(350, 'incomingstock', '1', 'delete'),
(351, 'incomingstore', '1', 'add'),
(352, 'incomingstore', '1', 'delete'),
(353, 'incomingstore', '1', 'view'),
(354, 'lowstocklist', '1', 'add'),
(355, 'lowstocklist', '1', 'more'),
(356, 'lowstocklist', '1', 'view'),
(357, 'lowproducts', '1', 'add'),
(358, 'lowproducts', '1', 'update'),
(359, 'damagedproducts', '1', 'add'),
(360, 'damagedproducts', '1', 'update'),
(361, 'damagedproducts', '1', 'delete'),
(362, 'projectsmanagement', '1', 'view'),
(363, 'projectsmanagement', '1', 'add'),
(364, 'projectsmanagement', '1', 'update'),
(365, 'projectsmanagement', '1', 'delete'),
(366, 'assets', '1', 'add'),
(367, 'assets', '1', 'update'),
(368, 'assets', '1', 'delete'),
(369, 'accounting', '1', 'deletebank'),
(370, 'accounting', '1', 'deleteglaccount'),
(371, 'accounting', '1', 'view'),
(372, 'bankdeposits', '1', 'add'),
(373, 'bankdeposits', '1', 'update'),
(374, 'bankdeposits', '1', 'delete'),
(375, 'banktransfer', '1', 'add'),
(376, 'journalentry', '1', 'add'),
(377, 'accountingreports', '1', 'view'),
(378, 'peoplecategory', '1', 'add'),
(379, 'peoplecategory', '1', 'update'),
(380, 'peoplecategory', '1', 'delete'),
(381, 'labourrecords', '1', 'add'),
(382, 'payroll', '1', 'add'),
(383, 'reports', '1', 'view'),
(384, 'reports', '1', 'download'),
(385, 'reports', '1', 'delete'),
(386, 'reports', '1', 'update'),
(387, 'reports', '1', 'viewall'),
(388, 'displayreport', '1', 'view'),
(389, 'grouping', '1', 'add'),
(390, 'grouping', '1', 'update'),
(391, 'grouping', '1', 'delete'),
(392, 'sendsms', '1', 'add'),
(393, 'sendsms', '1', 'update'),
(394, 'sendsms', '1', 'delete'),
(395, 'sendsms', '1', 'transfersms'),
(396, 'documents', '1', 'add'),
(397, 'documents', '1', 'update'),
(398, 'documents', '1', 'delete'),
(399, 'documents', '1', 'viewalldocuments'),
(400, 'humanresource', '1', 'add'),
(401, 'humanresource', '1', 'approve'),
(402, 'humanresource', '1', 'update'),
(403, 'humanresource', '1', 'delete'),
(404, 'humanresource', '1', 'view'),
(405, 'humanresource', '1', 'allocate'),
(406, 'humanresource', '1', 'viewallpayroll'),
(407, 'humanresource', '1', 'leavesetup'),
(408, 'humanresource', '1', 'allleaves '),
(409, 'humanresource', '1', 'bioattendance'),
(410, 'taskscategory', '1', 'add'),
(411, 'taskscategory', '1', 'update'),
(412, 'taskscategory', '1', 'delete'),
(413, 'task', '1', 'add'),
(414, 'task', '1', 'update'),
(415, 'task', '1', 'viewall'),
(416, 'task', '1', 'delete'),
(417, 'task', '1', 'postspecifictask'),
(418, 'task', '1', 'postgeneraltask'),
(419, 'task', '1', 'viewothersspecifictask'),
(420, 'task', '1', 'viewothersgeneraltask'),
(421, 'task', '1', 'assigntask'),
(422, 'task', '1', 'posttaskforothers'),
(423, 'callcenter', '1', 'add'),
(424, 'callcenter', '1', 'upadate'),
(425, 'callcenter', '1', 'view'),
(426, 'callcenter', '1', 'download'),
(427, 'callcenter', '1', 'delete'),
(428, 'deals', '1', 'add'),
(429, 'deals', '1', 'update'),
(430, 'deals', '1', 'delete'),
(431, 'deals', '1', 'viewall'),
(432, 'complain', '1', 'add'),
(433, 'complain', '1', 'view'),
(434, 'complain', '1', 'update'),
(435, 'complain', '1', 'allcompalin'),
(436, 'complain', '1', 'delete'),
(437, 'events', '1', 'add'),
(438, 'events', '1', 'update'),
(439, 'events', '1', 'delete'),
(440, 'password', '1', 'change'),
(441, 'profile', '1', 'update'),
(442, 'ecommerce', '1', 'add'),
(443, 'ecommerce', '1', 'update'),
(444, 'ecommerce', '1', 'delete'),
(445, 'ecommerce', '1', 'vieworders'),
(446, 'ecommerce', '1', 'setup'),
(447, 'ecommerce', '1', 'approveorders'),
(448, 'config', '1', 'delete'),
(449, 'config', '1', 'add'),
(450, 'config', '1', 'update'),
(512, 'incomeexpenses', '5', 'add'),
(513, 'incomeexpenses', '5', 'closeexpense'),
(514, 'incomeexpenses', '5', 'update'),
(515, 'incomeexpenses', '5', 'updateclosedexpenses'),
(516, 'incomeexpenses', '5', 'wiewinvoices'),
(517, 'incomeexpenses', '5', 'viewbills'),
(518, 'incomeexpenses', '5', 'viewexpense'),
(519, 'incomeexpenses', '5', 'viewdebtors'),
(520, 'incomeexpenses', '5', 'viewcreditors'),
(521, 'incomeexpenses', '5', 'postrentalexpenses'),
(522, 'accounting', '5', 'deletebank'),
(523, 'accounting', '5', 'deleteglaccount'),
(524, 'accounting', '5', 'view'),
(525, 'bankdeposits', '5', 'add'),
(526, 'bankdeposits', '5', 'update'),
(527, 'bankdeposits', '5', 'delete'),
(528, 'banktransfer', '5', 'add'),
(529, 'accountingreports', '5', 'view'),
(530, 'sales', '2', 'add'),
(531, 'sales', '2', 'suspend'),
(532, 'sales', '2', 'printreceipt'),
(533, 'sales', '2', 'update'),
(534, 'sales', '2', 'cash'),
(535, 'sales', '2', 'moresales'),
(536, 'sales', '2', 'sale'),
(537, 'sales', '2', 'mpesa'),
(538, 'sales', '2', 'card'),
(539, 'sales', '2', 'updatepaymentmode'),
(540, 'sales', '2', 'clearpayments'),
(541, 'sales', '2', 'cheque'),
(542, 'sales', '2', 'dontprint'),
(543, 'cashiersales', '2', 'entermpesacode'),
(544, 'cashiersales', '2', 'editmpesa'),
(545, 'cashiersales', '2', 'cashiersales'),
(546, 'cashiersales', '2', 'editmpesadate'),
(547, 'cashiersales', '2', 'dontshowtotal'),
(548, 'cashiersales', '2', 'adddailycollection'),
(549, 'cashiersales', '2', 'viewtill'),
(550, 'cashiersales', '2', 'viewdailycollections'),
(551, 'cashiersales', '2', 'updatedailycollections'),
(552, 'cashiersales', '2', 'mpesapendingreport'),
(553, 'cashiersales', '2', 'viewallcounters'),
(554, 'cashiersales', '2', 'mpesaverifiedreport'),
(555, 'cashiersales', '2', 'viewcommission'),
(556, 'cashiersales', '2', 'dailysalesonly'),
(557, 'cashiersales', '2', 'viewmpesamessages'),
(558, 'recorddelivery', '2', 'add'),
(559, 'recorddelivery', '2', 'view'),
(560, 'recorddelivery', '2', 'update'),
(561, 'recorddelivery', '2', 'delete'),
(562, 'recorddelivery', '2', 'changestatus'),
(563, 'recorddelivery', '2', 'report'),
(564, 'recorddelivery', '2', 'Dispatched'),
(565, 'recorddelivery', '2', 'FailedDelivery'),
(566, 'recorddelivery', '2', 'ReturnedandReceived'),
(567, 'recorddelivery', '2', 'Delivered'),
(568, 'recorddelivery', '2', 'Claimraised'),
(569, 'recorddelivery', '2', 'ClaimOK'),
(570, 'recorddelivery', '2', 'ClaimDamaged'),
(571, 'password', '2', 'change');

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

--
-- Table structure for table `roles`
--

CREATE TABLE IF NOT EXISTS `roles` (
  `id` int(20) NOT NULL,
  `name` varchar(50) NOT NULL,
  `description` text NOT NULL,
  `createdate` varchar(50) NOT NULL,
  `status` varchar(50) NOT NULL DEFAULT 'active',
  `userid` varchar(50) NOT NULL,
  `updatedate` varchar(50) NOT NULL,
  `companyid` varchar(50) NOT NULL,
  `invoice` text NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `roles`
--

INSERT INTO `roles` (`id`, `name`, `description`, `createdate`, `status`, `userid`, `updatedate`, `companyid`, `invoice`) VALUES
(1, 'Cashier', 'Cashier', '2024-05-11 13:27:57', 'active', '1', '', '1', ''),
(2, 'Waiter', 'Waiter', '2024-05-21 15:44:26', 'active', '1', '', '1', '');

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

--
-- Table structure for table `roomcharges`
--

CREATE TABLE IF NOT EXISTS `roomcharges` (
  `id` int(11) NOT NULL,
  `roomid` varchar(40) NOT NULL,
  `plotno` varchar(100) NOT NULL,
  `cost` varchar(100) NOT NULL,
  `status` varchar(40) NOT NULL DEFAULT 'active',
  `createdat` varchar(100) NOT NULL,
  `updatedat` varchar(100) NOT NULL,
  `userid` varchar(100) NOT NULL,
  `name` varchar(50) NOT NULL,
  `companyid` varchar(30) NOT NULL,
  `chargeid` varchar(30) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `roomcharges`
--

INSERT INTO `roomcharges` (`id`, `roomid`, `plotno`, `cost`, `status`, `createdat`, `updatedat`, `userid`, `name`, `companyid`, `chargeid`) VALUES
(1, '2', '1', '30000', 'active', '2024-12-18 15:49:00', '', '1', '', '1', '13 '),
(2, '1', '1', '30000', 'active', '2024-12-18 15:49:00', '', '1', '', '1', '13 '),
(3, '2', '1', '2000', 'active', '2024-12-18 15:49:13', '', '1', '', '1', '17 '),
(4, '1', '1', '2000', 'active', '2024-12-18 15:49:13', '', '1', '', '1', '17 '),
(7, '2', '1', '0', 'active', '2025-01-28 09:26:55', '', '1', '', '1', '12 '),
(8, '1', '1', '0', 'active', '2025-01-28 09:26:55', '', '1', '', '1', '12 ');

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

--
-- Table structure for table `roomcollection`
--

CREATE TABLE IF NOT EXISTS `roomcollection` (
  `id` int(11) NOT NULL,
  `paiddate` varchar(100) NOT NULL,
  `invoice` varchar(100) NOT NULL,
  `amount` varchar(100) NOT NULL,
  `remarks` varchar(100) NOT NULL,
  `balance` varchar(30) NOT NULL,
  `userid` varchar(20) NOT NULL,
  `companyid` varchar(20) NOT NULL,
  `paymentmethodes` int(10) NOT NULL,
  `createdate` varchar(50) NOT NULL,
  `name` varchar(30) NOT NULL DEFAULT 'payment',
  `transactioncode` varchar(50) NOT NULL,
  `supplier` int(11) DEFAULT NULL,
  `branchid` int(11) DEFAULT '1'
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `roomcollection`
--

INSERT INTO `roomcollection` (`id`, `paiddate`, `invoice`, `amount`, `remarks`, `balance`, `userid`, `companyid`, `paymentmethodes`, `createdate`, `name`, `transactioncode`, `supplier`, `branchid`) VALUES
(1, '2024-12-20 11:33:18', '11734683577', '1000', '', '1000', '1', '1', 1050, '2024-12-20 11:33:48', 'payment', 'qweeqweqwew', 1, 1),
(2, '2024-12-20 11:39:26', '11734683942', '2000', '', '6000', '1', '1', 1010, '2024-12-20 11:39:49', 'payment', 'swedqwed', 1, 1),
(3, '2024-12-20 12:14:12', '11734683942', '1111', '', '28889', '1', '1', 1050, '2024-12-20 12:14:25', 'payment', '', 1, 1);

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

--
-- Table structure for table `roomsales`
--

CREATE TABLE IF NOT EXISTS `roomsales` (
  `id` int(11) NOT NULL,
  `plotno` int(11) NOT NULL,
  `houseno` varchar(20) NOT NULL,
  `customerid` int(20) DEFAULT NULL,
  `dateposted` varchar(30) NOT NULL,
  `total` decimal(10,2) NOT NULL,
  `userid` int(20) NOT NULL,
  `companyid` int(10) NOT NULL,
  `status` varchar(20) NOT NULL DEFAULT 'New',
  `description` text NOT NULL,
  `updatedat` varchar(30) DEFAULT NULL,
  `updatedby` int(11) DEFAULT NULL,
  `branch` int(11) NOT NULL,
  `invoice` varchar(50) NOT NULL,
  `transactioncode` varchar(50) DEFAULT NULL
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `roomsales`
--

INSERT INTO `roomsales` (`id`, `plotno`, `houseno`, `customerid`, `dateposted`, `total`, `userid`, `companyid`, `status`, `description`, `updatedat`, `updatedby`, `branch`, `invoice`, `transactioncode`) VALUES
(1, 1, '101', 1, '2024-12-23 11:43:41', '1000.00', 1, 1, 'New', '8', '', 0, 1, '11734942253', '11734683942'),
(2, 1, '102', 2, '2025-01-30 04:57:13', '0.00', 1, 1, 'merged', '29', '2025-01-30 04:59:12am', 1, 1, '11738202221', '11738202139'),
(3, 1, '102', 1, '2025-02-02 17:18:29', '0.00', 1, 1, 'merged', '35', '2025-02-02 05:31:26pm', 1, 1, '11738505845', '11738406170'),
(4, 1, '101', 3, '2025-02-03 11:15:16', '220.00', 1, 1, 'New', '37', '', 0, 1, '11738570511', '11738509785'),
(5, 1, '102', 3, '2025-02-03 11:15:42', '220.00', 1, 1, 'New', '39', '', 0, 1, '11738570524', '11738568966'),
(6, 1, '101', 3, '2025-02-05 17:01:35', '880.00', 1, 1, 'New', '37', '', 0, 1, '11738763990', '11738509785'),
(7, 1, '102', 2, '2025-02-21 13:07:08', '550.00', 1, 1, 'New', '45', '', 0, 1, '11740132403', '11739180891'),
(8, 1, '102', 2, '2025-02-27 19:43:14', '220.00', 1, 1, 'Cleared', '45', '2025-02-27 19:43:14', 1, 1, '11740653729', '11739180891'),
(9, 1, '102', 2, '2025-03-13 12:11:32', '340.00', 1, 1, 'New', '45', '', 0, 1, '11741857017', '11739180891');

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

--
-- Table structure for table `salary`
--

CREATE TABLE IF NOT EXISTS `salary` (
  `id` int(20) NOT NULL,
  `userid` int(20) NOT NULL,
  `companyid` int(15) NOT NULL,
  `salary` decimal(10,2) NOT NULL,
  `pay` decimal(10,2) NOT NULL,
  `deductions` decimal(10,2) NOT NULL,
  `bonus` decimal(10,2) NOT NULL,
  `bankname` varchar(20) NOT NULL,
  `bankaccount` varchar(30) NOT NULL,
  `method` varchar(20) NOT NULL,
  `payment` varchar(20) NOT NULL,
  `netsalry` decimal(10,2) NOT NULL,
  `gross` decimal(10,2) NOT NULL,
  `memberid` int(11) NOT NULL,
  `salaryyear` varchar(20) NOT NULL,
  `paymentmode` varchar(30) NOT NULL,
  `slarymonth` varchar(20) NOT NULL,
  `number` varchar(20) NOT NULL,
  `createdate` varchar(30) NOT NULL,
  `relief` decimal(10,2) NOT NULL,
  `salaryid` varchar(100) NOT NULL,
  `branchid` int(11) NOT NULL DEFAULT '1',
  `loanbalance` decimal(10,2) NOT NULL,
  `nhif` int(20) DEFAULT NULL,
  `nssf` varchar(20) DEFAULT NULL,
  `paye` varchar(20) DEFAULT NULL,
  `advance` varchar(20) DEFAULT NULL,
  `otherdeductions` varchar(20) DEFAULT NULL,
  `currency` varchar(20) DEFAULT NULL,
  `transactiontypecode` varchar(20) DEFAULT NULL,
  `chargetype` varchar(20) DEFAULT NULL,
  `paymenttype` varchar(20) NOT NULL,
  `nhifrelief` decimal(10,2) NOT NULL,
  `houselevy` varchar(20) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `salarycharges`
--

CREATE TABLE IF NOT EXISTS `salarycharges` (
  `id` int(20) NOT NULL,
  `code` int(20) NOT NULL,
  `name` text NOT NULL,
  `createdate` varchar(50) NOT NULL,
  `status` varchar(50) NOT NULL DEFAULT 'Active',
  `userid` varchar(50) NOT NULL,
  `updatedate` varchar(50) NOT NULL,
  `companyid` varchar(50) NOT NULL,
  `category` varchar(20) NOT NULL DEFAULT 'Minus',
  `amountmode` varchar(20) NOT NULL,
  `qtymode` varchar(20) NOT NULL,
  `quantity` decimal(10,2) NOT NULL,
  `amount` decimal(10,2) NOT NULL,
  `unit` varchar(50) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=31 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `salarycharges`
--

INSERT INTO `salarycharges` (`id`, `code`, `name`, `createdate`, `status`, `userid`, `updatedate`, `companyid`, `category`, `amountmode`, `qtymode`, `quantity`, `amount`, `unit`) VALUES
(6, 2, 'House Allowance', '2019-03-28 12:47:59', 'Active', '1', '', '1', 'Pay', 'Fixed', 'Fixed', '1.00', '0.00', ''),
(7, 3, 'Painting', '2024-02-26 12:44:38', 'Active', '1', '', '1', 'Pay', 'Fixed', 'Fixed', '1.00', '500.00', ''),
(8, 4, 'Travel Allowance', '2019-03-28 12:48:59', 'Active', '1', '', '1', 'Pay', 'Variable', 'Variable', '1.00', '0.00', ''),
(9, 5, 'Branding ', '2024-02-26 12:44:20', 'Active', '1', '', '1', 'Pay', 'Variable', 'Variable', '1.00', '200.00', ''),
(10, 6, 'Allowance', '2019-03-28 12:50:16', 'Active', '1', '', '1', 'Pay', 'Variable', 'Variable', '1.00', '0.00', ''),
(11, 7, 'Appreciation', '2019-03-28 12:50:45', 'Active', '1', '', '1', 'Pay', 'Variable', 'Variable', '1.00', '0.00', ''),
(12, 8, 'PAYE', '2019-03-28 12:51:21', 'Active', '1', '', '1', 'Deduction', 'Fixed', 'Fixed', '1.00', '0.00', ''),
(13, 9, 'NSSF', '2019-03-28 12:51:38', 'Active', '1', '', '1', 'Deduction', 'Fixed', 'Fixed', '1.00', '0.00', ''),
(14, 10, 'SHIF', '2025-01-24 06:22:16', 'Active', '1', '', '1', 'Deduction', 'Fixed', 'Fixed', '1.00', '0.00', '2.75'),
(15, 11, 'Advances', '2019-03-28 13:00:47', 'Active', '1', '', '1', 'Deduction', 'Variable', 'Variable', '1.00', '0.00', ''),
(16, 12, 'Loan payment', '2019-03-28 13:03:14', 'Active', '1', '', '1', 'Deduction', 'Variable', 'Variable', '1.00', '0.00', ''),
(18, 14, 'destruction', '2019-03-28 13:04:59', 'Active', '1', '', '1', 'Deduction', 'Variable', 'Variable', '1.00', '0.00', ''),
(19, 15, 'Loan', '2019-06-11 13:31:04', 'Active', '1', '', '1', 'Pay', 'Variable', 'Fixed', '1.00', '0.00', ''),
(20, 26, 'staff Uniforms', '2023-05-15 08:38:23', 'Active', '1', '', '1', 'Deduction', 'Fixed', 'Fixed', '1.00', '0.00', ''),
(21, 16, 'Helb / Sacco Loan	', '2019-12-17 04:55:20', 'Active', '1', '', '1', 'Deduction', 'Variable', 'Variable', '1.00', '0.00', ''),
(22, 25, 'LOST/DAMAGED ITEM', '2023-05-15 08:38:05', 'Active', '1', '', '1', 'Deduction', 'Variable', 'Fixed', '1.00', '900.00', ''),
(23, 18, 'sales cut ', '2020-12-15 19:06:21', 'Active', '1', '', '1', 'Deduction', 'Variable', 'Variable', '1.00', '0.00', ''),
(24, 19, 'UNPAID LEAVE DAYS', '2021-04-05 10:49:16', 'Active', '1', '', '1', 'Deduction', 'Variable', 'Fixed', '1.00', '0.00', ''),
(25, 20, 'DEDUCTION', '2021-04-05 10:49:55', 'Active', '1', '', '1', 'Deduction', 'Fixed', 'Variable', '1.00', '0.00', ''),
(26, 21, 'Insurance cover ', '2022-02-04 10:16:25', 'Active', '1', '', '1', 'Deduction', 'Variable', 'Fixed', '1.00', '0.00', ''),
(27, 22, 'PERFORMANCE PAY CUT', '2023-01-23 12:04:28', 'Active', '1', '', '1', 'Deduction', 'Fixed', 'Fixed', '1.00', '0.00', ''),
(28, 23, 'SALES COMMISSION', '2023-03-02 09:44:12', 'Active', '1', '', '1', 'Pay', 'Variable', 'Fixed', '1.00', '0.00', ''),
(29, 24, 'staff uniform shirts', '2023-04-03 16:29:31', 'Active', '1', '', '1', 'Deduction', 'Fixed', 'Fixed', '1.00', '0.00', '1'),
(30, 2005, 'House Levy', '2023-09-02 08:12:42', 'Active', '1', '', '1', 'Deduction', 'Fixed', 'Fixed', '1.00', '0.00', '1.5');

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

--
-- Table structure for table `sales`
--

CREATE TABLE IF NOT EXISTS `sales` (
  `id` int(11) NOT NULL,
  `cashier` text NOT NULL,
  `type` varchar(100) NOT NULL,
  `amount` varchar(100) NOT NULL,
  `due_date` varchar(100) NOT NULL,
  `name` varchar(100) NOT NULL,
  `balance` varchar(20) NOT NULL DEFAULT '0',
  `userid` varchar(50) NOT NULL,
  `dateposted` varchar(50) NOT NULL,
  `customer` varchar(50) DEFAULT NULL,
  `cash` varchar(50) NOT NULL,
  `total` varchar(50) NOT NULL,
  `companyid` varchar(50) NOT NULL,
  `salestype` varchar(50) NOT NULL,
  `maindiscount` varchar(20) DEFAULT NULL,
  `discountedtotal` varchar(20) NOT NULL,
  `branch` varchar(30) NOT NULL DEFAULT '1',
  `card` varchar(30) NOT NULL,
  `voucher` varchar(30) NOT NULL,
  `credit` varchar(30) NOT NULL,
  `points` varchar(30) NOT NULL,
  `mpesa` varchar(50) NOT NULL,
  `cheque` varchar(50) NOT NULL,
  `ordersales` varchar(20) DEFAULT 'printed',
  `description` text NOT NULL,
  `mytable` varchar(30) NOT NULL,
  `maincategory` varchar(30) DEFAULT NULL,
  `creditnote` varchar(30) NOT NULL,
  `invoice` varchar(30) NOT NULL,
  `paymentstatus` varchar(10) NOT NULL DEFAULT 'No',
  `updatedby` varchar(10) NOT NULL,
  `updatedat` varchar(50) NOT NULL,
  `plotno` varchar(20) NOT NULL,
  `houseno` varchar(20) NOT NULL,
  `baddebt` varchar(30) NOT NULL,
  `tax1` varchar(30) NOT NULL,
  `tax2` varchar(30) NOT NULL,
  `cardnumber` varchar(50) DEFAULT NULL,
  `savedcoins` decimal(10,2) NOT NULL,
  `savedpoints` decimal(10,2) NOT NULL,
  `salesperson` int(11) DEFAULT NULL,
  `receiptno` varchar(50) DEFAULT NULL,
  `change` varchar(20) DEFAULT NULL,
  `currency` varchar(50) DEFAULT NULL,
  `othercurrency` varchar(20) DEFAULT NULL,
  `othercurrencyamount` decimal(10,2) DEFAULT NULL,
  `tocurrencyamount` decimal(10,2) NOT NULL,
  `currcptno` varchar(50) NOT NULL,
  `totrcptno` varchar(50) NOT NULL,
  `intrldata` text NOT NULL,
  `rcptsign` text NOT NULL,
  `sdcdatetime` varchar(50) NOT NULL,
  `taxblAmtA` varchar(50) DEFAULT NULL,
  `taxblAmtB` varchar(50) DEFAULT NULL,
  `taxblAmtC` varchar(50) DEFAULT NULL,
  `taxblAmtD` varchar(50) DEFAULT NULL,
  `taxblAmtE` varchar(50) DEFAULT NULL,
  `taxAmtA` varchar(50) DEFAULT NULL,
  `taxAmtB` varchar(50) DEFAULT NULL,
  `taxAmtC` varchar(50) DEFAULT NULL,
  `taxAmtD` varchar(50) DEFAULT NULL,
  `taxAmtE` varchar(50) DEFAULT NULL,
  `taxRtA` varchar(50) DEFAULT NULL,
  `taxRtB` varchar(50) DEFAULT NULL,
  `taxRtC` varchar(50) DEFAULT NULL,
  `taxRtD` varchar(50) DEFAULT NULL,
  `taxRtE` varchar(50) DEFAULT NULL,
  `sdcId` text NOT NULL,
  `mrcNo` text NOT NULL,
  `salesdump` text NOT NULL,
  `receiptdump` text NOT NULL,
  `etimsstatus` int(11) DEFAULT '0',
  `itemsstockmaster` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `salesreading`
--

CREATE TABLE IF NOT EXISTS `salesreading` (
  `id` int(11) NOT NULL,
  `invoice` varchar(100) NOT NULL,
  `cashier` varchar(100) NOT NULL,
  `type` varchar(100) NOT NULL,
  `amount` varchar(100) NOT NULL,
  `due_date` varchar(100) NOT NULL,
  `name` varchar(100) NOT NULL,
  `balance` varchar(20) NOT NULL DEFAULT '0',
  `userid` varchar(50) NOT NULL,
  `dateposted` varchar(50) NOT NULL,
  `customer` varchar(50) NOT NULL,
  `cash` varchar(50) NOT NULL,
  `total` varchar(50) NOT NULL,
  `companyid` varchar(50) NOT NULL,
  `salestype` varchar(50) NOT NULL,
  `maindiscount` varchar(20) DEFAULT NULL,
  `discountedtotal` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `salesreport`
--

CREATE TABLE IF NOT EXISTS `salesreport` (
  `id` int(50) NOT NULL,
  `type` varchar(50) NOT NULL,
  `userid` varchar(50) NOT NULL,
  `title` varchar(50) NOT NULL,
  `description` text NOT NULL,
  `dateposted` varchar(50) NOT NULL,
  `user` varchar(100) NOT NULL,
  `status` varchar(50) NOT NULL DEFAULT 'active',
  `reportdate` varchar(50) NOT NULL,
  `recommendation` text NOT NULL,
  `controller` varchar(40) NOT NULL,
  `companyid` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `salestatuscodes`
--

CREATE TABLE IF NOT EXISTS `salestatuscodes` (
  `id` int(50) NOT NULL,
  `code` varchar(50) NOT NULL,
  `description` text,
  `status` varchar(50) NOT NULL,
  `name` text NOT NULL,
  `sort_order` varchar(50) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `salestatuscodes`
--

INSERT INTO `salestatuscodes` (`id`, `code`, `description`, `status`, `name`, `sort_order`) VALUES
(1, '01', NULL, 'Y', 'Wait for Approval', '1'),
(2, '02', NULL, 'Y', 'Approved', '2'),
(3, '03', NULL, 'Y', 'Cancel Requested', '3'),
(4, '04', NULL, 'Y', 'Canceled', '4'),
(5, '05', NULL, 'Y', 'Refunded', '5'),
(6, '06', NULL, 'Y', 'Transferred', '6');

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

--
-- Table structure for table `sales_holding`
--

CREATE TABLE IF NOT EXISTS `sales_holding` (
  `id` int(11) NOT NULL,
  `cashier` varchar(100) NOT NULL,
  `type` varchar(100) NOT NULL,
  `amount` varchar(100) NOT NULL,
  `due_date` varchar(100) NOT NULL,
  `name` varchar(100) NOT NULL,
  `balance` varchar(20) NOT NULL DEFAULT '0',
  `userid` varchar(50) NOT NULL,
  `dateposted` varchar(50) NOT NULL,
  `customer` varchar(50) DEFAULT NULL,
  `cash` varchar(50) NOT NULL,
  `total` varchar(50) NOT NULL,
  `companyid` varchar(50) NOT NULL,
  `salestype` varchar(50) NOT NULL,
  `maindiscount` varchar(20) DEFAULT NULL,
  `discountedtotal` varchar(20) NOT NULL,
  `branch` varchar(30) NOT NULL DEFAULT '1',
  `card` varchar(30) NOT NULL,
  `voucher` varchar(30) NOT NULL,
  `credit` varchar(30) NOT NULL,
  `points` varchar(30) NOT NULL,
  `mpesa` varchar(50) NOT NULL,
  `cheque` varchar(50) NOT NULL,
  `ordersales` varchar(20) DEFAULT 'printed',
  `description` text NOT NULL,
  `mytable` varchar(30) NOT NULL,
  `maincategory` varchar(30) DEFAULT NULL,
  `creditnote` varchar(30) NOT NULL,
  `invoice` varchar(30) NOT NULL,
  `paymentstatus` varchar(10) NOT NULL DEFAULT 'No',
  `updatedby` varchar(10) NOT NULL,
  `updatedat` varchar(50) NOT NULL,
  `plotno` varchar(20) NOT NULL,
  `houseno` varchar(20) NOT NULL,
  `baddebt` varchar(30) NOT NULL,
  `tax1` varchar(30) NOT NULL,
  `tax2` varchar(30) NOT NULL,
  `cardnumber` varchar(50) DEFAULT NULL,
  `savedcoins` decimal(10,2) NOT NULL,
  `savedpoints` decimal(10,2) NOT NULL,
  `salesperson` int(11) DEFAULT NULL,
  `receiptno` varchar(50) DEFAULT NULL,
  `change` varchar(20) DEFAULT NULL,
  `currency` varchar(50) DEFAULT NULL,
  `othercurrency` varchar(20) DEFAULT NULL,
  `othercurrencyamount` decimal(10,2) DEFAULT NULL,
  `tocurrencyamount` decimal(10,2) NOT NULL,
  `currcptno` varchar(50) NOT NULL,
  `totrcptno` varchar(50) NOT NULL,
  `intrldata` text NOT NULL,
  `rcptsign` text NOT NULL,
  `sdcdatetime` varchar(50) NOT NULL,
  `taxblAmtA` varchar(50) DEFAULT NULL,
  `taxblAmtB` varchar(50) DEFAULT NULL,
  `taxblAmtC` varchar(50) DEFAULT NULL,
  `taxblAmtD` varchar(50) DEFAULT NULL,
  `taxblAmtE` varchar(50) DEFAULT NULL,
  `taxAmtA` varchar(50) DEFAULT NULL,
  `taxAmtB` varchar(50) DEFAULT NULL,
  `taxAmtC` varchar(50) DEFAULT NULL,
  `taxAmtD` varchar(50) DEFAULT NULL,
  `taxAmtE` varchar(50) DEFAULT NULL,
  `taxRtA` varchar(50) DEFAULT NULL,
  `taxRtB` varchar(50) DEFAULT NULL,
  `taxRtC` varchar(50) DEFAULT NULL,
  `taxRtD` varchar(50) DEFAULT NULL,
  `taxRtE` varchar(50) DEFAULT NULL,
  `sdcId` text NOT NULL,
  `mrcNo` text NOT NULL,
  `salesdump` text NOT NULL,
  `receiptdump` text NOT NULL,
  `etimsstatus` int(11) NOT NULL DEFAULT '0',
  `itemsstockmaster` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `sales_order`
--

CREATE TABLE IF NOT EXISTS `sales_order` (
  `id` int(11) NOT NULL,
  `invoice` varchar(100) NOT NULL,
  `code` varchar(100) NOT NULL,
  `qty` decimal(10,2) NOT NULL,
  `amount` varchar(100) NOT NULL,
  `salestype` varchar(100) NOT NULL,
  `discount` varchar(100) NOT NULL,
  `dateposted` varchar(50) NOT NULL,
  `address` text NOT NULL,
  `description` text NOT NULL,
  `user` varchar(50) NOT NULL,
  `bprice` varchar(50) NOT NULL,
  `type` varchar(50) NOT NULL DEFAULT 'cash',
  `tax` decimal(10,2) NOT NULL,
  `sprice` varchar(100) NOT NULL,
  `balance` varchar(50) NOT NULL,
  `customer` varchar(50) NOT NULL,
  `userid` varchar(50) NOT NULL,
  `mode` varchar(50) NOT NULL DEFAULT '16',
  `companyid` varchar(100) NOT NULL,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `maincategory` varchar(50) NOT NULL,
  `category` varchar(50) NOT NULL,
  `status` varchar(30) DEFAULT 'new',
  `branch` varchar(30) NOT NULL,
  `ordersales` varchar(20) NOT NULL DEFAULT 'new',
  `uom` varchar(30) NOT NULL,
  `sales` varchar(30) NOT NULL,
  `updatedat` varchar(50) NOT NULL,
  `updatedby` varchar(10) NOT NULL,
  `taxindicator` varchar(10) NOT NULL DEFAULT 'yes',
  `serial` varchar(50) DEFAULT NULL,
  `tax2` varchar(20) NOT NULL,
  `discountype` varchar(20) NOT NULL,
  `discountvalue` varchar(20) NOT NULL,
  `vattype` varchar(20) NOT NULL,
  `taxable` decimal(10,2) NOT NULL,
  `uomqty` varchar(30) NOT NULL DEFAULT '0',
  `stockbefore` varchar(30) NOT NULL,
  `stockafter` varchar(30) NOT NULL,
  `taxtype` varchar(30) NOT NULL DEFAULT 'Inclusive',
  `stock` varchar(20) NOT NULL DEFAULT 'branch',
  `producttype` varchar(30) NOT NULL,
  `assetaccount` varchar(30) NOT NULL,
  `salesaccount` varchar(30) NOT NULL,
  `expenseaccount` varchar(30) DEFAULT NULL,
  `start` varchar(20) NOT NULL,
  `close` varchar(20) NOT NULL,
  `taxcode` varchar(50) DEFAULT NULL,
  `myinvoice` varchar(50) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `sales_ordercancelled`
--

CREATE TABLE IF NOT EXISTS `sales_ordercancelled` (
  `myinvoice` varchar(50) DEFAULT NULL,
  `id` int(11) NOT NULL,
  `invoice` varchar(100) NOT NULL,
  `code` varchar(100) NOT NULL,
  `qty` decimal(10,2) NOT NULL,
  `amount` varchar(100) NOT NULL,
  `salestype` varchar(100) NOT NULL,
  `discount` varchar(100) NOT NULL,
  `dateposted` varchar(50) NOT NULL,
  `address` text NOT NULL,
  `description` text NOT NULL,
  `user` varchar(50) NOT NULL,
  `bprice` varchar(50) NOT NULL,
  `type` varchar(50) NOT NULL DEFAULT 'cash',
  `tax` decimal(10,2) NOT NULL,
  `sprice` varchar(100) NOT NULL,
  `balance` varchar(50) NOT NULL,
  `customer` varchar(50) NOT NULL,
  `userid` varchar(50) NOT NULL,
  `mode` varchar(50) NOT NULL,
  `companyid` varchar(100) NOT NULL,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `maincategory` varchar(50) NOT NULL,
  `category` varchar(50) NOT NULL,
  `status` varchar(30) DEFAULT 'new',
  `branch` varchar(30) NOT NULL,
  `ordersales` varchar(20) NOT NULL DEFAULT 'new',
  `uom` varchar(30) NOT NULL,
  `sales` varchar(30) NOT NULL,
  `updatedat` varchar(50) NOT NULL,
  `updatedby` varchar(10) NOT NULL,
  `taxindicator` varchar(10) NOT NULL DEFAULT 'yes',
  `serial` varchar(50) DEFAULT NULL,
  `tax2` varchar(20) NOT NULL,
  `discountype` varchar(20) NOT NULL,
  `discountvalue` varchar(20) NOT NULL,
  `vattype` varchar(20) NOT NULL,
  `taxable` decimal(10,2) NOT NULL,
  `uomqty` varchar(30) NOT NULL DEFAULT '0',
  `stockbefore` varchar(30) NOT NULL,
  `stockafter` varchar(30) NOT NULL,
  `taxtype` varchar(30) NOT NULL DEFAULT 'Inclusive',
  `stock` varchar(20) NOT NULL DEFAULT 'branch',
  `producttype` varchar(30) NOT NULL,
  `assetaccount` varchar(30) NOT NULL,
  `salesaccount` varchar(30) NOT NULL,
  `expenseaccount` varchar(30) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `sales_orderholding`
--

CREATE TABLE IF NOT EXISTS `sales_orderholding` (
  `myinvoice` varchar(50) NOT NULL,
  `id` int(11) NOT NULL,
  `invoice` varchar(100) NOT NULL,
  `code` varchar(100) NOT NULL,
  `qty` decimal(10,2) NOT NULL,
  `amount` varchar(100) NOT NULL,
  `salestype` varchar(100) NOT NULL,
  `discount` varchar(100) NOT NULL,
  `dateposted` varchar(50) NOT NULL,
  `address` text NOT NULL,
  `description` text NOT NULL,
  `user` varchar(50) NOT NULL,
  `bprice` varchar(50) NOT NULL,
  `type` varchar(50) NOT NULL DEFAULT 'cash',
  `sprice` varchar(100) NOT NULL,
  `balance` varchar(50) NOT NULL,
  `customer` varchar(50) NOT NULL,
  `userid` varchar(50) NOT NULL,
  `mode` varchar(50) NOT NULL,
  `companyid` varchar(100) NOT NULL,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `maincategory` varchar(50) NOT NULL,
  `category` varchar(50) NOT NULL,
  `status` varchar(30) DEFAULT 'new',
  `branch` varchar(30) NOT NULL,
  `ordersales` varchar(20) NOT NULL DEFAULT 'new',
  `uom` varchar(30) NOT NULL,
  `sales` varchar(30) NOT NULL,
  `updatedat` varchar(50) NOT NULL,
  `updatedby` varchar(10) NOT NULL,
  `taxindicator` varchar(10) NOT NULL DEFAULT 'yes',
  `serial` varchar(50) DEFAULT NULL,
  `tax2` varchar(20) NOT NULL,
  `discountype` varchar(20) NOT NULL,
  `discountvalue` varchar(20) NOT NULL,
  `vattype` varchar(20) NOT NULL,
  `taxable` decimal(10,2) NOT NULL,
  `tax` decimal(10,2) NOT NULL,
  `uomqty` varchar(30) NOT NULL DEFAULT '0',
  `stockbefore` varchar(30) NOT NULL,
  `stockafter` varchar(30) NOT NULL,
  `taxtype` varchar(30) NOT NULL DEFAULT 'Inclusive',
  `stock` varchar(20) NOT NULL DEFAULT 'branch',
  `producttype` varchar(30) NOT NULL,
  `assetaccount` varchar(30) NOT NULL,
  `salesaccount` varchar(30) NOT NULL,
  `expenseaccount` varchar(30) DEFAULT NULL,
  `taxcode` varchar(50) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `sales_orderkitchen`
--

CREATE TABLE IF NOT EXISTS `sales_orderkitchen` (
  `myinvoice` varchar(50) DEFAULT NULL,
  `id` int(11) NOT NULL,
  `invoice` varchar(100) NOT NULL,
  `code` varchar(100) NOT NULL,
  `qty` decimal(10,2) NOT NULL,
  `amount` varchar(100) NOT NULL,
  `salestype` varchar(100) NOT NULL,
  `discount` varchar(100) NOT NULL,
  `dateposted` varchar(50) NOT NULL,
  `address` varchar(50) NOT NULL,
  `description` text NOT NULL,
  `user` varchar(50) NOT NULL,
  `bprice` varchar(50) NOT NULL,
  `type` varchar(50) NOT NULL DEFAULT 'cash',
  `tax` decimal(10,2) NOT NULL,
  `sprice` varchar(100) NOT NULL,
  `balance` varchar(50) NOT NULL,
  `customer` varchar(50) NOT NULL,
  `userid` varchar(50) NOT NULL,
  `mode` varchar(50) NOT NULL,
  `companyid` varchar(100) NOT NULL,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `maincategory` varchar(50) NOT NULL,
  `category` varchar(50) NOT NULL,
  `status` varchar(30) DEFAULT 'new',
  `branch` varchar(30) NOT NULL,
  `ordersales` varchar(20) NOT NULL DEFAULT 'new',
  `uom` varchar(30) NOT NULL,
  `sales` varchar(30) NOT NULL,
  `updatedat` varchar(50) NOT NULL,
  `updatedby` varchar(10) NOT NULL,
  `taxindicator` varchar(10) NOT NULL DEFAULT 'yes',
  `serial` varchar(50) DEFAULT NULL,
  `tax2` varchar(20) NOT NULL,
  `discountype` varchar(20) NOT NULL,
  `discountvalue` varchar(20) NOT NULL,
  `vattype` varchar(20) NOT NULL,
  `taxable` varchar(50) NOT NULL,
  `uomqty` varchar(30) NOT NULL DEFAULT '0',
  `stockbefore` varchar(30) NOT NULL,
  `stockafter` varchar(30) NOT NULL,
  `taxtype` varchar(30) NOT NULL DEFAULT 'Inclusive',
  `stock` varchar(20) NOT NULL DEFAULT 'branch',
  `producttype` varchar(30) NOT NULL,
  `assetaccount` varchar(30) NOT NULL,
  `salesaccount` varchar(30) NOT NULL,
  `expenseaccount` varchar(30) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `sales_orderraw`
--

CREATE TABLE IF NOT EXISTS `sales_orderraw` (
  `myinvoice` varchar(50) NOT NULL,
  `id` int(11) NOT NULL,
  `invoice` varchar(100) NOT NULL,
  `code` varchar(100) NOT NULL,
  `qty` decimal(10,2) NOT NULL,
  `amount` varchar(100) NOT NULL,
  `salestype` varchar(100) NOT NULL,
  `discount` varchar(100) NOT NULL,
  `dateposted` varchar(50) NOT NULL,
  `address` text NOT NULL,
  `description` text NOT NULL,
  `user` varchar(50) NOT NULL,
  `bprice` varchar(50) NOT NULL,
  `type` varchar(50) NOT NULL DEFAULT 'cash',
  `sprice` varchar(100) NOT NULL,
  `balance` varchar(50) NOT NULL,
  `customer` varchar(50) NOT NULL,
  `userid` varchar(50) NOT NULL,
  `mode` varchar(50) NOT NULL,
  `companyid` varchar(100) NOT NULL,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `maincategory` varchar(50) NOT NULL,
  `category` varchar(50) NOT NULL,
  `status` varchar(30) DEFAULT 'new',
  `branch` varchar(30) NOT NULL,
  `ordersales` varchar(20) NOT NULL DEFAULT 'new',
  `uom` varchar(30) NOT NULL,
  `sales` varchar(30) NOT NULL,
  `updatedat` varchar(50) NOT NULL,
  `updatedby` varchar(10) NOT NULL,
  `taxindicator` varchar(10) NOT NULL DEFAULT 'yes',
  `serial` varchar(50) DEFAULT NULL,
  `tax2` varchar(20) NOT NULL,
  `discountype` varchar(20) NOT NULL,
  `discountvalue` varchar(20) NOT NULL,
  `vattype` varchar(20) NOT NULL,
  `taxable` decimal(10,2) NOT NULL,
  `tax` decimal(10,2) NOT NULL,
  `uomqty` varchar(30) NOT NULL DEFAULT '0',
  `stockbefore` varchar(30) NOT NULL,
  `stockafter` varchar(30) NOT NULL,
  `taxtype` varchar(30) NOT NULL DEFAULT 'Inclusive',
  `stock` varchar(20) NOT NULL DEFAULT 'branch',
  `producttype` varchar(30) NOT NULL,
  `assetaccount` varchar(30) NOT NULL,
  `salesaccount` varchar(30) NOT NULL,
  `expenseaccount` varchar(30) DEFAULT NULL,
  `taxcode` varchar(50) DEFAULT NULL
) ENGINE=InnoDB AUTO_INCREMENT=44 DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `sales_reading`
--

CREATE TABLE IF NOT EXISTS `sales_reading` (
  `invoice` varchar(100) NOT NULL,
  `code` varchar(100) NOT NULL,
  `qty` varchar(100) NOT NULL,
  `amount` varchar(100) NOT NULL,
  `salestype` varchar(100) NOT NULL,
  `sprice` varchar(100) NOT NULL,
  `discount` varchar(100) NOT NULL,
  `dateposted` varchar(50) NOT NULL,
  `address` varchar(50) NOT NULL,
  `description` text NOT NULL,
  `user` varchar(50) NOT NULL,
  `bprice` varchar(50) NOT NULL,
  `type` varchar(50) NOT NULL DEFAULT 'cash',
  `tax` varchar(50) NOT NULL,
  `balance` varchar(50) NOT NULL,
  `customer` varchar(50) NOT NULL,
  `userid` varchar(50) NOT NULL,
  `mode` varchar(50) NOT NULL,
  `companyid` varchar(100) NOT NULL,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `id` int(30) NOT NULL,
  `status` varchar(30) NOT NULL DEFAULT 'new',
  `category` varchar(30) NOT NULL,
  `maincategory` varchar(10) NOT NULL,
  `start` varchar(100) NOT NULL,
  `close` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `serials`
--

CREATE TABLE IF NOT EXISTS `serials` (
  `id` int(11) NOT NULL,
  `itemid` varchar(50) NOT NULL,
  `createdate` varchar(50) NOT NULL,
  `status` varchar(50) NOT NULL DEFAULT 'new',
  `userid` varchar(50) NOT NULL,
  `updatedate` varchar(50) NOT NULL,
  `companyid` varchar(100) NOT NULL,
  `code` varchar(30) NOT NULL,
  `branch` varchar(30) NOT NULL,
  `qty` decimal(10,4) NOT NULL,
  `buyingprice` decimal(10,2) NOT NULL,
  `sellingprice` decimal(10,2) NOT NULL,
  `invoice` varchar(50) DEFAULT NULL,
  `serial` varchar(50) NOT NULL,
  `otherserial` varchar(50) NOT NULL,
  `name` text NOT NULL,
  `description` text NOT NULL,
  `batchno` int(11) NOT NULL,
  `myid` int(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `serialstocktaking`
--

CREATE TABLE IF NOT EXISTS `serialstocktaking` (
  `id` int(10) NOT NULL,
  `code` varchar(50) NOT NULL,
  `open` decimal(10,2) NOT NULL,
  `added` decimal(10,2) NOT NULL,
  `balance` decimal(10,2) NOT NULL,
  `branchid` int(10) NOT NULL,
  `type` varchar(30) NOT NULL DEFAULT 'open',
  `userid` int(30) NOT NULL,
  `companyid` int(30) NOT NULL,
  `startdate` varchar(30) NOT NULL,
  `closedate` varchar(10) NOT NULL,
  `updatedby` int(10) NOT NULL,
  `postedtime` varchar(30) NOT NULL,
  `status` varchar(10) NOT NULL DEFAULT 'open',
  `maincategory` int(11) NOT NULL,
  `serial` varchar(50) NOT NULL,
  `sellingprice` varchar(20) NOT NULL,
  `buyingprice` varchar(20) NOT NULL,
  `name` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `setting`
--

CREATE TABLE IF NOT EXISTS `setting` (
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `value` text COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

--
-- Table structure for table `sms`
--

CREATE TABLE IF NOT EXISTS `sms` (
  `id` int(30) NOT NULL,
  `contact` varchar(60) NOT NULL,
  `postedtime` varchar(40) NOT NULL,
  `message` text NOT NULL,
  `status` varchar(50) NOT NULL DEFAULT 'active',
  `userid` varchar(50) NOT NULL,
  `companyid` varchar(100) NOT NULL,
  `smscount` int(11) NOT NULL,
  `messageId` int(11) NOT NULL,
  `response` text NOT NULL,
  `cost` int(11) NOT NULL,
  `bulkId` varchar(100) NOT NULL,
  `qty` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `smsconfig`
--

CREATE TABLE IF NOT EXISTS `smsconfig` (
  `id` int(30) NOT NULL,
  `username` text NOT NULL,
  `apikey` text NOT NULL,
  `from` varchar(50) NOT NULL,
  `link` text NOT NULL,
  `businessname` text NOT NULL,
  `contact` varchar(100) NOT NULL,
  `location` varchar(100) NOT NULL,
  `email` varchar(100) NOT NULL,
  `code` varchar(50) NOT NULL,
  `description` text NOT NULL,
  `contactperson` varchar(100) NOT NULL,
  `password` varchar(50) NOT NULL,
  `contact2` varchar(50) NOT NULL,
  `address` varchar(50) NOT NULL,
  `currencysymbol` varchar(100) NOT NULL,
  `tax1` varchar(100) NOT NULL,
  `tax1rate` varchar(100) NOT NULL,
  `tax2` varchar(100) NOT NULL,
  `tax2rate` varchar(100) NOT NULL,
  `website` varchar(100) NOT NULL,
  `returnpolicy` text NOT NULL,
  `logo` text NOT NULL,
  `paymenttypes` text NOT NULL,
  `country` varchar(50) NOT NULL,
  `totalsms` varchar(50) NOT NULL,
  `userid` varchar(50) NOT NULL,
  `updatedat` varchar(50) NOT NULL,
  `display1` varchar(5) NOT NULL,
  `display2` varchar(5) NOT NULL,
  `maindiscount` varchar(10) NOT NULL DEFAULT 'no',
  `receiptdescription` varchar(5) NOT NULL DEFAULT 'yes',
  `deadline` text NOT NULL,
  `tillno` text NOT NULL,
  `invoicedetails` text NOT NULL,
  `barcode` varchar(3) NOT NULL DEFAULT 'no',
  `deadlinedetails` text NOT NULL,
  `businesskey` text NOT NULL,
  `display` varchar(30) NOT NULL,
  `fromdate` varchar(30) NOT NULL,
  `todate` varchar(30) NOT NULL,
  `starttime` varchar(30) NOT NULL,
  `duetime` varchar(30) NOT NULL,
  `view` text NOT NULL,
  `receipt` varchar(50) NOT NULL,
  `mode` varchar(30) NOT NULL,
  `feedback` text NOT NULL,
  `sendfeedback` varchar(10) NOT NULL,
  `dublicate` varchar(10) NOT NULL,
  `smscompany` varchar(30) NOT NULL DEFAULT 'Infobip',
  `newuser` varchar(30) NOT NULL,
  `newpassword` varchar(30) NOT NULL,
  `senderid` varchar(30) NOT NULL,
  `leftoverview` text NOT NULL,
  `rightoverview` text NOT NULL,
  `assetaccount` varchar(50) NOT NULL,
  `salesaccount` varchar(50) NOT NULL,
  `expenseaccount` varchar(50) NOT NULL,
  `starthappyhour` varchar(20) NOT NULL,
  `endhappyhourse` varchar(20) NOT NULL,
  `statushappyhour` varchar(20) NOT NULL,
  `salesmethod` varchar(20) NOT NULL,
  `plot` int(11) NOT NULL DEFAULT '10',
  `defautpage` varchar(255) NOT NULL DEFAULT 'user/home',
  `ecommerce` varchar(10) NOT NULL DEFAULT 'deactivate',
  `landingpage` varchar(40) NOT NULL DEFAULT 'products',
  `path` text NOT NULL,
  `shortcode` text NOT NULL,
  `confirmationurl` text NOT NULL,
  `validationurl` text NOT NULL,
  `responseType` text NOT NULL,
  `consumer_key` text NOT NULL,
  `consumer_secret` text NOT NULL,
  `signature` text,
  `kitchen` varchar(30) NOT NULL DEFAULT 'no',
  `kitchenid` int(11) DEFAULT NULL,
  `receiptlogo` varchar(10) NOT NULL DEFAULT 'no',
  `bankcode` varchar(20) NOT NULL DEFAULT 'no',
  `menutype` varchar(50) NOT NULL DEFAULT 'Left',
  `hscode` varchar(20) NOT NULL DEFAULT 'YES',
  `smslogin` varchar(50) NOT NULL DEFAULT 'no',
  `servicecharge` varchar(20) NOT NULL DEFAULT '3',
  `displayservicecharge` varchar(20) NOT NULL DEFAULT 'no',
  `restricttill` varchar(20) DEFAULT 'no',
  `currency` varchar(20) NOT NULL DEFAULT 'no',
  `etims` varchar(20) NOT NULL DEFAULT 'no',
  `etimsonline` varchar(5) NOT NULL DEFAULT 'no'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `smsconfig`
--

INSERT INTO `smsconfig` (`id`, `username`, `apikey`, `from`, `link`, `businessname`, `contact`, `location`, `email`, `code`, `description`, `contactperson`, `password`, `contact2`, `address`, `currencysymbol`, `tax1`, `tax1rate`, `tax2`, `tax2rate`, `website`, `returnpolicy`, `logo`, `paymenttypes`, `country`, `totalsms`, `userid`, `updatedat`, `display1`, `display2`, `maindiscount`, `receiptdescription`, `deadline`, `tillno`, `invoicedetails`, `barcode`, `deadlinedetails`, `businesskey`, `display`, `fromdate`, `todate`, `starttime`, `duetime`, `view`, `receipt`, `mode`, `feedback`, `sendfeedback`, `dublicate`, `smscompany`, `newuser`, `newpassword`, `senderid`, `leftoverview`, `rightoverview`, `assetaccount`, `salesaccount`, `expenseaccount`, `starthappyhour`, `endhappyhourse`, `statushappyhour`, `salesmethod`, `plot`, `defautpage`, `ecommerce`, `landingpage`, `path`, `shortcode`, `confirmationurl`, `validationurl`, `responseType`, `consumer_key`, `consumer_secret`, `signature`, `kitchen`, `kitchenid`, `receiptlogo`, `bankcode`, `menutype`, `hscode`, `smslogin`, `servicecharge`, `displayservicecharge`, `restricttill`, `currency`, `etims`, `etimsonline`) VALUES
(1, '76', 'c8d1ec0b9d21d199d6d7514ce002b85fd3022037d31141cecf5ea57902320994f885c92064cc2bee019f87df642212ac30505551', 'Robisearch', '', '<H2 style="margin:0px;color:blue">ROBISEARCH LTD( SAMPLE) </H2>\r\nNAIROBI, KENYA,0716413386, www.robisearch.com\r\n</BR>COMPANY PIN: P1XXXXXXX\r\n\r\n\r\n', '254718667391', 'Nairobi Ngara', 'support@robisearch.com', 'ROBISEARCHPOS', 'Pay within 30days <br>\r\n', 'Robisearch Admin', 'e7bd1efe6cee0b56cf3b31d7fb5d01c7', '254708325411', '', 'KES', 'VAT', '16', 'levy', '2', 'RO0001', '  Goods once sold will not be returned ,Prices inclusive of vat where applicable, <br>We appreciate your valuable business', '2024-07-241721832816.png', '1', '1 ', '', '1', '2025-03-24 13:22:35', 'yes', 'no', 'no', 'no', 'SDzIKYaYtATpfo/EVFraDIMElgxm/eUKz0a0klDAj0P+A/5YZ5yTrQWev2ai8fPM1orwdAvt52eA7684zE6GEQ==', 'PAYBILL: 522522 AC NO:1171211120', '<B> INVOICE TERMS</B></BR>\r\n1. This invoice is payable on demand unless terms specified.<br>\r\n2. Good once sold are not returnable<br>\r\n3. Ownership of the above good will be vested in Dimetrica limited until fully paid\r\n', 'no', 'You have not paid your pending balance or you have not paid your annual maintenance fees. Kindly send the payment through our Playbill no:522522  and Acc No:1171211120 for you to continue enjoying our services.', 'dapFCCqFcxQJfvN5tMAHmqbmcmeSLRLlBlmXYlcJTDzyZzGKQ8M0KHEfmpM25ha3TdyMAth3RhBhJQCzqvmCegF187bTioP6TpwzPZlMA7yC/fpSSOZ9EY55t/G8vGlR', '100', 'Current', 'Current', '00:00', '23:59', 'Restaurant', 'One Without Automatic Logout', 'Before Receipt', 'thank you for shopping with us. ', 'yes', 'yes', 'Advanta', 'ROBISEARCHLTD', 'Robisearch@2018', 'SMSCHAPCHAP', '<b>About Robisearch Ltd</b><br>\r\nRobisearch Ltd is an ICT youth based company that begun in 2011 as a result of innovations that transform lives globally. We are innovator behind Biometric lands system and digital birth card system that could help fight terrorisms. We are a member of the Nairobi Chambers (KNCCI) organization and AGPO. We offer attachment /internships opportunity to 60 students on annual basis as a way of creating job opportunity to youths in Kenya. We have great experience in dealing with customers having handled over 500 customers’ country wide. Some of services are:<p class="text-center">\r\n<h3>OUR SERVICES</h3>\r\nBelow are some of our services and solutions:<br>\r\n•	Biometric system for schools and business : Price= From Ksh.50,000<br>\r\n•	Bulk Sms services(Bulksms ChapChap) : Price= From Ksh.5,000<br>\r\n•	Best Erp/Point of Sale/ Inventory Control Software : Price= From Ksh.50,000<br>\r\n•	Property Management software that conforms to the Big 4 government agenda. : Price= From Ksh.100,000<br>\r\n\r\nNOTE: You can give discount upto 20% of the above selling price.\r\n</p>\r\n\r\n<p>\r\nOur Vision<br>\r\nTransforming the world through innovation<br>\r\nOur Mission<br>\r\nTo be the best ICT company offering innovate services globally.\r\nBiometric Systems rely mostly on information about a person to identify the person in such a way that specific data about unique biological traits are relied upon to work effectively.\r\nThe biometric School attendance system. This is an innovative system which is used by schools to track student movements. The system sends sms alert to the parents whenever students checks in and out of the schools. The system is also used as digital register to record students and staff attendances instead of manual signing of class register as well as managing payroll based on attendance. The system is also being used by business owners to get sms alert whenever employees checks in and out of the office. There are so many schools using this system and we recommend the same to any school and business. Some of them are JKUAT,Pumwani Hosiptal, Loreto Girls Kiambu,Mandera boys, Kwale boys, Kipsigis girls. Kericho TTC etc.\r\n<br>\r\n\r\n<br>Point of Sale(ROBIPOS) manages sales for any sales related businesses. This system helps business owners to track their daily sales and profit using their phones wherever they are. It has Lipa Na MPESA real time and sms alert. Sms is automatically sends to the computer whenever customer pays through any mobile payment. Also the customer gets automatic thank you message upon payment.\r\nThis system has been integrated with many modules that manages day to day transactions in our client’s business. The system has many functionalities but not limited to the following: Inventory tracking, sales management, customer management, products management, receipting, human resource, accounting module and can real-time Lipa na Mpesa module. \r\nThe sales management system can be used in diverse businesses like wholesales, boutiques, electrical and electronics, minimarts, supermarkets, cosmetic shops, jeweler shops and any retail businesses.\r\nOur POS system helps <br>\r\n?	Improve our customer’s experience by serving them in a fast and convenient way<br>\r\n?	Management of stock<br>\r\n?	 Presentable documents such as receipts, orders and reports are issued to customers of our clients.<br>\r\n?	Storage and retrieval of documents is made easier<br>\r\n?	Accuracy; scanning is more accurate than punching in numbers from a sticker or expecting the cashier to manually remember what each item costs.\r\n?	Analysis ;<br>\r\n?	 POS let our clients manage inventory, flag items for reorder and analyze sales patterns.<br>\r\nBulksms ChapChap is a bulk sms software which can be used to send sms/reminders to customers. It’s the most feasible and essential strategy to target a mass audience as a marketing and communication tool. Whether launching a new product or would like a nationwide announcement, or whether you want to remind people of a certain meeting or deal, our bulk sms manages all the requirements from start to finish.  The system can be used by anybody to manage their dairies since you can store all your appointments and activities then system will send you sms whenever that time reaches.  \r\nOur bulk sms comes with advantages such as;<br>\r\n?	Instant delivery of messages<br>\r\n?	 Flexible platform that can send over 10,000 sms once<br>\r\n?	The systems comes with a reminder to notify one of any pending deals<br>\r\n?	Sms can be stored, easily forwarded or tracked using delivery reports<br>\r\n?	Lower cost and time to be delivered than a phone call.<br>\r\n?	It is more reliable than emailing as the chances of the recipient reading the message is very high<br>\r\n?	Limitless market potential<br>\r\nOur clients include;Bulk sms: JKUAT, Elimu TV, Uwezo Fund, Moi forces Academy<br>\r\nBiometric: JKUAT, Orero Boys, Kayole High school<br>\r\nPoint of sale: Luna Park, Victoria Falls, Garrison Teachers College, Ndumia Group<br>\r\nwww.robisearch.com<br>\r\nhttp://www.bulksmschapchap.com/<br>\r\n\r\n\r\n</p>\r\n<p>\r\nFeel free to contact us: <br>\r\n<a href="http://www.robisearch.com/">www.robisearch.com</a> <br>\r\nEmail :info@robisearch.com<br>\r\nPhone: 0780655987<br>\r\nPhone: 0716413386<br>\r\nOur Offices are Nairobi-Nara and   Juja town<br>\r\n Experiencing any problem? Send an email to  <a href="mailto:info@robisearch.com">info@robisearch.com</a>  or <a href="mailto:robisearch@gmail.com">robisearch@gmail.com</a>  or follow  us on <a href="https://www.facebook.com/Robiearch?fref=ts">Facebook</a> or  on <a href="https://twitter.com/robisearch">Twitter.</a> . You can also view more on <a href="http://www.robisearch.com/"> our website</a>\r\n\r\n</p></b>\r\n   ', '<B> Reseller/Agent Benefits</b>\r\n	<br>\r\n1. Earn Commisiions <br>\r\n2. Get best offers <br>\r\n3. Get Incentives <br>\r\n	\r\n					<B> Reseller/Agent Categories</b>\r\n					We pay according to your effort hence it is based on commission.<br>\r\n					1. You will get 10% of what you sell on Monthly basis if you make between 1-5 sales per month.<br>\r\n					2. You will get 20% of what you sell on Monthly basis if you make between 6-20 sales per month.<br>\r\n					3. You will get 30% of what you sell on Monthly basis if you make above 21 sales per month.<br>\r\n', '1110', '4000', '5500', '08:00', '10:00', 'no', 'General', 10, 'user/viewsales', 'deactivate', 'products', 'D:\\\\xampp\\\\htdocs\\\\ATT2000.mdb', '5017639', 'http://erp.robisearch.com/getpayment', 'http://erp.robisearch.com/getpayment/verifypayment', '763987b5a070372631fe9610e3a6c45ad96be9110f9390caa29b1db3983d0e8f', 'Ek12dMymcl3AtHSQIy4BAhUK5QLelZm2', 'mDIef2sGIDMqjcLv', 'From Robisearch LTD', 'no', 0, 'no', 'no', 'Both', 'no', 'no', '3', 'no', 'no', 'no', 'no', 'yes');

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

--
-- Table structure for table `smslogin`
--

CREATE TABLE IF NOT EXISTS `smslogin` (
  `id` int(10) NOT NULL,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `code` varchar(20) NOT NULL,
  `phone` varchar(20) NOT NULL,
  `status` varchar(10) NOT NULL DEFAULT 'active',
  `userid` int(10) NOT NULL,
  `fromtime` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `totime` datetime NOT NULL,
  `duration` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `smstemplate`
--

CREATE TABLE IF NOT EXISTS `smstemplate` (
  `id` int(11) NOT NULL,
  `name` varchar(50) NOT NULL,
  `description` text NOT NULL,
  `createdate` varchar(50) NOT NULL,
  `status` varchar(50) NOT NULL DEFAULT 'active',
  `userid` varchar(50) NOT NULL,
  `updatedate` varchar(50) NOT NULL,
  `companyid` varchar(100) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `smstemplate`
--

INSERT INTO `smstemplate` (`id`, `name`, `description`, `createdate`, `status`, `userid`, `updatedate`, `companyid`) VALUES
(1, 'Closing Day1', 'Your daughter has been released for December holiday today.1', '2020-04-25 09:20:01am', 'active', '1', '', '1'),
(2, 'Opening Day', 'Your Daughter Has Just Arrived To School ', '2019-02-23 10:17:16am', 'active', '1', '', '1'),
(3, 'Closing Day', 'Your daughter has been released for December holiday today.', '2018-10-24 05:51:21pm', 'active', '1', '', '1'),
(4, 'MIDTERM', 'Parents/Guardians who came for Thanks Giving day will be allowed to leave with their daughters for half-term, others will leave on 17/02/19.', '2023-08-31 06:03:22am', 'active', '1', '', '1'),
(5, 'Opening Day', 'Almost all the students turned up from April Holiday recess', '2019-04-30 04:30:08pm', 'active', '1', '', '1'),
(6, 'visitor sms', 'Wow! Thank you for visiting Robisearch LTD table at Mombasa SK Show.For POS,Biometrics,Digital Visitor book and Marketing:0716413386/ robisearch.com\r\n', '2023-09-09 04:59:01am', 'visitor', '1', '', '1'),
(7, 'GATEPASS', 'Thank for visiting us ..click here to give us any suggestion/complains :https://bijouhotel.robisearch.com/box', '2025-03-13 02:25:31pm', 'active', '1', '', '1');

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

--
-- Table structure for table `sms_in`
--

CREATE TABLE IF NOT EXISTS `sms_in` (
  `id` int(11) NOT NULL,
  `sms_text` varchar(1600) DEFAULT NULL,
  `sender_number` varchar(50) DEFAULT NULL,
  `sent_dt` datetime DEFAULT NULL,
  `code` varchar(15) NOT NULL,
  `amount` decimal(10,2) NOT NULL DEFAULT '0.00',
  `firstname` varchar(15) DEFAULT NULL,
  `lastname` varchar(15) DEFAULT NULL,
  `msisdn` varchar(50) DEFAULT '0',
  `used` int(5) NOT NULL DEFAULT '0',
  `exactime` datetime NOT NULL,
  `txn_time` varchar(50) DEFAULT NULL,
  `middlename` varchar(50) DEFAULT NULL,
  `account_number` varchar(50) DEFAULT NULL,
  `business_shortcode` varchar(50) DEFAULT NULL,
  `transactionType` varchar(30) DEFAULT NULL,
  `printed` int(5) NOT NULL DEFAULT '0',
  `OrgAccountBalance` decimal(10,2) NOT NULL,
  `branchid` int(11) DEFAULT '1'
) ENGINE=InnoDB AUTO_INCREMENT=35 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `sms_in`
--

INSERT INTO `sms_in` (`id`, `sms_text`, `sender_number`, `sent_dt`, `code`, `amount`, `firstname`, `lastname`, `msisdn`, `used`, `exactime`, `txn_time`, `middlename`, `account_number`, `business_shortcode`, `transactionType`, `printed`, `OrgAccountBalance`, `branchid`) VALUES
(1, NULL, 'defdae5349d9d357c2772 ***** 83066d423fe45cd075ff05', '2025-03-24 18:59:26', 'TCM9PEJR09', '95000.00', 'DAVID', NULL, '0', 2, '2025-03-24 18:59:26', '2025-03-24 18:59:26', NULL, '', '398732', 'Customer Merchant Payment', 0, '95000.00', 1),
(2, NULL, 'c7faf7e140eba2c37bca05aa377b362e7d35572e0ea9532d64', '2025-03-24 19:15:54', 'TCM4PIOU5W', '56000.00', 'susan', NULL, '0', 2, '2025-03-24 19:15:54', '2025-03-24 19:15:54', NULL, '', '398931', 'Customer Merchant Payment', 0, '56000.00', 1),
(3, NULL, 'e8e5501037016c4dedb2dffb22bd9b7f44a1de6e2b8b16b66d', '2025-03-22 19:33:35', 'TCM7PN9PXH', '81000.00', 'Dennis', NULL, '0', 2, '2025-03-22 19:33:35', '2025-03-22 19:33:35', NULL, '', '398732', 'Customer Merchant Payment', 0, '176000.00', 1),
(4, NULL, '6d9c2e4e21cb97f0a7c5dbdc23024343e242c0cf495de78be8', '2025-03-22 19:44:16', 'TCM5PQ2QL5', '400.00', 'Ruth', NULL, '0', 2, '2025-03-22 19:44:16', '2025-03-22 19:44:16', NULL, '', '398732', 'Customer Merchant Payment', 0, '176400.00', 1),
(5, NULL, 'a1ceaaccf633a07114054c7ab196dfd7c3d266d28c88b5c6e8', '2025-03-22 20:58:17', 'TCM3Q6GO47', '48920.00', 'JULIET', NULL, '0', 2, '2025-03-22 20:58:17', '2025-03-22 20:58:17', NULL, '', '398931', 'Customer Merchant Payment', 0, '104920.00', 1),
(6, NULL, '8535019f5dd5453df466c0d793a39d63556d709ccd640d798c', '2025-03-22 21:50:40', 'TCM4QEWW7I', '50000.00', 'Teresa', NULL, '0', 2, '2025-03-22 21:50:40', '2025-03-22 21:50:40', NULL, '', '398904', 'Customer Merchant Payment', 0, '50000.00', 1),
(7, NULL, 'bfcfcb0be8f9e00c0355ff56b6162c405fae57596cbd63c55b', '2025-03-23 11:39:02', 'TCN8RSZG2K', '71000.00', 'boniface', NULL, '0', 2, '2025-03-23 11:39:02', '2025-03-23 11:39:02', NULL, '', '398931', 'Customer Merchant Payment', 0, '71000.00', 1),
(8, NULL, '52d8f6040687d7134c51f5bb7caffef8e28adc2828a1ee9848', '2025-03-23 11:43:24', 'TCN0RTJ7EE', '30000.00', 'Fredrick', NULL, '0', 2, '2025-03-23 11:43:24', '2025-03-23 11:43:24', NULL, '', '398931', 'Customer Merchant Payment', 0, '101000.00', 1),
(9, NULL, '84b6c5ae8c2bc5c92b4672 ***** 5218d83a667d8487cc0f1', '2025-03-23 12:04:16', 'TCN5RW5J11', '52000.00', 'juliet', NULL, '0', 2, '2025-03-23 12:04:16', '2025-03-23 12:04:16', NULL, '', '398931', 'Customer Merchant Payment', 0, '153000.00', 1),
(10, NULL, 'e2898e8f8fa8bc2c3a60a51ef11750d9794232e1928c3127a0', '2025-03-23 12:17:09', 'TCN8RXRFD8', '52000.00', 'charles', NULL, '0', 2, '2025-03-23 12:17:09', '2025-03-23 12:17:09', NULL, '', '398732', 'Customer Merchant Payment', 0, '52000.00', 1),
(11, NULL, 'c5ee6fbc01cec773bfd165f099a7f5183735533a973e1a4dcc', '2025-03-23 12:20:02', 'TCN7RY4K8T', '45000.00', 'PAUL', NULL, '0', 2, '2025-03-23 12:20:02', '2025-03-23 12:20:02', NULL, '', '398732', 'Customer Merchant Payment', 0, '97000.00', 1),
(12, NULL, '77a1dcc384efecfa3590ea1d7f77832cb153192bc4f027b738', '2025-03-23 12:34:05', 'TCN2RZX66K', '51500.00', 'jedidah', NULL, '0', 2, '2025-03-23 12:34:05', '2025-03-23 12:34:05', NULL, '', '398931', 'Customer Merchant Payment', 0, '204500.00', 1),
(13, NULL, 'c7faf7e140eba2c37bca05aa377b362e7d35572e0ea9532d64', '2025-03-23 13:52:16', 'TCN6SAGPVG', '54000.00', 'susan', NULL, '0', 2, '2025-03-23 13:52:16', '2025-03-23 13:52:16', NULL, '', '398931', 'Customer Merchant Payment', 0, '258500.00', 1),
(14, NULL, '30761dfe23e90a5cd584a90c1596c910739cbcc0d43cf6a823', '2025-03-23 13:56:01', 'TCN5SB0GP5', '47000.00', 'STEPHEN', NULL, '0', 2, '2025-03-23 13:56:01', '2025-03-23 13:56:01', NULL, '', '398931', 'Customer Merchant Payment', 0, '305500.00', 1),
(15, NULL, '20e616496f80099dce58ca3038709afc862b183c7ddf3ebf1a', '2025-03-23 14:46:17', 'TCN8SI8WT8', '72000.00', 'PRISCA', NULL, '0', 2, '2025-03-23 14:46:17', '2025-03-23 14:46:17', NULL, '', '398931', 'Customer Merchant Payment', 0, '72000.00', 1),
(16, NULL, 'da777734345e862544b32e85f8f737ded98ae3862966d3597d', '2025-03-23 15:07:49', 'TCN3SLCHXH', '25000.00', 'Meshak', NULL, '0', 2, '2025-03-23 15:07:49', '2025-03-23 15:07:49', NULL, '', '398931', 'Customer Merchant Payment', 0, '97000.00', 1),
(17, NULL, '1e44e7d7415 ***** 3461b6d262d8de0e27f4e7d5bb9014fe', '2025-03-23 15:13:00', 'TCN5SM3HQJ', '73000.00', 'RUTH', NULL, '0', 2, '2025-03-23 15:13:00', '2025-03-23 15:13:00', NULL, '', '398732', 'Customer Merchant Payment', 0, '73000.00', 1),
(18, NULL, 'b94e03f9e2ce6fa33eec9fddace09aa14bb26f716f06c2f2b5', '2025-03-23 16:18:27', 'TCN5SVPO3T', '51000.00', 'assiah', NULL, '0', 2, '2025-03-23 16:18:27', '2025-03-23 16:18:27', NULL, '', '398931', 'Customer Merchant Payment', 0, '148000.00', 1),
(19, NULL, '6d9c2e4e21cb97f0a7c5dbdc23024343e242c0cf495de78be8', '2025-03-23 16:44:40', 'TCN8SZNPFW', '61000.00', 'Ruth', NULL, '0', 2, '2025-03-23 16:44:40', '2025-03-23 16:44:40', NULL, '', '398732', 'Customer Merchant Payment', 0, '134000.00', 1),
(20, NULL, 'a1ceaaccf633a07114054c7ab196dfd7c3d266d28c88b5c6e8', '2025-03-23 16:57:04', 'TCN8T1KOE0', '54000.00', 'JULIET', NULL, '0', 2, '2025-03-23 16:57:04', '2025-03-23 16:57:04', NULL, '', '398931', 'Customer Merchant Payment', 0, '54000.00', 1),
(21, NULL, '3673 ***** 952e5c86fe4335cebeaa9960da2c7fdd638bd06', '2025-03-23 16:59:42', 'TCN5T1ZQ59', '53000.00', 'DORCAS', NULL, '0', 2, '2025-03-23 16:59:42', '2025-03-23 16:59:42', NULL, '', '398732', 'Customer Merchant Payment', 0, '53000.00', 1),
(22, NULL, '1813813e8803d6f9cb7f59c143798970c1662f2fc2d30e0e96', '2025-03-23 17:35:28', 'TCN4T7RE20', '71100.00', 'teresa', NULL, '0', 2, '2025-03-23 17:35:28', '2025-03-23 17:35:28', NULL, '', '398931', 'Customer Merchant Payment', 0, '125100.00', 1),
(23, NULL, 'a3b35ca1c9978fa5a2c62d2df9606cb68274ac019c569d9079', '2025-03-23 17:55:58', 'TCN9TB77SR', '30000.00', 'MILKAH', NULL, '0', 2, '2025-03-23 17:55:58', '2025-03-23 17:55:58', NULL, '', '398931', 'Customer Merchant Payment', 0, '155100.00', 1),
(24, NULL, '81a51d75d6f2684a767a61ced139fb1152f7af5774b07780e0', '2025-03-23 18:38:58', 'TCN8TJB0CC', '79000.00', 'ISAAC', NULL, '0', 2, '2025-03-23 18:38:58', '2025-03-23 18:38:58', NULL, '', '398732', 'Customer Merchant Payment', 0, '132000.00', 1),
(25, NULL, '996a152d37c6b07392572174dc502772f5e7dd227e1daca32c', '2025-03-23 18:44:33', 'TCN1TKFM3H', '68000.00', 'BRIAN', NULL, '0', 2, '2025-03-23 18:44:33', '2025-03-23 18:44:33', NULL, '', '398732', 'Customer Merchant Payment', 0, '200000.00', 1),
(26, NULL, '3673 ***** 952e5c86fe4335cebeaa9960da2c7fdd638bd06', '2025-03-23 18:44:44', 'TCN7TKGVR9', '54000.00', 'DORCAS', NULL, '0', 2, '2025-03-23 18:44:44', '2025-03-23 18:44:44', NULL, '', '398732', 'Customer Merchant Payment', 0, '254000.00', 1),
(27, NULL, 'be970f11324dcf34bf9a9bf879784460d29830e5fabe1ee4fd', '2025-03-23 18:46:32', 'TCN8TKUGOY', '52120.00', 'john', NULL, '0', 2, '2025-03-23 18:46:32', '2025-03-23 18:46:32', NULL, '', '398931', 'Customer Merchant Payment', 0, '207220.00', 1),
(28, NULL, 'e7c4fc296c8802d8ff8928244ccadbc8788e70564a76491028', '2025-03-23 19:00:11', 'TCN9TNSABX', '46000.00', 'Simon', NULL, '0', 2, '2025-03-23 19:00:11', '2025-03-23 19:00:11', NULL, '', '398931', 'Customer Merchant Payment', 0, '253220.00', 1),
(29, NULL, '9b01fa3f4c661872666b71dd28af2150a56016a5adb59a3001', '2025-03-23 19:20:22', 'TCN9TSHC35', '31500.00', 'Patrick', NULL, '0', 2, '2025-03-23 19:20:22', '2025-03-23 19:20:22', NULL, '', '398931', 'Customer Merchant Payment', 0, '284720.00', 1),
(30, NULL, '9b01fa3f4c661872666b71dd28af2150a56016a5adb59a3001', '2025-03-23 19:23:25', 'TCN8TT7D96', '150.00', 'Patrick', NULL, '0', 2, '2025-03-23 19:23:25', '2025-03-23 19:23:25', NULL, '', '398931', 'Customer Merchant Payment', 0, '284870.00', 1),
(31, NULL, '92c3d9751 ***** 9716a92670e582eb5a87717e1cc08699e0', '2025-03-23 20:50:40', 'TCN0UB87V8', '32890.00', 'FREDRICK', NULL, '0', 2, '2025-03-23 20:50:40', '2025-03-23 20:50:40', NULL, '', '398931', 'Customer Merchant Payment', 0, '317760.00', 1),
(32, NULL, 'd5084e6edb7a955f6f481b208b76ab4c3631 ***** 134ac35', '2025-03-23 20:54:06', 'TCN5UBST57', '40070.00', 'hellen', NULL, '0', 2, '2025-03-23 20:54:06', '2025-03-23 20:54:06', NULL, '', '398931', 'Customer Merchant Payment', 0, '357830.00', 1),
(33, NULL, '0d30f83ea84f34965ee86660221c8053efbf0a70f06a42b971', '2025-03-23 21:20:53', 'TCN5UFU9U1', '108.00', 'JOSEPH', NULL, '0', 2, '2025-03-23 21:20:53', '2025-03-23 21:20:53', NULL, '', '398732', 'Customer Merchant Payment', 0, '254108.00', 1),
(34, NULL, '6d9c2e4e21cb97f0a7c5dbdc23024343e242c0cf495de78be8', '2025-03-23 22:18:45', 'TCN1UML3O1', '40000.00', 'Ruth', NULL, '0', 2, '2025-03-23 22:18:45', '2025-03-23 22:18:45', NULL, '', '398732', 'Customer Merchant Payment', 0, '294108.00', 1);

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

--
-- Table structure for table `splitbill`
--

CREATE TABLE IF NOT EXISTS `splitbill` (
  `id` int(30) NOT NULL,
  `type` varchar(30) NOT NULL,
  `userid` varchar(30) NOT NULL,
  `dateposted` varchar(50) NOT NULL,
  `batchid` varchar(50) NOT NULL,
  `invoice` varchar(30) NOT NULL,
  `companyid` int(11) NOT NULL,
  `branchid` int(11) NOT NULL,
  `batchno` int(11) NOT NULL,
  `description` text NOT NULL,
  `salesid` int(11) NOT NULL,
  `qty` decimal(10,2) DEFAULT NULL,
  `price` decimal(10,2) DEFAULT NULL,
  `originalinvoice` varchar(50) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `splitbillmaster`
--

CREATE TABLE IF NOT EXISTS `splitbillmaster` (
  `id` int(30) NOT NULL,
  `type` varchar(30) NOT NULL,
  `userid` varchar(30) NOT NULL,
  `dateposted` varchar(50) NOT NULL,
  `invoice` varchar(30) NOT NULL,
  `companyid` int(11) NOT NULL,
  `branch` int(11) NOT NULL,
  `batchno` int(11) NOT NULL,
  `description` text NOT NULL,
  `originalinvoice` varchar(50) DEFAULT NULL
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `splitbillmaster`
--

INSERT INTO `splitbillmaster` (`id`, `type`, `userid`, `dateposted`, `invoice`, `companyid`, `branch`, `batchno`, `description`, `originalinvoice`) VALUES
(1, 'merge', '1', '2025-02-17 15:07:40', '11739793924', 1, 1, 0, '', NULL);

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

--
-- Table structure for table `statement`
--

CREATE TABLE IF NOT EXISTS `statement` (
  `id` int(30) NOT NULL,
  `account` varchar(50) NOT NULL,
  `code` varchar(50) NOT NULL,
  `invoice` varchar(50) NOT NULL,
  `crateddate` varchar(30) NOT NULL,
  `debit` decimal(10,2) NOT NULL,
  `credit` decimal(10,2) NOT NULL,
  `balance` varchar(20) NOT NULL,
  `userid` varchar(20) NOT NULL,
  `companyid` varchar(20) NOT NULL,
  `paymentmethodes` varchar(10) NOT NULL,
  `description` text NOT NULL,
  `amount` varchar(30) NOT NULL,
  `branch` varchar(30) NOT NULL,
  `supplier` varchar(30) NOT NULL,
  `type` varchar(30) NOT NULL,
  `refno` varchar(30) NOT NULL,
  `vatable` varchar(30) NOT NULL,
  `vat` varchar(30) NOT NULL,
  `tax` varchar(30) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `status`
--

CREATE TABLE IF NOT EXISTS `status` (
  `id` int(11) NOT NULL,
  `name` varchar(45) DEFAULT NULL
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `status`
--

INSERT INTO `status` (`id`, `name`) VALUES
(1, 'New'),
(2, 'Waiting Approval'),
(3, 'Approved'),
(4, 'Rejected'),
(5, 'Pending'),
(6, 'Returned');

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

--
-- Table structure for table `stock`
--

CREATE TABLE IF NOT EXISTS `stock` (
  `id` int(11) NOT NULL,
  `code` varchar(50) NOT NULL,
  `open` decimal(10,2) NOT NULL,
  `added` decimal(10,2) NOT NULL,
  `total` decimal(10,2) NOT NULL,
  `sold` decimal(10,2) NOT NULL,
  `balance` decimal(10,2) NOT NULL,
  `price` decimal(10,2) NOT NULL,
  `totalamount` decimal(10,2) NOT NULL,
  `branchid` varchar(20) NOT NULL,
  `type` varchar(30) NOT NULL DEFAULT 'open',
  `userid` int(30) NOT NULL,
  `companyid` int(30) NOT NULL,
  `startdate` varchar(30) NOT NULL,
  `closedate` varchar(10) NOT NULL,
  `updatedby` int(10) NOT NULL,
  `postedtime` varchar(30) NOT NULL,
  `unsold` varchar(50) NOT NULL,
  `returned` varchar(30) NOT NULL,
  `shift` varchar(5) DEFAULT '1',
  `bprice` varchar(20) NOT NULL,
  `profit` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `stocktaking`
--

CREATE TABLE IF NOT EXISTS `stocktaking` (
  `id` int(10) NOT NULL,
  `code` varchar(50) NOT NULL,
  `open` decimal(10,2) NOT NULL,
  `added` decimal(10,2) NOT NULL,
  `balance` decimal(10,2) NOT NULL,
  `branchid` int(10) NOT NULL,
  `type` varchar(30) NOT NULL DEFAULT 'open',
  `userid` int(30) NOT NULL,
  `companyid` int(30) NOT NULL,
  `startdate` varchar(30) NOT NULL,
  `closedate` varchar(10) NOT NULL,
  `updatedby` int(10) NOT NULL,
  `postedtime` varchar(30) NOT NULL,
  `status` varchar(10) NOT NULL DEFAULT 'open',
  `maincategory` int(11) NOT NULL,
  `description` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `stocktakingstatus`
--

CREATE TABLE IF NOT EXISTS `stocktakingstatus` (
  `id` int(30) NOT NULL,
  `userid` varchar(30) NOT NULL,
  `timedone` varchar(50) NOT NULL,
  `ip` text NOT NULL,
  `companyid` int(11) NOT NULL,
  `startdate` date NOT NULL,
  `closedate` date NOT NULL,
  `updatedby` int(11) NOT NULL,
  `status` varchar(20) NOT NULL DEFAULT 'open',
  `maincategory` int(11) NOT NULL,
  `level` varchar(20) NOT NULL DEFAULT 'one',
  `type` varchar(20) NOT NULL DEFAULT 'branch',
  `branchid` int(5) NOT NULL DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `stocktypecodes`
--

CREATE TABLE IF NOT EXISTS `stocktypecodes` (
  `id` int(50) NOT NULL,
  `name` text NOT NULL,
  `code` varchar(50) NOT NULL,
  `description` text,
  `status` varchar(50) NOT NULL,
  `sort_order` varchar(50) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `stocktypecodes`
--

INSERT INTO `stocktypecodes` (`id`, `name`, `code`, `description`, `status`, `sort_order`) VALUES
(1, 'Import', '01', NULL, 'Y', '1'),
(2, 'Purchase', '02', NULL, 'Y', '2'),
(3, 'Return', '03', NULL, 'Y', '3'),
(4, 'Stock Movement', '04', NULL, 'Y', '4'),
(5, 'Processing', '05', NULL, 'Y', '5'),
(6, 'Adjustment', '06', NULL, 'Y', '6'),
(7, 'Sale', '11', NULL, 'Y', '11'),
(8, 'Return', '12', NULL, 'Y', '12'),
(9, 'Stock Movement', '13', NULL, 'Y', '13'),
(10, 'Processing', '14', NULL, 'Y', '14'),
(11, 'Discarding', '15', NULL, 'Y', '15'),
(12, 'Adjustment', '16', NULL, 'Y', '16');

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

--
-- Table structure for table `store`
--

CREATE TABLE IF NOT EXISTS `store` (
  `id` int(30) NOT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `category` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `supplier` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `code` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `description` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `tax_included` int(1) NOT NULL DEFAULT '0',
  `buyingprice` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `sellingprice` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0.00',
  `promoprice` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `wholesaleprice` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `start_date` date DEFAULT NULL,
  `end_date` date DEFAULT NULL,
  `reorderevel` int(50) DEFAULT NULL,
  `allow_alt_description` tinyint(1) NOT NULL,
  `is_serialized` tinyint(1) NOT NULL,
  `imgid` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `override_default_tax` int(1) NOT NULL DEFAULT '0',
  `is_service` int(1) NOT NULL DEFAULT '0',
  `deleted` int(1) NOT NULL DEFAULT '0',
  `qty` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `dateposted` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `userid` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `companyid` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `store` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `expdate` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `orderamount` text COLLATE utf8_unicode_ci NOT NULL,
  `shortname` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `status` varchar(30) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

--
-- Table structure for table `subcategory`
--

CREATE TABLE IF NOT EXISTS `subcategory` (
  `id` int(11) NOT NULL,
  `name` varchar(50) NOT NULL,
  `description` text NOT NULL,
  `createdate` varchar(50) NOT NULL,
  `status` varchar(50) NOT NULL DEFAULT 'active',
  `userid` varchar(50) NOT NULL,
  `updatedate` varchar(50) NOT NULL,
  `companyid` varchar(50) NOT NULL,
  `maincategory` varchar(30) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `suggestions`
--

CREATE TABLE IF NOT EXISTS `suggestions` (
  `id` int(50) NOT NULL,
  `title` varchar(60) NOT NULL,
  `description` text NOT NULL,
  `postedtime` varchar(60) NOT NULL,
  `userid` varchar(60) NOT NULL,
  `img_id` varchar(60) NOT NULL,
  `updatedtime` varchar(40) NOT NULL,
  `status` varchar(40) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `supervisor`
--

CREATE TABLE IF NOT EXISTS `supervisor` (
  `id` int(30) NOT NULL,
  `title` varchar(30) NOT NULL,
  `department` varchar(50) NOT NULL,
  `startdate` varchar(30) NOT NULL,
  `enddate` varchar(30) NOT NULL,
  `description` text NOT NULL,
  `employeeno` int(30) NOT NULL,
  `createdate` varchar(30) NOT NULL,
  `userid` int(30) NOT NULL,
  `status` varchar(30) NOT NULL DEFAULT 'active',
  `companyid` int(11) NOT NULL DEFAULT '1',
  `branchid` int(11) NOT NULL DEFAULT '1'
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `supervisor`
--

INSERT INTO `supervisor` (`id`, `title`, `department`, `startdate`, `enddate`, `description`, `employeeno`, `createdate`, `userid`, `status`, `companyid`, `branchid`) VALUES
(1, '2', '1', '2025-01-23', '2025-01-23', '', 1, '2025-01-23 05:38:16am', 1, 'active', 1, 1);

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

--
-- Table structure for table `tables`
--

CREATE TABLE IF NOT EXISTS `tables` (
  `id` int(11) NOT NULL,
  `name` varchar(50) NOT NULL,
  `description` text NOT NULL,
  `createdate` varchar(50) NOT NULL,
  `status` varchar(50) NOT NULL DEFAULT 'active',
  `userid` varchar(50) NOT NULL,
  `updatedate` varchar(50) NOT NULL,
  `companyid` varchar(50) NOT NULL,
  `branchid` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `tags`
--

CREATE TABLE IF NOT EXISTS `tags` (
  `id` int(10) unsigned NOT NULL,
  `slug` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `meta_keyword` text COLLATE utf8_unicode_ci NOT NULL,
  `meta_description` text COLLATE utf8_unicode_ci NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

--
-- Table structure for table `taskdata`
--

CREATE TABLE IF NOT EXISTS `taskdata` (
  `id` int(30) NOT NULL,
  `description` text,
  `date` varchar(50) NOT NULL,
  `taskid` varchar(50) DEFAULT NULL,
  `userid` varchar(50) NOT NULL,
  `status` varchar(50) NOT NULL DEFAULT 'Submitted',
  `companyid` varchar(100) NOT NULL,
  `challanges` text NOT NULL,
  `recommendation` text NOT NULL,
  `updatedby` int(11) NOT NULL,
  `comments` text NOT NULL,
  `updateddate` varchar(30) NOT NULL,
  `mykey` varchar(50) DEFAULT NULL,
  `exactdate` varchar(20) NOT NULL,
  `branchid` int(11) NOT NULL,
  `achieved` varchar(30) NOT NULL,
  `updatedat` varchar(30) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `tasks`
--

CREATE TABLE IF NOT EXISTS `tasks` (
  `id` int(30) NOT NULL,
  `taskowner` varchar(100) NOT NULL,
  `subject` text NOT NULL,
  `fromdate` varchar(100) NOT NULL,
  `todate` varchar(100) NOT NULL,
  `contact` text NOT NULL,
  `status` varchar(100) NOT NULL,
  `controller` varchar(100) NOT NULL,
  `priority` text NOT NULL,
  `notification` varchar(100) NOT NULL DEFAULT 'yes',
  `repeated` varchar(100) NOT NULL DEFAULT 'no',
  `comments` text,
  `dateposted` varchar(50) NOT NULL,
  `userid` varchar(50) NOT NULL,
  `category` varchar(50) NOT NULL,
  `companyid` varchar(100) NOT NULL,
  `branchid` int(11) NOT NULL,
  `updatedat` varchar(30) NOT NULL,
  `updatedby` int(11) NOT NULL,
  `measurements` varchar(30) NOT NULL DEFAULT 'Pc',
  `target` varchar(30) NOT NULL,
  `achived` varchar(30) NOT NULL,
  `exactdate` varchar(30) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `tasktype`
--

CREATE TABLE IF NOT EXISTS `tasktype` (
  `id` int(11) NOT NULL,
  `name` varchar(50) NOT NULL,
  `description` text NOT NULL,
  `createdate` varchar(50) NOT NULL,
  `status` varchar(50) NOT NULL DEFAULT 'active',
  `userid` varchar(50) NOT NULL,
  `updatedate` varchar(50) NOT NULL,
  `companyid` varchar(100) NOT NULL,
  `mode` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `taskupdates`
--

CREATE TABLE IF NOT EXISTS `taskupdates` (
  `id` int(50) NOT NULL,
  `name` varchar(50) NOT NULL,
  `description` text NOT NULL,
  `date` varchar(50) NOT NULL,
  `nextstep` varchar(50) NOT NULL,
  `userid` varchar(50) NOT NULL,
  `status` varchar(50) NOT NULL DEFAULT 'newstock',
  `type` text NOT NULL,
  `companyid` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `taxcodes`
--

CREATE TABLE IF NOT EXISTS `taxcodes` (
  `id` int(50) NOT NULL,
  `company_id` varchar(50) NOT NULL,
  `name` varchar(70) NOT NULL,
  `tax_code` varchar(50) NOT NULL,
  `sort_order` varchar(50) NOT NULL,
  `rate` varchar(50) NOT NULL,
  `rate_code2` varchar(50) NOT NULL,
  `description` text NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `taxcodes`
--

INSERT INTO `taxcodes` (`id`, `company_id`, `name`, `tax_code`, `sort_order`, `rate`, `rate_code2`, `description`) VALUES
(1, '1', 'A-Exempt', 'A', '1', '0', 'A-EX', 'A-Exempt'),
(2, '1', 'B-VAT 16%', 'B', '2', '16', 'B-16%', 'B-VAT 16%'),
(3, '1', 'C-Zero Rated', 'C', '3', '0', 'TAX C', 'C-Zero Rated'),
(4, '1', 'E-VAT 8%', 'E', '4', '8', 'E-8%', 'E-VAT 8%'),
(5, '1', 'D-Non VAT', 'D', '5', '0', 'TAX D', 'D-Non VAT');

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

--
-- Table structure for table `tillcollection`
--

CREATE TABLE IF NOT EXISTS `tillcollection` (
  `id` int(11) NOT NULL,
  `dateposted` varchar(100) NOT NULL,
  `addedby` int(100) NOT NULL,
  `approvedby` int(30) NOT NULL,
  `amount` decimal(10,2) NOT NULL,
  `description` text NOT NULL,
  `userid` int(20) NOT NULL,
  `companyid` int(20) NOT NULL,
  `branch` int(11) NOT NULL,
  `collecteddate` varchar(30) NOT NULL,
  `short` decimal(10,2) NOT NULL,
  `mode` varchar(20) NOT NULL,
  `status` varchar(20) NOT NULL DEFAULT 'Submitted',
  `remarks` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `tills`
--

CREATE TABLE IF NOT EXISTS `tills` (
  `id` int(11) NOT NULL,
  `name` varchar(50) NOT NULL,
  `description` text NOT NULL,
  `createdate` varchar(50) NOT NULL,
  `status` varchar(50) NOT NULL DEFAULT 'active',
  `userid` varchar(50) NOT NULL,
  `updatedate` varchar(50) NOT NULL,
  `companyid` varchar(50) NOT NULL,
  `branchid` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `timer`
--

CREATE TABLE IF NOT EXISTS `timer` (
  `id` int(11) NOT NULL,
  `startdate` varchar(30) NOT NULL,
  `enddate` varchar(50) NOT NULL,
  `amount` varchar(50) NOT NULL,
  `status` varchar(50) NOT NULL DEFAULT 'active',
  `createdat` varchar(50) NOT NULL,
  `userid` varchar(50) NOT NULL,
  `companyid` varchar(50) NOT NULL,
  `hour` varchar(50) NOT NULL,
  `station` varchar(20) NOT NULL,
  `description` text NOT NULL,
  `product` varchar(50) NOT NULL,
  `unit` varchar(20) NOT NULL,
  `duration` varchar(50) DEFAULT NULL,
  `customer` varchar(50) NOT NULL,
  `invoice` varchar(50) DEFAULT NULL,
  `branchid` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `towns`
--

CREATE TABLE IF NOT EXISTS `towns` (
  `id` int(20) NOT NULL,
  `code` varchar(40) COLLATE utf8_unicode_ci NOT NULL,
  `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `description` text COLLATE utf8_unicode_ci,
  `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `towns`
--

INSERT INTO `towns` (`id`, `code`, `name`, `description`, `created_at`, `updated_at`) VALUES
(1, '1', 'Central', 'Central', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(2, '2', 'Coast', 'Coast', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(3, '3', 'Eastern', 'Eastern', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(4, '4', 'Nairobi', 'Nairobi', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(5, '5', 'North Eastern', 'North Eastern', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(6, '6', 'Nyanza', 'Nyanza', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(7, '7', 'Rift valley', 'Rift valley', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(8, '8', 'Western', 'Western', '0000-00-00 00:00:00', '0000-00-00 00:00:00');

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

--
-- Table structure for table `traffic`
--

CREATE TABLE IF NOT EXISTS `traffic` (
  `id` int(11) NOT NULL,
  `postedtime` varchar(30) NOT NULL,
  `link` text NOT NULL,
  `ip` varchar(50) NOT NULL,
  `description` text
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `transtypecodes`
--

CREATE TABLE IF NOT EXISTS `transtypecodes` (
  `id` int(11) NOT NULL,
  `name` text NOT NULL,
  `code` varchar(50) NOT NULL,
  `description` text,
  `status` varchar(20) NOT NULL,
  `sort_order` varchar(50) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `transtypecodes`
--

INSERT INTO `transtypecodes` (`id`, `name`, `code`, `description`, `status`, `sort_order`) VALUES
(1, 'Copy', 'C', 'Copy', 'Y', '1'),
(2, 'Normal', 'N', 'Normal', 'Y', '2'),
(3, 'Proforma', 'P', 'Proforma', 'Y', '3'),
(4, 'Training', 'T', 'Training', 'Y', '4');

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

--
-- Table structure for table `types`
--

CREATE TABLE IF NOT EXISTS `types` (
  `id` int(11) NOT NULL,
  `name` varchar(50) NOT NULL,
  `description` text NOT NULL,
  `createdate` varchar(50) NOT NULL,
  `companyid` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `uom`
--

CREATE TABLE IF NOT EXISTS `uom` (
  `id` int(11) NOT NULL,
  `name` varchar(50) NOT NULL,
  `description` text NOT NULL,
  `createdate` varchar(50) NOT NULL,
  `status` varchar(50) NOT NULL DEFAULT 'active',
  `userid` varchar(50) NOT NULL,
  `updatedate` varchar(50) NOT NULL,
  `companyid` varchar(100) NOT NULL,
  `code` varchar(30) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `uom`
--

INSERT INTO `uom` (`id`, `name`, `description`, `createdate`, `status`, `userid`, `updatedate`, `companyid`, `code`) VALUES
(1, 'Piece', 'pc', '2020-06-22 06:18:43', 'active', '1', '', '1', 'pcs'),
(2, 'No Units', 'No Units', '2018-03-29 06:40:47am', 'active', '1', '', '1', 'NOU'),
(3, 'Dozen', 'Dozen', '2018-03-29 06:42:29am', 'active', '1', '', '1', 'dz'),
(4, 'Bar', 'Bar', '2018-03-29 06:43:15am', 'active', '1', '', '1', 'BR'),
(5, 'Packets', 'Packets', '2018-03-29 06:36:08am', 'active', '1', '', '1', 'pcks'),
(6, 'Kilograms', 'Kilograms', '2018-03-29 07:14:40am', 'active', '1', '', '1', 'Kg'),
(7, 'Litre', 'Litre', '2018-03-29 07:14:57am', 'active', '1', '', '1', 'ltr'),
(8, 'Half ', 'hlf', '2018-03-30 12:34:29pm', 'active', '1', '', '1', 'hlf'),
(9, 'sheet', '', '2018-03-30 12:35:21pm', 'active', '1', '', '1', 'sht'),
(10, 'Bale', '', '2018-03-30 12:40:40pm', 'active', '1', '', '1', 'BL'),
(11, 'Box', '', '2018-03-30 12:40:58pm', 'active', '1', '', '1', 'bx'),
(12, 'full', '', '2018-08-04 11:35:29am', 'active', '1', '', '1', 'full'),
(13, 'refill', '', '2018-08-04 11:36:06am', 'active', '1', '', '1', 'ref'),
(14, '1/4', '', '2018-11-20 09:14:48', 'active', '1', '', '1', '16'),
(15, 'Feet', '', '2020-06-09 10:21:14', 'active', '1', '', '1', 'ft'),
(16, 'PIPES', '', '2020-06-09 19:12:05', 'active', '1', '', '1', 'PIPES'),
(17, 'Monthly', '', '2020-06-26 07:19:19', 'active', '1', '', '1', 'Monthly'),
(18, 'Daily', '', '2020-06-26 07:19:31', 'active', '1', '', '1', 'Daily'),
(19, 'Weekly', '', '2020-06-26 07:19:44', 'active', '1', '', '1', 'Weekly'),
(20, 'Yearly', '', '2020-06-26 07:19:56', 'active', '1', '', '1', 'Yearly'),
(21, 'Roll', 'Roll', '2020-06-26 07:19:56', 'active', '1', '', '1', 'roll'),
(22, 'Meters', 'Meters', '2020-06-26 07:19:56', 'active', '1', '', '1', 'mtr');

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

--
-- Table structure for table `uomproducts`
--

CREATE TABLE IF NOT EXISTS `uomproducts` (
  `id` int(11) NOT NULL,
  `uom` varchar(50) NOT NULL,
  `createdate` varchar(50) NOT NULL,
  `status` varchar(50) NOT NULL DEFAULT 'active',
  `userid` varchar(50) NOT NULL,
  `updatedate` varchar(50) NOT NULL,
  `companyid` varchar(100) NOT NULL,
  `code` varchar(30) NOT NULL,
  `branch` varchar(30) NOT NULL,
  `qty` decimal(10,4) NOT NULL,
  `price` varchar(30) NOT NULL,
  `brice` varchar(30) NOT NULL,
  `unitprice` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `upgrade`
--

CREATE TABLE IF NOT EXISTS `upgrade` (
  `id` int(11) NOT NULL,
  `name` varchar(45) DEFAULT NULL,
  `companyid` int(11) NOT NULL DEFAULT '1',
  `description` text NOT NULL,
  `version` varchar(50) NOT NULL,
  `package` varchar(50) NOT NULL,
  `exactdate` varchar(50) NOT NULL,
  `status` varchar(30) NOT NULL DEFAULT 'active',
  `userid` int(10) DEFAULT NULL,
  `entrydate` varchar(30) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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

--
-- Table structure for table `utilityinvoice`
--

CREATE TABLE IF NOT EXISTS `utilityinvoice` (
  `id` int(40) NOT NULL,
  `plotno` varchar(60) NOT NULL,
  `houseno` varchar(40) NOT NULL,
  `tenantid` varchar(100) NOT NULL,
  `amount` varchar(100) NOT NULL,
  `type` varchar(100) NOT NULL,
  `description` varchar(100) NOT NULL,
  `month` varchar(100) NOT NULL,
  `year` varchar(100) NOT NULL,
  `createdat` varchar(100) NOT NULL,
  `updatedat` varchar(100) NOT NULL,
  `userid` varchar(100) NOT NULL,
  `duedate` varchar(40) NOT NULL,
  `paymentstatus` varchar(40) NOT NULL DEFAULT 'receipt',
  `paymentmode` varchar(40) NOT NULL,
  `paymentcode` varchar(100) NOT NULL,
  `transactioncode` varchar(100) NOT NULL,
  `approval` varchar(30) NOT NULL DEFAULT 'new',
  `paid` varchar(40) NOT NULL,
  `balance` varchar(40) NOT NULL DEFAULT '0',
  `companyid` varchar(100) NOT NULL DEFAULT '1',
  `commission` decimal(10,2) NOT NULL,
  `vat` decimal(10,2) NOT NULL,
  `paymentdate` varchar(30) NOT NULL,
  `branchid` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `voucher`
--

CREATE TABLE IF NOT EXISTS `voucher` (
  `id` int(30) NOT NULL,
  `value` decimal(10,2) NOT NULL,
  `customer` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  `deleted` int(1) NOT NULL DEFAULT '0',
  `status` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `description` text COLLATE utf8_unicode_ci NOT NULL,
  `userid` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `dateposted` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `dateupdated` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `companyid` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `cardnumber` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
  `type` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `branchid` int(11) NOT NULL,
  `amount` decimal(10,2) NOT NULL,
  `mode` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `invoice` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `originalamount` decimal(10,2) NOT NULL,
  `fromdate` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
  `business` text COLLATE utf8_unicode_ci NOT NULL,
  `todate` varchar(30) COLLATE utf8_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

--
-- Table structure for table `waterrates`
--

CREATE TABLE IF NOT EXISTS `waterrates` (
  `id` int(11) NOT NULL,
  `start` decimal(10,2) NOT NULL,
  `end` decimal(10,2) NOT NULL,
  `amount` decimal(10,2) NOT NULL,
  `branchid` int(11) NOT NULL,
  `companyid` int(11) NOT NULL,
  `status` varchar(20) NOT NULL DEFAULT 'active',
  `category` varchar(20) NOT NULL,
  `userid` int(11) NOT NULL,
  `flatrate` varchar(50) NOT NULL DEFAULT 'no'
) ENGINE=InnoDB AUTO_INCREMENT=34 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `waterrates`
--

INSERT INTO `waterrates` (`id`, `start`, `end`, `amount`, `branchid`, `companyid`, `status`, `category`, `userid`, `flatrate`) VALUES
(1, '0.00', '6.00', '450.00', 1, 1, 'active', 'residential', 1, 'yes'),
(2, '6.00', '20.00', '115.00', 1, 1, 'active', 'residential', 1, 'no'),
(3, '20.00', '50.00', '150.00', 1, 1, 'active', 'residential', 1, 'no'),
(4, '50.00', '100.00', '185.00', 1, 1, 'active', 'residential', 1, 'no'),
(5, '100.00', '300.00', '230.00', 1, 1, 'active', 'residential', 1, 'no'),
(6, '300.00', '1000000.00', '300.00', 1, 1, 'active', 'residential', 1, 'no'),
(11, '0.00', '6.00', '450.00', 1, 1, 'active', 'commercial', 1, 'yes'),
(12, '6.00', '20.00', '115.00', 1, 1, 'active', 'commercial', 1, 'no'),
(13, '20.00', '50.00', '150.00', 1, 1, 'active', 'commercial', 1, 'no'),
(14, '50.00', '100.00', '185.00', 1, 1, 'active', 'commercial', 1, 'no'),
(15, '100.00', '300.00', '230.00', 1, 1, 'active', 'commercial', 1, 'no'),
(16, '300.00', '1000000.00', '300.00', 1, 1, 'active', 'commercial', 1, 'no'),
(21, '0.00', '1000000.00', '35.00', 1, 1, 'active', 'standpipes', 1, 'no'),
(31, '0.00', '600.00', '90.00', 1, 1, 'active', 'schools', 1, 'no'),
(32, '600.00', '1200.00', '115.00', 1, 1, 'active', 'schools', 1, 'no'),
(33, '1200.00', '1000000.00', '130.00', 1, 1, 'active', 'schools', 1, 'no');

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

--
-- Table structure for table `waterresidentialgovernment`
--

CREATE TABLE IF NOT EXISTS `waterresidentialgovernment` (
  `id` int(11) NOT NULL,
  `start` decimal(10,2) NOT NULL,
  `end` decimal(10,2) NOT NULL,
  `amount` decimal(10,2) NOT NULL,
  `branchid` int(11) NOT NULL,
  `companyid` int(11) NOT NULL,
  `status` varchar(20) NOT NULL DEFAULT 'active',
  `category` varchar(20) NOT NULL,
  `userid` int(11) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=34 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `waterresidentialgovernment`
--

INSERT INTO `waterresidentialgovernment` (`id`, `start`, `end`, `amount`, `branchid`, `companyid`, `status`, `category`, `userid`) VALUES
(1, '0.00', '6.00', '450.00', 1, 1, 'active', 'residential', 1),
(2, '7.00', '20.00', '115.00', 1, 1, 'active', 'residential', 1),
(3, '21.00', '50.00', '150.00', 1, 1, 'active', 'residential', 1),
(4, '51.00', '100.00', '185.00', 1, 1, 'active', 'residential', 1),
(5, '101.00', '300.00', '230.00', 1, 1, 'active', 'residential', 1),
(6, '301.00', '1000000.00', '300.00', 1, 1, 'active', 'residential', 1),
(11, '0.00', '6.00', '450.00', 1, 1, 'active', 'commercial', 1),
(12, '7.00', '20.00', '115.00', 1, 1, 'active', 'commercial', 1),
(13, '21.00', '50.00', '150.00', 1, 1, 'active', 'commercial', 1),
(14, '51.00', '100.00', '185.00', 1, 1, 'active', 'commercial', 1),
(15, '101.00', '300.00', '230.00', 1, 1, 'active', 'commercial', 1),
(16, '301.00', '1000000.00', '300.00', 1, 1, 'active', 'commercial', 1),
(21, '0.00', '1000000.00', '35.00', 1, 1, 'active', 'standpipes', 1),
(31, '0.00', '600.00', '90.00', 1, 1, 'active', 'schools', 1),
(32, '601.00', '1200.00', '115.00', 1, 1, 'active', 'schools', 1),
(33, '1201.00', '1000000.00', '130.00', 1, 1, 'active', 'schools', 1);

--
-- Indexes for dumped tables
--

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

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

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

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

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

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

--
-- Indexes for table `agent`
--
ALTER TABLE `agent`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `idno` (`idno`);

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

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

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

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

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

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

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

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

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

--
-- Indexes for table `assignbranches`
--
ALTER TABLE `assignbranches`
  ADD PRIMARY KEY (`id`),
  ADD KEY `contract` (`branchid`),
  ADD KEY `employee` (`employeeno`),
  ADD KEY `type` (`status`);

--
-- Indexes for table `assigntask`
--
ALTER TABLE `assigntask`
  ADD PRIMARY KEY (`id`),
  ADD KEY `contract` (`branchid`),
  ADD KEY `employee` (`employeeid`),
  ADD KEY `type` (`status`);

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

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

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

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

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

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

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

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

--
-- Indexes for table `bookroom`
--
ALTER TABLE `bookroom`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `id` (`id`);

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

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

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

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

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

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

--
-- Indexes for table `bulkreservation`
--
ALTER TABLE `bulkreservation`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `id` (`id`);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

--
-- Indexes for table `dailycharges`
--
ALTER TABLE `dailycharges`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `myinvoice` (`myinvoice`);

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

--
-- Indexes for table `dailytasks`
--
ALTER TABLE `dailytasks`
  ADD PRIMARY KEY (`id`),
  ADD KEY `contract` (`branchid`),
  ADD KEY `type` (`status`);

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

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

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

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

--
-- Indexes for table `debitcredit`
--
ALTER TABLE `debitcredit`
  ADD PRIMARY KEY (`id`),
  ADD KEY `id` (`id`,`account`,`code`,`userid`,`branch`);

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

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

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

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

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

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

--
-- Indexes for table `district`
--
ALTER TABLE `district`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `code` (`code`);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

--
-- Indexes for table `groupleavedays`
--
ALTER TABLE `groupleavedays`
  ADD PRIMARY KEY (`id`),
  ADD KEY `contract` (`group`),
  ADD KEY `employee` (`employeeno`),
  ADD KEY `type` (`type`);

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

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

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

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

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

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

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

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

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

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

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

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

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

--
-- Indexes for table `leaves`
--
ALTER TABLE `leaves`
  ADD PRIMARY KEY (`id`),
  ADD KEY `changed_by` (`updatedby`),
  ADD KEY `change_date` (`updateddate`);

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

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

--
-- Indexes for table `loyalitycards`
--
ALTER TABLE `loyalitycards`
  ADD PRIMARY KEY (`id`),
  ADD KEY `deleted` (`deleted`),
  ADD KEY `phppos_giftcards_ibfk_1` (`customer_id`);

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

--
-- Indexes for table `mainmenu`
--
ALTER TABLE `mainmenu`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `name_lang_key` (`name`);

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

--
-- Indexes for table `mergedmpesa`
--
ALTER TABLE `mergedmpesa`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `code` (`code`);

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

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

--
-- Indexes for table `modules`
--
ALTER TABLE `modules`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `name_lang_key` (`name`);

--
-- Indexes for table `modulesactions`
--
ALTER TABLE `modulesactions`
  ADD PRIMARY KEY (`actionid`,`moduleid`),
  ADD KEY `phppos_modules_actions_ibfk_1` (`moduleid`);

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

--
-- Indexes for table `mpesasales`
--
ALTER TABLE `mpesasales`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `code` (`code`);

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

--
-- Indexes for table `newstock`
--
ALTER TABLE `newstock`
  ADD PRIMARY KEY (`id`),
  ADD KEY `id` (`id`,`userid`,`invoice_number`,`type`,`item_id`,`invoice`,`branchid`);

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

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

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

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

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

--
-- Indexes for table `offdays`
--
ALTER TABLE `offdays`
  ADD PRIMARY KEY (`id`),
  ADD KEY `type` (`type`),
  ADD KEY `contract` (`groupid`);

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

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

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

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

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

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

--
-- Indexes for table `password_resets`
--
ALTER TABLE `password_resets`
  ADD KEY `password_resets_email_index` (`email`),
  ADD KEY `password_resets_token_index` (`token`);

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

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

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

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

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

--
-- Indexes for table `payroll`
--
ALTER TABLE `payroll`
  ADD PRIMARY KEY (`id`),
  ADD KEY `first_name` (`type`),
  ADD KEY `last_name` (`designation`),
  ADD KEY `email` (`paytype`),
  ADD KEY `phppos_people_ibfk_1` (`dailysalary`);

--
-- Indexes for table `people`
--
ALTER TABLE `people`
  ADD PRIMARY KEY (`id`),
  ADD KEY `first_name` (`firstname`),
  ADD KEY `last_name` (`lastname`),
  ADD KEY `email` (`email`),
  ADD KEY `phppos_people_ibfk_1` (`image_id`);

--
-- Indexes for table `peopleregistration`
--
ALTER TABLE `peopleregistration`
  ADD PRIMARY KEY (`id`),
  ADD KEY `first_name` (`firstname`),
  ADD KEY `last_name` (`lastname`),
  ADD KEY `email` (`email`),
  ADD KEY `phppos_people_ibfk_1` (`image_id`);

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

--
-- Indexes for table `permissions`
--
ALTER TABLE `permissions`
  ADD PRIMARY KEY (`moduleid`,`userid`),
  ADD KEY `person_id` (`userid`);

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

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

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

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

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

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

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

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

--
-- Indexes for table `productlist`
--
ALTER TABLE `productlist`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `code` (`code`,`branch`),
  ADD KEY `phppos_items_ibfk_1` (`supplier`),
  ADD KEY `name` (`name`),
  ADD KEY `deleted` (`deleted`),
  ADD KEY `phppos_items_ibfk_2` (`imgid`),
  ADD KEY `id` (`id`,`name`,`description`,`code`,`hscode`),
  ADD KEY `id_2` (`id`,`name`,`description`,`code`,`hscode`);

--
-- Indexes for table `products`
--
ALTER TABLE `products`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `item_number` (`code`),
  ADD KEY `phppos_items_ibfk_1` (`supplier`),
  ADD KEY `name` (`name`),
  ADD KEY `deleted` (`deleted`),
  ADD KEY `phppos_items_ibfk_2` (`imgid`),
  ADD KEY `id` (`id`,`name`,`code`,`description`,`hscode`),
  ADD KEY `id_2` (`id`,`name`,`code`,`description`,`hscode`);

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

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

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

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

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

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

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

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

--
-- Indexes for table `purchaseorder`
--
ALTER TABLE `purchaseorder`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `invoice` (`invoice`);

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

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

--
-- Indexes for table `quotation`
--
ALTER TABLE `quotation`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `invoice` (`invoice`);

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

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

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

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

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

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

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

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

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

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

--
-- Indexes for table `rolepermissions`
--
ALTER TABLE `rolepermissions`
  ADD PRIMARY KEY (`moduleid`,`userid`),
  ADD KEY `person_id` (`userid`);

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

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

--
-- Indexes for table `roomcharges`
--
ALTER TABLE `roomcharges`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `roomid` (`roomid`,`plotno`,`chargeid`);

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

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

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

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

--
-- Indexes for table `sales`
--
ALTER TABLE `sales`
  ADD PRIMARY KEY (`id`),
  ADD KEY `id` (`id`,`userid`,`invoice`);

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

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

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

--
-- Indexes for table `sales_holding`
--
ALTER TABLE `sales_holding`
  ADD PRIMARY KEY (`id`),
  ADD KEY `id` (`userid`,`invoice`);

--
-- Indexes for table `sales_order`
--
ALTER TABLE `sales_order`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `myinvoice` (`myinvoice`);

--
-- Indexes for table `sales_ordercancelled`
--
ALTER TABLE `sales_ordercancelled`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `myinvoice` (`myinvoice`);

--
-- Indexes for table `sales_orderholding`
--
ALTER TABLE `sales_orderholding`
  ADD PRIMARY KEY (`id`),
  ADD KEY `id` (`id`,`invoice`,`code`,`userid`);

--
-- Indexes for table `sales_orderkitchen`
--
ALTER TABLE `sales_orderkitchen`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `myinvoice` (`myinvoice`);

--
-- Indexes for table `sales_orderraw`
--
ALTER TABLE `sales_orderraw`
  ADD PRIMARY KEY (`id`),
  ADD KEY `id` (`id`,`invoice`,`code`,`userid`);

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

--
-- Indexes for table `serials`
--
ALTER TABLE `serials`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `serial` (`serial`);

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

--
-- Indexes for table `setting`
--
ALTER TABLE `setting`
  ADD PRIMARY KEY (`name`);

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

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

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

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

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

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

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

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

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

--
-- Indexes for table `stocktaking`
--
ALTER TABLE `stocktaking`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `code` (`code`,`branchid`,`startdate`);

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

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

--
-- Indexes for table `store`
--
ALTER TABLE `store`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `item_number` (`code`),
  ADD KEY `phppos_items_ibfk_1` (`supplier`),
  ADD KEY `name` (`name`),
  ADD KEY `deleted` (`deleted`),
  ADD KEY `phppos_items_ibfk_2` (`imgid`);

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

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

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

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

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

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

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

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

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

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

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

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

--
-- Indexes for table `timer`
--
ALTER TABLE `timer`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `invoice` (`invoice`);

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

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

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

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

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

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

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

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

--
-- Indexes for table `voucher`
--
ALTER TABLE `voucher`
  ADD PRIMARY KEY (`id`),
  ADD KEY `deleted` (`deleted`),
  ADD KEY `phppos_giftcards_ibfk_1` (`customer`);

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

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

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `accounttype`
--
ALTER TABLE `accounttype`
  MODIFY `id` int(10) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `activityloggs`
--
ALTER TABLE `activityloggs`
  MODIFY `id` int(30) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `adjustmentcodes`
--
ALTER TABLE `adjustmentcodes`
  MODIFY `id` int(50) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT for table `admintable`
--
ALTER TABLE `admintable`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=33;
--
-- AUTO_INCREMENT for table `advance`
--
ALTER TABLE `advance`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `advancepayment`
--
ALTER TABLE `advancepayment`
  MODIFY `id` int(30) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `alerts`
--
ALTER TABLE `alerts`
  MODIFY `id` int(100) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `allcurrencies`
--
ALTER TABLE `allcurrencies`
  MODIFY `id` int(10) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=80;
--
-- AUTO_INCREMENT for table `alldocuments`
--
ALTER TABLE `alldocuments`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `allpayments`
--
ALTER TABLE `allpayments`
  MODIFY `id` int(50) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `approvals`
--
ALTER TABLE `approvals`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `asignrooms`
--
ALTER TABLE `asignrooms`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `assessment`
--
ALTER TABLE `assessment`
  MODIFY `id` int(20) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `assets`
--
ALTER TABLE `assets`
  MODIFY `id` int(30) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `assignbranches`
--
ALTER TABLE `assignbranches`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `assigntask`
--
ALTER TABLE `assigntask`
  MODIFY `id` int(30) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `attendance`
--
ALTER TABLE `attendance`
  MODIFY `id` int(100) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `backup`
--
ALTER TABLE `backup`
  MODIFY `id` int(20) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `bankcodes`
--
ALTER TABLE `bankcodes`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=48;
--
-- AUTO_INCREMENT for table `banks`
--
ALTER TABLE `banks`
  MODIFY `id` int(50) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `batchlist`
--
ALTER TABLE `batchlist`
  MODIFY `id` int(30) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT for table `beds`
--
ALTER TABLE `beds`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `blog`
--
ALTER TABLE `blog`
  MODIFY `id` int(50) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `blogs`
--
ALTER TABLE `blogs`
  MODIFY `id` int(50) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `bookroom`
--
ALTER TABLE `bookroom`
  MODIFY `id` int(20) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `branch`
--
ALTER TABLE `branch`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `branchlist`
--
ALTER TABLE `branchlist`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `brands`
--
ALTER TABLE `brands`
  MODIFY `id` int(50) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `budget`
--
ALTER TABLE `budget`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `bulkdispatch`
--
ALTER TABLE `bulkdispatch`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `bulkhouse`
--
ALTER TABLE `bulkhouse`
  MODIFY `id` int(40) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `bulkreservation`
--
ALTER TABLE `bulkreservation`
  MODIFY `id` int(20) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT for table `callcenter`
--
ALTER TABLE `callcenter`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `category`
--
ALTER TABLE `category`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `charges`
--
ALTER TABLE `charges`
  MODIFY `id` int(20) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=20;
--
-- AUTO_INCREMENT for table `checkin`
--
ALTER TABLE `checkin`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `cheque`
--
ALTER TABLE `cheque`
  MODIFY `id` int(50) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `collection`
--
ALTER TABLE `collection`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `complain`
--
ALTER TABLE `complain`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `computers`
--
ALTER TABLE `computers`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `constants`
--
ALTER TABLE `constants`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `contact`
--
ALTER TABLE `contact`
  MODIFY `id` int(50) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `contactdetails`
--
ALTER TABLE `contactdetails`
  MODIFY `id` int(50) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `countrycodes`
--
ALTER TABLE `countrycodes`
  MODIFY `id` int(50) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=253;
--
-- AUTO_INCREMENT for table `county`
--
ALTER TABLE `county`
  MODIFY `id` int(40) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=48;
--
-- AUTO_INCREMENT for table `currency`
--
ALTER TABLE `currency`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=40;
--
-- AUTO_INCREMENT for table `currencycodes`
--
ALTER TABLE `currencycodes`
  MODIFY `id` int(50) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=180;
--
-- AUTO_INCREMENT for table `customedproductcategory`
--
ALTER TABLE `customedproductcategory`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `customer`
--
ALTER TABLE `customer`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `customerfiscalyear`
--
ALTER TABLE `customerfiscalyear`
  MODIFY `id` int(40) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `customersupplierbalance`
--
ALTER TABLE `customersupplierbalance`
  MODIFY `id` int(40) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `dailycharges`
--
ALTER TABLE `dailycharges`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `dailycollections`
--
ALTER TABLE `dailycollections`
  MODIFY `id` int(40) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `dailytasks`
--
ALTER TABLE `dailytasks`
  MODIFY `id` int(30) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `damages`
--
ALTER TABLE `damages`
  MODIFY `id` int(10) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `deals`
--
ALTER TABLE `deals`
  MODIFY `id` int(50) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `dealsfeedback`
--
ALTER TABLE `dealsfeedback`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `dealstatus`
--
ALTER TABLE `dealstatus`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT for table `debitcredit`
--
ALTER TABLE `debitcredit`
  MODIFY `id` int(30) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `delivery`
--
ALTER TABLE `delivery`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `department`
--
ALTER TABLE `department`
  MODIFY `id` int(50) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `depositrefunds`
--
ALTER TABLE `depositrefunds`
  MODIFY `id` int(100) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `device`
--
ALTER TABLE `device`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `discount`
--
ALTER TABLE `discount`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `distribution`
--
ALTER TABLE `distribution`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `documents`
--
ALTER TABLE `documents`
  MODIFY `id` int(50) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `doorlock`
--
ALTER TABLE `doorlock`
  MODIFY `id` int(20) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `email_accounts`
--
ALTER TABLE `email_accounts`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `employeecharges`
--
ALTER TABLE `employeecharges`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=11;
--
-- AUTO_INCREMENT for table `employeepayments`
--
ALTER TABLE `employeepayments`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `etiminitialization`
--
ALTER TABLE `etiminitialization`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `etimsactivations`
--
ALTER TABLE `etimsactivations`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `evaluation`
--
ALTER TABLE `evaluation`
  MODIFY `id` int(20) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `events`
--
ALTER TABLE `events`
  MODIFY `id` int(50) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `expenses`
--
ALTER TABLE `expenses`
  MODIFY `id` int(50) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `faqs`
--
ALTER TABLE `faqs`
  MODIFY `id` int(50) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `fingers`
--
ALTER TABLE `fingers`
  MODIFY `id` int(100) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `fiscalyear`
--
ALTER TABLE `fiscalyear`
  MODIFY `id` int(30) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `followups`
--
ALTER TABLE `followups`
  MODIFY `id` int(30) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `gatepass`
--
ALTER TABLE `gatepass`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `glaccounts`
--
ALTER TABLE `glaccounts`
  MODIFY `id` int(30) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=221;
--
-- AUTO_INCREMENT for table `glfiscalyear`
--
ALTER TABLE `glfiscalyear`
  MODIFY `id` int(40) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `glgroups`
--
ALTER TABLE `glgroups`
  MODIFY `id` int(30) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=35;
--
-- AUTO_INCREMENT for table `grouping`
--
ALTER TABLE `grouping`
  MODIFY `id` int(50) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `groupleavedays`
--
ALTER TABLE `groupleavedays`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=17;
--
-- AUTO_INCREMENT for table `house`
--
ALTER TABLE `house`
  MODIFY `id` int(100) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `housekeeping`
--
ALTER TABLE `housekeeping`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `insurance`
--
ALTER TABLE `insurance`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `invoice`
--
ALTER TABLE `invoice`
  MODIFY `id` int(40) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `itemclassification`
--
ALTER TABLE `itemclassification`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=1001;
--
-- AUTO_INCREMENT for table `itemstatuscodes`
--
ALTER TABLE `itemstatuscodes`
  MODIFY `id` int(50) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `itemtypecodes`
--
ALTER TABLE `itemtypecodes`
  MODIFY `id` int(50) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `journal`
--
ALTER TABLE `journal`
  MODIFY `id` int(50) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `labels`
--
ALTER TABLE `labels`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `labour`
--
ALTER TABLE `labour`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `landlord`
--
ALTER TABLE `landlord`
  MODIFY `id` int(40) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `lease`
--
ALTER TABLE `lease`
  MODIFY `id` int(10) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `leavegroup`
--
ALTER TABLE `leavegroup`
  MODIFY `id` int(10) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `leaves`
--
ALTER TABLE `leaves`
  MODIFY `id` int(30) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `leavetypes`
--
ALTER TABLE `leavetypes`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `loggs`
--
ALTER TABLE `loggs`
  MODIFY `id` int(20) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `loyalitycards`
--
ALTER TABLE `loyalitycards`
  MODIFY `id` int(30) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `maincategory`
--
ALTER TABLE `maincategory`
  MODIFY `id` int(10) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `mainservices`
--
ALTER TABLE `mainservices`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT for table `mergedmpesa`
--
ALTER TABLE `mergedmpesa`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `message`
--
ALTER TABLE `message`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `meterreading`
--
ALTER TABLE `meterreading`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `mpesasales`
--
ALTER TABLE `mpesasales`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `nation`
--
ALTER TABLE `nation`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=253;
--
-- AUTO_INCREMENT for table `newstock`
--
ALTER TABLE `newstock`
  MODIFY `id` int(50) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `newupgrade`
--
ALTER TABLE `newupgrade`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT for table `nhif`
--
ALTER TABLE `nhif`
  MODIFY `id` int(50) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `nhif2`
--
ALTER TABLE `nhif2`
  MODIFY `id` int(50) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=19;
--
-- AUTO_INCREMENT for table `noticelist`
--
ALTER TABLE `noticelist`
  MODIFY `id` int(50) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `nssf`
--
ALTER TABLE `nssf`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `offdays`
--
ALTER TABLE `offdays`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `offtypes`
--
ALTER TABLE `offtypes`
  MODIFY `id` int(10) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `openorders`
--
ALTER TABLE `openorders`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `orderlist`
--
ALTER TABLE `orderlist`
  MODIFY `id` int(30) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `outgoingstock`
--
ALTER TABLE `outgoingstock`
  MODIFY `id` int(50) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `packagingcodes`
--
ALTER TABLE `packagingcodes`
  MODIFY `id` int(50) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=53;
--
-- AUTO_INCREMENT for table `parceldelivery`
--
ALTER TABLE `parceldelivery`
  MODIFY `id` int(10) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `paye`
--
ALTER TABLE `paye`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `paymentcodes`
--
ALTER TABLE `paymentcodes`
  MODIFY `id` int(50) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT for table `paymentmethodes`
--
ALTER TABLE `paymentmethodes`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT for table `payments`
--
ALTER TABLE `payments`
  MODIFY `id` int(100) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `paymentsection`
--
ALTER TABLE `paymentsection`
  MODIFY `id` int(40) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=17;
--
-- AUTO_INCREMENT for table `payroll`
--
ALTER TABLE `payroll`
  MODIFY `id` int(100) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `people`
--
ALTER TABLE `people`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=13;
--
-- AUTO_INCREMENT for table `peopleregistration`
--
ALTER TABLE `peopleregistration`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `periods`
--
ALTER TABLE `periods`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT for table `permissionsactions`
--
ALTER TABLE `permissionsactions`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=45191;
--
-- AUTO_INCREMENT for table `plot`
--
ALTER TABLE `plot`
  MODIFY `id` int(20) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `plotcharges`
--
ALTER TABLE `plotcharges`
  MODIFY `id` int(100) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `post`
--
ALTER TABLE `post`
  MODIFY `id` int(10) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `postrecharge`
--
ALTER TABLE `postrecharge`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `printers`
--
ALTER TABLE `printers`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `productcategory`
--
ALTER TABLE `productcategory`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `productcategorybox`
--
ALTER TABLE `productcategorybox`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `productlist`
--
ALTER TABLE `productlist`
  MODIFY `id` int(30) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `products`
--
ALTER TABLE `products`
  MODIFY `id` int(30) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `productsgrouping`
--
ALTER TABLE `productsgrouping`
  MODIFY `id` int(50) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `projects`
--
ALTER TABLE `projects`
  MODIFY `id` int(30) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `projectsbudget`
--
ALTER TABLE `projectsbudget`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `projectsbudgettasks`
--
ALTER TABLE `projectsbudgettasks`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `projectstask`
--
ALTER TABLE `projectstask`
  MODIFY `id` int(30) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `proposal`
--
ALTER TABLE `proposal`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `purchasecodes`
--
ALTER TABLE `purchasecodes`
  MODIFY `id` int(50) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `purchaseorder`
--
ALTER TABLE `purchaseorder`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `purchaseorderlist`
--
ALTER TABLE `purchaseorderlist`
  MODIFY `id` int(30) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `quantitycodes`
--
ALTER TABLE `quantitycodes`
  MODIFY `id` int(50) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=44;
--
-- AUTO_INCREMENT for table `quotation`
--
ALTER TABLE `quotation`
  MODIFY `id` int(30) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT for table `reasons`
--
ALTER TABLE `reasons`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `receipt`
--
ALTER TABLE `receipt`
  MODIFY `id` int(40) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `recharge`
--
ALTER TABLE `recharge`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `refundreasoncodes`
--
ALTER TABLE `refundreasoncodes`
  MODIFY `id` int(50) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=14;
--
-- AUTO_INCREMENT for table `renewals`
--
ALTER TABLE `renewals`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `rentalpaymentmethodes`
--
ALTER TABLE `rentalpaymentmethodes`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=17;
--
-- AUTO_INCREMENT for table `report`
--
ALTER TABLE `report`
  MODIFY `id` int(50) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `requisition`
--
ALTER TABLE `requisition`
  MODIFY `id` int(30) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `requisitionitems`
--
ALTER TABLE `requisitionitems`
  MODIFY `id` int(30) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `rolepermissionsactions`
--
ALTER TABLE `rolepermissionsactions`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=572;
--
-- AUTO_INCREMENT for table `roles`
--
ALTER TABLE `roles`
  MODIFY `id` int(20) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `roomcharges`
--
ALTER TABLE `roomcharges`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT for table `roomcollection`
--
ALTER TABLE `roomcollection`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `roomsales`
--
ALTER TABLE `roomsales`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=10;
--
-- AUTO_INCREMENT for table `salary`
--
ALTER TABLE `salary`
  MODIFY `id` int(20) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `salarycharges`
--
ALTER TABLE `salarycharges`
  MODIFY `id` int(20) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=31;
--
-- AUTO_INCREMENT for table `sales`
--
ALTER TABLE `sales`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `salesreading`
--
ALTER TABLE `salesreading`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `salestatuscodes`
--
ALTER TABLE `salestatuscodes`
  MODIFY `id` int(50) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `sales_holding`
--
ALTER TABLE `sales_holding`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `sales_order`
--
ALTER TABLE `sales_order`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `sales_ordercancelled`
--
ALTER TABLE `sales_ordercancelled`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `sales_orderholding`
--
ALTER TABLE `sales_orderholding`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `sales_orderkitchen`
--
ALTER TABLE `sales_orderkitchen`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `sales_orderraw`
--
ALTER TABLE `sales_orderraw`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=44;
--
-- AUTO_INCREMENT for table `sales_reading`
--
ALTER TABLE `sales_reading`
  MODIFY `id` int(30) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `serials`
--
ALTER TABLE `serials`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `serialstocktaking`
--
ALTER TABLE `serialstocktaking`
  MODIFY `id` int(10) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `sms`
--
ALTER TABLE `sms`
  MODIFY `id` int(30) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `smstemplate`
--
ALTER TABLE `smstemplate`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT for table `sms_in`
--
ALTER TABLE `sms_in`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=35;
--
-- AUTO_INCREMENT for table `splitbill`
--
ALTER TABLE `splitbill`
  MODIFY `id` int(30) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `splitbillmaster`
--
ALTER TABLE `splitbillmaster`
  MODIFY `id` int(30) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `statement`
--
ALTER TABLE `statement`
  MODIFY `id` int(30) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `status`
--
ALTER TABLE `status`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `stock`
--
ALTER TABLE `stock`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `stocktaking`
--
ALTER TABLE `stocktaking`
  MODIFY `id` int(10) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `stocktakingstatus`
--
ALTER TABLE `stocktakingstatus`
  MODIFY `id` int(30) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `stocktypecodes`
--
ALTER TABLE `stocktypecodes`
  MODIFY `id` int(50) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=13;
--
-- AUTO_INCREMENT for table `store`
--
ALTER TABLE `store`
  MODIFY `id` int(30) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `subcategory`
--
ALTER TABLE `subcategory`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `suggestions`
--
ALTER TABLE `suggestions`
  MODIFY `id` int(50) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `supervisor`
--
ALTER TABLE `supervisor`
  MODIFY `id` int(30) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `tables`
--
ALTER TABLE `tables`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `tags`
--
ALTER TABLE `tags`
  MODIFY `id` int(10) unsigned NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `taskdata`
--
ALTER TABLE `taskdata`
  MODIFY `id` int(30) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `tasks`
--
ALTER TABLE `tasks`
  MODIFY `id` int(30) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `tasktype`
--
ALTER TABLE `tasktype`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `taskupdates`
--
ALTER TABLE `taskupdates`
  MODIFY `id` int(50) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `taxcodes`
--
ALTER TABLE `taxcodes`
  MODIFY `id` int(50) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `tillcollection`
--
ALTER TABLE `tillcollection`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `tills`
--
ALTER TABLE `tills`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `timer`
--
ALTER TABLE `timer`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `traffic`
--
ALTER TABLE `traffic`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `transtypecodes`
--
ALTER TABLE `transtypecodes`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `types`
--
ALTER TABLE `types`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `uom`
--
ALTER TABLE `uom`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=23;
--
-- AUTO_INCREMENT for table `uomproducts`
--
ALTER TABLE `uomproducts`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `upgrade`
--
ALTER TABLE `upgrade`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `utilityinvoice`
--
ALTER TABLE `utilityinvoice`
  MODIFY `id` int(40) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `voucher`
--
ALTER TABLE `voucher`
  MODIFY `id` int(30) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `waterrates`
--
ALTER TABLE `waterrates`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=34;
--
-- AUTO_INCREMENT for table `waterresidentialgovernment`
--
ALTER TABLE `waterresidentialgovernment`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=34;
/*!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 */;
