-- https://www.phpmyadmin.net/
--

START TRANSACTION;



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

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

--
-- 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;
COMMIT;

