-- phpMyAdmin SQL Dump
-- version 4.4.14
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Feb 05, 2023 at 08:31 PM
-- 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 `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
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `renewals`
--

INSERT INTO `renewals` (`id`, `name`, `description`, `createdate`, `status`, `userid`, `updatedate`, `companyid`, `invoice`, `computerno`, `fromdate`, `todate`, `receiptno`, `duration`, `phone`, `extensiontype`) VALUES
(1, 'Counter', 'Counter', '2022-09-14 06:30:04', 'active', '1', '', '1', 'Counter', '', '', NULL, '', 0, NULL, ''),
(2, 'James Mwangi', 'ssss', '2023-02-04 08:31:20', 'Ready', '1', '', '1', '', 'B0-22-7A-ED-77-F6', '2023-02-17', '2023-02-01', '', 0, '0718667391', ''),
(3, 'James Mwangi', 'dff', '2023-02-04 08:54:26', 'active', '1', '', '1', '', 'B0-22-7A-ED-77-F6d', '2023-02-17', '2024-02-17', '', 1, 'recevire074334', 'Renewal'),
(4, 'James Mwangi', 'bgfg', '2023-02-04 09:16:21', 'Submitted', '1', '', '1', '', 'B0-22-7A-ED-77-F6d', '2023-02-04', '2024-02-04', '', 1, '254725652962', 'Renewal'),
(5, 'James Mwangi', 'ss', '2023-02-04 09:22:05', 'Submitted', '1', '', '1', '', 'B0-22-7A-ED-77-F6', '2023-02-18', '2024-02-18', '', 2, '0718667392', 'Renewal');

--
-- Indexes for dumped tables
--

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

--
-- AUTO_INCREMENT for dumped tables
--

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