-- phpMyAdmin SQL Dump
-- version 4.4.14
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Jun 17, 2023 at 08:48 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 `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',
  `currency` varchar(20) DEFAULT NULL,
  `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,
  `updatedid` int(20) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Indexes for dumped tables
--

--
-- Indexes for table `bookroom`
--
ALTER TABLE `bookroom`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `id` (`id`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `bookroom`
--
ALTER TABLE `bookroom`
  MODIFY `id` int(20) NOT NULL AUTO_INCREMENT;
/*!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 */;
