-- phpMyAdmin SQL Dump
-- version 5.2.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Mar 20, 2026 at 01:28 PM
-- Server version: 10.4.32-MariaDB
-- PHP Version: 8.2.12

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

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

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

CREATE TABLE `activity_log` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `log_name` varchar(255) DEFAULT NULL,
  `description` text NOT NULL,
  `subject_type` varchar(255) DEFAULT NULL,
  `event` varchar(255) DEFAULT NULL,
  `subject_id` bigint(20) UNSIGNED DEFAULT NULL,
  `causer_type` varchar(255) DEFAULT NULL,
  `causer_id` bigint(20) UNSIGNED DEFAULT NULL,
  `properties` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`properties`)),
  `batch_uuid` char(36) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `activity_log` (`id`, `log_name`, `description`, `subject_type`, `event`, `subject_id`, `causer_type`, `causer_id`, `properties`, `batch_uuid`, `created_at`, `updated_at`) VALUES
(1, 'category', 'Category has been created', 'App\\Models\\Category', 'created', 1, 'App\\Models\\User', 3, '{\"attributes\":{\"name\":\"fsdfsdf\",\"image\":\"uploads\\/categories\\/1761566932_68ff60d4df7c1.PNG\"}}', NULL, '2025-10-27 07:08:52', '2025-10-27 07:08:52'),
(2, 'category', 'Category has been updated', 'App\\Models\\Category', 'updated', 1, 'App\\Models\\User', 3, '{\"attributes\":{\"name\":\"fsdfsdf00\"},\"old\":{\"name\":\"fsdfsdf\"}}', NULL, '2025-10-27 07:28:09', '2025-10-27 07:28:09'),
(3, 'category', 'Category has been deleted', 'App\\Models\\Category', 'deleted', 1, 'App\\Models\\User', 3, '{\"old\":{\"name\":\"fsdfsdf00\",\"image\":\"uploads\\/categories\\/1761566932_68ff60d4df7c1.PNG\"}}', NULL, '2025-10-27 07:32:03', '2025-10-27 07:32:03'),
(4, 'category', 'Category has been created', 'App\\Models\\Category', 'created', 2, 'App\\Models\\User', 3, '{\"attributes\":{\"name\":\"test\",\"image\":\"uploads\\/categories\\/1761568338_68ff6652be4b2.PNG\"}}', NULL, '2025-10-27 07:32:18', '2025-10-27 07:32:18'),
(5, 'product', 'Product has been created', 'App\\Models\\Product', 'created', 1, 'App\\Models\\User', 3, '{\"attributes\":{\"name\":\"test\",\"category_id\":2,\"image\":\"uploads\\/products\\/1761638967_69007a3788b07.PNG\",\"status\":\"active\",\"description\":\"fdsfd\"}}', NULL, '2025-10-28 03:09:27', '2025-10-28 03:09:27'),
(6, 'product', 'Product has been updated', 'App\\Models\\Product', 'updated', 1, 'App\\Models\\User', 3, '{\"attributes\":{\"name\":\"test00\"},\"old\":{\"name\":\"test\"}}', NULL, '2025-10-28 03:15:49', '2025-10-28 03:15:49'),
(7, 'product', 'Product has been updated', 'App\\Models\\Product', 'updated', 1, 'App\\Models\\User', 3, '{\"attributes\":{\"name\":\"test000\"},\"old\":{\"name\":\"test00\"}}', NULL, '2025-10-28 03:16:22', '2025-10-28 03:16:22'),
(8, 'product', 'Product has been updated', 'App\\Models\\Product', 'updated', 1, 'App\\Models\\User', 3, '{\"attributes\":{\"image\":\"uploads\\/products\\/1761639395_69007be355c7c.PNG\"},\"old\":{\"image\":\"uploads\\/products\\/1761638967_69007a3788b07.PNG\"}}', NULL, '2025-10-28 03:16:35', '2025-10-28 03:16:35'),
(9, 'product', 'Product has been updated', 'App\\Models\\Product', 'updated', 1, 'App\\Models\\User', 3, '{\"attributes\":{\"status\":\"inactive\"},\"old\":{\"status\":\"active\"}}', NULL, '2025-10-28 03:16:45', '2025-10-28 03:16:45'),
(10, 'product', 'Product has been updated', 'App\\Models\\Product', 'updated', 1, 'App\\Models\\User', 3, '{\"attributes\":{\"status\":\"active\"},\"old\":{\"status\":\"inactive\"}}', NULL, '2025-10-28 03:16:53', '2025-10-28 03:16:53'),
(11, 'product', 'Product has been deleted', 'App\\Models\\Product', 'deleted', 1, 'App\\Models\\User', 3, '{\"old\":{\"name\":\"test000\",\"category_id\":2,\"image\":\"uploads\\/products\\/1761639395_69007be355c7c.PNG\",\"status\":\"active\",\"description\":\"fdsfd\"}}', NULL, '2025-10-28 03:47:46', '2025-10-28 03:47:46'),
(12, 'category', 'Category has been updated', 'App\\Models\\Category', 'updated', 2, 'App\\Models\\User', 3, '{\"attributes\":{\"name\":\"test00\",\"image\":\"uploads\\/categories\\/1761641665_690084c125bcd.PNG\"},\"old\":{\"name\":\"test\",\"image\":\"uploads\\/categories\\/1761568338_68ff6652be4b2.PNG\"}}', NULL, '2025-10-28 03:54:25', '2025-10-28 03:54:25'),
(13, 'category', 'Category has been deleted', 'App\\Models\\Category', 'deleted', 2, 'App\\Models\\User', 3, '{\"old\":{\"name\":\"test00\",\"image\":\"uploads\\/categories\\/1761641665_690084c125bcd.PNG\"}}', NULL, '2025-10-28 03:55:51', '2025-10-28 03:55:51'),
(14, 'category', 'Category has been created', 'App\\Models\\Category', 'created', 3, 'App\\Models\\User', 3, '{\"attributes\":{\"name\":\"test\",\"image\":\"uploads\\/categories\\/1761641862_69008586e5bfc.PNG\"}}', NULL, '2025-10-28 03:57:42', '2025-10-28 03:57:42'),
(15, 'product', 'Product has been created', 'App\\Models\\Product', 'created', 2, 'App\\Models\\User', 3, '{\"attributes\":{\"name\":\"test Product\",\"category_id\":3,\"image\":\"uploads\\/products\\/1761641884_6900859ca4337.PNG\",\"status\":\"active\",\"description\":\"Description (optional)\"}}', NULL, '2025-10-28 03:58:04', '2025-10-28 03:58:04'),
(16, 'product', 'Category has been created', 'App\\Models\\Complaint', 'created', 1, 'App\\Models\\User', 3, '{\"attributes\":{\"name\":\"dsadsad\",\"email\":\"dfdf54@djsd.com\",\"phone\":\"4234234234324\",\"address\":\"sdfdsfdsfsdfsdf\",\"product_id\":2,\"date\":null,\"complain_id\":\"CMP-69009D7320CB2\",\"status\":null}}', NULL, '2025-10-28 05:39:47', '2025-10-28 05:39:47'),
(17, 'product', 'Category has been created', 'App\\Models\\Complaint', 'created', 2, 'App\\Models\\User', 3, '{\"attributes\":{\"name\":\"dsadsad\",\"email\":\"sdadsad@gmail.com\",\"phone\":\"4234234234234234\",\"address\":\"sfsdfdsfsdf\",\"product_id\":2,\"date\":null,\"complain_id\":\"CMP-69009DBB406CB\",\"status\":null}}', NULL, '2025-10-28 05:40:59', '2025-10-28 05:40:59'),
(18, 'product', 'Category has been created', 'App\\Models\\Complaint', 'created', 3, 'App\\Models\\User', 3, '{\"attributes\":{\"name\":\"fsdf\",\"email\":\"sdfsdf@gmail.com\",\"phone\":\"4543543543\",\"address\":\"gsfgfsg\",\"product_id\":2,\"date\":\"2025-10-28\",\"complain_id\":\"CMP-69009E02CF73C\",\"status\":null}}', NULL, '2025-10-28 05:42:10', '2025-10-28 05:42:10'),
(19, 'product', 'Category has been created', 'App\\Models\\Complaint', 'created', 4, 'App\\Models\\User', 3, '{\"attributes\":{\"name\":\"fdfsdf\",\"email\":\"fsdfds@sdjsc.om\",\"phone\":\"324234324\",\"address\":\"sadsadasdsa\",\"product_id\":2,\"date\":\"2025-10-28\",\"complain_id\":\"CMP-6900A00C6039F\",\"status\":\"In Progress\"}}', NULL, '2025-10-28 05:50:52', '2025-10-28 05:50:52'),
(20, 'product', 'Category has been updated', 'App\\Models\\Complaint', 'updated', 4, 'App\\Models\\User', 3, '{\"attributes\":[],\"old\":[]}', NULL, '2025-10-28 05:56:25', '2025-10-28 05:56:25'),
(21, 'product', 'Category has been deleted', 'App\\Models\\Complaint', 'deleted', 1, 'App\\Models\\User', 3, '{\"old\":{\"name\":\"dsadsad\",\"email\":\"dfdf54@djsd.com\",\"phone\":\"4234234234324\",\"address\":\"sdfdsfdsfsdfsdf\",\"product_id\":2,\"date\":null,\"complain_id\":\"CMP-69009D7320CB2\",\"status\":null}}', NULL, '2025-10-28 05:56:41', '2025-10-28 05:56:41'),
(22, 'product', 'Category has been deleted', 'App\\Models\\Complaint', 'deleted', 2, 'App\\Models\\User', 3, '{\"old\":{\"name\":\"dsadsad\",\"email\":\"sdadsad@gmail.com\",\"phone\":\"4234234234234234\",\"address\":\"sfsdfdsfsdf\",\"product_id\":2,\"date\":null,\"complain_id\":\"CMP-69009DBB406CB\",\"status\":null}}', NULL, '2025-10-28 05:56:45', '2025-10-28 05:56:45'),
(23, 'product', 'Category has been updated', 'App\\Models\\Complaint', 'updated', 3, 'App\\Models\\User', 3, '{\"attributes\":{\"date\":\"2025-10-21\",\"status\":\"Pending\"},\"old\":{\"date\":\"2025-10-28\",\"status\":null}}', NULL, '2025-10-28 05:57:08', '2025-10-28 05:57:08'),
(24, 'product', 'Category has been created', 'App\\Models\\Complaint', 'created', 5, 'App\\Models\\User', 3, '{\"attributes\":{\"name\":\"test\",\"email\":\"test@test.ciom\",\"phone\":\"423423432434\",\"address\":\"abc\",\"product_id\":2,\"date\":\"2025-10-28\",\"complain_id\":\"CMP-6900B3C497AD0\",\"status\":\"Pending\"}}', NULL, '2025-10-28 07:15:00', '2025-10-28 07:15:00'),
(25, 'category', 'complaint assign has been created', 'App\\Models\\ComplaintAssign', 'created', 1, 'App\\Models\\User', 3, '{\"attributes\":{\"complaint_id\":5,\"user_id\":4,\"assigned_by\":3}}', NULL, '2025-10-28 09:27:37', '2025-10-28 09:27:37'),
(26, 'category', 'complaint assign has been created', 'App\\Models\\ComplaintAssign', 'created', 2, 'App\\Models\\User', 3, '{\"attributes\":{\"complaint_id\":4,\"user_id\":5,\"assigned_by\":3}}', NULL, '2025-10-28 09:30:19', '2025-10-28 09:30:19'),
(27, 'product', 'Product has been created', 'App\\Models\\Product', 'created', 3, 'App\\Models\\User', 6, '{\"attributes\":{\"name\":\"Product\",\"category_id\":3,\"image\":\"uploads\\/products\\/1761723147_6901c30b1734d.PNG\",\"status\":\"active\",\"description\":\"Description\"}}', NULL, '2025-10-29 02:32:27', '2025-10-29 02:32:27'),
(28, 'product', 'Category has been created', 'App\\Models\\Complaint', 'created', 6, 'App\\Models\\User', 3, '{\"attributes\":{\"created_by\":3,\"name\":\"New Create Complaint\",\"email\":\"complaint@gmail.com\",\"phone\":\"488765467878\",\"address\":\"dsdsd\",\"product_id\":3,\"date\":\"2025-10-29\",\"complain_id\":\"CMP-6901C640ED118\",\"status\":\"Pending\"}}', NULL, '2025-10-29 02:46:08', '2025-10-29 02:46:08'),
(29, 'product', 'Category has been created', 'App\\Models\\Complaint', 'created', 7, 'App\\Models\\User', 7, '{\"attributes\":{\"created_by\":7,\"name\":\"New Complaint\",\"email\":\"new@complaint.com\",\"phone\":\"423434234234\",\"address\":\"gfdg\",\"product_id\":3,\"date\":\"2025-10-29\",\"complain_id\":\"CMP-6901C75BB6866\",\"status\":\"Pending\"}}', NULL, '2025-10-29 02:50:51', '2025-10-29 02:50:51'),
(30, 'product', 'Complaint Comment has been created', 'App\\Models\\ComplaintComment', 'created', 1, 'App\\Models\\User', 3, '{\"attributes\":{\"complaint_id\":4,\"user_id\":3,\"text\":\"hello\",\"date\":null}}', NULL, '2025-10-29 04:14:13', '2025-10-29 04:14:13'),
(31, 'product', 'Complaint Comment has been created', 'App\\Models\\ComplaintComment', 'created', 2, 'App\\Models\\User', 3, '{\"attributes\":{\"complaint_id\":4,\"user_id\":3,\"text\":\"test\",\"date\":null}}', NULL, '2025-10-29 04:14:41', '2025-10-29 04:14:41'),
(32, 'product', 'Complaint Comment has been created', 'App\\Models\\ComplaintComment', 'created', 3, 'App\\Models\\User', 3, '{\"attributes\":{\"complaint_id\":4,\"user_id\":3,\"text\":\"dsd\",\"date\":null}}', NULL, '2025-10-29 04:15:19', '2025-10-29 04:15:19'),
(33, 'product', 'Complaint Comment has been created', 'App\\Models\\ComplaintComment', 'created', 4, 'App\\Models\\User', 3, '{\"attributes\":{\"complaint_id\":4,\"user_id\":3,\"text\":\"dsff\",\"date\":null}}', NULL, '2025-10-29 04:16:37', '2025-10-29 04:16:37'),
(34, 'product', 'Complaint Comment has been created', 'App\\Models\\ComplaintComment', 'created', 5, 'App\\Models\\User', 3, '{\"attributes\":{\"complaint_id\":4,\"user_id\":3,\"text\":\"fdsfsd\",\"date\":\"2025-10-29\"}}', NULL, '2025-10-29 04:18:07', '2025-10-29 04:18:07'),
(35, 'product', 'Complaint Comment has been created', 'App\\Models\\ComplaintCharge', 'created', 1, 'App\\Models\\User', 3, '{\"attributes\":{\"complaint_id\":4,\"user_id\":3,\"text\":\"Charge Description\",\"charges\":\"10.00\"}}', NULL, '2025-10-29 06:08:49', '2025-10-29 06:08:49'),
(36, 'product', 'Complaint Comment has been created', 'App\\Models\\ComplaintCharge', 'created', 2, 'App\\Models\\User', 3, '{\"attributes\":{\"complaint_id\":4,\"user_id\":3,\"text\":\"charge\",\"charges\":\"10.00\"}}', NULL, '2025-10-29 06:11:19', '2025-10-29 06:11:19'),
(37, 'product', 'Complaint Comment has been created', 'App\\Models\\ComplaintCharge', 'created', 3, 'App\\Models\\User', 3, '{\"attributes\":{\"complaint_id\":4,\"user_id\":3,\"text\":\"dsd\",\"charges\":\"12.01\"}}', NULL, '2025-10-29 06:11:58', '2025-10-29 06:11:58'),
(38, 'product', 'Category has been updated', 'App\\Models\\Complaint', 'updated', 4, 'App\\Models\\User', 3, '{\"attributes\":{\"status\":\"completed\"},\"old\":{\"status\":\"In Progress\"}}', NULL, '2025-10-29 06:17:57', '2025-10-29 06:17:57'),
(39, 'product', 'Category has been updated', 'App\\Models\\Complaint', 'updated', 4, 'App\\Models\\User', 3, '{\"attributes\":{\"status\":\"Resolved\"},\"old\":{\"status\":\"completed\"}}', NULL, '2025-10-29 06:19:05', '2025-10-29 06:19:05'),
(40, 'category', 'Category has been created', 'App\\Models\\Branch', 'created', 1, 'App\\Models\\User', 3, '{\"attributes\":{\"name\":null,\"image\":null}}', NULL, '2026-03-13 02:48:01', '2026-03-13 02:48:01'),
(41, 'category', 'Category has been created', 'App\\Models\\Branch', 'created', 1, 'App\\Models\\User', 3, '{\"attributes\":{\"name\":null,\"image\":null}}', NULL, '2026-03-13 03:06:14', '2026-03-13 03:06:14'),
(42, 'category', 'Category has been created', 'App\\Models\\Branch', 'created', 2, 'App\\Models\\User', 3, '{\"attributes\":{\"name\":null,\"image\":null}}', NULL, '2026-03-13 03:17:18', '2026-03-13 03:17:18'),
(43, 'category', 'Category has been updated', 'App\\Models\\Branch', 'updated', 1, 'App\\Models\\User', 3, '{\"attributes\":[],\"old\":[]}', NULL, '2026-03-13 03:32:34', '2026-03-13 03:32:34'),
(44, 'category', 'Category has been deleted', 'App\\Models\\Branch', 'deleted', 2, 'App\\Models\\User', 3, '{\"old\":{\"name\":null,\"image\":null}}', NULL, '2026-03-13 04:17:34', '2026-03-13 04:17:34'),
(45, 'category', 'Category has been created', 'App\\Models\\Branch', 'created', 3, 'App\\Models\\User', 3, '{\"attributes\":{\"name\":null,\"image\":null}}', NULL, '2026-03-13 04:56:15', '2026-03-13 04:56:15'),
(46, 'category', 'Category has been deleted', 'App\\Models\\Branch', 'deleted', 3, 'App\\Models\\User', 3, '{\"old\":{\"name\":null,\"image\":null}}', NULL, '2026-03-13 04:56:24', '2026-03-13 04:56:24'),
(47, 'category', 'Category has been created', 'App\\Models\\BranchInvestment', 'created', 1, 'App\\Models\\User', 3, '{\"attributes\":{\"name\":null,\"image\":null}}', NULL, '2026-03-16 00:53:46', '2026-03-16 00:53:46'),
(48, 'category', 'Category has been created', 'App\\Models\\BranchInvestment', 'created', 2, 'App\\Models\\User', 3, '{\"attributes\":{\"name\":null,\"image\":null}}', NULL, '2026-03-16 00:57:46', '2026-03-16 00:57:46'),
(49, 'category', 'Category has been created', 'App\\Models\\BranchInvestment', 'created', 3, 'App\\Models\\User', 3, '{\"attributes\":{\"name\":null,\"image\":null}}', NULL, '2026-03-16 00:58:46', '2026-03-16 00:58:46'),
(50, 'category', 'Category has been created', 'App\\Models\\BranchInvestment', 'created', 4, 'App\\Models\\User', 3, '{\"attributes\":{\"name\":null,\"image\":null}}', NULL, '2026-03-16 01:00:40', '2026-03-16 01:00:40'),
(51, 'category', 'Category has been updated', 'App\\Models\\BranchInvestment', 'updated', 4, 'App\\Models\\User', 3, '{\"attributes\":[],\"old\":[]}', NULL, '2026-03-16 01:32:13', '2026-03-16 01:32:13'),
(52, 'category', 'Category has been updated', 'App\\Models\\BranchInvestment', 'updated', 4, 'App\\Models\\User', 3, '{\"attributes\":[],\"old\":[]}', NULL, '2026-03-16 01:32:19', '2026-03-16 01:32:19'),
(53, 'category', 'Category has been updated', 'App\\Models\\BranchInvestment', 'updated', 4, 'App\\Models\\User', 3, '{\"attributes\":[],\"old\":[]}', NULL, '2026-03-16 01:32:36', '2026-03-16 01:32:36'),
(54, 'category', 'Category has been deleted', 'App\\Models\\BranchInvestment', 'deleted', 4, 'App\\Models\\User', 3, '{\"old\":{\"name\":null,\"image\":null}}', NULL, '2026-03-16 01:34:07', '2026-03-16 01:34:07'),
(55, 'category', 'Category has been deleted', 'App\\Models\\BranchInvestment', 'deleted', 3, 'App\\Models\\User', 3, '{\"old\":{\"name\":null,\"image\":null}}', NULL, '2026-03-16 01:34:12', '2026-03-16 01:34:12'),
(56, 'category', 'Category has been created', 'App\\Models\\Partner', 'created', 1, 'App\\Models\\User', 3, '{\"attributes\":{\"name\":null,\"image\":null}}', NULL, '2026-03-16 03:18:53', '2026-03-16 03:18:53'),
(57, 'category', 'Category has been created', 'App\\Models\\Partner', 'created', 2, 'App\\Models\\User', 3, '{\"attributes\":{\"name\":null,\"image\":null}}', NULL, '2026-03-16 03:21:50', '2026-03-16 03:21:50'),
(58, 'category', 'Category has been created', 'App\\Models\\Partner', 'created', 3, 'App\\Models\\User', 3, '{\"attributes\":{\"name\":null,\"image\":null}}', NULL, '2026-03-16 03:24:22', '2026-03-16 03:24:22'),
(59, 'category', 'Category has been updated', 'App\\Models\\Partner', 'updated', 3, 'App\\Models\\User', 3, '{\"attributes\":[],\"old\":[]}', NULL, '2026-03-16 03:34:57', '2026-03-16 03:34:57'),
(60, 'category', 'Category has been deleted', 'App\\Models\\Partner', 'deleted', 1, 'App\\Models\\User', 3, '{\"old\":{\"name\":null,\"image\":null}}', NULL, '2026-03-16 03:35:10', '2026-03-16 03:35:10'),
(61, 'category', 'Category has been created', 'App\\Models\\Team', 'created', 1, 'App\\Models\\User', 3, '{\"attributes\":{\"name\":null,\"image\":null}}', NULL, '2026-03-16 05:17:12', '2026-03-16 05:17:12'),
(62, 'category', 'Category has been updated', 'App\\Models\\Team', 'updated', 1, 'App\\Models\\User', 3, '{\"attributes\":[],\"old\":[]}', NULL, '2026-03-16 05:18:34', '2026-03-16 05:18:34'),
(63, 'category', 'Category has been updated', 'App\\Models\\Team', 'updated', 1, 'App\\Models\\User', 3, '{\"attributes\":[],\"old\":[]}', NULL, '2026-03-16 05:19:36', '2026-03-16 05:19:36'),
(64, 'category', 'Category has been created', 'App\\Models\\Team', 'created', 2, 'App\\Models\\User', 3, '{\"attributes\":{\"name\":null,\"image\":null}}', NULL, '2026-03-16 05:21:50', '2026-03-16 05:21:50'),
(65, 'category', 'Category has been deleted', 'App\\Models\\Team', 'deleted', 1, 'App\\Models\\User', 3, '{\"old\":{\"name\":null,\"image\":null}}', NULL, '2026-03-16 05:21:59', '2026-03-16 05:21:59'),
(66, 'category', 'Category has been created', 'App\\Models\\Team', 'created', 3, 'App\\Models\\User', 3, '{\"attributes\":{\"name\":null,\"image\":null}}', NULL, '2026-03-16 05:22:55', '2026-03-16 05:22:55'),
(67, 'category', 'Category has been created', 'App\\Models\\BranchPartner', 'created', 1, 'App\\Models\\User', 3, '{\"attributes\":{\"name\":null,\"image\":null}}', NULL, '2026-03-16 06:45:09', '2026-03-16 06:45:09'),
(68, 'category', 'Category has been created', 'App\\Models\\BranchPartner', 'created', 2, 'App\\Models\\User', 3, '{\"attributes\":{\"name\":null,\"image\":null}}', NULL, '2026-03-16 06:46:33', '2026-03-16 06:46:33'),
(69, 'category', 'Category has been created', 'App\\Models\\BranchPartner', 'created', 3, 'App\\Models\\User', 3, '{\"attributes\":{\"name\":null,\"image\":null}}', NULL, '2026-03-17 00:15:06', '2026-03-17 00:15:06'),
(70, 'category', 'Category has been created', 'App\\Models\\BranchPartner', 'created', 4, 'App\\Models\\User', 3, '{\"attributes\":{\"name\":null,\"image\":null}}', NULL, '2026-03-17 00:17:35', '2026-03-17 00:17:35'),
(71, 'category', 'Category has been updated', 'App\\Models\\BranchPartner', 'updated', 3, 'App\\Models\\User', 3, '{\"attributes\":[],\"old\":[]}', NULL, '2026-03-17 00:24:40', '2026-03-17 00:24:40'),
(72, 'category', 'Category has been deleted', 'App\\Models\\BranchPartner', 'deleted', 3, 'App\\Models\\User', 3, '{\"old\":{\"name\":null,\"image\":null}}', NULL, '2026-03-17 00:29:19', '2026-03-17 00:29:19'),
(73, 'category', 'Category has been deleted', 'App\\Models\\BranchPartner', 'deleted', 4, 'App\\Models\\User', 3, '{\"old\":{\"name\":null,\"image\":null}}', NULL, '2026-03-17 00:29:50', '2026-03-17 00:29:50'),
(76, 'category', 'Category has been created', 'App\\Models\\Partner', 'created', 6, 'App\\Models\\User', 3, '{\"attributes\":{\"name\":null,\"image\":null}}', NULL, '2026-03-17 01:52:44', '2026-03-17 01:52:44'),
(77, 'category', 'Category has been created', 'App\\Models\\Partner', 'created', 7, 'App\\Models\\User', 3, '{\"attributes\":{\"name\":null,\"image\":null}}', NULL, '2026-03-17 02:25:09', '2026-03-17 02:25:09'),
(79, 'category', 'Category has been created', 'App\\Models\\Partner', 'created', 9, 'App\\Models\\User', 3, '{\"attributes\":{\"name\":null,\"image\":null}}', NULL, '2026-03-17 02:45:55', '2026-03-17 02:45:55'),
(80, 'category', 'Category has been deleted', 'App\\Models\\Partner', 'deleted', 9, 'App\\Models\\User', 3, '{\"old\":{\"name\":null,\"image\":null}}', NULL, '2026-03-17 03:24:48', '2026-03-17 03:24:48'),
(81, 'category', 'Category has been deleted', 'App\\Models\\Partner', 'deleted', 7, 'App\\Models\\User', 3, '{\"old\":{\"name\":null,\"image\":null}}', NULL, '2026-03-17 03:24:51', '2026-03-17 03:24:51'),
(82, 'category', 'Category has been created', 'App\\Models\\Partner', 'created', 10, 'App\\Models\\User', 3, '{\"attributes\":{\"name\":null,\"image\":null}}', NULL, '2026-03-17 03:25:28', '2026-03-17 03:25:28'),
(83, 'category', 'Category has been deleted', 'App\\Models\\Partner', 'deleted', 10, 'App\\Models\\User', 3, '{\"old\":{\"name\":null,\"image\":null}}', NULL, '2026-03-17 03:27:45', '2026-03-17 03:27:45'),
(84, 'category', 'Category has been deleted', 'App\\Models\\Partner', 'deleted', 6, 'App\\Models\\User', 3, '{\"old\":{\"name\":null,\"image\":null}}', NULL, '2026-03-17 03:27:49', '2026-03-17 03:27:49'),
(85, 'category', 'Category has been created', 'App\\Models\\Partner', 'created', 11, 'App\\Models\\User', 3, '{\"attributes\":{\"name\":null,\"image\":null}}', NULL, '2026-03-17 03:50:28', '2026-03-17 03:50:28'),
(86, 'category', 'Category has been created', 'App\\Models\\BranchPartner', 'created', 5, 'App\\Models\\User', 3, '{\"attributes\":{\"name\":null,\"image\":null}}', NULL, '2026-03-17 05:13:32', '2026-03-17 05:13:32'),
(87, 'category', 'Daily Sale has been created', 'App\\Models\\DailySale', 'created', 1, 'App\\Models\\User', 13, '{\"attributes\":{\"user_id\":13,\"branch_id\":1,\"sale_date\":\"2026-03-18\",\"sales_amount\":\"1.00\",\"notes\":null}}', NULL, '2026-03-18 00:03:16', '2026-03-18 00:03:16'),
(88, 'category', 'Daily Sale has been created', 'App\\Models\\DailySale', 'created', 2, 'App\\Models\\User', 13, '{\"attributes\":{\"user_id\":13,\"branch_id\":1,\"sale_date\":\"2026-03-17\",\"sales_amount\":\"3424.00\",\"notes\":null}}', NULL, '2026-03-18 00:11:25', '2026-03-18 00:11:25'),
(89, 'category', 'Daily Sale has been created', 'App\\Models\\DailySale', 'created', 3, 'App\\Models\\User', 13, '{\"attributes\":{\"user_id\":13,\"branch_id\":1,\"sale_date\":\"2026-03-18\",\"sales_amount\":\"1.00\",\"notes\":null}}', NULL, '2026-03-18 00:15:10', '2026-03-18 00:15:10'),
(90, 'category', 'Daily Sale has been created', 'App\\Models\\DailySale', 'created', 4, 'App\\Models\\User', 13, '{\"attributes\":{\"user_id\":13,\"branch_id\":1,\"sale_date\":\"2026-03-17\",\"sales_amount\":\"3.00\",\"notes\":null}}', NULL, '2026-03-18 00:17:40', '2026-03-18 00:17:40'),
(91, 'category', 'Daily Sale has been created', 'App\\Models\\DailySale', 'created', 1, 'App\\Models\\User', 13, '{\"attributes\":{\"user_id\":13,\"branch_id\":1,\"sale_date\":\"2026-03-18\",\"sales_amount\":\"1.00\",\"notes\":null}}', NULL, '2026-03-18 00:19:11', '2026-03-18 00:19:11'),
(92, 'category', 'Daily Sale has been created', 'App\\Models\\DailySale', 'created', 2, 'App\\Models\\User', 13, '{\"attributes\":{\"user_id\":13,\"branch_id\":1,\"sale_date\":\"2026-03-18\",\"sales_amount\":\"1.00\",\"notes\":null}}', NULL, '2026-03-18 00:19:43', '2026-03-18 00:19:43'),
(93, 'category', 'Category has been created', 'App\\Models\\Branch', 'created', 4, 'App\\Models\\User', 3, '{\"attributes\":{\"name\":null,\"image\":null}}', NULL, '2026-03-18 01:07:37', '2026-03-18 01:07:37'),
(94, 'category', 'Category has been created', 'App\\Models\\BranchPartner', 'created', 6, 'App\\Models\\User', 3, '{\"attributes\":{\"name\":null,\"image\":null}}', NULL, '2026-03-18 01:08:07', '2026-03-18 01:08:07'),
(95, 'category', 'Daily Sale has been updated', 'App\\Models\\DailySale', 'updated', 2, 'App\\Models\\User', 13, '{\"attributes\":{\"branch_id\":4},\"old\":{\"branch_id\":1}}', NULL, '2026-03-18 01:25:06', '2026-03-18 01:25:06'),
(96, 'category', 'Category has been deleted', 'App\\Models\\Partner', 'deleted', 2, 'App\\Models\\User', 13, '{\"old\":{\"name\":null,\"image\":null}}', NULL, '2026-03-18 01:26:04', '2026-03-18 01:26:04'),
(97, 'category', 'Daily Sale has been deleted', 'App\\Models\\DailySale', 'deleted', 2, 'App\\Models\\User', 13, '{\"old\":{\"user_id\":13,\"branch_id\":4,\"sale_date\":\"2026-03-18\",\"sales_amount\":\"1.00\",\"notes\":null}}', NULL, '2026-03-18 01:38:21', '2026-03-18 01:38:21'),
(98, 'category', 'Category has been updated', 'App\\Models\\Branch', 'updated', 4, 'App\\Models\\User', 3, '{\"attributes\":[],\"old\":[]}', NULL, '2026-03-18 02:03:14', '2026-03-18 02:03:14'),
(99, 'category', 'Category has been updated', 'App\\Models\\Branch', 'updated', 1, 'App\\Models\\User', 3, '{\"attributes\":[],\"old\":[]}', NULL, '2026-03-18 02:03:50', '2026-03-18 02:03:50'),
(100, 'category', 'Category has been deleted', 'App\\Models\\BranchInvestment', 'deleted', 1, 'App\\Models\\User', 3, '{\"old\":{\"name\":null,\"image\":null}}', NULL, '2026-03-18 02:04:10', '2026-03-18 02:04:10'),
(101, 'category', 'Category has been deleted', 'App\\Models\\BranchInvestment', 'deleted', 2, 'App\\Models\\User', 3, '{\"old\":{\"name\":null,\"image\":null}}', NULL, '2026-03-18 02:04:16', '2026-03-18 02:04:16'),
(102, 'category', 'Category has been deleted', 'App\\Models\\Partner', 'deleted', 3, 'App\\Models\\User', 3, '{\"old\":{\"name\":null,\"image\":null}}', NULL, '2026-03-18 02:04:34', '2026-03-18 02:04:34'),
(103, 'category', 'Category has been deleted', 'App\\Models\\Partner', 'deleted', 11, 'App\\Models\\User', 3, '{\"old\":{\"name\":null,\"image\":null}}', NULL, '2026-03-18 02:04:38', '2026-03-18 02:04:38'),
(104, 'category', 'Category has been deleted', 'App\\Models\\Team', 'deleted', 3, 'App\\Models\\User', 3, '{\"old\":{\"name\":null,\"image\":null}}', NULL, '2026-03-18 02:04:45', '2026-03-18 02:04:45'),
(105, 'category', 'Category has been deleted', 'App\\Models\\Team', 'deleted', 2, 'App\\Models\\User', 3, '{\"old\":{\"name\":null,\"image\":null}}', NULL, '2026-03-18 02:04:49', '2026-03-18 02:04:49'),
(106, 'category', 'Category has been created', 'App\\Models\\BranchInvestment', 'created', 5, 'App\\Models\\User', 3, '{\"attributes\":{\"name\":null,\"image\":null}}', NULL, '2026-03-18 02:06:30', '2026-03-18 02:06:30'),
(107, 'category', 'Category has been created', 'App\\Models\\Partner', 'created', 12, 'App\\Models\\User', 3, '{\"attributes\":{\"name\":null,\"image\":null}}', NULL, '2026-03-18 02:08:28', '2026-03-18 02:08:28'),
(108, 'category', 'Category has been created', 'App\\Models\\Partner', 'created', 13, 'App\\Models\\User', 3, '{\"attributes\":{\"name\":null,\"image\":null}}', NULL, '2026-03-18 02:09:34', '2026-03-18 02:09:34'),
(109, 'category', 'Category has been created', 'App\\Models\\Team', 'created', 4, 'App\\Models\\User', 3, '{\"attributes\":{\"name\":null,\"image\":null}}', NULL, '2026-03-18 02:10:44', '2026-03-18 02:10:44'),
(110, 'category', 'Category has been created', 'App\\Models\\BranchPartner', 'created', 7, 'App\\Models\\User', 3, '{\"attributes\":{\"name\":null,\"image\":null}}', NULL, '2026-03-18 02:18:48', '2026-03-18 02:18:48'),
(111, 'category', 'Daily Sale has been created', 'App\\Models\\DailySale', 'created', 3, 'App\\Models\\User', 14, '{\"attributes\":{\"user_id\":14,\"branch_id\":7,\"sale_date\":\"2026-03-18\",\"sales_amount\":\"25000.00\",\"notes\":null}}', NULL, '2026-03-18 02:20:20', '2026-03-18 02:20:20'),
(112, 'category', 'Daily Sale has been created', 'App\\Models\\DailySale', 'created', 4, 'App\\Models\\User', 14, '{\"attributes\":{\"user_id\":14,\"branch_id\":7,\"sale_date\":\"2026-03-18\",\"sales_amount\":\"1.00\",\"notes\":null}}', NULL, '2026-03-18 02:40:35', '2026-03-18 02:40:35'),
(113, 'category', 'Daily Sale has been created', 'App\\Models\\DailySale', 'created', 1, 'App\\Models\\User', 14, '{\"attributes\":{\"user_id\":14,\"branch_id\":4,\"sale_date\":\"2026-03-18\",\"sales_amount\":\"25000.00\",\"notes\":null}}', NULL, '2026-03-18 02:56:32', '2026-03-18 02:56:32'),
(114, 'category', 'Daily Sale has been deleted', 'App\\Models\\DailySale', 'deleted', 1, 'App\\Models\\User', 14, '{\"old\":{\"user_id\":14,\"branch_id\":4,\"sale_date\":\"2026-03-18\",\"sales_amount\":\"25000.00\",\"notes\":null}}', NULL, '2026-03-18 03:07:45', '2026-03-18 03:07:45'),
(115, 'category', 'Daily Sale has been deleted', 'App\\Models\\DailySale', 'deleted', 1, 'App\\Models\\User', 14, '{\"old\":{\"user_id\":14,\"branch_id\":4,\"sale_date\":\"2026-03-18\",\"sales_amount\":\"25000.00\",\"notes\":null}}', NULL, '2026-03-18 03:07:45', '2026-03-18 03:07:45'),
(116, 'category', 'Daily Sale has been created', 'App\\Models\\DailySale', 'created', 2, 'App\\Models\\User', 14, '{\"attributes\":{\"user_id\":14,\"branch_id\":4,\"sale_date\":\"2026-03-18\",\"sales_amount\":\"25000.00\",\"notes\":null}}', NULL, '2026-03-18 03:14:52', '2026-03-18 03:14:52'),
(117, 'category', 'Daily Sale has been created', 'App\\Models\\StaffCount', 'created', 1, 'App\\Models\\User', 14, '{\"attributes\":{\"user_id\":14,\"branch_id\":4,\"sale_date\":null,\"sales_amount\":null,\"notes\":null}}', NULL, '2026-03-18 03:59:43', '2026-03-18 03:59:43'),
(118, 'category', 'Daily Sale has been updated', 'App\\Models\\StaffCount', 'updated', 1, 'App\\Models\\User', 14, '{\"attributes\":[],\"old\":[]}', NULL, '2026-03-18 04:00:19', '2026-03-18 04:00:19'),
(119, 'category', 'Daily Sale has been created', 'App\\Models\\StaffCount', 'created', 2, 'App\\Models\\User', 3, '{\"attributes\":{\"user_id\":3,\"branch_id\":1,\"sale_date\":null,\"sales_amount\":null,\"notes\":null}}', NULL, '2026-03-18 04:20:36', '2026-03-18 04:20:36'),
(120, 'category', 'Daily Sale has been deleted', 'App\\Models\\StaffCount', 'deleted', 2, 'App\\Models\\User', 3, '{\"old\":{\"user_id\":3,\"branch_id\":1,\"sale_date\":null,\"sales_amount\":null,\"notes\":null}}', NULL, '2026-03-18 04:29:17', '2026-03-18 04:29:17'),
(121, 'category', 'Daily Sale has been deleted', 'App\\Models\\StaffCount', 'deleted', 1, 'App\\Models\\User', 3, '{\"old\":{\"user_id\":14,\"branch_id\":4,\"sale_date\":null,\"sales_amount\":null,\"notes\":null}}', NULL, '2026-03-18 04:29:29', '2026-03-18 04:29:29'),
(122, 'category', 'Daily Sale has been created', 'App\\Models\\StaffCount', 'created', 3, 'App\\Models\\User', 3, '{\"attributes\":{\"user_id\":3,\"branch_id\":4,\"sale_date\":null,\"sales_amount\":null,\"notes\":null}}', NULL, '2026-03-18 04:29:42', '2026-03-18 04:29:42'),
(123, 'category', 'Daily Sale has been deleted', 'App\\Models\\StaffCount', 'deleted', 3, 'App\\Models\\User', 3, '{\"old\":{\"user_id\":3,\"branch_id\":4,\"sale_date\":null,\"sales_amount\":null,\"notes\":null}}', NULL, '2026-03-18 04:41:44', '2026-03-18 04:41:44'),
(124, 'category', 'Daily Sale has been created', 'App\\Models\\StaffCount', 'created', 4, 'App\\Models\\User', 14, '{\"attributes\":{\"user_id\":14,\"branch_id\":4,\"sale_date\":null,\"sales_amount\":null,\"notes\":null}}', NULL, '2026-03-18 04:42:00', '2026-03-18 04:42:00'),
(125, 'category', 'Daily Sale has been created', 'App\\Models\\StaffCount', 'created', 5, 'App\\Models\\User', 3, '{\"attributes\":{\"user_id\":3,\"branch_id\":4,\"sale_date\":null,\"sales_amount\":null,\"notes\":null}}', NULL, '2026-03-18 04:42:20', '2026-03-18 04:42:20'),
(126, 'category', 'Category has been created', 'App\\Models\\BranchPartner', 'created', 8, 'App\\Models\\User', 3, '{\"attributes\":{\"name\":null,\"image\":null}}', NULL, '2026-03-18 04:44:57', '2026-03-18 04:44:57'),
(127, 'category', 'Daily Sale has been created', 'App\\Models\\StaffCount', 'created', 6, 'App\\Models\\User', 3, '{\"attributes\":{\"user_id\":3,\"branch_id\":1,\"sale_date\":null,\"sales_amount\":null,\"notes\":null}}', NULL, '2026-03-18 04:45:16', '2026-03-18 04:45:16'),
(128, 'category', 'Daily Sale has been created', 'App\\Models\\DailySale', 'created', 3, 'App\\Models\\User', 3, '{\"attributes\":{\"user_id\":3,\"branch_id\":1,\"sale_date\":\"2026-03-18\",\"sales_amount\":\"1000.00\",\"notes\":null}}', NULL, '2026-03-18 05:05:13', '2026-03-18 05:05:13'),
(129, 'category', 'Daily Sale has been created', 'App\\Models\\Salary', 'created', 1, 'App\\Models\\User', 3, '{\"attributes\":{\"user_id\":3,\"branch_id\":1,\"sale_date\":null,\"sales_amount\":null,\"notes\":\"Notes\"}}', NULL, '2026-03-18 05:48:13', '2026-03-18 05:48:13'),
(130, 'category', 'Daily Sale has been created', 'App\\Models\\Salary', 'created', 2, 'App\\Models\\User', 14, '{\"attributes\":{\"user_id\":14,\"branch_id\":4,\"sale_date\":null,\"sales_amount\":null,\"notes\":\"Notes\"}}', NULL, '2026-03-18 05:48:55', '2026-03-18 05:48:55'),
(131, 'category', 'Daily Sale has been created', 'App\\Models\\HraExpense', 'created', 1, 'App\\Models\\User', 3, '{\"attributes\":{\"user_id\":3,\"branch_id\":4,\"sale_date\":null,\"sales_amount\":null,\"notes\":null}}', NULL, '2026-03-19 03:31:14', '2026-03-19 03:31:14'),
(132, 'category', 'Daily Sale has been created', 'App\\Models\\HraExpense', 'created', 2, 'App\\Models\\User', 3, '{\"attributes\":{\"user_id\":3,\"branch_id\":1,\"sale_date\":null,\"sales_amount\":null,\"notes\":null}}', NULL, '2026-03-19 03:38:26', '2026-03-19 03:38:26'),
(133, 'category', 'Daily Sale has been deleted', 'App\\Models\\HraExpense', 'deleted', 2, 'App\\Models\\User', 3, '{\"old\":{\"user_id\":3,\"branch_id\":1,\"sale_date\":null,\"sales_amount\":null,\"notes\":null}}', NULL, '2026-03-19 03:38:51', '2026-03-19 03:38:51'),
(134, 'category', 'Daily Sale has been created', 'App\\Models\\HraExpense', 'created', 3, 'App\\Models\\User', 3, '{\"attributes\":{\"user_id\":3,\"branch_id\":1,\"sale_date\":null,\"sales_amount\":null,\"notes\":null}}', NULL, '2026-03-19 03:39:00', '2026-03-19 03:39:00'),
(135, 'category', 'Daily Sale has been created', 'App\\Models\\HraExpense', 'created', 4, 'App\\Models\\User', 3, '{\"attributes\":{\"user_id\":3,\"branch_id\":1,\"sale_date\":null,\"sales_amount\":null,\"notes\":null}}', NULL, '2026-03-19 03:39:18', '2026-03-19 03:39:18'),
(136, 'category', 'Daily Sale has been updated', 'App\\Models\\HraExpense', 'updated', 3, 'App\\Models\\User', 3, '{\"attributes\":[],\"old\":[]}', NULL, '2026-03-19 03:39:47', '2026-03-19 03:39:47'),
(137, 'category', 'Daily Sale has been updated', 'App\\Models\\HraExpense', 'updated', 3, 'App\\Models\\User', 15, '{\"attributes\":[],\"old\":[]}', NULL, '2026-03-19 04:04:11', '2026-03-19 04:04:11'),
(138, 'category', 'Daily Sale has been created', 'App\\Models\\FoodCost', 'created', 1, 'App\\Models\\User', 3, '{\"attributes\":{\"user_id\":3,\"branch_id\":4,\"sale_date\":null,\"sales_amount\":null,\"notes\":null}}', NULL, '2026-03-19 06:10:24', '2026-03-19 06:10:24'),
(139, 'category', 'Daily Sale has been created', 'App\\Models\\FoodCost', 'created', 2, 'App\\Models\\User', 3, '{\"attributes\":{\"user_id\":3,\"branch_id\":1,\"sale_date\":null,\"sales_amount\":null,\"notes\":null}}', NULL, '2026-03-19 06:11:27', '2026-03-19 06:11:27'),
(140, 'category', 'Daily Sale has been created', 'App\\Models\\FoodCost', 'created', 3, 'App\\Models\\User', 3, '{\"attributes\":{\"user_id\":3,\"branch_id\":1,\"sale_date\":null,\"sales_amount\":null,\"notes\":null}}', NULL, '2026-03-19 06:12:45', '2026-03-19 06:12:45'),
(141, 'Rental Expense', 'Rental Expense has been created', 'App\\Models\\RentalExpense', 'created', 1, 'App\\Models\\User', 3, '{\"attributes\":{\"branch_id\":1,\"user_id\":3,\"partner_id\":13,\"month_year\":\"2026-03\",\"amount\":\"10.00\"}}', NULL, '2026-03-20 02:14:15', '2026-03-20 02:14:15');

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

