-- phpMyAdmin SQL Dump
-- version 4.3.11
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Dec 28, 2016 at 02:46 PM
-- Server version: 5.6.24
-- PHP Version: 5.6.8

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 utf8 */;

--
-- Database: `sps`
--

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

--
-- Table structure for table `sps_transactions`
--

CREATE TABLE IF NOT EXISTS `sps_transactions` (
  `id` int(20) NOT NULL,
  `barcode` int(20) NOT NULL,
  `in_time` datetime NOT NULL,
  `out_time` datetime NOT NULL,
  `vehicle_type` bigint(12) NOT NULL,
  `base_fare` float(10,2) NOT NULL,
  `charges` float(10,2) NOT NULL,
  `total_time` int(20) NOT NULL,
  `payment_mode` varchar(255) NOT NULL,
  `payment_amount` float(10,2) NOT NULL,
  `payment_discount` float(10,2) NOT NULL,
  `payment_discount_type` varchar(255) NOT NULL,
  `vouchers` varchar(255) NOT NULL,
  `membership_id` int(20) NOT NULL,
  `ingate` bigint(20) NOT NULL,
  `outgate` bigint(20) NOT NULL,
  `in_userid` bigint(20) NOT NULL,
  `out_userid` bigint(20) NOT NULL,
  `location_id` bigint(20) NOT NULL,
  `area_id` bigint(20) NOT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `sps_transactions`
--

INSERT INTO `sps_transactions` (`id`, `barcode`, `in_time`, `out_time`, `vehicle_type`, `base_fare`, `charges`, `total_time`, `payment_mode`, `payment_amount`, `payment_discount`, `payment_discount_type`, `vouchers`, `membership_id`, `ingate`, `outgate`, `in_userid`, `out_userid`, `location_id`, `area_id`, `created_at`, `updated_at`, `deleted_at`) VALUES
(1, 852010102, '2016-12-14 00:00:00', '2016-12-14 12:00:00', 1, 2.00, 1440.00, 720, '', 1440.00, 0.00, '', '', 1, 0, 0, 0, 0, 0, 0, '2016-12-27 19:46:36', '2016-12-28 13:23:22', NULL),
(2, 12001010, '2016-12-14 00:00:00', '2016-12-14 12:00:00', 2, 2.00, 1440.00, 720, '', 1440.00, 0.00, '', '', 1, 0, 0, 0, 0, 0, 0, '2016-12-27 19:51:19', '2016-12-28 13:23:26', NULL),
(3, 120010101, '2016-12-14 00:00:00', '2016-12-14 12:00:00', 11, 2.00, 1440.00, 720, '', 1440.00, 0.00, '', '', 1, 0, 0, 0, 0, 0, 0, '2016-12-27 19:51:31', '2016-12-28 13:23:29', NULL),
(4, 98552210, '2016-12-14 00:00:00', '2016-12-14 12:00:00', 8, 2.00, 1440.00, 720, '', 1440.00, 0.00, '', '', 1, 0, 0, 0, 0, 0, 0, '2016-12-27 19:52:22', '2016-12-28 13:23:31', NULL),
(5, 101420122, '2016-12-14 00:00:00', '0000-00-00 00:00:00', 2, 0.00, 0.00, 0, '', 0.00, 0.00, '', '', 1, 0, 0, 0, 0, 0, 0, '2016-12-27 19:52:57', '2016-12-28 13:23:37', NULL),
(6, 10020123, '2016-12-14 08:10:00', '0000-00-00 00:00:00', 1, 0.00, 0.00, 0, '', 0.00, 0.00, '', '', 1, 0, 0, 0, 0, 0, 0, '2016-12-27 20:09:30', '2016-12-28 13:43:15', NULL);

--
-- Indexes for dumped tables
--

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

--
-- AUTO_INCREMENT for dumped tables
--

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