-- phpMyAdmin SQL Dump
-- version 4.4.14
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Jun 20, 2023 at 08:39 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 `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) 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 AUTO_INCREMENT=9 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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


--
-- Indexes for dumped tables
--

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

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `people`
--
ALTER TABLE `people`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=9;
/*!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 */;