--
-- Table structure for table `branches`
--

CREATE TABLE `branches` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `branch_code` varchar(255) DEFAULT NULL,
  `branch_name` varchar(255) DEFAULT NULL,
  `address_line_1` text DEFAULT NULL,
  `address_line_2` text DEFAULT NULL,
  `city` varchar(255) DEFAULT NULL,
  `state` varchar(255) DEFAULT NULL,
  `postal_code` varchar(255) DEFAULT NULL,
  `country` varchar(255) DEFAULT NULL,
  `contact_number` varchar(255) DEFAULT NULL,
  `email` varchar(255) DEFAULT NULL,
  `gst_number` varchar(255) DEFAULT NULL,
  `status` varchar(255) DEFAULT 'active',
  `opening_date` date DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `branches`
--

INSERT INTO `branches` (`id`, `branch_code`, `branch_name`, `address_line_1`, `address_line_2`, `city`, `state`, `postal_code`, `country`, `contact_number`, `email`, `gst_number`, `status`, `opening_date`, `created_at`, `updated_at`) VALUES
(1, '00002', 'DHA Phase 6', 'DHA Phase 6', 'DHA Phase 6', 'karachi', 'sindh', '68100', 'Ut ad ipsum commodo', '600', 'wuqesa@mailinator.com', '473', 'active', '1994-06-07', '2026-03-13 03:06:14', '2026-03-18 02:03:50'),
(4, '00001', 'DHA Phase 5', '17 East Nobel Court', 'Totam sunt quidem qu', 'Karachi', 'Sindh', '68100', 'Proident nihil face', '295', 'cazuvu@mailinator.com', '33', 'active', '1989-10-05', '2026-03-18 01:07:37', '2026-03-18 02:03:14');

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

