-- phpMyAdmin SQL Dump
-- version 5.0.3
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Sep 21, 2021 at 07:29 PM
-- Server version: 10.4.14-MariaDB
-- PHP Version: 7.2.34

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
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: `qgl_receipt_generation`
--

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

--
-- Table structure for table `sys_receipts`
--

CREATE TABLE `sys_receipts` (
  `id` int(11) NOT NULL,
  `ReceiptNo` varchar(20) DEFAULT NULL,
  `CustomerName` varchar(250) DEFAULT NULL,
  `MembershipNumber` varchar(40) DEFAULT NULL,
  `CustomerMobileNumber` bigint(20) NOT NULL DEFAULT 0,
  `Amount` int(11) NOT NULL DEFAULT 0,
  `PaymentType` varchar(15) DEFAULT NULL,
  `ServiceType` varchar(64) DEFAULT NULL,
  `AppointmentDate` varchar(25) DEFAULT NULL,
  `NumberOfCamels` varchar(64) DEFAULT NULL,
  `BarcodeNo` varchar(30) DEFAULT NULL,
  `CreatedBy` int(11) NOT NULL DEFAULT 0,
  `CreatedDate` timestamp NOT NULL DEFAULT current_timestamp(),
  `ModifiedBy` int(11) NOT NULL DEFAULT 0,
  `ModifiedDate` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `Flag` int(11) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `sys_receipts`
--

INSERT INTO `sys_receipts` (`id`, `ReceiptNo`, `CustomerName`, `MembershipNumber`, `CustomerMobileNumber`, `Amount`, `PaymentType`, `ServiceType`, `AppointmentDate`, `NumberOfCamels`, `BarcodeNo`, `CreatedBy`, `CreatedDate`, `ModifiedBy`, `ModifiedDate`, `Flag`) VALUES
(1, '202109210000001', 'DINESH SHIRSATH', '123456', 1234567890, 500, 'Cash Payment', 'TEST', '09/21/2021', '1', '202109210000001', 1, '2021-09-21 16:10:59', 0, '2021-09-21 16:31:18', 0);

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

--
-- Table structure for table `sys_roles`
--

CREATE TABLE `sys_roles` (
  `id` int(11) NOT NULL,
  `role` varchar(264) DEFAULT NULL,
  `isActive` int(11) NOT NULL DEFAULT 0 COMMENT '0 for active , 1 for inactive or delete',
  `created_by` int(11) NOT NULL DEFAULT 0,
  `created_date` timestamp NOT NULL DEFAULT current_timestamp(),
  `modified_by` int(11) NOT NULL DEFAULT 0,
  `modified_date` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `sys_roles`
--

INSERT INTO `sys_roles` (`id`, `role`, `isActive`, `created_by`, `created_date`, `modified_by`, `modified_date`) VALUES
(1, 'Super Admin', 0, 0, '2021-04-13 05:29:24', 0, '2021-04-13 06:29:43'),
(2, 'Admin', 0, 1, '2021-04-13 05:29:24', 0, '2021-04-13 08:14:51');

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

--
-- Table structure for table `sys_users`
--

CREATE TABLE `sys_users` (
  `id` int(11) NOT NULL,
  `first_name` varchar(264) DEFAULT NULL,
  `father_name` varchar(64) DEFAULT NULL,
  `last_name` varchar(264) DEFAULT NULL,
  `email` varchar(64) DEFAULT NULL,
  `contact` bigint(10) NOT NULL DEFAULT 0,
  `username` varchar(264) DEFAULT NULL,
  `password` text DEFAULT NULL,
  `roleid` int(11) NOT NULL DEFAULT 0,
  `isActive` int(11) NOT NULL DEFAULT 0 COMMENT '0 For Active and 1 For Inactive',
  `logo` text DEFAULT NULL,
  `created_by` int(11) NOT NULL DEFAULT 0,
  `created_date` timestamp NOT NULL DEFAULT current_timestamp(),
  `modified_by` int(11) NOT NULL DEFAULT 0,
  `modified_date` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `sys_users`
--

INSERT INTO `sys_users` (`id`, `first_name`, `father_name`, `last_name`, `email`, `contact`, `username`, `password`, `roleid`, `isActive`, `logo`, `created_by`, `created_date`, `modified_by`, `modified_date`) VALUES
(1, 'ADMIN', NULL, 'USER', 'admin@infidux.com', 1234567890, 'admin@infidux.com', '532c1cbe25de3f60c605dbdf65aca0a514eb8252', 1, 0, NULL, 0, '2021-04-14 15:21:29', 0, '2021-09-21 17:26:59');

--
-- Indexes for dumped tables
--

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

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

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

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `sys_receipts`
--
ALTER TABLE `sys_receipts`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `sys_roles`
--
ALTER TABLE `sys_roles`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `sys_users`
--
ALTER TABLE `sys_users`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
COMMIT;

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