-- phpMyAdmin SQL Dump
-- version 5.2.0
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Aug 09, 2023 at 04:45 PM
-- Server version: 8.0.30
-- PHP Version: 8.1.10

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: `al`
--

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

--
-- Table structure for table `accounts`
--

CREATE TABLE `accounts` (
  `id` int UNSIGNED NOT NULL,
  `business_id` int NOT NULL,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `account_number` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `account_details` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `account_type_id` int DEFAULT NULL,
  `note` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `created_by` int NOT NULL,
  `is_closed` tinyint(1) NOT NULL DEFAULT '0',
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

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

--
-- Table structure for table `account_transactions`
--

CREATE TABLE `account_transactions` (
  `id` int UNSIGNED NOT NULL,
  `account_id` int NOT NULL,
  `type` enum('debit','credit') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `sub_type` enum('opening_balance','fund_transfer','deposit') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `amount` decimal(22,4) NOT NULL,
  `reff_no` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `operation_date` datetime NOT NULL,
  `created_by` int NOT NULL,
  `transaction_id` int DEFAULT NULL,
  `transaction_payment_id` int DEFAULT NULL,
  `transfer_transaction_id` int DEFAULT NULL,
  `note` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

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

--
-- Table structure for table `account_types`
--

CREATE TABLE `account_types` (
  `id` int UNSIGNED NOT NULL,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `parent_account_type_id` int DEFAULT NULL,
  `business_id` int NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

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

--
-- Table structure for table `activity_log`
--

CREATE TABLE `activity_log` (
  `id` int UNSIGNED NOT NULL,
  `log_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `subject_id` int DEFAULT NULL,
  `subject_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `business_id` int DEFAULT NULL,
  `causer_id` int DEFAULT NULL,
  `causer_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `properties` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `activity_log`
--

INSERT INTO `activity_log` (`id`, `log_name`, `description`, `subject_id`, `subject_type`, `business_id`, `causer_id`, `causer_type`, `properties`, `created_at`, `updated_at`) VALUES
(1, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-05-15 17:12:02', '2023-05-15 17:12:02'),
(2, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-05-15 23:00:45', '2023-05-15 23:00:45'),
(3, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-05-16 05:01:22', '2023-05-16 05:01:22'),
(4, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-05-17 15:49:14', '2023-05-17 15:49:14'),
(5, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-05-18 23:11:21', '2023-05-18 23:11:21'),
(6, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-05-19 19:11:50', '2023-05-19 19:11:50'),
(7, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-05-19 19:51:04', '2023-05-19 19:51:04'),
(8, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-05-23 14:36:30', '2023-05-23 14:36:30'),
(9, 'default', 'added', 1, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":1200}}', '2023-05-23 14:43:17', '2023-05-23 14:43:17'),
(10, 'default', 'edited', 1, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"received\",\"payment_status\":\"paid\",\"final_total\":1200},\"old\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"paid\",\"final_total\":\"1200.0000\"}}', '2023-05-23 14:43:40', '2023-05-23 14:43:40'),
(11, 'default', 'added', 2, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":390}}', '2023-05-23 14:50:50', '2023-05-23 14:50:50'),
(12, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-05-23 14:54:47', '2023-05-23 14:54:47'),
(13, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-05-23 15:06:25', '2023-05-23 15:06:25'),
(14, 'default', 'added', 3, 'App\\Transaction', 1, 1, 'App\\User', '[]', '2023-05-23 15:29:45', '2023-05-23 15:29:45'),
(15, 'default', 'added', 25, 'App\\Contact', 1, 1, 'App\\User', '[]', '2023-05-23 16:25:22', '2023-05-23 16:25:22'),
(16, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-05-23 17:26:42', '2023-05-23 17:26:42'),
(17, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-05-28 04:03:58', '2023-05-28 04:03:58'),
(18, 'default', 'logout', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-05-28 04:15:38', '2023-05-28 04:15:38'),
(19, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-05-29 21:25:25', '2023-05-29 21:25:25'),
(20, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-05-29 22:44:58', '2023-05-29 22:44:58'),
(21, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-05-30 04:22:53', '2023-05-30 04:22:53'),
(22, 'default', 'logout', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-05-30 04:23:46', '2023-05-30 04:23:46'),
(23, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-05-31 09:23:22', '2023-05-31 09:23:22'),
(24, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-06-01 05:24:42', '2023-06-01 05:24:42'),
(25, 'default', 'logout', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-06-01 05:27:58', '2023-06-01 05:27:58'),
(26, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-06-01 08:09:20', '2023-06-01 08:09:20'),
(27, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-06-02 03:02:45', '2023-06-02 03:02:45'),
(28, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-06-02 07:25:18', '2023-06-02 07:25:18'),
(29, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-06-03 06:29:16', '2023-06-03 06:29:16'),
(30, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-06-03 08:52:30', '2023-06-03 08:52:30'),
(31, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-06-04 03:10:03', '2023-06-04 03:10:03'),
(32, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-06-06 06:32:57', '2023-06-06 06:32:57'),
(33, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-06-07 23:29:05', '2023-06-07 23:29:05'),
(34, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-06-14 19:01:41', '2023-06-14 19:01:41'),
(35, 'default', 'added', 4, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":130}}', '2023-06-14 19:30:26', '2023-06-14 19:30:26'),
(36, 'default', 'logout', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-06-14 19:40:06', '2023-06-14 19:40:06'),
(37, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-06-14 19:40:30', '2023-06-14 19:40:30'),
(38, 'default', 'added', 26, 'App\\Contact', 1, 1, 'App\\User', '[]', '2023-06-14 19:45:50', '2023-06-14 19:45:50'),
(39, 'default', 'logout', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-06-14 20:07:45', '2023-06-14 20:07:45'),
(40, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-06-14 20:07:54', '2023-06-14 20:07:54'),
(41, 'default', 'added', 5, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"payment_status\":\"due\"}}', '2023-06-14 20:34:35', '2023-06-14 20:34:35'),
(42, 'default', 'logout', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-06-14 20:46:10', '2023-06-14 20:46:10'),
(43, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-06-14 20:57:33', '2023-06-14 20:57:33'),
(44, 'default', 'added', 27, 'App\\Contact', 1, 1, 'App\\User', '[]', '2023-06-14 21:47:40', '2023-06-14 21:47:40'),
(45, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-06-16 17:27:25', '2023-06-16 17:27:25'),
(46, 'default', 'logout', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-06-16 21:43:02', '2023-06-16 21:43:02'),
(47, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-06-16 21:43:13', '2023-06-16 21:43:13'),
(48, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-06-16 21:57:01', '2023-06-16 21:57:01'),
(49, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-06-17 16:04:42', '2023-06-17 16:04:42'),
(50, 'default', 'added', 28, 'App\\Contact', 1, 1, 'App\\User', '[]', '2023-06-17 16:21:05', '2023-06-17 16:21:05'),
(51, 'default', 'added', 6, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":140}}', '2023-06-17 18:27:50', '2023-06-17 18:27:50'),
(52, 'default', 'added', 7, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":0}}', '2023-06-17 18:31:49', '2023-06-17 18:31:49'),
(53, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-06-18 17:57:20', '2023-06-18 17:57:20'),
(54, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-06-19 18:50:18', '2023-06-19 18:50:18'),
(55, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-06-20 18:53:45', '2023-06-20 18:53:45'),
(56, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-06-21 04:56:23', '2023-06-21 04:56:23'),
(57, 'default', 'added', 8, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":0}}', '2023-06-21 06:17:48', '2023-06-21 06:17:48'),
(58, 'default', 'added', 29, 'App\\Contact', 1, 1, 'App\\User', '[]', '2023-06-21 06:45:08', '2023-06-21 06:45:08'),
(59, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-06-21 07:17:45', '2023-06-21 07:17:45'),
(60, 'default', 'added', 30, 'App\\Contact', 1, 1, 'App\\User', '[]', '2023-06-21 07:29:17', '2023-06-21 07:29:17'),
(61, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-06-21 17:31:38', '2023-06-21 17:31:38'),
(62, 'default', 'added', 31, 'App\\Contact', 1, 1, 'App\\User', '[]', '2023-06-21 17:43:21', '2023-06-21 17:43:21'),
(63, 'default', 'added', 9, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":9750}}', '2023-06-21 19:33:58', '2023-06-21 19:33:58'),
(64, 'default', 'added', 10, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":0}}', '2023-06-21 19:36:39', '2023-06-21 19:36:39'),
(65, 'default', 'added', 11, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":0}}', '2023-06-21 19:38:42', '2023-06-21 19:38:42'),
(66, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-06-23 15:18:36', '2023-06-23 15:18:36'),
(67, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-06-25 16:42:33', '2023-06-25 16:42:33'),
(68, 'default', 'added', 6, 'App\\User', 1, 1, 'App\\User', '{\"name\":\"sdsadsad pikus \"}', '2023-06-25 18:01:44', '2023-06-25 18:01:44'),
(69, 'default', 'logout', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-06-25 18:05:18', '2023-06-25 18:05:18'),
(70, 'default', 'login', 6, 'App\\User', 1, 6, 'App\\User', '[]', '2023-06-25 18:05:24', '2023-06-25 18:05:24'),
(71, 'default', 'logout', 6, 'App\\User', 1, 6, 'App\\User', '[]', '2023-06-25 18:05:38', '2023-06-25 18:05:38'),
(72, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-06-25 18:05:45', '2023-06-25 18:05:45'),
(73, 'default', 'deleted', 6, 'App\\User', 1, 1, 'App\\User', '{\"name\":\"sdsadsad pikus \",\"id\":6}', '2023-06-25 18:26:40', '2023-06-25 18:26:40'),
(74, 'default', 'added', 7, 'App\\User', 1, 1, 'App\\User', '{\"name\":\"mr shantos \"}', '2023-06-25 18:27:15', '2023-06-25 18:27:15'),
(75, 'default', 'logout', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-06-25 18:27:23', '2023-06-25 18:27:23'),
(76, 'default', 'login', 7, 'App\\User', 1, 7, 'App\\User', '[]', '2023-06-25 18:27:29', '2023-06-25 18:27:29'),
(77, 'default', 'logout', 7, 'App\\User', 1, 7, 'App\\User', '[]', '2023-06-25 18:27:38', '2023-06-25 18:27:38'),
(78, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-06-25 18:27:43', '2023-06-25 18:27:43'),
(79, 'default', 'added', 12, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":6000}}', '2023-06-25 18:58:23', '2023-06-25 18:58:23'),
(80, 'default', 'added', 13, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":0}}', '2023-06-25 18:59:26', '2023-06-25 18:59:26'),
(81, 'default', 'created', 1, 'App\\DocumentAndNote', NULL, 1, 'App\\User', '{\"attributes\":{\"business_id\":1,\"notable_id\":1,\"notable_type\":\"App\\\\User\",\"heading\":\"sadsa\",\"description\":\"<p>dsadsadsad<\\/p>\",\"is_private\":0,\"created_by\":1,\"created_at\":\"2023-06-26 01:27:51\",\"updated_at\":\"2023-06-26 01:27:51\"}}', '2023-06-25 19:27:51', '2023-06-25 19:27:51'),
(82, 'default', 'created', 2, 'App\\DocumentAndNote', NULL, 1, 'App\\User', '{\"attributes\":{\"business_id\":1,\"notable_id\":1,\"notable_type\":\"App\\\\User\",\"heading\":\"cv\",\"description\":\"<p>ghjghv<\\/p>\",\"is_private\":0,\"created_by\":1,\"created_at\":\"2023-06-26 01:40:50\",\"updated_at\":\"2023-06-26 01:40:50\"}}', '2023-06-25 19:40:50', '2023-06-25 19:40:50'),
(83, 'default', 'added', 8, 'App\\User', 1, 1, 'App\\User', '{\"name\":\"  \"}', '2023-06-25 20:18:45', '2023-06-25 20:18:45'),
(84, 'default', 'added', 9, 'App\\User', 1, 1, 'App\\User', '{\"name\":\"  \"}', '2023-06-25 20:21:41', '2023-06-25 20:21:41'),
(85, 'default', 'deleted', 8, 'App\\User', 1, 1, 'App\\User', '{\"name\":\"  \",\"id\":8}', '2023-06-25 20:22:39', '2023-06-25 20:22:39'),
(86, 'default', 'added', 10, 'App\\User', 1, 1, 'App\\User', '{\"name\":\"  \"}', '2023-06-25 20:23:44', '2023-06-25 20:23:44'),
(87, 'default', 'added', 11, 'App\\User', 1, 1, 'App\\User', '{\"name\":\"  \"}', '2023-06-25 20:34:57', '2023-06-25 20:34:57'),
(88, 'default', 'added', 12, 'App\\User', 1, 1, 'App\\User', '{\"name\":\"  \"}', '2023-06-25 20:39:57', '2023-06-25 20:39:57'),
(89, 'default', 'added', 13, 'App\\User', 1, 1, 'App\\User', '{\"name\":\"  \"}', '2023-06-25 20:41:43', '2023-06-25 20:41:43'),
(90, 'default', 'added', 14, 'App\\User', 1, 1, 'App\\User', '{\"name\":\"  \"}', '2023-06-25 20:43:02', '2023-06-25 20:43:02'),
(91, 'default', 'added', 15, 'App\\User', 1, 1, 'App\\User', '{\"name\":\"  \"}', '2023-06-25 21:03:11', '2023-06-25 21:03:11'),
(92, 'default', 'added', 16, 'App\\User', 1, 1, 'App\\User', '{\"name\":\"  \"}', '2023-06-25 21:03:36', '2023-06-25 21:03:36'),
(93, 'default', 'added', 17, 'App\\User', 1, 1, 'App\\User', '{\"name\":\"  \"}', '2023-06-25 21:06:20', '2023-06-25 21:06:20'),
(94, 'default', 'added', 18, 'App\\User', 1, 1, 'App\\User', '{\"name\":\"  \"}', '2023-06-25 21:09:28', '2023-06-25 21:09:28'),
(95, 'default', 'added', 19, 'App\\User', 1, 1, 'App\\User', '{\"name\":\"  \"}', '2023-06-25 21:14:47', '2023-06-25 21:14:47'),
(96, 'default', 'added', 20, 'App\\User', 1, 1, 'App\\User', '{\"name\":\"  \"}', '2023-06-25 21:20:28', '2023-06-25 21:20:28'),
(97, 'default', 'added', 21, 'App\\User', 1, 1, 'App\\User', '{\"name\":\"  \"}', '2023-06-25 21:24:39', '2023-06-25 21:24:39'),
(98, 'default', 'added', 22, 'App\\User', 1, 1, 'App\\User', '{\"name\":\"  \"}', '2023-06-25 21:31:55', '2023-06-25 21:31:55'),
(99, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-06-26 03:14:53', '2023-06-26 03:14:53'),
(100, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-06-26 17:27:53', '2023-06-26 17:27:53'),
(101, 'default', 'added', 14, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"received\",\"payment_status\":\"due\",\"final_total\":22500}}', '2023-06-26 18:20:01', '2023-06-26 18:20:01'),
(102, 'default', 'added', 23, 'App\\User', 1, 1, 'App\\User', '{\"name\":\"  \"}', '2023-06-26 22:33:08', '2023-06-26 22:33:08'),
(103, 'default', 'added', 15, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":0}}', '2023-06-26 22:45:30', '2023-06-26 22:45:30'),
(104, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-06-27 20:08:56', '2023-06-27 20:08:56'),
(105, 'default', 'added', 32, 'App\\Contact', 1, 1, 'App\\User', '[]', '2023-06-27 20:15:13', '2023-06-27 20:15:13'),
(106, 'default', 'logout', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-06-27 20:37:17', '2023-06-27 20:37:17'),
(107, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-06-28 18:05:29', '2023-06-28 18:05:29'),
(108, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-06-28 22:18:11', '2023-06-28 22:18:11'),
(109, 'default', 'logout', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-06-28 22:30:49', '2023-06-28 22:30:49'),
(110, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-06-29 14:52:45', '2023-06-29 14:52:45'),
(111, 'default', 'logout', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-06-29 20:53:21', '2023-06-29 20:53:21'),
(112, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-06-29 20:53:55', '2023-06-29 20:53:55'),
(113, 'default', 'logout', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-06-29 22:33:00', '2023-06-29 22:33:00'),
(114, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-06-30 06:32:39', '2023-06-30 06:32:39'),
(115, 'default', 'added', 33, 'App\\Contact', 1, 1, 'App\\User', '[]', '2023-06-30 06:34:00', '2023-06-30 06:34:00'),
(116, 'default', 'edited', 33, 'App\\Contact', 1, 1, 'App\\User', '[]', '2023-06-30 06:34:43', '2023-06-30 06:34:43'),
(117, 'default', 'edited', 33, 'App\\Contact', 1, 1, 'App\\User', '[]', '2023-06-30 06:34:50', '2023-06-30 06:34:50'),
(118, 'default', 'added', 34, 'App\\Contact', 1, 1, 'App\\User', '[]', '2023-06-30 06:51:05', '2023-06-30 06:51:05'),
(119, 'default', 'added', 1, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"received\",\"payment_status\":\"due\",\"final_total\":28000}}', '2023-06-30 06:57:36', '2023-06-30 06:57:36'),
(120, 'default', 'added', 2, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":0}}', '2023-06-30 11:19:38', '2023-06-30 11:19:38'),
(121, 'default', 'added', 3, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":0}}', '2023-06-30 12:31:09', '2023-06-30 12:31:09'),
(122, 'default', 'added', 4, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"received\",\"payment_status\":\"due\",\"final_total\":4900}}', '2023-06-30 13:14:39', '2023-06-30 13:14:39'),
(123, 'default', 'added', 24, 'App\\User', 1, 1, 'App\\User', '{\"name\":\"  \"}', '2023-06-30 14:14:38', '2023-06-30 14:14:38'),
(124, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-06-30 18:10:32', '2023-06-30 18:10:32'),
(125, 'default', 'added', 5, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":0}}', '2023-06-30 19:50:11', '2023-06-30 19:50:11'),
(126, 'default', 'added', 6, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":0}}', '2023-06-30 19:51:12', '2023-06-30 19:51:12'),
(127, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-01 13:56:55', '2023-07-01 13:56:55'),
(128, 'default', 'added', 7, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":0}}', '2023-07-01 15:50:21', '2023-07-01 15:50:21'),
(129, 'default', 'added', 25, 'App\\User', 1, 1, 'App\\User', '{\"name\":\"  \"}', '2023-07-01 16:18:40', '2023-07-01 16:18:40'),
(130, 'default', 'logout', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-01 16:18:48', '2023-07-01 16:18:48'),
(131, 'default', 'login', 25, 'App\\User', 1, 25, 'App\\User', '[]', '2023-07-01 16:18:56', '2023-07-01 16:18:56'),
(132, 'default', 'login', 25, 'App\\User', 1, 25, 'App\\User', '[]', '2023-07-01 16:19:18', '2023-07-01 16:19:18'),
(133, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-01 16:19:41', '2023-07-01 16:19:41'),
(134, 'default', 'added', 35, 'App\\Contact', 1, 1, 'App\\User', '[]', '2023-07-01 16:43:12', '2023-07-01 16:43:12'),
(135, 'default', 'added', 36, 'App\\Contact', 1, 1, 'App\\User', '[]', '2023-07-01 16:43:50', '2023-07-01 16:43:50'),
(136, 'default', 'added', 8, 'App\\Transaction', 1, 1, 'App\\User', '[]', '2023-07-01 16:44:23', '2023-07-01 16:44:23'),
(137, 'default', 'logout', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-01 19:26:45', '2023-07-01 19:26:45'),
(138, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-01 19:28:26', '2023-07-01 19:28:26'),
(139, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-03 20:55:09', '2023-07-03 20:55:09'),
(140, 'default', 'logout', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-03 22:07:27', '2023-07-03 22:07:27'),
(141, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-03 22:07:36', '2023-07-03 22:07:36'),
(142, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-04 04:35:56', '2023-07-04 04:35:56'),
(143, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-04 18:45:23', '2023-07-04 18:45:23'),
(144, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-04 21:17:26', '2023-07-04 21:17:26'),
(145, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-05 15:13:11', '2023-07-05 15:13:11'),
(146, 'default', 'added', 37, 'App\\Contact', 1, 1, 'App\\User', '[]', '2023-07-05 20:25:18', '2023-07-05 20:25:18'),
(147, 'default', 'added', 38, 'App\\Contact', 1, 1, 'App\\User', '[]', '2023-07-05 20:26:12', '2023-07-05 20:26:12'),
(148, 'default', 'added', 39, 'App\\Contact', 1, 1, 'App\\User', '[]', '2023-07-05 20:28:32', '2023-07-05 20:28:32'),
(149, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-07 19:40:20', '2023-07-07 19:40:20'),
(150, 'default', 'added', 9, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":0}}', '2023-07-07 19:53:22', '2023-07-07 19:53:22'),
(151, 'default', 'added', 40, 'App\\Contact', 1, 1, 'App\\User', '[]', '2023-07-07 23:01:14', '2023-07-07 23:01:14'),
(152, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-08 04:47:28', '2023-07-08 04:47:28'),
(153, 'default', 'added', 10, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":150}}', '2023-07-08 05:26:17', '2023-07-08 05:26:17'),
(154, 'default', 'added', 11, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"due\",\"final_total\":350}}', '2023-07-08 06:13:48', '2023-07-08 06:13:48'),
(155, 'default', 'added', 12, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"draft\",\"sub_status\":\"quotation\",\"final_total\":300}}', '2023-07-08 06:21:43', '2023-07-08 06:21:43'),
(156, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-09 01:37:12', '2023-07-09 01:37:12'),
(157, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-09 15:27:28', '2023-07-09 15:27:28'),
(158, 'default', 'added', 26, 'App\\User', 1, 1, 'App\\User', '{\"name\":\"  \"}', '2023-07-09 15:37:30', '2023-07-09 15:37:30'),
(159, 'default', 'logout', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-09 15:38:02', '2023-07-09 15:38:02'),
(160, 'default', 'login', 26, 'App\\User', 1, 26, 'App\\User', '[]', '2023-07-09 15:38:17', '2023-07-09 15:38:17'),
(161, 'default', 'login', 26, 'App\\User', 1, 26, 'App\\User', '[]', '2023-07-09 15:38:50', '2023-07-09 15:38:50'),
(162, 'default', 'login', 26, 'App\\User', 1, 26, 'App\\User', '[]', '2023-07-09 15:43:29', '2023-07-09 15:43:29'),
(163, 'default', 'login', 26, 'App\\User', 1, 26, 'App\\User', '[]', '2023-07-09 15:44:40', '2023-07-09 15:44:40'),
(164, 'default', 'login', 26, 'App\\User', 1, 26, 'App\\User', '[]', '2023-07-09 15:45:16', '2023-07-09 15:45:16'),
(165, 'default', 'login', 26, 'App\\User', 1, 26, 'App\\User', '[]', '2023-07-09 15:46:55', '2023-07-09 15:46:55'),
(166, 'default', 'login', 26, 'App\\User', 1, 26, 'App\\User', '[]', '2023-07-09 15:50:58', '2023-07-09 15:50:58'),
(167, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-09 15:51:07', '2023-07-09 15:51:07'),
(168, 'default', 'login', 26, 'App\\User', 1, 26, 'App\\User', '[]', '2023-07-09 15:51:35', '2023-07-09 15:51:35'),
(169, 'default', 'login', 26, 'App\\User', 1, 26, 'App\\User', '[]', '2023-07-09 15:52:38', '2023-07-09 15:52:38'),
(170, 'default', 'login', 26, 'App\\User', 1, 26, 'App\\User', '[]', '2023-07-09 15:58:00', '2023-07-09 15:58:00'),
(171, 'default', 'logout', 26, 'App\\User', 1, 26, 'App\\User', '[]', '2023-07-09 16:12:01', '2023-07-09 16:12:01'),
(172, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-09 16:12:10', '2023-07-09 16:12:10'),
(173, 'default', 'logout', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-09 16:17:13', '2023-07-09 16:17:13'),
(174, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-09 16:17:35', '2023-07-09 16:17:35'),
(175, 'default', 'added', 27, 'App\\User', 1, 1, 'App\\User', '{\"name\":\"  \"}', '2023-07-09 16:21:54', '2023-07-09 16:21:54'),
(176, 'default', 'logout', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-09 16:22:01', '2023-07-09 16:22:01'),
(177, 'default', 'login', 27, 'App\\User', 1, 27, 'App\\User', '[]', '2023-07-09 16:22:54', '2023-07-09 16:22:54'),
(178, 'default', 'logout', 27, 'App\\User', 1, 27, 'App\\User', '[]', '2023-07-09 16:25:54', '2023-07-09 16:25:54'),
(179, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-09 16:26:03', '2023-07-09 16:26:03'),
(180, 'default', 'logout', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-09 16:28:07', '2023-07-09 16:28:07'),
(181, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-09 16:28:20', '2023-07-09 16:28:20'),
(182, 'default', 'edited', 27, 'App\\User', 1, 1, 'App\\User', '{\"name\":\" Jackma Marlin\"}', '2023-07-09 16:28:40', '2023-07-09 16:28:40'),
(183, 'default', 'logout', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-09 16:28:47', '2023-07-09 16:28:47'),
(184, 'default', 'login', 27, 'App\\User', 1, 27, 'App\\User', '[]', '2023-07-09 16:28:57', '2023-07-09 16:28:57'),
(185, 'default', 'logout', 27, 'App\\User', 1, 27, 'App\\User', '[]', '2023-07-09 16:29:14', '2023-07-09 16:29:14'),
(186, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-09 16:29:20', '2023-07-09 16:29:20'),
(187, 'default', 'logout', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-09 16:30:39', '2023-07-09 16:30:39'),
(188, 'default', 'login', 27, 'App\\User', 1, 27, 'App\\User', '[]', '2023-07-09 16:30:48', '2023-07-09 16:30:48'),
(189, 'default', 'logout', 27, 'App\\User', 1, 27, 'App\\User', '[]', '2023-07-09 16:31:04', '2023-07-09 16:31:04'),
(190, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-09 16:31:10', '2023-07-09 16:31:10'),
(191, 'default', 'logout', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-09 16:31:38', '2023-07-09 16:31:38'),
(192, 'default', 'login', 27, 'App\\User', 1, 27, 'App\\User', '[]', '2023-07-09 16:31:48', '2023-07-09 16:31:48'),
(193, 'default', 'logout', 27, 'App\\User', 1, 27, 'App\\User', '[]', '2023-07-09 16:32:15', '2023-07-09 16:32:15'),
(194, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-09 16:32:21', '2023-07-09 16:32:21'),
(195, 'default', 'logout', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-09 16:33:33', '2023-07-09 16:33:33'),
(196, 'default', 'login', 27, 'App\\User', 1, 27, 'App\\User', '[]', '2023-07-09 16:33:43', '2023-07-09 16:33:43'),
(197, 'default', 'logout', 27, 'App\\User', 1, 27, 'App\\User', '[]', '2023-07-09 16:35:00', '2023-07-09 16:35:00'),
(198, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-09 16:35:18', '2023-07-09 16:35:18'),
(199, 'default', 'logout', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-09 16:36:04', '2023-07-09 16:36:04'),
(200, 'default', 'login', 27, 'App\\User', 1, 27, 'App\\User', '[]', '2023-07-09 16:36:12', '2023-07-09 16:36:12'),
(201, 'default', 'logout', 27, 'App\\User', 1, 27, 'App\\User', '[]', '2023-07-09 16:47:21', '2023-07-09 16:47:21'),
(202, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-09 16:47:31', '2023-07-09 16:47:31'),
(203, 'default', 'logout', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-09 16:48:14', '2023-07-09 16:48:14'),
(204, 'default', 'login', 27, 'App\\User', 1, 27, 'App\\User', '[]', '2023-07-09 16:48:22', '2023-07-09 16:48:22'),
(205, 'default', 'logout', 27, 'App\\User', 1, 27, 'App\\User', '[]', '2023-07-09 16:49:57', '2023-07-09 16:49:57'),
(206, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-09 16:50:44', '2023-07-09 16:50:44'),
(207, 'default', 'logout', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-09 16:50:57', '2023-07-09 16:50:57'),
(208, 'default', 'login', 27, 'App\\User', 1, 27, 'App\\User', '[]', '2023-07-09 16:52:26', '2023-07-09 16:52:26'),
(209, 'default', 'logout', 27, 'App\\User', 1, 27, 'App\\User', '[]', '2023-07-09 17:01:11', '2023-07-09 17:01:11'),
(210, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-09 17:01:18', '2023-07-09 17:01:18'),
(211, 'default', 'logout', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-09 17:01:21', '2023-07-09 17:01:21'),
(212, 'default', 'login', 27, 'App\\User', 1, 27, 'App\\User', '[]', '2023-07-09 17:01:28', '2023-07-09 17:01:28'),
(213, 'default', 'logout', 27, 'App\\User', 1, 27, 'App\\User', '[]', '2023-07-09 17:03:52', '2023-07-09 17:03:52'),
(214, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-09 17:06:20', '2023-07-09 17:06:20'),
(215, 'default', 'added', 28, 'App\\User', 1, 1, 'App\\User', '{\"name\":\"Md somoy miya\"}', '2023-07-09 17:17:54', '2023-07-09 17:17:54'),
(216, 'default', 'logout', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-09 17:18:03', '2023-07-09 17:18:03'),
(217, 'default', 'login', 28, 'App\\User', 1, 28, 'App\\User', '[]', '2023-07-09 17:18:13', '2023-07-09 17:18:13'),
(218, 'default', 'logout', 28, 'App\\User', 1, 28, 'App\\User', '[]', '2023-07-09 17:21:37', '2023-07-09 17:21:37'),
(219, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-09 17:21:43', '2023-07-09 17:21:43'),
(220, 'default', 'logout', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-09 17:40:19', '2023-07-09 17:40:19'),
(221, 'default', 'login', 27, 'App\\User', 1, 27, 'App\\User', '[]', '2023-07-09 17:40:27', '2023-07-09 17:40:27'),
(222, 'default', 'logout', 27, 'App\\User', 1, 27, 'App\\User', '[]', '2023-07-09 17:40:47', '2023-07-09 17:40:47'),
(223, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-09 17:44:47', '2023-07-09 17:44:47'),
(224, 'default', 'edited', 27, 'App\\User', 1, 1, 'App\\User', '{\"name\":\" Jackma Marlin\"}', '2023-07-09 18:02:41', '2023-07-09 18:02:41'),
(225, 'default', 'added', 29, 'App\\User', 1, 1, 'App\\User', '{\"name\":\"sadsad asdasd asdsad\"}', '2023-07-09 18:03:19', '2023-07-09 18:03:19'),
(226, 'default', 'edited', 29, 'App\\User', 1, 1, 'App\\User', '{\"name\":\"sadsad asdasd asdsad\"}', '2023-07-09 18:06:58', '2023-07-09 18:06:58'),
(227, 'default', 'edited', 29, 'App\\User', 1, 1, 'App\\User', '{\"name\":\"sadsad asdasd asdsad\"}', '2023-07-09 18:07:35', '2023-07-09 18:07:35'),
(228, 'default', 'logout', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-09 18:10:57', '2023-07-09 18:10:57'),
(229, 'default', 'login', 27, 'App\\User', 1, 27, 'App\\User', '[]', '2023-07-09 18:11:04', '2023-07-09 18:11:04'),
(230, 'default', 'logout', 27, 'App\\User', 1, 27, 'App\\User', '[]', '2023-07-09 18:11:49', '2023-07-09 18:11:49'),
(231, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-09 18:11:58', '2023-07-09 18:11:58'),
(232, 'default', 'added', 13, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":3900}}', '2023-07-09 20:31:55', '2023-07-09 20:31:55'),
(233, 'default', 'logout', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-09 23:09:49', '2023-07-09 23:09:49'),
(234, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-09 23:09:58', '2023-07-09 23:09:58'),
(235, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-10 02:13:37', '2023-07-10 02:13:37'),
(236, 'default', 'added', 41, 'App\\Contact', 1, 1, 'App\\User', '[]', '2023-07-10 02:14:37', '2023-07-10 02:14:37'),
(237, 'default', 'added', 30, 'App\\User', 1, 1, 'App\\User', '{\"name\":\"Mr Shanto Halder\"}', '2023-07-10 02:29:03', '2023-07-10 02:29:03'),
(238, 'default', 'logout', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-10 02:38:57', '2023-07-10 02:38:57'),
(239, 'default', 'login', 30, 'App\\User', 1, 30, 'App\\User', '[]', '2023-07-10 02:39:07', '2023-07-10 02:39:07'),
(240, 'default', 'login', 30, 'App\\User', 1, 30, 'App\\User', '[]', '2023-07-10 02:39:18', '2023-07-10 02:39:18'),
(241, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-10 02:39:26', '2023-07-10 02:39:26'),
(242, 'default', 'edited', 30, 'App\\User', 1, 1, 'App\\User', '{\"name\":\"Mr Shanto Halder\"}', '2023-07-10 02:39:53', '2023-07-10 02:39:53'),
(243, 'default', 'logout', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-10 02:40:42', '2023-07-10 02:40:42'),
(244, 'default', 'login', 30, 'App\\User', 1, 30, 'App\\User', '[]', '2023-07-10 02:40:49', '2023-07-10 02:40:49'),
(245, 'default', 'login', 30, 'App\\User', 1, 30, 'App\\User', '[]', '2023-07-10 02:42:23', '2023-07-10 02:42:23'),
(246, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-10 02:43:17', '2023-07-10 02:43:17'),
(247, 'default', 'logout', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-10 02:43:21', '2023-07-10 02:43:21'),
(248, 'default', 'login', 30, 'App\\User', 1, 30, 'App\\User', '[]', '2023-07-10 02:43:35', '2023-07-10 02:43:35'),
(249, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-10 02:43:52', '2023-07-10 02:43:52'),
(250, 'default', 'added', 31, 'App\\User', 1, 1, 'App\\User', '{\"name\":\" Tester \"}', '2023-07-10 02:44:45', '2023-07-10 02:44:45'),
(251, 'default', 'logout', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-10 02:44:54', '2023-07-10 02:44:54'),
(252, 'default', 'login', 31, 'App\\User', 1, 31, 'App\\User', '[]', '2023-07-10 02:45:23', '2023-07-10 02:45:23'),
(253, 'default', 'logout', 31, 'App\\User', 1, 31, 'App\\User', '[]', '2023-07-10 02:49:24', '2023-07-10 02:49:24'),
(254, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-10 02:49:31', '2023-07-10 02:49:31'),
(255, 'default', 'edited', 30, 'App\\User', 1, 1, 'App\\User', '{\"name\":\"Mr Shanto Halder\"}', '2023-07-10 02:52:33', '2023-07-10 02:52:33'),
(256, 'default', 'logout', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-10 02:52:41', '2023-07-10 02:52:41'),
(257, 'default', 'login', 30, 'App\\User', 1, 30, 'App\\User', '[]', '2023-07-10 02:52:49', '2023-07-10 02:52:49'),
(258, 'default', 'login', 31, 'App\\User', 1, 31, 'App\\User', '[]', '2023-07-10 02:52:57', '2023-07-10 02:52:57'),
(259, 'default', 'logout', 31, 'App\\User', 1, 31, 'App\\User', '[]', '2023-07-10 02:53:15', '2023-07-10 02:53:15'),
(260, 'default', 'login', 30, 'App\\User', 1, 30, 'App\\User', '[]', '2023-07-10 02:53:21', '2023-07-10 02:53:21'),
(261, 'default', 'logout', 30, 'App\\User', 1, 30, 'App\\User', '[]', '2023-07-10 02:54:03', '2023-07-10 02:54:03'),
(262, 'default', 'login', 30, 'App\\User', 1, 30, 'App\\User', '[]', '2023-07-10 03:04:37', '2023-07-10 03:04:37'),
(263, 'default', 'logout', 30, 'App\\User', 1, 30, 'App\\User', '[]', '2023-07-10 03:09:29', '2023-07-10 03:09:29'),
(264, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-10 03:09:44', '2023-07-10 03:09:44'),
(265, 'default', 'logout', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-10 03:09:58', '2023-07-10 03:09:58'),
(266, 'default', 'login', 30, 'App\\User', 1, 30, 'App\\User', '[]', '2023-07-10 03:10:05', '2023-07-10 03:10:05'),
(267, 'default', 'logout', 30, 'App\\User', 1, 30, 'App\\User', '[]', '2023-07-10 03:28:24', '2023-07-10 03:28:24'),
(268, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-10 03:28:31', '2023-07-10 03:28:31'),
(269, 'default', 'logout', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-10 03:29:58', '2023-07-10 03:29:58'),
(270, 'default', 'login', 30, 'App\\User', 1, 30, 'App\\User', '[]', '2023-07-10 03:30:31', '2023-07-10 03:30:31'),
(271, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-10 04:31:41', '2023-07-10 04:31:41'),
(272, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-10 17:13:28', '2023-07-10 17:13:28'),
(273, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-11 03:30:16', '2023-07-11 03:30:16'),
(274, 'default', 'added', 32, 'App\\User', 1, 1, 'App\\User', '{\"name\":\"Mr Moin \"}', '2023-07-11 03:42:28', '2023-07-11 03:42:28'),
(275, 'default', 'logout', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-11 03:43:50', '2023-07-11 03:43:50'),
(276, 'default', 'login', 32, 'App\\User', 1, 32, 'App\\User', '[]', '2023-07-11 03:44:01', '2023-07-11 03:44:01'),
(277, 'default', 'login', 30, 'App\\User', 1, 30, 'App\\User', '[]', '2023-07-11 03:44:14', '2023-07-11 03:44:14'),
(278, 'default', 'logout', 30, 'App\\User', 1, 30, 'App\\User', '[]', '2023-07-11 03:44:21', '2023-07-11 03:44:21'),
(279, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-11 03:44:28', '2023-07-11 03:44:28'),
(280, 'default', 'logout', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-11 03:46:04', '2023-07-11 03:46:04'),
(281, 'default', 'login', 32, 'App\\User', 1, 32, 'App\\User', '[]', '2023-07-11 03:46:12', '2023-07-11 03:46:12'),
(282, 'default', 'logout', 32, 'App\\User', 1, 32, 'App\\User', '[]', '2023-07-11 03:47:57', '2023-07-11 03:47:57'),
(283, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-11 03:48:04', '2023-07-11 03:48:04'),
(284, 'default', 'logout', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-11 03:48:38', '2023-07-11 03:48:38'),
(285, 'default', 'login', 32, 'App\\User', 1, 32, 'App\\User', '[]', '2023-07-11 03:48:45', '2023-07-11 03:48:45'),
(286, 'default', 'logout', 32, 'App\\User', 1, 32, 'App\\User', '[]', '2023-07-11 03:53:39', '2023-07-11 03:53:39'),
(287, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-11 03:54:00', '2023-07-11 03:54:00'),
(288, 'default', 'logout', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-11 04:09:36', '2023-07-11 04:09:36'),
(289, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-11 04:11:34', '2023-07-11 04:11:34'),
(290, 'default', 'logout', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-11 04:11:41', '2023-07-11 04:11:41'),
(291, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-11 04:32:44', '2023-07-11 04:32:44'),
(292, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-11 10:47:44', '2023-07-11 10:47:44'),
(293, 'default', 'added', 42, 'App\\Contact', 1, 1, 'App\\User', '[]', '2023-07-11 12:23:57', '2023-07-11 12:23:57'),
(294, 'default', 'added', 43, 'App\\Contact', 1, 1, 'App\\User', '[]', '2023-07-11 13:04:13', '2023-07-11 13:04:13'),
(295, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-11 16:08:22', '2023-07-11 16:08:22'),
(296, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-12 07:02:57', '2023-07-12 07:02:57'),
(297, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-12 11:41:26', '2023-07-12 11:41:26'),
(298, 'default', 'added', 44, 'App\\Contact', 1, 1, 'App\\User', '[]', '2023-07-12 12:04:24', '2023-07-12 12:04:24'),
(299, 'default', 'added', 45, 'App\\Contact', 1, 1, 'App\\User', '[]', '2023-07-12 12:08:40', '2023-07-12 12:08:40'),
(300, 'default', 'added', 46, 'App\\Contact', 1, 1, 'App\\User', '[]', '2023-07-12 12:28:38', '2023-07-12 12:28:38'),
(301, 'default', 'added', 2, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"received\",\"payment_status\":\"due\",\"final_total\":4320}}', '2023-07-12 15:28:15', '2023-07-12 15:28:15'),
(302, 'default', 'added', 3, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":430}}', '2023-07-12 15:29:00', '2023-07-12 15:29:00'),
(303, 'default', 'added', 4, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":430}}', '2023-07-12 15:29:26', '2023-07-12 15:29:26'),
(304, 'default', 'added', 5, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":860}}', '2023-07-12 15:31:38', '2023-07-12 15:31:38'),
(305, 'default', 'added', 6, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":430}}', '2023-07-12 15:33:52', '2023-07-12 15:33:52'),
(306, 'default', 'added', 7, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":430}}', '2023-07-12 15:38:10', '2023-07-12 15:38:10'),
(307, 'default', 'added', 8, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":430}}', '2023-07-12 15:44:57', '2023-07-12 15:44:57'),
(308, 'default', 'added', 9, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":860}}', '2023-07-12 15:47:37', '2023-07-12 15:47:37'),
(309, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-12 16:19:23', '2023-07-12 16:19:23'),
(310, 'default', 'logout', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-12 17:22:04', '2023-07-12 17:22:04'),
(311, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-12 17:22:24', '2023-07-12 17:22:24'),
(312, 'default', 'logout', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-12 17:30:08', '2023-07-12 17:30:08'),
(313, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-12 17:35:35', '2023-07-12 17:35:35'),
(314, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-13 04:25:53', '2023-07-13 04:25:53'),
(315, 'default', 'added', 10, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"received\",\"payment_status\":\"due\",\"final_total\":2328}}', '2023-07-13 04:44:57', '2023-07-13 04:44:57'),
(316, 'default', 'added', 11, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"due\",\"final_total\":398}}', '2023-07-13 04:47:42', '2023-07-13 04:47:42'),
(317, 'default', 'added', 12, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":199}}', '2023-07-13 04:53:41', '2023-07-13 04:53:41'),
(318, 'default', 'sell_deleted', 11, 'App\\Transaction', 1, 1, 'App\\User', '{\"id\":11,\"invoice_no\":\"0033\",\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"due\",\"final_total\":\"398.0000\"}}', '2023-07-13 05:31:04', '2023-07-13 05:31:04'),
(319, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-13 07:13:11', '2023-07-13 07:13:11'),
(320, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-14 03:36:29', '2023-07-14 03:36:29'),
(321, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-15 15:28:15', '2023-07-15 15:28:15'),
(322, 'default', 'logout', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-15 15:28:26', '2023-07-15 15:28:26'),
(323, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-15 15:29:30', '2023-07-15 15:29:30'),
(324, 'default', 'logout', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-15 16:10:18', '2023-07-15 16:10:18'),
(325, 'default', 'added', 47, 'App\\Contact', 1, 1, 'App\\User', '[]', '2023-07-17 17:43:42', '2023-07-17 17:43:42'),
(326, 'default', 'added', 48, 'App\\Contact', 1, 1, 'App\\User', '[]', '2023-07-17 18:11:51', '2023-07-17 18:11:51'),
(327, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-17 18:36:12', '2023-07-17 18:36:12'),
(328, 'default', 'logout', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-17 19:45:51', '2023-07-17 19:45:51'),
(329, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-17 19:45:59', '2023-07-17 19:45:59'),
(330, 'default', 'added', 13, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"payment_status\":\"due\"}}', '2023-07-17 21:53:40', '2023-07-17 21:53:40'),
(331, 'default', 'added', 14, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"payment_status\":\"due\"}}', '2023-07-17 22:03:18', '2023-07-17 22:03:18'),
(332, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-18 18:04:00', '2023-07-18 18:04:00'),
(333, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-18 21:51:12', '2023-07-18 21:51:12'),
(334, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-18 23:13:39', '2023-07-18 23:13:39'),
(335, 'default', 'logout', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-18 23:18:05', '2023-07-18 23:18:05'),
(336, 'default', 'login', 30, 'App\\User', 1, 30, 'App\\User', '[]', '2023-07-18 23:18:12', '2023-07-18 23:18:12'),
(337, 'default', 'logout', 30, 'App\\User', 1, 30, 'App\\User', '[]', '2023-07-18 23:20:10', '2023-07-18 23:20:10'),
(338, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-18 23:20:18', '2023-07-18 23:20:18'),
(339, 'default', 'logout', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-18 23:26:52', '2023-07-18 23:26:52'),
(340, 'default', 'login', 30, 'App\\User', 1, 30, 'App\\User', '[]', '2023-07-18 23:27:30', '2023-07-18 23:27:30'),
(341, 'default', 'logout', 30, 'App\\User', 1, 30, 'App\\User', '[]', '2023-07-18 23:30:36', '2023-07-18 23:30:36'),
(342, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-18 23:30:45', '2023-07-18 23:30:45'),
(343, 'default', 'logout', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-18 23:30:50', '2023-07-18 23:30:50'),
(344, 'default', 'login', 30, 'App\\User', 1, 30, 'App\\User', '[]', '2023-07-18 23:30:58', '2023-07-18 23:30:58'),
(345, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-18 23:40:38', '2023-07-18 23:40:38'),
(346, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-20 11:20:50', '2023-07-20 11:20:50'),
(347, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-20 13:28:02', '2023-07-20 13:28:02'),
(348, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-21 05:08:00', '2023-07-21 05:08:00'),
(349, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-22 07:42:10', '2023-07-22 07:42:10'),
(350, 'default', 'logout', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-22 15:27:31', '2023-07-22 15:27:31'),
(351, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-22 15:27:38', '2023-07-22 15:27:38'),
(352, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-23 14:35:26', '2023-07-23 14:35:26'),
(353, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-28 04:40:33', '2023-07-28 04:40:33'),
(354, 'default', 'added', 49, 'App\\Contact', 1, 1, 'App\\User', '[]', '2023-07-28 05:21:07', '2023-07-28 05:21:07'),
(355, 'default', 'added', 15, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":6000}}', '2023-07-28 05:54:59', '2023-07-28 05:54:59'),
(356, 'default', 'payment_edited', 15, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"received\",\"payment_status\":\"paid\",\"final_total\":\"6000.0000\"},\"old\":{\"type\":\"purchase\",\"status\":\"received\",\"payment_status\":\"due\",\"final_total\":\"6000.0000\"}}', '2023-07-28 06:03:24', '2023-07-28 06:03:24'),
(357, 'default', 'added', 16, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":2400}}', '2023-07-28 06:07:05', '2023-07-28 06:07:05'),
(358, 'default', 'purchase_deleted', 15, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"received\",\"payment_status\":\"paid\",\"final_total\":\"6000.0000\"}}', '2023-07-28 06:15:27', '2023-07-28 06:15:27'),
(359, 'default', 'purchase_deleted', 16, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"received\",\"payment_status\":\"due\",\"final_total\":\"2400.0000\"}}', '2023-07-28 06:15:49', '2023-07-28 06:15:49'),
(360, 'default', 'added', 17, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"received\",\"payment_status\":\"due\",\"final_total\":2400}}', '2023-07-28 06:21:15', '2023-07-28 06:21:15'),
(361, 'default', 'added', 18, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase_return\",\"final_total\":600}}', '2023-07-28 06:22:13', '2023-07-28 06:22:13'),
(362, 'default', 'purchase_deleted', 17, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"received\",\"payment_status\":\"due\",\"final_total\":\"2400.0000\"}}', '2023-07-28 06:24:14', '2023-07-28 06:24:14'),
(363, 'default', 'added', 20, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":0}}', '2023-07-28 06:25:14', '2023-07-28 06:25:14'),
(364, 'default', 'purchase_deleted', 20, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"paid\",\"final_total\":\"0.0000\"}}', '2023-07-28 06:25:21', '2023-07-28 06:25:21'),
(365, 'default', 'added', 21, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":2400}}', '2023-07-28 06:25:39', '2023-07-28 06:25:39'),
(366, 'default', 'payment_edited', 21, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"paid\",\"final_total\":\"2400.0000\"},\"old\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":\"2400.0000\"}}', '2023-07-28 06:26:40', '2023-07-28 06:26:40'),
(367, 'default', 'added', 22, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase_return\",\"final_total\":600}}', '2023-07-28 06:28:18', '2023-07-28 06:28:18'),
(368, 'default', 'payment_edited', 22, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase_return\",\"payment_status\":\"paid\",\"final_total\":\"600.0000\"},\"old\":{\"type\":\"purchase_return\",\"payment_status\":\"due\",\"final_total\":\"600.0000\"}}', '2023-07-28 06:28:40', '2023-07-28 06:28:40'),
(369, 'default', 'purchase_deleted', 21, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"received\",\"payment_status\":\"paid\",\"final_total\":\"2400.0000\"}}', '2023-07-28 06:29:20', '2023-07-28 06:29:20'),
(370, 'default', 'added', 23, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":2400}}', '2023-07-28 06:30:14', '2023-07-28 06:30:14');
INSERT INTO `activity_log` (`id`, `log_name`, `description`, `subject_id`, `subject_type`, `business_id`, `causer_id`, `causer_type`, `properties`, `created_at`, `updated_at`) VALUES
(371, 'default', 'edited', 23, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"received\",\"payment_status\":\"due\",\"final_total\":2400},\"old\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":\"2400.0000\"}}', '2023-07-28 06:45:05', '2023-07-28 06:45:05'),
(372, 'default', 'purchase_deleted', 23, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"received\",\"payment_status\":\"due\",\"final_total\":\"2400.0000\"}}', '2023-07-28 06:46:07', '2023-07-28 06:46:07'),
(373, 'default', 'added', 24, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":2400}}', '2023-07-28 06:46:27', '2023-07-28 06:46:27'),
(374, 'default', 'edited', 24, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"received\",\"payment_status\":\"due\",\"final_total\":2000},\"old\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":\"2400.0000\"}}', '2023-07-28 07:04:45', '2023-07-28 07:04:45'),
(375, 'default', 'added', 25, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":1200}}', '2023-07-28 07:20:45', '2023-07-28 07:20:45'),
(376, 'default', 'purchase_deleted', 25, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":\"1200.0000\"}}', '2023-07-28 07:40:03', '2023-07-28 07:40:03'),
(377, 'default', 'added', 26, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":600}}', '2023-07-28 07:40:30', '2023-07-28 07:40:30'),
(378, 'default', 'added', 27, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":150000}}', '2023-07-28 08:46:00', '2023-07-28 08:46:00'),
(379, 'default', 'purchase_deleted', 24, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":\"2000.0000\"}}', '2023-07-28 10:44:30', '2023-07-28 10:44:30'),
(380, 'default', 'purchase_deleted', 26, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":\"600.0000\"}}', '2023-07-28 10:45:33', '2023-07-28 10:45:33'),
(381, 'default', 'added', 28, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":101200}}', '2023-07-28 10:55:54', '2023-07-28 10:55:54'),
(382, 'default', 'edited', 28, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"received\",\"payment_status\":\"due\",\"final_total\":101200},\"old\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":\"101200.0000\"}}', '2023-07-28 13:32:00', '2023-07-28 13:32:00'),
(383, 'default', 'added', 48, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":3400}}', '2023-07-28 13:36:13', '2023-07-28 13:36:13'),
(384, 'default', 'edited', 48, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"received\",\"payment_status\":\"due\",\"final_total\":3400},\"old\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":\"3400.0000\"}}', '2023-07-28 13:41:16', '2023-07-28 13:41:16'),
(385, 'default', 'added', 49, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":3600}}', '2023-07-28 13:41:55', '2023-07-28 13:41:55'),
(386, 'default', 'edited', 49, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"received\",\"payment_status\":\"due\",\"final_total\":3600},\"old\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":\"3600.0000\"}}', '2023-07-28 13:43:53', '2023-07-28 13:43:53'),
(387, 'default', 'added', 50, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":3880}}', '2023-07-28 13:44:49', '2023-07-28 13:44:49'),
(388, 'default', 'edited', 50, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"received\",\"payment_status\":\"due\",\"final_total\":3880},\"old\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":\"3880.0000\"}}', '2023-07-28 13:58:54', '2023-07-28 13:58:54'),
(389, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-29 05:41:59', '2023-07-29 05:41:59'),
(390, 'default', 'added', 51, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":5600}}', '2023-07-29 08:09:40', '2023-07-29 08:09:40'),
(391, 'default', 'added', 52, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":3400}}', '2023-07-29 08:20:34', '2023-07-29 08:20:34'),
(392, 'default', 'edited', 52, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"received\",\"payment_status\":\"due\",\"final_total\":3400},\"old\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":\"3400.0000\"}}', '2023-07-29 08:21:16', '2023-07-29 08:21:16'),
(393, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-07-31 14:47:09', '2023-07-31 14:47:09'),
(394, 'default', 'added', 53, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":555}}', '2023-07-31 14:55:11', '2023-07-31 14:55:11'),
(395, 'default', 'edited', 53, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"received\",\"payment_status\":\"due\",\"final_total\":555},\"old\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":\"555.0000\"}}', '2023-07-31 14:55:34', '2023-07-31 14:55:34'),
(396, 'default', 'added', 54, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":120}}', '2023-07-31 15:02:41', '2023-07-31 15:02:41'),
(397, 'default', 'added', 55, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":240}}', '2023-07-31 15:21:17', '2023-07-31 15:21:17'),
(398, 'default', 'edited', 55, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"received\",\"payment_status\":\"due\",\"final_total\":240},\"old\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":\"240.0000\"}}', '2023-07-31 15:22:17', '2023-07-31 15:22:17'),
(399, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-08-05 05:44:33', '2023-08-05 05:44:33'),
(400, 'default', 'added', 56, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":3000}}', '2023-08-05 06:04:27', '2023-08-05 06:04:27'),
(401, 'default', 'added', 57, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":6900}}', '2023-08-05 06:15:53', '2023-08-05 06:15:53'),
(402, 'default', 'added', 58, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":2850}}', '2023-08-05 06:21:43', '2023-08-05 06:21:43'),
(403, 'default', 'edited', 58, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"received\",\"payment_status\":\"due\",\"final_total\":2850},\"old\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":\"2850.0000\"}}', '2023-08-05 06:25:08', '2023-08-05 06:25:08'),
(404, 'default', 'added', 59, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":2720}}', '2023-08-05 06:31:00', '2023-08-05 06:31:00'),
(405, 'default', 'added', 61, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":2160}}', '2023-08-05 06:33:57', '2023-08-05 06:33:57'),
(406, 'default', 'added', 62, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":1500}}', '2023-08-05 06:35:21', '2023-08-05 06:35:21'),
(407, 'default', 'added', 63, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":1980}}', '2023-08-05 06:44:34', '2023-08-05 06:44:34'),
(408, 'default', 'added', 64, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":3740}}', '2023-08-05 07:31:14', '2023-08-05 07:31:14'),
(409, 'default', 'added', 50, 'App\\Contact', 1, 1, 'App\\User', '[]', '2023-08-05 08:01:01', '2023-08-05 08:01:01'),
(410, 'default', 'added', 65, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":5000}}', '2023-08-05 09:05:48', '2023-08-05 09:05:48'),
(411, 'default', 'edited', 65, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"received\",\"payment_status\":\"due\",\"final_total\":5000},\"old\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":\"5000.0000\"}}', '2023-08-05 09:06:27', '2023-08-05 09:06:27'),
(412, 'default', 'added', 66, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":2000}}', '2023-08-05 09:10:44', '2023-08-05 09:10:44'),
(413, 'default', 'edited', 66, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"received\",\"payment_status\":\"due\",\"final_total\":2000},\"old\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":\"2000.0000\"}}', '2023-08-05 09:11:03', '2023-08-05 09:11:03'),
(414, 'default', 'added', 67, 'App\\Transaction', 1, 1, 'App\\User', '[]', '2023-08-05 09:30:40', '2023-08-05 09:30:40'),
(415, 'default', 'added', 68, 'App\\Transaction', 1, 1, 'App\\User', '[]', '2023-08-05 09:49:57', '2023-08-05 09:49:57'),
(416, 'default', 'added', 69, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":3000}}', '2023-08-05 09:52:31', '2023-08-05 09:52:31'),
(417, 'default', 'added', 89, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":1380}}', '2023-08-05 10:51:56', '2023-08-05 10:51:56'),
(418, 'default', 'added', 90, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":333}}', '2023-08-05 10:55:21', '2023-08-05 10:55:21'),
(419, 'default', 'added', 94, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":3725}}', '2023-08-05 11:01:56', '2023-08-05 11:01:56'),
(420, 'default', 'added', 97, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":8880}}', '2023-08-05 11:05:51', '2023-08-05 11:05:51'),
(421, 'default', 'added', 99, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":1000}}', '2023-08-05 11:10:00', '2023-08-05 11:10:00'),
(422, 'default', 'added', 100, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":8000}}', '2023-08-05 11:12:14', '2023-08-05 11:12:14'),
(423, 'default', 'added', 101, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":500}}', '2023-08-05 11:25:36', '2023-08-05 11:25:36'),
(424, 'default', 'added', 102, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":2000}}', '2023-08-05 11:28:26', '2023-08-05 11:28:26'),
(425, 'default', 'edited', 102, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"received\",\"payment_status\":\"due\",\"final_total\":2000},\"old\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":\"2000.0000\"}}', '2023-08-05 11:29:02', '2023-08-05 11:29:02'),
(426, 'default', 'edited', 101, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"received\",\"payment_status\":\"due\",\"final_total\":500},\"old\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":\"500.0000\"}}', '2023-08-05 11:41:42', '2023-08-05 11:41:42'),
(427, 'default', 'added', 103, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":1000}}', '2023-08-05 11:49:15', '2023-08-05 11:49:15'),
(428, 'default', 'edited', 103, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"received\",\"payment_status\":\"due\",\"final_total\":1000},\"old\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":\"1000.0000\"}}', '2023-08-05 11:49:43', '2023-08-05 11:49:43'),
(429, 'default', 'added', 104, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":600}}', '2023-08-05 12:03:16', '2023-08-05 12:03:16'),
(430, 'default', 'added', 105, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":3500}}', '2023-08-05 12:05:58', '2023-08-05 12:05:58'),
(431, 'default', 'edited', 105, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"received\",\"payment_status\":\"due\",\"final_total\":3500},\"old\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":\"3500.0000\"}}', '2023-08-05 12:06:33', '2023-08-05 12:06:33'),
(432, 'default', 'added', 106, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":600}}', '2023-08-05 12:15:11', '2023-08-05 12:15:11'),
(433, 'default', 'added', 107, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":300}}', '2023-08-05 12:20:34', '2023-08-05 12:20:34'),
(434, 'default', 'added', 108, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":1500}}', '2023-08-05 12:35:04', '2023-08-05 12:35:04'),
(435, 'default', 'edited', 108, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"received\",\"payment_status\":\"due\",\"final_total\":1500},\"old\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":\"1500.0000\"}}', '2023-08-05 12:35:22', '2023-08-05 12:35:22'),
(436, 'default', 'edited', 100, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"received\",\"payment_status\":\"due\",\"final_total\":8000},\"old\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":\"8000.0000\"}}', '2023-08-05 12:49:57', '2023-08-05 12:49:57'),
(437, 'default', 'added', 51, 'App\\Contact', 1, 1, 'App\\User', '[]', '2023-08-05 12:55:00', '2023-08-05 12:55:00'),
(438, 'default', 'added', 109, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":2000}}', '2023-08-05 12:56:06', '2023-08-05 12:56:06'),
(439, 'default', 'edited', 109, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"received\",\"payment_status\":\"due\",\"final_total\":2000},\"old\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":\"2000.0000\"}}', '2023-08-05 12:56:17', '2023-08-05 12:56:17'),
(440, 'default', 'added', 110, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":500}}', '2023-08-05 13:01:12', '2023-08-05 13:01:12'),
(441, 'default', 'added', 111, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":1500}}', '2023-08-05 14:03:45', '2023-08-05 14:03:45'),
(442, 'default', 'edited', 111, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"received\",\"payment_status\":\"due\",\"final_total\":1500},\"old\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":\"1500.0000\"}}', '2023-08-05 14:04:19', '2023-08-05 14:04:19'),
(443, 'default', 'added', 112, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":800}}', '2023-08-05 14:05:36', '2023-08-05 14:05:36'),
(444, 'default', 'edited', 112, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"received\",\"payment_status\":\"due\",\"final_total\":800},\"old\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":\"800.0000\"}}', '2023-08-05 14:06:01', '2023-08-05 14:06:01'),
(445, 'default', 'added', 113, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":1200}}', '2023-08-05 14:07:43', '2023-08-05 14:07:43'),
(446, 'default', 'edited', 113, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"received\",\"payment_status\":\"due\",\"final_total\":1200},\"old\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":\"1200.0000\"}}', '2023-08-05 14:07:54', '2023-08-05 14:07:54'),
(447, 'default', 'added', 52, 'App\\Contact', 1, 1, 'App\\User', '[]', '2023-08-06 07:37:30', '2023-08-06 07:37:30'),
(448, 'default', 'added', 1, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":2000}}', '2023-08-06 07:39:48', '2023-08-06 07:39:48'),
(449, 'default', 'edited', 1, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"received\",\"payment_status\":\"due\",\"final_total\":2000},\"old\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":\"2000.0000\"}}', '2023-08-06 07:40:07', '2023-08-06 07:40:07'),
(450, 'default', 'payment_edited', 1, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"received\",\"payment_status\":\"paid\",\"final_total\":\"2000.0000\"},\"old\":{\"type\":\"purchase\",\"status\":\"received\",\"payment_status\":\"due\",\"final_total\":\"2000.0000\"}}', '2023-08-06 07:40:17', '2023-08-06 07:40:17'),
(451, 'default', 'added', 2, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":1000}}', '2023-08-06 07:52:44', '2023-08-06 07:52:44'),
(452, 'default', 'edited', 2, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"received\",\"payment_status\":\"due\",\"final_total\":1000},\"old\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":\"1000.0000\"}}', '2023-08-06 07:53:22', '2023-08-06 07:53:22'),
(453, 'default', 'added', 3, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":600}}', '2023-08-06 07:53:49', '2023-08-06 07:53:49'),
(454, 'default', 'login', 1, 'App\\User', 1, 1, 'App\\User', '[]', '2023-08-06 10:41:30', '2023-08-06 10:41:30'),
(455, 'default', 'added', 4, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":2400}}', '2023-08-06 10:44:13', '2023-08-06 10:44:13'),
(456, 'default', 'edited', 4, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"received\",\"payment_status\":\"due\",\"final_total\":2400},\"old\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":\"2400.0000\"}}', '2023-08-06 10:58:34', '2023-08-06 10:58:34'),
(457, 'default', 'added', 5, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":750}}', '2023-08-06 11:00:13', '2023-08-06 11:00:13'),
(458, 'default', 'edited', 5, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"received\",\"payment_status\":\"due\",\"final_total\":750},\"old\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":\"750.0000\"}}', '2023-08-06 11:00:18', '2023-08-06 11:00:18'),
(459, 'default', 'added', 6, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":200}}', '2023-08-06 11:01:12', '2023-08-06 11:01:12'),
(460, 'default', 'edited', 6, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"received\",\"payment_status\":\"due\",\"final_total\":200},\"old\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":\"200.0000\"}}', '2023-08-06 11:01:18', '2023-08-06 11:01:18'),
(461, 'default', 'added', 7, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":480}}', '2023-08-06 11:03:22', '2023-08-06 11:03:22'),
(462, 'default', 'edited', 7, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"received\",\"payment_status\":\"due\",\"final_total\":480},\"old\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":\"480.0000\"}}', '2023-08-06 11:03:31', '2023-08-06 11:03:31'),
(463, 'default', 'added', 8, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":300}}', '2023-08-06 11:18:04', '2023-08-06 11:18:04'),
(464, 'default', 'edited', 8, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"received\",\"payment_status\":\"due\",\"final_total\":300},\"old\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":\"300.0000\"}}', '2023-08-06 11:18:14', '2023-08-06 11:18:14'),
(465, 'default', 'added', 9, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":500}}', '2023-08-06 11:19:17', '2023-08-06 11:19:17'),
(466, 'default', 'added', 12, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":1800}}', '2023-08-06 12:55:09', '2023-08-06 12:55:09'),
(467, 'default', 'edited', 12, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"received\",\"payment_status\":\"due\",\"final_total\":1800},\"old\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":\"1800.0000\"}}', '2023-08-06 12:55:31', '2023-08-06 12:55:31'),
(468, 'default', 'added', 53, 'App\\Contact', 1, 1, 'App\\User', '[]', '2023-08-06 12:56:31', '2023-08-06 12:56:31'),
(469, 'default', 'added', 13, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":9000}}', '2023-08-06 12:57:55', '2023-08-06 12:57:55'),
(470, 'default', 'edited', 13, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"received\",\"payment_status\":\"due\",\"final_total\":9000},\"old\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":\"9000.0000\"}}', '2023-08-06 12:58:14', '2023-08-06 12:58:14'),
(471, 'default', 'added', 14, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":5500}}', '2023-08-06 12:58:38', '2023-08-06 12:58:38'),
(472, 'default', 'edited', 14, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"received\",\"payment_status\":\"due\",\"final_total\":5500},\"old\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":\"5500.0000\"}}', '2023-08-06 12:58:45', '2023-08-06 12:58:45'),
(473, 'default', 'added', 15, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":3600}}', '2023-08-06 13:01:21', '2023-08-06 13:01:21'),
(474, 'default', 'edited', 15, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"received\",\"payment_status\":\"due\",\"final_total\":3600},\"old\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":\"3600.0000\"}}', '2023-08-06 13:01:27', '2023-08-06 13:01:27'),
(475, 'default', 'added', 16, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":14000}}', '2023-08-06 13:03:49', '2023-08-06 13:03:49'),
(476, 'default', 'edited', 16, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"received\",\"payment_status\":\"due\",\"final_total\":14000},\"old\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":\"14000.0000\"}}', '2023-08-06 13:03:56', '2023-08-06 13:03:56'),
(477, 'default', 'added', 17, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":15000}}', '2023-08-06 13:15:38', '2023-08-06 13:15:38'),
(478, 'default', 'edited', 17, 'App\\Transaction', 1, 1, 'App\\User', '{\"attributes\":{\"type\":\"purchase\",\"status\":\"received\",\"payment_status\":\"due\",\"final_total\":15000},\"old\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":\"15000.0000\"}}', '2023-08-06 13:15:47', '2023-08-06 13:15:47');

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

--
-- Table structure for table `areas`
--

CREATE TABLE `areas` (
  `id` int UNSIGNED NOT NULL,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `status` tinyint NOT NULL,
  `created_by` int UNSIGNED NOT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `areas`
--

INSERT INTO `areas` (`id`, `name`, `status`, `created_by`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, 'Rupsha123', 3, 1, NULL, '2023-07-21 10:19:13', '2023-07-21 10:21:11'),
(2, 'Boyra', 1, 1, NULL, '2023-07-21 10:19:37', '2023-07-21 10:19:37'),
(3, 'dsfdsfsdf', 1, 1, NULL, '2023-07-21 10:25:11', '2023-07-21 10:25:11'),
(4, 'sddsad', 1, 1, NULL, '2023-07-21 10:26:05', '2023-07-21 10:26:05'),
(5, 'asdsadsad', 1, 1, NULL, '2023-07-21 10:27:23', '2023-07-21 10:27:23'),
(6, 'asdsadasd', 1, 1, NULL, '2023-07-21 10:27:27', '2023-07-21 10:27:27'),
(7, 'sdfsdfsdf', 1, 1, NULL, '2023-07-21 10:27:31', '2023-07-21 10:27:31'),
(8, 'dfdfsdf', 1, 1, NULL, '2023-07-21 10:40:47', '2023-07-21 10:40:47');

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

--
-- Table structure for table `assets`
--

CREATE TABLE `assets` (
  `id` int UNSIGNED NOT NULL,
  `entry_date` date DEFAULT NULL,
  `type_id` int UNSIGNED NOT NULL,
  `amount` double DEFAULT NULL,
  `payment_type` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `note` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `status` tinyint NOT NULL,
  `created_by` int UNSIGNED NOT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `assets`
--

INSERT INTO `assets` (`id`, `entry_date`, `type_id`, `amount`, `payment_type`, `note`, `status`, `created_by`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, '2023-07-18', 2, 5000, 'Cash', 'jjjjjjjjjj', 1, 1, NULL, '2023-07-17 14:43:48', '2023-07-17 14:45:01'),
(3, '2023-07-22', 1, 888888, 'Cash', 'Hello', 1, 1, NULL, '2023-07-17 14:49:19', '2023-07-17 14:49:54'),
(4, '2023-07-19', 2, 5000, 'Cash', NULL, 1, 1, NULL, '2023-07-17 21:16:35', '2023-07-17 21:16:35'),
(5, '2023-07-19', 2, 5000, 'Cash', 'asdasd', 1, 1, NULL, '2023-07-17 21:16:37', '2023-07-17 21:16:37'),
(6, '2023-07-19', 2, 5000, 'Cash', 'asdasd', 1, 1, NULL, '2023-07-17 21:16:40', '2023-07-17 21:16:40'),
(7, '2023-07-20', 4, 200, 'Cash', NULL, 1, 1, NULL, '2023-07-17 21:17:45', '2023-07-17 21:17:45'),
(8, '2023-07-21', 5, 10000, 'Cash', 'lkhmk', 1, 1, NULL, '2023-07-20 15:32:40', '2023-07-20 15:32:40');

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

--
-- Table structure for table `asset_type`
--

CREATE TABLE `asset_type` (
  `id` int UNSIGNED NOT NULL,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `status` tinyint NOT NULL,
  `created_by` int UNSIGNED NOT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `asset_type`
--

INSERT INTO `asset_type` (`id`, `name`, `status`, `created_by`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, 'Test1', 1, 1, NULL, '2023-07-17 14:41:30', '2023-07-17 14:43:05'),
(2, 'Test 2', 1, 1, NULL, '2023-07-17 14:41:42', '2023-07-17 14:48:48'),
(3, 'Test 3', 3, 1, NULL, '2023-07-17 14:48:22', '2023-07-17 14:48:27'),
(4, 'asdasda', 1, 1, NULL, '2023-07-17 21:16:21', '2023-07-17 21:16:21'),
(5, 'ac', 1, 1, NULL, '2023-07-20 15:32:02', '2023-07-20 15:32:02');

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

--
-- Table structure for table `barcodes`
--

CREATE TABLE `barcodes` (
  `id` int UNSIGNED NOT NULL,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `width` double(22,4) DEFAULT NULL,
  `height` double(22,4) DEFAULT NULL,
  `paper_width` double(22,4) DEFAULT NULL,
  `paper_height` double(22,4) DEFAULT NULL,
  `top_margin` double(22,4) DEFAULT NULL,
  `left_margin` double(22,4) DEFAULT NULL,
  `row_distance` double(22,4) DEFAULT NULL,
  `col_distance` double(22,4) DEFAULT NULL,
  `stickers_in_one_row` int DEFAULT NULL,
  `is_default` tinyint(1) NOT NULL DEFAULT '0',
  `is_continuous` tinyint(1) NOT NULL DEFAULT '0',
  `stickers_in_one_sheet` int DEFAULT NULL,
  `business_id` int UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `barcodes`
--

INSERT INTO `barcodes` (`id`, `name`, `description`, `width`, `height`, `paper_width`, `paper_height`, `top_margin`, `left_margin`, `row_distance`, `col_distance`, `stickers_in_one_row`, `is_default`, `is_continuous`, `stickers_in_one_sheet`, `business_id`, `created_at`, `updated_at`) VALUES
(1, '20 Labels per Sheet', 'Sheet Size: 8.5\" x 11\", Label Size: 4\" x 1\", Labels per sheet: 20', 4.0000, 1.0000, 8.5000, 11.0000, 0.5000, 0.1250, 0.0000, 0.1875, 2, 0, 0, 20, NULL, '2017-12-18 00:13:44', '2017-12-18 00:13:44'),
(2, '30 Labels per sheet', 'Sheet Size: 8.5\" x 11\", Label Size: 2.625\" x 1\", Labels per sheet: 30', 2.6250, 1.0000, 8.5000, 11.0000, 0.5000, 0.1880, 0.0000, 0.1250, 3, 0, 0, 30, NULL, '2017-12-18 00:04:39', '2017-12-18 00:10:40'),
(3, '32 Labels per sheet', 'Sheet Size: 8.5\" x 11\", Label Size: 2\" x 1.25\", Labels per sheet: 32', 2.0000, 1.2500, 8.5000, 11.0000, 0.5000, 0.2500, 0.0000, 0.0000, 4, 0, 0, 32, NULL, '2017-12-17 23:55:40', '2017-12-17 23:55:40'),
(4, '40 Labels per sheet', 'Sheet Size: 8.5\" x 11\", Label Size: 2\" x 1\", Labels per sheet: 40', 2.0000, 1.0000, 8.5000, 11.0000, 0.5000, 0.2500, 0.0000, 0.0000, 4, 0, 0, 40, NULL, '2017-12-17 23:58:40', '2017-12-17 23:58:40'),
(5, '50 Labels per Sheet', 'Sheet Size: 8.5\" x 11\", Label Size: 1.5\" x 1\", Labels per sheet: 50', 1.5000, 1.0000, 8.5000, 11.0000, 0.5000, 0.5000, 0.0000, 0.0000, 5, 0, 0, 50, NULL, '2017-12-17 23:51:10', '2017-12-17 23:51:10'),
(6, 'Continuous Rolls - 31.75mm x 25.4mm', 'Label Size: 31.75mm x 25.4mm, Gap: 3.18mm', 1.2500, 1.0000, 1.2500, 0.0000, 0.1250, 0.0000, 0.1250, 0.0000, 1, 0, 1, NULL, NULL, '2017-12-17 23:51:10', '2017-12-17 23:51:10');

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

--
-- Table structure for table `barcode_purchase_prices`
--

CREATE TABLE `barcode_purchase_prices` (
  `id` bigint UNSIGNED NOT NULL,
  `product_barcode_id` bigint UNSIGNED DEFAULT NULL,
  `purchase_price` decimal(8,2) DEFAULT NULL,
  `status` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `barcode_purchase_prices`
--

INSERT INTO `barcode_purchase_prices` (`id`, `product_barcode_id`, `purchase_price`, `status`, `created_at`, `updated_at`) VALUES
(1, 1, '100.00', 1, '2023-08-06 07:37:56', '2023-08-06 07:37:56'),
(2, 2, '100.00', 1, '2023-08-06 10:43:25', '2023-08-06 10:43:25'),
(3, 3, '120.00', 1, '2023-08-06 10:43:25', '2023-08-06 10:43:25'),
(4, 4, '150.00', 1, '2023-08-06 10:43:25', '2023-08-06 10:43:25'),
(5, 5, '1200.00', 1, '2023-08-06 12:57:27', '2023-08-06 12:57:27'),
(6, 6, '1100.00', 1, '2023-08-06 12:57:27', '2023-08-06 12:57:27'),
(7, 7, '900.00', 1, '2023-08-06 12:57:27', '2023-08-06 12:57:27'),
(8, 8, '100.00', 1, '2023-08-06 13:35:25', '2023-08-06 13:35:25');

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

--
-- Table structure for table `barcode_selling_prices`
--

CREATE TABLE `barcode_selling_prices` (
  `id` bigint UNSIGNED NOT NULL,
  `product_barcode_id` bigint UNSIGNED DEFAULT NULL,
  `selling_price` decimal(8,2) DEFAULT NULL,
  `status` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `barcode_selling_prices`
--

INSERT INTO `barcode_selling_prices` (`id`, `product_barcode_id`, `selling_price`, `status`, `created_at`, `updated_at`) VALUES
(1, 1, '200.00', 1, '2023-08-06 07:37:56', '2023-08-06 07:37:56'),
(2, 2, '200.00', 1, '2023-08-06 10:43:25', '2023-08-06 10:43:25'),
(3, 3, '140.00', 1, '2023-08-06 10:43:25', '2023-08-06 10:43:25'),
(4, 4, '200.00', 1, '2023-08-06 10:43:25', '2023-08-06 11:01:18'),
(5, 5, '1500.00', 1, '2023-08-06 12:57:27', '2023-08-06 12:57:27'),
(6, 6, '1450.00', 1, '2023-08-06 12:57:27', '2023-08-06 12:57:27'),
(7, 7, '5.00', 1, '2023-08-06 12:57:27', '2023-08-06 13:15:47'),
(8, 8, '200.00', 1, '2023-08-06 13:35:25', '2023-08-06 13:35:25');

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

--
-- Table structure for table `bookings`
--

CREATE TABLE `bookings` (
  `id` int UNSIGNED NOT NULL,
  `contact_id` int UNSIGNED NOT NULL,
  `waiter_id` int UNSIGNED DEFAULT NULL,
  `table_id` int UNSIGNED DEFAULT NULL,
  `correspondent_id` int DEFAULT NULL,
  `business_id` int UNSIGNED NOT NULL,
  `location_id` int UNSIGNED NOT NULL,
  `booking_start` datetime NOT NULL,
  `booking_end` datetime NOT NULL,
  `created_by` int UNSIGNED NOT NULL,
  `booking_status` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `booking_note` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

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

--
-- Table structure for table `brands`
--

CREATE TABLE `brands` (
  `id` int UNSIGNED NOT NULL,
  `business_id` int UNSIGNED NOT NULL,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `created_by` int UNSIGNED NOT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `brands`
--

INSERT INTO `brands` (`id`, `business_id`, `name`, `description`, `created_by`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, 1, 'Dettol', NULL, 1, NULL, '2023-07-10 04:36:29', '2023-07-10 04:36:29'),
(2, 1, 'KurKure', NULL, 1, NULL, '2023-07-10 04:37:11', '2023-07-10 04:37:11'),
(3, 1, 'NIVEA', NULL, 1, NULL, '2023-07-10 04:39:48', '2023-07-10 04:39:48'),
(4, 1, 'Gillette', NULL, 1, NULL, '2023-07-10 04:40:25', '2023-07-10 04:40:25'),
(5, 1, 'Cute', NULL, 1, NULL, '2023-07-10 04:41:16', '2023-07-10 04:41:16'),
(6, 1, 'Elite', NULL, 1, NULL, '2023-07-10 04:41:46', '2023-07-10 04:41:46'),
(7, 1, 'Horlicks', NULL, 1, NULL, '2023-07-10 04:42:40', '2023-07-10 04:42:40'),
(8, 1, 'Boost', NULL, 1, NULL, '2023-07-10 04:42:54', '2023-07-10 04:42:54'),
(9, 1, 'Treat', NULL, 1, NULL, '2023-07-10 04:43:15', '2023-07-10 04:43:15'),
(10, 1, 'Lays', NULL, 1, NULL, '2023-07-10 04:43:39', '2023-07-10 04:43:39'),
(11, 1, 'RING CHIPS', NULL, 1, NULL, '2023-07-10 04:44:08', '2023-07-10 04:44:08'),
(12, 1, 'Fiama', NULL, 1, NULL, '2023-07-10 04:44:49', '2023-07-10 04:44:49'),
(13, 1, 'Sunsilk', NULL, 1, NULL, '2023-07-10 04:45:25', '2023-07-10 04:45:25'),
(14, 1, 'Kool', NULL, 1, NULL, '2023-07-10 04:45:48', '2023-07-10 04:45:48'),
(15, 1, 'Cerelac', NULL, 1, NULL, '2023-07-10 04:48:10', '2023-07-10 04:48:10'),
(16, 1, 'Biomil', NULL, 1, NULL, '2023-07-11 11:59:12', '2023-07-11 11:59:12'),
(17, 1, 'MyKid', NULL, 1, NULL, '2023-07-11 11:59:46', '2023-07-11 11:59:46'),
(18, 1, 'EldoBaby', NULL, 1, NULL, '2023-07-11 12:01:48', '2023-07-11 12:01:48'),
(19, 1, 'Prima', NULL, 1, NULL, '2023-07-11 12:02:21', '2023-07-11 12:02:21'),
(20, 1, 'BabyLuck', NULL, 1, NULL, '2023-07-11 12:02:34', '2023-07-11 12:02:34'),
(21, 1, 'PFL', NULL, 1, NULL, '2023-07-11 12:02:50', '2023-07-11 12:02:50'),
(22, 1, 'NAN', NULL, 1, NULL, '2023-07-11 12:03:04', '2023-07-11 12:03:04'),
(23, 1, 'LACTOGEN', NULL, 1, NULL, '2023-07-11 12:05:33', '2023-07-11 12:05:33'),
(24, 1, 'Dove', NULL, 1, NULL, '2023-07-11 13:57:19', '2023-07-11 13:57:19'),
(25, 1, 'WILD STONE', NULL, 1, NULL, '2023-07-12 12:54:36', '2023-07-12 12:54:36'),
(26, 1, 'RUPCHNDA', NULL, 1, NULL, '2023-07-13 04:39:45', '2023-07-13 04:39:45'),
(27, 1, 'Johnson', NULL, 1, NULL, '2023-07-13 06:22:14', '2023-07-13 06:22:14'),
(28, 1, 'Test Brand', NULL, 1, NULL, '2023-07-28 04:52:26', '2023-07-28 04:52:26');

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

--
-- Table structure for table `business`
--

CREATE TABLE `business` (
  `id` int UNSIGNED NOT NULL,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `currency_id` int UNSIGNED NOT NULL,
  `start_date` date DEFAULT NULL,
  `tax_number_1` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `tax_label_1` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `tax_number_2` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `tax_label_2` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `code_label_1` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `code_1` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `code_label_2` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `code_2` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `default_sales_tax` int UNSIGNED DEFAULT NULL,
  `default_profit_percent` double(5,2) NOT NULL DEFAULT '0.00',
  `owner_id` int UNSIGNED NOT NULL,
  `time_zone` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'Asia/Kolkata',
  `fy_start_month` tinyint NOT NULL DEFAULT '1',
  `accounting_method` enum('fifo','lifo','avco') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'fifo',
  `default_sales_discount` decimal(5,2) DEFAULT NULL,
  `sell_price_tax` enum('includes','excludes') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'includes',
  `logo` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `sku_prefix` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `enable_product_expiry` tinyint(1) NOT NULL DEFAULT '0',
  `expiry_type` enum('add_expiry','add_manufacturing') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'add_expiry',
  `on_product_expiry` enum('keep_selling','stop_selling','auto_delete') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'keep_selling',
  `stop_selling_before` int NOT NULL COMMENT 'Stop selling expied item n days before expiry',
  `enable_tooltip` tinyint(1) NOT NULL DEFAULT '1',
  `purchase_in_diff_currency` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'Allow purchase to be in different currency then the business currency',
  `purchase_currency_id` int UNSIGNED DEFAULT NULL,
  `p_exchange_rate` decimal(20,3) NOT NULL DEFAULT '1.000',
  `transaction_edit_days` int UNSIGNED NOT NULL DEFAULT '30',
  `stock_expiry_alert_days` int UNSIGNED NOT NULL DEFAULT '30',
  `keyboard_shortcuts` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `pos_settings` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `weighing_scale_setting` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'used to store the configuration of weighing scale',
  `enable_brand` tinyint(1) NOT NULL DEFAULT '1',
  `enable_category` tinyint(1) NOT NULL DEFAULT '1',
  `enable_sub_category` tinyint(1) NOT NULL DEFAULT '1',
  `enable_price_tax` tinyint(1) NOT NULL DEFAULT '1',
  `enable_purchase_status` tinyint(1) DEFAULT '1',
  `enable_lot_number` tinyint(1) NOT NULL DEFAULT '0',
  `default_unit` int DEFAULT NULL,
  `enable_sub_units` tinyint(1) NOT NULL DEFAULT '0',
  `enable_racks` tinyint(1) NOT NULL DEFAULT '0',
  `enable_row` tinyint(1) NOT NULL DEFAULT '0',
  `enable_position` tinyint(1) NOT NULL DEFAULT '0',
  `enable_editing_product_from_purchase` tinyint(1) NOT NULL DEFAULT '1',
  `sales_cmsn_agnt` enum('logged_in_user','user','cmsn_agnt') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `item_addition_method` tinyint(1) NOT NULL DEFAULT '1',
  `enable_inline_tax` tinyint(1) NOT NULL DEFAULT '1',
  `currency_symbol_placement` enum('before','after') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'before',
  `enabled_modules` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `date_format` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'm/d/Y',
  `time_format` enum('12','24') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '24',
  `currency_precision` tinyint NOT NULL DEFAULT '2',
  `quantity_precision` tinyint NOT NULL DEFAULT '2',
  `ref_no_prefixes` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `theme_color` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_by` int DEFAULT NULL,
  `enable_rp` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'rp is the short form of reward points',
  `rp_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'rp is the short form of reward points',
  `amount_for_unit_rp` decimal(22,4) NOT NULL DEFAULT '1.0000' COMMENT 'rp is the short form of reward points',
  `min_order_total_for_rp` decimal(22,4) NOT NULL DEFAULT '1.0000' COMMENT 'rp is the short form of reward points',
  `max_rp_per_order` int DEFAULT NULL COMMENT 'rp is the short form of reward points',
  `redeem_amount_per_unit_rp` decimal(22,4) NOT NULL DEFAULT '1.0000' COMMENT 'rp is the short form of reward points',
  `min_order_total_for_redeem` decimal(22,4) NOT NULL DEFAULT '1.0000' COMMENT 'rp is the short form of reward points',
  `min_redeem_point` int DEFAULT NULL COMMENT 'rp is the short form of reward points',
  `max_redeem_point` int DEFAULT NULL COMMENT 'rp is the short form of reward points',
  `rp_expiry_period` int DEFAULT NULL COMMENT 'rp is the short form of reward points',
  `rp_expiry_type` enum('month','year') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'year' COMMENT 'rp is the short form of reward points',
  `email_settings` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `sms_settings` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `custom_labels` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `common_settings` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `business`
--

INSERT INTO `business` (`id`, `name`, `currency_id`, `start_date`, `tax_number_1`, `tax_label_1`, `tax_number_2`, `tax_label_2`, `code_label_1`, `code_1`, `code_label_2`, `code_2`, `default_sales_tax`, `default_profit_percent`, `owner_id`, `time_zone`, `fy_start_month`, `accounting_method`, `default_sales_discount`, `sell_price_tax`, `logo`, `sku_prefix`, `enable_product_expiry`, `expiry_type`, `on_product_expiry`, `stop_selling_before`, `enable_tooltip`, `purchase_in_diff_currency`, `purchase_currency_id`, `p_exchange_rate`, `transaction_edit_days`, `stock_expiry_alert_days`, `keyboard_shortcuts`, `pos_settings`, `weighing_scale_setting`, `enable_brand`, `enable_category`, `enable_sub_category`, `enable_price_tax`, `enable_purchase_status`, `enable_lot_number`, `default_unit`, `enable_sub_units`, `enable_racks`, `enable_row`, `enable_position`, `enable_editing_product_from_purchase`, `sales_cmsn_agnt`, `item_addition_method`, `enable_inline_tax`, `currency_symbol_placement`, `enabled_modules`, `date_format`, `time_format`, `currency_precision`, `quantity_precision`, `ref_no_prefixes`, `theme_color`, `created_by`, `enable_rp`, `rp_name`, `amount_for_unit_rp`, `min_order_total_for_rp`, `max_rp_per_order`, `redeem_amount_per_unit_rp`, `min_order_total_for_redeem`, `min_redeem_point`, `max_redeem_point`, `rp_expiry_period`, `rp_expiry_type`, `email_settings`, `sms_settings`, `custom_labels`, `common_settings`, `is_active`, `created_at`, `updated_at`) VALUES
(1, 'AL-NOOR SHOP', 134, '2022-12-11', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0.00, 1, 'Asia/Dhaka', 1, 'fifo', '0.00', 'includes', '1688803115_lal-logo.jpeg', NULL, 0, 'add_expiry', 'keep_selling', 0, 0, 0, NULL, '1.000', 30, 10, '{\"pos\":{\"express_checkout\":\"shift+e\",\"pay_n_ckeckout\":\"enter\",\"draft\":\"shift+d\",\"cancel\":\"shift+c\",\"recent_product_quantity\":\"f2\",\"weighing_scale\":null,\"edit_discount\":\"shift+i\",\"edit_order_tax\":\"shift+t\",\"add_payment_row\":\"shift+r\",\"finalize_payment\":\"enter\",\"add_new_product\":\"f4\"}}', '{\"amount_rounding_method\":null,\"cmmsn_calculation_type\":\"invoice_value\",\"razor_pay_key_id\":null,\"razor_pay_key_secret\":null,\"stripe_public_key\":null,\"stripe_secret_key\":null,\"cash_denominations\":null,\"enable_cash_denomination_on\":\"pos_screen\",\"disable_pay_checkout\":0,\"disable_draft\":0,\"disable_express_checkout\":0,\"hide_product_suggestion\":0,\"hide_recent_trans\":0,\"disable_discount\":0,\"disable_order_tax\":0,\"is_pos_subtotal_editable\":0}', '{\"label_prefix\":null,\"product_sku_length\":\"4\",\"qty_length\":\"3\",\"qty_length_decimal\":\"2\"}', 1, 1, 1, 1, 1, 0, 1, 0, 0, 0, 0, 1, NULL, 1, 0, 'before', '[\"purchases\",\"add_sale\",\"pos_sale\",\"stock_transfers\",\"stock_adjustment\",\"expenses\",\"account\"]', 'm/d/Y', '24', 2, 2, '{\"purchase\":\"PO\",\"purchase_return\":null,\"purchase_requisition\":null,\"purchase_order\":null,\"stock_transfer\":\"ST\",\"stock_adjustment\":\"SA\",\"sell_return\":\"CN\",\"expense\":\"EP\",\"contacts\":\"CO\",\"purchase_payment\":\"PP\",\"sell_payment\":\"SP\",\"expense_payment\":null,\"business_location\":\"BL\",\"username\":null,\"subscription\":null,\"draft\":null,\"sales_order\":null}', 'purple', NULL, 0, NULL, '1.0000', '1.0000', NULL, '1.0000', '1.0000', NULL, NULL, NULL, 'year', '{\"mail_driver\":\"smtp\",\"mail_host\":null,\"mail_port\":null,\"mail_username\":null,\"mail_password\":null,\"mail_encryption\":null,\"mail_from_address\":null,\"mail_from_name\":null}', '{\"sms_service\":\"other\",\"nexmo_key\":null,\"nexmo_secret\":null,\"nexmo_from\":null,\"twilio_sid\":null,\"twilio_token\":null,\"twilio_from\":null,\"url\":null,\"send_to_param_name\":\"to\",\"msg_param_name\":\"text\",\"request_method\":\"post\",\"header_1\":null,\"header_val_1\":null,\"header_2\":null,\"header_val_2\":null,\"header_3\":null,\"header_val_3\":null,\"param_1\":null,\"param_val_1\":null,\"param_2\":null,\"param_val_2\":null,\"param_3\":null,\"param_val_3\":null,\"param_4\":null,\"param_val_4\":null,\"param_5\":null,\"param_val_5\":null,\"param_6\":null,\"param_val_6\":null,\"param_7\":null,\"param_val_7\":null,\"param_8\":null,\"param_val_8\":null,\"param_9\":null,\"param_val_9\":null,\"param_10\":null,\"param_val_10\":null}', '{\"payments\":{\"custom_pay_1\":null,\"custom_pay_2\":null,\"custom_pay_3\":null,\"custom_pay_4\":null,\"custom_pay_5\":null,\"custom_pay_6\":null,\"custom_pay_7\":null},\"contact\":{\"custom_field_1\":null,\"custom_field_2\":null,\"custom_field_3\":null,\"custom_field_4\":null,\"custom_field_5\":null,\"custom_field_6\":null,\"custom_field_7\":null,\"custom_field_8\":null,\"custom_field_9\":null,\"custom_field_10\":null},\"product\":{\"custom_field_1\":null,\"custom_field_2\":null,\"custom_field_3\":null,\"custom_field_4\":null},\"location\":{\"custom_field_1\":null,\"custom_field_2\":null,\"custom_field_3\":null,\"custom_field_4\":null},\"user\":{\"custom_field_1\":null,\"custom_field_2\":null,\"custom_field_3\":null,\"custom_field_4\":null},\"purchase\":{\"custom_field_1\":null,\"custom_field_2\":null,\"custom_field_3\":null,\"custom_field_4\":null},\"purchase_shipping\":{\"custom_field_1\":null,\"custom_field_2\":null,\"custom_field_3\":null,\"custom_field_4\":null,\"custom_field_5\":null},\"sell\":{\"custom_field_1\":null,\"custom_field_2\":null,\"custom_field_3\":null,\"custom_field_4\":null},\"shipping\":{\"custom_field_1\":null,\"custom_field_2\":null,\"custom_field_3\":null,\"custom_field_4\":null,\"custom_field_5\":null},\"types_of_service\":{\"custom_field_1\":null,\"custom_field_2\":null,\"custom_field_3\":null,\"custom_field_4\":null,\"custom_field_5\":null,\"custom_field_6\":null}}', '{\"default_credit_limit\":null,\"default_datatable_page_entries\":\"25\"}', 1, '2022-12-11 10:37:42', '2023-08-06 13:15:38');

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

--
-- Table structure for table `business_locations`
--

CREATE TABLE `business_locations` (
  `id` int UNSIGNED NOT NULL,
  `business_id` int UNSIGNED NOT NULL,
  `location_id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `name` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `landmark` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `country` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `state` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `city` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `zip_code` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `invoice_scheme_id` int UNSIGNED NOT NULL,
  `invoice_layout_id` int UNSIGNED NOT NULL,
  `sale_invoice_layout_id` int DEFAULT NULL,
  `selling_price_group_id` int DEFAULT NULL,
  `print_receipt_on_invoice` tinyint(1) DEFAULT '1',
  `receipt_printer_type` enum('browser','printer') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'browser',
  `printer_id` int DEFAULT NULL,
  `mobile` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `alternate_number` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `email` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `website` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `featured_products` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `default_payment_accounts` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `custom_field1` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `custom_field2` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `custom_field3` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `custom_field4` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `business_locations`
--

INSERT INTO `business_locations` (`id`, `business_id`, `location_id`, `name`, `landmark`, `country`, `state`, `city`, `zip_code`, `invoice_scheme_id`, `invoice_layout_id`, `sale_invoice_layout_id`, `selling_price_group_id`, `print_receipt_on_invoice`, `receipt_printer_type`, `printer_id`, `mobile`, `alternate_number`, `email`, `website`, `featured_products`, `is_active`, `default_payment_accounts`, `custom_field1`, `custom_field2`, `custom_field3`, `custom_field4`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, 1, 'BL0001', 'AL-NOOR SHOP', 'dhaka', 'Bangladesh', 'Dhaka', 'khulna', '9100', 1, 1, 1, NULL, 1, 'browser', NULL, '0174954251', '01952452155', 'alnoor@gmail.com', NULL, NULL, 1, '{\"cash\":{\"is_enabled\":\"1\",\"account\":null},\"card\":{\"is_enabled\":\"1\",\"account\":null},\"cheque\":{\"is_enabled\":\"1\",\"account\":null},\"bank_transfer\":{\"is_enabled\":\"1\",\"account\":null},\"other\":{\"is_enabled\":\"1\",\"account\":null},\"custom_pay_1\":{\"account\":null},\"custom_pay_2\":{\"account\":null},\"custom_pay_3\":{\"account\":null},\"custom_pay_4\":{\"account\":null},\"custom_pay_5\":{\"account\":null},\"custom_pay_6\":{\"account\":null},\"custom_pay_7\":{\"account\":null}}', NULL, NULL, NULL, NULL, NULL, '2022-12-11 10:37:42', '2023-07-17 18:59:12');

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

--
-- Table structure for table `cash_denominations`
--

CREATE TABLE `cash_denominations` (
  `id` bigint UNSIGNED NOT NULL,
  `business_id` int NOT NULL,
  `amount` decimal(22,4) NOT NULL,
  `total_count` int NOT NULL,
  `model_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `model_id` bigint UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

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

--
-- Table structure for table `cash_registers`
--

CREATE TABLE `cash_registers` (
  `id` int UNSIGNED NOT NULL,
  `business_id` int UNSIGNED NOT NULL,
  `location_id` int DEFAULT NULL,
  `user_id` int UNSIGNED DEFAULT NULL,
  `status` enum('close','open') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'open',
  `closed_at` datetime DEFAULT NULL,
  `closing_amount` decimal(22,4) NOT NULL DEFAULT '0.0000',
  `total_card_slips` int NOT NULL DEFAULT '0',
  `total_cheques` int NOT NULL DEFAULT '0',
  `denominations` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `closing_note` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `cash_registers`
--

INSERT INTO `cash_registers` (`id`, `business_id`, `location_id`, `user_id`, `status`, `closed_at`, `closing_amount`, `total_card_slips`, `total_cheques`, `denominations`, `closing_note`, `created_at`, `updated_at`) VALUES
(1, 1, 1, 1, 'open', NULL, '0.0000', 0, 0, NULL, NULL, '2023-08-06 07:53:00', '2023-08-06 07:53:37');

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

--
-- Table structure for table `cash_register_transactions`
--

CREATE TABLE `cash_register_transactions` (
  `id` int UNSIGNED NOT NULL,
  `cash_register_id` int UNSIGNED NOT NULL,
  `amount` decimal(22,4) NOT NULL DEFAULT '0.0000',
  `pay_method` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `type` enum('debit','credit') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `transaction_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `transaction_id` int DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `cash_register_transactions`
--

INSERT INTO `cash_register_transactions` (`id`, `cash_register_id`, `amount`, `pay_method`, `type`, `transaction_type`, `transaction_id`, `created_at`, `updated_at`) VALUES
(1, 1, '600.0000', 'cash', 'credit', 'sell', 3, '2023-08-06 07:53:49', '2023-08-06 07:53:49');

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

--
-- Table structure for table `categories`
--

CREATE TABLE `categories` (
  `id` int UNSIGNED NOT NULL,
  `name` varchar(191) DEFAULT NULL,
  `business_id` int UNSIGNED DEFAULT NULL,
  `short_code` int DEFAULT NULL,
  `parent_id` int DEFAULT NULL,
  `created_by` int UNSIGNED DEFAULT NULL,
  `category_type` varchar(191) DEFAULT NULL,
  `description` int DEFAULT NULL,
  `sub_parent_id` int DEFAULT NULL,
  `slug` varchar(191) DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `status` tinyint DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `categories`
--

INSERT INTO `categories` (`id`, `name`, `business_id`, `short_code`, `parent_id`, `created_by`, `category_type`, `description`, `sub_parent_id`, `slug`, `deleted_at`, `created_at`, `updated_at`, `status`) VALUES
(1, 'Test', 1, 650, 0, 1, 'product', NULL, 0, NULL, NULL, '2023-08-06 07:36:11', '2023-08-06 07:36:11', 1);

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

--
-- Table structure for table `categorizables`
--

CREATE TABLE `categorizables` (
  `category_id` int NOT NULL,
  `categorizable_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `categorizable_id` bigint UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

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

--
-- Table structure for table `contacts`
--

CREATE TABLE `contacts` (
  `id` int UNSIGNED NOT NULL,
  `business_id` int UNSIGNED NOT NULL,
  `type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `supplier_business_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `prefix` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `first_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `middle_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `last_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `email` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `contact_id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `contact_status` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'active',
  `tax_number` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `city` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `state` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `country` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `address_line_1` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `address_line_2` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `zip_code` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `dob` date DEFAULT NULL,
  `mobile` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `landline` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `alternate_number` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `pay_term_number` int DEFAULT NULL,
  `pay_term_type` enum('days','months') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `credit_limit` decimal(22,4) DEFAULT NULL,
  `created_by` int UNSIGNED NOT NULL,
  `balance` decimal(22,4) NOT NULL DEFAULT '0.0000',
  `total_rp` int NOT NULL DEFAULT '0' COMMENT 'rp is the short form of reward points',
  `total_rp_used` int NOT NULL DEFAULT '0' COMMENT 'rp is the short form of reward points',
  `total_rp_expired` int NOT NULL DEFAULT '0' COMMENT 'rp is the short form of reward points',
  `is_default` tinyint(1) NOT NULL DEFAULT '0',
  `shipping_address` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `shipping_custom_field_details` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `is_export` tinyint(1) NOT NULL DEFAULT '0',
  `export_custom_field_1` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `export_custom_field_2` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `export_custom_field_3` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `export_custom_field_4` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `export_custom_field_5` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `export_custom_field_6` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `position` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `customer_group_id` int DEFAULT NULL,
  `custom_field1` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `custom_field2` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `custom_field3` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `custom_field4` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `custom_field5` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `custom_field6` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `custom_field7` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `custom_field8` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `custom_field9` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `custom_field10` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `contacts`
--

INSERT INTO `contacts` (`id`, `business_id`, `type`, `supplier_business_name`, `name`, `prefix`, `first_name`, `middle_name`, `last_name`, `email`, `contact_id`, `contact_status`, `tax_number`, `city`, `state`, `country`, `address_line_1`, `address_line_2`, `zip_code`, `dob`, `mobile`, `landline`, `alternate_number`, `pay_term_number`, `pay_term_type`, `credit_limit`, `created_by`, `balance`, `total_rp`, `total_rp_used`, `total_rp_expired`, `is_default`, `shipping_address`, `shipping_custom_field_details`, `is_export`, `export_custom_field_1`, `export_custom_field_2`, `export_custom_field_3`, `export_custom_field_4`, `export_custom_field_5`, `export_custom_field_6`, `position`, `customer_group_id`, `custom_field1`, `custom_field2`, `custom_field3`, `custom_field4`, `custom_field5`, `custom_field6`, `custom_field7`, `custom_field8`, `custom_field9`, `custom_field10`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, 1, 'customer', NULL, 'Walk-In Customer', NULL, NULL, NULL, NULL, NULL, 'CO0001', 'active', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', NULL, NULL, NULL, NULL, '0.0000', 1, '0.0000', 0, 0, 0, 1, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2023-05-15 05:28:29', '2023-05-15 05:28:29'),
(42, 1, 'supplier', 'Unilever', '12Unilever, Unilever (Joshim)', NULL, 'Unilever, Unilever (Joshim)', NULL, NULL, NULL, 'CO0054', 'active', NULL, NULL, NULL, NULL, 'Sher-e Bangla Road', NULL, NULL, NULL, '01952984570', NULL, NULL, NULL, NULL, NULL, 1, '0.0000', 0, 0, 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '0', '07/11/2023', 'Md.Shamim', '01636907173', 'Md.Joshim', '01864733838', NULL, NULL, NULL, NULL, NULL, '2023-07-11 12:23:57', '2023-07-11 12:23:57'),
(43, 1, 'supplier', 'Bangladesh Edible Oil Limited (BEOL)', 'Bangladesh Edible Oil Limited (BEOL), Rupchanda', NULL, 'Bangladesh Edible Oil Limited (BEOL), Rupchanda', NULL, NULL, NULL, 'CO0055', 'active', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '174525889', NULL, NULL, NULL, NULL, NULL, 1, '0.0000', 0, 0, 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '0', '07/11/2023', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2023-07-11 13:04:13', '2023-07-11 13:04:13'),
(44, 1, 'supplier', 'Nava Distribution', 'Nava Distribution, Wild Stone', NULL, 'Nava Distribution, Wild Stone', NULL, NULL, NULL, 'CO0056', 'active', NULL, NULL, NULL, NULL, 'Hokars Market', NULL, NULL, NULL, '01911277711', NULL, NULL, NULL, NULL, NULL, 1, '0.0000', 0, 0, 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '0', '07/12/2023', 'Amirul', '01959785453', 'Arif Sheikh', '01404143625', NULL, NULL, NULL, NULL, NULL, '2023-07-12 12:04:24', '2023-07-12 12:04:24'),
(45, 1, 'supplier', 'Johnson & Johnson Pvt.Ltd', 'Johnson & Johnson Pvt.Ltd, International Distribution Co.', NULL, 'Johnson & Johnson Pvt.Ltd, International Distribution Co.', NULL, NULL, NULL, 'CO0057', 'active', NULL, NULL, NULL, NULL, 'Farazi Para', NULL, NULL, NULL, '01715548222', NULL, NULL, NULL, NULL, NULL, 1, '0.0000', 0, 0, 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '0', '07/12/2023', 'Md.Shohag', '01979204819', 'Md.Alamin', '01912948561', NULL, NULL, NULL, NULL, NULL, '2023-07-12 12:08:40', '2023-07-12 12:08:40'),
(46, 1, 'supplier', 'Dabur Bangladesh', 'Dabur Bangladesh, Dabur', NULL, 'Dabur Bangladesh, Dabur', NULL, NULL, NULL, 'CO0058', 'active', NULL, NULL, NULL, NULL, 'New-market', NULL, NULL, NULL, '01677228855', NULL, NULL, NULL, NULL, NULL, 1, '0.0000', 0, 0, 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '0', '07/12/2023', 'Md.Faisal', '01878076936', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2023-07-12 12:28:38', '2023-07-12 12:28:38'),
(47, 1, 'customer', NULL, 'Shanto Halder', NULL, 'Shanto Halder', NULL, NULL, 'shanto@gmail.com', 'CO0059', 'active', NULL, NULL, NULL, NULL, 'Boyra, Khulna', NULL, NULL, NULL, '01749717065', NULL, NULL, NULL, NULL, NULL, 1, '0.0000', 0, 0, 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '0', '07/17/2023', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2023-07-17 17:43:42', '2023-07-17 17:43:42'),
(49, 1, 'supplier', 'Test', 'test supplier', NULL, 'test supplier', NULL, NULL, 'testsupplier@gmail.com', 'CO0061', 'active', NULL, NULL, NULL, NULL, 'Demo Address', NULL, NULL, NULL, '01742152362', NULL, NULL, NULL, NULL, NULL, 1, '0.0000', 0, 0, 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '100', '07/28/2023', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2023-07-28 05:21:07', '2023-07-28 05:21:07'),
(50, 1, 'supplier', NULL, 'Zakir Hossain', NULL, 'Zakir Hossain', NULL, NULL, NULL, 'CO0062', 'active', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '01749717066', NULL, NULL, NULL, NULL, NULL, 1, '0.0000', 0, 0, 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '0', '08/05/2023', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2023-08-05 08:01:01', '2023-08-05 08:01:01'),
(51, 1, 'supplier', NULL, 'Shopon', NULL, 'Shopon', NULL, NULL, NULL, 'CO0063', 'active', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '01312154124', NULL, NULL, NULL, NULL, NULL, 1, '0.0000', 0, 0, 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '0', '08/05/2023', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2023-08-05 12:55:00', '2023-08-05 12:55:00'),
(52, 1, 'supplier', NULL, 'akash', NULL, 'akash', NULL, NULL, NULL, 'CO0064', 'active', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '01912154125', NULL, NULL, NULL, NULL, NULL, 1, '0.0000', 0, 0, 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '0', '08/06/2023', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2023-08-06 07:37:30', '2023-08-06 07:37:30'),
(53, 1, 'supplier', NULL, 'Boni', NULL, 'Boni', NULL, NULL, NULL, 'CO0065', 'active', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '01952125412', NULL, NULL, NULL, NULL, NULL, 1, '0.0000', 0, 0, 0, 0, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '0', '08/06/2023', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2023-08-06 12:56:31', '2023-08-06 12:56:31');

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

--
-- Table structure for table `currencies`
--

CREATE TABLE `currencies` (
  `id` int UNSIGNED NOT NULL,
  `country` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `currency` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `code` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `symbol` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `thousand_separator` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `decimal_separator` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `currencies`
--

INSERT INTO `currencies` (`id`, `country`, `currency`, `code`, `symbol`, `thousand_separator`, `decimal_separator`, `created_at`, `updated_at`) VALUES
(1, 'Albania', 'Leke', 'ALL', 'Lek', ',', '.', NULL, NULL),
(2, 'America', 'Dollars', 'USD', '$', ',', '.', NULL, NULL),
(3, 'Afghanistan', 'Afghanis', 'AF', '؋', ',', '.', NULL, NULL),
(4, 'Argentina', 'Pesos', 'ARS', '$', ',', '.', NULL, NULL),
(5, 'Aruba', 'Guilders', 'AWG', 'ƒ', ',', '.', NULL, NULL),
(6, 'Australia', 'Dollars', 'AUD', '$', ',', '.', NULL, NULL),
(7, 'Azerbaijan', 'New Manats', 'AZ', 'ман', ',', '.', NULL, NULL),
(8, 'Bahamas', 'Dollars', 'BSD', '$', ',', '.', NULL, NULL),
(9, 'Barbados', 'Dollars', 'BBD', '$', ',', '.', NULL, NULL),
(10, 'Belarus', 'Rubles', 'BYR', 'p.', ',', '.', NULL, NULL),
(11, 'Belgium', 'Euro', 'EUR', '€', ',', '.', NULL, NULL),
(12, 'Beliz', 'Dollars', 'BZD', 'BZ$', ',', '.', NULL, NULL),
(13, 'Bermuda', 'Dollars', 'BMD', '$', ',', '.', NULL, NULL),
(14, 'Bolivia', 'Bolivianos', 'BOB', '$b', ',', '.', NULL, NULL),
(15, 'Bosnia and Herzegovina', 'Convertible Marka', 'BAM', 'KM', ',', '.', NULL, NULL),
(16, 'Botswana', 'Pula\'s', 'BWP', 'P', ',', '.', NULL, NULL),
(17, 'Bulgaria', 'Leva', 'BG', 'лв', ',', '.', NULL, NULL),
(18, 'Brazil', 'Reais', 'BRL', 'R$', ',', '.', NULL, NULL),
(19, 'Britain [United Kingdom]', 'Pounds', 'GBP', '£', ',', '.', NULL, NULL),
(20, 'Brunei Darussalam', 'Dollars', 'BND', '$', ',', '.', NULL, NULL),
(21, 'Cambodia', 'Riels', 'KHR', '៛', ',', '.', NULL, NULL),
(22, 'Canada', 'Dollars', 'CAD', '$', ',', '.', NULL, NULL),
(23, 'Cayman Islands', 'Dollars', 'KYD', '$', ',', '.', NULL, NULL),
(24, 'Chile', 'Pesos', 'CLP', '$', ',', '.', NULL, NULL),
(25, 'China', 'Yuan Renminbi', 'CNY', '¥', ',', '.', NULL, NULL),
(26, 'Colombia', 'Pesos', 'COP', '$', ',', '.', NULL, NULL),
(27, 'Costa Rica', 'Colón', 'CRC', '₡', ',', '.', NULL, NULL),
(28, 'Croatia', 'Kuna', 'HRK', 'kn', ',', '.', NULL, NULL),
(29, 'Cuba', 'Pesos', 'CUP', '₱', ',', '.', NULL, NULL),
(30, 'Cyprus', 'Euro', 'EUR', '€', '.', ',', NULL, NULL),
(31, 'Czech Republic', 'Koruny', 'CZK', 'Kč', ',', '.', NULL, NULL),
(32, 'Denmark', 'Kroner', 'DKK', 'kr', ',', '.', NULL, NULL),
(33, 'Dominican Republic', 'Pesos', 'DOP ', 'RD$', ',', '.', NULL, NULL),
(34, 'East Caribbean', 'Dollars', 'XCD', '$', ',', '.', NULL, NULL),
(35, 'Egypt', 'Pounds', 'EGP', '£', ',', '.', NULL, NULL),
(36, 'El Salvador', 'Colones', 'SVC', '$', ',', '.', NULL, NULL),
(37, 'England [United Kingdom]', 'Pounds', 'GBP', '£', ',', '.', NULL, NULL),
(38, 'Euro', 'Euro', 'EUR', '€', '.', ',', NULL, NULL),
(39, 'Falkland Islands', 'Pounds', 'FKP', '£', ',', '.', NULL, NULL),
(40, 'Fiji', 'Dollars', 'FJD', '$', ',', '.', NULL, NULL),
(41, 'France', 'Euro', 'EUR', '€', '.', ',', NULL, NULL),
(42, 'Ghana', 'Cedis', 'GHS', '¢', ',', '.', NULL, NULL),
(43, 'Gibraltar', 'Pounds', 'GIP', '£', ',', '.', NULL, NULL),
(44, 'Greece', 'Euro', 'EUR', '€', '.', ',', NULL, NULL),
(45, 'Guatemala', 'Quetzales', 'GTQ', 'Q', ',', '.', NULL, NULL),
(46, 'Guernsey', 'Pounds', 'GGP', '£', ',', '.', NULL, NULL),
(47, 'Guyana', 'Dollars', 'GYD', '$', ',', '.', NULL, NULL),
(48, 'Holland [Netherlands]', 'Euro', 'EUR', '€', '.', ',', NULL, NULL),
(49, 'Honduras', 'Lempiras', 'HNL', 'L', ',', '.', NULL, NULL),
(50, 'Hong Kong', 'Dollars', 'HKD', '$', ',', '.', NULL, NULL),
(51, 'Hungary', 'Forint', 'HUF', 'Ft', ',', '.', NULL, NULL),
(52, 'Iceland', 'Kronur', 'ISK', 'kr', ',', '.', NULL, NULL),
(53, 'India', 'Rupees', 'INR', '₹', ',', '.', NULL, NULL),
(54, 'Indonesia', 'Rupiahs', 'IDR', 'Rp', ',', '.', NULL, NULL),
(55, 'Iran', 'Rials', 'IRR', '﷼', ',', '.', NULL, NULL),
(56, 'Ireland', 'Euro', 'EUR', '€', '.', ',', NULL, NULL),
(57, 'Isle of Man', 'Pounds', 'IMP', '£', ',', '.', NULL, NULL),
(58, 'Israel', 'New Shekels', 'ILS', '₪', ',', '.', NULL, NULL),
(59, 'Italy', 'Euro', 'EUR', '€', '.', ',', NULL, NULL),
(60, 'Jamaica', 'Dollars', 'JMD', 'J$', ',', '.', NULL, NULL),
(61, 'Japan', 'Yen', 'JPY', '¥', ',', '.', NULL, NULL),
(62, 'Jersey', 'Pounds', 'JEP', '£', ',', '.', NULL, NULL),
(63, 'Kazakhstan', 'Tenge', 'KZT', 'лв', ',', '.', NULL, NULL),
(64, 'Korea [North]', 'Won', 'KPW', '₩', ',', '.', NULL, NULL),
(65, 'Korea [South]', 'Won', 'KRW', '₩', ',', '.', NULL, NULL),
(66, 'Kyrgyzstan', 'Soms', 'KGS', 'лв', ',', '.', NULL, NULL),
(67, 'Laos', 'Kips', 'LAK', '₭', ',', '.', NULL, NULL),
(68, 'Latvia', 'Lati', 'LVL', 'Ls', ',', '.', NULL, NULL),
(69, 'Lebanon', 'Pounds', 'LBP', '£', ',', '.', NULL, NULL),
(70, 'Liberia', 'Dollars', 'LRD', '$', ',', '.', NULL, NULL),
(71, 'Liechtenstein', 'Switzerland Francs', 'CHF', 'CHF', ',', '.', NULL, NULL),
(72, 'Lithuania', 'Litai', 'LTL', 'Lt', ',', '.', NULL, NULL),
(73, 'Luxembourg', 'Euro', 'EUR', '€', '.', ',', NULL, NULL),
(74, 'Macedonia', 'Denars', 'MKD', 'ден', ',', '.', NULL, NULL),
(75, 'Malaysia', 'Ringgits', 'MYR', 'RM', ',', '.', NULL, NULL),
(76, 'Malta', 'Euro', 'EUR', '€', '.', ',', NULL, NULL),
(77, 'Mauritius', 'Rupees', 'MUR', '₨', ',', '.', NULL, NULL),
(78, 'Mexico', 'Pesos', 'MXN', '$', ',', '.', NULL, NULL),
(79, 'Mongolia', 'Tugriks', 'MNT', '₮', ',', '.', NULL, NULL),
(80, 'Mozambique', 'Meticais', 'MZ', 'MT', ',', '.', NULL, NULL),
(81, 'Namibia', 'Dollars', 'NAD', '$', ',', '.', NULL, NULL),
(82, 'Nepal', 'Rupees', 'NPR', '₨', ',', '.', NULL, NULL),
(83, 'Netherlands Antilles', 'Guilders', 'ANG', 'ƒ', ',', '.', NULL, NULL),
(84, 'Netherlands', 'Euro', 'EUR', '€', '.', ',', NULL, NULL),
(85, 'New Zealand', 'Dollars', 'NZD', '$', ',', '.', NULL, NULL),
(86, 'Nicaragua', 'Cordobas', 'NIO', 'C$', ',', '.', NULL, NULL),
(87, 'Nigeria', 'Nairas', 'NGN', '₦', ',', '.', NULL, NULL),
(88, 'North Korea', 'Won', 'KPW', '₩', ',', '.', NULL, NULL),
(89, 'Norway', 'Krone', 'NOK', 'kr', ',', '.', NULL, NULL),
(90, 'Oman', 'Rials', 'OMR', '﷼', ',', '.', NULL, NULL),
(91, 'Pakistan', 'Rupees', 'PKR', '₨', ',', '.', NULL, NULL),
(92, 'Panama', 'Balboa', 'PAB', 'B/.', ',', '.', NULL, NULL),
(93, 'Paraguay', 'Guarani', 'PYG', 'Gs', ',', '.', NULL, NULL),
(94, 'Peru', 'Nuevos Soles', 'PE', 'S/.', ',', '.', NULL, NULL),
(95, 'Philippines', 'Pesos', 'PHP', 'Php', ',', '.', NULL, NULL),
(96, 'Poland', 'Zlotych', 'PL', 'zł', ',', '.', NULL, NULL),
(97, 'Qatar', 'Rials', 'QAR', '﷼', ',', '.', NULL, NULL),
(98, 'Romania', 'New Lei', 'RO', 'lei', ',', '.', NULL, NULL),
(99, 'Russia', 'Rubles', 'RUB', 'руб', ',', '.', NULL, NULL),
(100, 'Saint Helena', 'Pounds', 'SHP', '£', ',', '.', NULL, NULL),
(101, 'Saudi Arabia', 'Riyals', 'SAR', '﷼', ',', '.', NULL, NULL),
(102, 'Serbia', 'Dinars', 'RSD', 'Дин.', ',', '.', NULL, NULL),
(103, 'Seychelles', 'Rupees', 'SCR', '₨', ',', '.', NULL, NULL),
(104, 'Singapore', 'Dollars', 'SGD', '$', ',', '.', NULL, NULL),
(105, 'Slovenia', 'Euro', 'EUR', '€', '.', ',', NULL, NULL),
(106, 'Solomon Islands', 'Dollars', 'SBD', '$', ',', '.', NULL, NULL),
(107, 'Somalia', 'Shillings', 'SOS', 'S', ',', '.', NULL, NULL),
(108, 'South Africa', 'Rand', 'ZAR', 'R', ',', '.', NULL, NULL),
(109, 'South Korea', 'Won', 'KRW', '₩', ',', '.', NULL, NULL),
(110, 'Spain', 'Euro', 'EUR', '€', '.', ',', NULL, NULL),
(111, 'Sri Lanka', 'Rupees', 'LKR', '₨', ',', '.', NULL, NULL),
(112, 'Sweden', 'Kronor', 'SEK', 'kr', ',', '.', NULL, NULL),
(113, 'Switzerland', 'Francs', 'CHF', 'CHF', ',', '.', NULL, NULL),
(114, 'Suriname', 'Dollars', 'SRD', '$', ',', '.', NULL, NULL),
(115, 'Syria', 'Pounds', 'SYP', '£', ',', '.', NULL, NULL),
(116, 'Taiwan', 'New Dollars', 'TWD', 'NT$', ',', '.', NULL, NULL),
(117, 'Thailand', 'Baht', 'THB', '฿', ',', '.', NULL, NULL),
(118, 'Trinidad and Tobago', 'Dollars', 'TTD', 'TT$', ',', '.', NULL, NULL),
(119, 'Turkey', 'Lira', 'TRY', 'TL', ',', '.', NULL, NULL),
(120, 'Turkey', 'Liras', 'TRL', '£', ',', '.', NULL, NULL),
(121, 'Tuvalu', 'Dollars', 'TVD', '$', ',', '.', NULL, NULL),
(122, 'Ukraine', 'Hryvnia', 'UAH', '₴', ',', '.', NULL, NULL),
(123, 'United Kingdom', 'Pounds', 'GBP', '£', ',', '.', NULL, NULL),
(124, 'United States of America', 'Dollars', 'USD', '$', ',', '.', NULL, NULL),
(125, 'Uruguay', 'Pesos', 'UYU', '$U', ',', '.', NULL, NULL),
(126, 'Uzbekistan', 'Sums', 'UZS', 'лв', ',', '.', NULL, NULL),
(127, 'Vatican City', 'Euro', 'EUR', '€', '.', ',', NULL, NULL),
(128, 'Venezuela', 'Bolivares Fuertes', 'VEF', 'Bs', ',', '.', NULL, NULL),
(129, 'Vietnam', 'Dong', 'VND', '₫', ',', '.', NULL, NULL),
(130, 'Yemen', 'Rials', 'YER', '﷼', ',', '.', NULL, NULL),
(131, 'Zimbabwe', 'Zimbabwe Dollars', 'ZWD', 'Z$', ',', '.', NULL, NULL),
(132, 'Iraq', 'Iraqi dinar', 'IQD', 'د.ع', ',', '.', NULL, NULL),
(133, 'Kenya', 'Kenyan shilling', 'KES', 'KSh', ',', '.', NULL, NULL),
(134, 'Bangladesh', 'Taka', 'BDT', '৳', ',', '.', NULL, NULL),
(135, 'Algerie', 'Algerian dinar', 'DZD', 'د.ج', ' ', '.', NULL, NULL),
(136, 'United Arab Emirates', 'United Arab Emirates dirham', 'AED', 'د.إ', ',', '.', NULL, NULL),
(137, 'Uganda', 'Uganda shillings', 'UGX', 'USh', ',', '.', NULL, NULL),
(138, 'Tanzania', 'Tanzanian shilling', 'TZS', 'TSh', ',', '.', NULL, NULL),
(139, 'Angola', 'Kwanza', 'AOA', 'Kz', ',', '.', NULL, NULL),
(140, 'Kuwait', 'Kuwaiti dinar', 'KWD', 'KD', ',', '.', NULL, NULL),
(141, 'Bahrain', 'Bahraini dinar', 'BHD', 'BD', ',', '.', NULL, NULL);

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

--
-- Table structure for table `customer_groups`
--

CREATE TABLE `customer_groups` (
  `id` int UNSIGNED NOT NULL,
  `business_id` int UNSIGNED NOT NULL,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `amount` double(5,2) NOT NULL,
  `price_calculation_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT 'percentage',
  `selling_price_group_id` int DEFAULT NULL,
  `created_by` int UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `customer_groups`
--

INSERT INTO `customer_groups` (`id`, `business_id`, `name`, `amount`, `price_calculation_type`, `selling_price_group_id`, `created_by`, `created_at`, `updated_at`) VALUES
(1, 1, 'fdsfdsf', 10.00, 'percentage', NULL, 1, '2023-07-21 09:49:36', '2023-07-21 09:49:36'),
(2, 1, 'Chashi', 10.00, 'percentage', NULL, 1, '2023-07-21 10:17:49', '2023-07-21 10:17:49');

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

--
-- Table structure for table `dashboard_configurations`
--

CREATE TABLE `dashboard_configurations` (
  `id` int UNSIGNED NOT NULL,
  `business_id` int UNSIGNED NOT NULL,
  `created_by` int NOT NULL,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `color` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `configuration` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

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

--
-- Table structure for table `discounts`
--

CREATE TABLE `discounts` (
  `id` int UNSIGNED NOT NULL,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `business_id` int NOT NULL,
  `brand_id` int DEFAULT NULL,
  `category_id` int DEFAULT NULL,
  `location_id` int DEFAULT NULL,
  `priority` int DEFAULT NULL,
  `discount_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `discount_amount` decimal(22,4) NOT NULL DEFAULT '0.0000',
  `starts_at` datetime DEFAULT NULL,
  `ends_at` datetime DEFAULT NULL,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `spg` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'Applicable in specified selling price group only. Use of applicable_in_spg column is discontinued',
  `applicable_in_cg` tinyint(1) DEFAULT '0',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

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

--
-- Table structure for table `discount_variations`
--

CREATE TABLE `discount_variations` (
  `discount_id` int NOT NULL,
  `variation_id` int NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

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

--
-- Table structure for table `document_and_notes`
--

CREATE TABLE `document_and_notes` (
  `id` int UNSIGNED NOT NULL,
  `business_id` int NOT NULL,
  `notable_id` int NOT NULL,
  `notable_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `heading` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `is_private` tinyint(1) NOT NULL DEFAULT '0',
  `created_by` int NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

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

--
-- Table structure for table `employees`
--

CREATE TABLE `employees` (
  `id` int UNSIGNED NOT NULL,
  `employee_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `designation` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `business_id` int UNSIGNED NOT NULL,
  `email` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `mobile` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `nid_number` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `address` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `joing_date` date DEFAULT NULL,
  `salary` double(22,4) NOT NULL,
  `picture` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `status` tinyint DEFAULT NULL,
  `created_by` int UNSIGNED NOT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

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

--
-- Table structure for table `expense_categories`
--

CREATE TABLE `expense_categories` (
  `id` int UNSIGNED NOT NULL,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `business_id` int UNSIGNED NOT NULL,
  `code` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `parent_id` int DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `expense_categories`
--

INSERT INTO `expense_categories` (`id`, `name`, `business_id`, `code`, `parent_id`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, 'Test', 1, NULL, NULL, NULL, '2023-07-17 19:48:16', '2023-07-17 19:48:16');

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

--
-- Table structure for table `groups`
--

CREATE TABLE `groups` (
  `id` int NOT NULL,
  `group_name` varchar(255) NOT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

--
-- Table structure for table `group_contacts`
--

CREATE TABLE `group_contacts` (
  `id` int NOT NULL,
  `group_id` int DEFAULT NULL,
  `mobile_number` int DEFAULT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

--
-- Table structure for table `group_sub_taxes`
--

CREATE TABLE `group_sub_taxes` (
  `group_tax_id` int UNSIGNED NOT NULL,
  `tax_id` int UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

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

--
-- Table structure for table `invoice_layouts`
--

CREATE TABLE `invoice_layouts` (
  `id` int UNSIGNED NOT NULL,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `header_text` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `invoice_no_prefix` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `quotation_no_prefix` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `invoice_heading` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `sub_heading_line1` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `sub_heading_line2` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `sub_heading_line3` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `sub_heading_line4` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `sub_heading_line5` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `invoice_heading_not_paid` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `invoice_heading_paid` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `quotation_heading` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `sub_total_label` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `discount_label` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `tax_label` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `total_label` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `round_off_label` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `total_due_label` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `paid_label` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `show_client_id` tinyint(1) NOT NULL DEFAULT '0',
  `client_id_label` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `client_tax_label` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `date_label` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `date_time_format` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `show_time` tinyint(1) NOT NULL DEFAULT '1',
  `show_brand` tinyint(1) NOT NULL DEFAULT '0',
  `show_sku` tinyint(1) NOT NULL DEFAULT '1',
  `show_cat_code` tinyint(1) NOT NULL DEFAULT '1',
  `show_expiry` tinyint(1) NOT NULL DEFAULT '0',
  `show_lot` tinyint(1) NOT NULL DEFAULT '0',
  `show_image` tinyint(1) NOT NULL DEFAULT '0',
  `show_sale_description` tinyint(1) NOT NULL DEFAULT '0',
  `sales_person_label` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `show_sales_person` tinyint(1) NOT NULL DEFAULT '0',
  `table_product_label` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `table_qty_label` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `table_unit_price_label` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `table_subtotal_label` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `cat_code_label` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `logo` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `show_logo` tinyint(1) NOT NULL DEFAULT '0',
  `show_business_name` tinyint(1) NOT NULL DEFAULT '0',
  `show_location_name` tinyint(1) NOT NULL DEFAULT '1',
  `show_landmark` tinyint(1) NOT NULL DEFAULT '1',
  `show_city` tinyint(1) NOT NULL DEFAULT '1',
  `show_state` tinyint(1) NOT NULL DEFAULT '1',
  `show_zip_code` tinyint(1) NOT NULL DEFAULT '1',
  `show_country` tinyint(1) NOT NULL DEFAULT '1',
  `show_mobile_number` tinyint(1) NOT NULL DEFAULT '1',
  `show_alternate_number` tinyint(1) NOT NULL DEFAULT '0',
  `show_email` tinyint(1) NOT NULL DEFAULT '0',
  `show_tax_1` tinyint(1) NOT NULL DEFAULT '1',
  `show_tax_2` tinyint(1) NOT NULL DEFAULT '0',
  `show_barcode` tinyint(1) NOT NULL DEFAULT '0',
  `show_payments` tinyint(1) NOT NULL DEFAULT '0',
  `show_customer` tinyint(1) NOT NULL DEFAULT '0',
  `customer_label` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `commission_agent_label` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `show_commission_agent` tinyint(1) NOT NULL DEFAULT '0',
  `show_reward_point` tinyint(1) NOT NULL DEFAULT '0',
  `highlight_color` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `footer_text` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `module_info` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `common_settings` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `is_default` tinyint(1) NOT NULL DEFAULT '0',
  `business_id` int UNSIGNED NOT NULL,
  `show_qr_code` tinyint(1) NOT NULL DEFAULT '0',
  `qr_code_fields` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `design` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT 'classic',
  `cn_heading` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'cn = credit note',
  `cn_no_label` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `cn_amount_label` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `table_tax_headings` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `show_previous_bal` tinyint(1) NOT NULL DEFAULT '0',
  `prev_bal_label` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `change_return_label` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `product_custom_fields` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `contact_custom_fields` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `location_custom_fields` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `invoice_layouts`
--

INSERT INTO `invoice_layouts` (`id`, `name`, `header_text`, `invoice_no_prefix`, `quotation_no_prefix`, `invoice_heading`, `sub_heading_line1`, `sub_heading_line2`, `sub_heading_line3`, `sub_heading_line4`, `sub_heading_line5`, `invoice_heading_not_paid`, `invoice_heading_paid`, `quotation_heading`, `sub_total_label`, `discount_label`, `tax_label`, `total_label`, `round_off_label`, `total_due_label`, `paid_label`, `show_client_id`, `client_id_label`, `client_tax_label`, `date_label`, `date_time_format`, `show_time`, `show_brand`, `show_sku`, `show_cat_code`, `show_expiry`, `show_lot`, `show_image`, `show_sale_description`, `sales_person_label`, `show_sales_person`, `table_product_label`, `table_qty_label`, `table_unit_price_label`, `table_subtotal_label`, `cat_code_label`, `logo`, `show_logo`, `show_business_name`, `show_location_name`, `show_landmark`, `show_city`, `show_state`, `show_zip_code`, `show_country`, `show_mobile_number`, `show_alternate_number`, `show_email`, `show_tax_1`, `show_tax_2`, `show_barcode`, `show_payments`, `show_customer`, `customer_label`, `commission_agent_label`, `show_commission_agent`, `show_reward_point`, `highlight_color`, `footer_text`, `module_info`, `common_settings`, `is_default`, `business_id`, `show_qr_code`, `qr_code_fields`, `design`, `cn_heading`, `cn_no_label`, `cn_amount_label`, `table_tax_headings`, `show_previous_bal`, `prev_bal_label`, `change_return_label`, `product_custom_fields`, `contact_custom_fields`, `location_custom_fields`, `created_at`, `updated_at`) VALUES
(1, 'Default', NULL, 'Invoice No.', NULL, 'Invoice', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Subtotal', 'Discount', 'Tax', 'Total', NULL, 'Total Due', 'Total Paid', 0, NULL, NULL, 'Date', NULL, 1, 0, 1, 1, 0, 0, 0, 0, NULL, 0, 'Product', 'Quantity', 'Unit Price', 'Subtotal', NULL, '1688803169_lal-logo.jpeg', 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, 1, 1, 'Customer', NULL, 0, 0, '#000000', NULL, NULL, '{\"proforma_heading\":null,\"sales_order_heading\":null,\"due_date_label\":null,\"total_quantity_label\":null,\"item_discount_label\":null,\"discounted_unit_price_label\":null,\"total_items_label\":null,\"num_to_word_format\":\"international\",\"tax_summary_label\":null}', 1, 1, 0, NULL, 'classic', NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, '2022-12-11 10:37:42', '2023-07-08 07:59:29');

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

--
-- Table structure for table `invoice_schemes`
--

CREATE TABLE `invoice_schemes` (
  `id` int UNSIGNED NOT NULL,
  `business_id` int UNSIGNED NOT NULL,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `scheme_type` enum('blank','year') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `prefix` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `start_number` int DEFAULT NULL,
  `invoice_count` int NOT NULL DEFAULT '0',
  `total_digits` int DEFAULT NULL,
  `is_default` tinyint(1) NOT NULL DEFAULT '0',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `invoice_schemes`
--

INSERT INTO `invoice_schemes` (`id`, `business_id`, `name`, `scheme_type`, `prefix`, `start_number`, `invoice_count`, `total_digits`, `is_default`, `created_at`, `updated_at`) VALUES
(1, 1, 'Default', 'blank', '', 1, 40, 4, 1, '2022-12-11 10:37:42', '2023-08-06 07:53:49');

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

--
-- Table structure for table `media`
--

CREATE TABLE `media` (
  `id` int UNSIGNED NOT NULL,
  `business_id` int NOT NULL,
  `file_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `uploaded_by` int DEFAULT NULL,
  `model_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `model_media_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `model_id` bigint UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `media`
--

INSERT INTO `media` (`id`, `business_id`, `file_name`, `description`, `uploaded_by`, `model_type`, `model_media_type`, `model_id`, `created_at`, `updated_at`) VALUES
(1, 1, '1688956719_860026732_OIP.jpg', NULL, 1, 'App\\User', NULL, 1, '2023-07-10 02:38:39', '2023-07-10 02:38:39'),
(2, 1, '1688957348_1069463811_OIP.jpg', NULL, 31, 'App\\User', NULL, 31, '2023-07-10 02:49:08', '2023-07-10 02:49:08'),
(3, 1, '1688957615_669139200_OIP.jpg', NULL, 30, 'App\\User', NULL, 30, '2023-07-10 02:53:35', '2023-07-10 02:53:35'),
(4, 1, '1689047192_722891611_278177584_556312159077199_4479205095688023673_n.jpg', NULL, 32, 'App\\User', NULL, 32, '2023-07-11 03:46:32', '2023-07-11 03:46:32');

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

--
-- Table structure for table `message_histories`
--

CREATE TABLE `message_histories` (
  `id` int NOT NULL,
  `business_id` int DEFAULT NULL,
  `mobile_number` int DEFAULT NULL,
  `sms_count` int DEFAULT NULL,
  `status` varchar(10) DEFAULT NULL,
  `sms_type` varchar(15) DEFAULT NULL,
  `message` varchar(255) DEFAULT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

--
-- Table structure for table `migrations`
--

CREATE TABLE `migrations` (
  `id` int UNSIGNED NOT NULL,
  `migration` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `batch` int NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `migrations`
--

INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
(1, '2014_10_12_000000_create_users_table', 1),
(2, '2014_10_12_100000_create_password_resets_table', 1),
(3, '2016_06_01_000001_create_oauth_auth_codes_table', 1),
(4, '2016_06_01_000002_create_oauth_access_tokens_table', 1),
(5, '2016_06_01_000003_create_oauth_refresh_tokens_table', 1),
(6, '2016_06_01_000004_create_oauth_clients_table', 1),
(7, '2016_06_01_000005_create_oauth_personal_access_clients_table', 1),
(8, '2017_07_05_071953_create_currencies_table', 1),
(9, '2017_07_05_073658_create_business_table', 1),
(10, '2017_07_22_075923_add_business_id_users_table', 1),
(11, '2017_07_23_113209_create_brands_table', 1),
(12, '2017_07_26_083429_create_permission_tables', 1),
(13, '2017_07_26_110000_create_tax_rates_table', 1),
(14, '2017_07_26_122313_create_units_table', 1),
(15, '2017_07_27_075706_create_contacts_table', 1),
(16, '2017_08_04_071038_create_categories_table', 1),
(17, '2017_08_08_115903_create_products_table', 1),
(18, '2017_08_09_061616_create_variation_templates_table', 1),
(19, '2017_08_09_061638_create_variation_value_templates_table', 1),
(20, '2017_08_10_061146_create_product_variations_table', 1),
(21, '2017_08_10_061216_create_variations_table', 1),
(22, '2017_08_19_054827_create_transactions_table', 1),
(23, '2017_08_31_073533_create_purchase_lines_table', 1),
(24, '2017_10_15_064638_create_transaction_payments_table', 1),
(25, '2017_10_31_065621_add_default_sales_tax_to_business_table', 1),
(26, '2017_11_20_051930_create_table_group_sub_taxes', 1),
(27, '2017_11_20_063603_create_transaction_sell_lines', 1),
(28, '2017_11_21_064540_create_barcodes_table', 1),
(29, '2017_11_23_181237_create_invoice_schemes_table', 1),
(30, '2017_12_25_122822_create_business_locations_table', 1),
(31, '2017_12_25_160253_add_location_id_to_transactions_table', 1),
(32, '2017_12_25_163227_create_variation_location_details_table', 1),
(33, '2018_01_04_115627_create_sessions_table', 1),
(34, '2018_01_05_112817_create_invoice_layouts_table', 1),
(35, '2018_01_06_112303_add_invoice_scheme_id_and_invoice_layout_id_to_business_locations', 1),
(36, '2018_01_08_104124_create_expense_categories_table', 1),
(37, '2018_01_08_123327_modify_transactions_table_for_expenses', 1),
(38, '2018_01_09_111005_modify_payment_status_in_transactions_table', 1),
(39, '2018_01_09_111109_add_paid_on_column_to_transaction_payments_table', 1),
(40, '2018_01_25_172439_add_printer_related_fields_to_business_locations_table', 1),
(41, '2018_01_27_184322_create_printers_table', 1),
(42, '2018_01_30_181442_create_cash_registers_table', 1),
(43, '2018_01_31_125836_create_cash_register_transactions_table', 1),
(44, '2018_02_07_173326_modify_business_table', 1),
(45, '2018_02_08_105425_add_enable_product_expiry_column_to_business_table', 1),
(46, '2018_02_08_111027_add_expiry_period_and_expiry_period_type_columns_to_products_table', 1),
(47, '2018_02_08_131118_add_mfg_date_and_exp_date_purchase_lines_table', 1),
(48, '2018_02_08_155348_add_exchange_rate_to_transactions_table', 1),
(49, '2018_02_09_124945_modify_transaction_payments_table_for_contact_payments', 1),
(50, '2018_02_12_113640_create_transaction_sell_lines_purchase_lines_table', 1),
(51, '2018_02_12_114605_add_quantity_sold_in_purchase_lines_table', 1),
(52, '2018_02_13_183323_alter_decimal_fields_size', 1),
(53, '2018_02_14_161928_add_transaction_edit_days_to_business_table', 1),
(54, '2018_02_15_161032_add_document_column_to_transactions_table', 1),
(55, '2018_02_17_124709_add_more_options_to_invoice_layouts', 1),
(56, '2018_02_19_111517_add_keyboard_shortcut_column_to_business_table', 1),
(57, '2018_02_19_121537_stock_adjustment_move_to_transaction_table', 1),
(58, '2018_02_20_165505_add_is_direct_sale_column_to_transactions_table', 1),
(59, '2018_02_21_105329_create_system_table', 1),
(60, '2018_02_23_100549_version_1_2', 1),
(61, '2018_02_23_125648_add_enable_editing_sp_from_purchase_column_to_business_table', 1),
(62, '2018_02_26_103612_add_sales_commission_agent_column_to_business_table', 1),
(63, '2018_02_26_130519_modify_users_table_for_sales_cmmsn_agnt', 1),
(64, '2018_02_26_134500_add_commission_agent_to_transactions_table', 1),
(65, '2018_02_27_121422_add_item_addition_method_to_business_table', 1),
(66, '2018_02_27_170232_modify_transactions_table_for_stock_transfer', 1),
(67, '2018_03_05_153510_add_enable_inline_tax_column_to_business_table', 1),
(68, '2018_03_06_210206_modify_product_barcode_types', 1),
(69, '2018_03_13_181541_add_expiry_type_to_business_table', 1),
(70, '2018_03_16_113446_product_expiry_setting_for_business', 1),
(71, '2018_03_19_113601_add_business_settings_options', 1),
(72, '2018_03_26_125334_add_pos_settings_to_business_table', 1),
(73, '2018_03_26_165350_create_customer_groups_table', 1),
(74, '2018_03_27_122720_customer_group_related_changes_in_tables', 1),
(75, '2018_03_29_110138_change_tax_field_to_nullable_in_business_table', 1),
(76, '2018_03_29_115502_add_changes_for_sr_number_in_products_and_sale_lines_table', 1),
(77, '2018_03_29_134340_add_inline_discount_fields_in_purchase_lines', 1),
(78, '2018_03_31_140921_update_transactions_table_exchange_rate', 1),
(79, '2018_04_03_103037_add_contact_id_to_contacts_table', 1),
(80, '2018_04_03_122709_add_changes_to_invoice_layouts_table', 1),
(81, '2018_04_09_135320_change_exchage_rate_size_in_business_table', 1),
(82, '2018_04_17_123122_add_lot_number_to_business', 1),
(83, '2018_04_17_160845_add_product_racks_table', 1),
(84, '2018_04_20_182015_create_res_tables_table', 1),
(85, '2018_04_24_105246_restaurant_fields_in_transaction_table', 1),
(86, '2018_04_24_114149_add_enabled_modules_business_table', 1),
(87, '2018_04_24_133704_add_modules_fields_in_invoice_layout_table', 1),
(88, '2018_04_27_132653_quotation_related_change', 1),
(89, '2018_05_02_104439_add_date_format_and_time_format_to_business', 1),
(90, '2018_05_02_111939_add_sell_return_to_transaction_payments', 1),
(91, '2018_05_14_114027_add_rows_positions_for_products', 1),
(92, '2018_05_14_125223_add_weight_to_products_table', 1),
(93, '2018_05_14_164754_add_opening_stock_permission', 1),
(94, '2018_05_15_134729_add_design_to_invoice_layouts', 1),
(95, '2018_05_16_183307_add_tax_fields_invoice_layout', 1),
(96, '2018_05_18_191956_add_sell_return_to_transaction_table', 1),
(97, '2018_05_21_131349_add_custom_fileds_to_contacts_table', 1),
(98, '2018_05_21_131607_invoice_layout_fields_for_sell_return', 1),
(99, '2018_05_21_131949_add_custom_fileds_and_website_to_business_locations_table', 1),
(100, '2018_05_22_123527_create_reference_counts_table', 1),
(101, '2018_05_22_154540_add_ref_no_prefixes_column_to_business_table', 1),
(102, '2018_05_24_132620_add_ref_no_column_to_transaction_payments_table', 1),
(103, '2018_05_24_161026_add_location_id_column_to_business_location_table', 1),
(104, '2018_05_25_180603_create_modifiers_related_table', 1),
(105, '2018_05_29_121714_add_purchase_line_id_to_stock_adjustment_line_table', 1),
(106, '2018_05_31_114645_add_res_order_status_column_to_transactions_table', 1),
(107, '2018_06_05_103530_rename_purchase_line_id_in_stock_adjustment_lines_table', 1),
(108, '2018_06_05_111905_modify_products_table_for_modifiers', 1),
(109, '2018_06_06_110524_add_parent_sell_line_id_column_to_transaction_sell_lines_table', 1),
(110, '2018_06_07_152443_add_is_service_staff_to_roles_table', 1),
(111, '2018_06_07_182258_add_image_field_to_products_table', 1),
(112, '2018_06_13_133705_create_bookings_table', 1),
(113, '2018_06_15_173636_add_email_column_to_contacts_table', 1),
(114, '2018_06_27_182835_add_superadmin_related_fields_business', 1),
(115, '2018_07_10_101913_add_custom_fields_to_products_table', 1),
(116, '2018_07_17_103434_add_sales_person_name_label_to_invoice_layouts_table', 1),
(117, '2018_07_17_163920_add_theme_skin_color_column_to_business_table', 1),
(118, '2018_07_24_160319_add_lot_no_line_id_to_transaction_sell_lines_table', 1),
(119, '2018_07_25_110004_add_show_expiry_and_show_lot_colums_to_invoice_layouts_table', 1),
(120, '2018_07_25_172004_add_discount_columns_to_transaction_sell_lines_table', 1),
(121, '2018_07_26_124720_change_design_column_type_in_invoice_layouts_table', 1),
(122, '2018_07_26_170424_add_unit_price_before_discount_column_to_transaction_sell_line_table', 1),
(123, '2018_07_28_103614_add_credit_limit_column_to_contacts_table', 1),
(124, '2018_08_08_110755_add_new_payment_methods_to_transaction_payments_table', 1),
(125, '2018_08_08_122225_modify_cash_register_transactions_table_for_new_payment_methods', 1),
(126, '2018_08_14_104036_add_opening_balance_type_to_transactions_table', 1),
(127, '2018_09_04_155900_create_accounts_table', 1),
(128, '2018_09_06_114438_create_selling_price_groups_table', 1),
(129, '2018_09_06_154057_create_variation_group_prices_table', 1),
(130, '2018_09_07_102413_add_permission_to_access_default_selling_price', 1),
(131, '2018_09_07_134858_add_selling_price_group_id_to_transactions_table', 1),
(132, '2018_09_10_112448_update_product_type_to_single_if_null_in_products_table', 1),
(133, '2018_09_10_152703_create_account_transactions_table', 1),
(134, '2018_09_10_173656_add_account_id_column_to_transaction_payments_table', 1),
(135, '2018_09_19_123914_create_notification_templates_table', 1),
(136, '2018_09_22_110504_add_sms_and_email_settings_columns_to_business_table', 1),
(137, '2018_09_24_134942_add_lot_no_line_id_to_stock_adjustment_lines_table', 1),
(138, '2018_09_26_105557_add_transaction_payments_for_existing_expenses', 1),
(139, '2018_09_27_111609_modify_transactions_table_for_purchase_return', 1),
(140, '2018_09_27_131154_add_quantity_returned_column_to_purchase_lines_table', 1),
(141, '2018_10_02_131401_add_return_quantity_column_to_transaction_sell_lines_table', 1),
(142, '2018_10_03_104918_add_qty_returned_column_to_transaction_sell_lines_purchase_lines_table', 1),
(143, '2018_10_03_185947_add_default_notification_templates_to_database', 1),
(144, '2018_10_09_153105_add_business_id_to_transaction_payments_table', 1),
(145, '2018_10_16_135229_create_permission_for_sells_and_purchase', 1),
(146, '2018_10_22_114441_add_columns_for_variable_product_modifications', 1),
(147, '2018_10_22_134428_modify_variable_product_data', 1),
(148, '2018_10_30_181558_add_table_tax_headings_to_invoice_layout', 1),
(149, '2018_10_31_122619_add_pay_terms_field_transactions_table', 1),
(150, '2018_10_31_161328_add_new_permissions_for_pos_screen', 1),
(151, '2018_10_31_174752_add_access_selected_contacts_only_to_users_table', 1),
(152, '2018_10_31_175627_add_user_contact_access', 1),
(153, '2018_10_31_180559_add_auto_send_sms_column_to_notification_templates_table', 1),
(154, '2018_11_02_171949_change_card_type_column_to_varchar_in_transaction_payments_table', 1),
(155, '2018_11_08_105621_add_role_permissions', 1),
(156, '2018_11_26_114135_add_is_suspend_column_to_transactions_table', 1),
(157, '2018_11_28_104410_modify_units_table_for_multi_unit', 1),
(158, '2018_11_28_170952_add_sub_unit_id_to_purchase_lines_and_sell_lines', 1),
(159, '2018_11_29_115918_add_primary_key_in_system_table', 1),
(160, '2018_12_03_185546_add_product_description_column_to_products_table', 1),
(161, '2018_12_06_114937_modify_system_table_and_users_table', 1),
(162, '2018_12_13_160007_add_custom_fields_display_options_to_invoice_layouts_table', 1),
(163, '2018_12_14_103307_modify_system_table', 1),
(164, '2018_12_18_133837_add_prev_balance_due_columns_to_invoice_layouts_table', 1),
(165, '2018_12_18_170656_add_invoice_token_column_to_transaction_table', 1),
(166, '2018_12_20_133639_add_date_time_format_column_to_invoice_layouts_table', 1),
(167, '2018_12_21_120659_add_recurring_invoice_fields_to_transactions_table', 1),
(168, '2018_12_24_154933_create_notifications_table', 1),
(169, '2019_01_08_112015_add_document_column_to_transaction_payments_table', 1),
(170, '2019_01_10_124645_add_account_permission', 1),
(171, '2019_01_16_125825_add_subscription_no_column_to_transactions_table', 1),
(172, '2019_01_28_111647_add_order_addresses_column_to_transactions_table', 1),
(173, '2019_02_13_173821_add_is_inactive_column_to_products_table', 1),
(174, '2019_02_19_103118_create_discounts_table', 1),
(175, '2019_02_21_120324_add_discount_id_column_to_transaction_sell_lines_table', 1),
(176, '2019_02_21_134324_add_permission_for_discount', 1),
(177, '2019_03_04_170832_add_service_staff_columns_to_transaction_sell_lines_table', 1),
(178, '2019_03_09_102425_add_sub_type_column_to_transactions_table', 1),
(179, '2019_03_09_124457_add_indexing_transaction_sell_lines_purchase_lines_table', 1),
(180, '2019_03_12_120336_create_activity_log_table', 1),
(181, '2019_03_15_132925_create_media_table', 1),
(182, '2019_05_08_130339_add_indexing_to_parent_id_in_transaction_payments_table', 1),
(183, '2019_05_10_132311_add_missing_column_indexing', 1),
(184, '2019_05_14_091812_add_show_image_column_to_invoice_layouts_table', 1),
(185, '2019_05_25_104922_add_view_purchase_price_permission', 1),
(186, '2019_06_17_103515_add_profile_informations_columns_to_users_table', 1),
(187, '2019_06_18_135524_add_permission_to_view_own_sales_only', 1),
(188, '2019_06_19_112058_add_database_changes_for_reward_points', 1),
(189, '2019_06_28_133732_change_type_column_to_string_in_transactions_table', 1),
(190, '2019_07_13_111420_add_is_created_from_api_column_to_transactions_table', 1),
(191, '2019_07_15_165136_add_fields_for_combo_product', 1),
(192, '2019_07_19_103446_add_mfg_quantity_used_column_to_purchase_lines_table', 1),
(193, '2019_07_22_152649_add_not_for_selling_in_product_table', 1),
(194, '2019_07_29_185351_add_show_reward_point_column_to_invoice_layouts_table', 1),
(195, '2019_08_08_162302_add_sub_units_related_fields', 1),
(196, '2019_08_26_133419_update_price_fields_decimal_point', 1),
(197, '2019_09_02_160054_remove_location_permissions_from_roles', 1),
(198, '2019_09_03_185259_add_permission_for_pos_screen', 1),
(199, '2019_09_04_163141_add_location_id_to_cash_registers_table', 1),
(200, '2019_09_04_184008_create_types_of_services_table', 1),
(201, '2019_09_06_131445_add_types_of_service_fields_to_transactions_table', 1),
(202, '2019_09_09_134810_add_default_selling_price_group_id_column_to_business_locations_table', 1),
(203, '2019_09_12_105616_create_product_locations_table', 1),
(204, '2019_09_17_122522_add_custom_labels_column_to_business_table', 1),
(205, '2019_09_18_164319_add_shipping_fields_to_transactions_table', 1),
(206, '2019_09_19_170927_close_all_active_registers', 1),
(207, '2019_09_23_161906_add_media_description_cloumn_to_media_table', 1),
(208, '2019_10_18_155633_create_account_types_table', 1),
(209, '2019_10_22_163335_add_common_settings_column_to_business_table', 1),
(210, '2019_10_29_132521_add_update_purchase_status_permission', 1),
(211, '2019_11_09_110522_add_indexing_to_lot_number', 1),
(212, '2019_11_19_170824_add_is_active_column_to_business_locations_table', 1),
(213, '2019_11_21_162913_change_quantity_field_types_to_decimal', 1),
(214, '2019_11_25_160340_modify_categories_table_for_polymerphic_relationship', 1),
(215, '2019_12_02_105025_create_warranties_table', 1),
(216, '2019_12_03_180342_add_common_settings_field_to_invoice_layouts_table', 1),
(217, '2019_12_05_183955_add_more_fields_to_users_table', 1),
(218, '2019_12_06_174904_add_change_return_label_column_to_invoice_layouts_table', 1),
(219, '2019_12_11_121307_add_draft_and_quotation_list_permissions', 1),
(220, '2019_12_12_180126_copy_expense_total_to_total_before_tax', 1),
(221, '2019_12_19_181412_make_alert_quantity_field_nullable_on_products_table', 1),
(222, '2019_12_25_173413_create_dashboard_configurations_table', 1),
(223, '2020_01_08_133506_create_document_and_notes_table', 1),
(224, '2020_01_09_113252_add_cc_bcc_column_to_notification_templates_table', 1),
(225, '2020_01_16_174818_add_round_off_amount_field_to_transactions_table', 1),
(226, '2020_01_28_162345_add_weighing_scale_settings_in_business_settings_table', 1),
(227, '2020_02_18_172447_add_import_fields_to_transactions_table', 1),
(228, '2020_03_13_135844_add_is_active_column_to_selling_price_groups_table', 1),
(229, '2020_03_16_115449_add_contact_status_field_to_contacts_table', 1),
(230, '2020_03_26_124736_add_allow_login_column_in_users_table', 1),
(231, '2020_04_13_154150_add_feature_products_column_to_business_loactions', 1),
(232, '2020_04_15_151802_add_user_type_to_users_table', 1),
(233, '2020_04_22_153905_add_subscription_repeat_on_column_to_transactions_table', 1),
(234, '2020_04_28_111436_add_shipping_address_to_contacts_table', 1),
(235, '2020_06_01_094654_add_max_sale_discount_column_to_users_table', 1),
(236, '2020_06_12_162245_modify_contacts_table', 1),
(237, '2020_06_22_103104_change_recur_interval_default_to_one', 1),
(238, '2020_07_09_174621_add_balance_field_to_contacts_table', 1),
(239, '2020_07_23_104933_change_status_column_to_varchar_in_transaction_table', 1),
(240, '2020_09_07_171059_change_completed_stock_transfer_status_to_final', 1),
(241, '2020_09_21_123224_modify_booking_status_column_in_bookings_table', 1),
(242, '2020_09_22_121639_create_discount_variations_table', 1),
(243, '2020_10_05_121550_modify_business_location_table_for_invoice_layout', 1),
(244, '2020_10_16_175726_set_status_as_received_for_opening_stock', 1),
(245, '2020_10_23_170823_add_for_group_tax_column_to_tax_rates_table', 1),
(246, '2020_11_04_130940_add_more_custom_fields_to_contacts_table', 1),
(247, '2020_11_10_152841_add_cash_register_permissions', 1),
(248, '2020_11_17_164041_modify_type_column_to_varchar_in_contacts_table', 1),
(249, '2020_12_18_181447_add_shipping_custom_fields_to_transactions_table', 1),
(250, '2020_12_22_164303_add_sub_status_column_to_transactions_table', 1),
(251, '2020_12_24_153050_add_custom_fields_to_transactions_table', 1),
(252, '2020_12_28_105403_add_whatsapp_text_column_to_notification_templates_table', 1),
(253, '2020_12_29_165925_add_model_document_type_to_media_table', 1),
(254, '2021_02_08_175632_add_contact_number_fields_to_users_table', 1),
(255, '2021_02_11_172217_add_indexing_for_multiple_columns', 1),
(256, '2021_02_23_122043_add_more_columns_to_customer_groups_table', 1),
(257, '2021_02_24_175551_add_print_invoice_permission_to_all_roles', 1),
(258, '2021_03_03_162021_add_purchase_order_columns_to_purchase_lines_and_transactions_table', 1),
(259, '2021_03_11_120229_add_sales_order_columns', 1),
(260, '2021_03_16_120705_add_business_id_to_activity_log_table', 1),
(261, '2021_03_16_153427_add_code_columns_to_business_table', 1),
(262, '2021_03_18_173308_add_account_details_column_to_accounts_table', 1),
(263, '2021_03_18_183119_add_prefer_payment_account_columns_to_transactions_table', 1),
(264, '2021_03_22_120810_add_more_types_of_service_custom_fields', 1),
(265, '2021_03_24_183132_add_shipping_export_custom_field_details_to_contacts_table', 1),
(266, '2021_03_25_170715_add_export_custom_fields_info_to_transactions_table', 1),
(267, '2021_04_15_063449_add_denominations_column_to_cash_registers_table', 1),
(268, '2021_05_22_083426_add_indexing_to_account_transactions_table', 1),
(269, '2021_07_08_065808_add_additional_expense_columns_to_transaction_table', 1),
(270, '2021_07_13_082918_add_qr_code_columns_to_invoice_layouts_table', 1),
(271, '2021_07_21_061615_add_fields_to_show_commission_agent_in_invoice_layout', 1),
(272, '2021_08_13_105549_add_crm_contact_id_to_users_table', 1),
(273, '2021_08_25_114932_add_payment_link_fields_to_transaction_payments_table', 1),
(274, '2021_09_01_063110_add_spg_column_to_discounts_table', 1),
(275, '2021_09_03_061528_modify_cash_register_transactions_table', 1),
(276, '2021_10_05_061658_add_source_column_to_transactions_table', 1),
(277, '2021_12_16_121851_add_parent_id_column_to_expense_categories_table', 1),
(278, '2022_04_14_075120_add_payment_type_column_to_transaction_payments_table', 1),
(279, '2022_04_21_083327_create_cash_denominations_table', 1),
(280, '2022_05_10_055307_add_delivery_date_column_to_transactions_table', 1),
(281, '2022_06_13_123135_add_currency_precision_and_quantity_precision_fields_to_business_table', 1),
(282, '2022_06_28_133342_add_secondary_unit_columns_to_products_sell_line_purchase_lines_tables', 1),
(283, '2022_07_13_114307_create_purchase_requisition_related_columns', 1),
(284, '2022_08_25_132707_add_service_staff_timer_fields_to_products_and_users_table', 1),
(285, '2023_01_15_125910_add_sub_sub_category_id_to_products_table', 2),
(286, '2023_01_16_150426_add_terminal_to_users_table', 3),
(287, '2023_02_05_143526_add_supplier_id_to_products_table', 4),
(289, '2023_02_06_152756_create_product_barcodes_table', 5),
(319, '2023_02_28_104117_add_supplier_ids_to_products_table', 6),
(320, '2023_02_28_104537_create_product_barcodes_table', 6),
(321, '2023_02_28_105535_create_barcode_purchase_prices_table', 6),
(322, '2023_02_28_105600_create_barcode_selling_prices_table', 6),
(323, '2023_06_17_035508_create_area_table', 7),
(324, '2023_06_17_035540_create_employees_table', 8);

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

--
-- Table structure for table `model_has_permissions`
--

CREATE TABLE `model_has_permissions` (
  `permission_id` int UNSIGNED NOT NULL,
  `model_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `model_id` bigint UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `model_has_permissions`
--

INSERT INTO `model_has_permissions` (`permission_id`, `model_type`, `model_id`) VALUES
(80, 'App\\User', 2),
(80, 'App\\User', 3),
(80, 'App\\User', 4),
(80, 'App\\User', 6),
(80, 'App\\User', 7),
(82, 'App\\User', 27),
(82, 'App\\User', 28),
(82, 'App\\User', 29),
(82, 'App\\User', 30),
(82, 'App\\User', 31),
(82, 'App\\User', 32);

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

--
-- Table structure for table `model_has_roles`
--

CREATE TABLE `model_has_roles` (
  `role_id` int UNSIGNED NOT NULL,
  `model_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `model_id` bigint UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `model_has_roles`
--

INSERT INTO `model_has_roles` (`role_id`, `model_type`, `model_id`) VALUES
(1, 'App\\User', 1),
(1, 'App\\User', 2),
(2, 'App\\User', 3),
(3, 'App\\User', 4),
(4, 'App\\User', 6),
(3, 'App\\User', 7),
(3, 'App\\User', 8),
(1, 'App\\User', 9),
(1, 'App\\User', 10),
(1, 'App\\User', 11),
(1, 'App\\User', 12),
(1, 'App\\User', 13),
(1, 'App\\User', 14),
(1, 'App\\User', 15),
(1, 'App\\User', 16),
(1, 'App\\User', 17),
(1, 'App\\User', 18),
(1, 'App\\User', 19),
(1, 'App\\User', 20),
(1, 'App\\User', 21),
(1, 'App\\User', 22),
(1, 'App\\User', 23),
(3, 'App\\User', 24),
(3, 'App\\User', 25),
(9, 'App\\User', 30),
(8, 'App\\User', 31),
(9, 'App\\User', 32);

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

--
-- Table structure for table `monthly_salary_summery`
--

CREATE TABLE `monthly_salary_summery` (
  `id` int UNSIGNED NOT NULL,
  `salary_month` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `salary_year` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `created_by` int UNSIGNED NOT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

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

--
-- Table structure for table `newlebel`
--

CREATE TABLE `newlebel` (
  `id` int NOT NULL,
  `importar_name` varchar(255) DEFAULT NULL,
  `importar_address` varchar(255) DEFAULT NULL,
  `price` decimal(22,4) DEFAULT NULL,
  `expire_date` varchar(100) DEFAULT NULL,
  `manufacture_date` varchar(100) DEFAULT NULL,
  `batch_no` varchar(15) DEFAULT NULL,
  `logo` varchar(255) NOT NULL,
  `created_by` varchar(255) DEFAULT NULL,
  `created_at` date NOT NULL,
  `updated_at` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `newlebel`
--

INSERT INTO `newlebel` (`id`, `importar_name`, `importar_address`, `price`, `expire_date`, `manufacture_date`, `batch_no`, `logo`, `created_by`, `created_at`, `updated_at`) VALUES
(2, 'S.B. Distribution', '65, Begum Bazer, Dhaka-1211', '375.0000', NULL, NULL, NULL, '', '1', '2023-07-22', '2023-07-22');

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

--
-- Table structure for table `notifications`
--

CREATE TABLE `notifications` (
  `id` char(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `notifiable_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `notifiable_id` bigint UNSIGNED NOT NULL,
  `data` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `read_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

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

--
-- Table structure for table `notification_templates`
--

CREATE TABLE `notification_templates` (
  `id` int UNSIGNED NOT NULL,
  `business_id` int NOT NULL,
  `template_for` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `email_body` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `sms_body` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `whatsapp_text` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `subject` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `cc` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `bcc` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `auto_send` tinyint(1) NOT NULL DEFAULT '0',
  `auto_send_sms` tinyint(1) NOT NULL DEFAULT '0',
  `auto_send_wa_notif` tinyint(1) NOT NULL DEFAULT '0',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `notification_templates`
--

INSERT INTO `notification_templates` (`id`, `business_id`, `template_for`, `email_body`, `sms_body`, `whatsapp_text`, `subject`, `cc`, `bcc`, `auto_send`, `auto_send_sms`, `auto_send_wa_notif`, `created_at`, `updated_at`) VALUES
(1, 1, 'new_sale', '<p>Dear {contact_name},</p>\n\n                    <p>Your invoice number is {invoice_number}<br />\n                    Total amount: {total_amount}<br />\n                    Paid amount: {received_amount}</p>\n\n                    <p>Thank you for shopping with us.</p>\n\n                    <p>{business_logo}</p>\n\n                    <p>&nbsp;</p>', 'Dear {contact_name}, Thank you for shopping with us. {business_name}', NULL, 'Thank you from {business_name}', NULL, NULL, 0, 0, 0, '2022-12-11 10:37:42', '2022-12-11 10:37:42'),
(2, 1, 'payment_received', '<p>Dear {contact_name},</p>\n\n                <p>We have received a payment of {received_amount}</p>\n\n                <p>{business_logo}</p>', 'Dear {contact_name}, We have received a payment of {received_amount}. {business_name}', NULL, 'Payment Received, from {business_name}', NULL, NULL, 0, 0, 0, '2022-12-11 10:37:42', '2022-12-11 10:37:42'),
(3, 1, 'payment_reminder', '<p>Dear {contact_name},</p>\n\n                    <p>This is to remind you that you have pending payment of {due_amount}. Kindly pay it as soon as possible.</p>\n\n                    <p>{business_logo}</p>', 'Dear {contact_name}, You have pending payment of {due_amount}. Kindly pay it as soon as possible. {business_name}', NULL, 'Payment Reminder, from {business_name}', NULL, NULL, 0, 0, 0, '2022-12-11 10:37:42', '2022-12-11 10:37:42'),
(4, 1, 'new_booking', '<p>Dear {contact_name},</p>\n\n                    <p>Your booking is confirmed</p>\n\n                    <p>Date: {start_time} to {end_time}</p>\n\n                    <p>Table: {table}</p>\n\n                    <p>Location: {location}</p>\n\n                    <p>{business_logo}</p>', 'Dear {contact_name}, Your booking is confirmed. Date: {start_time} to {end_time}, Table: {table}, Location: {location}', NULL, 'Booking Confirmed - {business_name}', NULL, NULL, 0, 0, 0, '2022-12-11 10:37:42', '2022-12-11 10:37:42'),
(5, 1, 'new_order', '<p>Dear {contact_name},</p>\n\n                    <p>We have a new order with reference number {order_ref_number}. Kindly process the products as soon as possible.</p>\n\n                    <p>{business_name}<br />\n                    {business_logo}</p>', 'Dear {contact_name}, We have a new order with reference number {order_ref_number}. Kindly process the products as soon as possible. {business_name}', NULL, 'New Order, from {business_name}', NULL, NULL, 0, 0, 0, '2022-12-11 10:37:42', '2022-12-11 10:37:42'),
(6, 1, 'payment_paid', '<p>Dear {contact_name},</p>\n\n                    <p>We have paid amount {paid_amount} again invoice number {order_ref_number}.<br />\n                    Kindly note it down.</p>\n\n                    <p>{business_name}<br />\n                    {business_logo}</p>', 'We have paid amount {paid_amount} again invoice number {order_ref_number}.\n                    Kindly note it down. {business_name}', NULL, 'Payment Paid, from {business_name}', NULL, NULL, 0, 0, 0, '2022-12-11 10:37:42', '2022-12-11 10:37:42'),
(7, 1, 'items_received', '<p>Dear {contact_name},</p>\n\n                    <p>We have received all items from invoice reference number {order_ref_number}. Thank you for processing it.</p>\n\n                    <p>{business_name}<br />\n                    {business_logo}</p>', 'We have received all items from invoice reference number {order_ref_number}. Thank you for processing it. {business_name}', NULL, 'Items received, from {business_name}', NULL, NULL, 0, 0, 0, '2022-12-11 10:37:42', '2022-12-11 10:37:42'),
(8, 1, 'items_pending', '<p>Dear {contact_name},<br />\n                    This is to remind you that we have not yet received some items from invoice reference number {order_ref_number}. Please process it as soon as possible.</p>\n\n                    <p>{business_name}<br />\n                    {business_logo}</p>', 'This is to remind you that we have not yet received some items from invoice reference number {order_ref_number} . Please process it as soon as possible.{business_name}', NULL, 'Items Pending, from {business_name}', NULL, NULL, 0, 0, 0, '2022-12-11 10:37:42', '2022-12-11 10:37:42'),
(9, 1, 'new_quotation', '<p>Dear {contact_name},</p>\n\n                    <p>Your quotation number is {invoice_number}<br />\n                    Total amount: {total_amount}</p>\n\n                    <p>Thank you for shopping with us.</p>\n\n                    <p>{business_logo}</p>\n\n                    <p>&nbsp;</p>', 'Dear {contact_name}, Thank you for shopping with us. {business_name}', NULL, 'Thank you from {business_name}', NULL, NULL, 0, 0, 0, '2022-12-11 10:37:42', '2022-12-11 10:37:42'),
(10, 1, 'purchase_order', '<p>Dear {contact_name},</p>\n\n                    <p>We have a new purchase order with reference number {order_ref_number}. The respective invoice is attached here with.</p>\n\n                    <p>{business_logo}</p>', 'We have a new purchase order with reference number {order_ref_number}. {business_name}', NULL, 'New Purchase Order, from {business_name}', NULL, NULL, 0, 0, 0, '2022-12-11 10:37:42', '2022-12-11 10:37:42');

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

--
-- Table structure for table `oauth_access_tokens`
--

CREATE TABLE `oauth_access_tokens` (
  `id` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `user_id` bigint DEFAULT NULL,
  `client_id` int UNSIGNED NOT NULL,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `scopes` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `revoked` tinyint(1) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `expires_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

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

--
-- Table structure for table `oauth_auth_codes`
--

CREATE TABLE `oauth_auth_codes` (
  `id` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `user_id` bigint NOT NULL,
  `client_id` int UNSIGNED NOT NULL,
  `scopes` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `revoked` tinyint(1) NOT NULL,
  `expires_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

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

--
-- Table structure for table `oauth_clients`
--

CREATE TABLE `oauth_clients` (
  `id` int UNSIGNED NOT NULL,
  `user_id` bigint DEFAULT NULL,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `secret` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `redirect` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `personal_access_client` tinyint(1) NOT NULL,
  `password_client` tinyint(1) NOT NULL,
  `revoked` tinyint(1) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

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

--
-- Table structure for table `oauth_personal_access_clients`
--

CREATE TABLE `oauth_personal_access_clients` (
  `id` int UNSIGNED NOT NULL,
  `client_id` int UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

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

--
-- Table structure for table `oauth_refresh_tokens`
--

CREATE TABLE `oauth_refresh_tokens` (
  `id` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `access_token_id` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `revoked` tinyint(1) NOT NULL,
  `expires_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

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

--
-- Table structure for table `password_resets`
--

CREATE TABLE `password_resets` (
  `email` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `token` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

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

--
-- Table structure for table `permissions`
--

CREATE TABLE `permissions` (
  `id` int UNSIGNED NOT NULL,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `guard_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `permissions`
--

INSERT INTO `permissions` (`id`, `name`, `guard_name`, `created_at`, `updated_at`) VALUES
(1, 'profit_loss_report.view', 'web', '2022-12-11 10:29:25', NULL),
(2, 'direct_sell.access', 'web', '2022-12-11 10:29:25', NULL),
(3, 'product.opening_stock', 'web', '2022-12-11 10:29:37', '2022-12-11 10:29:37'),
(4, 'crud_all_bookings', 'web', '2022-12-11 10:29:42', '2022-12-11 10:29:42'),
(5, 'crud_own_bookings', 'web', '2022-12-11 10:29:42', '2022-12-11 10:29:42'),
(6, 'access_default_selling_price', 'web', '2022-12-11 10:29:52', '2022-12-11 10:29:52'),
(7, 'purchase.payments', 'web', '2022-12-11 10:29:55', '2022-12-11 10:29:55'),
(8, 'sell.payments', 'web', '2022-12-11 10:29:55', '2022-12-11 10:29:55'),
(9, 'edit_product_price_from_sale_screen', 'web', '2022-12-11 10:29:56', '2022-12-11 10:29:56'),
(10, 'edit_product_discount_from_sale_screen', 'web', '2022-12-11 10:29:56', '2022-12-11 10:29:56'),
(11, 'roles.view', 'web', '2022-12-11 10:29:58', '2022-12-11 10:29:58'),
(12, 'roles.create', 'web', '2022-12-11 10:29:58', '2022-12-11 10:29:58'),
(13, 'roles.update', 'web', '2022-12-11 10:29:58', '2022-12-11 10:29:58'),
(14, 'roles.delete', 'web', '2022-12-11 10:29:58', '2022-12-11 10:29:58'),
(15, 'account.access', 'web', '2022-12-11 10:30:01', '2022-12-11 10:30:01'),
(16, 'discount.access', 'web', '2022-12-11 10:30:02', '2022-12-11 10:30:02'),
(17, 'view_purchase_price', 'web', '2022-12-11 10:30:09', '2022-12-11 10:30:09'),
(18, 'view_own_sell_only', 'web', '2022-12-11 10:30:10', '2022-12-11 10:30:10'),
(19, 'edit_product_discount_from_pos_screen', 'web', '2022-12-11 10:30:14', '2022-12-11 10:30:14'),
(20, 'edit_product_price_from_pos_screen', 'web', '2022-12-11 10:30:14', '2022-12-11 10:30:14'),
(21, 'access_shipping', 'web', '2022-12-11 10:30:17', '2022-12-11 10:30:17'),
(22, 'purchase.update_status', 'web', '2022-12-11 10:30:17', '2022-12-11 10:30:17'),
(23, 'list_drafts', 'web', '2022-12-11 10:30:20', '2022-12-11 10:30:20'),
(24, 'list_quotations', 'web', '2022-12-11 10:30:20', '2022-12-11 10:30:20'),
(25, 'view_cash_register', 'web', '2022-12-11 10:30:32', '2022-12-11 10:30:32'),
(26, 'close_cash_register', 'web', '2022-12-11 10:30:33', '2022-12-11 10:30:33'),
(27, 'print_invoice', 'web', '2022-12-11 10:30:45', '2022-12-11 10:30:45'),
(28, 'user.view', 'web', '2022-12-11 10:30:55', NULL),
(29, 'user.create', 'web', '2022-12-11 10:30:55', NULL),
(30, 'user.update', 'web', '2022-12-11 10:30:55', NULL),
(31, 'user.delete', 'web', '2022-12-11 10:30:55', NULL),
(32, 'supplier.view', 'web', '2022-12-11 10:30:55', NULL),
(33, 'supplier.create', 'web', '2022-12-11 10:30:55', NULL),
(34, 'supplier.update', 'web', '2022-12-11 10:30:55', NULL),
(35, 'supplier.delete', 'web', '2022-12-11 10:30:55', NULL),
(36, 'customer.view', 'web', '2022-12-11 10:30:55', NULL),
(37, 'customer.create', 'web', '2022-12-11 10:30:55', NULL),
(38, 'customer.update', 'web', '2022-12-11 10:30:55', NULL),
(39, 'customer.delete', 'web', '2022-12-11 10:30:55', NULL),
(40, 'product.view', 'web', '2022-12-11 10:30:55', NULL),
(41, 'product.create', 'web', '2022-12-11 10:30:55', NULL),
(42, 'product.update', 'web', '2022-12-11 10:30:55', NULL),
(43, 'product.delete', 'web', '2022-12-11 10:30:55', NULL),
(44, 'purchase.view', 'web', '2022-12-11 10:30:55', NULL),
(45, 'purchase.create', 'web', '2022-12-11 10:30:55', NULL),
(46, 'purchase.update', 'web', '2022-12-11 10:30:55', NULL),
(47, 'purchase.delete', 'web', '2022-12-11 10:30:55', NULL),
(48, 'sell.view', 'web', '2022-12-11 10:30:55', NULL),
(49, 'sell.create', 'web', '2022-12-11 10:30:55', NULL),
(50, 'sell.update', 'web', '2022-12-11 10:30:55', NULL),
(51, 'sell.delete', 'web', '2022-12-11 10:30:55', NULL),
(52, 'purchase_n_sell_report.view', 'web', '2022-12-11 10:30:55', NULL),
(53, 'contacts_report.view', 'web', '2022-12-11 10:30:55', NULL),
(54, 'stock_report.view', 'web', '2022-12-11 10:30:55', NULL),
(55, 'tax_report.view', 'web', '2022-12-11 10:30:55', NULL),
(56, 'trending_product_report.view', 'web', '2022-12-11 10:30:55', NULL),
(57, 'register_report.view', 'web', '2022-12-11 10:30:55', NULL),
(58, 'sales_representative.view', 'web', '2022-12-11 10:30:55', NULL),
(59, 'expense_report.view', 'web', '2022-12-11 10:30:55', NULL),
(60, 'business_settings.access', 'web', '2022-12-11 10:30:55', NULL),
(61, 'barcode_settings.access', 'web', '2022-12-11 10:30:55', NULL),
(62, 'invoice_settings.access', 'web', '2022-12-11 10:30:55', NULL),
(63, 'brand.view', 'web', '2022-12-11 10:30:55', NULL),
(64, 'brand.create', 'web', '2022-12-11 10:30:55', NULL),
(65, 'brand.update', 'web', '2022-12-11 10:30:55', NULL),
(66, 'brand.delete', 'web', '2022-12-11 10:30:55', NULL),
(67, 'tax_rate.view', 'web', '2022-12-11 10:30:55', NULL),
(68, 'tax_rate.create', 'web', '2022-12-11 10:30:55', NULL),
(69, 'tax_rate.update', 'web', '2022-12-11 10:30:55', NULL),
(70, 'tax_rate.delete', 'web', '2022-12-11 10:30:55', NULL),
(71, 'unit.view', 'web', '2022-12-11 10:30:55', NULL),
(72, 'unit.create', 'web', '2022-12-11 10:30:55', NULL),
(73, 'unit.update', 'web', '2022-12-11 10:30:55', NULL),
(74, 'unit.delete', 'web', '2022-12-11 10:30:55', NULL),
(75, 'category.view', 'web', '2022-12-11 10:30:55', NULL),
(76, 'category.create', 'web', '2022-12-11 10:30:55', NULL),
(77, 'category.update', 'web', '2022-12-11 10:30:55', NULL),
(78, 'category.delete', 'web', '2022-12-11 10:30:55', NULL),
(79, 'expense.access', 'web', '2022-12-11 10:30:55', NULL),
(80, 'access_all_locations', 'web', '2022-12-11 10:30:55', NULL),
(81, 'dashboard.data', 'web', '2022-12-11 10:30:55', NULL),
(82, 'location.1', 'web', '2022-12-11 10:37:42', '2022-12-11 10:37:42'),
(83, 'view_paid_sells_only', 'web', '2023-01-16 10:59:15', '2023-01-16 10:59:15'),
(84, 'view_due_sells_only', 'web', '2023-01-16 10:59:15', '2023-01-16 10:59:15'),
(85, 'view_partial_sells_only', 'web', '2023-01-16 10:59:15', '2023-01-16 10:59:15'),
(86, 'view_overdue_sells_only', 'web', '2023-01-16 10:59:15', '2023-01-16 10:59:15'),
(87, 'direct_sell.update', 'web', '2023-01-16 10:59:15', '2023-01-16 10:59:15'),
(88, 'direct_sell.delete', 'web', '2023-01-16 10:59:15', '2023-01-16 10:59:15'),
(89, 'view_commission_agent_sell', 'web', '2023-01-16 10:59:15', '2023-01-16 10:59:15'),
(90, 'edit_sell_payment', 'web', '2023-01-16 10:59:15', '2023-01-16 10:59:15'),
(91, 'delete_sell_payment', 'web', '2023-01-16 10:59:15', '2023-01-16 10:59:15'),
(92, 'access_sell_return', 'web', '2023-01-16 10:59:15', '2023-01-16 10:59:15'),
(93, 'access_own_sell_return', 'web', '2023-01-16 10:59:15', '2023-01-16 10:59:15'),
(94, 'edit_invoice_number', 'web', '2023-01-16 10:59:15', '2023-01-16 10:59:15'),
(95, 'direct_sell.view', 'web', '2023-01-16 10:59:15', '2023-01-16 10:59:15'),
(96, 'selling_price_group.1', 'web', '2023-04-02 18:07:52', '2023-04-02 18:07:52'),
(97, 'view_export_buttons', 'web', '2023-06-14 21:47:12', '2023-06-14 21:47:12'),
(98, 'quotation.update', 'web', '2023-07-09 16:21:00', '2023-07-09 16:21:00'),
(99, 'expense.add', 'web', '2023-07-09 16:21:00', '2023-07-09 16:21:00'),
(100, 'expense.edit', 'web', '2023-07-09 16:21:00', '2023-07-09 16:21:00'),
(101, 'supplier.view_own', 'web', '2023-07-09 16:21:00', '2023-07-09 16:21:00'),
(102, 'customer.view_own', 'web', '2023-07-09 16:21:00', '2023-07-09 16:21:00'),
(103, 'quotation.view_own', 'web', '2023-07-09 16:21:00', '2023-07-09 16:21:00'),
(104, 'view_own_expense', 'web', '2023-07-09 16:21:00', '2023-07-09 16:21:00'),
(105, 'edit_purchase_payment', 'web', '2023-07-09 16:27:15', '2023-07-09 16:27:15'),
(106, 'delete_purchase_payment', 'web', '2023-07-09 16:27:15', '2023-07-09 16:27:15'),
(107, 'draft.update', 'web', '2023-07-09 16:27:15', '2023-07-09 16:27:15'),
(108, 'draft.delete', 'web', '2023-07-09 16:27:15', '2023-07-09 16:27:15'),
(109, 'quotation.delete', 'web', '2023-07-09 16:27:15', '2023-07-09 16:27:15'),
(110, 'access_pending_shipments_only', 'web', '2023-07-09 16:27:15', '2023-07-09 16:27:15'),
(111, 'access_commission_agent_shipping', 'web', '2023-07-09 16:27:15', '2023-07-09 16:27:15'),
(112, 'view_product_stock_value', 'web', '2023-07-09 16:27:15', '2023-07-09 16:27:15'),
(113, 'access_printers', 'web', '2023-07-09 16:27:15', '2023-07-09 16:27:15'),
(114, 'expense.delete', 'web', '2023-07-09 16:27:15', '2023-07-09 16:27:15'),
(115, 'edit_account_transaction', 'web', '2023-07-09 16:27:15', '2023-07-09 16:27:15'),
(116, 'delete_account_transaction', 'web', '2023-07-09 16:27:15', '2023-07-09 16:27:15'),
(117, 'customer_irrespective_of_sell', 'web', '2023-07-09 16:27:15', '2023-07-09 16:27:15'),
(118, 'view_own_purchase', 'web', '2023-07-09 16:27:15', '2023-07-09 16:27:15'),
(119, 'draft.view_own', 'web', '2023-07-09 16:27:15', '2023-07-09 16:27:15'),
(120, 'access_own_shipping', 'web', '2023-07-09 16:27:15', '2023-07-09 16:27:15');

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

--
-- Table structure for table `printers`
--

CREATE TABLE `printers` (
  `id` int UNSIGNED NOT NULL,
  `business_id` int UNSIGNED NOT NULL,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `connection_type` enum('network','windows','linux') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `capability_profile` enum('default','simple','SP2000','TEP-200M','P822D') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'default',
  `char_per_line` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `ip_address` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `port` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `path` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_by` int UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

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

--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `id` int UNSIGNED NOT NULL,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `business_id` int UNSIGNED NOT NULL,
  `type` enum('single','variable','modifier','combo') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `unit_id` int UNSIGNED DEFAULT NULL,
  `secondary_unit_id` int DEFAULT NULL,
  `sub_unit_ids` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `brand_id` int UNSIGNED DEFAULT NULL,
  `category_id` int UNSIGNED DEFAULT NULL,
  `sub_category_id` int UNSIGNED DEFAULT NULL,
  `tax` int UNSIGNED DEFAULT NULL,
  `tax_type` enum('inclusive','exclusive') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `enable_stock` tinyint(1) NOT NULL DEFAULT '0',
  `alert_quantity` decimal(22,4) DEFAULT NULL,
  `sku` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `barcode_type` enum('C39','C128','EAN13','EAN8','UPCA','UPCE') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT 'C128',
  `expiry_period` decimal(4,2) DEFAULT NULL,
  `expiry_period_type` enum('days','months') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `enable_sr_no` tinyint(1) NOT NULL DEFAULT '0',
  `weight` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `product_custom_field1` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `product_custom_field2` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `product_custom_field3` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `product_custom_field4` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `image` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `product_description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `created_by` int UNSIGNED NOT NULL,
  `preparation_time_in_minutes` int DEFAULT NULL,
  `warranty_id` int DEFAULT NULL,
  `is_inactive` tinyint(1) NOT NULL DEFAULT '0',
  `not_for_selling` tinyint(1) NOT NULL DEFAULT '0',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `sub_sub_category_id` int UNSIGNED DEFAULT NULL,
  `supplier_ids` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `face_value_price` decimal(8,2) DEFAULT NULL,
  `default_purchase_price` decimal(8,2) DEFAULT NULL,
  `default_selling_price` decimal(8,2) DEFAULT NULL,
  `published` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `products`
--

INSERT INTO `products` (`id`, `name`, `business_id`, `type`, `unit_id`, `secondary_unit_id`, `sub_unit_ids`, `brand_id`, `category_id`, `sub_category_id`, `tax`, `tax_type`, `enable_stock`, `alert_quantity`, `sku`, `barcode_type`, `expiry_period`, `expiry_period_type`, `enable_sr_no`, `weight`, `product_custom_field1`, `product_custom_field2`, `product_custom_field3`, `product_custom_field4`, `image`, `product_description`, `created_by`, `preparation_time_in_minutes`, `warranty_id`, `is_inactive`, `not_for_selling`, `created_at`, `updated_at`, `sub_sub_category_id`, `supplier_ids`, `face_value_price`, `default_purchase_price`, `default_selling_price`, `published`) VALUES
(1, 'Water', 1, 'single', 1, NULL, NULL, NULL, 1, NULL, NULL, 'exclusive', 1, NULL, '0001', 'C128', NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, 0, 0, '2023-08-06 07:37:56', '2023-08-06 07:37:56', NULL, '\"[\\\"52\\\"]\"', NULL, NULL, NULL, 0),
(2, 'itel', 1, 'single', 1, NULL, NULL, NULL, NULL, NULL, NULL, 'exclusive', 1, NULL, '0002', 'C128', NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, 0, 0, '2023-08-06 10:43:25', '2023-08-06 10:43:25', NULL, '\"[\\\"52\\\"]\"', NULL, NULL, NULL, 0),
(3, 'Mobile', 1, 'single', 1, NULL, NULL, NULL, NULL, NULL, NULL, 'exclusive', 1, NULL, '0003', 'C128', NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, 0, 0, '2023-08-06 12:57:27', '2023-08-06 12:57:27', NULL, '\"[\\\"53\\\"]\"', NULL, NULL, NULL, 0),
(4, 'test', 1, 'single', 1, NULL, NULL, NULL, NULL, NULL, NULL, 'exclusive', 1, NULL, '12345678', 'C128', NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, 0, 0, '2023-08-06 13:35:25', '2023-08-06 13:35:25', NULL, '\"[\\\"53\\\"]\"', NULL, NULL, NULL, 0);

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

--
-- Table structure for table `product_barcodes`
--

CREATE TABLE `product_barcodes` (
  `id` bigint UNSIGNED NOT NULL,
  `product_id` int UNSIGNED DEFAULT NULL,
  `barcode` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `qty_available` decimal(22,4) NOT NULL DEFAULT '0.0000',
  `status` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `product_barcodes`
--

INSERT INTO `product_barcodes` (`id`, `product_id`, `barcode`, `qty_available`, `status`, `created_at`, `updated_at`) VALUES
(1, 1, '701957', '30.0000', 1, '2023-08-06 07:37:56', '2023-08-06 07:53:22'),
(2, 2, '274137', '0.0000', 1, '2023-08-06 10:43:25', '2023-08-06 10:43:25'),
(3, 2, '728598', '15.0000', 1, '2023-08-06 10:43:25', '2023-08-06 12:55:31'),
(4, 2, '869604', '33.0000', 1, '2023-08-06 10:43:25', '2023-08-06 11:18:14'),
(5, 3, '938828', '3.0000', 1, '2023-08-06 12:57:27', '2023-08-06 13:01:27'),
(6, 3, '233215', '5.0000', 1, '2023-08-06 12:57:27', '2023-08-06 12:58:45'),
(7, 3, '610746', '22.0000', 1, '2023-08-06 12:57:27', '2023-08-06 13:15:47'),
(8, 4, '200187', '0.0000', 1, '2023-08-06 13:35:25', '2023-08-06 13:35:25');

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

--
-- Table structure for table `product_display_entries`
--

CREATE TABLE `product_display_entries` (
  `id` int NOT NULL,
  `display_id` int DEFAULT NULL,
  `product_id` int DEFAULT NULL,
  `supplier_id` int DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

--
-- Table structure for table `product_display_payment_history`
--

CREATE TABLE `product_display_payment_history` (
  `id` int NOT NULL,
  `supplier_id` int DEFAULT NULL,
  `token_number` text,
  `payment_type` text,
  `month` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci,
  `year` year DEFAULT NULL,
  `amount` double DEFAULT NULL,
  `payment_date` date DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

--
-- Table structure for table `product_display_summery`
--

CREATE TABLE `product_display_summery` (
  `id` int NOT NULL,
  `token_number` text,
  `supplier_id` int DEFAULT NULL,
  `business_id` int DEFAULT NULL,
  `start_month` text,
  `start_year` year DEFAULT NULL,
  `agreement_date` date DEFAULT NULL,
  `monthly_charge` double DEFAULT NULL,
  `agreement_document` longtext,
  `status` tinyint DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `created_by` int DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

--
-- Table structure for table `product_locations`
--

CREATE TABLE `product_locations` (
  `product_id` int NOT NULL,
  `location_id` int NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `product_locations`
--

INSERT INTO `product_locations` (`product_id`, `location_id`) VALUES
(1, 1),
(2, 1),
(3, 1),
(4, 1);

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

--
-- Table structure for table `product_racks`
--

CREATE TABLE `product_racks` (
  `id` int UNSIGNED NOT NULL,
  `business_id` int UNSIGNED NOT NULL,
  `location_id` int UNSIGNED NOT NULL,
  `product_id` int UNSIGNED NOT NULL,
  `rack` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `row` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `position` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

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

--
-- Table structure for table `product_variations`
--

CREATE TABLE `product_variations` (
  `id` int UNSIGNED NOT NULL,
  `variation_template_id` int DEFAULT NULL,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `product_id` int UNSIGNED NOT NULL,
  `is_dummy` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `product_variations`
--

INSERT INTO `product_variations` (`id`, `variation_template_id`, `name`, `product_id`, `is_dummy`, `created_at`, `updated_at`) VALUES
(1, NULL, 'DUMMY', 1, 1, '2023-08-06 07:37:56', '2023-08-06 07:37:56'),
(2, NULL, 'DUMMY', 2, 1, '2023-08-06 10:43:25', '2023-08-06 10:43:25'),
(3, NULL, 'DUMMY', 3, 1, '2023-08-06 12:57:27', '2023-08-06 12:57:27'),
(4, NULL, 'DUMMY', 4, 1, '2023-08-06 13:35:25', '2023-08-06 13:35:25');

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

--
-- Table structure for table `purchase_lines`
--

CREATE TABLE `purchase_lines` (
  `id` int UNSIGNED NOT NULL,
  `transaction_id` int UNSIGNED NOT NULL,
  `product_id` int UNSIGNED NOT NULL,
  `variation_id` int UNSIGNED NOT NULL,
  `quantity` decimal(22,4) NOT NULL DEFAULT '0.0000',
  `secondary_unit_quantity` decimal(22,4) NOT NULL DEFAULT '0.0000',
  `pp_without_discount` decimal(22,4) NOT NULL DEFAULT '0.0000' COMMENT 'Purchase price before inline discounts',
  `discount_percent` decimal(5,2) NOT NULL DEFAULT '0.00' COMMENT 'Inline discount percentage',
  `purchase_price` decimal(22,4) NOT NULL,
  `purchase_price_inc_tax` decimal(22,4) NOT NULL DEFAULT '0.0000',
  `item_tax` decimal(22,4) NOT NULL COMMENT 'Tax for one quantity',
  `tax_id` int UNSIGNED DEFAULT NULL,
  `purchase_requisition_line_id` int DEFAULT NULL,
  `purchase_order_line_id` int DEFAULT NULL,
  `quantity_sold` decimal(22,4) NOT NULL DEFAULT '0.0000' COMMENT 'Quanity sold from this purchase line',
  `quantity_adjusted` decimal(22,4) NOT NULL DEFAULT '0.0000' COMMENT 'Quanity adjusted in stock adjustment from this purchase line',
  `quantity_returned` decimal(22,4) NOT NULL DEFAULT '0.0000',
  `po_quantity_purchased` decimal(22,4) NOT NULL DEFAULT '0.0000',
  `mfg_quantity_used` decimal(22,4) NOT NULL DEFAULT '0.0000',
  `mfg_date` date DEFAULT NULL,
  `exp_date` date DEFAULT NULL,
  `lot_number` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `sub_unit_id` int DEFAULT NULL,
  `barcode` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `purchase_lines`
--

INSERT INTO `purchase_lines` (`id`, `transaction_id`, `product_id`, `variation_id`, `quantity`, `secondary_unit_quantity`, `pp_without_discount`, `discount_percent`, `purchase_price`, `purchase_price_inc_tax`, `item_tax`, `tax_id`, `purchase_requisition_line_id`, `purchase_order_line_id`, `quantity_sold`, `quantity_adjusted`, `quantity_returned`, `po_quantity_purchased`, `mfg_quantity_used`, `mfg_date`, `exp_date`, `lot_number`, `sub_unit_id`, `barcode`, `created_at`, `updated_at`) VALUES
(1, 1, 1, 1, '20.0000', '0.0000', '100.0000', '0.00', '100.0000', '100.0000', '0.0000', NULL, NULL, NULL, '3.0000', '0.0000', '0.0000', '0.0000', '0.0000', NULL, NULL, NULL, NULL, '701957', '2023-08-06 07:39:48', '2023-08-06 07:53:49'),
(2, 2, 1, 1, '10.0000', '0.0000', '100.0000', '0.00', '100.0000', '100.0000', '0.0000', NULL, NULL, NULL, '0.0000', '0.0000', '0.0000', '0.0000', '0.0000', NULL, NULL, NULL, NULL, '701957', '2023-08-06 07:52:44', '2023-08-06 07:53:22'),
(3, 4, 2, 2, '20.0000', '0.0000', '120.0000', '0.00', '120.0000', '120.0000', '0.0000', NULL, NULL, NULL, '0.0000', '0.0000', '0.0000', '0.0000', '0.0000', NULL, NULL, NULL, NULL, '869604', '2023-08-06 10:44:12', '2023-08-06 10:58:34'),
(4, 5, 2, 2, '5.0000', '0.0000', '150.0000', '0.00', '150.0000', '150.0000', '0.0000', NULL, NULL, NULL, '0.0000', '0.0000', '0.0000', '0.0000', '0.0000', NULL, NULL, NULL, NULL, '869604', '2023-08-06 11:00:13', '2023-08-06 11:00:18'),
(5, 6, 2, 2, '2.0000', '0.0000', '100.0000', '0.00', '100.0000', '100.0000', '0.0000', NULL, NULL, NULL, '0.0000', '0.0000', '0.0000', '0.0000', '0.0000', NULL, NULL, NULL, NULL, '869604', '2023-08-06 11:01:12', '2023-08-06 11:01:18'),
(6, 7, 2, 2, '4.0000', '0.0000', '120.0000', '0.00', '120.0000', '120.0000', '0.0000', NULL, NULL, NULL, '0.0000', '0.0000', '0.0000', '0.0000', '0.0000', NULL, NULL, NULL, NULL, '869604', '2023-08-06 11:03:22', '2023-08-06 11:03:31'),
(7, 8, 2, 2, '2.0000', '0.0000', '150.0000', '0.00', '150.0000', '150.0000', '0.0000', NULL, NULL, NULL, '0.0000', '0.0000', '0.0000', '0.0000', '0.0000', NULL, NULL, NULL, NULL, '869604', '2023-08-06 11:18:04', '2023-08-06 11:18:14'),
(8, 9, 2, 2, '5.0000', '0.0000', '100.0000', '0.00', '100.0000', '100.0000', '0.0000', NULL, NULL, NULL, '0.0000', '0.0000', '0.0000', '0.0000', '0.0000', NULL, NULL, NULL, NULL, '869604', '2023-08-06 11:19:17', '2023-08-06 11:19:17'),
(9, 12, 2, 2, '15.0000', '0.0000', '120.0000', '0.00', '120.0000', '120.0000', '0.0000', NULL, NULL, NULL, '0.0000', '0.0000', '0.0000', '0.0000', '0.0000', NULL, NULL, NULL, NULL, '728598', '2023-08-06 12:55:09', '2023-08-06 12:55:31'),
(10, 13, 3, 3, '10.0000', '0.0000', '900.0000', '0.00', '900.0000', '900.0000', '0.0000', NULL, NULL, NULL, '0.0000', '0.0000', '0.0000', '0.0000', '0.0000', NULL, NULL, NULL, NULL, '610746', '2023-08-06 12:57:55', '2023-08-06 12:58:14'),
(11, 14, 3, 3, '5.0000', '0.0000', '1100.0000', '0.00', '1100.0000', '1100.0000', '0.0000', NULL, NULL, NULL, '0.0000', '0.0000', '0.0000', '0.0000', '0.0000', NULL, NULL, NULL, NULL, '233215', '2023-08-06 12:58:38', '2023-08-06 12:58:45'),
(12, 15, 3, 3, '3.0000', '0.0000', '1200.0000', '0.00', '1200.0000', '1200.0000', '0.0000', NULL, NULL, NULL, '0.0000', '0.0000', '0.0000', '0.0000', '0.0000', NULL, NULL, NULL, NULL, '938828', '2023-08-06 13:01:21', '2023-08-06 13:01:27'),
(13, 16, 3, 3, '7.0000', '0.0000', '2000.0000', '0.00', '2000.0000', '2000.0000', '0.0000', NULL, NULL, NULL, '0.0000', '0.0000', '0.0000', '0.0000', '0.0000', NULL, NULL, NULL, NULL, '610746', '2023-08-06 13:03:49', '2023-08-06 13:03:56'),
(14, 17, 3, 3, '5.0000', '0.0000', '3000.0000', '0.00', '3000.0000', '3000.0000', '0.0000', NULL, NULL, NULL, '0.0000', '0.0000', '0.0000', '0.0000', '0.0000', NULL, NULL, NULL, NULL, '610746', '2023-08-06 13:15:38', '2023-08-06 13:15:47');

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

--
-- Table structure for table `reference_counts`
--

CREATE TABLE `reference_counts` (
  `id` int UNSIGNED NOT NULL,
  `ref_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `ref_count` int NOT NULL,
  `business_id` int NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `reference_counts`
--

INSERT INTO `reference_counts` (`id`, `ref_type`, `ref_count`, `business_id`, `created_at`, `updated_at`) VALUES
(1, 'contacts', 65, 1, '2022-12-11 10:37:42', '2023-08-06 12:56:31'),
(2, 'business_location', 1, 1, '2022-12-11 10:37:42', '2022-12-11 10:37:42'),
(3, 'purchase', 66, 1, '2023-01-16 05:17:20', '2023-08-06 13:15:38'),
(4, 'purchase_payment', 8, 1, '2023-01-16 05:17:20', '2023-08-06 07:40:17'),
(5, 'purchase_return', 2, 1, '2023-01-16 05:43:21', '2023-07-28 06:28:18'),
(6, 'sell_payment', 39, 1, '2023-01-16 06:08:59', '2023-08-06 07:53:49'),
(7, 'stock_adjustment', 2, 1, '2023-01-16 07:10:00', '2023-07-01 16:44:23'),
(8, 'expense', 3, 1, '2023-01-16 07:15:45', '2023-07-17 22:03:18'),
(9, 'purchase_order', 2, 1, '2023-03-01 04:59:41', '2023-08-05 09:49:57'),
(10, 'username', 9, 1, '2023-06-14 21:44:33', '2023-06-16 22:59:42'),
(11, 'draft', 1, 1, '2023-07-08 06:21:43', '2023-07-08 06:21:43');

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

--
-- Table structure for table `res_product_modifier_sets`
--

CREATE TABLE `res_product_modifier_sets` (
  `modifier_set_id` int UNSIGNED NOT NULL,
  `product_id` int UNSIGNED NOT NULL COMMENT 'Table use to store the modifier sets applicable for a product'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

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

--
-- Table structure for table `res_tables`
--

CREATE TABLE `res_tables` (
  `id` int UNSIGNED NOT NULL,
  `business_id` int UNSIGNED NOT NULL,
  `location_id` int UNSIGNED NOT NULL,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `created_by` int UNSIGNED NOT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

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

--
-- Table structure for table `roles`
--

CREATE TABLE `roles` (
  `id` int UNSIGNED NOT NULL,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `guard_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `business_id` int UNSIGNED NOT NULL,
  `is_default` tinyint(1) NOT NULL DEFAULT '0',
  `is_service_staff` tinyint(1) NOT NULL DEFAULT '0',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `roles`
--

INSERT INTO `roles` (`id`, `name`, `guard_name`, `business_id`, `is_default`, `is_service_staff`, `created_at`, `updated_at`) VALUES
(1, 'Admin#1', 'web', 1, 1, 0, '2022-12-11 10:37:42', '2022-12-11 10:37:42'),
(6, 'Sales Person#1', 'web', 1, 1, 0, '2023-07-09 16:21:00', '2023-07-09 16:21:00'),
(8, 'Salesman#1', 'web', 1, 1, 0, '2023-07-10 02:27:46', '2023-07-10 02:27:46'),
(9, 'Sales Person 2#1', 'web', 1, 0, 0, '2023-07-10 02:52:16', '2023-07-10 02:52:16');

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

--
-- Table structure for table `role_has_permissions`
--

CREATE TABLE `role_has_permissions` (
  `permission_id` int UNSIGNED NOT NULL,
  `role_id` int UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `role_has_permissions`
--

INSERT INTO `role_has_permissions` (`permission_id`, `role_id`) VALUES
(19, 2),
(20, 2),
(25, 2),
(26, 2),
(27, 2),
(48, 2),
(49, 2),
(50, 2),
(51, 2),
(6, 4),
(81, 4),
(97, 4),
(2, 8),
(3, 8),
(6, 8),
(8, 8),
(9, 8),
(10, 8),
(16, 8),
(17, 8),
(18, 8),
(19, 8),
(20, 8),
(25, 8),
(26, 8),
(27, 8),
(33, 8),
(34, 8),
(37, 8),
(38, 8),
(40, 8),
(41, 8),
(42, 8),
(48, 8),
(49, 8),
(50, 8),
(71, 8),
(72, 8),
(75, 8),
(76, 8),
(81, 8),
(83, 8),
(84, 8),
(85, 8),
(86, 8),
(87, 8),
(89, 8),
(90, 8),
(92, 8),
(93, 8),
(94, 8),
(98, 8),
(99, 8),
(101, 8),
(102, 8),
(103, 8),
(104, 8),
(117, 8),
(2, 9),
(3, 9),
(8, 9),
(9, 9),
(10, 9),
(16, 9),
(17, 9),
(18, 9),
(19, 9),
(20, 9),
(25, 9),
(26, 9),
(27, 9),
(33, 9),
(34, 9),
(37, 9),
(38, 9),
(40, 9),
(41, 9),
(42, 9),
(48, 9),
(49, 9),
(50, 9),
(63, 9),
(64, 9),
(65, 9),
(71, 9),
(72, 9),
(73, 9),
(75, 9),
(76, 9),
(77, 9),
(83, 9),
(84, 9),
(85, 9),
(86, 9),
(87, 9),
(89, 9),
(90, 9),
(92, 9),
(93, 9),
(94, 9),
(98, 9),
(99, 9),
(100, 9),
(101, 9),
(102, 9),
(103, 9),
(104, 9),
(117, 9);

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

--
-- Table structure for table `salary_statements`
--

CREATE TABLE `salary_statements` (
  `id` int UNSIGNED NOT NULL,
  `employee_id` int DEFAULT NULL,
  `business_id` int UNSIGNED NOT NULL,
  `employee_monthly_salary` double DEFAULT NULL,
  `salary_date` date DEFAULT NULL,
  `salary_month` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `salary_year` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `already_salary` double DEFAULT NULL,
  `pay_by` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `amount` double DEFAULT NULL,
  `advance_pay` double DEFAULT NULL,
  `payment_type` tinyint DEFAULT NULL,
  `payment_head` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `note` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `created_by` int UNSIGNED NOT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

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

--
-- Table structure for table `selling_price_groups`
--

CREATE TABLE `selling_price_groups` (
  `id` int UNSIGNED NOT NULL,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `business_id` int UNSIGNED NOT NULL,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

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

--
-- Table structure for table `sell_line_warranties`
--

CREATE TABLE `sell_line_warranties` (
  `sell_line_id` int NOT NULL,
  `warranty_id` int NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

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

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `user_id` int UNSIGNED DEFAULT NULL,
  `ip_address` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `user_agent` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `payload` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `last_activity` int NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

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

--
-- Table structure for table `stock_adjustments_temp`
--

CREATE TABLE `stock_adjustments_temp` (
  `id` int DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

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

--
-- Table structure for table `stock_adjustment_lines`
--

CREATE TABLE `stock_adjustment_lines` (
  `id` int UNSIGNED NOT NULL,
  `transaction_id` int UNSIGNED NOT NULL,
  `product_id` int UNSIGNED NOT NULL,
  `variation_id` int UNSIGNED NOT NULL,
  `quantity` decimal(22,4) NOT NULL,
  `secondary_unit_quantity` decimal(22,4) NOT NULL DEFAULT '0.0000',
  `unit_price` decimal(22,4) DEFAULT NULL COMMENT 'Last purchase unit price',
  `removed_purchase_line` int DEFAULT NULL,
  `lot_no_line_id` int DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

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

--
-- Table structure for table `supplier_schedule`
--

CREATE TABLE `supplier_schedule` (
  `id` int UNSIGNED NOT NULL,
  `supplier_id` int DEFAULT NULL,
  `schedule_date_time` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `schedule_purpose` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `status` tinyint NOT NULL,
  `created_by` int UNSIGNED NOT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `supplier_schedule`
--

INSERT INTO `supplier_schedule` (`id`, `supplier_id`, `schedule_date_time`, `schedule_purpose`, `status`, `created_by`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, 42, '2023-07-18T10:02', 'Metting With Shanto', 1, 1, NULL, '2023-07-18 15:01:14', '2023-07-18 15:26:54'),
(2, 43, '2023-07-20T12:30', 'Metting With MD', 1, 1, NULL, '2023-07-18 15:26:30', '2023-07-18 15:26:30'),
(3, 44, '2023-07-22T17:00', 'Urgent Meeting', 1, 1, NULL, '2023-07-18 22:57:17', '2023-07-18 22:57:17');

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

--
-- Table structure for table `system`
--

CREATE TABLE `system` (
  `id` int UNSIGNED NOT NULL,
  `key` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `value` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `system`
--

INSERT INTO `system` (`id`, `key`, `value`) VALUES
(1, 'db_version', '4.8'),
(2, 'default_business_active_status', '1');

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

--
-- Table structure for table `tax_rates`
--

CREATE TABLE `tax_rates` (
  `id` int UNSIGNED NOT NULL,
  `business_id` int UNSIGNED NOT NULL,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `amount` double(22,4) NOT NULL,
  `is_tax_group` tinyint(1) NOT NULL DEFAULT '0',
  `for_tax_group` tinyint(1) NOT NULL DEFAULT '0',
  `created_by` int UNSIGNED NOT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

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

--
-- Table structure for table `templates`
--

CREATE TABLE `templates` (
  `id` int NOT NULL,
  `title_template` varchar(255) DEFAULT NULL,
  `template_message` varchar(255) DEFAULT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `templates`
--

INSERT INTO `templates` (`id`, `title_template`, `template_message`, `created_at`, `updated_at`) VALUES
(1, 'Special Offer', 'Discount Eid Special Offer', '2023-07-11 09:57:10', '2023-07-11 09:57:43'),
(2, 'sdadsad', 'asdsad', '2023-07-20 19:32:11', '2023-07-20 19:32:11');

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

--
-- Table structure for table `transactions`
--

CREATE TABLE `transactions` (
  `id` int UNSIGNED NOT NULL,
  `business_id` int UNSIGNED NOT NULL,
  `location_id` int UNSIGNED DEFAULT NULL,
  `res_table_id` int UNSIGNED DEFAULT NULL COMMENT 'fields to restaurant module',
  `res_waiter_id` int UNSIGNED DEFAULT NULL COMMENT 'fields to restaurant module',
  `res_order_status` enum('received','cooked','served') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `sub_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `status` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `sub_status` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `is_quotation` tinyint(1) NOT NULL DEFAULT '0',
  `payment_status` enum('paid','due','partial') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `adjustment_type` enum('normal','abnormal') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `contact_id` int UNSIGNED DEFAULT NULL,
  `customer_group_id` int DEFAULT NULL COMMENT 'used to add customer group while selling',
  `invoice_no` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `ref_no` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `source` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `subscription_no` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `subscription_repeat_on` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `transaction_date` datetime NOT NULL,
  `total_before_tax` decimal(22,4) NOT NULL DEFAULT '0.0000' COMMENT 'Total before the purchase/invoice tax, this includeds the indivisual product tax',
  `tax_id` int UNSIGNED DEFAULT NULL,
  `tax_amount` decimal(22,4) NOT NULL DEFAULT '0.0000',
  `discount_type` enum('fixed','percentage') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `discount_amount` decimal(22,4) DEFAULT '0.0000',
  `rp_redeemed` int NOT NULL DEFAULT '0' COMMENT 'rp is the short form of reward points',
  `rp_redeemed_amount` decimal(22,4) NOT NULL DEFAULT '0.0000' COMMENT 'rp is the short form of reward points',
  `shipping_details` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `shipping_address` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `delivery_date` datetime DEFAULT NULL,
  `shipping_status` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `delivered_to` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `shipping_charges` decimal(22,4) NOT NULL DEFAULT '0.0000',
  `shipping_custom_field_1` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `shipping_custom_field_2` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `shipping_custom_field_3` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `shipping_custom_field_4` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `shipping_custom_field_5` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `additional_notes` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `staff_note` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `is_export` tinyint(1) NOT NULL DEFAULT '0',
  `export_custom_fields_info` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `round_off_amount` decimal(22,4) NOT NULL DEFAULT '0.0000' COMMENT 'Difference of rounded total and actual total',
  `additional_expense_key_1` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `additional_expense_value_1` decimal(22,4) NOT NULL DEFAULT '0.0000',
  `additional_expense_key_2` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `additional_expense_value_2` decimal(22,4) NOT NULL DEFAULT '0.0000',
  `additional_expense_key_3` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `additional_expense_value_3` decimal(22,4) NOT NULL DEFAULT '0.0000',
  `additional_expense_key_4` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `additional_expense_value_4` decimal(22,4) NOT NULL DEFAULT '0.0000',
  `final_total` decimal(22,4) NOT NULL DEFAULT '0.0000',
  `expense_category_id` int UNSIGNED DEFAULT NULL,
  `expense_sub_category_id` int DEFAULT NULL,
  `expense_for` int UNSIGNED DEFAULT NULL,
  `commission_agent` int DEFAULT NULL,
  `document` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `is_direct_sale` tinyint(1) NOT NULL DEFAULT '0',
  `is_suspend` tinyint(1) NOT NULL DEFAULT '0',
  `exchange_rate` decimal(20,3) NOT NULL DEFAULT '1.000',
  `total_amount_recovered` decimal(22,4) DEFAULT NULL COMMENT 'Used for stock adjustment.',
  `transfer_parent_id` int DEFAULT NULL,
  `return_parent_id` int DEFAULT NULL,
  `opening_stock_product_id` int DEFAULT NULL,
  `created_by` int UNSIGNED NOT NULL,
  `purchase_requisition_ids` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `prefer_payment_method` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `prefer_payment_account` int DEFAULT NULL,
  `sales_order_ids` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `purchase_order_ids` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `custom_field_1` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `custom_field_2` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `custom_field_3` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `custom_field_4` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `import_batch` int DEFAULT NULL,
  `import_time` datetime DEFAULT NULL,
  `types_of_service_id` int DEFAULT NULL,
  `packing_charge` decimal(22,4) DEFAULT NULL,
  `packing_charge_type` enum('fixed','percent') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `service_custom_field_1` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `service_custom_field_2` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `service_custom_field_3` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `service_custom_field_4` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `service_custom_field_5` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `service_custom_field_6` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `is_created_from_api` tinyint(1) NOT NULL DEFAULT '0',
  `rp_earned` int NOT NULL DEFAULT '0' COMMENT 'rp is the short form of reward points',
  `order_addresses` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `is_recurring` tinyint(1) NOT NULL DEFAULT '0',
  `recur_interval` double(22,4) DEFAULT NULL,
  `recur_interval_type` enum('days','months','years') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `recur_repetitions` int DEFAULT NULL,
  `recur_stopped_on` datetime DEFAULT NULL,
  `recur_parent_id` int DEFAULT NULL,
  `invoice_token` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `pay_term_number` int DEFAULT NULL,
  `pay_term_type` enum('days','months') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `selling_price_group_id` int DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `transactions`
--

INSERT INTO `transactions` (`id`, `business_id`, `location_id`, `res_table_id`, `res_waiter_id`, `res_order_status`, `type`, `sub_type`, `status`, `sub_status`, `is_quotation`, `payment_status`, `adjustment_type`, `contact_id`, `customer_group_id`, `invoice_no`, `ref_no`, `source`, `subscription_no`, `subscription_repeat_on`, `transaction_date`, `total_before_tax`, `tax_id`, `tax_amount`, `discount_type`, `discount_amount`, `rp_redeemed`, `rp_redeemed_amount`, `shipping_details`, `shipping_address`, `delivery_date`, `shipping_status`, `delivered_to`, `shipping_charges`, `shipping_custom_field_1`, `shipping_custom_field_2`, `shipping_custom_field_3`, `shipping_custom_field_4`, `shipping_custom_field_5`, `additional_notes`, `staff_note`, `is_export`, `export_custom_fields_info`, `round_off_amount`, `additional_expense_key_1`, `additional_expense_value_1`, `additional_expense_key_2`, `additional_expense_value_2`, `additional_expense_key_3`, `additional_expense_value_3`, `additional_expense_key_4`, `additional_expense_value_4`, `final_total`, `expense_category_id`, `expense_sub_category_id`, `expense_for`, `commission_agent`, `document`, `is_direct_sale`, `is_suspend`, `exchange_rate`, `total_amount_recovered`, `transfer_parent_id`, `return_parent_id`, `opening_stock_product_id`, `created_by`, `purchase_requisition_ids`, `prefer_payment_method`, `prefer_payment_account`, `sales_order_ids`, `purchase_order_ids`, `custom_field_1`, `custom_field_2`, `custom_field_3`, `custom_field_4`, `import_batch`, `import_time`, `types_of_service_id`, `packing_charge`, `packing_charge_type`, `service_custom_field_1`, `service_custom_field_2`, `service_custom_field_3`, `service_custom_field_4`, `service_custom_field_5`, `service_custom_field_6`, `is_created_from_api`, `rp_earned`, `order_addresses`, `is_recurring`, `recur_interval`, `recur_interval_type`, `recur_repetitions`, `recur_stopped_on`, `recur_parent_id`, `invoice_token`, `pay_term_number`, `pay_term_type`, `selling_price_group_id`, `created_at`, `updated_at`) VALUES
(1, 1, 1, NULL, NULL, NULL, 'purchase', NULL, 'received', NULL, 0, 'paid', NULL, 52, NULL, NULL, 'IN-2470398304587', NULL, NULL, NULL, '2023-08-06 13:38:00', '2000.0000', NULL, '0.0000', NULL, '0.0000', 0, '0.0000', NULL, NULL, NULL, NULL, NULL, '0.0000', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '0.0000', NULL, '0.0000', NULL, '0.0000', NULL, '0.0000', NULL, '0.0000', '2000.0000', NULL, NULL, NULL, NULL, NULL, 0, 0, '1.000', NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2023-08-06 07:39:48', '2023-08-06 07:40:17'),
(2, 1, 1, NULL, NULL, NULL, 'purchase', NULL, 'received', NULL, 0, 'due', NULL, 52, NULL, NULL, 'IN-8677692252697', NULL, NULL, NULL, '2023-08-06 13:49:00', '1000.0000', NULL, '0.0000', NULL, '0.0000', 0, '0.0000', NULL, NULL, NULL, NULL, NULL, '0.0000', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '0.0000', NULL, '0.0000', NULL, '0.0000', NULL, '0.0000', NULL, '0.0000', '1000.0000', NULL, NULL, NULL, NULL, NULL, 0, 0, '1.000', NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2023-08-06 07:52:44', '2023-08-06 07:53:22'),
(3, 1, 1, NULL, NULL, NULL, 'sell', NULL, 'final', NULL, 0, 'paid', NULL, 1, NULL, '0040', '', NULL, NULL, NULL, '2023-08-06 13:53:49', '600.0000', NULL, '0.0000', 'percentage', '0.0000', 0, '0.0000', NULL, NULL, NULL, NULL, NULL, '0.0000', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '0.0000', NULL, '0.0000', NULL, '0.0000', NULL, '0.0000', NULL, '0.0000', '600.0000', NULL, NULL, NULL, NULL, NULL, 0, 0, '1.000', NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '0.0000', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, 0, 1.0000, 'days', 0, NULL, NULL, NULL, NULL, NULL, 0, '2023-08-06 07:53:49', '2023-08-06 07:53:49'),
(4, 1, 1, NULL, NULL, NULL, 'purchase', NULL, 'received', NULL, 0, 'due', NULL, 52, NULL, NULL, 'IN-5297299848155', NULL, NULL, NULL, '2023-08-06 16:43:00', '2400.0000', NULL, '0.0000', NULL, '0.0000', 0, '0.0000', NULL, NULL, NULL, NULL, NULL, '0.0000', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '0.0000', NULL, '0.0000', NULL, '0.0000', NULL, '0.0000', NULL, '0.0000', '2400.0000', NULL, NULL, NULL, NULL, NULL, 0, 0, '1.000', NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2023-08-06 10:44:12', '2023-08-06 10:58:34'),
(5, 1, 1, NULL, NULL, NULL, 'purchase', NULL, 'received', NULL, 0, 'due', NULL, 52, NULL, NULL, 'IN-9298730824083', NULL, NULL, NULL, '2023-08-06 16:59:00', '750.0000', NULL, '0.0000', NULL, '0.0000', 0, '0.0000', NULL, NULL, NULL, NULL, NULL, '0.0000', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '0.0000', NULL, '0.0000', NULL, '0.0000', NULL, '0.0000', NULL, '0.0000', '750.0000', NULL, NULL, NULL, NULL, NULL, 0, 0, '1.000', NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2023-08-06 11:00:13', '2023-08-06 11:00:18'),
(6, 1, 1, NULL, NULL, NULL, 'purchase', NULL, 'received', NULL, 0, 'due', NULL, 52, NULL, NULL, 'IN-2416179320183', NULL, NULL, NULL, '2023-08-06 17:00:00', '200.0000', NULL, '0.0000', NULL, '0.0000', 0, '0.0000', NULL, NULL, NULL, NULL, NULL, '0.0000', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '0.0000', NULL, '0.0000', NULL, '0.0000', NULL, '0.0000', NULL, '0.0000', '200.0000', NULL, NULL, NULL, NULL, NULL, 0, 0, '1.000', NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2023-08-06 11:01:12', '2023-08-06 11:01:18'),
(7, 1, 1, NULL, NULL, NULL, 'purchase', NULL, 'received', NULL, 0, 'due', NULL, 52, NULL, NULL, 'IN-7967601688253', NULL, NULL, NULL, '2023-08-06 17:03:00', '480.0000', NULL, '0.0000', NULL, '0.0000', 0, '0.0000', NULL, NULL, NULL, NULL, NULL, '0.0000', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '0.0000', NULL, '0.0000', NULL, '0.0000', NULL, '0.0000', NULL, '0.0000', '480.0000', NULL, NULL, NULL, NULL, NULL, 0, 0, '1.000', NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2023-08-06 11:03:22', '2023-08-06 11:03:31'),
(8, 1, 1, NULL, NULL, NULL, 'purchase', NULL, 'received', NULL, 0, 'due', NULL, 52, NULL, NULL, 'IN-9866584520360', NULL, NULL, NULL, '2023-08-06 17:17:00', '300.0000', NULL, '0.0000', NULL, '0.0000', 0, '0.0000', NULL, NULL, NULL, NULL, NULL, '0.0000', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '0.0000', NULL, '0.0000', NULL, '0.0000', NULL, '0.0000', NULL, '0.0000', '300.0000', NULL, NULL, NULL, NULL, NULL, 0, 0, '1.000', NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2023-08-06 11:18:04', '2023-08-06 11:18:14'),
(9, 1, 1, NULL, NULL, NULL, 'purchase', NULL, 'ordered', NULL, 0, 'due', NULL, 52, NULL, NULL, 'IN-1260190869110', NULL, NULL, NULL, '2023-08-06 17:19:00', '500.0000', NULL, '0.0000', NULL, '0.0000', 0, '0.0000', NULL, NULL, NULL, NULL, NULL, '0.0000', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '0.0000', NULL, '0.0000', NULL, '0.0000', NULL, '0.0000', NULL, '0.0000', '500.0000', NULL, NULL, NULL, NULL, NULL, 0, 0, '1.000', NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2023-08-06 11:19:17', '2023-08-06 11:19:17'),
(12, 1, 1, NULL, NULL, NULL, 'purchase', NULL, 'received', NULL, 0, 'due', NULL, 52, NULL, NULL, 'IN-4941752651355', NULL, NULL, NULL, '2023-08-06 18:54:00', '1800.0000', NULL, '0.0000', NULL, '0.0000', 0, '0.0000', NULL, NULL, NULL, NULL, NULL, '0.0000', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '0.0000', NULL, '0.0000', NULL, '0.0000', NULL, '0.0000', NULL, '0.0000', '1800.0000', NULL, NULL, NULL, NULL, NULL, 0, 0, '1.000', NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2023-08-06 12:55:08', '2023-08-06 12:55:31'),
(13, 1, 1, NULL, NULL, NULL, 'purchase', NULL, 'received', NULL, 0, 'due', NULL, 53, NULL, NULL, 'IN-4608655188830', NULL, NULL, NULL, '2023-08-06 18:57:00', '9000.0000', NULL, '0.0000', NULL, '0.0000', 0, '0.0000', NULL, NULL, NULL, NULL, NULL, '0.0000', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '0.0000', NULL, '0.0000', NULL, '0.0000', NULL, '0.0000', NULL, '0.0000', '9000.0000', NULL, NULL, NULL, NULL, NULL, 0, 0, '1.000', NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2023-08-06 12:57:55', '2023-08-06 12:58:14'),
(14, 1, 1, NULL, NULL, NULL, 'purchase', NULL, 'received', NULL, 0, 'due', NULL, 53, NULL, NULL, 'IN-8664264067387', NULL, NULL, NULL, '2023-08-06 18:58:00', '5500.0000', NULL, '0.0000', NULL, '0.0000', 0, '0.0000', NULL, NULL, NULL, NULL, NULL, '0.0000', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '0.0000', NULL, '0.0000', NULL, '0.0000', NULL, '0.0000', NULL, '0.0000', '5500.0000', NULL, NULL, NULL, NULL, NULL, 0, 0, '1.000', NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2023-08-06 12:58:38', '2023-08-06 12:58:45'),
(15, 1, 1, NULL, NULL, NULL, 'purchase', NULL, 'received', NULL, 0, 'due', NULL, 53, NULL, NULL, 'IN-4306984505786', NULL, NULL, NULL, '2023-08-06 19:01:00', '3600.0000', NULL, '0.0000', NULL, '0.0000', 0, '0.0000', NULL, NULL, NULL, NULL, NULL, '0.0000', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '0.0000', NULL, '0.0000', NULL, '0.0000', NULL, '0.0000', NULL, '0.0000', '3600.0000', NULL, NULL, NULL, NULL, NULL, 0, 0, '1.000', NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2023-08-06 13:01:21', '2023-08-06 13:01:27'),
(16, 1, 1, NULL, NULL, NULL, 'purchase', NULL, 'received', NULL, 0, 'due', NULL, 53, NULL, NULL, 'IN-6932578033838', NULL, NULL, NULL, '2023-08-06 19:02:00', '14000.0000', NULL, '0.0000', NULL, '0.0000', 0, '0.0000', NULL, NULL, NULL, NULL, NULL, '0.0000', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '0.0000', NULL, '0.0000', NULL, '0.0000', NULL, '0.0000', NULL, '0.0000', '14000.0000', NULL, NULL, NULL, NULL, NULL, 0, 0, '1.000', NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2023-08-06 13:03:49', '2023-08-06 13:03:56'),
(17, 1, 1, NULL, NULL, NULL, 'purchase', NULL, 'received', NULL, 0, 'due', NULL, 53, NULL, NULL, 'IN-3499922480229', NULL, NULL, NULL, '2023-08-06 19:14:00', '15000.0000', NULL, '0.0000', NULL, '0.0000', 0, '0.0000', NULL, NULL, NULL, NULL, NULL, '0.0000', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '0.0000', NULL, '0.0000', NULL, '0.0000', NULL, '0.0000', NULL, '0.0000', '15000.0000', NULL, NULL, NULL, NULL, NULL, 0, 0, '1.000', NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2023-08-06 13:15:38', '2023-08-06 13:15:47');

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

--
-- Table structure for table `transaction_payments`
--

CREATE TABLE `transaction_payments` (
  `id` int UNSIGNED NOT NULL,
  `transaction_id` int UNSIGNED DEFAULT NULL,
  `business_id` int DEFAULT NULL,
  `is_return` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'Used during sales to return the change',
  `amount` decimal(22,4) NOT NULL DEFAULT '0.0000',
  `method` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `payment_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `transaction_no` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `card_transaction_number` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `card_number` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `card_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `card_holder_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `card_month` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `card_year` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `card_security` varchar(5) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `cheque_number` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `bank_account_number` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `paid_on` datetime DEFAULT NULL,
  `created_by` int DEFAULT NULL,
  `paid_through_link` tinyint(1) NOT NULL DEFAULT '0',
  `gateway` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `is_advance` tinyint(1) NOT NULL DEFAULT '0',
  `payment_for` int DEFAULT NULL COMMENT 'stores the contact id',
  `parent_id` int DEFAULT NULL,
  `note` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `document` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `payment_ref_no` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `account_id` int DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `transaction_payments`
--

INSERT INTO `transaction_payments` (`id`, `transaction_id`, `business_id`, `is_return`, `amount`, `method`, `payment_type`, `transaction_no`, `card_transaction_number`, `card_number`, `card_type`, `card_holder_name`, `card_month`, `card_year`, `card_security`, `cheque_number`, `bank_account_number`, `paid_on`, `created_by`, `paid_through_link`, `gateway`, `is_advance`, `payment_for`, `parent_id`, `note`, `document`, `payment_ref_no`, `account_id`, `created_at`, `updated_at`) VALUES
(1, 1, 1, 0, '2000.0000', 'cash', NULL, NULL, NULL, NULL, 'credit', NULL, NULL, NULL, NULL, NULL, NULL, '2023-08-06 13:40:00', 1, 0, NULL, 0, 52, NULL, NULL, NULL, 'PP2023/0008', NULL, '2023-08-06 07:40:17', '2023-08-06 07:40:17'),
(2, 3, 1, 0, '600.0000', 'cash', NULL, NULL, NULL, NULL, 'credit', NULL, NULL, NULL, NULL, NULL, NULL, '2023-08-06 13:53:49', 1, 0, NULL, 0, 1, NULL, NULL, NULL, 'SP2023/0039', NULL, '2023-08-06 07:53:49', '2023-08-06 07:53:49');

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

--
-- Table structure for table `transaction_sell_lines`
--

CREATE TABLE `transaction_sell_lines` (
  `id` int UNSIGNED NOT NULL,
  `transaction_id` int UNSIGNED NOT NULL,
  `product_id` int UNSIGNED NOT NULL,
  `variation_id` int UNSIGNED NOT NULL,
  `barcode` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `quantity` decimal(22,4) NOT NULL DEFAULT '0.0000',
  `secondary_unit_quantity` decimal(22,4) NOT NULL DEFAULT '0.0000',
  `quantity_returned` decimal(20,4) NOT NULL DEFAULT '0.0000',
  `unit_price_before_discount` decimal(22,4) NOT NULL DEFAULT '0.0000',
  `unit_price` decimal(22,4) DEFAULT NULL COMMENT 'Sell price excluding tax',
  `line_discount_type` enum('fixed','percentage') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `line_discount_amount` decimal(22,4) NOT NULL DEFAULT '0.0000',
  `unit_price_inc_tax` decimal(22,4) DEFAULT NULL COMMENT 'Sell price including tax',
  `item_tax` decimal(22,4) NOT NULL COMMENT 'Tax for one quantity',
  `tax_id` int UNSIGNED DEFAULT NULL,
  `discount_id` int DEFAULT NULL,
  `lot_no_line_id` int DEFAULT NULL,
  `sell_line_note` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `so_line_id` int DEFAULT NULL,
  `so_quantity_invoiced` decimal(22,4) NOT NULL DEFAULT '0.0000',
  `res_service_staff_id` int DEFAULT NULL,
  `res_line_order_status` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `parent_sell_line_id` int DEFAULT NULL,
  `children_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT 'Type of children for the parent, like modifier or combo',
  `sub_unit_id` int DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `transaction_sell_lines`
--

INSERT INTO `transaction_sell_lines` (`id`, `transaction_id`, `product_id`, `variation_id`, `barcode`, `quantity`, `secondary_unit_quantity`, `quantity_returned`, `unit_price_before_discount`, `unit_price`, `line_discount_type`, `line_discount_amount`, `unit_price_inc_tax`, `item_tax`, `tax_id`, `discount_id`, `lot_no_line_id`, `sell_line_note`, `so_line_id`, `so_quantity_invoiced`, `res_service_staff_id`, `res_line_order_status`, `parent_sell_line_id`, `children_type`, `sub_unit_id`, `created_at`, `updated_at`) VALUES
(1, 3, 1, 1, '701957', '3.0000', '0.0000', '0.0000', '200.0000', '200.0000', NULL, '0.0000', '200.0000', '0.0000', NULL, NULL, NULL, '', NULL, '0.0000', NULL, NULL, NULL, '', NULL, '2023-08-06 07:53:49', '2023-08-06 07:53:49');

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

--
-- Table structure for table `transaction_sell_lines_purchase_lines`
--

CREATE TABLE `transaction_sell_lines_purchase_lines` (
  `id` int UNSIGNED NOT NULL,
  `sell_line_id` int UNSIGNED DEFAULT NULL COMMENT 'id from transaction_sell_lines',
  `stock_adjustment_line_id` int UNSIGNED DEFAULT NULL COMMENT 'id from stock_adjustment_lines',
  `purchase_line_id` int UNSIGNED NOT NULL COMMENT 'id from purchase_lines',
  `quantity` decimal(22,4) NOT NULL,
  `qty_returned` decimal(22,4) NOT NULL DEFAULT '0.0000',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `transaction_sell_lines_purchase_lines`
--

INSERT INTO `transaction_sell_lines_purchase_lines` (`id`, `sell_line_id`, `stock_adjustment_line_id`, `purchase_line_id`, `quantity`, `qty_returned`, `created_at`, `updated_at`) VALUES
(1, 1, NULL, 1, '3.0000', '0.0000', '2023-08-06 07:53:49', '2023-08-06 07:53:49');

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

--
-- Table structure for table `types_of_services`
--

CREATE TABLE `types_of_services` (
  `id` int UNSIGNED NOT NULL,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `business_id` int NOT NULL,
  `location_price_group` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `packing_charge` decimal(22,4) DEFAULT NULL,
  `packing_charge_type` enum('fixed','percent') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `enable_custom_fields` tinyint(1) NOT NULL DEFAULT '0',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

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

--
-- Table structure for table `units`
--

CREATE TABLE `units` (
  `id` int UNSIGNED NOT NULL,
  `business_id` int UNSIGNED NOT NULL,
  `actual_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `short_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `allow_decimal` tinyint(1) NOT NULL,
  `base_unit_id` int DEFAULT NULL,
  `base_unit_multiplier` decimal(20,4) DEFAULT NULL,
  `created_by` int UNSIGNED NOT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `units`
--

INSERT INTO `units` (`id`, `business_id`, `actual_name`, `short_name`, `allow_decimal`, `base_unit_id`, `base_unit_multiplier`, `created_by`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, 1, 'Piece', 'Pc', 0, NULL, NULL, 1, NULL, '2023-07-11 15:41:32', '2023-07-11 15:41:32');

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

--
-- Table structure for table `users`
--

CREATE TABLE `users` (
  `id` int UNSIGNED NOT NULL,
  `user_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'user',
  `surname` char(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `first_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `last_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `username` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `email` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `password` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `language` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'en',
  `contact_no` char(15) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `address` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `remember_token` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `business_id` int UNSIGNED DEFAULT NULL,
  `available_at` datetime DEFAULT NULL COMMENT 'Service staff avilable at. Calculated from product preparation_time_in_minutes',
  `paused_at` datetime DEFAULT NULL COMMENT 'Service staff available time paused at, Will be nulled on resume.',
  `max_sales_discount_percent` decimal(5,2) DEFAULT NULL,
  `allow_login` tinyint(1) NOT NULL DEFAULT '1',
  `status` enum('active','inactive','terminated') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'active',
  `crm_contact_id` int UNSIGNED DEFAULT NULL,
  `is_cmmsn_agnt` tinyint(1) NOT NULL DEFAULT '0',
  `cmmsn_percent` decimal(4,2) NOT NULL DEFAULT '0.00',
  `selected_contacts` tinyint(1) NOT NULL DEFAULT '0',
  `dob` date DEFAULT NULL,
  `gender` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `marital_status` enum('married','unmarried','divorced') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `blood_group` char(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `contact_number` char(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `alt_number` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `family_number` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `fb_link` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `twitter_link` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `social_media_1` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `social_media_2` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `permanent_address` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `current_address` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `guardian_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `custom_field_1` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `custom_field_2` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `custom_field_3` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `custom_field_4` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `bank_details` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `id_proof_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `id_proof_number` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `terminal` int DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `users`
--

INSERT INTO `users` (`id`, `user_type`, `surname`, `first_name`, `last_name`, `username`, `email`, `password`, `language`, `contact_no`, `address`, `remember_token`, `business_id`, `available_at`, `paused_at`, `max_sales_discount_percent`, `allow_login`, `status`, `crm_contact_id`, `is_cmmsn_agnt`, `cmmsn_percent`, `selected_contacts`, `dob`, `gender`, `marital_status`, `blood_group`, `contact_number`, `alt_number`, `family_number`, `fb_link`, `twitter_link`, `social_media_1`, `social_media_2`, `permanent_address`, `current_address`, `guardian_name`, `custom_field_1`, `custom_field_2`, `custom_field_3`, `custom_field_4`, `bank_details`, `id_proof_name`, `id_proof_number`, `deleted_at`, `created_at`, `updated_at`, `terminal`) VALUES
(1, 'user', NULL, 'Al-Noor Shopping Center', NULL, 'admin', NULL, '$2y$10$RZCZ5BV/EJaeHjvRgbosMujt38ZrK5jWxNtB3wjK/EToSufHKrVIe', 'en', NULL, NULL, 'OLOp87RHEgVCPTHxJqaBCCFZSYOYnJF0UcMuBvpuUSDciR6RADyt8e7lm5JC', 1, NULL, NULL, NULL, 1, 'active', NULL, 0, '0.00', 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '{\"account_holder_name\":null,\"account_number\":null,\"bank_name\":null,\"bank_code\":null,\"branch\":null,\"tax_payer_id\":null}', NULL, NULL, NULL, '2022-12-11 10:37:41', '2023-07-20 13:37:40', NULL),
(30, 'user', 'Mr', 'Shanto', 'Halder', 'shanto', 'shanto@gmail.com', '$2y$10$M1kBn/yuTP.VTf1MumdRM.2mcGmquMJJzR4Z4ZYGzPZSwnLaAsOPi', 'en', '01749717065', NULL, NULL, 1, NULL, NULL, NULL, 1, 'active', NULL, 0, '0.00', 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '{\"account_holder_name\":null,\"account_number\":null,\"bank_name\":null,\"bank_code\":null,\"branch\":null,\"tax_payer_id\":null}', NULL, NULL, NULL, '2023-07-10 02:29:03', '2023-07-10 02:52:33', NULL),
(31, 'user', NULL, 'Tester', NULL, 'tester', 'tester@gmail.com', '$2y$10$Z0Xzjqs3GIEYEuL.B5G3jO.cRYr7p5k.ZFB3RTTWF/kHE1ubgm3F6', 'en', '01518990405', NULL, NULL, 1, NULL, NULL, NULL, 1, 'active', NULL, 0, '0.00', 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '{\"account_holder_name\":null,\"account_number\":null,\"bank_name\":null,\"bank_code\":null,\"branch\":null,\"tax_payer_id\":null}', NULL, NULL, NULL, '2023-07-10 02:44:45', '2023-07-10 02:44:45', NULL),
(32, 'user', 'Mr', 'Moin', NULL, 'moin2', 'moin@gmail.com', '$2y$10$PxIzl0i.e9ACfxwn.51m.OSKW3okaSpCawx.tQ7VoSSR8eWtyJPqe', 'en', '01712542152', NULL, NULL, 1, NULL, NULL, NULL, 1, 'active', NULL, 0, '0.00', 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '{\"account_holder_name\":null,\"account_number\":null,\"bank_name\":null,\"bank_code\":null,\"branch\":null,\"tax_payer_id\":null}', NULL, NULL, NULL, '2023-07-11 03:42:28', '2023-07-11 03:42:28', NULL);

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

--
-- Table structure for table `user_contact_access`
--

CREATE TABLE `user_contact_access` (
  `id` int UNSIGNED NOT NULL,
  `user_id` int NOT NULL,
  `contact_id` int NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

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

--
-- Table structure for table `variations`
--

CREATE TABLE `variations` (
  `id` int UNSIGNED NOT NULL,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `product_id` int UNSIGNED NOT NULL,
  `sub_sku` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `product_variation_id` int UNSIGNED NOT NULL,
  `variation_value_id` int DEFAULT NULL,
  `default_purchase_price` decimal(22,4) DEFAULT NULL,
  `dpp_inc_tax` decimal(22,4) NOT NULL DEFAULT '0.0000',
  `profit_percent` decimal(22,4) NOT NULL DEFAULT '0.0000',
  `default_sell_price` decimal(22,4) DEFAULT NULL,
  `sell_price_inc_tax` decimal(22,4) DEFAULT NULL COMMENT 'Sell price including tax',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `combo_variations` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci COMMENT 'Contains the combo variation details'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `variations`
--

INSERT INTO `variations` (`id`, `name`, `product_id`, `sub_sku`, `product_variation_id`, `variation_value_id`, `default_purchase_price`, `dpp_inc_tax`, `profit_percent`, `default_sell_price`, `sell_price_inc_tax`, `created_at`, `updated_at`, `deleted_at`, `combo_variations`) VALUES
(1, 'DUMMY', 1, '0001', 1, NULL, '100.0000', '100.0000', '100.0000', '200.0000', '200.0000', '2023-08-06 07:37:56', '2023-08-06 07:37:56', NULL, '[]'),
(2, 'DUMMY', 2, '0002', 2, NULL, '120.0000', '120.0000', '16.6667', '140.0000', '140.0000', '2023-08-06 10:43:25', '2023-08-06 12:55:08', NULL, '[]'),
(3, 'DUMMY', 3, '0003', 3, NULL, '3000.0000', '3000.0000', '66.6667', '5000.0000', '5000.0000', '2023-08-06 12:57:27', '2023-08-06 13:15:38', NULL, '[]'),
(4, 'DUMMY', 4, '12345678', 4, NULL, '100.0000', '100.0000', '100.0000', '200.0000', '200.0000', '2023-08-06 13:35:25', '2023-08-06 13:35:25', NULL, '[]');

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

--
-- Table structure for table `variation_group_prices`
--

CREATE TABLE `variation_group_prices` (
  `id` int UNSIGNED NOT NULL,
  `variation_id` int UNSIGNED NOT NULL,
  `price_group_id` int UNSIGNED NOT NULL,
  `price_inc_tax` decimal(22,4) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

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

--
-- Table structure for table `variation_location_details`
--

CREATE TABLE `variation_location_details` (
  `id` int UNSIGNED NOT NULL,
  `product_id` int UNSIGNED NOT NULL,
  `product_variation_id` int UNSIGNED NOT NULL COMMENT 'id from product_variations table',
  `variation_id` int UNSIGNED NOT NULL,
  `location_id` int UNSIGNED NOT NULL,
  `qty_available` decimal(22,4) NOT NULL DEFAULT '0.0000',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Dumping data for table `variation_location_details`
--

INSERT INTO `variation_location_details` (`id`, `product_id`, `product_variation_id`, `variation_id`, `location_id`, `qty_available`, `created_at`, `updated_at`) VALUES
(1, 1, 1, 1, 1, '27.0000', '2023-08-06 07:40:07', '2023-08-06 07:53:49'),
(2, 2, 2, 2, 1, '48.0000', '2023-08-06 10:58:34', '2023-08-06 12:55:31'),
(3, 3, 3, 3, 1, '30.0000', '2023-08-06 12:58:14', '2023-08-06 13:15:47');

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

--
-- Table structure for table `variation_templates`
--

CREATE TABLE `variation_templates` (
  `id` int UNSIGNED NOT NULL,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `business_id` int UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

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

--
-- Table structure for table `variation_value_templates`
--

CREATE TABLE `variation_value_templates` (
  `id` int UNSIGNED NOT NULL,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `variation_template_id` int UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

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

--
-- Table structure for table `warranties`
--

CREATE TABLE `warranties` (
  `id` int UNSIGNED NOT NULL,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `business_id` int NOT NULL,
  `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `duration` int NOT NULL,
  `duration_type` enum('days','months','years') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

--
-- Indexes for dumped tables
--

--
-- Indexes for table `accounts`
--
ALTER TABLE `accounts`
  ADD PRIMARY KEY (`id`),
  ADD KEY `accounts_business_id_index` (`business_id`),
  ADD KEY `accounts_account_type_id_index` (`account_type_id`),
  ADD KEY `accounts_created_by_index` (`created_by`);

--
-- Indexes for table `account_transactions`
--
ALTER TABLE `account_transactions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `account_transactions_account_id_index` (`account_id`),
  ADD KEY `account_transactions_transaction_id_index` (`transaction_id`),
  ADD KEY `account_transactions_transaction_payment_id_index` (`transaction_payment_id`),
  ADD KEY `account_transactions_transfer_transaction_id_index` (`transfer_transaction_id`),
  ADD KEY `account_transactions_created_by_index` (`created_by`),
  ADD KEY `account_transactions_type_index` (`type`),
  ADD KEY `account_transactions_sub_type_index` (`sub_type`),
  ADD KEY `account_transactions_operation_date_index` (`operation_date`);

--
-- Indexes for table `account_types`
--
ALTER TABLE `account_types`
  ADD PRIMARY KEY (`id`),
  ADD KEY `account_types_parent_account_type_id_index` (`parent_account_type_id`),
  ADD KEY `account_types_business_id_index` (`business_id`);

--
-- Indexes for table `activity_log`
--
ALTER TABLE `activity_log`
  ADD PRIMARY KEY (`id`),
  ADD KEY `activity_log_log_name_index` (`log_name`);

--
-- Indexes for table `areas`
--
ALTER TABLE `areas`
  ADD PRIMARY KEY (`id`),
  ADD KEY `areas_created_by_foreign` (`created_by`);

--
-- Indexes for table `assets`
--
ALTER TABLE `assets`
  ADD PRIMARY KEY (`id`),
  ADD KEY `assets_created_by_foreign` (`created_by`);

--
-- Indexes for table `asset_type`
--
ALTER TABLE `asset_type`
  ADD PRIMARY KEY (`id`),
  ADD KEY `asset_type_created_by_foreign` (`created_by`);

--
-- Indexes for table `barcodes`
--
ALTER TABLE `barcodes`
  ADD PRIMARY KEY (`id`),
  ADD KEY `barcodes_business_id_foreign` (`business_id`);

--
-- Indexes for table `barcode_purchase_prices`
--
ALTER TABLE `barcode_purchase_prices`
  ADD PRIMARY KEY (`id`),
  ADD KEY `barcode_purchase_prices_product_barcode_id_foreign` (`product_barcode_id`);

--
-- Indexes for table `barcode_selling_prices`
--
ALTER TABLE `barcode_selling_prices`
  ADD PRIMARY KEY (`id`),
  ADD KEY `barcode_selling_prices_product_barcode_id_foreign` (`product_barcode_id`);

--
-- Indexes for table `bookings`
--
ALTER TABLE `bookings`
  ADD PRIMARY KEY (`id`),
  ADD KEY `bookings_contact_id_foreign` (`contact_id`),
  ADD KEY `bookings_business_id_foreign` (`business_id`),
  ADD KEY `bookings_created_by_foreign` (`created_by`),
  ADD KEY `bookings_table_id_index` (`table_id`),
  ADD KEY `bookings_waiter_id_index` (`waiter_id`),
  ADD KEY `bookings_location_id_index` (`location_id`),
  ADD KEY `bookings_booking_status_index` (`booking_status`),
  ADD KEY `bookings_correspondent_id_index` (`correspondent_id`);

--
-- Indexes for table `brands`
--
ALTER TABLE `brands`
  ADD PRIMARY KEY (`id`),
  ADD KEY `brands_business_id_foreign` (`business_id`),
  ADD KEY `brands_created_by_foreign` (`created_by`);

--
-- Indexes for table `business`
--
ALTER TABLE `business`
  ADD PRIMARY KEY (`id`),
  ADD KEY `business_owner_id_foreign` (`owner_id`),
  ADD KEY `business_currency_id_foreign` (`currency_id`),
  ADD KEY `business_default_sales_tax_foreign` (`default_sales_tax`);

--
-- Indexes for table `business_locations`
--
ALTER TABLE `business_locations`
  ADD PRIMARY KEY (`id`),
  ADD KEY `business_locations_business_id_index` (`business_id`),
  ADD KEY `business_locations_invoice_scheme_id_foreign` (`invoice_scheme_id`),
  ADD KEY `business_locations_invoice_layout_id_foreign` (`invoice_layout_id`),
  ADD KEY `business_locations_sale_invoice_layout_id_index` (`sale_invoice_layout_id`),
  ADD KEY `business_locations_selling_price_group_id_index` (`selling_price_group_id`),
  ADD KEY `business_locations_receipt_printer_type_index` (`receipt_printer_type`),
  ADD KEY `business_locations_printer_id_index` (`printer_id`);

--
-- Indexes for table `cash_denominations`
--
ALTER TABLE `cash_denominations`
  ADD PRIMARY KEY (`id`),
  ADD KEY `cash_denominations_model_type_model_id_index` (`model_type`,`model_id`);

--
-- Indexes for table `cash_registers`
--
ALTER TABLE `cash_registers`
  ADD PRIMARY KEY (`id`),
  ADD KEY `cash_registers_business_id_foreign` (`business_id`),
  ADD KEY `cash_registers_user_id_foreign` (`user_id`),
  ADD KEY `cash_registers_location_id_index` (`location_id`);

--
-- Indexes for table `cash_register_transactions`
--
ALTER TABLE `cash_register_transactions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `cash_register_transactions_cash_register_id_foreign` (`cash_register_id`),
  ADD KEY `cash_register_transactions_transaction_id_index` (`transaction_id`),
  ADD KEY `cash_register_transactions_type_index` (`type`),
  ADD KEY `cash_register_transactions_transaction_type_index` (`transaction_type`);

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

--
-- Indexes for table `categorizables`
--
ALTER TABLE `categorizables`
  ADD KEY `categorizables_categorizable_type_categorizable_id_index` (`categorizable_type`,`categorizable_id`);

--
-- Indexes for table `contacts`
--
ALTER TABLE `contacts`
  ADD PRIMARY KEY (`id`),
  ADD KEY `contacts_business_id_foreign` (`business_id`),
  ADD KEY `contacts_created_by_foreign` (`created_by`),
  ADD KEY `contacts_type_index` (`type`),
  ADD KEY `contacts_contact_status_index` (`contact_status`);

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

--
-- Indexes for table `customer_groups`
--
ALTER TABLE `customer_groups`
  ADD PRIMARY KEY (`id`),
  ADD KEY `customer_groups_business_id_foreign` (`business_id`),
  ADD KEY `customer_groups_created_by_index` (`created_by`),
  ADD KEY `customer_groups_price_calculation_type_index` (`price_calculation_type`),
  ADD KEY `customer_groups_selling_price_group_id_index` (`selling_price_group_id`);

--
-- Indexes for table `dashboard_configurations`
--
ALTER TABLE `dashboard_configurations`
  ADD PRIMARY KEY (`id`),
  ADD KEY `dashboard_configurations_business_id_foreign` (`business_id`);

--
-- Indexes for table `discounts`
--
ALTER TABLE `discounts`
  ADD PRIMARY KEY (`id`),
  ADD KEY `discounts_business_id_index` (`business_id`),
  ADD KEY `discounts_brand_id_index` (`brand_id`),
  ADD KEY `discounts_category_id_index` (`category_id`),
  ADD KEY `discounts_location_id_index` (`location_id`),
  ADD KEY `discounts_priority_index` (`priority`),
  ADD KEY `discounts_spg_index` (`spg`);

--
-- Indexes for table `discount_variations`
--
ALTER TABLE `discount_variations`
  ADD KEY `discount_variations_discount_id_index` (`discount_id`),
  ADD KEY `discount_variations_variation_id_index` (`variation_id`);

--
-- Indexes for table `document_and_notes`
--
ALTER TABLE `document_and_notes`
  ADD PRIMARY KEY (`id`),
  ADD KEY `document_and_notes_business_id_index` (`business_id`),
  ADD KEY `document_and_notes_notable_id_index` (`notable_id`),
  ADD KEY `document_and_notes_created_by_index` (`created_by`);

--
-- Indexes for table `employees`
--
ALTER TABLE `employees`
  ADD PRIMARY KEY (`id`),
  ADD KEY `employees_created_by_foreign` (`created_by`);

--
-- Indexes for table `expense_categories`
--
ALTER TABLE `expense_categories`
  ADD PRIMARY KEY (`id`),
  ADD KEY `expense_categories_business_id_foreign` (`business_id`);

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

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

--
-- Indexes for table `group_sub_taxes`
--
ALTER TABLE `group_sub_taxes`
  ADD KEY `group_sub_taxes_group_tax_id_foreign` (`group_tax_id`),
  ADD KEY `group_sub_taxes_tax_id_foreign` (`tax_id`);

--
-- Indexes for table `invoice_layouts`
--
ALTER TABLE `invoice_layouts`
  ADD PRIMARY KEY (`id`),
  ADD KEY `invoice_layouts_business_id_foreign` (`business_id`);

--
-- Indexes for table `invoice_schemes`
--
ALTER TABLE `invoice_schemes`
  ADD PRIMARY KEY (`id`),
  ADD KEY `invoice_schemes_business_id_foreign` (`business_id`),
  ADD KEY `invoice_schemes_scheme_type_index` (`scheme_type`);

--
-- Indexes for table `media`
--
ALTER TABLE `media`
  ADD PRIMARY KEY (`id`),
  ADD KEY `media_model_type_model_id_index` (`model_type`,`model_id`),
  ADD KEY `media_business_id_index` (`business_id`),
  ADD KEY `media_uploaded_by_index` (`uploaded_by`);

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

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

--
-- Indexes for table `model_has_permissions`
--
ALTER TABLE `model_has_permissions`
  ADD PRIMARY KEY (`permission_id`,`model_id`,`model_type`),
  ADD KEY `model_has_permissions_model_type_model_id_index` (`model_type`,`model_id`);

--
-- Indexes for table `model_has_roles`
--
ALTER TABLE `model_has_roles`
  ADD PRIMARY KEY (`role_id`,`model_id`,`model_type`),
  ADD KEY `model_has_roles_model_type_model_id_index` (`model_type`,`model_id`);

--
-- Indexes for table `monthly_salary_summery`
--
ALTER TABLE `monthly_salary_summery`
  ADD PRIMARY KEY (`id`),
  ADD KEY `employees_created_by_foreign` (`created_by`);

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

--
-- Indexes for table `notifications`
--
ALTER TABLE `notifications`
  ADD PRIMARY KEY (`id`),
  ADD KEY `notifications_notifiable_type_notifiable_id_index` (`notifiable_type`,`notifiable_id`);

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

--
-- Indexes for table `oauth_access_tokens`
--
ALTER TABLE `oauth_access_tokens`
  ADD PRIMARY KEY (`id`),
  ADD KEY `oauth_access_tokens_user_id_index` (`user_id`);

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

--
-- Indexes for table `oauth_clients`
--
ALTER TABLE `oauth_clients`
  ADD PRIMARY KEY (`id`),
  ADD KEY `oauth_clients_user_id_index` (`user_id`);

--
-- Indexes for table `oauth_personal_access_clients`
--
ALTER TABLE `oauth_personal_access_clients`
  ADD PRIMARY KEY (`id`),
  ADD KEY `oauth_personal_access_clients_client_id_index` (`client_id`);

--
-- Indexes for table `oauth_refresh_tokens`
--
ALTER TABLE `oauth_refresh_tokens`
  ADD PRIMARY KEY (`id`),
  ADD KEY `oauth_refresh_tokens_access_token_id_index` (`access_token_id`);

--
-- Indexes for table `password_resets`
--
ALTER TABLE `password_resets`
  ADD KEY `password_resets_email_index` (`email`);

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

--
-- Indexes for table `printers`
--
ALTER TABLE `printers`
  ADD PRIMARY KEY (`id`),
  ADD KEY `printers_business_id_foreign` (`business_id`);

--
-- Indexes for table `products`
--
ALTER TABLE `products`
  ADD PRIMARY KEY (`id`),
  ADD KEY `products_brand_id_foreign` (`brand_id`),
  ADD KEY `products_category_id_foreign` (`category_id`),
  ADD KEY `products_sub_category_id_foreign` (`sub_category_id`),
  ADD KEY `products_tax_foreign` (`tax`),
  ADD KEY `products_name_index` (`name`),
  ADD KEY `products_business_id_index` (`business_id`),
  ADD KEY `products_unit_id_index` (`unit_id`),
  ADD KEY `products_created_by_index` (`created_by`),
  ADD KEY `products_warranty_id_index` (`warranty_id`),
  ADD KEY `products_type_index` (`type`),
  ADD KEY `products_tax_type_index` (`tax_type`),
  ADD KEY `products_barcode_type_index` (`barcode_type`),
  ADD KEY `products_secondary_unit_id_index` (`secondary_unit_id`),
  ADD KEY `products_sub_sub_category_id_foreign` (`sub_sub_category_id`);

--
-- Indexes for table `product_barcodes`
--
ALTER TABLE `product_barcodes`
  ADD PRIMARY KEY (`id`),
  ADD KEY `product_barcodes_product_id_foreign` (`product_id`);

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

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

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

--
-- Indexes for table `product_locations`
--
ALTER TABLE `product_locations`
  ADD KEY `product_locations_product_id_index` (`product_id`),
  ADD KEY `product_locations_location_id_index` (`location_id`);

--
-- Indexes for table `product_racks`
--
ALTER TABLE `product_racks`
  ADD PRIMARY KEY (`id`),
  ADD KEY `product_racks_business_id_index` (`business_id`),
  ADD KEY `product_racks_location_id_index` (`location_id`),
  ADD KEY `product_racks_product_id_index` (`product_id`);

--
-- Indexes for table `product_variations`
--
ALTER TABLE `product_variations`
  ADD PRIMARY KEY (`id`),
  ADD KEY `product_variations_name_index` (`name`),
  ADD KEY `product_variations_product_id_index` (`product_id`);

--
-- Indexes for table `purchase_lines`
--
ALTER TABLE `purchase_lines`
  ADD PRIMARY KEY (`id`),
  ADD KEY `purchase_lines_transaction_id_foreign` (`transaction_id`),
  ADD KEY `purchase_lines_product_id_foreign` (`product_id`),
  ADD KEY `purchase_lines_variation_id_foreign` (`variation_id`),
  ADD KEY `purchase_lines_tax_id_foreign` (`tax_id`),
  ADD KEY `purchase_lines_sub_unit_id_index` (`sub_unit_id`),
  ADD KEY `purchase_lines_lot_number_index` (`lot_number`);

--
-- Indexes for table `reference_counts`
--
ALTER TABLE `reference_counts`
  ADD PRIMARY KEY (`id`),
  ADD KEY `reference_counts_business_id_index` (`business_id`);

--
-- Indexes for table `res_product_modifier_sets`
--
ALTER TABLE `res_product_modifier_sets`
  ADD KEY `res_product_modifier_sets_modifier_set_id_foreign` (`modifier_set_id`);

--
-- Indexes for table `res_tables`
--
ALTER TABLE `res_tables`
  ADD PRIMARY KEY (`id`),
  ADD KEY `res_tables_business_id_foreign` (`business_id`);

--
-- Indexes for table `roles`
--
ALTER TABLE `roles`
  ADD PRIMARY KEY (`id`),
  ADD KEY `roles_business_id_foreign` (`business_id`);

--
-- Indexes for table `role_has_permissions`
--
ALTER TABLE `role_has_permissions`
  ADD PRIMARY KEY (`permission_id`,`role_id`),
  ADD KEY `role_has_permissions_role_id_foreign` (`role_id`);

--
-- Indexes for table `salary_statements`
--
ALTER TABLE `salary_statements`
  ADD PRIMARY KEY (`id`),
  ADD KEY `employees_created_by_foreign` (`created_by`);

--
-- Indexes for table `selling_price_groups`
--
ALTER TABLE `selling_price_groups`
  ADD PRIMARY KEY (`id`),
  ADD KEY `selling_price_groups_business_id_foreign` (`business_id`);

--
-- Indexes for table `sessions`
--
ALTER TABLE `sessions`
  ADD UNIQUE KEY `sessions_id_unique` (`id`);

--
-- Indexes for table `stock_adjustment_lines`
--
ALTER TABLE `stock_adjustment_lines`
  ADD PRIMARY KEY (`id`),
  ADD KEY `stock_adjustment_lines_product_id_foreign` (`product_id`),
  ADD KEY `stock_adjustment_lines_variation_id_foreign` (`variation_id`),
  ADD KEY `stock_adjustment_lines_transaction_id_index` (`transaction_id`),
  ADD KEY `stock_adjustment_lines_lot_no_line_id_index` (`lot_no_line_id`);

--
-- Indexes for table `supplier_schedule`
--
ALTER TABLE `supplier_schedule`
  ADD PRIMARY KEY (`id`),
  ADD KEY `areas_created_by_foreign` (`created_by`);

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

--
-- Indexes for table `tax_rates`
--
ALTER TABLE `tax_rates`
  ADD PRIMARY KEY (`id`),
  ADD KEY `tax_rates_business_id_foreign` (`business_id`),
  ADD KEY `tax_rates_created_by_foreign` (`created_by`);

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

--
-- Indexes for table `transactions`
--
ALTER TABLE `transactions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `transactions_tax_id_foreign` (`tax_id`),
  ADD KEY `transactions_business_id_index` (`business_id`),
  ADD KEY `transactions_type_index` (`type`),
  ADD KEY `transactions_contact_id_index` (`contact_id`),
  ADD KEY `transactions_transaction_date_index` (`transaction_date`),
  ADD KEY `transactions_created_by_index` (`created_by`),
  ADD KEY `transactions_location_id_index` (`location_id`),
  ADD KEY `transactions_expense_for_foreign` (`expense_for`),
  ADD KEY `transactions_expense_category_id_index` (`expense_category_id`),
  ADD KEY `transactions_sub_type_index` (`sub_type`),
  ADD KEY `transactions_return_parent_id_index` (`return_parent_id`),
  ADD KEY `type` (`type`),
  ADD KEY `transactions_status_index` (`status`),
  ADD KEY `transactions_sub_status_index` (`sub_status`),
  ADD KEY `transactions_res_table_id_index` (`res_table_id`),
  ADD KEY `transactions_res_waiter_id_index` (`res_waiter_id`),
  ADD KEY `transactions_res_order_status_index` (`res_order_status`),
  ADD KEY `transactions_payment_status_index` (`payment_status`),
  ADD KEY `transactions_discount_type_index` (`discount_type`),
  ADD KEY `transactions_commission_agent_index` (`commission_agent`),
  ADD KEY `transactions_transfer_parent_id_index` (`transfer_parent_id`),
  ADD KEY `transactions_types_of_service_id_index` (`types_of_service_id`),
  ADD KEY `transactions_packing_charge_type_index` (`packing_charge_type`),
  ADD KEY `transactions_recur_parent_id_index` (`recur_parent_id`),
  ADD KEY `transactions_selling_price_group_id_index` (`selling_price_group_id`),
  ADD KEY `transactions_delivery_date_index` (`delivery_date`);

--
-- Indexes for table `transaction_payments`
--
ALTER TABLE `transaction_payments`
  ADD PRIMARY KEY (`id`),
  ADD KEY `transaction_payments_transaction_id_foreign` (`transaction_id`),
  ADD KEY `transaction_payments_created_by_index` (`created_by`),
  ADD KEY `transaction_payments_parent_id_index` (`parent_id`),
  ADD KEY `transaction_payments_payment_type_index` (`payment_type`);

--
-- Indexes for table `transaction_sell_lines`
--
ALTER TABLE `transaction_sell_lines`
  ADD PRIMARY KEY (`id`),
  ADD KEY `transaction_sell_lines_transaction_id_foreign` (`transaction_id`),
  ADD KEY `transaction_sell_lines_product_id_foreign` (`product_id`),
  ADD KEY `transaction_sell_lines_variation_id_foreign` (`variation_id`),
  ADD KEY `transaction_sell_lines_tax_id_foreign` (`tax_id`),
  ADD KEY `transaction_sell_lines_children_type_index` (`children_type`),
  ADD KEY `transaction_sell_lines_parent_sell_line_id_index` (`parent_sell_line_id`),
  ADD KEY `transaction_sell_lines_line_discount_type_index` (`line_discount_type`),
  ADD KEY `transaction_sell_lines_discount_id_index` (`discount_id`),
  ADD KEY `transaction_sell_lines_lot_no_line_id_index` (`lot_no_line_id`),
  ADD KEY `transaction_sell_lines_sub_unit_id_index` (`sub_unit_id`);

--
-- Indexes for table `transaction_sell_lines_purchase_lines`
--
ALTER TABLE `transaction_sell_lines_purchase_lines`
  ADD PRIMARY KEY (`id`),
  ADD KEY `sell_line_id` (`sell_line_id`),
  ADD KEY `stock_adjustment_line_id` (`stock_adjustment_line_id`),
  ADD KEY `purchase_line_id` (`purchase_line_id`);

--
-- Indexes for table `types_of_services`
--
ALTER TABLE `types_of_services`
  ADD PRIMARY KEY (`id`),
  ADD KEY `types_of_services_business_id_index` (`business_id`);

--
-- Indexes for table `units`
--
ALTER TABLE `units`
  ADD PRIMARY KEY (`id`),
  ADD KEY `units_business_id_foreign` (`business_id`),
  ADD KEY `units_created_by_foreign` (`created_by`),
  ADD KEY `units_base_unit_id_index` (`base_unit_id`);

--
-- Indexes for table `users`
--
ALTER TABLE `users`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `users_username_unique` (`username`),
  ADD KEY `users_business_id_foreign` (`business_id`),
  ADD KEY `users_user_type_index` (`user_type`),
  ADD KEY `users_crm_contact_id_foreign` (`crm_contact_id`);

--
-- Indexes for table `user_contact_access`
--
ALTER TABLE `user_contact_access`
  ADD PRIMARY KEY (`id`),
  ADD KEY `user_contact_access_user_id_index` (`user_id`),
  ADD KEY `user_contact_access_contact_id_index` (`contact_id`);

--
-- Indexes for table `variations`
--
ALTER TABLE `variations`
  ADD PRIMARY KEY (`id`),
  ADD KEY `variations_product_id_foreign` (`product_id`),
  ADD KEY `variations_product_variation_id_foreign` (`product_variation_id`),
  ADD KEY `variations_name_index` (`name`),
  ADD KEY `variations_sub_sku_index` (`sub_sku`),
  ADD KEY `variations_variation_value_id_index` (`variation_value_id`);

--
-- Indexes for table `variation_group_prices`
--
ALTER TABLE `variation_group_prices`
  ADD PRIMARY KEY (`id`),
  ADD KEY `variation_group_prices_variation_id_foreign` (`variation_id`),
  ADD KEY `variation_group_prices_price_group_id_foreign` (`price_group_id`);

--
-- Indexes for table `variation_location_details`
--
ALTER TABLE `variation_location_details`
  ADD PRIMARY KEY (`id`),
  ADD KEY `variation_location_details_location_id_foreign` (`location_id`),
  ADD KEY `variation_location_details_product_id_index` (`product_id`),
  ADD KEY `variation_location_details_product_variation_id_index` (`product_variation_id`),
  ADD KEY `variation_location_details_variation_id_index` (`variation_id`);

--
-- Indexes for table `variation_templates`
--
ALTER TABLE `variation_templates`
  ADD PRIMARY KEY (`id`),
  ADD KEY `variation_templates_business_id_foreign` (`business_id`);

--
-- Indexes for table `variation_value_templates`
--
ALTER TABLE `variation_value_templates`
  ADD PRIMARY KEY (`id`),
  ADD KEY `variation_value_templates_name_index` (`name`),
  ADD KEY `variation_value_templates_variation_template_id_index` (`variation_template_id`);

--
-- Indexes for table `warranties`
--
ALTER TABLE `warranties`
  ADD PRIMARY KEY (`id`),
  ADD KEY `warranties_business_id_index` (`business_id`),
  ADD KEY `warranties_duration_type_index` (`duration_type`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `accounts`
--
ALTER TABLE `accounts`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `account_transactions`
--
ALTER TABLE `account_transactions`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `account_types`
--
ALTER TABLE `account_types`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `activity_log`
--
ALTER TABLE `activity_log`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=479;

--
-- AUTO_INCREMENT for table `areas`
--
ALTER TABLE `areas`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;

--
-- AUTO_INCREMENT for table `assets`
--
ALTER TABLE `assets`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;

--
-- AUTO_INCREMENT for table `asset_type`
--
ALTER TABLE `asset_type`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `barcodes`
--
ALTER TABLE `barcodes`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT for table `barcode_purchase_prices`
--
ALTER TABLE `barcode_purchase_prices`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;

--
-- AUTO_INCREMENT for table `barcode_selling_prices`
--
ALTER TABLE `barcode_selling_prices`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;

--
-- AUTO_INCREMENT for table `bookings`
--
ALTER TABLE `bookings`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `brands`
--
ALTER TABLE `brands`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=29;

--
-- AUTO_INCREMENT for table `business`
--
ALTER TABLE `business`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `business_locations`
--
ALTER TABLE `business_locations`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `cash_denominations`
--
ALTER TABLE `cash_denominations`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `cash_registers`
--
ALTER TABLE `cash_registers`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `cash_register_transactions`
--
ALTER TABLE `cash_register_transactions`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `categories`
--
ALTER TABLE `categories`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `contacts`
--
ALTER TABLE `contacts`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=54;

--
-- AUTO_INCREMENT for table `currencies`
--
ALTER TABLE `currencies`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=142;

--
-- AUTO_INCREMENT for table `customer_groups`
--
ALTER TABLE `customer_groups`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `dashboard_configurations`
--
ALTER TABLE `dashboard_configurations`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `discounts`
--
ALTER TABLE `discounts`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `document_and_notes`
--
ALTER TABLE `document_and_notes`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `employees`
--
ALTER TABLE `employees`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `expense_categories`
--
ALTER TABLE `expense_categories`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `groups`
--
ALTER TABLE `groups`
  MODIFY `id` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `group_contacts`
--
ALTER TABLE `group_contacts`
  MODIFY `id` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `invoice_layouts`
--
ALTER TABLE `invoice_layouts`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `invoice_schemes`
--
ALTER TABLE `invoice_schemes`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `media`
--
ALTER TABLE `media`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `message_histories`
--
ALTER TABLE `message_histories`
  MODIFY `id` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `migrations`
--
ALTER TABLE `migrations`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=325;

--
-- AUTO_INCREMENT for table `monthly_salary_summery`
--
ALTER TABLE `monthly_salary_summery`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `newlebel`
--
ALTER TABLE `newlebel`
  MODIFY `id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `notification_templates`
--
ALTER TABLE `notification_templates`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;

--
-- AUTO_INCREMENT for table `oauth_clients`
--
ALTER TABLE `oauth_clients`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `oauth_personal_access_clients`
--
ALTER TABLE `oauth_personal_access_clients`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `permissions`
--
ALTER TABLE `permissions`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=121;

--
-- AUTO_INCREMENT for table `printers`
--
ALTER TABLE `printers`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `products`
--
ALTER TABLE `products`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `product_barcodes`
--
ALTER TABLE `product_barcodes`
  MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;

--
-- AUTO_INCREMENT for table `product_display_entries`
--
ALTER TABLE `product_display_entries`
  MODIFY `id` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `product_display_payment_history`
--
ALTER TABLE `product_display_payment_history`
  MODIFY `id` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `product_display_summery`
--
ALTER TABLE `product_display_summery`
  MODIFY `id` int NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `product_racks`
--
ALTER TABLE `product_racks`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `product_variations`
--
ALTER TABLE `product_variations`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `purchase_lines`
--
ALTER TABLE `purchase_lines`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;

--
-- AUTO_INCREMENT for table `reference_counts`
--
ALTER TABLE `reference_counts`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;

--
-- AUTO_INCREMENT for table `res_tables`
--
ALTER TABLE `res_tables`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `roles`
--
ALTER TABLE `roles`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;

--
-- AUTO_INCREMENT for table `salary_statements`
--
ALTER TABLE `salary_statements`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `selling_price_groups`
--
ALTER TABLE `selling_price_groups`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `stock_adjustment_lines`
--
ALTER TABLE `stock_adjustment_lines`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `supplier_schedule`
--
ALTER TABLE `supplier_schedule`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `system`
--
ALTER TABLE `system`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `tax_rates`
--
ALTER TABLE `tax_rates`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `templates`
--
ALTER TABLE `templates`
  MODIFY `id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `transactions`
--
ALTER TABLE `transactions`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=18;

--
-- AUTO_INCREMENT for table `transaction_payments`
--
ALTER TABLE `transaction_payments`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `transaction_sell_lines`
--
ALTER TABLE `transaction_sell_lines`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `transaction_sell_lines_purchase_lines`
--
ALTER TABLE `transaction_sell_lines_purchase_lines`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `types_of_services`
--
ALTER TABLE `types_of_services`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `units`
--
ALTER TABLE `units`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=33;

--
-- AUTO_INCREMENT for table `user_contact_access`
--
ALTER TABLE `user_contact_access`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `variations`
--
ALTER TABLE `variations`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `variation_group_prices`
--
ALTER TABLE `variation_group_prices`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `variation_location_details`
--
ALTER TABLE `variation_location_details`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `variation_templates`
--
ALTER TABLE `variation_templates`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `variation_value_templates`
--
ALTER TABLE `variation_value_templates`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `warranties`
--
ALTER TABLE `warranties`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- Constraints for dumped tables
--

--
-- Constraints for table `areas`
--
ALTER TABLE `areas`
  ADD CONSTRAINT `areas_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `assets`
--
ALTER TABLE `assets`
  ADD CONSTRAINT `assets_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `asset_type`
--
ALTER TABLE `asset_type`
  ADD CONSTRAINT `asset_type_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `barcodes`
--
ALTER TABLE `barcodes`
  ADD CONSTRAINT `barcodes_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `barcode_purchase_prices`
--
ALTER TABLE `barcode_purchase_prices`
  ADD CONSTRAINT `barcode_purchase_prices_product_barcode_id_foreign` FOREIGN KEY (`product_barcode_id`) REFERENCES `product_barcodes` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `barcode_selling_prices`
--
ALTER TABLE `barcode_selling_prices`
  ADD CONSTRAINT `barcode_selling_prices_product_barcode_id_foreign` FOREIGN KEY (`product_barcode_id`) REFERENCES `product_barcodes` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `bookings`
--
ALTER TABLE `bookings`
  ADD CONSTRAINT `bookings_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `bookings_contact_id_foreign` FOREIGN KEY (`contact_id`) REFERENCES `contacts` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `bookings_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `brands`
--
ALTER TABLE `brands`
  ADD CONSTRAINT `brands_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `brands_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `business`
--
ALTER TABLE `business`
  ADD CONSTRAINT `business_currency_id_foreign` FOREIGN KEY (`currency_id`) REFERENCES `currencies` (`id`),
  ADD CONSTRAINT `business_default_sales_tax_foreign` FOREIGN KEY (`default_sales_tax`) REFERENCES `tax_rates` (`id`),
  ADD CONSTRAINT `business_owner_id_foreign` FOREIGN KEY (`owner_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `business_locations`
--
ALTER TABLE `business_locations`
  ADD CONSTRAINT `business_locations_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `business_locations_invoice_layout_id_foreign` FOREIGN KEY (`invoice_layout_id`) REFERENCES `invoice_layouts` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `business_locations_invoice_scheme_id_foreign` FOREIGN KEY (`invoice_scheme_id`) REFERENCES `invoice_schemes` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `cash_registers`
--
ALTER TABLE `cash_registers`
  ADD CONSTRAINT `cash_registers_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `cash_registers_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `cash_register_transactions`
--
ALTER TABLE `cash_register_transactions`
  ADD CONSTRAINT `cash_register_transactions_cash_register_id_foreign` FOREIGN KEY (`cash_register_id`) REFERENCES `cash_registers` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `contacts`
--
ALTER TABLE `contacts`
  ADD CONSTRAINT `contacts_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `contacts_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `customer_groups`
--
ALTER TABLE `customer_groups`
  ADD CONSTRAINT `customer_groups_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `dashboard_configurations`
--
ALTER TABLE `dashboard_configurations`
  ADD CONSTRAINT `dashboard_configurations_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `employees`
--
ALTER TABLE `employees`
  ADD CONSTRAINT `employees_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `expense_categories`
--
ALTER TABLE `expense_categories`
  ADD CONSTRAINT `expense_categories_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `group_sub_taxes`
--
ALTER TABLE `group_sub_taxes`
  ADD CONSTRAINT `group_sub_taxes_group_tax_id_foreign` FOREIGN KEY (`group_tax_id`) REFERENCES `tax_rates` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `group_sub_taxes_tax_id_foreign` FOREIGN KEY (`tax_id`) REFERENCES `tax_rates` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `invoice_layouts`
--
ALTER TABLE `invoice_layouts`
  ADD CONSTRAINT `invoice_layouts_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `invoice_schemes`
--
ALTER TABLE `invoice_schemes`
  ADD CONSTRAINT `invoice_schemes_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `model_has_permissions`
--
ALTER TABLE `model_has_permissions`
  ADD CONSTRAINT `model_has_permissions_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `model_has_roles`
--
ALTER TABLE `model_has_roles`
  ADD CONSTRAINT `model_has_roles_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `printers`
--
ALTER TABLE `printers`
  ADD CONSTRAINT `printers_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `products`
--
ALTER TABLE `products`
  ADD CONSTRAINT `products_brand_id_foreign` FOREIGN KEY (`brand_id`) REFERENCES `brands` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `products_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `products_category_id_foreign` FOREIGN KEY (`category_id`) REFERENCES `categories` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `products_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `products_sub_category_id_foreign` FOREIGN KEY (`sub_category_id`) REFERENCES `categories` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `products_sub_sub_category_id_foreign` FOREIGN KEY (`sub_sub_category_id`) REFERENCES `categories` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `products_tax_foreign` FOREIGN KEY (`tax`) REFERENCES `tax_rates` (`id`),
  ADD CONSTRAINT `products_unit_id_foreign` FOREIGN KEY (`unit_id`) REFERENCES `units` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `product_barcodes`
--
ALTER TABLE `product_barcodes`
  ADD CONSTRAINT `product_barcodes_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `product_variations`
--
ALTER TABLE `product_variations`
  ADD CONSTRAINT `product_variations_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `purchase_lines`
--
ALTER TABLE `purchase_lines`
  ADD CONSTRAINT `purchase_lines_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `purchase_lines_tax_id_foreign` FOREIGN KEY (`tax_id`) REFERENCES `tax_rates` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `purchase_lines_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `purchase_lines_variation_id_foreign` FOREIGN KEY (`variation_id`) REFERENCES `variations` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `res_product_modifier_sets`
--
ALTER TABLE `res_product_modifier_sets`
  ADD CONSTRAINT `res_product_modifier_sets_modifier_set_id_foreign` FOREIGN KEY (`modifier_set_id`) REFERENCES `products` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `res_tables`
--
ALTER TABLE `res_tables`
  ADD CONSTRAINT `res_tables_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `roles`
--
ALTER TABLE `roles`
  ADD CONSTRAINT `roles_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `role_has_permissions`
--
ALTER TABLE `role_has_permissions`
  ADD CONSTRAINT `role_has_permissions_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `role_has_permissions_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `selling_price_groups`
--
ALTER TABLE `selling_price_groups`
  ADD CONSTRAINT `selling_price_groups_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `stock_adjustment_lines`
--
ALTER TABLE `stock_adjustment_lines`
  ADD CONSTRAINT `stock_adjustment_lines_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `stock_adjustment_lines_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `stock_adjustment_lines_variation_id_foreign` FOREIGN KEY (`variation_id`) REFERENCES `variations` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `tax_rates`
--
ALTER TABLE `tax_rates`
  ADD CONSTRAINT `tax_rates_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `tax_rates_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `transactions`
--
ALTER TABLE `transactions`
  ADD CONSTRAINT `transactions_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `transactions_contact_id_foreign` FOREIGN KEY (`contact_id`) REFERENCES `contacts` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `transactions_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `transactions_expense_category_id_foreign` FOREIGN KEY (`expense_category_id`) REFERENCES `expense_categories` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `transactions_expense_for_foreign` FOREIGN KEY (`expense_for`) REFERENCES `users` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `transactions_location_id_foreign` FOREIGN KEY (`location_id`) REFERENCES `business_locations` (`id`),
  ADD CONSTRAINT `transactions_tax_id_foreign` FOREIGN KEY (`tax_id`) REFERENCES `tax_rates` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `transaction_payments`
--
ALTER TABLE `transaction_payments`
  ADD CONSTRAINT `transaction_payments_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `transaction_sell_lines`
--
ALTER TABLE `transaction_sell_lines`
  ADD CONSTRAINT `transaction_sell_lines_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `transaction_sell_lines_tax_id_foreign` FOREIGN KEY (`tax_id`) REFERENCES `tax_rates` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `transaction_sell_lines_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `transaction_sell_lines_variation_id_foreign` FOREIGN KEY (`variation_id`) REFERENCES `variations` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `units`
--
ALTER TABLE `units`
  ADD CONSTRAINT `units_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `units_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `users`
--
ALTER TABLE `users`
  ADD CONSTRAINT `users_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `users_crm_contact_id_foreign` FOREIGN KEY (`crm_contact_id`) REFERENCES `contacts` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `variations`
--
ALTER TABLE `variations`
  ADD CONSTRAINT `variations_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `variations_product_variation_id_foreign` FOREIGN KEY (`product_variation_id`) REFERENCES `product_variations` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `variation_group_prices`
--
ALTER TABLE `variation_group_prices`
  ADD CONSTRAINT `variation_group_prices_price_group_id_foreign` FOREIGN KEY (`price_group_id`) REFERENCES `selling_price_groups` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `variation_group_prices_variation_id_foreign` FOREIGN KEY (`variation_id`) REFERENCES `variations` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `variation_location_details`
--
ALTER TABLE `variation_location_details`
  ADD CONSTRAINT `variation_location_details_location_id_foreign` FOREIGN KEY (`location_id`) REFERENCES `business_locations` (`id`),
  ADD CONSTRAINT `variation_location_details_variation_id_foreign` FOREIGN KEY (`variation_id`) REFERENCES `variations` (`id`);

--
-- Constraints for table `variation_templates`
--
ALTER TABLE `variation_templates`
  ADD CONSTRAINT `variation_templates_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `variation_value_templates`
--
ALTER TABLE `variation_value_templates`
  ADD CONSTRAINT `variation_value_templates_variation_template_id_foreign` FOREIGN KEY (`variation_template_id`) REFERENCES `variation_templates` (`id`) ON DELETE CASCADE;
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 */;