--
-- Table structure for table `branch_investments`
--

CREATE TABLE `branch_investments` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `branch_id` bigint(20) UNSIGNED NOT NULL,
  `investment_date` date DEFAULT NULL,
  `investment_type` varchar(255) DEFAULT NULL,
  `amount` varchar(255) DEFAULT NULL,
  `source_of_funds` varchar(255) DEFAULT NULL,
  `description` text DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `branch_investments`
--

INSERT INTO `branch_investments` (`id`, `branch_id`, `investment_date`, `investment_type`, `amount`, `source_of_funds`, `description`, `created_at`, `updated_at`) VALUES
(5, 4, '2026-03-18', 'real_estate', '1000000', 'Real Estate', 'Dha Investement', '2026-03-18 02:06:30', '2026-03-18 02:06:30');

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

--
-- Table structure for table `branch_partners`
--

CREATE TABLE `branch_partners` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `branch_id` bigint(20) UNSIGNED NOT NULL,
  `partner_id` bigint(20) UNSIGNED NOT NULL,
  `equity_percentage` decimal(10,2) NOT NULL,
  `effective_date` date NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `branch_partners`
--

INSERT INTO `branch_partners` (`id`, `branch_id`, `partner_id`, `equity_percentage`, `effective_date`, `created_at`, `updated_at`) VALUES
(7, 4, 12, 40.00, '2026-03-18', '2026-03-18 02:18:48', '2026-03-18 02:18:48'),
(8, 1, 13, 30.00, '2026-03-18', '2026-03-18 04:44:57', '2026-03-18 04:44:57');

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

--
-- Table structure for table `cache`
--

CREATE TABLE `cache` (
  `key` varchar(255) NOT NULL,
  `value` mediumtext NOT NULL,
  `expiration` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `cache`
--

INSERT INTO `cache` (`key`, `value`, `expiration`) VALUES
('laravel-cache-admin@admin.com|::1', 'i:1;', 1761030088),
('laravel-cache-admin@admin.com|::1:timer', 'i:1761030088;', 1761030088),
('laravel-cache-sadsad@gmail.com|::1', 'i:1;', 1773995342),
('laravel-cache-sadsad@gmail.com|::1:timer', 'i:1773995342;', 1773995342),
('laravel-cache-spatie.permission.cache', 'a:3:{s:5:\"alias\";a:4:{s:1:\"a\";s:2:\"id\";s:1:\"b\";s:4:\"name\";s:1:\"c\";s:10:\"guard_name\";s:1:\"r\";s:5:\"roles\";}s:11:\"permissions\";a:57:{i:0;a:4:{s:1:\"a\";i:6;s:1:\"b\";s:15:\"permission-list\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:1:{i:0;i:4;}}i:1;a:4:{s:1:\"a\";i:7;s:1:\"b\";s:17:\"permission-create\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:1:{i:0;i:4;}}i:2;a:4:{s:1:\"a\";i:8;s:1:\"b\";s:15:\"permission-edit\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:1:{i:0;i:4;}}i:3;a:4:{s:1:\"a\";i:9;s:1:\"b\";s:17:\"permission-delete\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:1:{i:0;i:4;}}i:4;a:4:{s:1:\"a\";i:10;s:1:\"b\";s:9:\"role-list\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:1:{i:0;i:4;}}i:5;a:4:{s:1:\"a\";i:11;s:1:\"b\";s:11:\"role-create\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:1:{i:0;i:4;}}i:6;a:4:{s:1:\"a\";i:12;s:1:\"b\";s:9:\"role-edit\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:1:{i:0;i:4;}}i:7;a:4:{s:1:\"a\";i:13;s:1:\"b\";s:11:\"role-delete\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:1:{i:0;i:4;}}i:8;a:4:{s:1:\"a\";i:14;s:1:\"b\";s:9:\"user-list\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:1:{i:0;i:4;}}i:9;a:4:{s:1:\"a\";i:15;s:1:\"b\";s:11:\"user-create\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:1:{i:0;i:4;}}i:10;a:4:{s:1:\"a\";i:16;s:1:\"b\";s:9:\"user-edit\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:1:{i:0;i:4;}}i:11;a:4:{s:1:\"a\";i:17;s:1:\"b\";s:11:\"user-delete\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:1:{i:0;i:4;}}i:12;a:4:{s:1:\"a\";i:18;s:1:\"b\";s:11:\"branch-list\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:1:{i:0;i:4;}}i:13;a:4:{s:1:\"a\";i:19;s:1:\"b\";s:13:\"branch-create\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:1:{i:0;i:4;}}i:14;a:4:{s:1:\"a\";i:20;s:1:\"b\";s:11:\"branch-edit\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:1:{i:0;i:4;}}i:15;a:4:{s:1:\"a\";i:21;s:1:\"b\";s:13:\"branch-delete\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:1:{i:0;i:4;}}i:16;a:4:{s:1:\"a\";i:30;s:1:\"b\";s:9:\"dashboard\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:2:{i:0;i:4;i:1;i:9;}}i:17;a:4:{s:1:\"a\";i:35;s:1:\"b\";s:22:\"branch-investment-list\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:1:{i:0;i:4;}}i:18;a:4:{s:1:\"a\";i:36;s:1:\"b\";s:24:\"branch-investment-create\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:1:{i:0;i:4;}}i:19;a:4:{s:1:\"a\";i:37;s:1:\"b\";s:22:\"branch-investment-edit\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:1:{i:0;i:4;}}i:20;a:4:{s:1:\"a\";i:38;s:1:\"b\";s:24:\"branch-investment-delete\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:1:{i:0;i:4;}}i:21;a:4:{s:1:\"a\";i:39;s:1:\"b\";s:12:\"partner-list\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:1:{i:0;i:4;}}i:22;a:4:{s:1:\"a\";i:40;s:1:\"b\";s:14:\"partner-create\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:1:{i:0;i:4;}}i:23;a:4:{s:1:\"a\";i:41;s:1:\"b\";s:12:\"partner-edit\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:1:{i:0;i:4;}}i:24;a:4:{s:1:\"a\";i:42;s:1:\"b\";s:14:\"partner-delete\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:1:{i:0;i:4;}}i:25;a:4:{s:1:\"a\";i:43;s:1:\"b\";s:9:\"team-list\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:1:{i:0;i:4;}}i:26;a:4:{s:1:\"a\";i:44;s:1:\"b\";s:11:\"team-create\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:1:{i:0;i:4;}}i:27;a:4:{s:1:\"a\";i:45;s:1:\"b\";s:9:\"team-edit\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:1:{i:0;i:4;}}i:28;a:4:{s:1:\"a\";i:46;s:1:\"b\";s:11:\"team-delete\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:1:{i:0;i:4;}}i:29;a:4:{s:1:\"a\";i:47;s:1:\"b\";s:19:\"branch-partner-list\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:1:{i:0;i:4;}}i:30;a:4:{s:1:\"a\";i:48;s:1:\"b\";s:21:\"branch-partner-create\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:1:{i:0;i:4;}}i:31;a:4:{s:1:\"a\";i:49;s:1:\"b\";s:19:\"branch-partner-edit\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:1:{i:0;i:4;}}i:32;a:4:{s:1:\"a\";i:50;s:1:\"b\";s:21:\"branch-partner-delete\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:1:{i:0;i:4;}}i:33;a:4:{s:1:\"a\";i:51;s:1:\"b\";s:15:\"daily-sale-list\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:2:{i:0;i:4;i:1;i:9;}}i:34;a:4:{s:1:\"a\";i:52;s:1:\"b\";s:17:\"daily-sale-create\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:2:{i:0;i:4;i:1;i:9;}}i:35;a:4:{s:1:\"a\";i:53;s:1:\"b\";s:15:\"daily-sale-edit\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:2:{i:0;i:4;i:1;i:9;}}i:36;a:4:{s:1:\"a\";i:54;s:1:\"b\";s:17:\"daily-sale-delete\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:2:{i:0;i:4;i:1;i:9;}}i:37;a:4:{s:1:\"a\";i:55;s:1:\"b\";s:16:\"staff-count-list\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:2:{i:0;i:4;i:1;i:9;}}i:38;a:4:{s:1:\"a\";i:56;s:1:\"b\";s:18:\"staff-count-create\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:2:{i:0;i:4;i:1;i:9;}}i:39;a:4:{s:1:\"a\";i:57;s:1:\"b\";s:16:\"staff-count-edit\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:2:{i:0;i:4;i:1;i:9;}}i:40;a:4:{s:1:\"a\";i:58;s:1:\"b\";s:18:\"staff-count-delete\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:2:{i:0;i:4;i:1;i:9;}}i:41;a:4:{s:1:\"a\";i:59;s:1:\"b\";s:11:\"salary-list\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:2:{i:0;i:4;i:1;i:9;}}i:42;a:4:{s:1:\"a\";i:60;s:1:\"b\";s:13:\"salary-create\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:2:{i:0;i:4;i:1;i:9;}}i:43;a:4:{s:1:\"a\";i:61;s:1:\"b\";s:11:\"salary-edit\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:2:{i:0;i:4;i:1;i:9;}}i:44;a:4:{s:1:\"a\";i:62;s:1:\"b\";s:13:\"salary-delete\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:2:{i:0;i:4;i:1;i:9;}}i:45;a:4:{s:1:\"a\";i:63;s:1:\"b\";s:16:\"hra-expense-list\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:2:{i:0;i:4;i:1;i:9;}}i:46;a:4:{s:1:\"a\";i:64;s:1:\"b\";s:18:\"hra-expense-create\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:2:{i:0;i:4;i:1;i:9;}}i:47;a:4:{s:1:\"a\";i:65;s:1:\"b\";s:16:\"hra-expense-edit\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:2:{i:0;i:4;i:1;i:9;}}i:48;a:4:{s:1:\"a\";i:66;s:1:\"b\";s:18:\"hra-expense-delete\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:2:{i:0;i:4;i:1;i:9;}}i:49;a:4:{s:1:\"a\";i:67;s:1:\"b\";s:14:\"food-cost-list\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:2:{i:0;i:4;i:1;i:9;}}i:50;a:4:{s:1:\"a\";i:68;s:1:\"b\";s:16:\"food-cost-create\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:2:{i:0;i:4;i:1;i:9;}}i:51;a:4:{s:1:\"a\";i:69;s:1:\"b\";s:14:\"food-cost-edit\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:2:{i:0;i:4;i:1;i:9;}}i:52;a:4:{s:1:\"a\";i:70;s:1:\"b\";s:16:\"food-cost-delete\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:2:{i:0;i:4;i:1;i:9;}}i:53;a:4:{s:1:\"a\";i:71;s:1:\"b\";s:19:\"rental-expense-list\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:2:{i:0;i:4;i:1;i:9;}}i:54;a:4:{s:1:\"a\";i:72;s:1:\"b\";s:21:\"rental-expense-create\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:2:{i:0;i:4;i:1;i:9;}}i:55;a:4:{s:1:\"a\";i:73;s:1:\"b\";s:19:\"rental-expense-edit\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:2:{i:0;i:4;i:1;i:9;}}i:56;a:4:{s:1:\"a\";i:74;s:1:\"b\";s:21:\"rental-expense-delete\";s:1:\"c\";s:3:\"web\";s:1:\"r\";a:2:{i:0;i:4;i:1;i:9;}}}s:5:\"roles\";a:2:{i:0;a:3:{s:1:\"a\";i:4;s:1:\"b\";s:10:\"superadmin\";s:1:\"c\";s:3:\"web\";}i:1;a:3:{s:1:\"a\";i:9;s:1:\"b\";s:7:\"partner\";s:1:\"c\";s:3:\"web\";}}}', 1774076322),
('laravel-cache-superadmin@master.com|::1', 'i:1;', 1773384880),
('laravel-cache-superadmin@master.com|::1:timer', 'i:1773384880;', 1773384880),
('laravel-cache-xevejysos@mailinator.com|::1', 'i:2;', 1773735901),
('laravel-cache-xevejysos@mailinator.com|::1:timer', 'i:1773735901;', 1773735901);

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

--
-- Table structure for table `cache_locks`
--

CREATE TABLE `cache_locks` (
  `key` varchar(255) NOT NULL,
  `owner` varchar(255) NOT NULL,
  `expiration` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `cache_locks`
--

INSERT INTO `cache_locks` (`key`, `owner`, `expiration`) VALUES
('laravel-cache-framework/schedule-04497aedfa2daafa86d26f47953dc7928a7a7aa0', 'g0fWWBEBjNfuZUcz', 1757778840),
('laravel-cache-framework/schedule-99c9f3eb0454a8a9d580addcef20541abb61a996', 'QfZyjwKc6bnK1nKq', 1757754181);

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

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

CREATE TABLE `categories` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) NOT NULL,
  `image` varchar(255) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `categories` (`id`, `name`, `image`, `created_at`, `updated_at`) VALUES
(3, 'test', 'uploads/categories/1761641862_69008586e5bfc.PNG', '2025-10-28 03:57:42', '2025-10-28 03:57:42');

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

--
-- Table structure for table `complaints`
--

CREATE TABLE `complaints` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) DEFAULT NULL,
  `email` varchar(255) DEFAULT NULL,
  `phone` varchar(255) DEFAULT NULL,
  `address` varchar(255) DEFAULT NULL,
  `product_id` bigint(20) UNSIGNED NOT NULL,
  `date` date DEFAULT NULL,
  `complain_id` longtext NOT NULL,
  `status` varchar(255) DEFAULT NULL,
  `description` longtext DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `created_by` bigint(20) UNSIGNED DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `complaints`
--

INSERT INTO `complaints` (`id`, `name`, `email`, `phone`, `address`, `product_id`, `date`, `complain_id`, `status`, `description`, `created_at`, `updated_at`, `created_by`) VALUES
(3, 'fsdf', 'sdfsdf@gmail.com', '4543543543', 'gsfgfsg', 2, '2025-10-21', 'CMP-69009E02CF73C', 'Pending', 'dsdsds', '2025-10-28 05:42:10', '2025-10-28 05:57:08', 3),
(4, 'fdfsdf', 'fsdfds@sdjsc.om', '324234324', 'sadsadasdsa', 2, '2025-10-28', 'CMP-6900A00C6039F', 'Resolved', 'dsdsdsdsd', '2025-10-28 05:50:52', '2025-10-29 06:19:05', 3),
(5, 'test', 'test@test.ciom', '423423432434', 'abc', 2, '2025-10-28', 'CMP-6900B3C497AD0', 'Pending', NULL, '2025-10-28 07:15:00', '2025-10-28 07:15:00', 3),
(6, 'New Create Complaint', 'complaint@gmail.com', '488765467878', 'dsdsd', 3, '2025-10-29', 'CMP-6901C640ED118', 'Pending', NULL, '2025-10-29 02:46:08', '2025-10-29 02:46:08', 3),
(7, 'New Complaint', 'new@complaint.com', '423434234234', 'gfdg', 3, '2025-10-29', 'CMP-6901C75BB6866', 'Pending', NULL, '2025-10-29 02:50:51', '2025-10-29 02:50:51', NULL);

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

--
-- Table structure for table `complaint_assigns`
--

CREATE TABLE `complaint_assigns` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `assigned_by` bigint(20) DEFAULT NULL,
  `complaint_id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `complaint_charges`
--

CREATE TABLE `complaint_charges` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `complaint_id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `text` text DEFAULT NULL,
  `charges` decimal(10,2) NOT NULL DEFAULT 0.00,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `complaint_charges`
--

INSERT INTO `complaint_charges` (`id`, `complaint_id`, `user_id`, `text`, `charges`, `created_at`, `updated_at`) VALUES
(2, 4, 3, 'charge', 10.00, '2025-10-29 06:11:19', '2025-10-29 06:11:19'),
(3, 4, 3, 'dsd', 12.01, '2025-10-29 06:11:58', '2025-10-29 06:11:58');

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

--
-- Table structure for table `complaint_comments`
--

CREATE TABLE `complaint_comments` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `complaint_id` bigint(20) UNSIGNED DEFAULT NULL,
  `user_id` bigint(20) UNSIGNED DEFAULT NULL,
  `text` longtext DEFAULT NULL,
  `date` date DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `complaint_comments`
--

INSERT INTO `complaint_comments` (`id`, `complaint_id`, `user_id`, `text`, `date`, `created_at`, `updated_at`) VALUES
(1, 4, 3, 'hello', NULL, '2025-10-29 04:14:13', '2025-10-29 04:14:13'),
(2, 4, 3, 'test', NULL, '2025-10-29 04:14:41', '2025-10-29 04:14:41'),
(3, 4, 3, 'dsd', NULL, '2025-10-29 04:15:19', '2025-10-29 04:15:19'),
(4, 4, 3, 'dsff', NULL, '2025-10-29 04:16:37', '2025-10-29 04:16:37'),
(5, 4, 3, 'fdsfsd', '2025-10-29', '2025-10-29 04:18:07', '2025-10-29 04:18:07');

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

--
-- Table structure for table `daily_sales`
--

CREATE TABLE `daily_sales` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `partner_id` bigint(20) DEFAULT NULL,
  `user_id` bigint(20) UNSIGNED DEFAULT NULL,
  `branch_id` bigint(20) UNSIGNED DEFAULT NULL,
  `sale_date` date DEFAULT NULL,
  `sales_amount` decimal(15,2) DEFAULT NULL,
  `notes` text DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `daily_sales`
--

INSERT INTO `daily_sales` (`id`, `partner_id`, `user_id`, `branch_id`, `sale_date`, `sales_amount`, `notes`, `created_at`, `updated_at`) VALUES
(2, 12, 14, 4, '2026-03-18', 25000.00, NULL, '2026-03-18 03:14:52', '2026-03-18 03:14:52'),
(3, 13, 3, 1, '2026-03-18', 1000.00, NULL, '2026-03-18 05:05:13', '2026-03-18 05:05:13');

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

--
-- Table structure for table `failed_jobs`
--

CREATE TABLE `failed_jobs` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `uuid` varchar(255) NOT NULL,
  `connection` text NOT NULL,
  `queue` text NOT NULL,
  `payload` longtext NOT NULL,
  `exception` longtext NOT NULL,
  `failed_at` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `food_costs`
--

CREATE TABLE `food_costs` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `branch_id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `partner_id` bigint(20) UNSIGNED NOT NULL,
  `month_year` varchar(255) DEFAULT NULL,
  `food_cost_percentage` decimal(8,2) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `food_costs`
--

INSERT INTO `food_costs` (`id`, `branch_id`, `user_id`, `partner_id`, `month_year`, `food_cost_percentage`, `created_at`, `updated_at`) VALUES
(1, 4, 3, 12, '2026-03', 10.00, '2026-03-19 06:10:24', '2026-03-19 06:10:24'),
(2, 1, 3, 13, '2026-03', 29.00, '2026-03-19 06:11:27', '2026-03-19 06:11:27'),
(3, 1, 3, 13, '2026-03', 35.00, '2026-03-19 06:12:45', '2026-03-19 06:12:45');

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

--
-- Table structure for table `hra_expenses`
--

CREATE TABLE `hra_expenses` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `branch_id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `partner_id` bigint(20) UNSIGNED NOT NULL,
  `expense_month` varchar(255) DEFAULT NULL,
  `hra_amount` decimal(8,2) DEFAULT NULL,
  `description` text DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `hra_expenses`
--

INSERT INTO `hra_expenses` (`id`, `branch_id`, `user_id`, `partner_id`, `expense_month`, `hra_amount`, `description`, `created_at`, `updated_at`) VALUES
(1, 4, 3, 12, '2026-03', 100.00, 'Description', '2026-03-19 03:31:13', '2026-03-19 03:31:13'),
(3, 1, 3, 13, '2026-03', 350.00, 'Description Description', '2026-03-19 03:39:00', '2026-03-19 04:04:11'),
(4, 1, 3, 13, '2026-03', 100.00, 'Description', '2026-03-19 03:39:18', '2026-03-19 03:39:18');

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

--
-- Table structure for table `jobs`
--

CREATE TABLE `jobs` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `queue` varchar(255) NOT NULL,
  `payload` longtext NOT NULL,
  `attempts` tinyint(3) UNSIGNED NOT NULL,
  `reserved_at` int(10) UNSIGNED DEFAULT NULL,
  `available_at` int(10) UNSIGNED NOT NULL,
  `created_at` int(10) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

--
-- Table structure for table `job_batches`
--

CREATE TABLE `job_batches` (
  `id` varchar(255) NOT NULL,
  `name` varchar(255) NOT NULL,
  `total_jobs` int(11) NOT NULL,
  `pending_jobs` int(11) NOT NULL,
  `failed_jobs` int(11) NOT NULL,
  `failed_job_ids` longtext NOT NULL,
  `options` mediumtext DEFAULT NULL,
  `cancelled_at` int(11) DEFAULT NULL,
  `created_at` int(11) NOT NULL,
  `finished_at` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

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

CREATE TABLE `migrations` (
  `id` int(10) UNSIGNED NOT NULL,
  `migration` varchar(255) NOT NULL,
  `batch` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
(1, '0001_01_01_000000_create_users_table', 1),
(2, '0001_01_01_000001_create_cache_table', 1),
(3, '0001_01_01_000002_create_jobs_table', 1),
(4, '2025_07_31_073222_create_personal_access_tokens_table', 1),
(5, '2025_07_31_074512_create_vins_table', 1),
(6, '2025_07_31_074544_create_vin_users_table', 1),
(7, '2025_07_31_074559_create_vin_payments_table', 1),
(8, '2025_07_31_075342_create_customer_columns', 1),
(9, '2025_07_31_075343_create_subscriptions_table', 1),
(10, '2025_07_31_075344_create_subscription_items_table', 1),
(11, '2025_07_31_082103_create_packages_table', 1),
(12, '2025_08_09_071727_create_uploads_table', 2),
(14, '2025_08_28_105240_create_permission_tables', 3),
(15, '2025_08_09_071727_create_upload_files_table', 4),
(16, '2025_08_25_112732_create_scraping_logs_table', 4),
(17, '2025_09_02_115600_create_upload_data_table', 4),
(18, '2025_09_11_114450_add_original_name_to_upload_files_table', 4),
(19, '2025_10_27_103204_create_activity_log_table', 4),
(20, '2025_10_27_103205_add_event_column_to_activity_log_table', 4),
(21, '2025_10_27_103206_add_batch_uuid_column_to_activity_log_table', 4),
(22, '2025_10_27_103707_add_categories_table', 5),
(23, '2025_10_27_123700_add_products_table', 6),
(24, '2025_10_28_095006_create_complaints_table', 7),
(25, '2025_10_28_141019_create_complaint_assigns_table', 8),
(26, '2025_10_29_074217_add_created_by_to_complaints_table', 9),
(27, '2025_10_29_090729_create_complaint_comments_table', 10),
(28, '2025_10_29_104854_create_complaint_charges_table', 11),
(29, '2026_03_13_071020_create_branches_table', 12),
(30, '2026_03_13_102247_create_branch_investments_table', 13),
(31, '2026_03_16_073943_create_partners_table', 14),
(32, '2026_03_16_091536_create_teams_table', 15),
(33, '2026_03_16_103029_create_branch_partners_table', 16),
(34, '2026_03_17_092940_create_daily_sales_table', 17),
(35, '2026_03_18_083728_create_staff_counts_table', 18),
(36, '2026_03_18_100808_create_salaries_table', 19),
(37, '2026_03_19_075149_create_hra_expenses_table', 20),
(38, '2026_03_19_091208_create_food_costs_table', 21),
(39, '2026_03_20_063130_create_rental_expenses_table', 22);

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

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

CREATE TABLE `model_has_permissions` (
  `permission_id` bigint(20) UNSIGNED NOT NULL,
  `model_type` varchar(255) NOT NULL,
  `model_id` bigint(20) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

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

CREATE TABLE `model_has_roles` (
  `role_id` bigint(20) UNSIGNED NOT NULL,
  `model_type` varchar(255) NOT NULL,
  `model_id` bigint(20) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `model_has_roles` (`role_id`, `model_type`, `model_id`) VALUES
(3, 'App\\Models\\User', 1),
(4, 'App\\Models\\User', 3),
(9, 'App\\Models\\User', 13),
(9, 'App\\Models\\User', 14),
(9, 'App\\Models\\User', 15);

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

--
-- Table structure for table `partners`
--

CREATE TABLE `partners` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `partner_code` varchar(255) DEFAULT NULL,
  `partner_type` varchar(255) DEFAULT NULL,
  `full_name` varchar(255) DEFAULT NULL,
  `company_name` varchar(255) DEFAULT NULL,
  `pan_card` varchar(255) DEFAULT NULL,
  `company_reg_no` varchar(255) DEFAULT NULL,
  `contact_number` varchar(255) DEFAULT NULL,
  `email` varchar(255) DEFAULT NULL,
  `address` text DEFAULT NULL,
  `bank_name` varchar(255) DEFAULT NULL,
  `bank_account_number` varchar(255) DEFAULT NULL,
  `ifsc_code` varchar(255) DEFAULT NULL,
  `status` varchar(255) DEFAULT 'Active',
  `join_date` date DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `partners`
--

INSERT INTO `partners` (`id`, `partner_code`, `partner_type`, `full_name`, `company_name`, `pan_card`, `company_reg_no`, `contact_number`, `email`, `address`, `bank_name`, `bank_account_number`, `ifsc_code`, `status`, `join_date`, `created_at`, `updated_at`) VALUES
(12, 'Pr-0001', 'Individual', 'Hasnain', NULL, '444581457984589', NULL, '12313213213', 'hasnain@gmail.com', 'dha phase 5', 'Meezan', '01212315145', '123', 'Active', '2026-03-18', '2026-03-18 02:08:28', '2026-03-18 02:08:28'),
(13, 'Pr-0002', 'Individual', 'Ahmed', NULL, '1231231', NULL, '45435', 'ahmed@gmail.com', 'dha phas 5', 'Jakeem Benjamin', '469', NULL, 'Active', '2026-03-18', '2026-03-18 02:09:34', '2026-03-18 02:09:34');

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

--
-- Table structure for table `password_reset_tokens`
--

CREATE TABLE `password_reset_tokens` (
  `email` varchar(255) NOT NULL,
  `token` varchar(255) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

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

CREATE TABLE `permissions` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) NOT NULL,
  `guard_name` varchar(255) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `permissions` (`id`, `name`, `guard_name`, `created_at`, `updated_at`) VALUES
(6, 'permission-list', 'web', '2025-08-29 03:07:41', '2025-08-29 03:07:41'),
(7, 'permission-create', 'web', '2025-08-29 03:07:53', '2025-08-29 03:07:53'),
(8, 'permission-edit', 'web', '2025-08-29 03:08:05', '2025-08-29 03:08:05'),
(9, 'permission-delete', 'web', '2025-08-29 03:08:16', '2025-08-29 03:08:16'),
(10, 'role-list', 'web', '2025-08-29 03:08:25', '2025-08-29 03:08:25'),
(11, 'role-create', 'web', '2025-08-29 03:08:34', '2025-08-29 03:08:34'),
(12, 'role-edit', 'web', '2025-08-29 03:08:43', '2025-08-29 03:08:43'),
(13, 'role-delete', 'web', '2025-08-29 03:08:58', '2025-08-29 03:08:58'),
(14, 'user-list', 'web', '2025-08-29 05:30:22', '2025-08-29 05:30:22'),
(15, 'user-create', 'web', '2025-08-29 05:30:38', '2025-08-29 05:30:38'),
(16, 'user-edit', 'web', '2025-08-29 05:30:54', '2025-08-29 05:30:54'),
(17, 'user-delete', 'web', '2025-08-29 05:31:21', '2025-08-29 05:31:21'),
(18, 'branch-list', 'web', '2025-10-27 05:41:22', '2026-03-13 02:32:51'),
(19, 'branch-create', 'web', '2025-10-27 05:41:41', '2026-03-13 02:32:54'),
(20, 'branch-edit', 'web', '2025-10-27 05:41:52', '2026-03-13 02:32:57'),
(21, 'branch-delete', 'web', '2025-10-27 05:41:59', '2026-03-13 02:32:59'),
(30, 'dashboard', 'web', '2025-10-28 08:03:32', '2025-10-28 08:03:32'),
(35, 'branch-investment-list', 'web', '2026-03-15 23:10:41', '2026-03-15 23:10:41'),
(36, 'branch-investment-create', 'web', '2026-03-15 23:10:53', '2026-03-15 23:10:53'),
(37, 'branch-investment-edit', 'web', '2026-03-15 23:11:02', '2026-03-15 23:11:02'),
(38, 'branch-investment-delete', 'web', '2026-03-15 23:11:09', '2026-03-15 23:11:09'),
(39, 'partner-list', 'web', '2026-03-16 02:46:01', '2026-03-16 02:46:01'),
(40, 'partner-create', 'web', '2026-03-16 02:46:13', '2026-03-16 02:46:13'),
(41, 'partner-edit', 'web', '2026-03-16 02:46:33', '2026-03-16 02:46:33'),
(42, 'partner-delete', 'web', '2026-03-16 02:46:59', '2026-03-16 02:46:59'),
(43, 'team-list', 'web', '2026-03-16 03:53:35', '2026-03-16 03:53:35'),
(44, 'team-create', 'web', '2026-03-16 03:53:52', '2026-03-16 03:53:52'),
(45, 'team-edit', 'web', '2026-03-16 03:54:46', '2026-03-16 03:54:46'),
(46, 'team-delete', 'web', '2026-03-16 03:54:58', '2026-03-16 03:54:58'),
(47, 'branch-partner-list', 'web', '2026-03-16 05:32:00', '2026-03-16 05:32:00'),
(48, 'branch-partner-create', 'web', '2026-03-16 05:33:09', '2026-03-16 05:33:09'),
(49, 'branch-partner-edit', 'web', '2026-03-16 05:33:18', '2026-03-16 05:33:18'),
(50, 'branch-partner-delete', 'web', '2026-03-16 05:33:29', '2026-03-16 05:33:29'),
(51, 'daily-sale-list', 'web', '2026-03-17 04:52:37', '2026-03-17 04:52:37'),
(52, 'daily-sale-create', 'web', '2026-03-17 04:52:45', '2026-03-17 04:52:45'),
(53, 'daily-sale-edit', 'web', '2026-03-17 04:52:54', '2026-03-17 04:52:54'),
(54, 'daily-sale-delete', 'web', '2026-03-17 04:53:02', '2026-03-17 04:53:02'),
(55, 'staff-count-list', 'web', '2026-03-18 03:31:50', '2026-03-18 03:31:50'),
(56, 'staff-count-create', 'web', '2026-03-18 03:32:11', '2026-03-18 03:32:11'),
(57, 'staff-count-edit', 'web', '2026-03-18 03:32:15', '2026-03-18 03:32:15'),
(58, 'staff-count-delete', 'web', '2026-03-18 03:32:57', '2026-03-18 03:32:57'),
(59, 'salary-list', 'web', '2026-03-18 05:43:11', '2026-03-18 05:43:11'),
(60, 'salary-create', 'web', '2026-03-18 05:43:17', '2026-03-18 05:43:17'),
(61, 'salary-edit', 'web', '2026-03-18 05:43:24', '2026-03-18 05:43:24'),
(62, 'salary-delete', 'web', '2026-03-18 05:43:33', '2026-03-18 05:43:33'),
(63, 'hra-expense-list', 'web', '2026-03-19 03:19:50', '2026-03-19 03:19:50'),
(64, 'hra-expense-create', 'web', '2026-03-19 03:19:53', '2026-03-19 03:19:53'),
(65, 'hra-expense-edit', 'web', '2026-03-19 03:20:02', '2026-03-19 03:20:02'),
(66, 'hra-expense-delete', 'web', '2026-03-19 03:20:09', '2026-03-19 03:20:09'),
(67, 'food-cost-list', 'web', '2026-03-19 06:08:07', '2026-03-19 06:08:07'),
(68, 'food-cost-create', 'web', '2026-03-19 06:08:10', '2026-03-19 06:08:10'),
(69, 'food-cost-edit', 'web', '2026-03-19 06:08:16', '2026-03-19 06:08:16'),
(70, 'food-cost-delete', 'web', '2026-03-19 06:08:23', '2026-03-19 06:08:23'),
(71, 'rental-expense-list', 'web', '2026-03-20 01:51:59', '2026-03-20 01:51:59'),
(72, 'rental-expense-create', 'web', '2026-03-20 01:52:08', '2026-03-20 01:52:08'),
(73, 'rental-expense-edit', 'web', '2026-03-20 01:52:15', '2026-03-20 01:52:15'),
(74, 'rental-expense-delete', 'web', '2026-03-20 01:52:31', '2026-03-20 01:52:31');

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

--
-- Table structure for table `personal_access_tokens`
--

CREATE TABLE `personal_access_tokens` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `tokenable_type` varchar(255) NOT NULL,
  `tokenable_id` bigint(20) UNSIGNED NOT NULL,
  `name` text NOT NULL,
  `token` varchar(64) NOT NULL,
  `abilities` text DEFAULT NULL,
  `last_used_at` timestamp NULL DEFAULT NULL,
  `expires_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

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

CREATE TABLE `products` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) NOT NULL,
  `category_id` int(10) UNSIGNED DEFAULT NULL,
  `image` varchar(255) DEFAULT NULL,
  `status` varchar(255) DEFAULT NULL,
  `description` longtext DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `products` (`id`, `name`, `category_id`, `image`, `status`, `description`, `created_at`, `updated_at`) VALUES
(2, 'test Product', 3, 'uploads/products/1761641884_6900859ca4337.PNG', 'active', 'Description (optional)', '2025-10-28 03:58:04', '2025-10-28 03:58:04'),
(3, 'Product', 3, 'uploads/products/1761723147_6901c30b1734d.PNG', 'active', 'Description', '2025-10-29 02:32:27', '2025-10-29 02:32:27');

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

--
-- Table structure for table `rental_expenses`
--

CREATE TABLE `rental_expenses` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `branch_id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `partner_id` bigint(20) UNSIGNED NOT NULL,
  `month_year` varchar(7) DEFAULT NULL,
  `amount` decimal(10,2) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `rental_expenses`
--

INSERT INTO `rental_expenses` (`id`, `branch_id`, `user_id`, `partner_id`, `month_year`, `amount`, `created_at`, `updated_at`) VALUES
(1, 1, 3, 13, '2026-03', 10.00, '2026-03-20 02:14:15', '2026-03-20 02:14:15');

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

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

CREATE TABLE `roles` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) NOT NULL,
  `guard_name` varchar(255) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `roles` (`id`, `name`, `guard_name`, `created_at`, `updated_at`) VALUES
(3, 'admin', 'web', '2025-08-29 03:21:28', '2025-08-29 03:21:28'),
(4, 'superadmin', 'web', '2025-08-29 04:16:10', '2025-08-29 04:16:10'),
(9, 'partner', 'web', '2026-03-17 00:29:05', '2026-03-17 00:29:05');

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

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

CREATE TABLE `role_has_permissions` (
  `permission_id` bigint(20) UNSIGNED NOT NULL,
  `role_id` bigint(20) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `role_has_permissions` (`permission_id`, `role_id`) VALUES
(6, 4),
(7, 4),
(8, 4),
(9, 4),
(10, 4),
(11, 4),
(12, 4),
(13, 4),
(14, 4),
(15, 4),
(16, 4),
(17, 4),
(18, 4),
(19, 4),
(20, 4),
(21, 4),
(30, 4),
(30, 9),
(35, 4),
(36, 4),
(37, 4),
(38, 4),
(39, 4),
(40, 4),
(41, 4),
(42, 4),
(43, 4),
(44, 4),
(45, 4),
(46, 4),
(47, 4),
(48, 4),
(49, 4),
(50, 4),
(51, 4),
(51, 9),
(52, 4),
(52, 9),
(53, 4),
(53, 9),
(54, 4),
(54, 9),
(55, 4),
(55, 9),
(56, 4),
(56, 9),
(57, 4),
(57, 9),
(58, 4),
(58, 9),
(59, 4),
(59, 9),
(60, 4),
(60, 9),
(61, 4),
(61, 9),
(62, 4),
(62, 9),
(63, 4),
(63, 9),
(64, 4),
(64, 9),
(65, 4),
(65, 9),
(66, 4),
(66, 9),
(67, 4),
(67, 9),
(68, 4),
(68, 9),
(69, 4),
(69, 9),
(70, 4),
(70, 9),
(71, 4),
(71, 9),
(72, 4),
(72, 9),
(73, 4),
(73, 9),
(74, 4),
(74, 9);

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

--
-- Table structure for table `salaries`
--

CREATE TABLE `salaries` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `branch_id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `partner_id` bigint(20) UNSIGNED NOT NULL,
  `month_year` varchar(255) DEFAULT NULL,
  `total_salary_amount` decimal(15,2) DEFAULT NULL,
  `notes` text DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `salaries`
--

INSERT INTO `salaries` (`id`, `branch_id`, `user_id`, `partner_id`, `month_year`, `total_salary_amount`, `notes`, `created_at`, `updated_at`) VALUES
(1, 1, 3, 13, '2026-03', 100.00, 'Notes', '2026-03-18 05:48:13', '2026-03-18 05:48:13'),
(2, 4, 14, 12, '2026-03', 1200.00, 'Notes', '2026-03-18 05:48:55', '2026-03-18 05:48:55');

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

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

CREATE TABLE `sessions` (
  `id` varchar(255) NOT NULL,
  `user_id` bigint(20) UNSIGNED DEFAULT NULL,
  `ip_address` varchar(45) DEFAULT NULL,
  `user_agent` text DEFAULT NULL,
  `payload` longtext NOT NULL,
  `last_activity` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `sessions`
--

INSERT INTO `sessions` (`id`, `user_id`, `ip_address`, `user_agent`, `payload`, `last_activity`) VALUES
('camIL8ZvUMDlLWTvqH2gI1D267t0UvMjWxAjqFxr', 3, '::1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36', 'YTo0OntzOjY6Il90b2tlbiI7czo0MDoiYk1PWU40a1p0azFjb1dKOXBDbFlTaVl5RGpBRzJTcjMxSDNtRm9UOCI7czo2OiJfZmxhc2giO2E6Mjp7czozOiJvbGQiO2E6MDp7fXM6MzoibmV3IjthOjA6e319czo5OiJfcHJldmlvdXMiO2E6MTp7czozOiJ1cmwiO3M6NDA6Imh0dHA6Ly9sb2NhbGhvc3QvbW1zL3B1YmxpYy91c2Vycy9jcmVhdGUiO31zOjUwOiJsb2dpbl93ZWJfNTliYTM2YWRkYzJiMmY5NDAxNTgwZjAxNGM3ZjU4ZWE0ZTMwOTg5ZCI7aTozO30=', 1774009626),
('gsRYQGTTQu7OoiAQKtBsOBaXOXt3iUbOmhVFXfvJ', 15, '::1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36', 'YTo1OntzOjY6Il90b2tlbiI7czo0MDoiblowNWhWMDNsUHlyQmM5NUo2RHQ0aWNhaTZuc2VvMjV1RTIxY2djNyI7czozOiJ1cmwiO2E6MDp7fXM6OToiX3ByZXZpb3VzIjthOjE6e3M6MzoidXJsIjtzOjM3OiJodHRwOi8vbG9jYWxob3N0L21tcy9wdWJsaWMvZGFzaGJvYXJkIjt9czo2OiJfZmxhc2giO2E6Mjp7czozOiJvbGQiO2E6MDp7fXM6MzoibmV3IjthOjA6e319czo1MDoibG9naW5fd2ViXzU5YmEzNmFkZGMyYjJmOTQwMTU4MGYwMTRjN2Y1OGVhNGUzMDk4OWQiO2k6MTU7fQ==', 1774006857);

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

--
-- Table structure for table `staff_counts`
--

CREATE TABLE `staff_counts` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `branch_id` bigint(20) UNSIGNED NOT NULL,
  `user_id` bigint(20) UNSIGNED NOT NULL,
  `partner_id` bigint(20) UNSIGNED NOT NULL,
  `entry_date` date DEFAULT NULL,
  `total_staff_count` varchar(255) DEFAULT NULL,
  `managers_count` varchar(255) DEFAULT NULL,
  `kitchen_staff_count` varchar(255) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `staff_counts`
--

INSERT INTO `staff_counts` (`id`, `branch_id`, `user_id`, `partner_id`, `entry_date`, `total_staff_count`, `managers_count`, `kitchen_staff_count`, `created_at`, `updated_at`) VALUES
(4, 4, 14, 12, '2026-03-18', '4', '2', '2', '2026-03-18 04:42:00', '2026-03-18 04:42:00'),
(5, 4, 3, 12, '2026-03-18', '2', '1', '1', '2026-03-18 04:42:20', '2026-03-18 04:42:20'),
(6, 1, 3, 13, '2026-03-18', '10', '5', '5', '2026-03-18 04:45:16', '2026-03-18 04:45:16');

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

--
-- Table structure for table `teams`
--

CREATE TABLE `teams` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `member_code` varchar(50) DEFAULT NULL,
  `first_name` varchar(100) DEFAULT NULL,
  `last_name` varchar(100) DEFAULT NULL,
  `designation` varchar(100) DEFAULT NULL,
  `department` varchar(100) DEFAULT NULL,
  `email` varchar(255) NOT NULL,
  `phone` varchar(20) DEFAULT NULL,
  `join_date` date DEFAULT NULL,
  `status` varchar(255) DEFAULT 'Active',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `teams`
--

INSERT INTO `teams` (`id`, `member_code`, `first_name`, `last_name`, `designation`, `department`, `email`, `phone`, `join_date`, `status`, `created_at`, `updated_at`) VALUES
(4, 'Emp-0001', 'Hammad', 'Hussain', 'wp', 'it', 'Hammad@gmail.com', '123123123', '2026-03-18', 'Active', '2026-03-18 02:10:44', '2026-03-18 02:10:44');

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

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

CREATE TABLE `users` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `name` varchar(255) NOT NULL,
  `email` varchar(255) NOT NULL,
  `email_verified_at` timestamp NULL DEFAULT NULL,
  `password` varchar(255) NOT NULL,
  `remember_token` varchar(100) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `stripe_id` varchar(255) DEFAULT NULL,
  `pm_type` varchar(255) DEFAULT NULL,
  `pm_last_four` varchar(4) DEFAULT NULL,
  `trial_ends_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `users` (`id`, `name`, `email`, `email_verified_at`, `password`, `remember_token`, `created_at`, `updated_at`, `stripe_id`, `pm_type`, `pm_last_four`, `trial_ends_at`) VALUES
(1, 'admin', 'admin@master.com', NULL, '$2y$12$cYrujB8XnpFpjOdKVkZnyOvdu2OL0tCyNNTKRPXdpfaXktuP1hjNC', NULL, '2025-08-08 08:09:41', '2025-08-08 08:09:41', NULL, NULL, NULL, NULL),
(3, 'superadmin', 'superadmin@gmail.com', NULL, '$2y$12$Dc2TrBhrOTrVSZaaSIbkEOHoOb4u/nlopQL2r/XGskBadZkJb1IU6', NULL, '2025-08-29 04:38:32', '2025-08-29 04:48:23', NULL, NULL, NULL, NULL),
(13, 'Myra Dunn', 'fabodibez@mailinator.com', NULL, '$2y$12$Al9Il6yNcWfbh8nn2LL9Uujfia2ZejPIttMN/cEQUPu98rstdPqQa', NULL, '2026-03-17 03:50:28', '2026-03-17 03:50:28', NULL, NULL, NULL, NULL),
(14, 'Hasnain', 'hasnain@gmail.com', NULL, '$2y$12$imo6qpCknmCoCDFiFwgbkuP/lpokgBGFT1bEPe9uTHR93zJhB4oF2', NULL, '2026-03-18 02:08:28', '2026-03-18 02:08:28', NULL, NULL, NULL, NULL),
(15, 'Ahmed', 'ahmed@gmail.com', NULL, '$2y$12$W67hcCSYuzyUPGZEYsLp3.FyTDhk8DvkJZ2E5YpPA3sxIGYYqucFO', NULL, '2026-03-18 02:09:35', '2026-03-18 02:09:35', NULL, NULL, NULL, NULL);

--
-- Indexes for dumped tables
--

--
-- Indexes for table `activity_log`
--
ALTER TABLE `activity_log`
  ADD PRIMARY KEY (`id`),
  ADD KEY `subject` (`subject_type`,`subject_id`),
  ADD KEY `causer` (`causer_type`,`causer_id`),
  ADD KEY `activity_log_log_name_index` (`log_name`);

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

--
-- Indexes for table `branch_investments`
--
ALTER TABLE `branch_investments`
  ADD PRIMARY KEY (`id`),
  ADD KEY `branch_investments_branch_id_foreign` (`branch_id`);

--
-- Indexes for table `branch_partners`
--
ALTER TABLE `branch_partners`
  ADD PRIMARY KEY (`id`),
  ADD KEY `branch_partners_branch_id_foreign` (`branch_id`),
  ADD KEY `branch_partners_partner_id_foreign` (`partner_id`);

--
-- Indexes for table `cache`
--
ALTER TABLE `cache`
  ADD PRIMARY KEY (`key`);

--
-- Indexes for table `cache_locks`
--
ALTER TABLE `cache_locks`
  ADD PRIMARY KEY (`key`);

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

--
-- Indexes for table `complaints`
--
ALTER TABLE `complaints`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `complaints_complain_id_unique` (`complain_id`) USING HASH,
  ADD KEY `complaints_product_id_foreign` (`product_id`),
  ADD KEY `complaints_created_by_foreign` (`created_by`);

--
-- Indexes for table `complaint_assigns`
--
ALTER TABLE `complaint_assigns`
  ADD PRIMARY KEY (`id`),
  ADD KEY `complaint_assigns_complaint_id_foreign` (`complaint_id`),
  ADD KEY `complaint_assigns_user_id_foreign` (`user_id`);

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

--
-- Indexes for table `complaint_comments`
--
ALTER TABLE `complaint_comments`
  ADD PRIMARY KEY (`id`),
  ADD KEY `complaint_comments_complaint_id_foreign` (`complaint_id`),
  ADD KEY `complaint_comments_user_id_foreign` (`user_id`);

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

--
-- Indexes for table `failed_jobs`
--
ALTER TABLE `failed_jobs`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`);

--
-- Indexes for table `food_costs`
--
ALTER TABLE `food_costs`
  ADD PRIMARY KEY (`id`),
  ADD KEY `food_costs_branch_id_foreign` (`branch_id`),
  ADD KEY `food_costs_user_id_foreign` (`user_id`),
  ADD KEY `food_costs_partner_id_foreign` (`partner_id`);

--
-- Indexes for table `hra_expenses`
--
ALTER TABLE `hra_expenses`
  ADD PRIMARY KEY (`id`),
  ADD KEY `hra_expenses_branch_id_foreign` (`branch_id`),
  ADD KEY `hra_expenses_user_id_foreign` (`user_id`),
  ADD KEY `hra_expenses_partner_id_foreign` (`partner_id`);

--
-- Indexes for table `jobs`
--
ALTER TABLE `jobs`
  ADD PRIMARY KEY (`id`),
  ADD KEY `jobs_queue_index` (`queue`);

--
-- Indexes for table `job_batches`
--
ALTER TABLE `job_batches`
  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_id_model_type_index` (`model_id`,`model_type`);

--
-- 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_id_model_type_index` (`model_id`,`model_type`);

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

--
-- Indexes for table `password_reset_tokens`
--
ALTER TABLE `password_reset_tokens`
  ADD PRIMARY KEY (`email`);

--
-- Indexes for table `permissions`
--
ALTER TABLE `permissions`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `permissions_name_guard_name_unique` (`name`,`guard_name`);

--
-- Indexes for table `personal_access_tokens`
--
ALTER TABLE `personal_access_tokens`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `personal_access_tokens_token_unique` (`token`),
  ADD KEY `personal_access_tokens_tokenable_type_tokenable_id_index` (`tokenable_type`,`tokenable_id`),
  ADD KEY `personal_access_tokens_expires_at_index` (`expires_at`);

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

--
-- Indexes for table `rental_expenses`
--
ALTER TABLE `rental_expenses`
  ADD PRIMARY KEY (`id`),
  ADD KEY `rental_expenses_branch_id_foreign` (`branch_id`),
  ADD KEY `rental_expenses_user_id_foreign` (`user_id`),
  ADD KEY `rental_expenses_partner_id_foreign` (`partner_id`);

--
-- Indexes for table `roles`
--
ALTER TABLE `roles`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `roles_name_guard_name_unique` (`name`,`guard_name`);

--
-- 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 `salaries`
--
ALTER TABLE `salaries`
  ADD PRIMARY KEY (`id`),
  ADD KEY `salaries_branch_id_foreign` (`branch_id`),
  ADD KEY `salaries_user_id_foreign` (`user_id`),
  ADD KEY `salaries_partner_id_foreign` (`partner_id`);

--
-- Indexes for table `sessions`
--
ALTER TABLE `sessions`
  ADD PRIMARY KEY (`id`),
  ADD KEY `sessions_user_id_index` (`user_id`),
  ADD KEY `sessions_last_activity_index` (`last_activity`);

--
-- Indexes for table `staff_counts`
--
ALTER TABLE `staff_counts`
  ADD PRIMARY KEY (`id`),
  ADD KEY `staff_counts_branch_id_foreign` (`branch_id`),
  ADD KEY `staff_counts_user_id_foreign` (`user_id`),
  ADD KEY `staff_counts_partner_id_foreign` (`partner_id`);

--
-- Indexes for table `teams`
--
ALTER TABLE `teams`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `teams_email_unique` (`email`),
  ADD UNIQUE KEY `teams_member_code_unique` (`member_code`);

--
-- Indexes for table `users`
--
ALTER TABLE `users`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `users_email_unique` (`email`),
  ADD KEY `users_stripe_id_index` (`stripe_id`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `activity_log`
--
ALTER TABLE `activity_log`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=142;

--
-- AUTO_INCREMENT for table `branches`
--
ALTER TABLE `branches`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `branch_investments`
--
ALTER TABLE `branch_investments`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `branch_partners`
--
ALTER TABLE `branch_partners`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;

--
-- AUTO_INCREMENT for table `categories`
--
ALTER TABLE `categories`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `complaints`
--
ALTER TABLE `complaints`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;

--
-- AUTO_INCREMENT for table `complaint_assigns`
--
ALTER TABLE `complaint_assigns`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `complaint_charges`
--
ALTER TABLE `complaint_charges`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `complaint_comments`
--
ALTER TABLE `complaint_comments`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `daily_sales`
--
ALTER TABLE `daily_sales`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `failed_jobs`
--
ALTER TABLE `failed_jobs`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `food_costs`
--
ALTER TABLE `food_costs`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `hra_expenses`
--
ALTER TABLE `hra_expenses`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `jobs`
--
ALTER TABLE `jobs`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `migrations`
--
ALTER TABLE `migrations`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=40;

--
-- AUTO_INCREMENT for table `partners`
--
ALTER TABLE `partners`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14;

--
-- AUTO_INCREMENT for table `permissions`
--
ALTER TABLE `permissions`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=75;

--
-- AUTO_INCREMENT for table `personal_access_tokens`
--
ALTER TABLE `personal_access_tokens`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `products`
--
ALTER TABLE `products`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `rental_expenses`
--
ALTER TABLE `rental_expenses`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `roles`
--
ALTER TABLE `roles`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;

--
-- AUTO_INCREMENT for table `salaries`
--
ALTER TABLE `salaries`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `staff_counts`
--
ALTER TABLE `staff_counts`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT for table `teams`
--
ALTER TABLE `teams`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;

--
-- Constraints for dumped tables
--

--
-- Constraints for table `branch_investments`
--
ALTER TABLE `branch_investments`
  ADD CONSTRAINT `branch_investments_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `branch_partners`
--
ALTER TABLE `branch_partners`
  ADD CONSTRAINT `branch_partners_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `branch_partners_partner_id_foreign` FOREIGN KEY (`partner_id`) REFERENCES `partners` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `complaints`
--
ALTER TABLE `complaints`
  ADD CONSTRAINT `complaints_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE SET NULL,
  ADD CONSTRAINT `complaints_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `complaint_assigns`
--
ALTER TABLE `complaint_assigns`
  ADD CONSTRAINT `complaint_assigns_complaint_id_foreign` FOREIGN KEY (`complaint_id`) REFERENCES `complaints` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `complaint_assigns_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `complaint_comments`
--
ALTER TABLE `complaint_comments`
  ADD CONSTRAINT `complaint_comments_complaint_id_foreign` FOREIGN KEY (`complaint_id`) REFERENCES `complaints` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `complaint_comments_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `food_costs`
--
ALTER TABLE `food_costs`
  ADD CONSTRAINT `food_costs_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `food_costs_partner_id_foreign` FOREIGN KEY (`partner_id`) REFERENCES `partners` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `food_costs_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `hra_expenses`
--
ALTER TABLE `hra_expenses`
  ADD CONSTRAINT `hra_expenses_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `hra_expenses_partner_id_foreign` FOREIGN KEY (`partner_id`) REFERENCES `partners` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `hra_expenses_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`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 `rental_expenses`
--
ALTER TABLE `rental_expenses`
  ADD CONSTRAINT `rental_expenses_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `rental_expenses_partner_id_foreign` FOREIGN KEY (`partner_id`) REFERENCES `partners` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `rental_expenses_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`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 `salaries`
--
ALTER TABLE `salaries`
  ADD CONSTRAINT `salaries_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `salaries_partner_id_foreign` FOREIGN KEY (`partner_id`) REFERENCES `partners` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `salaries_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;

--
-- Constraints for table `staff_counts`
--
ALTER TABLE `staff_counts`
  ADD CONSTRAINT `staff_counts_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `staff_counts_partner_id_foreign` FOREIGN KEY (`partner_id`) REFERENCES `partners` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `staff_counts_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`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 */;
