-- Table structure for table `aggregation_invoice_items`
--

CREATE TABLE `aggregation_invoice_items` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `aggregation_invoice_id` bigint unsigned NOT NULL,
  `type` enum('sales','returned') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `barcode_id` bigint unsigned NOT NULL,
  `quantity` decimal(10,3) NOT NULL,
  `price` decimal(10,3) NOT NULL,
  `discount` decimal(10,3) NOT NULL DEFAULT '0.000',
  `tax_ratio` decimal(10,3) DEFAULT NULL,
  `total` decimal(10,3) NOT NULL,
  `remaining_quantity` decimal(10,3) NOT NULL,
  `source_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `source_id` bigint unsigned NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `aggregation_invoice_items_aggregation_invoice_id_foreign` (`aggregation_invoice_id`),
  KEY `aggregation_invoice_items_barcode_id_foreign` (`barcode_id`),
  KEY `aggregation_invoice_items_source_type_source_id_index` (`source_type`,`source_id`),
  CONSTRAINT `aggregation_invoice_items_aggregation_invoice_id_foreign` FOREIGN KEY (`aggregation_invoice_id`) REFERENCES `aggregation_invoices` (`id`),
  CONSTRAINT `aggregation_invoice_items_barcode_id_foreign` FOREIGN KEY (`barcode_id`) REFERENCES `barcodes` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `aggregation_invoice_items`
--


--
-- Table structure for table `aggregation_invoice_sales`
--

CREATE TABLE `aggregation_invoice_sales` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `aggregation_invoice_id` bigint unsigned NOT NULL,
  `sales_invoice_id` bigint unsigned NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `agg_sales_unique` (`aggregation_invoice_id`,`sales_invoice_id`),
  KEY `agg_sales_by_sale_idx` (`sales_invoice_id`),
  CONSTRAINT `aggregation_invoice_sales_aggregation_invoice_id_foreign` FOREIGN KEY (`aggregation_invoice_id`) REFERENCES `aggregation_invoices` (`id`),
  CONSTRAINT `aggregation_invoice_sales_sales_invoice_id_foreign` FOREIGN KEY (`sales_invoice_id`) REFERENCES `pos_sales_invoices` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `aggregation_invoice_sales`
--


--
-- Table structure for table `aggregation_invoices`
--

CREATE TABLE `aggregation_invoices` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `bond_number` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `date` date NOT NULL,
  `box_day_id` bigint unsigned NOT NULL,
  `branch_id` bigint unsigned NOT NULL,
  `price` decimal(10,3) NOT NULL,
  `quantity` decimal(10,3) NOT NULL,
  `discount` decimal(10,3) NOT NULL,
  `tax_amount` decimal(10,3) NOT NULL,
  `total` decimal(10,3) NOT NULL,
  `post_status` tinyint(1) NOT NULL DEFAULT '0',
  `fotara_saved_at` timestamp NULL DEFAULT NULL,
  `related_invoices` json NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `aggregation_invoices_box_day_id_foreign` (`box_day_id`),
  KEY `aggregation_invoices_branch_id_foreign` (`branch_id`),
  CONSTRAINT `aggregation_invoices_box_day_id_foreign` FOREIGN KEY (`box_day_id`) REFERENCES `box_days` (`id`),
  CONSTRAINT `aggregation_invoices_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `aggregation_invoices`
--


--
-- Table structure for table `automated_entries`
--

CREATE TABLE `automated_entries` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `year_id` bigint unsigned NOT NULL,
  `period_id` bigint unsigned NOT NULL,
  `bond_number` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `date` date NOT NULL,
  `amount` double(13,3) NOT NULL,
  `builder_model` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `builder_model_id` bigint DEFAULT NULL,
  `post_status` tinyint(1) NOT NULL DEFAULT '0',
  `notice` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `automated_entries_year_id_foreign` (`year_id`),
  KEY `automated_entries_period_id_foreign` (`period_id`),
  CONSTRAINT `automated_entries_period_id_foreign` FOREIGN KEY (`period_id`) REFERENCES `fiscal_periods` (`id`),
  CONSTRAINT `automated_entries_year_id_foreign` FOREIGN KEY (`year_id`) REFERENCES `fiscal_years` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `automated_entries`
--


--
-- Table structure for table `automated_entry_items`
--

CREATE TABLE `automated_entry_items` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `automated_entry_id` bigint unsigned NOT NULL,
  `account_id` bigint unsigned DEFAULT NULL,
  `receivable_id` bigint unsigned DEFAULT NULL,
  `debit` double DEFAULT NULL,
  `credit` double DEFAULT NULL,
  `cost_center_id` bigint unsigned DEFAULT NULL,
  `notice` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  PRIMARY KEY (`id`),
  KEY `automated_entry_items_automated_entry_id_foreign` (`automated_entry_id`),
  KEY `automated_entry_items_account_id_foreign` (`account_id`),
  KEY `automated_entry_items_receivable_id_foreign` (`receivable_id`),
  KEY `automated_entry_items_cost_center_id_foreign` (`cost_center_id`),
  CONSTRAINT `automated_entry_items_account_id_foreign` FOREIGN KEY (`account_id`) REFERENCES `accounts` (`id`),
  CONSTRAINT `automated_entry_items_automated_entry_id_foreign` FOREIGN KEY (`automated_entry_id`) REFERENCES `automated_entries` (`id`),
  CONSTRAINT `automated_entry_items_cost_center_id_foreign` FOREIGN KEY (`cost_center_id`) REFERENCES `cost_centers` (`id`),
  CONSTRAINT `automated_entry_items_receivable_id_foreign` FOREIGN KEY (`receivable_id`) REFERENCES `receivable_accounts` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `automated_entry_items`
--


--
-- Table structure for table `barcode_branch`
--

CREATE TABLE `barcode_branch` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `branch_id` bigint unsigned NOT NULL,
  `barcode_id` bigint unsigned NOT NULL,
  `cost` double NOT NULL DEFAULT '0',
  `available_quantity` double NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `barcode_branch_branch_id_foreign` (`branch_id`),
  KEY `barcode_branch_barcode_id_foreign` (`barcode_id`),
  CONSTRAINT `barcode_branch_barcode_id_foreign` FOREIGN KEY (`barcode_id`) REFERENCES `barcodes` (`id`),
  CONSTRAINT `barcode_branch_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `barcode_branch`
--


--
-- Table structure for table `barcode_branch_locations`
--

CREATE TABLE `barcode_branch_locations` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `barcode_id` bigint unsigned NOT NULL,
  `branch_id` bigint unsigned NOT NULL,
  `hall` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `line` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `shelf` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `barcode_branch_locations_barcode_id_foreign` (`barcode_id`),
  KEY `barcode_branch_locations_branch_id_foreign` (`branch_id`),
  CONSTRAINT `barcode_branch_locations_barcode_id_foreign` FOREIGN KEY (`barcode_id`) REFERENCES `barcodes` (`id`),
  CONSTRAINT `barcode_branch_locations_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `barcode_branch_locations`
--


--
-- Table structure for table `barcode_branch_prices`
--

CREATE TABLE `barcode_branch_prices` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `barcode_id` bigint unsigned NOT NULL,
  `branch_id` bigint unsigned NOT NULL,
  `price_type_id` bigint unsigned NOT NULL,
  `price` double DEFAULT NULL,
  `is_default` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `barcode_branch_prices_barcode_id_foreign` (`barcode_id`),
  KEY `barcode_branch_prices_branch_id_foreign` (`branch_id`),
  KEY `barcode_branch_prices_price_type_id_foreign` (`price_type_id`),
  CONSTRAINT `barcode_branch_prices_barcode_id_foreign` FOREIGN KEY (`barcode_id`) REFERENCES `barcodes` (`id`),
  CONSTRAINT `barcode_branch_prices_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`),
  CONSTRAINT `barcode_branch_prices_price_type_id_foreign` FOREIGN KEY (`price_type_id`) REFERENCES `barcode_price_types` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `barcode_branch_prices`
--


--
-- Table structure for table `barcode_menu`
--

CREATE TABLE `barcode_menu` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `menu_id` bigint unsigned NOT NULL,
  `barcode_id` bigint unsigned NOT NULL,
  PRIMARY KEY (`id`),
  KEY `barcode_menu_menu_id_foreign` (`menu_id`),
  KEY `barcode_menu_barcode_id_foreign` (`barcode_id`),
  CONSTRAINT `barcode_menu_barcode_id_foreign` FOREIGN KEY (`barcode_id`) REFERENCES `barcodes` (`id`),
  CONSTRAINT `barcode_menu_menu_id_foreign` FOREIGN KEY (`menu_id`) REFERENCES `menus` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `barcode_menu`
--


--
-- Table structure for table `barcode_price_types`
--

CREATE TABLE `barcode_price_types` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `is_default` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `barcode_price_types`
--

INSERT INTO `barcode_price_types` VALUES (1,'جُملة',1),(2,'مفرّق',0);

--
-- Table structure for table `barcode_section`
--

CREATE TABLE `barcode_section` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `barcode_id` bigint unsigned NOT NULL,
  `section_id` bigint unsigned NOT NULL,
  PRIMARY KEY (`id`),
  KEY `barcode_section_barcode_id_foreign` (`barcode_id`),
  KEY `barcode_section_section_id_foreign` (`section_id`),
  CONSTRAINT `barcode_section_barcode_id_foreign` FOREIGN KEY (`barcode_id`) REFERENCES `barcodes` (`id`),
  CONSTRAINT `barcode_section_section_id_foreign` FOREIGN KEY (`section_id`) REFERENCES `pos_sections` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `barcode_section`
--


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

CREATE TABLE `barcodes` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `item_id` bigint unsigned NOT NULL,
  `ar_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `en_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `number` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `image` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `unit_id` bigint unsigned NOT NULL,
  `max_quantity` double DEFAULT NULL,
  `min_quantity` double DEFAULT NULL,
  `width` double DEFAULT NULL,
  `height` double DEFAULT NULL,
  `size` double DEFAULT NULL,
  `is_pos` tinyint(1) NOT NULL DEFAULT '0',
  `is_under_discount` tinyint(1) NOT NULL DEFAULT '0',
  `purchasable` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `barcodes_number_unique` (`number`),
  KEY `barcodes_item_id_foreign` (`item_id`),
  KEY `barcodes_unit_id_foreign` (`unit_id`),
  CONSTRAINT `barcodes_item_id_foreign` FOREIGN KEY (`item_id`) REFERENCES `items` (`id`),
  CONSTRAINT `barcodes_unit_id_foreign` FOREIGN KEY (`unit_id`) REFERENCES `units` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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


--
-- Table structure for table `bond_attachments`
--

CREATE TABLE `bond_attachments` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `bond_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `bond_id` int NOT NULL,
  `file` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `bond_attachments`
--


--
-- Table structure for table `booths`
--

CREATE TABLE `booths` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `floor_id` bigint unsigned NOT NULL,
  `type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'movable/immutable/temporal',
  `number` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `title` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `area` double(10,3) NOT NULL,
  `price` double(10,3) NOT NULL,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_rented` tinyint(1) NOT NULL DEFAULT '0',
  `notice` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `booths_floor_id_foreign` (`floor_id`),
  CONSTRAINT `booths_floor_id_foreign` FOREIGN KEY (`floor_id`) REFERENCES `floors` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `booths`
--


--
-- Table structure for table `box_day_entry_items`
--

CREATE TABLE `box_day_entry_items` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `box_day_id` bigint unsigned NOT NULL,
  `class` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'Account' COMMENT 'Account/ReceivableAccount',
  `account_id` bigint NOT NULL,
  `amount` double NOT NULL,
  PRIMARY KEY (`id`),
  KEY `box_day_entry_items_box_day_id_foreign` (`box_day_id`),
  CONSTRAINT `box_day_entry_items_box_day_id_foreign` FOREIGN KEY (`box_day_id`) REFERENCES `box_days` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `box_day_entry_items`
--


--
-- Table structure for table `box_days`
--

CREATE TABLE `box_days` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `day_date` date NOT NULL,
  `branch_id` bigint unsigned NOT NULL,
  `sales_total` double DEFAULT NULL,
  `returned_sales_total` double DEFAULT NULL,
  `is_closed` tinyint(1) NOT NULL DEFAULT '0',
  `closed_at` datetime DEFAULT NULL,
  `post_status` tinyint(1) NOT NULL DEFAULT '0',
  `posted_at` datetime DEFAULT NULL,
  `started_fotara_at` datetime DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `box_days_branch_id_foreign` (`branch_id`),
  CONSTRAINT `box_days_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `box_days`
--


--
-- Table structure for table `boxes`
--

CREATE TABLE `boxes` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `box_day_id` bigint unsigned NOT NULL,
  `branch_id` bigint unsigned NOT NULL,
  `user_id` bigint unsigned DEFAULT NULL,
  `cash_device_id` bigint unsigned DEFAULT NULL,
  `custody_value` double(13,4) NOT NULL DEFAULT '0.0000',
  `date` date NOT NULL,
  `sales_total` double(13,4) NOT NULL DEFAULT '0.0000',
  `returned_sales_total` double(13,4) NOT NULL DEFAULT '0.0000',
  `is_closed` tinyint(1) NOT NULL DEFAULT '0',
  `closed_at` datetime DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `boxes_box_day_id_foreign` (`box_day_id`),
  KEY `boxes_branch_id_foreign` (`branch_id`),
  KEY `boxes_user_id_foreign` (`user_id`),
  KEY `boxes_cash_device_id_foreign` (`cash_device_id`),
  CONSTRAINT `boxes_box_day_id_foreign` FOREIGN KEY (`box_day_id`) REFERENCES `box_days` (`id`),
  CONSTRAINT `boxes_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`),
  CONSTRAINT `boxes_cash_device_id_foreign` FOREIGN KEY (`cash_device_id`) REFERENCES `cash_devices` (`id`),
  CONSTRAINT `boxes_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `pos_users` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `boxes`
--


--
-- Table structure for table `branch_connection_codes`
--

CREATE TABLE `branch_connection_codes` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `code` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `label` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `branch_connection_codes`
--

INSERT INTO `branch_connection_codes` VALUES (1,'finalSales','المبيعات'),(2,'finalReturnedSales','مردود المبيعات'),(3,'finalPurchases','المشتريات'),(4,'finalReturnedPurchases','مردود المشتريات'),(5,'finalPosSales','مبيعات نقاط البيع'),(6,'finalPosReturnedSales','مردودات نقاط البيع'),(7,'outlays','سحوبات نقاط البيع');

--
-- Table structure for table `branch_item`
--

CREATE TABLE `branch_item` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `branch_id` bigint unsigned NOT NULL,
  `item_id` bigint unsigned NOT NULL,
  PRIMARY KEY (`id`),
  KEY `branch_item_branch_id_foreign` (`branch_id`),
  KEY `branch_item_item_id_foreign` (`item_id`),
  CONSTRAINT `branch_item_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`),
  CONSTRAINT `branch_item_item_id_foreign` FOREIGN KEY (`item_id`) REFERENCES `items` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `branch_item`
--


--
-- Table structure for table `branch_menu`
--

CREATE TABLE `branch_menu` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `branch_id` bigint unsigned NOT NULL,
  `menu_id` bigint unsigned NOT NULL,
  PRIMARY KEY (`id`),
  KEY `branch_menu_branch_id_foreign` (`branch_id`),
  KEY `branch_menu_menu_id_foreign` (`menu_id`),
  CONSTRAINT `branch_menu_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`),
  CONSTRAINT `branch_menu_menu_id_foreign` FOREIGN KEY (`menu_id`) REFERENCES `menus` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `branch_menu`
--


--
-- Table structure for table `branch_tax`
--

CREATE TABLE `branch_tax` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `branch_id` bigint unsigned NOT NULL,
  `tax_id` bigint unsigned NOT NULL,
  `purchases_account_id` bigint unsigned NOT NULL,
  `returned_purchases_account_id` bigint unsigned NOT NULL,
  `sales_account_id` bigint unsigned NOT NULL,
  `returned_sales_account_id` bigint unsigned NOT NULL,
  PRIMARY KEY (`id`),
  KEY `branch_tax_branch_id_foreign` (`branch_id`),
  KEY `branch_tax_tax_id_foreign` (`tax_id`),
  KEY `branch_tax_purchases_account_id_foreign` (`purchases_account_id`),
  KEY `branch_tax_returned_purchases_account_id_foreign` (`returned_purchases_account_id`),
  KEY `branch_tax_sales_account_id_foreign` (`sales_account_id`),
  KEY `branch_tax_returned_sales_account_id_foreign` (`returned_sales_account_id`),
  CONSTRAINT `branch_tax_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`),
  CONSTRAINT `branch_tax_purchases_account_id_foreign` FOREIGN KEY (`purchases_account_id`) REFERENCES `accounts` (`id`),
  CONSTRAINT `branch_tax_returned_purchases_account_id_foreign` FOREIGN KEY (`returned_purchases_account_id`) REFERENCES `accounts` (`id`),
  CONSTRAINT `branch_tax_returned_sales_account_id_foreign` FOREIGN KEY (`returned_sales_account_id`) REFERENCES `accounts` (`id`),
  CONSTRAINT `branch_tax_sales_account_id_foreign` FOREIGN KEY (`sales_account_id`) REFERENCES `accounts` (`id`),
  CONSTRAINT `branch_tax_tax_id_foreign` FOREIGN KEY (`tax_id`) REFERENCES `taxes` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `branch_tax`
--

INSERT INTO `branch_tax` VALUES (1,1,1,72,72,72,72),(2,1,2,72,72,72,72),(3,1,3,72,72,72,72),(4,1,4,72,72,72,72),(5,1,5,72,72,72,72),(6,1,6,72,72,72,72);

--
-- Table structure for table `branch_types`
--

CREATE TABLE `branch_types` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `branch_types`
--

INSERT INTO `branch_types` VALUES (1,'sxsc');

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

CREATE TABLE `branches` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `copy_prices_from_branch_id` bigint unsigned DEFAULT NULL,
  `responsible_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `type_id` bigint unsigned DEFAULT NULL,
  `cost_center_id` bigint unsigned DEFAULT NULL,
  `address` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `phone` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `fax` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `maximum_purchase_monthly` double DEFAULT NULL,
  `purchases_under_tax` tinyint(1) NOT NULL DEFAULT '0',
  `sales_under_tax` tinyint(1) NOT NULL DEFAULT '0',
  `sales_tax_id` bigint unsigned DEFAULT NULL,
  `is_temp` tinyint(1) NOT NULL DEFAULT '0',
  `status` tinyint(1) NOT NULL DEFAULT '1',
  `is_default` tinyint(1) NOT NULL DEFAULT '0',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `branches_name_unique` (`name`),
  KEY `branches_type_id_foreign` (`type_id`),
  KEY `branches_cost_center_id_foreign` (`cost_center_id`),
  KEY `branches_sales_tax_id_foreign` (`sales_tax_id`),
  CONSTRAINT `branches_cost_center_id_foreign` FOREIGN KEY (`cost_center_id`) REFERENCES `cost_centers` (`id`),
  CONSTRAINT `branches_sales_tax_id_foreign` FOREIGN KEY (`sales_tax_id`) REFERENCES `taxes` (`id`),
  CONSTRAINT `branches_type_id_foreign` FOREIGN KEY (`type_id`) REFERENCES `branch_types` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `branches` VALUES (1,'Maher Qashlan',NULL,'Salah',1,NULL,'Wasfi At-Tall St. - Al-Waha Circle - Khalda','0798855774',NULL,NULL,0,0,NULL,0,1,1,'2025-12-06 14:48:43','2025-12-06 14:48:43');

--
-- Table structure for table `building_types`
--

CREATE TABLE `building_types` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `building_types`
--

INSERT INTO `building_types` VALUES (1,'شقق سكنية'),(2,'مجمع تجاري'),(3,'كومباوند فلل'),(4,'شقق فنادق');

--
-- Table structure for table `buildings`
--

CREATE TABLE `buildings` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `building_type_id` bigint unsigned DEFAULT NULL,
  `title` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `area` double(10,3) NOT NULL,
  `shops_area` double(10,3) NOT NULL,
  `booths_area` double(10,3) NOT NULL,
  `number` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `earth_place` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `attachments` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `starting_work_permit_date` date DEFAULT NULL,
  `expire_work_permit_date` date DEFAULT NULL,
  `notice` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `buildings_building_type_id_foreign` (`building_type_id`),
  CONSTRAINT `buildings_building_type_id_foreign` FOREIGN KEY (`building_type_id`) REFERENCES `building_types` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `buildings`
--


--
-- Table structure for table `cart_items`
--

CREATE TABLE `cart_items` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `representative_id` bigint unsigned NOT NULL,
  `barcode_id` bigint unsigned NOT NULL,
  `quantity` double NOT NULL,
  `price` double DEFAULT NULL,
  `branch_id` bigint unsigned NOT NULL,
  PRIMARY KEY (`id`),
  KEY `cart_items_representative_id_foreign` (`representative_id`),
  KEY `cart_items_barcode_id_foreign` (`barcode_id`),
  KEY `cart_items_branch_id_foreign` (`branch_id`),
  CONSTRAINT `cart_items_barcode_id_foreign` FOREIGN KEY (`barcode_id`) REFERENCES `barcodes` (`id`),
  CONSTRAINT `cart_items_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`),
  CONSTRAINT `cart_items_representative_id_foreign` FOREIGN KEY (`representative_id`) REFERENCES `representatives` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `cart_items`
--


--
-- Table structure for table `cash_devices`
--

CREATE TABLE `cash_devices` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `ar_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `en_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `branch_id` bigint unsigned DEFAULT NULL,
  `custody_on_boxes` double(13,4) NOT NULL DEFAULT '0.0000',
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `mac_address` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `printers` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `drawer_device` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `cash_devices_branch_id_foreign` (`branch_id`),
  CONSTRAINT `cash_devices_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `cash_devices`
--


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

CREATE TABLE `categories` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `number` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `parent_id` bigint unsigned DEFAULT NULL,
  `dedicated_space` double DEFAULT NULL,
  `level` int NOT NULL,
  PRIMARY KEY (`id`),
  KEY `categories_parent_id_foreign` (`parent_id`),
  CONSTRAINT `categories_parent_id_foreign` FOREIGN KEY (`parent_id`) REFERENCES `categories` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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


--
-- Table structure for table `category_connection_codes`
--

CREATE TABLE `category_connection_codes` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `code` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `account_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `label` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `category_connection_codes`
--

INSERT INTO `category_connection_codes` VALUES (1,'finalSales','finalSales','المبيعات'),(2,'finalReturnedSales','finalReturnedSales','مردود المبيعات'),(3,'finalPurchases','finalPurchases','المشتريات'),(4,'finalReturnedPurchases','finalReturnedPurchases','مردود المشتريات'),(5,'inventory','inventory','البضاعة'),(6,'inventoryCost','inventory','كلفة البضاغة'),(7,'warehousesExchange','','صرف مستودعي');

--
-- Table structure for table `chart_widget_group_items`
--

CREATE TABLE `chart_widget_group_items` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `chart_widget_group_id` bigint unsigned NOT NULL,
  `account_id` bigint unsigned NOT NULL,
  PRIMARY KEY (`id`),
  KEY `chart_widget_group_items_chart_widget_group_id_foreign` (`chart_widget_group_id`),
  KEY `chart_widget_group_items_account_id_foreign` (`account_id`),
  CONSTRAINT `chart_widget_group_items_account_id_foreign` FOREIGN KEY (`account_id`) REFERENCES `accounts` (`id`),
  CONSTRAINT `chart_widget_group_items_chart_widget_group_id_foreign` FOREIGN KEY (`chart_widget_group_id`) REFERENCES `chart_widget_groups` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `chart_widget_group_items`
--

INSERT INTO `chart_widget_group_items` VALUES (1,1,94),(2,2,126);

--
-- Table structure for table `chart_widget_groups`
--

CREATE TABLE `chart_widget_groups` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `chart_widget_id` bigint unsigned NOT NULL,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `chart_widget_groups_chart_widget_id_foreign` (`chart_widget_id`),
  CONSTRAINT `chart_widget_groups_chart_widget_id_foreign` FOREIGN KEY (`chart_widget_id`) REFERENCES `chart_widgets` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `chart_widget_groups`
--

INSERT INTO `chart_widget_groups` VALUES (1,1,'المبيعات والإيرادات'),(2,2,'المصاريف');

--
-- Table structure for table `chart_widgets`
--

CREATE TABLE `chart_widgets` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `width` double NOT NULL DEFAULT '100',
  `is_visible` tinyint(1) NOT NULL DEFAULT '1',
  `is_default` tinyint(1) NOT NULL DEFAULT '0',
  `order` int NOT NULL DEFAULT '1',
  `chart_key` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `data_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'accounts,rentals',
  `chart_shape` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'line' COMMENT 'line,bar,doughnut,table',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `chart_widgets`
--

INSERT INTO `chart_widgets` VALUES (1,'الايرادات',50,1,0,1,NULL,'accounts','line','2025-01-19 18:05:12','2025-01-19 18:05:12'),(2,'المصاريف',50,1,0,2,NULL,'accounts','bar','2025-01-19 18:05:36','2025-01-19 18:05:36');

--
-- Table structure for table `code_functions`
--

CREATE TABLE `code_functions` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `section_id` bigint unsigned NOT NULL,
  `code` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `code_functions_section_id_foreign` (`section_id`),
  CONSTRAINT `code_functions_section_id_foreign` FOREIGN KEY (`section_id`) REFERENCES `code_sections` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3854 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `code_functions`
--

INSERT INTO `code_functions` VALUES (3425,'مشاهدة',832,'show'),(3426,'إضافة',832,'add'),(3427,'تعديل',832,'edit'),(3428,'حذف',832,'delete'),(3429,'مشاهدة',833,'show'),(3430,'تهيئة الأرصدة الافتتاحية',833,'initialize'),(3431,'إضافة',834,'add'),(3432,'تعديل',834,'edit'),(3433,'حذف',834,'delete'),(3434,'تدقيق',835,'audit'),(3435,'الغاء التدقيق',835,'unaudit'),(3436,'ترحيل',835,'post'),(3437,'الغاء الترحيل',835,'unpost'),(3438,'مشاهدة',836,'show'),(3439,'إضافة',836,'add'),(3440,'تعديل',836,'edit'),(3441,'حذف',836,'delete'),(3442,'ترحيل',836,'post'),(3443,'نسخ',836,'clone'),(3444,'الغاء ترحيل',836,'unpost'),(3445,'تدقيق',836,'audit'),(3446,'الغاء تدقيق',836,'unaudit'),(3447,'مشاهدة',837,'show'),(3448,'إضافة',837,'add'),(3449,'تعديل',837,'edit'),(3450,'حذف',837,'delete'),(3451,'ترحيل',837,'post'),(3452,'الغاء ترحيل',837,'unpost'),(3453,'تدقيق',837,'audit'),(3454,'الغاء تدقيق',837,'unaudit'),(3455,'مشاهدة',838,'show'),(3456,'إضافة',838,'add'),(3457,'تعديل',838,'edit'),(3458,'حذف',838,'delete'),(3459,'ترحيل',838,'post'),(3460,'الغاء ترحيل',838,'unpost'),(3461,'تدقيق',838,'audit'),(3462,'الغاء تدقيق',838,'unaudit'),(3463,'مشاهدة',839,'show'),(3464,'إضافة',839,'add'),(3465,'تعديل',839,'edit'),(3466,'حذف',839,'delete'),(3467,'ترحيل',839,'post'),(3468,'الغاء ترحيل',839,'unpost'),(3469,'تدقيق',839,'audit'),(3470,'الغاء تدقيق',839,'unaudit'),(3471,'مشاهدة',840,'show'),(3472,'إضافة',840,'add'),(3473,'تعديل',840,'edit'),(3474,'حذف',840,'delete'),(3475,'ترحيل',840,'post'),(3476,'الغاء الترحيل',840,'unpost'),(3477,'تدقيق',840,'audit'),(3478,'الغاء تدقيق',840,'unaudit'),(3479,'مشاهدة',841,'show'),(3480,'إضافة',841,'add'),(3481,'تعديل',841,'edit'),(3482,'حذف',841,'delete'),(3483,'ترحيل',841,'post'),(3484,'الغاء ترحيل',841,'unpost'),(3485,'تدقيق',841,'audit'),(3486,'الغاء تدقيق',841,'unaudit'),(3487,'مشاهدة',842,'show'),(3488,'إضافة',842,'add'),(3489,'تعديل',842,'edit'),(3490,'حذف',842,'delete'),(3491,'ترحيل',842,'post'),(3492,'الغاء ترحيل',842,'unpost'),(3493,'تدقيق',842,'audit'),(3494,'الغاء تدقيق',842,'unaudit'),(3495,'مشاهدة',843,'show'),(3496,'ترحيل/إيداع',844,'post'),(3497,'الغاء ترحيل',844,'unpost'),(3498,'تغيير/تأجيل',844,'change'),(3499,'إرجاع/الغاء',844,'return'),(3500,'تحويل/تجيير',844,'convert'),(3501,'الغاء تحويل/تجيير',844,'unconvert'),(3502,'ترحيل/إيداع',845,'post'),(3503,'الغاء ترحيل',845,'unpost'),(3504,'تغيير/تأجيل',845,'change'),(3505,'إرجاع/الغاء',845,'return'),(3506,'مشاهدة',846,'show'),(3507,'إضافة',846,'add'),(3508,'تعديل',846,'edit'),(3509,'قائمة الدخل',847,'incomeList'),(3510,'أرصدة الحسابات الشهرية',847,'monthlyAccountBalance'),(3511,'تحليل المصاريف',847,'outlaysAnalysis'),(3512,'أرصدة الحسابات الإجمالية',847,'totalAccountBalance'),(3513,'ميزان المراجعة',847,'trialBalance'),(3514,'كشف مراكز الكلف',847,'costCentersStatement'),(3515,'كشف مراكز الكلف التفصيلي',847,'detailedCostCenterStatement'),(3516,'مشاهدة',848,'show'),(3517,'إضافة',848,'add'),(3518,'تعديل',848,'edit'),(3519,'حذف',848,'delete'),(3520,'مشاهدة',849,'show'),(3521,'إضافة',849,'add'),(3522,'تعديل',849,'edit'),(3523,'حذف',849,'delete'),(3524,'كشف الذمم التفصيلي',850,'detailedStatement'),(3525,'كشف أعمار الذمم',850,'receivableAccountAging'),(3526,'إضافة',851,'add'),(3527,'تعديل',851,'edit'),(3528,'حذف',851,'delete'),(3529,'إضافة',852,'add'),(3530,'تعديل',852,'edit'),(3531,'حذف',852,'delete'),(3532,'إضافة',853,'add'),(3533,'تعديل',853,'edit'),(3534,'حذف',853,'delete'),(3535,'مشاهدة الحركات للمادة',853,'barcodeOverview'),(3536,'إضافة',854,'add'),(3537,'تعديل',854,'edit'),(3538,'حذف',854,'delete'),(3539,'ترحيل',854,'post'),(3540,'الغاء ترحيل',854,'unpost'),(3541,'إضافة',855,'add'),(3542,'تعديل',855,'edit'),(3543,'حذف',855,'delete'),(3544,'ترحيل',855,'post'),(3545,'الغاء ترحيل',855,'unpost'),(3546,'إضافة',856,'add'),(3547,'تعديل',856,'edit'),(3548,'حذف',856,'delete'),(3549,'ترحيل',856,'post'),(3550,'الغاء ترحيل',856,'unpost'),(3551,'إظهار الكلفة',856,'showCost'),(3552,'إظهار سعر البيع',856,'showSalesPrice'),(3553,'إضافة',857,'add'),(3554,'تعديل',857,'edit'),(3555,'حذف',857,'delete'),(3556,'ترحيل',857,'post'),(3557,'تدقيق/تنفيذ',857,'audit'),(3558,'إضافة',858,'add'),(3559,'تعديل',858,'edit'),(3560,'حذف',858,'delete'),(3561,'ترحيل',858,'post'),(3562,'إضافة',859,'add'),(3563,'تعديل',859,'edit'),(3564,'حذف',859,'delete'),(3565,'تلبية',859,'meet'),(3566,'ترحيل',859,'post'),(3567,'إضافة',860,'add'),(3568,'تعديل',860,'edit'),(3569,'حذف',860,'delete'),(3570,'ترحيل',860,'post'),(3571,'فك الترحيل',860,'unpost'),(3572,'إضافة',861,'add'),(3573,'تعديل',861,'edit'),(3574,'حذف',861,'delete'),(3575,'ترحيل',861,'post'),(3576,'الغاء الترحيل',861,'unpost'),(3577,'إضافة',862,'add'),(3578,'تعديل',862,'edit'),(3579,'نسخ',862,'copy'),(3580,'حذف',862,'delete'),(3581,'تغير الحالة',862,'changeStatus'),(3582,'إظهار سعر البيع',862,'showSalesPrice'),(3583,'إظهار نسبة الربح',862,'showProfitRatio'),(3584,'تعديل طريقة دفع النقدي',862,'editCashPaymentWay'),(3585,'تعديل اسم العميل ',862,'editClientName'),(3586,'إضافة',863,'add'),(3587,'تعديل',863,'edit'),(3588,'حذف',863,'delete'),(3589,'تلبية',863,'meet'),(3590,'ترحيل',863,'post'),(3591,'تعديل اسم العميل ',863,'editClientName'),(3592,'إضافة',864,'add'),(3593,'تعديل',864,'edit'),(3594,'مشاهدة',864,'show'),(3595,'حذف',864,'delete'),(3596,'ترحيل',864,'post'),(3597,'الغاء الترحيل',864,'unpost'),(3598,'تدقيق الفاتورة',864,'audit'),(3599,'الغاء تدقيق الفاتورة',864,'unaudit'),(3600,'ترحيل فاتورة غير مدققة',864,'postUnauditInvoice'),(3601,'ادخال تاريخ في المستقبل',864,'allowFutureDate'),(3602,'تعديل الفرع',864,'changeBranch'),(3603,'بيع بسعر أقل من الكلفة',864,'saleByLowerPriceOfCost'),(3604,'إظهار نسبة الربح',864,'showProfitRatio'),(3605,'إظهار الكلفة',864,'showCost'),(3606,'إظهار البونص',864,'showBonus'),(3607,'إظهار الكلفة الأصلية - السعر القائم',864,'showOriginalPrice'),(3608,'إظهار سعر البيع',864,'showSalesPrice'),(3609,'تعديل السعر',864,'editPrice'),(3610,'تعديل البونص',864,'editBonus'),(3611,'تعديل نوع العميل',864,'editClientType'),(3612,'تعديل العميل',864,'editClient'),(3613,'تعديل طريقة دفع النقدي',864,'editCashPaymentWay'),(3614,'إضافة مرفقات',864,'addAttachments'),(3615,'عرض المرفقات',864,'showAttachments'),(3616,'حذف المرفقات',864,'deleteAttachments'),(3617,'تعديل اسم العميل ',864,'editClientName'),(3618,'إضافة',865,'add'),(3619,'تعديل',865,'edit'),(3620,'حذف',865,'delete'),(3621,'ترحيل',865,'post'),(3622,'الغاء الترحيل',865,'unpost'),(3623,'إضافة',868,'add'),(3624,'تعديل',868,'edit'),(3625,'حذف',868,'delete'),(3626,'ترحيل',868,'post'),(3627,'الغاء ترحيل',868,'unpost'),(3628,'إضافة',869,'add'),(3629,'تعديل',869,'edit'),(3630,'حذف',869,'delete'),(3631,'ترحيل',869,'post'),(3632,'الغاء ترحيل',869,'unpost'),(3633,'إضافة',870,'add'),(3634,'تعديل',870,'edit'),(3635,'حذف',870,'delete'),(3636,'ترحيل',870,'post'),(3637,'الغاء ترحيل',870,'unpost'),(3638,'جرد المستودعات',871,'warehouseStocktaking'),(3639,'المبيعات والأرباح',871,'salesAndProfit'),(3640,'ضريبة المبيعات',871,'salesTax'),(3641,'ضريبة المشتريات',871,'purchasesTax'),(3642,'كشف تسوية البضاعة',871,'goodsSettlementStatement'),(3643,'تفاصيل المواد',871,'detailedItems'),(3644,'تقرير المبيعات بالسالب',871,'minusSales'),(3645,'تقرير  فواتير المبيعات',871,'generalSalesInvoices'),(3646,'تقرير فواتير المشتريات',871,'generalPurchaseInvoices'),(3647,'مشاهدة',872,'show'),(3648,'إضافة',872,'add'),(3649,'تعديل',872,'edit'),(3650,'حذف',872,'delete'),(3651,'مشاهدة',873,'show'),(3652,'إضافة',873,'add'),(3653,'تعديل',873,'edit'),(3654,'حذف',873,'delete'),(3655,'مشاهدة',874,'show'),(3656,'إضافة',874,'add'),(3657,'تعديل',874,'edit'),(3658,'حذف',874,'delete'),(3659,'دمج',874,'merge'),(3660,'مشاهدة',875,'show'),(3661,'إضافة',875,'add'),(3662,'تعديل',875,'edit'),(3663,'حذف',875,'delete'),(3664,'مشاهدة',876,'show'),(3665,'إضافة',876,'add'),(3666,'تعديل',876,'edit'),(3667,'حذف/إهمال',876,'delete'),(3668,'استعادة من المهمل',876,'restore'),(3669,'فسخ',876,'terminate'),(3670,'دمج',876,'merge'),(3671,'تجديد',876,'renew'),(3672,'ترحيل',876,'post'),(3673,'مشاهدة',877,'show'),(3674,'تصدير الفواتير',877,'export'),(3675,'الغاء التصدير',877,'cancelExport'),(3676,'التوزيع الشهري',877,'monthlyDistribute'),(3677,'مشاهدة',878,'show'),(3678,'تغيير الحالة',878,'changeStatus'),(3679,'مشاهدة',879,'show'),(3680,'مشاهدة',880,'show'),(3681,'إضافة',880,'add'),(3682,'تعديل',880,'edit'),(3683,'حذف',880,'delete'),(3684,'مشاهدة',881,'show'),(3685,'إضافة',881,'add'),(3686,'تعديل',881,'edit'),(3687,'حذف',881,'delete'),(3688,'ترحيل',881,'post'),(3689,'الغاء ترحيل',881,'unpost'),(3690,'مشاهدة',882,'show'),(3691,'إضافة',882,'add'),(3692,'تعديل',882,'edit'),(3693,'حذف',882,'delete'),(3694,'ترحيل',882,'post'),(3695,'الغاء ترحيل',882,'unpost'),(3696,'مشاهدة',883,'show'),(3697,'إضافة',883,'add'),(3698,'تعديل',883,'edit'),(3699,'حذف',883,'delete'),(3700,'ترحيل',883,'post'),(3701,'الغاء ترحيل',883,'unpost'),(3702,'الإيرادات الشهرية',884,'monthlyRevenues'),(3703,'إضافة',885,'add'),(3704,'تعديل',885,'edit'),(3705,'حذف',885,'delete'),(3706,'إضافة',886,'add'),(3707,'تعديل',886,'edit'),(3708,'حذف',886,'delete'),(3709,'إضافة',887,'add'),(3710,'تعديل',887,'edit'),(3711,'حذف',887,'delete'),(3712,'إضافة',888,'add'),(3713,'تعديل',888,'edit'),(3714,'حذف',888,'delete'),(3715,'إضافة',889,'add'),(3716,'تعديل',889,'edit'),(3717,'حذف',889,'delete'),(3718,'إضافة',890,'add'),(3719,'تعديل',890,'edit'),(3720,'حذف',890,'delete'),(3721,'إضافة',891,'add'),(3722,'تعديل',891,'edit'),(3723,'حذف',891,'delete'),(3724,'إضافة',892,'add'),(3725,'تعديل',892,'edit'),(3726,'حذف',892,'delete'),(3727,'مشاهدة',893,'show'),(3728,'إضافة',893,'add'),(3729,'تعديل',893,'edit'),(3730,'حذف',893,'delete'),(3731,'ربط الطابعة',893,'connectPrinter'),(3732,'مشاهدة',894,'show'),(3733,'مشاهدة الحركات',894,'showDetails'),(3734,'ترحيل إلى فوترة',894,'postToFotara'),(3735,'إغلاق',894,'close'),(3736,'ترحيل',894,'post'),(3737,'المواد المحذوفة',895,'deletedItems'),(3738,'مبيعات الصناديق',895,'boxesSales'),(3739,'مبيعات الصناديق',895,'detailedBoxes'),(3740,'تعديل',896,'edit'),(3741,'إضافة فواتير المبيعات',899,'addSalesInvoices'),(3742,'تعديل فواتير المبيعات',899,'editSalesInvoices'),(3743,'ترحيل فواتر المبيعات',899,'postSalesInvoices'),(3744,'إضافة طلبات المبيعات',899,'addSalesOrders'),(3745,'تعديل طلبات المبيعات',899,'editSalesOrders'),(3746,'تحويل طلبات المبيعات',899,'convertSalesOrders'),(3747,'إضافة عروض الاسعار',899,'addSalesOffers'),(3748,'تعديل عروض الاسعار',899,'editSalesOffers'),(3749,'تحويل عروض الاسعار',899,'convertSalesOffers'),(3750,'إضافة سندات القبض',900,'addReceiptEntry'),(3751,'تعديل سندات القبض',900,'editReceiptEntry'),(3752,'ترحيل سندات القبض ',900,'postReceiptEntry'),(3753,'إضافة',901,'add'),(3754,'تعديل',901,'edit'),(3755,'حذف',901,'delete'),(3756,'ترحيل',901,'post'),(3757,'الغاء ترحيل',901,'unpost'),(3758,'مشاهدة الاحصائيات الإجمالية',902,'showTotalsCharts'),(3759,'مشاهدة الشاشة',903,'show'),(3760,'التعديل',903,'edit'),(3761,'مشاهدة الشاشة',904,'show'),(3762,'التعديل',904,'edit'),(3763,'إنشاء السنوات المالية',905,'create'),(3764,'فتح السنة المالية',905,'openYear'),(3765,'اغلاق السنة المالية',905,'closeYear'),(3766,'اغلاق الاشهر المالية',905,'closeMonth'),(3767,'تعيين السنة الفعّالة',905,'activateYear'),(3768,'مشاهدة الشاشة',906,'show'),(3769,'إضافة',906,'add'),(3770,'التعديل',906,'edit'),(3771,'حذف',906,'delete'),(3772,'تغيير الحالة',906,'changeStatus'),(3773,'مشاهدة المستخدمين',907,'show'),(3774,'تغعيل الحسابات',907,'activate'),(3775,'إنشاء مستخدم جديد',907,'add'),(3776,'تعديل البيانات العامة',907,'editInfo'),(3777,'تعديل الصلاحيات',907,'editPermissions'),(3778,'حذف',907,'delete'),(3779,'مشاهدة السجل',908,'show'),(3780,'مشاهدة الشاشة',909,'show'),(3781,'التعديل',909,'edit'),(3782,'إضافة',909,'add'),(3783,'حذف',909,'delete'),(3784,'مشاهدة الشاشة',910,'show'),(3785,'امكانية الربط',910,'connect'),(3786,'مشاهدة الشاشة',911,'show'),(3787,'التعديل',911,'edit'),(3788,'مشاهدة الشاشة',912,'show'),(3789,'التعديل',912,'edit'),(3790,'مشاهدة الشاشة',913,'show'),(3791,'التعديل',913,'edit'),(3792,'انشاء ضريبة',914,'add'),(3793,'انشاء ضريبة',914,'edit'),(3794,'تفعيل/الغاء تفعيل',914,'activate'),(3795,'فك ترحيل سند القيد',915,'unpostEntry'),(3796,'فك ترحيل سند القبض',915,'unpostReceipt'),(3797,'فك ترحيل سند الصرف',915,'unpostExchange'),(3798,'فك ترحيل فاتورة بيع خدمات',915,'unpostServiceInvoice'),(3799,'فك ترحيل سند مردود خدمات',915,'unpostReturnedServiceBond'),(3800,'فك ترحيل سند إشعار مدين',915,'unpostDebitNote'),(3801,'فك ترحيل سند إشعار دائن',915,'unpostCreditNote'),(3802,'السقف اليومي لتصدير الشيكات',915,'exchangeChecksDailyCeiling'),(3803,'توقيع سند القيد',916,'entry'),(3804,'توقيع سند الصرف',916,'exchange'),(3805,'توقيع سند القبض',916,'receipt'),(3806,'توقيع فاتورة بيع الخدمات',916,'serviceInvoice'),(3807,'توقيع سند مردود خدمات',916,'returnedServiceInvoice'),(3808,'توقيع إشعار المدين',916,'debitNote'),(3809,'توقيع إشعار الدائن',916,'creditNote'),(3810,'إمكانية تصدير الفواتير',917,'enableExport'),(3811,'إمكانية التوزيع الشهري للفواتير',917,'enableDistribute'),(3812,'إضافة',918,'add'),(3813,'تعديل',918,'edit'),(3814,'حذف',918,'delete'),(3815,'إضافة',919,'add'),(3816,'تعديل',919,'edit'),(3817,'حذف',919,'delete'),(3818,'إضافة',920,'add'),(3819,'تعديل',920,'edit'),(3820,'حذف',920,'delete'),(3821,'إضافة',921,'add'),(3822,'تعديل',921,'edit'),(3823,'حذف',921,'delete'),(3824,'إضافة',922,'add'),(3825,'تعديل',922,'edit'),(3826,'حذف',922,'delete'),(3827,'إضافة',923,'add'),(3828,'تعديل',923,'edit'),(3829,'حذف',923,'delete'),(3830,'تفعيل مرحلة التنفيذ',924,'enableAuditingPhase'),(3831,'ترحيل مصاريف التصنيع',924,'postExpensesToAccounting'),(3832,'إضافة',925,'add'),(3833,'تعديل',925,'edit'),(3834,'حذف',925,'delete'),(3835,'إضافة',926,'add'),(3836,'تعديل',926,'edit'),(3837,'حذف',926,'delete'),(3838,'إضافة',927,'add'),(3839,'تعديل',927,'edit'),(3840,'حذف',927,'delete'),(3841,'مشاهدة',928,'show'),(3842,'إضافة',928,'add'),(3843,'تعديل',928,'editInfo'),(3844,'تفعيل/الغاء التفعيل',928,'activate'),(3845,'مشاهدة',929,'show'),(3846,'حفظ',929,'save'),(3847,'مشاهدة',930,'show'),(3848,'حفظ',930,'save'),(3849,'مشاهدة',931,'show'),(3850,'حفظ',931,'save'),(3851,'مشاهدة',932,'show'),(3852,'إضافة',932,'add'),(3853,'تعديل',932,'editInfo');

--
-- Table structure for table `code_modules`
--

CREATE TABLE `code_modules` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `code` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `active` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=109 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `code_modules`
--

INSERT INTO `code_modules` VALUES (97,'المحاسبة','accounting',1),(98,'الذمم','receivable',1),(99,'المستودعات','warehouses',1),(100,'العقار/الإيجارات','rentals',0),(101,'نقاط البيع - POS','pos',0),(102,'المندوبين','representatives',0),(103,'إعدادات عامة','generalSettings',1),(104,'إعدادات المحاسبة','accountingSettings',1),(105,'إعدادات الإيجارات','rentalsSettings',0),(106,'إعدادات المستودعات','warehousesSettings',1),(107,'إعدادات نقط البيع','posSettings',0),(108,'إعدادات المندوبين','representativesSettings',0);

--
-- Table structure for table `code_sections`
--

CREATE TABLE `code_sections` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `module_id` bigint unsigned NOT NULL,
  `code` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `active` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `code_sections_module_id_foreign` (`module_id`),
  CONSTRAINT `code_sections_module_id_foreign` FOREIGN KEY (`module_id`) REFERENCES `code_modules` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=933 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `code_sections`
--

INSERT INTO `code_sections` VALUES (832,'شجرة الحسابات',97,'accountsTree',1),(833,'الأرصدة الافتتاحية',97,'initialBalances',1),(834,'شجرة مراكز الكلفة',97,'costCenterTree',1),(835,'تدقيق المستندات',97,'bondsAuditing',1),(836,'سند القيد',97,'entries',1),(837,'سند القبض',97,'receipts',1),(838,'سند الصرف',97,'exchanges',1),(839,'فاتورة بيع الخدمات',97,'servicesInvoices',1),(840,'مردودات الخدمات',97,'returnedServicesBonds',1),(841,'إشعار مدين',97,'debitNotes',1),(842,'إشعار دائن',97,'creditNotes',1),(843,'القيود الآلية',97,'automatedEntries',1),(844,'حافظة الشيكات القبض',97,'receiptChecksKeeper',1),(845,'حافظة الشيكات الصرف',97,'exchangeChecksKeeper',1),(846,'الشيكات',97,'checks',1),(847,'تقارير',97,'reports',1),(848,'أنوع الذمم',98,'receivableTypes',1),(849,'الذمم',98,'receivableAccounts',1),(850,'تقارير',98,'reports',1),(851,'الفروع',99,'branches',1),(852,'العائلات',99,'categories',1),(853,'المواد',99,'items',1),(854,'سند الادخال',99,'entryBonds',1),(855,'سند الإخراج',99,'outBonds',1),(856,'سند التحويل',99,'convertBonds',1),(857,'سند التصنيع',99,'manufacturingBonds',1),(858,'أمر الشراء',99,'purchaseCommands',1),(859,'طلب الشراء',99,'purchaseOrders',1),(860,'فاتورة الشراء',99,'purchaseInvoices',1),(861,'مردودات المشتريات',99,'returnedPurchaseBonds',1),(862,'عرض سعر',99,'salesPriceOffers',1),(863,'طلب مبيعات',99,'salesOrders',1),(864,'فاتورة مبيعات',99,'salesInvoices',1),(865,'مردودات مبيعات',99,'returnedSalesBonds',1),(866,'طلب الإنتاج',99,'productionRequest',1),(867,'أمر الإنتاج',99,'productionCommand',1),(868,'سند الجرد',99,'stocktakingBonds',1),(869,'سند زيادة الكلفه',99,'costIncreaseBonds',0),(870,'سند تخفيض الكلفه',99,'costDecreaseBonds',0),(871,'تقارير',99,'reports',1),(872,'المباني',100,'buildings',0),(873,'الطوابق',100,'floors',0),(874,'المحلات',100,'shops',0),(875,'البوثات',100,'booths',0),(876,'العقود',100,'contracts',0),(877,'فواتير العقود',100,'contractInvoices',0),(878,'حركات المستأجرين',100,'tenantsActions',0),(879,'طلبات التأجير',100,'rentalRequests',0),(880,'فعاليات المستأجرين',100,'tenantsEvents',0),(881,'سند القبض',100,'receipts',0),(882,'إشعار مدين',100,'debitNotes',0),(883,'إشعار دائن',100,'creditNotes',0),(884,'تقارير',100,'reports',0),(885,'الفروع',101,'branches',0),(886,'العائلات',101,'categories',0),(887,'القوائم',101,'menus',0),(888,'المواد',101,'items',0),(889,'فاتورة مبيعات',101,'salesInvoices',0),(890,'مردودات مبيعات',101,'returnedSalesBonds',0),(891,'تبديل عناصر المبيعات',101,'exchangeBonds',0),(892,'العروض',101,'offers',0),(893,'الأقسام',101,'sections',0),(894,'مبيعات الأيام',101,'daysSales',0),(895,'تقارير',101,'reports',0),(896,'الصناديق',101,'cashDevices',0),(897,'توصيل الطلبيات',102,'ordersDelivery',0),(898,'كاش فان',102,'cashVan',0),(899,'مندوب مبيعات',102,'salesMan',0),(900,'التحصيل',102,'collector',0),(901,'الشحنات',102,'shipmentBonds',0),(902,'الشاشة الرئيسية',103,'homePage',1),(903,'تعريف الشركة',103,'companyDefinition',1),(904,'إعدادات عامة',103,'general',1),(905,'السنوات المالية',103,'fiscalYears',1),(906,'طرق تسديد الذمم',103,'receivablePaymentMethods',1),(907,'المستخدمين',103,'employees',1),(908,'سجل حركات المستخدمين',103,'employeesActionsLog',1),(909,'تصنيفات الذمم',103,'receivableCategory',1),(910,'ربط الحسابات البنكية',104,'bankAccountsConnecting',1),(911,'الحسابات الافتراضية',104,'defaultAccounts',1),(912,'مراكز الكلفة',104,'costCenters',1),(913,'المحافظ الإلكترونية',104,'ewalletAccounts',1),(914,'اعداد الضريبة',104,'taxes',1),(915,'السندات',104,'bonds',1),(916,'التواقيع',104,'signatures',1),(917,'عقود الإيجارات',105,'rentalContracts',0),(918,'تصنيفات عقود الإيجارات',105,'rentalContractCategories',0),(919,'قوالب الردود',105,'responseTemplates',0),(920,'تعريف الوحدات',106,'warehousesUnits',1),(921,'تعريف أحجام المواد',106,'warehousesItemSizes',1),(922,'أنواع سندات الإدخال',106,'warehousesEntryBondTypes',1),(923,'أنواع سندات الإخراج',106,'warehousesOutBondTypes',1),(924,'سندات التصنيع',106,'warehousesManufacturingBonds',1),(925,'أنواع الأسعار',106,'barcodePriceTypes',1),(926,'شروط الدفع',106,'paymentTerms',1),(927,'شروط الشحن والتسليم',106,'deliveryTerms',1),(928,'حسابات المستخدمين',107,'users',0),(929,'إعدادات عامة',107,'generalSettings',0),(930,'إعدادات المبيعات',107,'salesSettings',0),(931,'إعدادات الصناديق',107,'boxesSettings',0),(932,'تعريف السيارات',108,'deliveryCars',0);

--
-- Table structure for table `contract_categories`
--

CREATE TABLE `contract_categories` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `parent_id` bigint unsigned DEFAULT NULL,
  `level` int NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`),
  KEY `contract_categories_parent_id_foreign` (`parent_id`),
  CONSTRAINT `contract_categories_parent_id_foreign` FOREIGN KEY (`parent_id`) REFERENCES `contract_categories` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `contract_categories`
--


--
-- Table structure for table `convert_bond_items`
--

CREATE TABLE `convert_bond_items` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `bond_id` bigint unsigned NOT NULL,
  `barcode_id` bigint unsigned NOT NULL,
  `quantity` double NOT NULL,
  `cost` double NOT NULL,
  `notice` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  PRIMARY KEY (`id`),
  KEY `convert_bond_items_bond_id_foreign` (`bond_id`),
  KEY `convert_bond_items_barcode_id_foreign` (`barcode_id`),
  CONSTRAINT `convert_bond_items_barcode_id_foreign` FOREIGN KEY (`barcode_id`) REFERENCES `barcodes` (`id`),
  CONSTRAINT `convert_bond_items_bond_id_foreign` FOREIGN KEY (`bond_id`) REFERENCES `convert_bonds` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `convert_bond_items`
--


--
-- Table structure for table `convert_bonds`
--

CREATE TABLE `convert_bonds` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `date` date NOT NULL,
  `employee_id` bigint unsigned DEFAULT NULL,
  `bond_number` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `from_temp_branch` tinyint(1) NOT NULL DEFAULT '0',
  `to_temp_branch` tinyint(1) NOT NULL DEFAULT '0',
  `from_branch_id` bigint unsigned NOT NULL,
  `to_branch_id` bigint unsigned NOT NULL,
  `type_id` bigint unsigned NOT NULL,
  `differences_from_date` date DEFAULT NULL,
  `notice` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `post_status` tinyint(1) NOT NULL DEFAULT '0',
  `posted_at` datetime DEFAULT NULL,
  `builder_model` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `builder_model_id` bigint DEFAULT NULL,
  `finished_temp_tour` tinyint(1) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `convert_bonds_from_branch_id_foreign` (`from_branch_id`),
  KEY `convert_bonds_to_branch_id_foreign` (`to_branch_id`),
  KEY `convert_bonds_type_id_foreign` (`type_id`),
  KEY `convert_bonds_employee_id_foreign` (`employee_id`),
  CONSTRAINT `convert_bonds_employee_id_foreign` FOREIGN KEY (`employee_id`) REFERENCES `employees` (`id`),
  CONSTRAINT `convert_bonds_from_branch_id_foreign` FOREIGN KEY (`from_branch_id`) REFERENCES `branches` (`id`),
  CONSTRAINT `convert_bonds_to_branch_id_foreign` FOREIGN KEY (`to_branch_id`) REFERENCES `branches` (`id`),
  CONSTRAINT `convert_bonds_type_id_foreign` FOREIGN KEY (`type_id`) REFERENCES `convert_bond_types` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `convert_bonds`
--


--
-- Table structure for table `converted_checks`
--

CREATE TABLE `converted_checks` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `receipt_check_id` bigint unsigned NOT NULL,
  `date` date NOT NULL,
  `credit_account_id` bigint unsigned NOT NULL,
  `receivable_account_id` bigint unsigned NOT NULL,
  `amount` double(13,3) NOT NULL,
  `post_status` tinyint(1) NOT NULL DEFAULT '0',
  `notice` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `converted_checks_receipt_check_id_foreign` (`receipt_check_id`),
  KEY `converted_checks_credit_account_id_foreign` (`credit_account_id`),
  KEY `converted_checks_receivable_account_id_foreign` (`receivable_account_id`),
  CONSTRAINT `converted_checks_credit_account_id_foreign` FOREIGN KEY (`credit_account_id`) REFERENCES `accounts` (`id`),
  CONSTRAINT `converted_checks_receipt_check_id_foreign` FOREIGN KEY (`receipt_check_id`) REFERENCES `receipt_checks` (`id`),
  CONSTRAINT `converted_checks_receivable_account_id_foreign` FOREIGN KEY (`receivable_account_id`) REFERENCES `receivable_accounts` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `converted_checks`
--


--
-- Table structure for table `cost_centers`
--

CREATE TABLE `cost_centers` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `parent_id` bigint unsigned DEFAULT NULL,
  `ar_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `en_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `level` int NOT NULL DEFAULT '1',
  `status` tinyint(1) NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`),
  KEY `cost_centers_parent_id_foreign` (`parent_id`),
  CONSTRAINT `cost_centers_parent_id_foreign` FOREIGN KEY (`parent_id`) REFERENCES `cost_centers` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `cost_centers`
--


--
-- Table structure for table `cost_decrease_bond_items`
--

CREATE TABLE `cost_decrease_bond_items` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `cost_decrease_bond_id` bigint unsigned NOT NULL,
  `purchase_item_id` int unsigned NOT NULL,
  `barcode_id` bigint unsigned NOT NULL,
  `quantity` double NOT NULL,
  `remaining_quantity` double NOT NULL,
  `cost` double NOT NULL,
  `new_cost` double NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `cost_decrease_bond_items_cost_decrease_bond_id_foreign` (`cost_decrease_bond_id`),
  KEY `cost_decrease_bond_items_barcode_id_foreign` (`barcode_id`),
  CONSTRAINT `cost_decrease_bond_items_barcode_id_foreign` FOREIGN KEY (`barcode_id`) REFERENCES `barcodes` (`id`),
  CONSTRAINT `cost_decrease_bond_items_cost_decrease_bond_id_foreign` FOREIGN KEY (`cost_decrease_bond_id`) REFERENCES `cost_decrease_bonds` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `cost_decrease_bond_items`
--


--
-- Table structure for table `cost_decrease_bonds`
--

CREATE TABLE `cost_decrease_bonds` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `date` date NOT NULL,
  `bond_number` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `employee_id` bigint unsigned NOT NULL,
  `purchase_invoice_id` bigint unsigned NOT NULL,
  `post_status` tinyint(1) NOT NULL DEFAULT '0',
  `posted_at` timestamp NULL DEFAULT NULL,
  `notice` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `cost_decrease_bonds_purchase_invoice_id_foreign` (`purchase_invoice_id`),
  CONSTRAINT `cost_decrease_bonds_purchase_invoice_id_foreign` FOREIGN KEY (`purchase_invoice_id`) REFERENCES `purchase_invoices` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `cost_decrease_bonds`
--


--
-- Table structure for table `cost_increase_bond_items`
--

CREATE TABLE `cost_increase_bond_items` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `cost_increase_bond_id` bigint unsigned NOT NULL,
  `purchase_item_id` int unsigned NOT NULL,
  `barcode_id` bigint unsigned NOT NULL,
  `quantity` double NOT NULL,
  `remaining_quantity` double NOT NULL,
  `cost` double NOT NULL,
  `new_cost` double NOT NULL,
  PRIMARY KEY (`id`),
  KEY `cost_increase_bond_items_cost_increase_bond_id_foreign` (`cost_increase_bond_id`),
  KEY `cost_increase_bond_items_barcode_id_foreign` (`barcode_id`),
  CONSTRAINT `cost_increase_bond_items_barcode_id_foreign` FOREIGN KEY (`barcode_id`) REFERENCES `barcodes` (`id`),
  CONSTRAINT `cost_increase_bond_items_cost_increase_bond_id_foreign` FOREIGN KEY (`cost_increase_bond_id`) REFERENCES `cost_increase_bonds` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `cost_increase_bond_items`
--


--
-- Table structure for table `cost_increase_bonds`
--

CREATE TABLE `cost_increase_bonds` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `date` date NOT NULL,
  `bond_number` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `employee_id` bigint unsigned NOT NULL,
  `purchase_invoice_id` bigint unsigned NOT NULL,
  `post_status` tinyint(1) NOT NULL DEFAULT '0',
  `posted_at` timestamp NULL DEFAULT NULL,
  `notice` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `cost_increase_bonds_purchase_invoice_id_foreign` (`purchase_invoice_id`),
  CONSTRAINT `cost_increase_bonds_purchase_invoice_id_foreign` FOREIGN KEY (`purchase_invoice_id`) REFERENCES `purchase_invoices` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `cost_increase_bonds`
--


--
-- Table structure for table `countries`
--

CREATE TABLE `countries` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `ar_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `en_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `currency_symbol` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `countries`
--

INSERT INTO `countries` VALUES (1,'الأردن','Jordan',NULL,'2024-01-10 21:09:32','2024-01-10 21:09:32'),(2,'السعودية','Saudi ِArabia',NULL,'2024-01-10 21:09:32','2024-01-10 21:09:32'),(3,'الولايات المتحدة','United States',NULL,'2024-01-10 21:09:32','2024-01-10 21:09:32'),(4,'سوريا','Syria',NULL,'2024-01-10 21:09:32','2024-01-10 21:09:32'),(5,'العراق','Iraq',NULL,'2024-01-10 21:09:32','2024-01-10 21:09:32'),(6,'مصر','Egypt',NULL,'2024-01-10 21:09:32','2024-01-10 21:09:32');

--
-- Table structure for table `credit_note_items`
--

CREATE TABLE `credit_note_items` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `note_id` bigint unsigned NOT NULL,
  `debit_account_id` bigint unsigned NOT NULL,
  `cost_center_id` bigint unsigned DEFAULT NULL,
  `amount` double(13,3) NOT NULL,
  `notice` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  PRIMARY KEY (`id`),
  KEY `credit_note_items_note_id_foreign` (`note_id`),
  KEY `credit_note_items_debit_account_id_foreign` (`debit_account_id`),
  KEY `credit_note_items_cost_center_id_foreign` (`cost_center_id`),
  CONSTRAINT `credit_note_items_cost_center_id_foreign` FOREIGN KEY (`cost_center_id`) REFERENCES `cost_centers` (`id`),
  CONSTRAINT `credit_note_items_debit_account_id_foreign` FOREIGN KEY (`debit_account_id`) REFERENCES `accounts` (`id`),
  CONSTRAINT `credit_note_items_note_id_foreign` FOREIGN KEY (`note_id`) REFERENCES `credit_notes` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `credit_note_items`
--


--
-- Table structure for table `credit_notes`
--

CREATE TABLE `credit_notes` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `year_id` bigint unsigned NOT NULL,
  `period_id` bigint unsigned NOT NULL,
  `employee_id` bigint unsigned DEFAULT NULL,
  `date` date NOT NULL,
  `bond_number` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `credit_receivable_id` bigint unsigned DEFAULT NULL,
  `credit_account_id` bigint unsigned DEFAULT NULL,
  `amount` double(13,3) NOT NULL,
  `post_status` smallint NOT NULL DEFAULT '0',
  `audit_status` tinyint(1) NOT NULL DEFAULT '0',
  `notice` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `credit_notes_year_id_foreign` (`year_id`),
  KEY `credit_notes_period_id_foreign` (`period_id`),
  KEY `credit_notes_credit_receivable_id_foreign` (`credit_receivable_id`),
  KEY `credit_notes_credit_account_id_foreign` (`credit_account_id`),
  KEY `credit_notes_employee_id_foreign` (`employee_id`),
  CONSTRAINT `credit_notes_credit_account_id_foreign` FOREIGN KEY (`credit_account_id`) REFERENCES `accounts` (`id`),
  CONSTRAINT `credit_notes_credit_receivable_id_foreign` FOREIGN KEY (`credit_receivable_id`) REFERENCES `receivable_accounts` (`id`),
  CONSTRAINT `credit_notes_employee_id_foreign` FOREIGN KEY (`employee_id`) REFERENCES `employees` (`id`),
  CONSTRAINT `credit_notes_period_id_foreign` FOREIGN KEY (`period_id`) REFERENCES `fiscal_periods` (`id`),
  CONSTRAINT `credit_notes_year_id_foreign` FOREIGN KEY (`year_id`) REFERENCES `fiscal_years` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `credit_notes`
--


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

CREATE TABLE `currencies` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `symbol` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `ar_symbol` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `flag` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `exchange_price` double(10,5) NOT NULL DEFAULT '1.00000',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `currencies` VALUES (1,'الدينار الاردني','JOD','د.أ',NULL,1.00000),(2,'ريال سعودي','SAR','ر.س',NULL,0.18959),(3,'الدولار الامريكي','USD','$',NULL,0.71000),(4,'الليرة السورية','SYP','ل.س',NULL,0.00005),(5,'الدينار العراقي','IQD','د.ع',NULL,0.00054),(6,'الجنيه مصري','EGP','ج.م',NULL,0.02298);

--
-- Table structure for table `debit_note_items`
--

CREATE TABLE `debit_note_items` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `note_id` bigint unsigned NOT NULL,
  `credit_account_id` bigint unsigned NOT NULL,
  `cost_center_id` bigint unsigned DEFAULT NULL,
  `amount` double(13,3) NOT NULL,
  `notice` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  PRIMARY KEY (`id`),
  KEY `debit_note_items_note_id_foreign` (`note_id`),
  KEY `debit_note_items_credit_account_id_foreign` (`credit_account_id`),
  KEY `debit_note_items_cost_center_id_foreign` (`cost_center_id`),
  CONSTRAINT `debit_note_items_cost_center_id_foreign` FOREIGN KEY (`cost_center_id`) REFERENCES `cost_centers` (`id`),
  CONSTRAINT `debit_note_items_credit_account_id_foreign` FOREIGN KEY (`credit_account_id`) REFERENCES `accounts` (`id`),
  CONSTRAINT `debit_note_items_note_id_foreign` FOREIGN KEY (`note_id`) REFERENCES `debit_notes` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `debit_note_items`
--


--
-- Table structure for table `debit_notes`
--

CREATE TABLE `debit_notes` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `year_id` bigint unsigned NOT NULL,
  `period_id` bigint unsigned NOT NULL,
  `employee_id` bigint unsigned DEFAULT NULL,
  `date` date NOT NULL,
  `bond_number` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `debit_receivable_id` bigint unsigned DEFAULT NULL,
  `debit_account_id` bigint unsigned DEFAULT NULL,
  `amount` double(13,3) NOT NULL,
  `post_status` smallint NOT NULL DEFAULT '0',
  `audit_status` tinyint(1) NOT NULL DEFAULT '0',
  `notice` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `debit_notes_year_id_foreign` (`year_id`),
  KEY `debit_notes_period_id_foreign` (`period_id`),
  KEY `debit_notes_debit_receivable_id_foreign` (`debit_receivable_id`),
  KEY `debit_notes_debit_account_id_foreign` (`debit_account_id`),
  KEY `debit_notes_employee_id_foreign` (`employee_id`),
  CONSTRAINT `debit_notes_debit_account_id_foreign` FOREIGN KEY (`debit_account_id`) REFERENCES `accounts` (`id`),
  CONSTRAINT `debit_notes_debit_receivable_id_foreign` FOREIGN KEY (`debit_receivable_id`) REFERENCES `receivable_accounts` (`id`),
  CONSTRAINT `debit_notes_employee_id_foreign` FOREIGN KEY (`employee_id`) REFERENCES `employees` (`id`),
  CONSTRAINT `debit_notes_period_id_foreign` FOREIGN KEY (`period_id`) REFERENCES `fiscal_periods` (`id`),
  CONSTRAINT `debit_notes_year_id_foreign` FOREIGN KEY (`year_id`) REFERENCES `fiscal_years` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `debit_notes`
--


--
-- Table structure for table `deleted_item_log_actions`
--

CREATE TABLE `deleted_item_log_actions` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `cashier_id` bigint unsigned NOT NULL,
  `supervisor_id` bigint unsigned DEFAULT NULL,
  `branch_id` bigint unsigned NOT NULL,
  `details` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `deleted_item_log_actions_cashier_id_foreign` (`cashier_id`),
  KEY `deleted_item_log_actions_supervisor_id_foreign` (`supervisor_id`),
  KEY `deleted_item_log_actions_branch_id_foreign` (`branch_id`),
  CONSTRAINT `deleted_item_log_actions_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`),
  CONSTRAINT `deleted_item_log_actions_cashier_id_foreign` FOREIGN KEY (`cashier_id`) REFERENCES `pos_users` (`id`),
  CONSTRAINT `deleted_item_log_actions_supervisor_id_foreign` FOREIGN KEY (`supervisor_id`) REFERENCES `pos_users` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `deleted_item_log_actions`
--


--
-- Table structure for table `delivery_cars`
--

CREATE TABLE `delivery_cars` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `number` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `delivery_cars`
--


--
-- Table structure for table `delivery_terms`
--

CREATE TABLE `delivery_terms` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `delivery_terms`
--


--
-- Table structure for table `draft_purchase_order_meets`
--

CREATE TABLE `draft_purchase_order_meets` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `purchase_order_id` bigint unsigned NOT NULL,
  `data` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `draft_purchase_order_meets_purchase_order_id_foreign` (`purchase_order_id`),
  CONSTRAINT `draft_purchase_order_meets_purchase_order_id_foreign` FOREIGN KEY (`purchase_order_id`) REFERENCES `purchase_orders` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `draft_purchase_order_meets`
--


--
-- Table structure for table `draft_sales_order_meets`
--

CREATE TABLE `draft_sales_order_meets` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `sales_order_id` bigint unsigned NOT NULL,
  `data` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `draft_sales_order_meets_sales_order_id_foreign` (`sales_order_id`),
  CONSTRAINT `draft_sales_order_meets_sales_order_id_foreign` FOREIGN KEY (`sales_order_id`) REFERENCES `sales_orders` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `draft_sales_order_meets`
--


--
-- Table structure for table `drivers`
--

CREATE TABLE `drivers` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `drivers`
--


--
-- Table structure for table `entries`
--

CREATE TABLE `entries` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `year_id` bigint unsigned NOT NULL,
  `period_id` bigint unsigned NOT NULL,
  `employee_id` bigint unsigned DEFAULT NULL,
  `bond_number` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `date` date NOT NULL,
  `amount` double(13,3) NOT NULL,
  `post_status` tinyint(1) NOT NULL DEFAULT '0',
  `audit_status` tinyint(1) NOT NULL DEFAULT '0',
  `notice` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `entries_year_id_foreign` (`year_id`),
  KEY `entries_period_id_foreign` (`period_id`),
  KEY `entries_employee_id_foreign` (`employee_id`),
  CONSTRAINT `entries_employee_id_foreign` FOREIGN KEY (`employee_id`) REFERENCES `employees` (`id`),
  CONSTRAINT `entries_period_id_foreign` FOREIGN KEY (`period_id`) REFERENCES `fiscal_periods` (`id`),
  CONSTRAINT `entries_year_id_foreign` FOREIGN KEY (`year_id`) REFERENCES `fiscal_years` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=65 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `entries`
--

INSERT INTO `entries` VALUES (1,1,10,1,'10/001','2023-10-20',20000.000,1,0,'وذلك عن تسجيل الشركة','2024-04-06 12:40:19','2024-04-06 13:17:48',NULL),(2,1,10,1,'10/002','2023-10-09',20000.000,1,0,'ايداع راس المال ت 09/10/2023','2024-04-06 12:40:59','2024-04-06 13:17:48',NULL),(3,1,11,1,'11/001','2023-11-22',5.000,1,0,'عمولات بنكية 2023 - اصدار دفتر شيكات','2024-04-06 12:41:34','2024-04-06 13:17:48',NULL),(4,1,12,1,'12/001','2023-12-13',72000.000,1,0,'ايداع نقدي الشريك ت 13/12/2023','2024-04-06 12:42:12','2024-04-06 13:17:48',NULL),(5,1,12,1,'12/002','2023-12-17',27000.000,1,0,'سحب نقدي ت 17-12-2023 / لتغطية شراء موجودات واثاث نقدا','2024-04-06 12:43:22','2024-04-06 13:17:48',NULL),(6,1,12,1,'12/003','2023-12-28',3182.000,1,0,'شيك #3 ت 28-12-2023','2024-04-06 12:44:14','2024-04-06 13:17:48',NULL),(7,1,12,1,'12/004','2023-12-20',400000.000,1,0,'وذلك عن اثبات عقد بيع وتطوير برنامج ف#001 نبض التكنولوجيا للبرمجيات','2024-04-06 12:56:13','2024-04-06 13:17:48',NULL),(8,1,12,1,'12/005','2023-12-12',1550.108,1,0,'وذلك عن ف#42563 سيتي سنتر - موجودات ثابتة واجهزة كمبيوتر حسب المرفق','2024-04-06 13:01:26','2024-04-06 13:17:48',NULL),(9,1,11,1,'11/002','2023-11-30',3930.200,1,0,'وذلك عن رواتب شهر 11 2023','2024-04-06 13:10:01','2024-04-06 13:17:48',NULL),(10,1,12,1,'12/006','2023-12-31',8230.600,1,0,'وذلك عن رواتب شهر 12 2023','2024-04-06 13:14:49','2024-04-06 14:01:50',NULL),(11,1,12,1,'12/007','2023-12-31',7.482,1,0,'ضمان','2024-04-06 13:16:33','2024-04-06 13:19:09',NULL),(12,1,11,1,'11/003','2023-11-30',748.200,1,0,'تسديد دفعة ضمان نقدا - شهر 11 2023','2024-04-06 13:17:31','2024-04-06 13:17:48',NULL),(13,1,10,1,'10/003','2023-10-31',41386.000,1,0,'شراء موجودات ثابتة 2023','2024-04-06 13:38:16','2024-04-06 13:49:38',NULL),(14,1,10,1,'10/004','2023-10-31',26928.000,1,0,'شراء موجودات ثابتة - الحاووط','2024-04-06 13:58:28','2024-04-06 13:58:40',NULL),(15,1,12,1,'12/008','2023-12-31',500.000,1,0,'اتعاب التدقيق 2023','2024-04-06 14:00:20','2024-04-06 14:00:26',NULL),(16,1,10,1,'10/005','2023-10-01',15000.000,0,0,'وذلك عن تمويل مدفوعات تاسيس الشركة 2023','2024-04-06 14:03:14','2024-04-07 10:46:11','2024-04-07 10:46:11'),(17,2,15,1,'03/001','2024-03-11',47000.000,1,0,'ف#0003875 ت 11/03/2024 دفعة اولى - شركة سمير العمري ONLINE24 / بدل ادارة موقع الاكتروني - دفعة اولى من الاتفاقية','2024-04-08 11:37:42','2025-02-12 12:27:55',NULL),(18,2,15,1,'03/002','2024-03-12',375.000,1,0,'اتفاقية بدل اعلانات واتس اب #133 شركة الحلول السريعة لاعمال البرمجة والتسويق','2024-04-08 11:43:45','2025-02-17 17:03:43',NULL),(19,2,13,1,'01/001','2024-01-30',300000.000,1,0,'اتفاقية شراء برامج MISK AND AQARFAX-SOFT مكون من نظام محاسبة والايجارات وتطبيق التواصل الاجتماعي العقاري - نبض التكنولوجيا','2024-04-08 12:00:35','2025-02-12 12:27:55',NULL),(20,2,13,1,'01/002','2024-01-01',10748.000,1,0,'وذلك عن عقد الايجار من 01/01 2024 حتى 31/12/2024 - شركة التواتر','2024-04-08 12:10:04','2025-02-18 15:13:10',NULL),(21,2,14,1,'02/001','2024-02-14',10770.000,1,0,'وذلك عن تسويات البنك 2024 01','2024-04-08 12:14:20','2025-02-12 12:27:55',NULL),(22,2,15,1,'03/003','2024-03-30',60892.500,1,0,'وذلك عن تسويات البنك 2024 01 - سحب نقدي شيك8','2024-04-08 12:16:38','2025-02-12 12:27:55',NULL),(23,2,13,1,'01/003','2024-01-31',6306.600,1,0,'وذلك عن رواتب شهر 01 2024م','2024-04-08 12:27:52','2025-02-12 12:27:55',NULL),(24,2,14,1,'02/002','2024-02-29',6306.600,1,0,'وذلك عن رواتب شهر 02 2024','2024-04-08 12:32:55','2025-02-12 12:27:55',NULL),(25,2,15,1,'03/004','2024-03-31',6306.600,1,0,'وذلك عن رواتب شهر 03 2024','2024-04-08 12:34:59','2025-02-19 17:49:32',NULL),(26,2,16,1,'04/001','2024-04-24',1298.800,1,0,'وذلك عن ف #45/2024 - شركة ياسر الشبلي - اعمال اللوجو والواجهة الامامية','2024-10-16 16:08:49','2025-02-18 17:15:08',NULL),(27,2,19,1,'07/001','2024-07-11',600.000,1,0,'ق#23283 ت 11/07/2024 - بدل مساحة اعلانية','2024-10-16 16:38:32','2025-02-12 12:27:55',NULL),(28,2,19,1,'07/002','2024-07-30',1350.000,1,0,'ف#17 الحياة المرئية - تصوير  ت 09/07/2024','2024-10-16 16:41:41','2025-02-12 12:27:55',NULL),(29,2,20,1,'08/001','2024-08-28',1400.000,1,0,'وذلك عن ف#29587 وسط المدينة للحساب الالي جهاز APPLE MAC','2024-10-17 06:34:02','2025-02-12 12:27:55',NULL),(30,2,23,1,'11/001','2024-11-28',5000.000,1,0,'وذلك عن تعزيز الشريك  مصاريف الشركة','2025-02-11 16:04:36','2025-02-12 12:27:55',NULL),(31,2,21,1,'09/001','2024-09-01',250.000,1,0,'وذلك عن اشتراك برنامج SECRET من 08/09/2024 - حتى 09/09/2025','2025-02-11 16:14:38','2025-02-12 12:27:55',NULL),(32,2,24,1,'08/002','2024-08-01',7000.000,1,0,'وذلك عن اعلانات على السوق المفتوح - اتفاقية 72409 ت27/08/2024','2025-02-11 16:18:57','2025-02-12 12:27:55',NULL),(33,2,16,1,'04/002','2024-04-01',619.000,1,0,'ق#23264 لات 14/05/2024 السوق المفتوح','2025-02-11 16:50:01','2025-02-12 12:27:55',NULL),(34,2,24,1,'12/001','2024-12-31',2000.000,1,0,'دفعات مستحقة عقد السوق المفتوح','2025-02-11 17:11:38','2025-02-12 12:27:55',NULL),(35,2,16,1,'04/003','2024-04-01',1500.000,1,0,'وذلك عن  اعمال دعاية واعلان الجيل ميديا','2025-02-16 15:28:53','2025-02-16 15:38:30',NULL),(36,2,17,1,'05/001','2024-05-01',1000.000,1,0,'وذلك عن  اعمال دعاية واعلان الجيل ميديا ف#23 ت 01-5','2025-02-16 15:30:30','2025-02-16 15:38:30',NULL),(37,2,18,1,'06/001','2024-06-01',1000.000,1,0,'وذلك عن  اعمال دعاية واعلان الجيل ميديا ف#30 ت  01/6','2025-02-16 15:31:30','2025-02-16 15:38:30',NULL),(38,2,19,1,'07/003','2024-07-01',1000.000,1,0,'وذلك عن  اعمال دعاية واعلان الجيل ميديا ف#36 ت 01/7','2025-02-16 15:32:36','2025-02-16 15:38:30',NULL),(39,2,20,1,'08/003','2024-08-01',1000.000,1,0,'وذلك عن  اعمال دعاية واعلان الجيل ميديا ف#47 ت 01/8','2025-02-16 15:33:36','2025-02-16 15:38:30',NULL),(40,2,21,1,'09/002','2024-09-01',250.000,1,0,'وذلك عن  اعمال دعاية واعلان الجيل ميديا ف#55 ت 01/9','2025-02-16 15:34:10','2025-02-16 15:38:30',NULL),(41,2,21,1,'09/003','2024-09-09',750.000,1,0,'وذلك عن  اعمال دعاية واعلان الجيل ميديا ف#58 ت 09/09','2025-02-16 15:34:42','2025-02-16 15:38:30',NULL),(42,2,22,1,'10/001','2024-10-01',1000.000,1,0,'وذلك عن  اعمال دعاية واعلان الجيل ميديا ف#65 ت 01/10','2025-02-16 15:35:40','2025-02-16 15:38:30',NULL),(43,2,23,1,'11/002','2024-11-01',1000.000,1,0,'وذلك عن  اعمال دعاية واعلان الجيل ميديا ف#76 ت 01/11','2025-02-16 15:36:33','2025-02-16 15:38:30',NULL),(44,2,24,1,'12/002','2024-12-01',1000.000,1,0,'وذلك عن  اعمال دعاية واعلان الجيل ميديا ف#83ت 01/12','2025-02-16 15:38:06','2025-02-16 15:38:31',NULL),(45,2,19,1,'07/004','2024-07-14',20000.000,1,0,'وذلك عن اليداع نقدي ت 14/07/2024','2025-02-16 17:57:28','2025-02-16 17:57:43',NULL),(46,2,24,1,'12/003','2024-12-31',5000.000,1,0,'مكافات الموظفين للعام 2024 شيك 39 حق 25/12/2024','2025-02-16 18:21:53','2025-02-18 09:05:37',NULL),(47,2,16,1,'04/004','2024-04-30',6550.600,1,0,'وذلك عن رواتب شهر 04 2024','2025-02-18 08:15:00','2025-02-18 09:04:11',NULL),(48,2,17,1,'05/002','2024-05-31',6550.600,1,0,'وذلك عن رواتب شهر 05 2024','2025-02-18 08:17:21','2025-02-18 09:04:11',NULL),(49,2,18,1,'06/002','2024-06-30',11197.150,1,0,'وذلك عن رواتب شهر 06 2024','2025-02-18 08:21:30','2025-02-19 17:50:17',NULL),(50,2,19,1,'07/005','2024-07-30',8790.000,1,0,'وذلك عن رواتب شهر 07 2024','2025-02-18 08:23:32','2025-02-19 17:49:32',NULL),(51,2,20,1,'08/004','2024-08-30',8847.150,1,0,'وذلك عن رواتب شهر 08 2024','2025-02-18 08:57:46','2025-02-19 17:49:32',NULL),(52,2,21,1,'09/004','2024-09-30',8847.150,1,0,'وذلك عن رواتب شهر 09 2024','2025-02-18 08:59:06','2025-02-18 09:04:11',NULL),(53,2,22,1,'10/002','2024-10-31',10297.150,1,0,'وذلك عن رواتب شهر 10 2024','2025-02-18 09:00:35','2025-02-18 09:04:11',NULL),(54,2,23,1,'11/003','2024-11-29',10047.150,1,0,'وذلك عن رواتب شهر 11 2024','2025-02-18 09:01:50','2025-02-18 09:04:11',NULL),(55,2,24,1,'12/004','2024-12-31',9747.150,1,0,'وذلك عن رواتب شهر 12 2024','2025-02-18 09:02:55','2025-02-18 09:04:11',NULL),(56,2,21,1,'09/005','2024-09-05',5875.000,1,0,'دفعات مستحقة اقساط الاتفاقية - شركة سمير العمري ONLINE24 - بدل ادارة تطبيق عقار فاكس','2025-02-18 16:58:23','2025-02-18 16:58:47',NULL),(57,2,24,1,'12/005','2024-12-31',0.600,1,0,'تسوية البنك - عمولات 2024','2025-02-18 17:04:18','2025-02-18 17:04:23',NULL),(58,2,24,1,'12/006','2024-12-31',500.000,1,0,'اتعاب تدقيق 2024م','2025-02-18 18:00:56','2025-02-18 18:01:01',NULL),(59,2,18,1,'06/003','2024-06-30',18500.000,0,0,'وذلك عن تعزيز للشريك محمد 07 2024','2025-02-18 18:06:37','2025-02-19 17:59:19','2025-02-19 17:59:19'),(60,2,24,1,'12/007','2024-12-31',108.142,1,0,'غرامات ضمان 2024','2025-02-19 17:51:41','2025-02-19 17:51:48',NULL),(61,2,24,1,'12/008','2024-12-31',59.368,1,0,'فرق عطلة امومة اية - ضمان اجتماعي - على الشركة ولا تخصم على الموظفة 2024','2025-02-19 17:53:49','2025-02-19 17:55:50',NULL),(62,2,24,1,'12/009','2024-12-31',3500.000,1,0,'اثبات مصاريف مدفوعة مقدما - وذلك عن اعلانات على السوق المفتوح - اتفاقية 72409 ت27/08/2024','2025-02-19 18:02:40','2025-02-19 18:03:47',NULL),(63,2,24,1,'12/010','2024-12-31',1133.952,1,0,'اغلاق رصيد بطاقة الدفع الالكتروني - اسلامي','2025-02-19 18:05:48','2025-02-19 18:05:54',NULL),(64,2,24,1,'12/011','2024-12-31',4639.600,1,0,'قيد اتستهلاك 2024 - 10 %','2025-02-19 18:15:08','2025-03-09 08:48:04',NULL);

--
-- Table structure for table `entry_batch_out_bond_item`
--

CREATE TABLE `entry_batch_out_bond_item` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `date` date NOT NULL,
  `out_bond_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `branch_id` bigint unsigned NOT NULL,
  `out_bond_id` bigint unsigned NOT NULL,
  `out_bond_item_id` bigint unsigned NOT NULL,
  `entry_batch_id` bigint unsigned NOT NULL,
  `barcode_id` bigint unsigned NOT NULL,
  `quantity` double NOT NULL,
  `cost` double NOT NULL,
  `sales_price` double DEFAULT NULL,
  `created_at` timestamp NOT NULL,
  PRIMARY KEY (`id`),
  KEY `entry_batch_out_bond_item_entry_batch_id_foreign` (`entry_batch_id`),
  CONSTRAINT `entry_batch_out_bond_item_entry_batch_id_foreign` FOREIGN KEY (`entry_batch_id`) REFERENCES `entry_batches` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `entry_batch_out_bond_item`
--


--
-- Table structure for table `entry_batches`
--

CREATE TABLE `entry_batches` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `date` date NOT NULL,
  `entry_bond_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `entry_bond_id` bigint unsigned NOT NULL,
  `entry_bond_item_id` bigint unsigned NOT NULL,
  `barcode_id` bigint unsigned NOT NULL,
  `branch_id` bigint unsigned NOT NULL,
  `quantity` double NOT NULL,
  `remaining_quantity` double NOT NULL,
  `cost` double NOT NULL,
  `expire_date` date DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `entry_batches_barcode_id_foreign` (`barcode_id`),
  KEY `entry_batches_branch_id_foreign` (`branch_id`),
  CONSTRAINT `entry_batches_barcode_id_foreign` FOREIGN KEY (`barcode_id`) REFERENCES `barcodes` (`id`),
  CONSTRAINT `entry_batches_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `entry_batches`
--


--
-- Table structure for table `entry_bond_items`
--

CREATE TABLE `entry_bond_items` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `bond_id` bigint unsigned NOT NULL,
  `barcode_id` bigint unsigned NOT NULL,
  `quantity` double(10,3) NOT NULL DEFAULT '1.000',
  `cost` double(14,9) NOT NULL,
  `expire_date` date DEFAULT NULL,
  `notice` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `print_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  KEY `entry_bond_items_bond_id_foreign` (`bond_id`),
  KEY `entry_bond_items_barcode_id_foreign` (`barcode_id`),
  CONSTRAINT `entry_bond_items_barcode_id_foreign` FOREIGN KEY (`barcode_id`) REFERENCES `barcodes` (`id`),
  CONSTRAINT `entry_bond_items_bond_id_foreign` FOREIGN KEY (`bond_id`) REFERENCES `entry_bonds` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `entry_bond_items`
--


--
-- Table structure for table `entry_bonds`
--

CREATE TABLE `entry_bonds` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `date` date NOT NULL,
  `bond_number` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `branch_id` bigint unsigned NOT NULL,
  `client_id` bigint unsigned DEFAULT NULL,
  `employee_id` bigint unsigned DEFAULT NULL,
  `pos_user_id` bigint unsigned DEFAULT NULL,
  `type_id` bigint unsigned NOT NULL,
  `recipient_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `total` double(10,3) NOT NULL,
  `notice` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `post_status` tinyint(1) NOT NULL DEFAULT '0',
  `posted_at` datetime DEFAULT NULL,
  `builder_model` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `builder_model_id` bigint DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `entry_bonds_branch_id_foreign` (`branch_id`),
  KEY `entry_bonds_type_id_foreign` (`type_id`),
  KEY `entry_bonds_employee_id_foreign` (`employee_id`),
  KEY `entry_bonds_client_id_foreign` (`client_id`),
  KEY `entry_bonds_pos_user_id_foreign` (`pos_user_id`),
  CONSTRAINT `entry_bonds_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`),
  CONSTRAINT `entry_bonds_client_id_foreign` FOREIGN KEY (`client_id`) REFERENCES `receivable_accounts` (`id`),
  CONSTRAINT `entry_bonds_employee_id_foreign` FOREIGN KEY (`employee_id`) REFERENCES `employees` (`id`),
  CONSTRAINT `entry_bonds_pos_user_id_foreign` FOREIGN KEY (`pos_user_id`) REFERENCES `pos_users` (`id`),
  CONSTRAINT `entry_bonds_type_id_foreign` FOREIGN KEY (`type_id`) REFERENCES `entry_bond_types` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `entry_bonds`
--


--
-- Table structure for table `entry_employee_notices`
--

CREATE TABLE `entry_employee_notices` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `employee_id` bigint unsigned NOT NULL,
  `resource_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `resource_id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `notice` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `entry_employee_notices_employee_id_foreign` (`employee_id`),
  CONSTRAINT `entry_employee_notices_employee_id_foreign` FOREIGN KEY (`employee_id`) REFERENCES `employees` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `entry_employee_notices`
--


--
-- Table structure for table `entry_items`
--

CREATE TABLE `entry_items` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `entry_id` bigint unsigned NOT NULL,
  `account_id` bigint unsigned DEFAULT NULL,
  `receivable_id` bigint unsigned DEFAULT NULL,
  `cost_center_id` bigint unsigned DEFAULT NULL,
  `debit` double DEFAULT NULL,
  `credit` double DEFAULT NULL,
  `notice` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  PRIMARY KEY (`id`),
  KEY `entry_items_entry_id_foreign` (`entry_id`),
  KEY `entry_items_account_id_foreign` (`account_id`),
  KEY `entry_items_receivable_id_foreign` (`receivable_id`),
  KEY `entry_items_cost_center_id_foreign` (`cost_center_id`),
  CONSTRAINT `entry_items_account_id_foreign` FOREIGN KEY (`account_id`) REFERENCES `accounts` (`id`),
  CONSTRAINT `entry_items_cost_center_id_foreign` FOREIGN KEY (`cost_center_id`) REFERENCES `cost_centers` (`id`),
  CONSTRAINT `entry_items_entry_id_foreign` FOREIGN KEY (`entry_id`) REFERENCES `entries` (`id`),
  CONSTRAINT `entry_items_receivable_id_foreign` FOREIGN KEY (`receivable_id`) REFERENCES `receivable_accounts` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=341 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `entry_items`
--

INSERT INTO `entry_items` VALUES (1,1,149,NULL,NULL,20000,NULL,'وذلك عن تسجيل الشركة'),(2,1,85,NULL,NULL,NULL,20000,'وذلك عن تسجيل الشركة'),(3,2,7,NULL,NULL,20000,NULL,'ايداع راس المال ت 09/10/2023'),(4,2,149,NULL,NULL,NULL,20000,'ايداع راس المال ت 09/10/2023'),(5,3,137,NULL,NULL,5,NULL,'عمولات بنكية 2023 - اصدار دفتر شيكات'),(6,3,7,NULL,NULL,NULL,5,'عمولات بنكية 2023 - اصدار دفتر شيكات'),(7,4,7,NULL,NULL,72000,NULL,'ايداع نقدي الشريك ت 13/12/2023'),(8,4,149,NULL,NULL,NULL,72000,'ايداع نقدي الشريك ت 13/12/2023'),(9,5,5,NULL,NULL,15000,NULL,'سحب نقدي ت 17-12-2023 / لتغطية شراء موجودات واثاث نقدا'),(10,5,7,NULL,NULL,NULL,15000,'سحب نقدي ت 17-12-2023 / لتغطية شراء موجودات واثاث نقدا'),(11,5,5,NULL,NULL,12000,NULL,'سحب نقدي ت 18-12-2023 / لتغطية شراء موجودات واثاث نقدا'),(12,5,7,NULL,NULL,NULL,12000,'سحب نقدي ت 17-12-2023 / لتغطية شراء موجودات واثاث نقدا'),(13,6,74,NULL,NULL,3182,NULL,'شيك 3 ت 28-12-2023'),(14,6,7,NULL,NULL,NULL,3182,'شيك #3 ت 28-12-2023'),(15,7,151,NULL,NULL,400000,NULL,'وذلك عن اثبات عقد بيع وتطوير برنامج ف#001 نبض التكنولوجيا للبرمجيات'),(16,7,NULL,1,NULL,NULL,400000,'وذلك عن اثبات عقد بيع وتطوير برنامج ف#001 نبض التكنولوجيا للبرمجيات'),(17,8,39,NULL,NULL,775.054,NULL,'وذلك عن ف#42563 سيتي سنتر - موجودات ثابتة واجهزة كمبيوتر حسب المرفق'),(18,8,NULL,2,NULL,NULL,775.054,'وذلك عن ف#42563 سيتي سنتر - موجودات ثابتة واجهزة كمبيوتر حسب المرفق'),(19,8,NULL,2,NULL,775.054,NULL,'وذلك عن ق#24569سيتي سنتر - موجودات ثابتة واجهزة كمبيوتر حسب المرفق'),(20,8,5,NULL,NULL,NULL,775.054,'وذلك عن ق#24569سيتي سنتر - موجودات ثابتة واجهزة كمبيوتر حسب المرفق'),(21,9,130,NULL,NULL,3440,NULL,'وذلك عن رواتب شهر 11 2023'),(22,9,131,NULL,NULL,490.2,NULL,'وذلك عن رواتب شهر 11 2023'),(23,9,155,NULL,NULL,NULL,748.2,'وذلك عن رواتب شهر 11 2023'),(24,9,5,NULL,NULL,NULL,3182,'وذلك عن رواتب شهر 11 2023'),(25,10,130,NULL,NULL,5520,NULL,'وذلك عن رواتب شهر 12 2023'),(26,10,131,NULL,NULL,786.6,NULL,'وذلك عن رواتب شهر 12 2023'),(27,10,155,NULL,NULL,NULL,1200.6,'وذلك عن رواتب شهر 12 2023'),(28,10,74,NULL,NULL,NULL,5106,'وذلك عن رواتب شهر 12 2023'),(29,11,137,NULL,NULL,7.482,NULL,'غرامات ضمان 2023'),(30,11,155,NULL,NULL,NULL,7.482,'غرامات ضمان 2023'),(31,12,155,NULL,NULL,748.2,NULL,'تسديد دفعة ضمان نقدا - شهر 11 2023'),(32,12,5,NULL,NULL,NULL,748.2,'تسديد دفعة ضمان نقدا - شهر 11 2023'),(33,13,41,NULL,NULL,750,NULL,'ف #001 بورت لويس للتطوير العقاري ت 31-10-2023 - كنب 6 مقاعد'),(34,13,41,NULL,NULL,840,NULL,'ف #001 بورت لويس للتطوير العقاري ت 31-10-2023 - مكتب مدير'),(35,13,39,NULL,NULL,440,NULL,'ف #001 بورت لويس للتطوير العقاري ت 31-10-2023 - طابعة كانون'),(36,13,41,NULL,NULL,720,NULL,'ف #001 بورت لويس للتطوير العقاري ت 31-10-2023 - كرسي مكتب'),(37,13,41,NULL,NULL,120,NULL,'ف #001 بورت لويس للتطوير العقاري ت 31-10-2023 - طاولة خدمات'),(38,13,156,NULL,NULL,798,NULL,'ف #001 بورت لويس للتطوير العقاري ت 31-10-2023 -سمارت 50 بوصة'),(39,13,156,NULL,NULL,570,NULL,'ف #001 بورت لويس للتطوير العقاري ت 31-10-2023 -شاشة سمارت 40 بوصة'),(40,13,157,NULL,NULL,400,NULL,'ف #001 بورت لويس للتطوير العقاري ت 31-10-2023 -نظام 8 كاميرات وتوابعه'),(41,13,41,NULL,NULL,275,NULL,'ف #001 بورت لويس للتطوير العقاري ت 31-10-2023 -خرائن حائط'),(42,13,41,NULL,NULL,40,NULL,'ف #001 بورت لويس للتطوير العقاري ت 31-10-2023 -علاقة البسة'),(43,13,39,NULL,NULL,750,NULL,'ف #001 بورت لويس للتطوير العقاري ت 31-10-2023 -نظام عزل صوت'),(44,13,NULL,3,NULL,NULL,5703,'ف #001 بورت لويس للتطوير العقاري ت 31-10-2023 -'),(45,13,41,NULL,NULL,40,NULL,'ف #002 بورت لويس للتطوير العقاري ت 31-10-2023 -سجادة'),(46,13,39,NULL,NULL,310,NULL,'ف #002 بورت لويس للتطوير العقاري ت 31-10-2023 -بصمة باب'),(47,13,41,NULL,NULL,560,NULL,'ف #002 بورت لويس للتطوير العقاري ت 31-10-2023 -مكتب موظفين'),(48,13,41,NULL,NULL,120,NULL,'ف #002 بورت لويس للتطوير العقاري ت 31-10-2023 -دروج مكتب'),(49,13,41,NULL,NULL,80,NULL,'ف #002 بورت لويس للتطوير العقاري ت 31-10-2023 -ثلاجة'),(50,13,39,NULL,NULL,700,NULL,'ف #002 بورت لويس للتطوير العقاري ت 31-10-2023 -هواتف سامسونج'),(51,13,39,NULL,NULL,930,NULL,'ف #002 بورت لويس للتطوير العقاري ت 31-10-2023 -لابتوب'),(52,13,NULL,3,NULL,NULL,2740,'ف #002 بورت لويس للتطوير العقاري ت 31-10-2023 -'),(53,13,41,NULL,NULL,450,NULL,'ف #003 بورت لويس للتطوير العقاري ت 31-10-2023 -خزنة'),(54,13,NULL,3,NULL,NULL,12250,'ف #003 بورت لويس للتطوير العقاري ت 31-10-2023 -'),(55,13,43,NULL,NULL,11800,NULL,'ف #003 بورت لويس للتطوير العقاري ت 31-10-2023 -ديكورات'),(56,13,NULL,3,NULL,5703,NULL,'ق#01 تسديد ثمن اثاث ت 10-11-2023'),(57,13,5,NULL,NULL,NULL,5703,'ق#01 تسديد ثمن اثاث ت 10-11-2023'),(58,13,NULL,3,NULL,2740,NULL,'ق#02 تسديد ثمن اثاث ت 15-11-2023'),(59,13,5,NULL,NULL,NULL,2740,'ق#02 تسديد ثمن اثاث ت 15-11-2023'),(60,13,NULL,3,NULL,12250,NULL,'ق#03 تسديد ثمن اثاث ت 30-11-2023'),(61,13,5,NULL,NULL,NULL,12250,'ق#03 تسديد ثمن اثاث ت 30-11-2023'),(62,14,41,NULL,NULL,420,NULL,'ف#001 الحاووط ت 31-10-2023 - مكتب مدير'),(63,14,39,NULL,NULL,220,NULL,'ف#001 الحاووط ت 31-10-2023 -طابعة'),(64,14,41,NULL,NULL,300,NULL,'ف#001 الحاووط ت 31-10-2023 -كرسي صغير'),(65,14,156,NULL,NULL,650,NULL,'ف#001 الحاووط ت 31-10-2023 -شاشة 60 بوصة'),(66,14,156,NULL,NULL,399,NULL,'ف#001 الحاووط ت 31-10-2023 -شاشة 50 بوصة'),(67,14,41,NULL,NULL,120,NULL,'ف#001 الحاووط ت 31-10-2023 -بفات'),(68,14,41,NULL,NULL,275,NULL,'ف#001 الحاووط ت 31-10-2023 -خزائن حائط'),(69,14,37,NULL,NULL,840,NULL,'ف#001 الحاووط ت 31-10-2023 -'),(70,14,41,NULL,NULL,400,NULL,'ف#001 الحاووط ت 31-10-2023 -مكتب موظفين'),(71,14,41,NULL,NULL,90,NULL,'ف#001 الحاووط ت 31-10-2023 -دروج'),(72,14,NULL,4,NULL,NULL,3714,'ف#001 الحاووط ت 31-10-2023 -'),(73,14,41,NULL,NULL,80,NULL,'ف#002 الحاووط ت 31-10-2023 -'),(74,14,39,NULL,NULL,280,NULL,'ف#002 الحاووط ت 31-10-2023 -هواتف'),(75,14,39,NULL,NULL,930,NULL,'ف#002 الحاووط ت 31-10-2023 -'),(76,14,41,NULL,NULL,270,NULL,'ف#002 الحاووط ت 31-10-2023 -'),(77,14,41,NULL,NULL,80,NULL,'ف#002 الحاووط ت 31-10-2023 -'),(78,14,41,NULL,NULL,90,NULL,'ف#002 الحاووط ت 31-10-2023 -'),(79,14,41,NULL,NULL,250,NULL,'ف#002 الحاووط ت 31-10-2023 -'),(80,14,41,NULL,NULL,55,NULL,'ف#002 الحاووط ت 31-10-2023 -'),(81,14,41,NULL,NULL,15,NULL,'ف#002 الحاووط ت 31-10-2023 -'),(82,14,NULL,4,NULL,NULL,2050,'ف#002 الحاووط ت 31-10-2023 -'),(83,14,37,NULL,NULL,1500,NULL,'ف#003 الحاووط ت 31-10-2023 -'),(84,14,43,NULL,NULL,4000,NULL,'ف#003 الحاووط ت 31-10-2023 -'),(85,14,43,NULL,NULL,1100,NULL,'ف#003 الحاووط ت 31-10-2023 -'),(86,14,43,NULL,NULL,350,NULL,'ف#003 الحاووط ت 31-10-2023 -'),(87,14,39,NULL,NULL,750,NULL,'ف#003 الحاووط ت 31-10-2023 -سيرفير'),(88,14,NULL,4,NULL,NULL,7700,'ف#003 الحاووط ت 31-10-2023 -'),(89,14,NULL,4,NULL,7700,NULL,'ق 03 ت 30/11/2023'),(90,14,5,NULL,NULL,NULL,7700,'ق 03 ت 30/11/2023الحاووط'),(91,14,NULL,4,NULL,3714,NULL,'ق 01 ت 02/11/2023'),(92,14,5,NULL,NULL,NULL,3714,'ق 01 ت 02/11/2023 الحاووط'),(93,14,NULL,4,NULL,2050,NULL,'ق 01 ت 02/11/2023  الحاووط'),(94,14,5,NULL,NULL,NULL,2050,'ق 01 ت 02/11/2023  الحاووط'),(95,15,158,NULL,NULL,500,NULL,'اتعاب التدقيق 2023'),(96,15,74,NULL,NULL,NULL,500,'اتعاب التدقيق 2023'),(97,10,74,NULL,NULL,1924,NULL,'وذلك عن رواتب شهر 12 2023 - نقدا'),(98,10,5,NULL,NULL,NULL,1924,'وذلك عن رواتب شهر 12 2023 - نقدا'),(99,16,5,NULL,NULL,15000,NULL,'وذلك عن تمويل مدفوعات تاسيس الشركة 2023'),(100,16,149,NULL,NULL,NULL,15000,'وذلك عن تمويل مدفوعات تاسيس الشركة 2023'),(101,17,151,NULL,NULL,11750,NULL,'ف#0003875 ت 11/03/2024 دفعة اولى - شركة سمير العمري ONLINE24 / بدل ادارة موقع الاكتروني - دفعة اولى من الاتفاقية'),(102,17,NULL,5,NULL,NULL,47000,'اتفاقية  شركة سمير العمري ONLINE24 / بدل ادارة موقع وتطبيق عقار فاكس الاكتروني'),(103,17,151,NULL,NULL,35250,NULL,'اتفاقية  شركة سمير العمري ONLINE24 / بدل ادارة موقع وتطبيق عقار فاكس الاكتروني'),(106,19,151,NULL,NULL,300000,NULL,'اتفاقية شراء برامج MISK AND AQARFAX-SOFT مكون من نظام محاسبة والايجارات وتطبيق التواصل الاجتماعي العقاري - نبض التكنولوجيا'),(107,19,NULL,1,NULL,NULL,300000,'اتفاقية شراء برامج MISK AND AQARFAX-SOFT مكون من نظام محاسبة والايجارات وتطبيق التواصل الاجتماعي العقاري - نبض التكنولوجيا'),(110,21,5,NULL,NULL,6000,NULL,'وذلك عن تسويات البنك 2024 01 - سحب نقدي شيك 04'),(111,21,7,NULL,NULL,NULL,6000,'وذلك عن تسويات البنك 2024 01 - سحب نقدي شيك 04'),(112,21,137,NULL,NULL,5,NULL,'وذلك عن تسويات البنك 2024 01'),(113,21,7,NULL,NULL,NULL,5,'وذلك عن تسويات البنك 2024 01'),(114,21,74,NULL,NULL,4735,NULL,'شيك 05 ت 28-01-2024'),(115,21,7,NULL,NULL,NULL,4735,'شيك 05 ت 28-01-2024'),(116,21,137,NULL,NULL,20,NULL,'وذلك عن تسويات البنك 2024 01'),(117,21,7,NULL,NULL,NULL,20,'وذلك عن تسويات البنك 2024 01'),(118,21,137,NULL,NULL,10,NULL,'وذلك عن تسويات البنك 2024 01'),(119,21,7,NULL,NULL,NULL,10,'وذلك عن تسويات البنك 2024 01'),(120,22,74,NULL,NULL,4735,NULL,'وذلك عن تسويات البنك 2024 01 - سحب نقدي شيك8'),(121,22,7,NULL,NULL,NULL,4735,'وذلك عن تسويات البنك 2024 01 - سحب نقدي شيك8'),(122,22,155,NULL,NULL,1200,NULL,'وذلك عن تسويات البنك 2024 01 - ضمان'),(123,22,7,NULL,NULL,NULL,1200,'وذلك عن تسويات البنك 2024 01 - ضمان'),(124,22,137,NULL,NULL,1.5,NULL,'وذلك عن تسويات البنك 2024 01'),(125,22,7,NULL,NULL,NULL,1.5,'وذلك عن تسويات البنك 2024 01 - سحب نقدي شيك8'),(126,22,7,NULL,NULL,50000,NULL,'وذلك عن تسويات البنك 2024 01'),(127,22,149,NULL,NULL,NULL,50000,'تعزيز مدفوعات الشركة - تحويل بتاريخ 25-03-2024'),(128,22,74,NULL,NULL,4956,NULL,'وذلك عن تسويات البنك 2024 01 - سحب نقدي شيك21'),(129,22,7,NULL,NULL,NULL,4956,'وذلك عن تسويات البنك 2024 01 - سحب نقدي شيك21'),(130,23,130,NULL,NULL,5520,NULL,'وذلك عن رواتب شهر 01 2024م'),(131,23,131,NULL,NULL,786.6,NULL,'وذلك عن رواتب شهر 01 2024م'),(132,23,155,NULL,NULL,NULL,1200.6,'وذلك عن رواتب شهر 01 2024م'),(133,23,74,NULL,NULL,NULL,4735,'وذلك عن رواتب شهر 01 2024م'),(134,23,5,NULL,NULL,NULL,371,'وذلك عن رواتب شهر 01 2024م'),(135,24,130,NULL,NULL,5520,NULL,'وذلك عن رواتب شهر 02 2024'),(136,24,131,NULL,NULL,786.6,NULL,'وذلك عن رواتب شهر 02 2024'),(137,24,155,NULL,NULL,NULL,1200.6,'وذلك عن رواتب شهر 02 2024'),(138,24,74,NULL,NULL,NULL,4735,'وذلك عن رواتب شهر 02 2024'),(139,24,5,NULL,NULL,NULL,371,'وذلك عن رواتب شهر 02 2024'),(147,27,164,NULL,NULL,600,NULL,'ق#23283 ت 11/07/2024 - بدل مساحة اعلانية'),(148,27,NULL,10,NULL,NULL,600,'ق#23283 ت 11/07/2024 - بدل مساحة اعلانية'),(149,28,164,NULL,NULL,1350,NULL,'ف#17 الحياة المرئية - تصوير  ت 09/07/2024'),(150,28,NULL,11,NULL,NULL,1350,'ف#17 الحياة المرئية - تصوير  ت 09/07/2024'),(151,29,39,NULL,NULL,1400,NULL,'وذلك عن ف#29587 وسط المدينة للحساب الالي جهاز APPLE MAC'),(152,29,NULL,2,NULL,NULL,1400,'وذلك عن ف#29587 وسط المدينة للحساب الالي جهاز APPLE MAC'),(153,30,7,NULL,NULL,5000,NULL,'وذلك عن تعزيز الشريك  مصاريف الشركة ت 28/11/2024'),(154,30,149,NULL,NULL,NULL,5000,'وذلك عن تعزيز الشريك  مصاريف الشركة ت 28/11/2024'),(155,31,169,NULL,NULL,250,NULL,'وذلك عن اشتراك برنامج SECRET من 08/09/2024 - حتى 09/09/2025'),(156,31,NULL,13,NULL,NULL,250,'وذلك عن اشتراك برنامج SECRET من 08/09/2024 - حتى 09/09/2'),(161,32,29,NULL,NULL,7000,NULL,'وذلك عن اعلانات على السوق المفتوح - اتفاقية 72409 ت27/08/2024'),(162,32,NULL,10,NULL,NULL,7000,'وذلك عن اعلانات على السوق المفتوح - اتفاقية 72409 ت27/08/2024'),(163,33,164,NULL,NULL,619,NULL,'ق#23264 لات 14/05/2024 السوق المفتوح'),(164,33,NULL,10,NULL,NULL,619,'ق#23264 لات 14/05/2024 السوق المفتوح'),(165,34,173,NULL,NULL,2000,NULL,'دفعات مستحقة عقد السوق المفتوح'),(166,34,5,NULL,NULL,NULL,1000,'دفعات مستحقة عقد السوق المفتوح ق 25823 ت 28/12/2024'),(167,34,5,NULL,NULL,NULL,1000,'دفعات مستحقة عقد السوق المفتوح ق 25818 ت 28/12/2024'),(168,35,164,NULL,NULL,375,NULL,'وذلك عن  اعمال دعاية واعلان الجيل ميديا ف#18 ت01-4'),(169,35,NULL,14,NULL,NULL,375,'وذلك عن  اعمال دعاية واعلان الجيل ميديا ف#18 ت01-4'),(170,35,164,NULL,NULL,1125,NULL,'وذلك عن  اعمال دعاية واعلان الجيل ميديا ف#19 ت01-4'),(171,35,NULL,14,NULL,NULL,1125,'وذلك عن  اعمال دعاية واعلان الجيل ميديا ف#19 ت01-4'),(172,36,164,NULL,NULL,750,NULL,'وذلك عن  اعمال دعاية واعلان الجيل ميديا ف#23 ت 01-5'),(173,36,NULL,14,NULL,NULL,750,'وذلك عن  اعمال دعاية واعلان الجيل ميديا ف#23 ت 01-5'),(174,36,164,NULL,NULL,250,NULL,'وذلك عن  اعمال دعاية واعلان الجيل ميديا ف#24ت 01-5'),(175,36,NULL,14,NULL,NULL,250,'وذلك عن  اعمال دعاية واعلان الجيل ميديا ف#23 ت 01-5'),(176,37,164,NULL,NULL,250,NULL,'وذلك عن  اعمال دعاية واعلان الجيل ميديا ف#30 ت  01/6'),(177,37,NULL,14,NULL,NULL,250,'وذلك عن  اعمال دعاية واعلان الجيل ميديا ف#30 ت  01/6'),(178,37,164,NULL,NULL,750,NULL,'وذلك عن  اعمال دعاية واعلان الجيل ميديا ف#30 ت  01/6'),(179,37,NULL,14,NULL,NULL,750,'وذلك عن  اعمال دعاية واعلان الجيل ميديا ف#30 ت  01/6'),(180,38,164,NULL,NULL,750,NULL,'وذلك عن  اعمال دعاية واعلان الجيل ميديا ف#36 ت 01/7'),(181,38,NULL,14,NULL,NULL,750,'وذلك عن  اعمال دعاية واعلان الجيل ميديا ف#36 ت 01/7'),(182,38,164,NULL,NULL,250,NULL,'وذلك عن  اعمال دعاية واعلان الجيل ميديا ف#37 ت 01/7'),(183,38,NULL,14,NULL,NULL,250,'وذلك عن  اعمال دعاية واعلان الجيل ميديا ف#36 ت 01/7'),(184,39,164,NULL,NULL,750,NULL,'وذلك عن  اعمال دعاية واعلان الجيل ميديا ف#47 ت 01/8'),(185,39,NULL,14,NULL,NULL,750,'وذلك عن  اعمال دعاية واعلان الجيل ميديا ف#47 ت 01/8'),(186,39,164,NULL,NULL,250,NULL,'وذلك عن  اعمال دعاية واعلان الجيل ميديا ف#48 ت 01/8'),(187,39,NULL,14,NULL,NULL,250,'وذلك عن  اعمال دعاية واعلان الجيل ميديا ف#48 ت 01/8'),(188,40,164,NULL,NULL,250,NULL,'وذلك عن  اعمال دعاية واعلان الجيل ميديا ف#55 ت 01/9'),(189,40,NULL,14,NULL,NULL,250,'وذلك عن  اعمال دعاية واعلان الجيل ميديا ف#55 ت 01/9'),(190,41,164,NULL,NULL,750,NULL,'وذلك عن  اعمال دعاية واعلان الجيل ميديا ف#58 ت 09/09'),(191,41,NULL,14,NULL,NULL,750,'وذلك عن  اعمال دعاية واعلان الجيل ميديا ف#58 ت 09/09'),(192,42,164,NULL,NULL,250,NULL,'وذلك عن  اعمال دعاية واعلان الجيل ميديا ف#65 ت 01/10'),(193,42,NULL,14,NULL,NULL,250,'وذلك عن  اعمال دعاية واعلان الجيل ميديا ف#65 ت 01/10'),(194,42,164,NULL,NULL,750,NULL,'وذلك عن  اعمال دعاية واعلان الجيل ميديا ف#66 ت 01/10'),(195,42,NULL,14,NULL,NULL,750,'وذلك عن  اعمال دعاية واعلان الجيل ميديا ف#66 ت 01/10'),(196,43,164,NULL,NULL,750,NULL,'وذلك عن  اعمال دعاية واعلان الجيل ميديا ف#76 ت 01/11'),(197,43,NULL,14,NULL,NULL,750,'وذلك عن  اعمال دعاية واعلان الجيل ميديا ف#76 ت 01/11'),(198,43,164,NULL,NULL,250,NULL,'وذلك عن  اعمال دعاية واعلان الجيل ميديا ف#77 ت 01/11'),(199,43,NULL,14,NULL,NULL,250,'وذلك عن  اعمال دعاية واعلان الجيل ميديا ف#77 ت 01/11'),(200,44,164,NULL,NULL,750,NULL,'وذلك عن  اعمال دعاية واعلان الجيل ميديا ف#83ت 01/12'),(201,44,NULL,14,NULL,NULL,750,'وذلك عن  اعمال دعاية واعلان الجيل ميديا ف#83ت 01/12'),(202,44,164,NULL,NULL,250,NULL,'وذلك عن  اعمال دعاية واعلان الجيل ميديا ف#84 ت 01/12'),(203,44,NULL,14,NULL,NULL,250,'وذلك عن  اعمال دعاية واعلان الجيل ميديا ف#84 ت 01/12'),(204,45,7,NULL,NULL,20000,NULL,'وذلك عن اليداع نقدي ت 14/07/2024'),(205,45,5,NULL,NULL,NULL,20000,'وذلك عن اليداع نقدي ت 14/07/2024'),(208,18,164,NULL,NULL,375,NULL,'اتفاقية بدل اعلانات واتس اب #133 شركة الحلول السريعة لاعمال البرمجة والتسويق'),(209,18,NULL,6,NULL,NULL,375,'اتفاقية بدل اعلانات واتس اب #133 شركة الحلول السريعة لاعمال البرمجة والتسويق'),(210,47,130,NULL,NULL,5764,NULL,'وذلك عن رواتب شهر 04 2024'),(211,47,131,NULL,NULL,786.6,NULL,'وذلك عن رواتب شهر 04 2024'),(212,47,155,NULL,NULL,NULL,1200.6,'وذلك عن رواتب شهر 04 2024'),(213,47,74,NULL,NULL,NULL,5350,'وذلك عن رواتب شهر 04 2024'),(214,48,130,NULL,NULL,5764,NULL,'وذلك عن رواتب شهر 05 2024'),(215,48,131,NULL,NULL,786.6,NULL,'وذلك عن رواتب شهر 05 2024'),(216,48,155,NULL,NULL,NULL,1200.6,'وذلك عن رواتب شهر 05 2024'),(217,48,74,NULL,NULL,NULL,5350,'وذلك عن رواتب شهر 05 2024'),(228,51,130,NULL,NULL,8023.5,NULL,'وذلك عن رواتب شهر 08 2024'),(229,51,131,NULL,NULL,823.65,NULL,'وذلك عن رواتب شهر 08 2024'),(230,51,155,NULL,NULL,NULL,1257.15,'وذلك عن رواتب شهر 08 2024'),(231,51,74,NULL,NULL,NULL,7590,'وذلك عن رواتب شهر 08 2024'),(232,52,130,NULL,NULL,8023.5,NULL,'وذلك عن رواتب شهر 09 2024'),(233,52,155,NULL,NULL,NULL,1257.15,'وذلك عن رواتب شهر 09 2024'),(234,52,131,NULL,NULL,823.65,NULL,'وذلك عن رواتب شهر 09 2024'),(235,52,74,NULL,NULL,NULL,7590,'وذلك عن رواتب شهر 09 2024'),(236,53,130,NULL,NULL,9473.5,NULL,'وذلك عن رواتب شهر 10 2024'),(237,53,131,NULL,NULL,823.65,NULL,'وذلك عن رواتب شهر 10 2024'),(238,53,155,NULL,NULL,NULL,1257.15,'وذلك عن رواتب شهر 10 2024'),(239,53,74,NULL,NULL,NULL,9040,'وذلك عن رواتب شهر 10 2024'),(240,54,130,NULL,NULL,9223.5,NULL,'وذلك عن رواتب شهر 11 2024'),(241,54,131,NULL,NULL,823.65,NULL,'وذلك عن رواتب شهر 11 2024'),(242,54,155,NULL,NULL,NULL,1257.15,'وذلك عن رواتب شهر 11 2024'),(243,54,74,NULL,NULL,NULL,8790,'وذلك عن رواتب شهر 11 2024'),(244,55,74,NULL,NULL,NULL,8490,'وذلك عن رواتب شهر 12 2024'),(245,55,131,NULL,NULL,823.65,NULL,'وذلك عن رواتب شهر 12 2024'),(246,55,155,NULL,NULL,NULL,1257.15,'وذلك عن رواتب شهر 12 2024'),(247,55,130,NULL,NULL,8923.5,NULL,'وذلك عن رواتب شهر 12 2024'),(258,46,130,NULL,NULL,5000,NULL,'مكافات الموظفين للعام 2024 شيك 39 حق 25/12/2024'),(259,46,74,NULL,NULL,NULL,5000,'مكافات الموظفين للعام 2024 شيك 39 حق 25/12/2024'),(264,20,166,NULL,NULL,8750,NULL,'وذلك عن عقد الايجار من 01/01 2024 حتى 31/12/2024 - شركة التواتر'),(265,20,NULL,7,NULL,NULL,8750,'وذلك عن عقد الايجار من 01/01 2024 حتى 31/12/2024 - شركة التواتر'),(266,20,166,NULL,NULL,175,NULL,'وذلك عن معارف  عقد الايجار من 01/01 2024 حتى 31/12/2024 - شركة التواتر'),(267,20,NULL,7,NULL,NULL,175,'وذلك عن معارف  عقد الايجار من 01/01 2024 حتى 31/12/2024 - شركة التواتر'),(268,20,NULL,7,NULL,1823,NULL,'وذلك عن خصم الفترة من 15/10/2024- حتى 31/12/2024'),(269,20,166,NULL,NULL,NULL,1823,'وذلك عن خصم الفترة من 15/10/2024- حتى 31/12/2024'),(270,56,7,NULL,NULL,5875,NULL,'تسوية من الشريك دفعات مستحقة اقساط الاتفاقية - شركة سمير العمري ONLINE24 - بدل ادارة تطبيق عقار فاكس'),(271,56,149,NULL,NULL,NULL,5875,'دفعات مستحقة اقساط الاتفاقية - شركة سمير العمري ONLINE24 - بدل ادارة تطبيق عقار فاكس'),(272,57,137,NULL,NULL,0.6,NULL,'تسوية البنك - عمولات 2024'),(273,57,7,NULL,NULL,NULL,0.6,'تسوية البنك - عمولات 2024'),(274,26,43,NULL,NULL,910.6,NULL,'وذلك عن ف #45/2024 - شركة ياسر الشبلي - اعمال اللوجو والواجهة الامامية'),(275,26,NULL,8,NULL,NULL,1298.8,'وذلك عن ف #45/2024 - شركة ياسر الشبلي - اعمال اللوجو والواجهة الامامية'),(276,26,43,NULL,NULL,388.2,NULL,'اعمال اضافية على ف #45/2024 - شركة ياسر الشبلي - اعمال اللوجو والواجهة الامامية'),(277,58,158,NULL,NULL,500,NULL,'اتعاب تدقيق 2024م'),(278,58,74,NULL,NULL,NULL,500,'اتعاب تدقيق 2024م'),(285,59,5,NULL,NULL,18500,NULL,'وذلك عن تعزيز للشريك محمد 07 2024'),(286,59,149,NULL,NULL,NULL,18500,'وذلك عن تعزيز للشريك محمد 07 2024'),(287,25,130,NULL,NULL,5520,NULL,'وذلك عن رواتب شهر 03 2024'),(288,25,131,NULL,NULL,786.6,NULL,'وذلك عن رواتب شهر 03 2024'),(289,25,155,NULL,NULL,NULL,1200.6,'وذلك عن رواتب شهر 03 2024'),(290,25,74,NULL,NULL,NULL,4956,'وذلك عن رواتب شهر 03 2024'),(291,25,5,NULL,NULL,NULL,150,'وذلك عن رواتب شهر 03 2024 - فرق '),(292,50,130,NULL,NULL,7971.035,NULL,'وذلك عن رواتب شهر 07 2024 '),(293,50,131,NULL,NULL,818.965,NULL,'وذلك عن رواتب شهر 07 2024 '),(294,50,155,NULL,NULL,NULL,1250,'وذلك عن رواتب شهر 07 2024 '),(295,50,74,NULL,NULL,NULL,7540,'وذلك عن رواتب شهر 07 2024 '),(296,49,130,NULL,NULL,7373.5,NULL,'وذلك عن رواتب شهر 06 2024'),(297,49,130,NULL,NULL,3000,NULL,'وذلك عن رواتب 06 2024 - مكافات'),(298,49,131,NULL,NULL,823.65,NULL,'وذلك عن رواتب شهر 06 2024'),(299,49,155,NULL,NULL,NULL,1250,'وذلك عن رواتب شهر 06 2024'),(300,49,74,NULL,NULL,NULL,3000,'وذلك عن رواتب 06 2024 - مكافات'),(301,49,74,NULL,NULL,NULL,6940,'وذلك عن رواتب شهر 06 2024'),(302,49,5,NULL,NULL,NULL,7.15,'وذلك عن رواتب شهر 06 2024'),(303,60,131,NULL,NULL,108.142,NULL,'غرامات ضمان 2024'),(304,60,155,NULL,NULL,NULL,108.142,'غرامات ضمان 2024'),(307,61,162,NULL,NULL,59.368,NULL,'فرق عطلة امومة اية - ضمان اجتماعي - على الشركة ولا تخصم على الموظفة 2024'),(308,61,131,NULL,NULL,NULL,59.368,'فرق عطلة امومة اية - ضمان اجتماعي - على الشركة ولا تخصم على الموظفة 2024'),(311,62,164,NULL,NULL,3500,NULL,'اثبات مصاريف مدفوعة مقدما - وذلك عن اعلانات على السوق المفتوح - اتفاقية 72409 ت27/08/2024'),(312,62,29,NULL,NULL,NULL,3500,'اثبات مصاريف مدفوعة مقدما - وذلك عن اعلانات على السوق المفتوح - اتفاقية 72409 ت27/08/2024'),(313,63,168,NULL,NULL,1133.952,NULL,'اغلاق رصيد بطاقة الدفع الالكتروني - اسلامي'),(314,63,5,NULL,NULL,NULL,1133.952,'اغلاق رصيد بطاقة الدفع الالكتروني - اسلامي'),(331,64,46,NULL,NULL,NULL,234,'قيد اتستهلاك 2024 - 10 %'),(332,64,175,NULL,NULL,234,NULL,'قيد اتستهلاك 2024 - 10 % - مكيفات'),(333,64,48,NULL,NULL,NULL,1044.3,'قيد اتستهلاك 2024 - 10 %'),(334,64,175,NULL,NULL,1044.3,NULL,'قيد اتستهلاك 2024 - 10 % - كمبيوتر'),(335,64,175,NULL,NULL,316.2,NULL,'قيد اتستهلاك 2024 - 10 % - كاميرات + شاشات'),(336,64,176,NULL,NULL,NULL,316.2,'قيد اتستهلاك 2024 - 10 % - كاميرات + شاشات'),(337,64,175,NULL,NULL,887.3,NULL,'قيد اتستهلاك 2024 - 10 % - دبكورات'),(338,64,50,NULL,NULL,NULL,887.3,'قيد اتستهلاك 2024 - 10 %'),(339,64,175,NULL,NULL,2157.8,NULL,'قيد اتستهلاك 2024 - 10 %'),(340,64,52,NULL,NULL,NULL,2157.8,'قيد اتستهلاك 2024 - 10 %');

--
-- Table structure for table `ewallet_accounts`
--

CREATE TABLE `ewallet_accounts` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `account_id` bigint unsigned NOT NULL,
  `owner_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `phone_number` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `ewallet_accounts_account_id_foreign` (`account_id`),
  CONSTRAINT `ewallet_accounts_account_id_foreign` FOREIGN KEY (`account_id`) REFERENCES `accounts` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `ewallet_accounts`
--


--
-- Table structure for table `exchange_bond_items`
--

CREATE TABLE `exchange_bond_items` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `exchange_bond_id` bigint unsigned NOT NULL,
  `type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'new, returned',
  `barcode_id` bigint unsigned NOT NULL,
  `quantity` double NOT NULL DEFAULT '1',
  `price` double(10,3) DEFAULT NULL,
  `total` decimal(10,3) NOT NULL DEFAULT '0.000',
  PRIMARY KEY (`id`),
  KEY `exchange_bond_items_exchange_bond_id_foreign` (`exchange_bond_id`),
  KEY `exchange_bond_items_barcode_id_foreign` (`barcode_id`),
  CONSTRAINT `exchange_bond_items_barcode_id_foreign` FOREIGN KEY (`barcode_id`) REFERENCES `barcodes` (`id`),
  CONSTRAINT `exchange_bond_items_exchange_bond_id_foreign` FOREIGN KEY (`exchange_bond_id`) REFERENCES `exchange_bonds` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `exchange_bond_items`
--


--
-- Table structure for table `exchange_bonds`
--

CREATE TABLE `exchange_bonds` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `user_id` bigint unsigned NOT NULL,
  `branch_id` bigint unsigned NOT NULL,
  `box_id` bigint unsigned NOT NULL,
  `is_fully_costed` tinyint(1) NOT NULL DEFAULT '0',
  `amount` decimal(15,3) NOT NULL DEFAULT '0.000',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `exchange_bonds_user_id_foreign` (`user_id`),
  KEY `exchange_bonds_branch_id_foreign` (`branch_id`),
  KEY `exchange_bonds_box_id_foreign` (`box_id`),
  CONSTRAINT `exchange_bonds_box_id_foreign` FOREIGN KEY (`box_id`) REFERENCES `boxes` (`id`),
  CONSTRAINT `exchange_bonds_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`),
  CONSTRAINT `exchange_bonds_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `pos_users` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `exchange_bonds`
--


--
-- Table structure for table `exchange_check_operations`
--

CREATE TABLE `exchange_check_operations` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `check_id` bigint unsigned NOT NULL,
  `date` date NOT NULL,
  `credit_type` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `credit_account_id` bigint unsigned NOT NULL,
  `debit_type` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `debit_account_id` bigint unsigned NOT NULL,
  `posted_file` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `exchange_check_operations_check_id_foreign` (`check_id`),
  CONSTRAINT `exchange_check_operations_check_id_foreign` FOREIGN KEY (`check_id`) REFERENCES `exchange_checks` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `exchange_check_operations`
--

INSERT INTO `exchange_check_operations` VALUES (1,4,'2024-01-31','account',7,'account',67,NULL,'2024-04-08 12:17:20','2024-04-08 12:17:20'),(2,1,'2024-03-26','account',7,'account',67,NULL,'2024-04-08 12:18:13','2024-04-08 12:18:13'),(3,2,'2024-03-30','account',7,'account',67,NULL,'2025-02-11 15:32:15','2025-02-11 15:32:15'),(4,27,'2024-12-28','account',173,'account',172,NULL,'2025-02-11 17:08:05','2025-02-11 17:08:05'),(5,28,'2024-12-28','account',173,'account',172,NULL,'2025-02-11 17:08:05','2025-02-11 17:08:05'),(6,9,'2024-09-05','account',7,'account',67,NULL,'2025-02-16 17:08:18','2025-02-16 17:08:18'),(7,3,'2024-06-10','account',7,'account',67,NULL,'2025-02-18 15:17:29','2025-02-18 15:17:29'),(8,6,'2024-07-15','account',7,'account',67,NULL,'2025-02-18 15:24:07','2025-02-18 15:24:07'),(9,7,'2024-08-06','account',7,'account',67,NULL,'2025-02-18 15:30:45','2025-02-18 15:30:45'),(10,5,'2024-09-09','account',7,'account',67,NULL,'2025-02-18 15:39:24','2025-02-18 15:39:24'),(11,8,'2024-10-08','account',7,'account',67,NULL,'2025-02-18 15:42:23','2025-02-18 15:42:23'),(12,23,'2024-10-08','account',7,'account',67,NULL,'2025-02-18 15:42:42','2025-02-18 15:42:42'),(13,24,'2024-11-24','account',7,'account',67,NULL,'2025-02-18 15:45:08','2025-02-18 15:45:08'),(14,25,'2024-12-26','account',7,'account',67,NULL,'2025-02-18 15:49:43','2025-02-18 15:49:43');

--
-- Table structure for table `exchange_checks`
--

CREATE TABLE `exchange_checks` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `exchange_id` bigint unsigned NOT NULL,
  `number` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `beneficiary_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `amount` double(13,3) NOT NULL,
  `date` date NOT NULL,
  `switched_check_id` bigint unsigned DEFAULT NULL,
  `notice` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `status` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'in_postPaid/ posted/ returned',
  PRIMARY KEY (`id`),
  KEY `exchange_checks_exchange_id_foreign` (`exchange_id`),
  KEY `exchange_checks_switched_check_id_foreign` (`switched_check_id`),
  CONSTRAINT `exchange_checks_exchange_id_foreign` FOREIGN KEY (`exchange_id`) REFERENCES `exchange_entries` (`id`),
  CONSTRAINT `exchange_checks_switched_check_id_foreign` FOREIGN KEY (`switched_check_id`) REFERENCES `exchange_checks` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=31 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `exchange_checks`
--

INSERT INTO `exchange_checks` VALUES (1,2,'10','نبض التكنولوجيا للبرمجيات',50000.000,'2024-02-28',NULL,'وذلك عن تسديد حساب شركة نبض - شيكات اجلة ثمن ف#1','posted'),(2,2,'11','نبض التكنولوجيا للبرمجيات',50000.000,'2024-03-31',NULL,'وذلك عن تسديد حساب شركة نبض - شيكات اجلة ثمن ف#1','posted'),(3,2,'12','نبض التكنولوجيا للبرمجيات',50000.000,'2024-04-30',NULL,'وذلك عن تسديد حساب شركة نبض - شيكات اجلة ثمن ف#1','posted'),(4,2,'6','نبض التكنولوجيا للبرمجيات',25000.000,'2024-01-31',NULL,'وذلك عن تسديد حساب شركة نبض - شيكات اجلة ثمن ف#1','posted'),(5,2,'13','نبض التكنولوجيا للبرمجيات',50000.000,'2024-05-31',NULL,'وذلك عن تسديد حساب شركة نبض - شيكات اجلة ثمن ف#1','posted'),(6,2,'14','نبض التكنولوجيا للبرمجيات',50000.000,'2024-06-30',NULL,'وذلك عن تسديد حساب شركة نبض - شيكات اجلة ثمن ف#1','posted'),(7,2,'15','نبض التكنولوجيا للبرمجيات',50000.000,'2024-07-31',NULL,'وذلك عن تسديد حساب شركة نبض - شيكات اجلة ثمن ف#1','posted'),(8,2,'16','نبض التكنولوجيا للبرمجيات',25000.000,'2024-08-31',NULL,'وذلك عن تسديد حساب شركة نبض - شيكات اجلة ثمن ف#1','posted'),(9,15,'1111','شركة سمير العمري ONLINE24',5875.000,'2024-05-01',NULL,'دفعات مستحقة اقساط الاتفاقية - شركة سمير العمري ONLINE24 - بدل ادارة تطبيق عقار فاكس','posted'),(10,15,'1112','شركة سمير العمري ONLINE24',5875.000,'2024-06-01',NULL,'دفعات مستحقة اقساط الاتفاقية - شركة سمير العمري ONLINE24 - بدل ادارة تطبيق عقار فاكس','in_postPaid'),(11,15,'1113','شركة سمير العمري ONLINE24',5875.000,'2024-07-01',NULL,'دفعات مستحقة اقساط الاتفاقية - شركة سمير العمري ONLINE24 - بدل ادارة تطبيق عقار فاكس','in_postPaid'),(12,15,'1114','شركة سمير العمري ONLINE24',5875.000,'2024-08-01',NULL,'دفعات مستحقة اقساط الاتفاقية - شركة سمير العمري ONLINE24 - بدل ادارة تطبيق عقار فاكس','in_postPaid'),(13,15,'1115','شركة سمير العمري ONLINE24',9400.000,'2024-09-01',NULL,'دفعات مستحقة اقساط الاتفاقية - شركة سمير العمري ONLINE24 - بدل ادارة تطبيق عقار فاكس','in_postPaid'),(14,15,'1116','شركة سمير العمري ONLINE24',2350.000,'2025-03-01',NULL,'دفعات مستحقة اقساط الاتفاقية - شركة سمير العمري ONLINE24 - بدل ادارة تطبيق عقار فاكس','in_postPaid'),(23,17,'17','نبض التكنولوجيا للبرمجيات',70000.000,'2024-09-30',NULL,'تسديد نبض التكنولجيا اتفاقية رقم  02 ت 31/03/2024 / حسب الاستحقاق بالعقود','posted'),(24,17,'18','نبض التكنولوجيا للبرمجيات',70000.000,'2024-10-31',NULL,'تسديد نبض التكنولجيا اتفاقية رقم  02 ت 31/03/2024 / حسب الاستحقاق بالعقود','posted'),(25,17,'19','نبض التكنولوجيا للبرمجيات',70000.000,'2024-11-30',NULL,'تسديد نبض التكنولجيا اتفاقية رقم  02 ت 31/03/2024 / حسب الاستحقاق بالعقود','posted'),(26,17,'20','نبض التكنولوجيا للبرمجيات',65000.000,'2024-12-31',NULL,'تسديد نبض التكنولجيا اتفاقية رقم  02 ت 31/03/2024 / حسب الاستحقاق بالعقود','in_postPaid'),(27,55,'1','السوق المفتوح',1000.000,'2024-11-28',NULL,'دفعات مستحقة عقد السوق المفتوح','posted'),(28,55,'2','السوق المفتوح',1000.000,'2024-12-28',NULL,'دفعات مستحقة عقد السوق المفتوح','posted'),(29,55,'3','السوق المفتوح',1000.000,'2025-01-28',NULL,'دفعات مستحقة عقد السوق المفتوح','in_postPaid'),(30,55,'4','السوق المفتوح',1000.000,'2025-02-28',NULL,'دفعات مستحقة عقد السوق المفتوح','in_postPaid');

--
-- Table structure for table `exchange_entries`
--

CREATE TABLE `exchange_entries` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `year_id` bigint unsigned NOT NULL,
  `period_id` bigint unsigned NOT NULL,
  `employee_id` bigint unsigned DEFAULT NULL,
  `date` date NOT NULL,
  `bond_number` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `payment_way` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'cash or check or transfer',
  `credit_account_id` bigint unsigned NOT NULL,
  `amount` double(13,3) NOT NULL,
  `post_status` tinyint(1) NOT NULL DEFAULT '0',
  `audit_status` tinyint(1) NOT NULL DEFAULT '0',
  `notice` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `exchange_entries_year_id_foreign` (`year_id`),
  KEY `exchange_entries_period_id_foreign` (`period_id`),
  KEY `exchange_entries_credit_account_id_foreign` (`credit_account_id`),
  KEY `exchange_entries_employee_id_foreign` (`employee_id`),
  CONSTRAINT `exchange_entries_credit_account_id_foreign` FOREIGN KEY (`credit_account_id`) REFERENCES `accounts` (`id`),
  CONSTRAINT `exchange_entries_employee_id_foreign` FOREIGN KEY (`employee_id`) REFERENCES `employees` (`id`),
  CONSTRAINT `exchange_entries_period_id_foreign` FOREIGN KEY (`period_id`) REFERENCES `fiscal_periods` (`id`),
  CONSTRAINT `exchange_entries_year_id_foreign` FOREIGN KEY (`year_id`) REFERENCES `fiscal_years` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=123 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `exchange_entries`
--

INSERT INTO `exchange_entries` VALUES (1,1,12,1,'2023-12-20','001','cash',5,25000.000,1,0,'وذلك عن دفعة مقدما بالحساب ت 20/12/2023 - نبض','2024-04-07 10:26:09','2024-04-07 10:26:18',NULL),(2,1,12,1,'2023-12-20','002','check',67,350000.000,1,0,'وذلك عن تسديد حساب شركة نبض - شيكات اجلة ثمن ف#1','2024-04-07 10:35:58','2024-04-07 10:36:16',NULL),(3,1,12,1,'2023-12-30','003','cash',5,25000.000,1,0,'وذلك ع دفعة نقدا بالحساب - نبض من ف#01','2024-04-07 10:42:31','2024-04-07 10:42:40',NULL),(4,2,14,1,'2024-02-20','004','cash',5,250.000,1,0,'وذلك عن مدفوعات -طباعة ستيكرز ف#745 نقدا','2024-04-08 09:31:24','2024-04-08 09:45:55',NULL),(5,2,14,1,'2024-02-20','005','cash',5,130.000,1,0,'وذلك عن مدفوعات - اتعاب تركيب واجهة ستيكرز - مؤيد جمعة','2024-04-08 09:32:25','2024-04-08 09:45:55',NULL),(6,2,14,1,'2024-02-26','006','cash',5,5.700,1,0,'وذلك عن مدفوعات -ف#17624 طلة البرج - مواد تنظيف','2024-04-08 09:33:04','2024-04-08 09:45:55',NULL),(7,2,14,1,'2024-02-06','007','cash',5,24.100,1,0,'وذلك عن مدفوعات -ف#17406 طلة البرج','2024-04-08 09:34:23','2024-04-08 09:45:55',NULL),(8,2,14,1,'2024-02-03','008','cash',5,27.000,1,0,'وذلك عن مدفوعات -ف#333 الرؤيا الماسية','2024-04-08 09:36:24','2024-04-08 09:45:55',NULL),(9,2,14,1,'2024-02-29','009','cash',5,114.445,1,0,'وذلك عن مدفوعات نقدية 2024 -02','2024-04-08 09:39:20','2024-04-08 09:45:55',NULL),(10,2,13,1,'2024-01-31','010','cash',5,154.503,1,0,'وذلك عن مدفوعات نقدية 2024 01 -','2024-04-08 09:44:02','2024-04-08 09:45:55',NULL),(11,1,11,1,'2023-11-15','011','cash',5,85.000,1,0,'ترخيص الشركة 2023م','2024-04-08 09:48:34','2024-04-08 09:48:40',NULL),(12,2,15,1,'2024-03-31','012','cash',5,23.500,1,0,'وذلك عن مدفوعات 2024م 03 -','2024-04-08 09:50:34','2024-04-08 09:51:16',NULL),(13,2,15,1,'2024-03-13','013','transfer',7,11750.000,1,0,'دفعة اولى - شيك #9 ت 13/03/2024 شركة سمير العمري ONLINE24','2024-04-08 11:29:15','2024-04-08 11:52:29',NULL),(14,2,15,1,'2024-03-11','014','cash',5,375.000,1,0,'قبض #98 ت 11-03-2024 * تسديد شركة الحلول السريعة لاعمال البرمجة والتسويق','2024-04-08 11:45:17','2024-04-08 11:52:29',NULL),(15,2,15,1,'2024-03-11','015','check',67,35250.000,1,0,'دفعات مستحقة اقساط الاتفاقية - شركة سمير العمري ONLINE24 - بدل ادارة تطبيق عقار فاكس','2024-04-08 11:51:00','2024-04-08 11:52:29',NULL),(16,2,15,1,'2024-03-27','016','cash',5,800.000,1,0,'ف#03 2024 معاذ نمر - دروة تدريبية (ضغوطات العمل) عشرة ايام','2024-04-08 11:55:14','2024-04-08 11:55:43',NULL),(17,2,15,1,'2024-03-31','017','check',67,275000.000,1,0,'تسديد نبض التكنولجيا اتفاقية رقم  02 ت 31/03/2024 / حسب الاستحقاق بالعقود','2024-04-08 12:04:15','2024-04-08 13:11:44',NULL),(18,2,13,1,'2024-01-20','018','cash',5,25000.000,1,0,'دفعة نقدا بحساب الاتفاقية رقم 02 2024 - نبض التكنولوجيا','2024-04-08 12:07:25','2024-04-08 12:07:37',NULL),(19,2,15,1,'2024-03-31','019','cash',5,210.999,1,0,'وذلك عن مدفوعات نقدية - كهرباء','2024-04-08 12:37:05','2024-04-08 12:37:17',NULL),(20,2,15,1,'2024-03-31','020','cash',5,3666.432,0,0,'تسديد ارصدة الضمان 2024','2024-04-08 12:44:06','2025-02-19 17:35:28','2025-02-19 17:35:28'),(21,2,16,1,'2024-04-30','021','cash',5,1524.684,1,0,'وذلك عن مدفوعات نقدية - سلفة الادارة','2024-10-16 15:51:51','2024-10-16 16:44:24',NULL),(22,2,17,1,'2024-05-30','022','cash',5,947.410,1,0,'مدفوعات نقدية شهر 05 2024 - ادارية','2024-10-16 15:59:36','2024-10-16 16:44:24',NULL),(23,2,17,1,'2024-05-30','023','transfer',168,18.100,1,0,'وذلك عن مدوفعات مكتبية - ادارية 05 2024 Gmail','2024-10-16 16:04:42','2024-10-16 16:44:24',NULL),(24,2,20,1,'2024-08-30','024','cash',5,510.000,1,0,'قبض نقدي - باسر الشبلي باقي تسديد ف#45/2024 ت 27/05/2024','2024-10-16 16:07:48','2024-10-16 16:44:24',NULL),(25,2,18,1,'2024-06-30','025','cash',5,1176.379,1,0,'وذلك عن مدفوعات ادارية شهر 06 2024','2024-10-16 16:12:44','2024-10-16 16:44:24',NULL),(26,2,18,1,'2024-06-26','026','transfer',168,18.000,1,0,'وذلك عن اشتراك gmail','2024-10-16 16:19:06','2024-10-16 16:44:24',NULL),(27,2,18,1,'2024-06-10','027','cash',5,162.500,1,0,'مكافاة القاسم بدل تنظيم برمجة الابليكشن','2024-10-16 16:20:22','2024-10-16 16:44:24',NULL),(28,2,18,1,'2024-06-30','028','cash',5,349.021,1,0,'ف#18265 وسط المدينة للحاسب الالي - جهاز ديل','2024-10-16 16:21:21','2024-10-16 16:44:24',NULL),(29,2,18,1,'2024-06-03','029','transfer',168,52.290,1,0,'فاتورة استضافة امازون ت 3/6/2024','2024-10-16 16:22:36','2024-10-16 16:44:24',NULL),(30,2,18,1,'2024-06-29','030','cash',5,135.020,1,0,'قبض# 52259 الحداثة للاتصالات - اشتراك انترنت','2024-10-16 16:28:37','2025-02-19 18:07:57',NULL),(31,2,19,1,'2024-07-30','031','cash',5,2086.000,1,0,'مدفوعات الادارية شهر 07 2024','2024-10-16 16:40:57','2024-10-16 16:44:24',NULL),(32,2,19,1,'2024-07-30','032','cash',5,2195.750,1,0,'وذلك عن مدفوعات شهر 07 2024','2024-10-16 16:50:48','2024-10-16 16:57:21',NULL),(33,2,19,1,'2024-07-30','033','cash',5,135.000,1,0,'مدفوعات نقدية - ادارية 07 2024','2024-10-16 16:53:33','2024-10-16 16:57:21',NULL),(34,2,20,1,'2024-08-30','034','cash',5,2242.180,1,0,'وذلك عن مدفوعات شهر 08 2024','2024-10-16 17:26:06','2025-02-19 18:07:57',NULL),(35,2,20,1,'2024-08-30','035','cash',5,509.450,1,0,'وذلك عن مدفوعات شهر 08 2024 - ادارية','2024-10-17 06:15:35','2024-10-17 06:54:33',NULL),(36,2,20,1,'2024-08-14','036','transfer',168,14.519,1,0,'وذلك عن شراء ترخيص برنامج ت 14/08/2024','2024-10-17 06:21:05','2024-10-17 06:54:33',NULL),(37,2,20,1,'2024-08-03','037','transfer',168,184.700,1,0,'وذلك عن تكلفة استضافة امازون','2024-10-17 06:24:22','2024-10-17 06:54:33',NULL),(38,2,20,1,'2024-08-03','038','transfer',7,13000.000,1,0,'وذلك عن شيك 28 ت 03/8 - عهدة عمل ادارية','2024-10-17 06:26:01','2024-10-17 06:54:33',NULL),(39,2,20,1,'2024-08-17','039','transfer',7,1080.153,1,0,'دفعة اشتراكات ضمان اجتماعي','2024-10-17 06:26:50','2025-02-19 17:38:54',NULL),(40,2,20,1,'2024-08-13','040','transfer',7,2400.000,1,0,'وذلك عن شيك 30 حق 13/08/2024 عهدة عمل','2024-10-17 06:27:26','2024-10-17 06:54:33',NULL),(41,2,20,1,'2024-08-24','041','cash',5,1400.000,1,0,'وذلك عن ف#29587 وسط المدينة للحساب الالي جهاز APPLE MAC ق#34552','2024-10-17 06:34:16','2024-10-17 06:54:33',NULL),(42,2,21,1,'2024-09-30','042','cash',5,1227.900,1,0,'مدفوعات نقجية شهر 09 2024','2024-10-17 06:40:11','2024-10-17 06:54:33',NULL),(43,2,21,1,'2024-09-30','043','cash',5,1329.960,1,0,'مدفوعات نقدية شهر 09 2024','2024-10-17 06:46:57','2025-02-18 17:13:32',NULL),(44,2,17,1,'2024-05-30','044','cash',5,748.500,1,0,'مدوفوعات شهر 05 2024 - تم استلامها لاحقا من عز الدين','2024-10-17 06:53:03','2024-10-17 06:54:33',NULL),(45,2,20,1,'2024-08-17','045','cash',5,333.000,1,0,'ف#237 المراسم لاعمال الديكور - PVC','2024-10-17 06:55:38','2024-10-17 06:57:04',NULL),(46,2,16,1,'2024-04-06','046','transfer',7,1258.650,1,0,'وذلك عن تسديد الضمان الاجتماعي ت 06/04/2024','2025-02-11 15:13:24','2025-02-11 16:10:21',NULL),(47,2,16,1,'2024-04-16','047','transfer',7,2727.000,1,0,'وذلك عن شيك 22 حق 17/04/2024 - دفعة بالحساب عن الايجار حتى 15/04/2024','2025-02-11 15:17:20','2025-02-11 16:10:21',NULL),(48,2,17,1,'2024-05-01','048','transfer',7,5350.000,1,0,'وذلك عن شيك 23 حق 01/5/2024 - رواتب شهر 04 2024','2025-02-11 15:29:25','2025-02-11 16:10:21',NULL),(49,2,17,1,'2024-05-06','049','transfer',7,1258.650,1,0,'وذلك عن تسديد الضمان الاجتماعي ت 06/05/2024','2025-02-11 15:31:08','2025-02-11 16:10:21',NULL),(50,2,19,1,'2024-07-01','050','transfer',7,2421.434,1,0,'وذلك عن تسديد الضمان الاجتماعي ت 01/07/2024','2025-02-11 15:40:27','2025-02-11 16:10:21',NULL),(51,2,22,1,'2024-10-31','051','cash',5,194.180,1,0,'وذلك عن مدفوعات نقدية شهر 10 2024م','2025-02-11 15:53:33','2025-02-11 16:10:21',NULL),(52,2,23,1,'2024-11-30','052','cash',5,334.840,1,0,'وذلك عن دفعات مصاريف نقدا - شهر 11 2024','2025-02-11 16:00:05','2025-02-11 16:10:21',NULL),(53,2,23,1,'2024-11-07','053','cash',5,120.000,1,0,'وذلك عن شراء وتفصيل كنب فاتورة مفروشات ايمن ت 07/11/2024 - نقدا','2025-02-11 16:02:03','2025-02-11 16:10:21',NULL),(54,2,21,1,'2024-09-09','054','cash',5,250.000,1,0,'وذلك عن سند قبض 3590 السر الكوني - تسديد الاشتراك','2025-02-11 16:15:51','2025-02-11 16:17:02',NULL),(55,2,20,1,'2024-08-27','055','check',172,4000.000,1,0,'دفعات مستحقة عقد السوق المفتوح','2025-02-11 16:23:20','2025-02-11 16:31:46',NULL),(56,2,23,1,'2024-11-18','056','transfer',7,7690.000,1,0,'وذلك عن دفعات الايجار - التواتر','2025-02-11 16:34:16','2025-02-18 15:09:40',NULL),(57,2,21,1,'2024-09-30','057','cash',5,126.820,1,0,'مدفوعات نقدية حسب المرفق 30/09/2024','2025-02-11 16:44:19','2025-02-11 16:57:46',NULL),(58,2,22,1,'2024-10-30','058','cash',5,47.000,1,0,'مدفوعات العهدة النثرية شهر 10 2024 - حسب المرفق','2025-02-11 16:47:50','2025-02-11 16:57:46',NULL),(59,2,22,1,'2024-10-31','059','cash',5,2000.000,1,0,'دفعات السوق المفتوح حسب المرفق - دفعة 2+3','2025-02-11 16:51:36','2025-02-11 16:57:46',NULL),(60,2,22,1,'2024-10-31','060','cash',5,555.000,1,0,'وذلك عن دفعات نقدية من الشريك محمد اديب حسب المرفق 10 2024','2025-02-11 16:54:29','2025-02-11 16:57:46',NULL),(61,2,22,1,'2024-10-08','061','transfer',7,2628.512,1,0,'وذلك عن تسديد اشتراك ضمان اجتماعي شهر 09  ت 08/10/2024','2025-02-11 16:56:31','2025-02-11 16:57:46',NULL),(62,2,24,1,'2024-12-31','062','cash',5,226.606,1,0,'دفعات نقدية شهر 12 2024 - حسب المرفق','2025-02-11 17:16:27','2025-02-11 17:40:08',NULL),(63,2,24,1,'2024-12-31','063','cash',5,309.220,1,0,'دفعات نقدية شهر 12 2024 - حسب المرفق','2025-02-11 17:26:00','2025-02-11 17:40:08',NULL),(64,2,24,1,'2024-12-31','064','cash',5,914.484,1,0,'مدفوعات نقدية من الشريك حسب المرفق 2024','2025-02-11 17:31:46','2025-02-11 17:40:08',NULL),(65,2,24,1,'2024-12-04','065','cash',5,835.000,1,0,'وذلك عن استشارات دليل العقار - جهاد نمر','2025-02-11 17:33:36','2025-02-11 17:40:08',NULL),(66,2,24,1,'2024-12-31','066','transfer',7,5000.000,1,0,'مكافات الموظفين للعام 2024 شيك 39 حق 25/12/2024','2025-02-11 17:34:42','2025-02-11 17:40:09',NULL),(67,2,24,1,'2024-12-31','067','cash',5,23711.550,1,0,'شراء سيارة بكب فورد f150 نة 2020 - خاص للشركة رقم 45-21667','2025-02-11 17:38:24','2025-02-11 17:40:09',NULL),(68,2,24,1,'2024-12-31','068','cash',5,197.250,1,0,'مدفوعات بنزين خلال شهر 12 2024 - من الموظفين','2025-02-11 17:46:01','2025-02-11 17:47:08',NULL),(69,2,24,1,'2024-12-31','069','cash',5,1552.789,1,0,'وذلك عن مدفوعات شركة الكهرباء 2024م','2025-02-12 17:43:51','2025-02-12 17:46:40',NULL),(70,2,16,1,'2024-04-29','070','cash',5,500.000,1,0,'وذلك عن دفعة بالحساب الجيل ميديا - نقدا','2025-02-16 15:39:27','2025-02-16 16:08:20',NULL),(71,2,17,1,'2024-05-26','071','cash',5,1000.000,1,0,'وذلك عن دفعة بالحساب الجيل ميديا - نقدا','2025-02-16 15:40:22','2025-02-16 16:08:20',NULL),(72,2,18,1,'2024-06-24','072','cash',5,1000.000,1,0,'وذلك عن دفعة بالحساب الجيل ميديا - نقدا','2025-02-16 15:40:59','2025-02-16 16:08:20',NULL),(73,2,19,1,'2024-07-09','073','cash',5,1000.000,1,0,'وذلك عن دفعة بالحساب الجيل ميديا - نقدا','2025-02-16 15:41:33','2025-02-16 16:08:20',NULL),(74,2,20,1,'2024-08-11','074','cash',5,1000.000,1,0,'وذلك عن دفعة بالحساب الجيل ميديا - نقدا','2025-02-16 15:43:07','2025-02-16 16:08:20',NULL),(75,2,21,1,'2024-09-09','075','cash',5,1000.000,1,0,'وذلك عن دفعة بالحساب الجيل ميديا - نقدا','2025-02-16 16:05:58','2025-02-16 16:08:20',NULL),(76,2,22,1,'2024-10-09','076','cash',5,1000.000,1,0,'وذلك عن دفعة بالحساب الجيل ميديا - نقدا','2025-02-16 16:07:00','2025-02-16 16:08:20',NULL),(77,2,23,1,'2024-11-11','077','cash',5,1000.000,1,0,'وذلك عن دفعة بالحساب الجيل ميديا - نقدا','2025-02-16 16:07:35','2025-02-16 16:08:20',NULL),(78,2,24,1,'2024-12-10','078','cash',5,2000.000,1,0,'وذلك عن دفعة بالحساب الجيل ميديا - نقدا','2025-02-16 16:08:13','2025-02-16 16:08:20',NULL),(79,2,24,1,'2024-03-06','079','cash',5,120.000,1,0,'وذلك عن خدمات استضافة مدفوعة خلال 2024 - حسب المرفق','2025-02-16 16:23:03','2025-02-16 17:07:33',NULL),(80,2,17,1,'2024-05-02','080','cash',5,70.644,1,0,'وذلك عن خدمات استضافة مدفوعة خلال 2024 - حسب المرفق','2025-02-16 16:31:35','2025-02-16 17:07:33',NULL),(81,2,22,1,'2024-10-31','081','cash',5,50.000,1,0,'وذلك عن خدمات استضافة مدفوعة خلال 2024 - حسب المرفق','2025-02-16 16:32:38','2025-02-16 17:07:33',NULL),(82,2,22,1,'2024-10-03','082','cash',5,14.200,1,0,'وذلك عن خدمات استضافة مدفوعة خلال 2024 - حسب المرفق','2025-02-16 16:34:02','2025-02-16 17:07:33',NULL),(83,2,19,1,'2024-07-03','083','transfer',168,167.200,1,0,'وذلك عن خدمات استضافة مدفوعة خلال 2024 - حسب المرفق','2025-02-16 16:53:54','2025-02-16 17:07:33',NULL),(84,2,23,1,'2024-11-03','084','transfer',168,8.912,1,0,'وذلك عن خدمات استضافة مدفوعة خلال 2024 - حسب المرفق','2025-02-16 16:55:04','2025-02-16 17:07:33',NULL),(85,2,23,1,'2024-11-02','085','transfer',168,210.250,1,0,'وذلك عن خدمات استضافة مدفوعة خلال 2024 - حسب المرفق','2025-02-16 16:56:54','2025-02-16 17:07:33',NULL),(86,2,24,1,'2024-12-02','086','transfer',168,250.530,1,0,'وذلك عن خدمات استضافة مدفوعة خلال 2024 - حسب المرفق','2025-02-16 16:58:48','2025-02-16 17:07:33',NULL),(87,2,22,1,'2024-10-01','087','cash',5,72.000,1,0,'وذلك عن خدمات استضافة مدفوعة خلال 2024 - حسب المرفق','2025-02-16 17:00:06','2025-02-16 17:07:33',NULL),(88,2,22,1,'2024-10-03','088','transfer',168,8.919,1,0,'وذلك عن خدمات استضافة مدفوعة خلال 2024 - حسب المرفق','2025-02-16 17:01:07','2025-02-16 17:07:33',NULL),(89,2,22,1,'2024-10-03','089','transfer',168,200.532,1,0,'وذلك عن خدمات استضافة مدفوعة خلال 2024 - حسب المرفق','2025-02-16 17:03:20','2025-02-16 17:07:33',NULL),(90,2,24,1,'2024-12-26','090','cash',5,29.000,1,0,'مدفوعات نقدية 12 2024','2025-02-16 17:05:42','2025-02-16 17:07:33',NULL),(91,2,13,1,'2024-01-25','003','cash',5,500.000,1,0,'تسديد اتعاب تدقيق 2023 - نقدا','2025-02-16 18:20:49','2025-02-16 18:20:59',NULL),(92,2,17,1,'2024-05-13','011','transfer',7,3000.000,1,0,'وذلك عن رواتب 06 2024','2025-02-18 15:16:50','2025-02-18 15:39:44',NULL),(93,2,18,1,'2024-06-10','002','transfer',7,3000.000,1,0,'وذلك عن رواتب 06 2024 - مكافات','2025-02-18 15:19:18','2025-02-18 15:39:44',NULL),(94,2,18,1,'2024-06-26','091','transfer',7,6940.000,1,0,'وذلك عن رواتب شهر 06 2024','2025-02-18 15:20:39','2025-02-18 15:39:44',NULL),(95,2,19,1,'2024-07-02','092','transfer',7,4000.000,1,0,'وذلك عن سحوبات الشريك محمد اديب شيك 25 حق 04/07/2024','2025-02-18 15:26:38','2025-02-18 15:39:44',NULL),(96,2,19,1,'2024-07-28','093','transfer',7,2500.000,1,0,'وذلك عن شيك 27 - من ثمن سيارة التسلا للشريك محمد اديب ت 22/07/2024','2025-02-18 15:28:10','2025-02-18 15:39:44',NULL),(97,2,19,1,'2024-07-28','094','transfer',7,750.000,1,0,'وذلك عن شيك 26 -ديكورات مكتب - شركة التحكم بالمواقع','2025-02-18 15:29:03','2025-02-18 15:39:44',NULL),(98,2,19,1,'2024-07-28','095','transfer',7,7540.000,1,0,'وذلك عن رواتب شهر 07 2024','2025-02-18 15:29:46','2025-02-18 15:39:44',NULL),(99,2,20,1,'2024-08-11','096','transfer',7,680.000,1,0,'وذلك عن سحب شخصي الشريك محمد اديب شيك 29','2025-02-18 15:34:32','2025-02-18 15:39:44',NULL),(100,2,20,1,'2024-08-14','097','transfer',7,5.000,1,0,'عمولة دفتر شيكات 14/08/2024 - من كشف البنك','2025-02-18 15:35:17','2025-02-18 15:39:44',NULL),(101,2,20,1,'2024-08-28','098','transfer',7,1000.000,1,0,'وذلك عن شيك 31 حق 28/08/2024 - مياومات / متدربين برمجة','2025-02-18 15:37:24','2025-02-18 15:39:48',NULL),(102,2,20,1,'2024-08-28','099','transfer',7,7590.000,1,0,'وذلك عن رواتب شهر 08 2024','2025-02-18 15:38:05','2025-02-18 15:39:48',NULL),(103,2,20,1,'2024-08-28','100','transfer',7,240.000,1,0,'وذلك عن شيك 32 - راتب المبرمج حمزة شهر 08 2024','2025-02-18 15:39:03','2025-02-18 15:39:48',NULL),(104,2,21,1,'2024-09-29','101','transfer',7,1300.000,1,0,'وذلك عن شيك 33 حق 29/09/2024 - رواتب متدربين برمجة - نقدا','2025-02-18 15:41:11','2025-02-18 17:00:28',NULL),(105,2,21,1,'2024-09-29','102','transfer',7,7590.000,1,0,'وذلك عن رواتب شهر 09/2024','2025-02-18 15:41:51','2025-02-18 17:00:28',NULL),(106,2,22,1,'2024-10-28','103','transfer',7,9040.000,1,0,'وذلك عن رواتب شهر 10 2024 مع مكافات اعمال اضافية','2025-02-18 15:44:33','2025-02-18 17:00:28',NULL),(107,2,23,1,'2024-11-19','104','transfer',7,132.010,1,0,'وذلك عن دفعات بنكية تخص الشريك محمد اديب 19/11/2024','2025-02-18 15:46:11','2025-02-18 17:00:28',NULL),(108,2,23,1,'2024-11-28','105','transfer',7,8790.000,1,0,'وذلك عن رواتب شهر 11 2024','2025-02-18 15:47:21','2025-02-18 17:00:28',NULL),(109,2,24,1,'2024-12-02','106','transfer',7,2524.372,1,0,'وذلك عن دفعة بالحساب الضمان الاجتماعي ت 02/12/2024','2025-02-18 15:48:36','2025-02-18 17:00:28',NULL),(110,2,24,1,'2024-12-29','107','transfer',7,2000.000,1,0,'وذلك عن حركتين سحب صراف ت 29/12/2024 - الف دينار كل حركة','2025-02-18 15:51:32','2025-02-18 17:00:28',NULL),(111,2,24,1,'2024-12-29','108','transfer',7,8490.000,1,0,'وذلك عن رواتب شهر 12 2024','2025-02-18 15:52:28','2025-02-18 17:00:28',NULL),(112,2,24,1,'2024-12-30','109','transfer',7,65.300,1,0,'وذلك عن دفعة بالحساب - ضمان اجتماعي 30/12/2024','2025-02-18 15:53:25','2025-02-18 17:00:28',NULL),(113,2,18,1,'2024-06-02','110','transfer',7,5350.000,1,0,'وذلك عن رواتب شهر 05 2024','2025-02-18 17:03:26','2025-02-18 17:03:32',NULL),(114,2,13,1,'2024-01-28','001','cash',5,201.430,1,0,'تجديد رخصة مهن 2024 نقدا','2025-02-19 17:23:27','2025-02-19 17:23:47',NULL),(115,2,24,1,'2024-12-31','111','cash',5,92.800,1,0,'مدفوعات انترنت 2024','2025-02-19 17:28:11','2025-02-19 17:28:20',NULL),(116,2,15,1,'2024-03-31','020','cash',5,2408.682,1,0,'دفعة بالحساب ضمان اجتماعي 03 2024','2025-02-19 17:37:49','2025-02-19 17:37:55',NULL),(117,2,14,1,'2024-02-29','112','cash',5,9000.000,0,0,'وذلك عن سحوبات نقدية الشريك محمد اديب','2025-02-19 17:57:50','2025-03-08 12:15:19','2025-03-08 12:15:19'),(118,2,24,1,'2024-12-30','113','cash',5,25000.000,1,0,'سحوبات الشريك محمد','2025-02-19 18:00:56','2025-03-08 12:17:56',NULL),(119,3,25,1,'2025-01-04','114','cash',5,12.000,0,0,'وذلك عن مدفوعات - ريش - بوابة الشرق لمواد البناء','2025-11-05 12:52:30','2025-11-05 13:39:43',NULL),(120,3,25,1,'2025-01-22','119','cash',5,67.000,0,0,'وذلك عن مدفوعات - كشاف ليد ف#1450  - ترالوكس جروب','2025-11-05 12:56:01','2025-11-05 13:16:42',NULL),(121,3,25,1,'2025-01-16','117','cash',5,25.200,0,0,'وذلك عن مدفوعات - بن العميد  - قهوة ف#108559','2025-11-05 12:58:46','2025-11-05 13:16:18',NULL),(122,3,25,1,'2025-01-01','112','cash',5,9.000,0,0,'وذلك عن مدفوعات - ف#9817527 كرتونة مياه','2025-11-05 13:10:12','2025-11-05 13:13:30',NULL);

--
-- Table structure for table `exchange_entry_items`
--

CREATE TABLE `exchange_entry_items` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `exchange_id` bigint unsigned NOT NULL,
  `account_id` bigint unsigned DEFAULT NULL,
  `receivable_id` bigint unsigned DEFAULT NULL,
  `cost_center_id` bigint unsigned DEFAULT NULL,
  `amount` double(13,3) NOT NULL,
  `notice` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `exchange_entry_items_exchange_id_foreign` (`exchange_id`),
  KEY `exchange_entry_items_account_id_foreign` (`account_id`),
  KEY `exchange_entry_items_receivable_id_foreign` (`receivable_id`),
  KEY `exchange_entry_items_cost_center_id_foreign` (`cost_center_id`),
  CONSTRAINT `exchange_entry_items_account_id_foreign` FOREIGN KEY (`account_id`) REFERENCES `accounts` (`id`),
  CONSTRAINT `exchange_entry_items_cost_center_id_foreign` FOREIGN KEY (`cost_center_id`) REFERENCES `cost_centers` (`id`),
  CONSTRAINT `exchange_entry_items_exchange_id_foreign` FOREIGN KEY (`exchange_id`) REFERENCES `exchange_entries` (`id`),
  CONSTRAINT `exchange_entry_items_receivable_id_foreign` FOREIGN KEY (`receivable_id`) REFERENCES `receivable_accounts` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=419 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `exchange_entry_items`
--

INSERT INTO `exchange_entry_items` VALUES (1,1,NULL,1,NULL,25000.000,'وذلك عن دفعة مقدما بالحساب ت 20/12/2023 - نبض','2024-04-07 10:26:09','2024-04-07 10:26:09'),(2,2,NULL,1,NULL,350000.000,'وذلك عن تسديد حساب شركة نبض - شيكات اجلة ثمن ف#1 ذ','2024-04-07 10:35:58','2024-04-07 10:35:58'),(3,3,NULL,1,NULL,25000.000,'وذلك ع دفعة نقدا بالحساب - نبض من ف#01','2024-04-07 10:42:31','2024-04-07 10:42:31'),(4,4,159,NULL,NULL,250.000,'وذلك عن مدفوعات -طباعة ستيكرز ف#745 نقدا','2024-04-08 09:31:24','2024-04-08 09:31:24'),(5,5,159,NULL,NULL,130.000,'وذلك عن مدفوعات - اتعاب تركيب واجهة ستيكرز - مؤيد جمعة','2024-04-08 09:32:25','2024-04-08 09:32:25'),(6,6,140,NULL,NULL,5.700,'وذلك عن مدفوعات -ف#17624 طلة البرج - مواد تنظيف','2024-04-08 09:33:04','2024-04-08 09:33:04'),(7,7,140,NULL,NULL,24.100,'وذلك عن مدفوعات -ف#17406 طلة البرج','2024-04-08 09:34:23','2024-04-08 09:34:23'),(8,8,138,NULL,NULL,27.000,'وذلك عن مدفوعات -ف#333 الرؤيا الماسية','2024-04-08 09:36:24','2024-04-08 09:36:24'),(9,9,139,NULL,NULL,6.000,'وذلك عن مدفوعات نقدية 2024 -02 / مياه','2024-04-08 09:39:20','2024-04-08 09:39:20'),(10,9,139,NULL,NULL,26.000,'وذلك عن مدفوعات نقدية 2024 -02 / دفتر كوبونات مياه','2024-04-08 09:39:20','2024-04-08 09:39:20'),(11,9,139,NULL,NULL,25.618,'وذلك عن مدفوعات نقدية 2024 -02 / ضيافة','2024-04-08 09:39:20','2024-04-08 09:39:20'),(12,9,139,NULL,NULL,27.130,'وذلك عن مدفوعات نقدية 2024 -02 / ضيافة','2024-04-08 09:39:20','2024-04-08 09:39:20'),(13,9,139,NULL,NULL,12.697,'وذلك عن مدفوعات نقدية 2024 -02 / ضيافة','2024-04-08 09:39:20','2024-04-08 09:39:20'),(14,9,139,NULL,NULL,17.000,'وذلك عن مدفوعات نقدية 2024 -02 / ضيافة','2024-04-08 09:39:20','2024-04-08 09:39:20'),(15,10,160,NULL,NULL,20.000,'وذلك عن مدفوعات نقدية 2024 01 - ماوس','2024-04-08 09:44:02','2024-04-08 09:44:02'),(16,10,140,NULL,NULL,24.500,'وذلك عن مدفوعات نقدية 2024 01 - ف#16937 طلة البرج','2024-04-08 09:44:02','2024-04-08 09:44:02'),(17,10,160,NULL,NULL,110.003,'وذلك عن مدفوعات نقدية 2024 01 - ف#1410 وسط المدينة','2024-04-08 09:44:02','2024-04-08 09:44:02'),(18,11,163,NULL,NULL,85.000,'ترخيص الشركة 2023م','2024-04-08 09:48:34','2024-04-08 09:48:34'),(19,12,139,NULL,NULL,6.000,'وذلك عن مدفوعات 2024م 03 - مياه','2024-04-08 09:50:34','2024-04-08 09:50:34'),(20,12,140,NULL,NULL,17.500,'وذلك عن مدفوعات 2024م 03 -ف#17697 طلة البرج','2024-04-08 09:50:34','2024-04-08 09:50:34'),(21,13,NULL,5,NULL,11750.000,'دفعة اولى - شيك #9 ت 13/03/2024 شركة سمير العمري ONLINE24','2024-04-08 11:29:15','2024-04-08 11:29:15'),(22,14,NULL,6,NULL,375.000,'قبض #98 ت 11-03-2024 * تسديد شركة الحلول السريعة لاعمال البرمجة والتسويق','2024-04-08 11:45:17','2024-04-08 11:45:17'),(23,15,NULL,5,NULL,35250.000,'دفعات مستحقة اقساط الاتفاقية - شركة سمير العمري ONLINE24 - بدل ادارة تطبيق عقار فاكس','2024-04-08 11:51:00','2024-04-08 11:51:00'),(24,16,165,NULL,NULL,800.000,'ف#03 2024 معاذ نمر - دروة تدريبية (ضغوطات العمل) عشرة ايام','2024-04-08 11:55:14','2024-04-08 11:55:14'),(27,18,NULL,1,NULL,25000.000,'دفعة نقدا بحساب الاتفاقية رقم 02 2024 - نبض التكنولوجيا','2024-04-08 12:07:25','2024-04-08 12:07:25'),(28,19,133,NULL,NULL,93.097,'وذلك عن مدفوعات نقدية - كهرباء 01 2024','2024-04-08 12:37:05','2024-04-08 12:37:05'),(29,19,133,NULL,NULL,117.902,'وذلك عن مدفوعات نقدية - كهرباء 02 2024','2024-04-08 12:37:05','2024-04-08 12:37:05'),(30,20,155,NULL,NULL,2408.682,'تسديد ارصدة الضمان 2024','2024-04-08 12:44:06','2024-04-08 12:44:06'),(31,20,155,NULL,NULL,1257.750,'تسديد ارصدة الضمان 2024','2024-04-08 12:44:06','2024-04-08 12:44:06'),(32,17,NULL,1,NULL,275000.000,'تسديد نبض التكنولجيا اتفاقية رقم  02 ت 31/03/2024 / حسب الاستحقاق بالعقود','2024-04-08 13:11:38','2024-04-08 13:11:38'),(46,22,139,NULL,NULL,3.250,'مدفوعات نقدية شهر 05 2024 - ادارية ف#10289735','2024-10-16 15:59:36','2024-10-16 15:59:36'),(47,22,140,NULL,NULL,26.730,'ف#50157838 اسواق الفريد','2024-10-16 15:59:36','2024-10-16 15:59:36'),(48,22,139,NULL,NULL,5.000,'مدفوعات نقدية شهر 05 2024 - ادارية 14921','2024-10-16 15:59:36','2024-10-16 15:59:36'),(49,22,140,NULL,NULL,21.000,'مدفوعات نقدية شهر 05 2024 - ادارية  ف 18624 طلة البرج','2024-10-16 15:59:36','2024-10-16 15:59:36'),(50,22,139,NULL,NULL,6.000,'مدفوعات نقدية شهر 05 2024 - ادارية 14915','2024-10-16 15:59:36','2024-10-16 15:59:36'),(51,22,160,NULL,NULL,13.230,'مدفوعات نقدية شهر 05 2024 - ادارية ف#50166819','2024-10-16 15:59:36','2024-10-16 15:59:36'),(52,22,139,NULL,NULL,6.700,'مدفوعات نقدية شهر 05 2024 - ادارية ف#233972','2024-10-16 15:59:36','2024-10-16 15:59:36'),(53,22,139,NULL,NULL,28.000,'مدفوعات نقدية شهر 05 2024 - ادارية - شوكولاته نقدا','2024-10-16 15:59:36','2024-10-16 15:59:36'),(54,22,140,NULL,NULL,100.000,'مدفوعات نقدية شهر 05 2024 - ادارية - معاوية 28/05/2024','2024-10-16 15:59:36','2024-10-16 15:59:36'),(55,22,161,NULL,NULL,200.000,'مدفوعات نقدية شهر 05 2024 - ادارية - احمد القاسم ت 30/05/2024','2024-10-16 15:59:36','2024-10-16 15:59:36'),(56,22,161,NULL,NULL,537.500,'مدفوعات نقدية شهر 05 2024 - ادارية - عبدالله الكايد من 31/03 حتى 28/4','2024-10-16 15:59:36','2024-10-16 15:59:36'),(58,21,140,NULL,NULL,110.000,'وذلك عن مدفوعات نقدية - سلفة الادارة - اتعاب تنظيف معاوية العرود','2024-10-16 16:06:53','2024-10-16 16:06:53'),(59,21,NULL,8,NULL,788.800,'وذلك عن ف #45/2024 - شركة ياسر الشبلي - اعمال اللوجو والواجهة الامامية','2024-10-16 16:06:53','2024-10-16 16:06:53'),(60,21,139,NULL,NULL,10.000,'ف#10038648 فخامة السفرة - قهوة','2024-10-16 16:06:53','2024-10-16 16:06:53'),(61,21,140,NULL,NULL,20.320,'ف#50127626 اسواق الفريد','2024-10-16 16:06:53','2024-10-16 16:06:53'),(62,21,139,NULL,NULL,10.730,'ف#20132333 اسواق الفريد','2024-10-16 16:06:53','2024-10-16 16:06:53'),(63,21,139,NULL,NULL,1.400,'ف#13392214 عابدين','2024-10-16 16:06:53','2024-10-16 16:06:53'),(64,21,139,NULL,NULL,28.000,'ف#07/2024 مطعم بنت السلطان','2024-10-16 16:06:53','2024-10-16 16:06:53'),(65,21,139,NULL,NULL,15.692,'وذلك عن ف#50118179 افطار رمضان','2024-10-16 16:06:53','2024-10-16 16:06:53'),(66,21,139,NULL,NULL,15.692,'وذلك عن مدفوعات نقدية - سلفة الادارة - اسواق الفريد','2024-10-16 16:06:53','2024-10-16 16:06:53'),(67,21,159,NULL,NULL,96.800,'ف#7964 مؤسسة الاقتصاد - قرطاسية','2024-10-16 16:06:53','2024-10-16 16:06:53'),(68,21,39,NULL,NULL,390.000,'ف#0092 هاني موبايل - تاب 10 انش + جهاز خلوي ريمي c67','2024-10-16 16:06:53','2024-10-16 16:06:53'),(69,21,140,NULL,NULL,31.500,'ف#18142 مؤسسة طلة البرج','2024-10-16 16:06:53','2024-10-16 16:06:53'),(70,21,139,NULL,NULL,5.750,'ف#18012مؤسسة طلة البرج','2024-10-16 16:06:53','2024-10-16 16:06:53'),(71,24,NULL,8,NULL,510.000,'قبض نقدي - باسر الشبلي باقي تسديد ف#45/2024 ت 27/05/2024','2024-10-16 16:07:48','2024-10-16 16:07:48'),(74,23,169,NULL,NULL,18.100,'وذلك عن مدوفعات مكتبية - ادارية 05 2024 Gmail','2024-10-16 16:14:32','2024-10-16 16:14:32'),(75,25,139,NULL,NULL,48.879,'وذلك عن مدفوعات ادارية شهر 06 2024 ف#20240171250 العميد','2024-10-16 16:16:22','2024-10-16 16:16:22'),(76,25,39,NULL,NULL,150.000,'ف#100 هاني موبايل - هاتف ريمي c67 ت 29/05/2024','2024-10-16 16:16:22','2024-10-16 16:16:22'),(77,25,170,NULL,NULL,10.000,'وذلك عن مدفوعات ادارية شهر 06 2024','2024-10-16 16:16:22','2024-10-16 16:16:22'),(78,25,170,NULL,NULL,30.000,'وذلك عن مدفوعات ادارية شهر 06 2024','2024-10-16 16:16:22','2024-10-16 16:16:22'),(79,25,169,NULL,NULL,937.500,'وذلك عن مدفوعات ادارية شهر 06 2024 - عبدالله الكايد','2024-10-16 16:16:22','2024-10-16 16:16:22'),(80,26,169,NULL,NULL,18.000,'وذلك عن اشتراك gmail ت 26/06/2024','2024-10-16 16:19:06','2024-10-16 16:19:06'),(81,27,161,NULL,NULL,162.500,'مكافاة القاسم بدل تنظيم برمجة الابليكشن','2024-10-16 16:20:22','2024-10-16 16:20:22'),(82,28,39,NULL,NULL,349.021,'ف#18265 وسط المدينة للحاسب الالي - جهاز ديل','2024-10-16 16:21:21','2024-10-16 16:21:21'),(83,29,169,NULL,NULL,52.290,'فاتورة استضافة امازون ت 3/6/2024','2024-10-16 16:22:36','2024-10-16 16:22:36'),(93,31,159,NULL,NULL,12.000,'ف#8688 قرطاسية الرسك الحر','2024-10-16 16:40:57','2024-10-16 16:40:57'),(94,31,139,NULL,NULL,44.000,'ف#99949 القيسي ت 22/07/2024','2024-10-16 16:40:57','2024-10-16 16:40:57'),(95,31,164,NULL,NULL,40.000,'بدل تسجيل صوتي حازم شاهين ت 14/07/2024','2024-10-16 16:40:57','2024-10-16 16:40:57'),(96,31,NULL,10,NULL,600.000,'ق#23283 ت 11/07/2024 - بدل مساحة اعلانية','2024-10-16 16:40:57','2024-10-16 16:40:57'),(97,31,160,NULL,NULL,40.000,'شركة الواتر - بدل ريموت عدد 2 للمكتب ت 10/07/2024','2024-10-16 16:40:57','2024-10-16 16:40:57'),(98,31,NULL,11,NULL,1350.000,'ف#17 الحياة المرئية - تصوير  ت 09/07/2024','2024-10-16 16:40:57','2024-10-16 16:40:57'),(99,32,164,NULL,NULL,269.000,'وذلك عن مدفوعات شهر 07 2024 - سكيتشات','2024-10-16 16:50:48','2024-10-16 16:50:48'),(100,32,43,NULL,NULL,1500.000,'ف#927 محمود سعيد المصري تفصيل لوحات خشبية + طباعة','2024-10-16 16:50:48','2024-10-16 16:50:48'),(101,32,160,NULL,NULL,14.000,'ف#29254 ت 25/07/2024 - صيانة السيارة الخاصة بالشركة ( النيسان )','2024-10-16 16:50:48','2024-10-16 16:50:48'),(102,32,159,NULL,NULL,6.000,'ف#43895 الشالاتي - باجة للمبيعات','2024-10-16 16:50:48','2024-10-16 16:50:48'),(103,32,140,NULL,NULL,18.250,'ف#19451 طلة البرج','2024-10-16 16:50:48','2024-10-16 16:50:48'),(104,32,135,NULL,NULL,6.000,'ف#14943 مياه البثينة','2024-10-16 16:50:48','2024-10-16 16:50:48'),(105,32,139,NULL,NULL,7.500,'ف#50213373 الفريد - لوازم الضيافة','2024-10-16 16:50:48','2024-10-16 16:50:48'),(106,32,160,NULL,NULL,6.000,'ف#53 ابو الفيلات ت 14/07/2024','2024-10-16 16:50:48','2024-10-16 16:50:48'),(107,32,160,NULL,NULL,8.000,'ف#54 ابو الفيلات ت 14/07/2024','2024-10-16 16:50:48','2024-10-16 16:50:48'),(108,32,43,NULL,NULL,106.000,'سند استلام #1679  البيت الاوروبي - ستائر رول','2024-10-16 16:50:48','2024-10-16 16:50:48'),(109,32,156,NULL,NULL,255.000,'ف#3002263 الصمادي للاكترونيات - شاشة CG-55 مكتب المدير ( للكاميرات )','2024-10-16 16:50:48','2024-10-16 16:50:48'),(110,33,171,NULL,NULL,130.000,'مدفوعات نقدية - ادارية 07 2024 - دهان المكتب بيد عز الدين','2024-10-16 16:53:33','2024-10-16 16:53:33'),(111,33,160,NULL,NULL,5.000,'مدفوعات نقدية - ادارية 07 2024 ف#173 حمزة الشيخ','2024-10-16 16:53:33','2024-10-16 16:53:33'),(128,35,139,NULL,NULL,56.700,'وذلك عن مدفوعات شهر 08 2024 - ادارية ف#20240244210','2024-10-17 06:15:35','2024-10-17 06:15:35'),(129,35,139,NULL,NULL,24.000,'وذلك عن مدفوعات شهر 08 2024 - ادارية - غداء','2024-10-17 06:15:35','2024-10-17 06:15:35'),(130,35,161,NULL,NULL,143.750,'وذلك عن مدفوعات شهر 08 2024 - ادارية - عبدالله الكايد','2024-10-17 06:15:35','2024-10-17 06:15:35'),(131,35,39,NULL,NULL,285.000,'ف#684 ابراج الكويت هاتف ايفون 12 ذاكرة 128 ت 08/08/2024','2024-10-17 06:15:35','2024-10-17 06:15:35'),(132,36,169,NULL,NULL,14.519,'وذلك عن شراء ترخيص برنامج ت 14/08/2024','2024-10-17 06:21:05','2024-10-17 06:21:05'),(133,37,169,NULL,NULL,184.700,'وذلك عن تكلفة استضافة امازون','2024-10-17 06:24:22','2024-10-17 06:24:22'),(134,38,5,NULL,NULL,13000.000,'وذلك عن شيك 28 ت 03/8 - عهدة عمل ادارية','2024-10-17 06:26:01','2024-10-17 06:26:01'),(136,40,5,NULL,NULL,2400.000,'وذلك عن شيك 30 حق 13/08/2024 عهدة عمل','2024-10-17 06:27:26','2024-10-17 06:27:26'),(137,41,NULL,2,NULL,1400.000,'وذلك عن ف#29587 وسط المدينة للحساب الالي جهاز APPLE MAC','2024-10-17 06:34:16','2024-10-17 06:34:16'),(138,42,159,NULL,NULL,4.000,'مدفوعات نقجية شهر 09 2024 نقدا طباعة اوراق','2024-10-17 06:40:11','2024-10-17 06:40:11'),(139,42,39,NULL,NULL,440.000,'وذلك عن ف#253 نقدا ت 28/09/2024 طابعة IS8','2024-10-17 06:40:11','2024-10-17 06:40:11'),(140,42,171,NULL,NULL,35.000,'ف#119850 الثقة - صيانة طابعة','2024-10-17 06:40:11','2024-10-17 06:40:11'),(141,42,41,NULL,NULL,490.000,'وذلك عن فاتورة ( مفروشات ايمن ) نقدا ت 11/09/2024 - مطاتب عدد 3 +كراسي 4 + خزانة ثلاجة ورفوف','2024-10-17 06:40:11','2024-10-17 06:40:11'),(142,42,159,NULL,NULL,3.900,'ف#9140 قرطاسية الرسم الحر ت 08/09/2024','2024-10-17 06:40:11','2024-10-17 06:40:11'),(143,42,160,NULL,NULL,50.000,'ف#2574 تركيب ريموت للباب ت 09/2024','2024-10-17 06:40:11','2024-10-17 06:40:11'),(144,42,139,NULL,NULL,6.000,'ف#14971 مياه البثينة ت 17/09/2024','2024-10-17 06:40:11','2024-10-17 06:40:11'),(145,42,39,NULL,NULL,199.000,'وذلك عن ف#2379 ت 09/09/2024 عالم الاحبار - طابعة BROTHER 2540','2024-10-17 06:40:11','2024-10-17 06:40:11'),(168,44,170,NULL,NULL,15.000,'مدوفوعات شهر 05 2024 - تم استلامها لاحقا من عز الدين','2024-10-17 06:53:03','2024-10-17 06:53:03'),(169,44,140,NULL,NULL,6.500,'مدوفوعات شهر 05 2024 - تم استلامها لاحقا من عز الدين','2024-10-17 06:53:03','2024-10-17 06:53:03'),(170,44,NULL,10,NULL,619.000,'ق#23264 لات 14/05/2024 السوق المفتوح','2024-10-17 06:53:03','2024-10-17 06:53:03'),(171,44,159,NULL,NULL,36.000,'سكيتشات - مدوفوعات شهر 05 2024 - تم استلامها لاحقا من عز الدين','2024-10-17 06:53:03','2024-10-17 06:53:03'),(172,44,159,NULL,NULL,36.000,'ف# 3748 - مدوفوعات شهر 05 2024 - تم استلامها لاحقا من عز الدين','2024-10-17 06:53:03','2024-10-17 06:53:03'),(173,44,160,NULL,NULL,36.000,'ف#334 سارة للادوات الكهربائية مدوفوعات شهر 05 2024 - تم استلامها لاحقا من عز الدين','2024-10-17 06:53:03','2024-10-17 06:53:03'),(175,45,43,NULL,NULL,333.000,'ف#237 المراسم لاعمال الديكور - PVC','2024-10-17 06:55:50','2024-10-17 06:55:50'),(179,47,NULL,7,NULL,2727.000,'وذلك عن شيك 22 حق 17/04/2024 - دفعة بالحساب عن الايجار حتى 15/04/2024 - ق13','2025-02-11 15:18:20','2025-02-11 15:18:20'),(180,48,74,NULL,NULL,5350.000,'وذلك عن شيك 23 حق 01/5/2024 - رواتب شهر 04 2024','2025-02-11 15:29:25','2025-02-11 15:29:25'),(181,46,155,NULL,NULL,1257.150,'وذلك عن تسديد الضمان الاجتماعي ت 06/04/2024','2025-02-11 15:29:41','2025-02-11 15:29:41'),(182,46,137,NULL,NULL,1.500,'وذلك عن تسديد الضمان الاجتماعي ت 06/04/2024','2025-02-11 15:29:41','2025-02-11 15:29:41'),(183,49,155,NULL,NULL,1257.150,'وذلك عن تسديد الضمان الاجتماعي ت 06/05/2024','2025-02-11 15:31:08','2025-02-11 15:31:08'),(184,49,137,NULL,NULL,1.500,NULL,'2025-02-11 15:31:08','2025-02-11 15:31:08'),(185,50,155,NULL,NULL,2419.934,'وذلك عن تسديد الضمان الاجتماعي ت 01/07/2024','2025-02-11 15:40:27','2025-02-11 15:40:27'),(186,50,137,NULL,NULL,1.500,'وذلك عن تسديد الضمان الاجتماعي ت 01/07/2024','2025-02-11 15:40:27','2025-02-11 15:40:27'),(191,51,139,NULL,NULL,49.680,'وذلك عن مدفوعات نقدية شهر 10 2024م - ف#50356046 الفريد','2025-02-11 15:54:41','2025-02-11 15:54:41'),(192,51,171,NULL,NULL,100.000,'وذلك عن مدفوعات نقدية شهر 10 2024م - فاتورة خضر ابو صفية','2025-02-11 15:54:41','2025-02-11 15:54:41'),(193,51,140,NULL,NULL,27.000,'وذلك عن مدفوعات نقدية شهر 10 2024م ف#20715  طلة البرج','2025-02-11 15:54:41','2025-02-11 15:54:41'),(194,51,140,NULL,NULL,17.500,'وذلك عن مدفوعات نقدية شهر 10 2024م ف 20716 طلة البرج','2025-02-11 15:54:41','2025-02-11 15:54:41'),(206,52,170,NULL,NULL,27.000,'وذلك عن دفعات مصاريف نقدا - شهر 11 2024 جولف','2025-02-11 16:02:34','2025-02-11 16:02:34'),(207,52,170,NULL,NULL,43.000,'وذلك عن دفعات مصاريف نقدا - شهر 11 2024 بوابة الاردن','2025-02-11 16:02:34','2025-02-11 16:02:34'),(208,52,139,NULL,NULL,14.840,'وذلك عن دفعات مصاريف نقدا - شهر 11 2024 - ف#50379275 الفريد','2025-02-11 16:02:34','2025-02-11 16:02:34'),(209,52,160,NULL,NULL,3.000,'وذلك عن دفعات مصاريف نقدا - شهر 11 2024 - نقدا','2025-02-11 16:02:34','2025-02-11 16:02:34'),(210,52,139,NULL,NULL,6.000,'وذلك عن دفعات مصاريف نقدا - شهر 11 2024','2025-02-11 16:02:34','2025-02-11 16:02:34'),(211,52,139,NULL,NULL,6.000,'وذلك عن دفعات مصاريف نقدا - شهر 11 2024','2025-02-11 16:02:34','2025-02-11 16:02:34'),(212,52,139,NULL,NULL,105.000,'وذلك عن دفعات مصاريف نقدا - شهر 11 2024 - ف#4123 اصول الضيافة','2025-02-11 16:02:34','2025-02-11 16:02:34'),(213,52,160,NULL,NULL,40.000,'وذلك عن دفعات مصاريف نقدا - شهر 11 2024 - ف28456 القافلة للشرقيات','2025-02-11 16:02:34','2025-02-11 16:02:34'),(214,52,160,NULL,NULL,20.000,'وذلك عن دفعات مصاريف نقدا - شهر 11 2024 - ف28362 القافلة للشرقيات','2025-02-11 16:02:34','2025-02-11 16:02:34'),(215,52,159,NULL,NULL,70.000,'وذلك عن دفعات مصاريف نقدا - شهر 11 2024 - ف2153 شركة الاصدار الذكي','2025-02-11 16:02:34','2025-02-11 16:02:34'),(216,53,41,NULL,NULL,120.000,'وذلك عن شراء وتفصيل كنب فاتورة مفروشات ايمن ت 07/11/2024 - نقدا','2025-02-11 16:03:00','2025-02-11 16:03:00'),(217,54,NULL,13,NULL,250.000,'وذلك عن سند قبض 3590 السر الكوني - تسديد الاشتراك','2025-02-11 16:15:51','2025-02-11 16:15:51'),(218,55,NULL,10,NULL,4000.000,'دفعات مستحقة عقد السوق المفتوح','2025-02-11 16:23:20','2025-02-11 16:23:20'),(221,57,139,NULL,NULL,4.500,'مدفوعات نقدية حسب المرفق 21/08/2024 - ف#12401 العميد','2025-02-11 16:44:19','2025-02-11 16:44:19'),(222,57,139,NULL,NULL,31.500,'مدفوعات نقدية حسب المرفق 21/08/2024 - ف#12400  العميد','2025-02-11 16:44:19','2025-02-11 16:44:19'),(223,57,139,NULL,NULL,19.500,'مدفوعات نقدية حسب المرفق 30/09/2024','2025-02-11 16:44:19','2025-02-11 16:44:19'),(224,57,139,NULL,NULL,47.870,'مدفوعات نقدية حسب المرفق 30/09/2024 ف 50321123 الفريد','2025-02-11 16:44:19','2025-02-11 16:44:19'),(225,57,140,NULL,NULL,23.450,'مدفوعات نقدية حسب المرفق 30/09/2024 ف 20382 طلة البرج','2025-02-11 16:44:19','2025-02-11 16:44:19'),(226,58,139,NULL,NULL,17.100,'مدفوعات العهدة النثرية شهر 10 2024 - ف#75506 العميد','2025-02-11 16:47:50','2025-02-11 16:47:50'),(227,58,140,NULL,NULL,6.500,'مدفوعات العهدة النثرية شهر 10 2024 - ف 20394 طلة البرج','2025-02-11 16:47:50','2025-02-11 16:47:50'),(228,58,139,NULL,NULL,7.400,'مدفوعات العهدة النثرية شهر 10 2024 - ف#50340151 الفريد','2025-02-11 16:47:50','2025-02-11 16:47:50'),(229,58,140,NULL,NULL,3.400,'مدفوعات العهدة النثرية شهر 10 2024  ف#50337394 الفريد','2025-02-11 16:47:50','2025-02-11 16:47:50'),(230,58,139,NULL,NULL,12.600,'مدفوعات العهدة النثرية شهر 10 2024  ف # 50348457 الفريد','2025-02-11 16:47:50','2025-02-11 16:47:50'),(231,59,NULL,10,NULL,1000.000,'ق 25806 السوق المفتوح ت 21/10/2024','2025-02-11 16:51:36','2025-02-11 16:51:36'),(232,59,NULL,10,NULL,1000.000,'ق 25807 السوق المفتوح ت 27/10/2024','2025-02-11 16:51:36','2025-02-11 16:51:36'),(233,60,39,NULL,NULL,155.000,'وذلك عن ف#119 هاني موبايل - هاتف honor x8b','2025-02-11 16:54:29','2025-02-11 16:54:29'),(234,60,39,NULL,NULL,400.000,'وذلك عن ف#255 نقدية - لابتوب i5 -8 عدد 2 - نقدا ت 26/10/2024','2025-02-11 16:54:29','2025-02-11 16:54:29'),(235,61,155,NULL,NULL,2627.012,'وذلك عن تسديد اشتراك ضمان اجتماعي شهر 09  ت 08/10/2024','2025-02-11 16:56:31','2025-02-11 16:56:31'),(236,61,137,NULL,NULL,1.500,'وذلك عن تسديد اشتراك ضمان اجتماعي شهر 09  ت 08/10/2024','2025-02-11 16:56:31','2025-02-11 16:56:31'),(245,62,140,NULL,NULL,28.450,'دفعات نقدية شهر 12 2024 - ف#21004 طلة البرج','2025-02-11 17:17:04','2025-02-11 17:17:04'),(246,62,139,NULL,NULL,20.000,'دفعات نقدية شهر 12 2024 - ف#83510 شوكلاته','2025-02-11 17:17:04','2025-02-11 17:17:04'),(247,62,139,NULL,NULL,19.556,'دفعات نقدية شهر 12 2024 - شاهين','2025-02-11 17:17:04','2025-02-11 17:17:04'),(248,62,159,NULL,NULL,83.350,'دفعات نقدية شهر 12 2024 - ف#25043 الاقتصاد','2025-02-11 17:17:04','2025-02-11 17:17:04'),(249,62,139,NULL,NULL,23.250,'دفعات نقدية شهر 12 2024 - ف#21425 طلة البرج','2025-02-11 17:17:04','2025-02-11 17:17:04'),(250,62,160,NULL,NULL,16.000,'دفعات نقدية شهر 12 2024 نقدا','2025-02-11 17:17:04','2025-02-11 17:17:04'),(251,62,139,NULL,NULL,26.000,'دفعات نقدية شهر 12 2024 - مياه البثينة','2025-02-11 17:17:04','2025-02-11 17:17:04'),(252,62,159,NULL,NULL,10.000,'دفعات نقدية شهر 12 2024 - ف#2675 الاصدار الذكي','2025-02-11 17:17:04','2025-02-11 17:17:04'),(253,63,139,NULL,NULL,29.700,'دفعات نقدية شهر 12 2024 - العميد 18736','2025-02-11 17:26:00','2025-02-11 17:26:00'),(254,63,159,NULL,NULL,4.100,'دفعات نقدية شهر 12 2024 -الرسم الحر ف 9659','2025-02-11 17:26:00','2025-02-11 17:26:00'),(255,63,139,NULL,NULL,25.200,'دفعات نقدية شهر 12 2024 -ف#5234 العميد','2025-02-11 17:26:00','2025-02-11 17:26:00'),(256,63,139,NULL,NULL,29.700,'دفعات نقدية شهر 12 2024 -العميد ف#55233','2025-02-11 17:26:00','2025-02-11 17:26:00'),(257,63,139,NULL,NULL,50.150,'دفعات نقدية شهر 12 2024 -ف#50391584 الفريد','2025-02-11 17:26:00','2025-02-11 17:26:00'),(258,63,139,NULL,NULL,14.024,'دفعات نقدية شهر 12 2024 -ف106369 كابولي','2025-02-11 17:26:00','2025-02-11 17:26:00'),(259,63,139,NULL,NULL,13.420,'دفعات نقدية شهر 12 2024 -50408168 الفريد','2025-02-11 17:26:00','2025-02-11 17:26:00'),(260,63,171,NULL,NULL,54.000,'دفعات نقدية شهر 12 2024 -ف#52515 البشيتي','2025-02-11 17:26:00','2025-02-11 17:26:00'),(261,63,139,NULL,NULL,17.996,'دفعات نقدية شهر 12 2024 -ف106370 كابولي','2025-02-11 17:26:00','2025-02-11 17:26:00'),(262,63,139,NULL,NULL,14.500,'دفعات نقدية شهر 12 2024 -50416260 الفريد','2025-02-11 17:26:00','2025-02-11 17:26:00'),(263,63,139,NULL,NULL,25.790,'دفعات نقدية شهر 12 2024 -ف#50391579 الفريد','2025-02-11 17:26:00','2025-02-11 17:26:00'),(264,63,159,NULL,NULL,12.750,'دفعات نقدية شهر 12 2024 -ف#375 الشالاتي','2025-02-11 17:26:00','2025-02-11 17:26:00'),(265,63,160,NULL,NULL,3.000,'دفعات نقدية شهر 12 2024 -ف#13585253 عابدين','2025-02-11 17:26:00','2025-02-11 17:26:00'),(266,63,139,NULL,NULL,8.920,'دفعات نقدية شهر 12 2024 -مخابز نيشان','2025-02-11 17:26:00','2025-02-11 17:26:00'),(267,63,140,NULL,NULL,5.970,'دفعات نقدية شهر 12 2024 -ف#50411657 الفريد','2025-02-11 17:26:00','2025-02-11 17:26:00'),(268,64,139,NULL,NULL,3.000,'مدفوعات نقدية حسب المرفق 2024','2025-02-11 17:31:46','2025-02-11 17:31:46'),(269,64,41,NULL,NULL,213.000,'وذلك عن فاتورة العربية للاجهزة الكهربائية - ثلاجة مكتب + كولر +سخان ت 30/11/2024','2025-02-11 17:31:46','2025-02-11 17:31:46'),(270,64,140,NULL,NULL,18.450,'ف#21121 طلة البرج ت 30/11/2024','2025-02-11 17:31:46','2025-02-11 17:31:46'),(271,64,39,NULL,NULL,590.034,'وذلك عن #46768 وسط المدينة - جهاز dell 7010 i7','2025-02-11 17:31:46','2025-02-11 17:31:46'),(272,64,157,NULL,NULL,90.000,'فاتورة كاميرات - هدف القناص لخدمات الكمبيوتر ت 14/12/2024 - نقدا','2025-02-11 17:31:46','2025-02-11 17:31:46'),(273,65,161,NULL,NULL,835.000,'وذلك عن استشارات دليل العقار - جهاد نمر','2025-02-11 17:33:36','2025-02-11 17:33:36'),(274,66,74,NULL,NULL,5000.000,'مكافات الموظفين للعام 2024 شيك 39 حق 25/12/2024','2025-02-11 17:34:42','2025-02-11 17:34:42'),(277,67,174,NULL,NULL,23300.000,'شراء سيارة بكب فورد f150 نة 2020 - خاص للشركة رقم 45-21667 - المالك م.محمد اديب','2025-02-11 17:40:03','2025-02-11 17:40:03'),(278,67,163,NULL,NULL,411.550,'شراء سيارة بكب فورد f150 نة 2020 - خاص للشركة رقم 45-21667','2025-02-11 17:40:03','2025-02-11 17:40:03'),(279,68,170,NULL,NULL,197.250,'مدفوعات بنزين خلال شهر 12 2024 - من الموظفين','2025-02-11 17:46:01','2025-02-11 17:46:01'),(292,69,133,NULL,NULL,60.911,'وذلك عن فاتورة كهرباء المكتب شهر 03 2024','2025-02-12 17:46:34','2025-02-12 17:46:34'),(293,69,133,NULL,NULL,61.032,'وذلك عن فاتورة كهرباء المكتب شهر  04 2024','2025-02-12 17:46:34','2025-02-12 17:46:34'),(294,69,133,NULL,NULL,79.666,'وذلك عن فاتورة كهرباء المكتب شهر  05 2024','2025-02-12 17:46:34','2025-02-12 17:46:34'),(295,69,133,NULL,NULL,206.716,'وذلك عن فاتورة كهرباء المكتب شهر 06 2024','2025-02-12 17:46:34','2025-02-12 17:46:34'),(296,69,133,NULL,NULL,237.692,'وذلك عن فاتورة كهرباء المكتب شهر 07 2024','2025-02-12 17:46:34','2025-02-12 17:46:34'),(297,69,133,NULL,NULL,225.350,'وذلك عن فاتورة كهرباء المكتب شهر 08 2024','2025-02-12 17:46:34','2025-02-12 17:46:34'),(298,69,133,NULL,NULL,181.911,'وذلك عن فاتورة كهرباء المكتب شهر 09 2024','2025-02-12 17:46:34','2025-02-12 17:46:34'),(299,69,133,NULL,NULL,159.163,'وذلك عن فاتورة كهرباء المكتب شهر 10 2024','2025-02-12 17:46:34','2025-02-12 17:46:34'),(300,69,133,NULL,NULL,148.031,'وذلك عن فاتورة كهرباء المكتب شهر 11 2024','2025-02-12 17:46:34','2025-02-12 17:46:34'),(301,69,133,NULL,NULL,192.317,'وذلك عن فاتورة كهرباء المكتب شهر 12 2024','2025-02-12 17:46:34','2025-02-12 17:46:34'),(302,70,NULL,14,NULL,500.000,'وذلك عن دفعة بالحساب الجيل ميديا - نقدا','2025-02-16 15:39:27','2025-02-16 15:39:27'),(303,71,NULL,14,NULL,1000.000,'وذلك عن دفعة بالحساب الجيل ميديا - نقدا','2025-02-16 15:40:22','2025-02-16 15:40:22'),(304,72,NULL,14,NULL,1000.000,'وذلك عن دفعة بالحساب الجيل ميديا - نقدا','2025-02-16 15:40:59','2025-02-16 15:40:59'),(305,73,NULL,14,NULL,1000.000,'وذلك عن دفعة بالحساب الجيل ميديا - نقدا','2025-02-16 15:41:33','2025-02-16 15:41:33'),(306,74,NULL,14,NULL,1000.000,'وذلك عن دفعة بالحساب الجيل ميديا - نقدا','2025-02-16 15:43:07','2025-02-16 15:43:07'),(307,75,NULL,14,NULL,1000.000,'وذلك عن دفعة بالحساب الجيل ميديا - نقدا','2025-02-16 16:05:58','2025-02-16 16:05:58'),(308,76,NULL,14,NULL,1000.000,'وذلك عن دفعة بالحساب الجيل ميديا - نقدا','2025-02-16 16:07:00','2025-02-16 16:07:00'),(309,77,NULL,14,NULL,1000.000,'وذلك عن دفعة بالحساب الجيل ميديا - نقدا','2025-02-16 16:07:35','2025-02-16 16:07:35'),(310,78,NULL,14,NULL,2000.000,'وذلك عن دفعة بالحساب الجيل ميديا - نقدا','2025-02-16 16:08:13','2025-02-16 16:08:13'),(313,79,169,NULL,NULL,120.000,'وذلك عن خدمات استضافة ف#173 ojeed','2025-02-16 16:25:40','2025-02-16 16:25:40'),(314,80,169,NULL,NULL,70.644,'وذلك عن خدمات استضافة مدفوعة خلال 2024 - حسب المرفق','2025-02-16 16:31:35','2025-02-16 16:31:35'),(315,81,169,NULL,NULL,50.000,'وذلك عن خدمات استضافة مدفوعة خلال 2024 - حسب المرفق','2025-02-16 16:32:38','2025-02-16 16:32:38'),(316,82,169,NULL,NULL,14.200,'وذلك عن خدمات استضافة مدفوعة خلال 2024 - حسب المرفق','2025-02-16 16:34:02','2025-02-16 16:34:02'),(317,83,169,NULL,NULL,167.200,'وذلك عن خدمات استضافة مدفوعة خلال 2024 - حسب المرفق','2025-02-16 16:53:54','2025-02-16 16:53:54'),(318,84,169,NULL,NULL,8.912,'وذلك عن خدمات استضافة مدفوعة خلال 2024 - حسب المرفق','2025-02-16 16:55:04','2025-02-16 16:55:04'),(320,85,169,NULL,NULL,210.250,'وذلك عن خدمات استضافة مدفوعة خلال 2024 - حسب المرفق','2025-02-16 16:57:20','2025-02-16 16:57:20'),(321,86,169,NULL,NULL,250.530,'وذلك عن خدمات استضافة مدفوعة خلال 2024 - حسب المرفق','2025-02-16 16:58:48','2025-02-16 16:58:48'),(322,87,169,NULL,NULL,72.000,'وذلك عن خدمات استضافة مدفوعة خلال 2024 - حسب المرفق','2025-02-16 17:00:06','2025-02-16 17:00:06'),(323,88,169,NULL,NULL,8.919,'وذلك عن خدمات استضافة مدفوعة خلال 2024 - حسب المرفق','2025-02-16 17:01:07','2025-02-16 17:01:07'),(324,89,169,NULL,NULL,200.532,'وذلك عن خدمات استضافة مدفوعة خلال 2024 - حسب المرفق','2025-02-16 17:03:20','2025-02-16 17:03:20'),(326,90,160,NULL,NULL,15.000,'فاتورة القتاص لخدمات الكمبيورت - سويتش','2025-02-16 17:06:55','2025-02-16 17:06:55'),(327,90,160,NULL,NULL,14.000,'ف#2619 الاصدار الذكي ت 18/12/2024','2025-02-16 17:06:55','2025-02-16 17:06:55'),(328,91,74,NULL,NULL,500.000,'تسديد اتعاب تدقيق 2023 - نقدا','2025-02-16 18:20:49','2025-02-16 18:20:49'),(329,56,149,NULL,NULL,3315.000,'وذلك عن دفعات الايجار - ق#56 شيك 36 مكتب 104','2025-02-18 15:09:26','2025-02-18 15:09:26'),(330,56,NULL,7,NULL,4375.000,'وذلك عن دفعات الايجار - ق#55شيك 35مكتب 203','2025-02-18 15:09:26','2025-02-18 15:09:26'),(332,92,74,NULL,NULL,3000.000,'وذلك عن رواتب 06 2024','2025-02-18 15:18:30','2025-02-18 15:18:30'),(333,93,130,NULL,NULL,3000.000,'وذلك عن رواتب 06 2024 - مكافات','2025-02-18 15:19:18','2025-02-18 15:19:18'),(334,94,74,NULL,NULL,6940.000,'وذلك عن رواتب شهر 06 2024','2025-02-18 15:20:39','2025-02-18 15:20:39'),(335,95,149,NULL,NULL,4000.000,'وذلك عن سحوبات الشريك محمد اديب شيك 25 حق 04/07/2024','2025-02-18 15:26:38','2025-02-18 15:26:38'),(336,96,149,NULL,NULL,2500.000,'وذلك عن شيك 27 - من ثمن سيارة التسلا للشريك محمد اديب ت 22/07/2024','2025-02-18 15:28:10','2025-02-18 15:28:10'),(337,97,43,NULL,NULL,750.000,'وذلك عن شيك 26 -ديكورات مكتب - شركة التحكم بالمواقع','2025-02-18 15:29:03','2025-02-18 15:29:03'),(338,98,74,NULL,NULL,7540.000,'وذلك عن رواتب شهر 07 2024','2025-02-18 15:29:46','2025-02-18 15:29:46'),(339,99,149,NULL,NULL,680.000,'وذلك عن سحب شخصي الشريك محمد اديب شيك 29','2025-02-18 15:34:32','2025-02-18 15:34:32'),(340,100,137,NULL,NULL,5.000,'عمولة دفتر شيكات 14/08/2024 - من كشف البنك','2025-02-18 15:35:17','2025-02-18 15:35:17'),(341,101,161,NULL,NULL,1000.000,'وذلك عن شيك 31 حق 28/08/2024 - مياومات / متدربين برمجة','2025-02-18 15:37:24','2025-02-18 15:37:24'),(342,102,74,NULL,NULL,7590.000,'وذلك عن رواتب شهر 08 2024','2025-02-18 15:38:05','2025-02-18 15:38:05'),(343,103,161,NULL,NULL,240.000,'وذلك عن شيك 32 - راتب المبرمج حمزة شهر 08 2024','2025-02-18 15:39:03','2025-02-18 15:39:03'),(344,104,161,NULL,NULL,1300.000,'وذلك عن شيك 33 حق 29/09/2024 - رواتب متدربين برمجة - نقدا','2025-02-18 15:41:11','2025-02-18 15:41:11'),(345,105,74,NULL,NULL,7590.000,'وذلك عن رواتب شهر 09/2024','2025-02-18 15:41:51','2025-02-18 15:41:51'),(346,106,74,NULL,NULL,1350.000,'وذلك عن رواتب شهر 10 2024 مع مكافات اعمال اضافية','2025-02-18 15:44:33','2025-02-18 15:44:33'),(347,106,74,NULL,NULL,7690.000,'وذلك عن رواتب شهر 10 2024 مع مكافات اعمال اضافية','2025-02-18 15:44:33','2025-02-18 15:44:33'),(348,107,149,NULL,NULL,132.010,'وذلك عن دفعات بنكية تخص الشريك محمد اديب 19/11/2024','2025-02-18 15:46:11','2025-02-18 15:46:11'),(349,108,74,NULL,NULL,1350.000,'وذلك عن رواتب شهر 11 2024','2025-02-18 15:47:21','2025-02-18 15:47:21'),(350,108,74,NULL,NULL,7440.000,'وذلك عن رواتب شهر 11 2024','2025-02-18 15:47:21','2025-02-18 15:47:21'),(351,109,155,NULL,NULL,2522.872,'وذلك عن دفعة بالحساب الضمان الاجتماعي ت 02/12/2024','2025-02-18 15:48:36','2025-02-18 15:48:36'),(352,109,137,NULL,NULL,1.500,'وذلك عن دفعة بالحساب الضمان الاجتماعي ت 02/12/2024','2025-02-18 15:48:36','2025-02-18 15:48:36'),(353,110,149,NULL,NULL,2000.000,'وذلك عن حركتين سحب صراف ت 29/12/2024 - الف دينار كل حركة','2025-02-18 15:51:32','2025-02-18 15:51:32'),(354,111,74,NULL,NULL,8490.000,'وذلك عن رواتب شهر 12 2024','2025-02-18 15:52:28','2025-02-18 15:52:28'),(355,112,155,NULL,NULL,63.800,'وذلك عن دفعة بالحساب - ضمان اجتماعي 30/12/2024','2025-02-18 15:53:25','2025-02-18 15:53:25'),(356,112,137,NULL,NULL,1.500,'وذلك عن دفعة بالحساب - ضمان اجتماعي 30/12/2024','2025-02-18 15:53:25','2025-02-18 15:53:25'),(357,113,74,NULL,NULL,5350.000,'وذلك عن رواتب شهر 05 2024','2025-02-18 17:03:26','2025-02-18 17:03:26'),(358,43,139,NULL,NULL,6.000,'مدفوعات نقدية شهر 09 2024 ف#14964 البثينة','2025-02-18 17:13:26','2025-02-18 17:13:26'),(359,43,140,NULL,NULL,5.750,'ف#19872 طلة البرج ت 28/08/2024','2025-02-18 17:13:26','2025-02-18 17:13:26'),(360,43,140,NULL,NULL,26.450,'ف#19871 طلة البرج ت 28/08/2024','2025-02-18 17:13:26','2025-02-18 17:13:26'),(361,43,140,NULL,NULL,30.450,'ف#19870 طلة البرج ت 28/08/2024','2025-02-18 17:13:26','2025-02-18 17:13:26'),(362,43,160,NULL,NULL,36.500,'ف#11518 شركة بدرنجا وبرهم - نافورة وورد ت 25/08/2024','2025-02-18 17:13:26','2025-02-18 17:13:26'),(363,43,139,NULL,NULL,6.300,'ف#50286457 اسواق الفريد','2025-02-18 17:13:26','2025-02-18 17:13:26'),(364,43,139,NULL,NULL,62.708,'ف#50287946 اسواق الفريد','2025-02-18 17:13:26','2025-02-18 17:13:26'),(365,43,139,NULL,NULL,10.802,'ف#50287939 اسواق الفريد','2025-02-18 17:13:26','2025-02-18 17:13:26'),(366,43,171,NULL,NULL,25.000,'ف#192 مركز حمزة الشيخ ت 03/09/2024','2025-02-18 17:13:26','2025-02-18 17:13:26'),(367,43,NULL,10,NULL,1000.000,'قبض 23296 ت 27/08/2024 - دفعة رقم 1 من الاتفاقية','2025-02-18 17:13:26','2025-02-18 17:13:26'),(368,43,160,NULL,NULL,120.000,'ف#33031 وسط المدينة ت 22/09/2024','2025-02-18 17:13:26','2025-02-18 17:13:26'),(369,114,163,NULL,NULL,201.430,'تجديد رخصة مهن 2024 نقدا','2025-02-19 17:23:27','2025-02-19 17:23:27'),(370,115,136,NULL,NULL,46.400,'مدفوعات انترنت 06/10/2024','2025-02-19 17:28:11','2025-02-19 17:28:11'),(371,115,136,NULL,NULL,23.200,'مدفوعات انترنت 03/11/2024','2025-02-19 17:28:11','2025-02-19 17:28:11'),(372,115,136,NULL,NULL,23.200,'مدفوعات انترنت08/12/2024','2025-02-19 17:28:11','2025-02-19 17:28:11'),(373,116,155,NULL,NULL,2408.682,'دفعة بالحساب ضمان اجتماعي 03 2024','2025-02-19 17:37:49','2025-02-19 17:37:49'),(374,39,155,NULL,NULL,1078.653,'دفعة اشتراكات ضمان اجتماعي','2025-02-19 17:38:42','2025-02-19 17:38:42'),(375,39,137,NULL,NULL,1.500,'دفعة اشتراكات ضمان اجتماعي','2025-02-19 17:38:42','2025-02-19 17:38:42'),(376,117,149,NULL,NULL,9000.000,'وذلك عن سحوبات نقدية الشريك محمد اديب','2025-02-19 17:57:50','2025-02-19 17:57:50'),(378,30,136,NULL,NULL,23.000,'قبض# 52259 الحداثة للاتصالات - اشتراك انترنت','2025-02-19 18:07:34','2025-02-19 18:07:34'),(379,30,160,NULL,NULL,4.900,'ف#45973 البشيتي - لوازم كهرباء','2025-02-19 18:07:34','2025-02-19 18:07:34'),(380,30,140,NULL,NULL,6.640,'ف#11178033 عمران مول','2025-02-19 18:07:34','2025-02-19 18:07:34'),(381,30,139,NULL,NULL,6.000,'ف#14923 مياه للمكتب','2025-02-19 18:07:34','2025-02-19 18:07:34'),(382,30,140,NULL,NULL,11.350,'ف#18776 طلة البرج ت 02/6/2024','2025-02-19 18:07:34','2025-02-19 18:07:34'),(383,30,139,NULL,NULL,26.000,'ف#14932 البثينة للمياه - كوبونات ت 24/06/2024','2025-02-19 18:07:34','2025-02-19 18:07:34'),(384,30,140,NULL,NULL,31.000,'ف#19064 طلة البرج ت 29/06/2024','2025-02-19 18:07:34','2025-02-19 18:07:34'),(385,30,139,NULL,NULL,22.540,'ف#50207630 الفريد','2025-02-19 18:07:34','2025-02-19 18:07:34'),(386,30,139,NULL,NULL,3.590,'ف#5021940 الفريد ت 29/06/2024','2025-02-19 18:07:34','2025-02-19 18:07:34'),(387,34,139,NULL,NULL,15.600,'وذلك عن مدفوعات شهر 08 2024 - ف#50263255 الفريد','2025-02-19 18:07:52','2025-02-19 18:07:52'),(388,34,139,NULL,NULL,23.200,'وذلك عن مدفوعات شهر 08 2024 ف#126685 بستوكة','2025-02-19 18:07:52','2025-02-19 18:07:52'),(389,34,139,NULL,NULL,2.030,'وذلك عن مدفوعات شهر 08 2024 ف#50249258 الفريد','2025-02-19 18:07:52','2025-02-19 18:07:52'),(390,34,136,NULL,NULL,23.400,'وذلك عن مدفوعات شهر 08 2024 الحداثة','2025-02-19 18:07:52','2025-02-19 18:07:52'),(391,34,140,NULL,NULL,7.950,'وذلك عن مدفوعات شهر 08 2024 ف#50264319 الفريد','2025-02-19 18:07:52','2025-02-19 18:07:52'),(392,34,140,NULL,NULL,100.000,'وذلك عن مدفوعات شهر 08 2024 ت 25/08/2024','2025-02-19 18:07:52','2025-02-19 18:07:52'),(393,34,139,NULL,NULL,6.000,'وذلك عن مدفوعات شهر 08 2024 ف#14962','2025-02-19 18:07:52','2025-02-19 18:07:52'),(394,34,139,NULL,NULL,4.500,'وذلك عن مدفوعات شهر 08 2024 ف#14951','2025-02-19 18:07:52','2025-02-19 18:07:52'),(395,34,171,NULL,NULL,2.500,'وذلك عن مدفوعات شهر 08 2024 ف#21788 تلاع العلي لمواد البناء','2025-02-19 18:07:52','2025-02-19 18:07:52'),(396,34,160,NULL,NULL,35.000,'وذلك عن مدفوعات شهر 08 2024 ف#61447 البشيتي','2025-02-19 18:07:52','2025-02-19 18:07:52'),(397,34,41,NULL,NULL,950.000,'ف#27679 اثاث مكتبي ت 24/08/2024 نقدا','2025-02-19 18:07:52','2025-02-19 18:07:52'),(398,34,171,NULL,NULL,32.000,'وذلك عن مدفوعات شهر 08 2024 ف# 61448 ت 24/08/2024','2025-02-19 18:07:52','2025-02-19 18:07:52'),(399,34,41,NULL,NULL,660.000,'مشتريات ايمن - طقم كنب + كراسي + كنب غرفة اجتماعات ت 24/08/2024','2025-02-19 18:07:52','2025-02-19 18:07:52'),(400,34,159,NULL,NULL,3.000,'ف#2429730 الخدمة السريعة ت 22/08/2024','2025-02-19 18:07:52','2025-02-19 18:07:52'),(401,34,171,NULL,NULL,44.000,'اركان القيسي ت 22/08/2024','2025-02-19 18:07:52','2025-02-19 18:07:52'),(402,34,43,NULL,NULL,333.000,'ف#237 ارضيات P.V.C ت 17/08/2024','2025-02-19 18:07:52','2025-02-19 18:07:52'),(403,118,149,NULL,NULL,25000.000,'سحوبات الشريك محمد','2025-03-08 12:17:51','2025-03-08 12:17:51'),(411,122,139,NULL,NULL,9.000,'وذلك عن مدفوعات - ف#9817527 كرتونة مياه','2025-11-05 13:13:30','2025-11-05 13:13:30'),(415,121,139,NULL,NULL,25.200,'وذلك عن مدفوعات - بن العميد  - قهوة ف#108559','2025-11-05 13:16:18','2025-11-05 13:16:18'),(416,120,160,NULL,NULL,67.000,'وذلك عن مدفوعات - كشاف ليد ف#1450  - ترالوكس جروب','2025-11-05 13:16:42','2025-11-05 13:16:42'),(418,119,171,NULL,NULL,12.000,'وذلك عن مدفوعات - ريش - بوابة الشرق لمواد البناء','2025-11-05 13:39:43','2025-11-05 13:39:43');

--
-- Table structure for table `exchange_ewallet_items`
--

CREATE TABLE `exchange_ewallet_items` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `exchange_id` bigint unsigned NOT NULL,
  `from_number` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `amount` double(10,2) NOT NULL,
  `date` date NOT NULL,
  `notice` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  PRIMARY KEY (`id`),
  KEY `exchange_ewallet_items_exchange_id_foreign` (`exchange_id`),
  CONSTRAINT `exchange_ewallet_items_exchange_id_foreign` FOREIGN KEY (`exchange_id`) REFERENCES `exchange_entries` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `exchange_ewallet_items`
--


--
-- Table structure for table `exchange_transfers`
--

CREATE TABLE `exchange_transfers` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `exchange_id` bigint unsigned NOT NULL,
  `number` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `amount` double(13,3) NOT NULL,
  `date` date NOT NULL,
  `notice` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  PRIMARY KEY (`id`),
  KEY `exchange_transfers_exchange_id_foreign` (`exchange_id`),
  CONSTRAINT `exchange_transfers_exchange_id_foreign` FOREIGN KEY (`exchange_id`) REFERENCES `exchange_entries` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=58 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `exchange_transfers`
--

INSERT INTO `exchange_transfers` VALUES (1,13,'9',11750.000,'2024-03-13','دفعة اولى - شيك #9 ت 13/03/2024 شركة سمير العمري ONLINE24'),(3,23,'1',18.100,'2024-05-30','وذلك عن مدوفعات مكتبية - ادارية 05 2024 Gmail'),(4,26,'1',18.000,'2024-06-26',NULL),(5,29,'1',52.290,'2024-06-03',NULL),(6,36,'1',14.519,'2024-08-14',NULL),(7,37,'1',184.700,'2024-08-03',NULL),(8,38,'28',13000.000,'2024-08-03',NULL),(10,40,'1',2400.000,'2024-08-13',NULL),(13,47,'22',2727.000,'2024-04-16',NULL),(14,48,'23',5350.000,'2024-05-01','وذلك عن شيك 23 حق 01/5/2024 - رواتب شهر 04 2024'),(15,46,'2257516',1258.650,'2024-04-06','وذلك عن تسديد الضمان الاجتماعي ت 06/04/2024'),(16,49,'11',1258.650,'2024-05-06','وذلك عن تسديد الضمان الاجتماعي ت 06/05/2024'),(17,50,'111',2421.434,'2024-12-31','وذلك عن تسديد الضمان الاجتماعي ت 01/07/2024'),(20,61,'01',2628.512,'2024-10-08',NULL),(21,66,'39',5000.000,'2024-12-31',NULL),(23,83,'1',167.200,'2024-07-03',NULL),(24,84,'1',8.912,'2024-11-03',NULL),(25,85,'1',210.250,'2024-11-02',NULL),(26,86,'1',250.530,'2024-12-02',NULL),(27,88,'1',8.919,'2024-10-03',NULL),(28,89,'1',200.532,'2024-10-03',NULL),(29,56,'35',4375.000,'2024-11-18',NULL),(30,56,'36',3315.000,'2024-11-18',NULL),(32,92,'256508989',3000.000,'2024-05-13','وذلك عن رواتب 06 2024'),(33,93,'272465605',3000.000,'2024-06-10',NULL),(34,94,'280237865',6940.000,'2024-06-26','وذلك عن رواتب شهر 06 2024'),(35,95,'25',4000.000,'2024-07-02',NULL),(36,96,'27',2500.000,'2024-07-28','وذلك عن شيك 27 - من ثمن سيارة التسلا للشريك محمد اديب ت 22/07/2024'),(37,97,'26',750.000,'2024-07-28',NULL),(38,98,'300586973',7540.000,'2024-07-28',NULL),(39,99,'29',680.000,'2024-08-11',NULL),(40,100,'1',5.000,'2024-08-14',NULL),(41,101,'31',1000.000,'2024-08-28','وذلك عن شيك 31 حق 28/08/2024 - مياومات / متدربين برمجة'),(42,102,'321692553',7590.000,'2024-08-28',NULL),(43,103,'32',240.000,'2024-08-28',NULL),(44,104,'33',1300.000,'2024-09-29',NULL),(45,105,'341401583',7590.000,'2024-09-29',NULL),(46,106,'34',1350.000,'2024-10-28',NULL),(47,106,'361402132',7690.000,'2024-10-28',NULL),(48,107,'2257516',132.010,'2024-11-19',NULL),(49,108,'37',1350.000,'2024-11-28',NULL),(50,108,'385260917',7440.000,'2024-11-28',NULL),(51,109,'1',2524.372,'2024-12-02',NULL),(52,110,'1',2000.000,'2024-12-29',NULL),(53,111,'38',2250.000,'2024-12-29',NULL),(54,111,'404492374',6240.000,'2024-12-29',NULL),(55,112,'11',65.300,'2024-12-30',NULL),(56,113,'24',5350.000,'2024-06-02',NULL),(57,39,'1',1080.153,'2024-08-17',NULL);

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

CREATE TABLE `failed_jobs` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `uuid` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `connection` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `queue` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `payload` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `exception` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `failed_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `failed_jobs`
--


--
-- Table structure for table `fiscal_periods`
--

CREATE TABLE `fiscal_periods` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `year_id` bigint unsigned NOT NULL,
  `month` int NOT NULL,
  `is_open` tinyint(1) NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`),
  KEY `fiscal_periods_year_id_foreign` (`year_id`),
  CONSTRAINT `fiscal_periods_year_id_foreign` FOREIGN KEY (`year_id`) REFERENCES `fiscal_years` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=37 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `fiscal_periods`
--

INSERT INTO `fiscal_periods` VALUES (1,1,1,1),(2,1,2,1),(3,1,3,1),(4,1,4,1),(5,1,5,1),(6,1,6,1),(7,1,7,1),(8,1,8,1),(9,1,9,1),(10,1,10,1),(11,1,11,1),(12,1,12,1),(13,2,1,1),(14,2,2,1),(15,2,3,1),(16,2,4,1),(17,2,5,1),(18,2,6,1),(19,2,7,1),(20,2,8,1),(21,2,9,1),(22,2,10,1),(23,2,11,1),(24,2,12,0),(25,3,1,1),(26,3,2,1),(27,3,3,1),(28,3,4,1),(29,3,5,1),(30,3,6,1),(31,3,7,1),(32,3,8,1),(33,3,9,1),(34,3,10,1),(35,3,11,1),(36,3,12,1);

--
-- Table structure for table `fiscal_years`
--

CREATE TABLE `fiscal_years` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `from` date NOT NULL,
  `to` date NOT NULL,
  `is_open` tinyint(1) NOT NULL DEFAULT '1',
  `is_active` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `fiscal_years`
--

INSERT INTO `fiscal_years` VALUES (1,'2023-01-01','2023-12-31',1,0),(2,'2024-01-01','2024-12-31',0,1),(3,'2025-01-01','2025-12-31',1,0);

--
-- Table structure for table `floors`
--

CREATE TABLE `floors` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `building_id` bigint unsigned NOT NULL,
  `number` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `title` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `area` double(10,3) NOT NULL,
  `shops_area` double(10,3) NOT NULL,
  `booths_area` double(10,3) NOT NULL,
  `notice` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `floors_building_id_foreign` (`building_id`),
  CONSTRAINT `floors_building_id_foreign` FOREIGN KEY (`building_id`) REFERENCES `buildings` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `floors`
--


--
-- Table structure for table `general_banks`
--

CREATE TABLE `general_banks` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `active_status` tinyint(1) NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `general_banks`
--

INSERT INTO `general_banks` VALUES (1,'البنك العربي',1),(2,'بنك الأردن',1),(3,'البنك التجاري الأردني',1),(4,'البنك الأهلي الأردني',1),(5,'بنك الاستثمار العربي الأردني',1),(6,'بنك القاهرة عمان',1),(7,'البنك الأردني الكويتي',1),(8,'بنك الإسكان للتجارة والتمويل',1),(9,'بنك الاتحاد',1),(10,'البنك الاستثماري',1);

--
-- Table structure for table `general_item_classifications`
--

CREATE TABLE `general_item_classifications` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `general_item_classifications_name_unique` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `general_item_classifications`
--


--
-- Table structure for table `invoice_receipt_payments`
--

CREATE TABLE `invoice_receipt_payments` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `receipt_id` bigint unsigned NOT NULL,
  `invoice_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'services_invoice / rental_contract_invoice / sales_invoice',
  `services_invoice_id` bigint unsigned DEFAULT NULL,
  `rental_invoice_id` bigint unsigned DEFAULT NULL,
  `sales_invoice_id` bigint unsigned DEFAULT NULL,
  `amount` double(13,3) NOT NULL,
  `cost_center_id` bigint unsigned DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `invoice_receipt_payments_receipt_id_foreign` (`receipt_id`),
  KEY `invoice_receipt_payments_cost_center_id_foreign` (`cost_center_id`),
  CONSTRAINT `invoice_receipt_payments_cost_center_id_foreign` FOREIGN KEY (`cost_center_id`) REFERENCES `cost_centers` (`id`),
  CONSTRAINT `invoice_receipt_payments_receipt_id_foreign` FOREIGN KEY (`receipt_id`) REFERENCES `receipt_entries` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `invoice_receipt_payments`
--


--
-- Table structure for table `item_dynamic_input_values`
--

CREATE TABLE `item_dynamic_input_values` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `item_id` bigint unsigned NOT NULL,
  `dynamic_input_id` bigint unsigned NOT NULL,
  `value` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `item_dynamic_input_values_item_id_foreign` (`item_id`),
  KEY `item_dynamic_input_values_dynamic_input_id_foreign` (`dynamic_input_id`),
  CONSTRAINT `item_dynamic_input_values_dynamic_input_id_foreign` FOREIGN KEY (`dynamic_input_id`) REFERENCES `item_dynamic_inputs` (`id`),
  CONSTRAINT `item_dynamic_input_values_item_id_foreign` FOREIGN KEY (`item_id`) REFERENCES `items` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `item_dynamic_input_values`
--


--
-- Table structure for table `item_dynamic_inputs`
--

CREATE TABLE `item_dynamic_inputs` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `label` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `is_required` tinyint(1) NOT NULL DEFAULT '0',
  `options` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `item_dynamic_inputs`
--


--
-- Table structure for table `item_manufacturing_recipes`
--

CREATE TABLE `item_manufacturing_recipes` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `item_id` bigint unsigned NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `item_manufacturing_recipes_item_id_foreign` (`item_id`),
  CONSTRAINT `item_manufacturing_recipes_item_id_foreign` FOREIGN KEY (`item_id`) REFERENCES `items` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `item_manufacturing_recipes`
--


--
-- Table structure for table `item_size_types`
--

CREATE TABLE `item_size_types` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `item_size_types`
--

INSERT INTO `item_size_types` VALUES (1,'مل'),(2,'لتر');

--
-- Table structure for table `items`
--

CREATE TABLE `items` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `number` bigint DEFAULT NULL,
  `full_number` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `ar_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `en_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `category_id` bigint unsigned NOT NULL,
  `general_classification_id` bigint unsigned DEFAULT NULL,
  `primary_supplier_id` bigint unsigned DEFAULT NULL,
  `secondary_supplier_id` bigint unsigned DEFAULT NULL,
  `country_id` bigint unsigned DEFAULT NULL,
  `under_tax` tinyint(1) NOT NULL DEFAULT '0',
  `tax_id` bigint unsigned DEFAULT NULL,
  `has_expire_date` tinyint(1) NOT NULL DEFAULT '0',
  `decimal_quantity` tinyint(1) NOT NULL DEFAULT '0',
  `size_type_id` bigint unsigned DEFAULT NULL,
  `size` double DEFAULT NULL,
  `barcode_price_types` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '[]',
  `has_serial_number` tinyint(1) NOT NULL DEFAULT '0',
  `manufacturable_item` tinyint(1) NOT NULL DEFAULT '0',
  `purchases_discount_ratio` double DEFAULT NULL,
  `purchase_orders` tinyint(1) NOT NULL DEFAULT '1',
  `editable_price` tinyint(1) NOT NULL DEFAULT '0',
  `auto_generate_barcodes_numbers` tinyint(1) NOT NULL DEFAULT '0',
  `status` tinyint(1) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `items_full_number_unique` (`full_number`),
  KEY `items_category_id_foreign` (`category_id`),
  KEY `items_primary_supplier_id_foreign` (`primary_supplier_id`),
  KEY `items_secondary_supplier_id_foreign` (`secondary_supplier_id`),
  KEY `items_country_id_foreign` (`country_id`),
  KEY `items_tax_id_foreign` (`tax_id`),
  KEY `items_size_type_id_foreign` (`size_type_id`),
  KEY `items_general_classification_id_foreign` (`general_classification_id`),
  CONSTRAINT `items_category_id_foreign` FOREIGN KEY (`category_id`) REFERENCES `categories` (`id`),
  CONSTRAINT `items_country_id_foreign` FOREIGN KEY (`country_id`) REFERENCES `countries` (`id`),
  CONSTRAINT `items_general_classification_id_foreign` FOREIGN KEY (`general_classification_id`) REFERENCES `general_item_classifications` (`id`),
  CONSTRAINT `items_primary_supplier_id_foreign` FOREIGN KEY (`primary_supplier_id`) REFERENCES `receivable_accounts` (`id`),
  CONSTRAINT `items_secondary_supplier_id_foreign` FOREIGN KEY (`secondary_supplier_id`) REFERENCES `receivable_accounts` (`id`),
  CONSTRAINT `items_size_type_id_foreign` FOREIGN KEY (`size_type_id`) REFERENCES `item_size_types` (`id`),
  CONSTRAINT `items_tax_id_foreign` FOREIGN KEY (`tax_id`) REFERENCES `taxes` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `items`
--


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

CREATE TABLE `jobs` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `queue` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `payload` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `attempts` tinyint unsigned NOT NULL,
  `reserved_at` int unsigned DEFAULT NULL,
  `available_at` int unsigned NOT NULL,
  `created_at` int unsigned NOT NULL,
  PRIMARY KEY (`id`),
  KEY `jobs_queue_index` (`queue`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `jobs`
--


--
-- Table structure for table `manufacturing_bond_items`
--

CREATE TABLE `manufacturing_bond_items` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `manufacturing_bond_id` bigint unsigned NOT NULL,
  `from_branch_id` bigint unsigned NOT NULL,
  `barcode_id` bigint unsigned NOT NULL,
  `quantity` double NOT NULL,
  `unit_cost` double NOT NULL COMMENT 'cost for one thing',
  `notes` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `manufacturing_bond_items_manufacturing_bond_id_foreign` (`manufacturing_bond_id`),
  KEY `manufacturing_bond_items_from_branch_id_foreign` (`from_branch_id`),
  KEY `manufacturing_bond_items_barcode_id_foreign` (`barcode_id`),
  CONSTRAINT `manufacturing_bond_items_barcode_id_foreign` FOREIGN KEY (`barcode_id`) REFERENCES `barcodes` (`id`),
  CONSTRAINT `manufacturing_bond_items_from_branch_id_foreign` FOREIGN KEY (`from_branch_id`) REFERENCES `branches` (`id`),
  CONSTRAINT `manufacturing_bond_items_manufacturing_bond_id_foreign` FOREIGN KEY (`manufacturing_bond_id`) REFERENCES `manufacturing_bonds` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `manufacturing_bond_items`
--


--
-- Table structure for table `manufacturing_bond_out_sourced_employee`
--

CREATE TABLE `manufacturing_bond_out_sourced_employee` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `bond_id` bigint unsigned NOT NULL,
  `employee_id` bigint unsigned NOT NULL,
  `hours_count` int NOT NULL DEFAULT '1',
  `hour_cost` double NOT NULL,
  PRIMARY KEY (`id`),
  KEY `manufacturing_bond_out_sourced_employee_bond_id_foreign` (`bond_id`),
  KEY `manufacturing_bond_out_sourced_employee_employee_id_foreign` (`employee_id`),
  CONSTRAINT `manufacturing_bond_out_sourced_employee_bond_id_foreign` FOREIGN KEY (`bond_id`) REFERENCES `manufacturing_bonds` (`id`),
  CONSTRAINT `manufacturing_bond_out_sourced_employee_employee_id_foreign` FOREIGN KEY (`employee_id`) REFERENCES `out_sourced_employees` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `manufacturing_bond_out_sourced_employee`
--


--
-- Table structure for table `manufacturing_bonds`
--

CREATE TABLE `manufacturing_bonds` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `batch_number` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `date` date NOT NULL,
  `employee_id` bigint unsigned DEFAULT NULL,
  `pos_user_id` bigint unsigned DEFAULT NULL,
  `bond_number` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `start_date` date NOT NULL COMMENT 'manufacturing start date',
  `end_date` date NOT NULL COMMENT 'manufacturing end date',
  `client_id` bigint unsigned DEFAULT NULL,
  `client_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `manufactured_barcode_id` bigint unsigned NOT NULL COMMENT 'called as item',
  `barcode_recipe_id` bigint unsigned NOT NULL,
  `from_branch_id` bigint unsigned NOT NULL,
  `to_branch_id` bigint unsigned NOT NULL,
  `quantity` double NOT NULL,
  `unit_cost` double NOT NULL COMMENT 'cost for one thing',
  `manufacturing_expenses_ratio` double DEFAULT NULL,
  `other_expenses` double DEFAULT NULL,
  `out_sourced_employees_expenses` double DEFAULT NULL,
  `expenses_credit_account_id` bigint unsigned DEFAULT NULL,
  `post_status` tinyint(1) NOT NULL DEFAULT '0',
  `posted_at` datetime DEFAULT NULL,
  `audit_status` tinyint(1) NOT NULL DEFAULT '0',
  `cost_after_audit` double DEFAULT NULL,
  `quantity_after_audit` double DEFAULT NULL COMMENT 'cost for one thing',
  `notice` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `manufacturing_bonds_client_id_foreign` (`client_id`),
  KEY `manufacturing_bonds_manufactured_barcode_id_foreign` (`manufactured_barcode_id`),
  KEY `manufacturing_bonds_barcode_recipe_id_foreign` (`barcode_recipe_id`),
  KEY `manufacturing_bonds_from_branch_id_foreign` (`from_branch_id`),
  KEY `manufacturing_bonds_to_branch_id_foreign` (`to_branch_id`),
  KEY `manufacturing_bonds_expenses_credit_account_id_foreign` (`expenses_credit_account_id`),
  KEY `manufacturing_bonds_employee_id_foreign` (`employee_id`),
  KEY `manufacturing_bonds_pos_user_id_foreign` (`pos_user_id`),
  CONSTRAINT `manufacturing_bonds_barcode_recipe_id_foreign` FOREIGN KEY (`barcode_recipe_id`) REFERENCES `item_manufacturing_recipes` (`id`),
  CONSTRAINT `manufacturing_bonds_client_id_foreign` FOREIGN KEY (`client_id`) REFERENCES `receivable_accounts` (`id`),
  CONSTRAINT `manufacturing_bonds_employee_id_foreign` FOREIGN KEY (`employee_id`) REFERENCES `employees` (`id`),
  CONSTRAINT `manufacturing_bonds_expenses_credit_account_id_foreign` FOREIGN KEY (`expenses_credit_account_id`) REFERENCES `accounts` (`id`),
  CONSTRAINT `manufacturing_bonds_from_branch_id_foreign` FOREIGN KEY (`from_branch_id`) REFERENCES `branches` (`id`),
  CONSTRAINT `manufacturing_bonds_manufactured_barcode_id_foreign` FOREIGN KEY (`manufactured_barcode_id`) REFERENCES `barcodes` (`id`),
  CONSTRAINT `manufacturing_bonds_pos_user_id_foreign` FOREIGN KEY (`pos_user_id`) REFERENCES `pos_users` (`id`),
  CONSTRAINT `manufacturing_bonds_to_branch_id_foreign` FOREIGN KEY (`to_branch_id`) REFERENCES `branches` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `manufacturing_bonds`
--


--
-- Table structure for table `manufacturing_recipe_ingredients`
--

CREATE TABLE `manufacturing_recipe_ingredients` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `recipe_id` bigint unsigned NOT NULL,
  `barcode_id` bigint unsigned NOT NULL,
  `quantity` double NOT NULL,
  PRIMARY KEY (`id`),
  KEY `manufacturing_recipe_ingredients_recipe_id_foreign` (`recipe_id`),
  KEY `manufacturing_recipe_ingredients_barcode_id_foreign` (`barcode_id`),
  CONSTRAINT `manufacturing_recipe_ingredients_barcode_id_foreign` FOREIGN KEY (`barcode_id`) REFERENCES `barcodes` (`id`),
  CONSTRAINT `manufacturing_recipe_ingredients_recipe_id_foreign` FOREIGN KEY (`recipe_id`) REFERENCES `item_manufacturing_recipes` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `manufacturing_recipe_ingredients`
--


--
-- Table structure for table `menus`
--

CREATE TABLE `menus` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `parent_id` bigint unsigned DEFAULT NULL,
  `number` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `level` int NOT NULL DEFAULT '1',
  `image` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  PRIMARY KEY (`id`),
  KEY `menus_parent_id_foreign` (`parent_id`),
  CONSTRAINT `menus_parent_id_foreign` FOREIGN KEY (`parent_id`) REFERENCES `menus` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `menus`
--


--
-- Table structure for table `merged_contracts`
--

CREATE TABLE `merged_contracts` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `contract_id` bigint unsigned NOT NULL,
  `merged_contract_id` bigint unsigned NOT NULL,
  PRIMARY KEY (`id`),
  KEY `merged_contracts_contract_id_foreign` (`contract_id`),
  KEY `merged_contracts_merged_contract_id_foreign` (`merged_contract_id`),
  CONSTRAINT `merged_contracts_contract_id_foreign` FOREIGN KEY (`contract_id`) REFERENCES `rental_contracts` (`id`),
  CONSTRAINT `merged_contracts_merged_contract_id_foreign` FOREIGN KEY (`merged_contract_id`) REFERENCES `rental_contracts` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `merged_contracts`
--


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

CREATE TABLE `migrations` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `migration` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `batch` int NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=202 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `migrations` VALUES (1,'2019_08_19_000000_create_failed_jobs_table',1),(2,'2021_12_06_122709_create_password_resets_table',1),(3,'2021_12_06_122710_create_cache_table',1),(4,'2021_12_06_122720_create_permission_tables',1),(5,'2021_12_06_134444_create_sessions_table',1),(6,'2021_12_06_135903_create_employees_table',1),(7,'2021_12_14_112245_create_settings_table',1),(8,'2021_12_14_130038_create_code_modules_table',1),(9,'2021_12_14_130040_create_code_sections_table',1),(10,'2021_12_14_130053_create_code_functions_table',1),(11,'2021_12_15_074025_create_active_users',1),(12,'2021_12_20_092334_create_jobs_table',1),(13,'2021_12_22_111212_create_account_types_table',1),(14,'2021_12_22_115457_create_accounts_table',1),(15,'2021_12_26_065020_create_fiscal_years_table',1),(16,'2021_12_26_065344_create_fiscal_periods_table',1),(17,'2021_12_26_141920_create_countries_table',1),(18,'2021_12_26_141921_create_currencies_table',1),(19,'2021_12_26_141942_create_cost_centers_table',1),(20,'2021_12_26_141943_create_receivable_categories_table',1),(21,'2021_12_26_141944_create_receivable_types_table',1),(22,'2021_12_26_141945_create_receivable_payment_methods_table',1),(23,'2021_12_26_141946_create_receivable_accounts_table',1),(24,'2021_12_26_141947_create_entries_table',1),(25,'2021_12_30_090157_create_entry_items_table',1),(26,'2022_01_03_081523_create_taxes_table',1),(27,'2022_01_03_094943_create_service_invoices_table',1),(28,'2022_01_03_095048_create_service_invoice_items_table',1),(29,'2022_01_06_122635_create_receipt_entries_table',1),(30,'2022_01_06_122743_create_invoice_receipt_payments_table',1),(31,'2022_01_06_122810_create_receipt_checks_table',1),(32,'2022_01_06_122831_create_receipt_bank_transfers_table',1),(33,'2022_01_16_144024_create_exchange_entries_table',1),(34,'2022_01_16_144323_create_exchange_entry_items_table',1),(35,'2022_01_16_144734_create_exchange_checks_table',1),(36,'2022_01_16_144745_create_exchange_transfers_table',1),(37,'2022_01_25_121949_create_general_banks_table',1),(38,'2022_01_26_072801_create_action_logs_table',1),(39,'2022_01_31_090358_create_converted_checks_table',1),(40,'2022_02_03_090823_create_account_banks_table',1),(41,'2022_03_16_082226_create_representatives_table',1),(42,'2022_03_17_084357_create_receipt_check_operations_table',1),(43,'2022_03_20_061729_create_exchange_check_operations_table',1),(44,'2022_03_27_061308_create_debit_notes_table',1),(45,'2022_03_27_062115_create_debit_note_items_table',1),(46,'2022_03_27_114253_create_credit_notes_table',1),(47,'2022_03_27_115437_create_credit_note_items_table',1),(48,'2022_04_07_072630_create_year_account_balances_table',1),(49,'2022_04_07_072631_create_year_receivable_account_balances_table',1),(50,'2022_04_14_070724_create_account_statement_items_table',1),(51,'2022_04_20_122948_create_entry_employee_notices_table',1),(52,'2022_04_24_072018_create_building_types',1),(53,'2022_04_24_072019_create_buildings_table',1),(54,'2022_04_25_083002_create_floors_table',1),(55,'2022_04_26_104459_create_shops_table',1),(56,'2022_04_26_104947_create_shop_merges_table',1),(57,'2022_04_26_104948_create_booths_table',1),(58,'2022_04_28_090445_create_contract_categories_table',1),(59,'2022_04_28_090446_create_rental_contracts_table',1),(60,'2022_04_28_103813_create_rental_contract_invoices_table',1),(61,'2022_05_25_130437_create_signatures_table',1),(62,'2022_06_02_130041_create_updated_shops_table',1),(63,'2022_06_20_121120_create_bond_attachments_table',1),(64,'2022_07_03_084831_create_merged_contracts_table',1),(65,'2022_08_07_071914_create_branch_types_table',1),(66,'2022_08_07_071915_create_branches_table',1),(67,'2022_08_07_074806_create_delivery_terms_table',1),(68,'2022_08_07_074807_create_payment_terms_table',1),(69,'2022_08_07_074808_create_categories_table',1),(70,'2022_08_07_130520_create_item_size_types_table',1),(71,'2022_08_07_130521_create_items_table',1),(72,'2022_08_08_070637_create_units_table',1),(73,'2022_08_08_070638_create_barcodes_table',1),(74,'2022_08_09_125356_create_category_connection_codes_table',1),(75,'2022_08_09_125414_create_account_category_table',1),(76,'2022_08_10_075041_create_branch_connection_codes_table',1),(77,'2022_08_10_075150_create_account_branch_table',1),(78,'2022_08_10_083139_create_branch_tax_table',1),(79,'2022_09_21_084011_create_receipt_ewallet_items_table',1),(80,'2022_09_21_105828_create_ewallet_accounts_table',1),(81,'2022_10_02_075733_create_yearly_contract_amounts_table',1),(82,'2022_10_09_095332_create_exchange_ewallet_items_table',1),(83,'2022_12_22_123807_barcode_price_types_table',1),(84,'2022_12_26_072021_create_barcode_branch_prices_table',1),(85,'2022_12_26_095905_create_item_manufacturing_recipes_table',1),(86,'2022_12_26_100053_create_manufacturing_recipe_ingredients_table',1),(87,'2022_12_28_122454_create_manufacturing_bonds_table',1),(88,'2022_12_28_124519_create_manufacturing_bond_items_table',1),(89,'2022_12_28_130024_create_out_sourced_employee_types_table',1),(90,'2022_12_28_130025_create_out_sourced_employees_table',1),(91,'2022_12_28_130534_create_manufacturing_bond_out_sourced_employee_table',1),(92,'2022_12_29_062109_create_barcode_branch_table',1),(93,'2022_12_29_134753_create_entry_bond_types_table',1),(94,'2022_12_29_134754_create_entry_bonds_table',1),(95,'2022_12_29_135436_create_entry_bond_items_table',1),(96,'2022_12_29_180550_create_out_bond_types_table',1),(97,'2022_12_29_180551_create_out_bonds_table',1),(98,'2022_12_29_181213_create_out_bond_items_table',1),(99,'2022_12_29_185724_create_entry_batches_table',1),(100,'2023_01_02_073557_create_entry_batch_out_bond_item_table',1),(101,'2023_01_03_074720_create_convert_bond_types_table',1),(102,'2023_01_03_074721_create_convert_bonds_table',1),(103,'2023_01_03_075122_create_convert_bond_items_table',1),(104,'2023_01_25_071553_create_chart_widgets_table',1),(105,'2023_01_25_072846_create_chart_widget_groups_table',1),(106,'2023_01_25_072847_create_chart_widget_group_items_table',1),(107,'2023_02_09_094822_create_rental_requests_table',1),(108,'2023_02_12_071425_create_rental_events_table',1),(109,'2023_02_12_123845_create_rental_tenant_actions_table',1),(110,'2023_02_21_122646_add_new_column_to_rental_contracts_table',1),(111,'2023_04_26_103752_create_purchase_commands_table',1),(112,'2023_04_26_103753_create_purchase_command_barcodes_table',1),(113,'2023_04_26_103832_create_purchase_orders_table',1),(114,'2023_04_27_123222_create_purchase_order_barcodes_table',1),(115,'2023_05_04_113222_create_purchase_invoices_table',1),(116,'2023_05_04_113234_create_purchase_invoice_barcodes_table',1),(117,'2023_05_04_113906_create_draft_purchase_order_meets_table',1),(118,'2023_05_08_090608_create_standard_purchase_invoice_expenses_table',1),(119,'2023_05_08_122020_create_purchase_invoice_expenses_table',1),(120,'2023_05_09_074843_create_returned_purchase_bond_types_table',1),(121,'2023_05_09_074844_create_returned_purchase_bonds_table',1),(122,'2023_05_10_065842_create_returned_purchase_bond_items_table',1),(123,'2023_05_11_084549_create_receivable_account_branches_table',1),(124,'2023_05_11_085000_create_drivers_table',1),(125,'2023_05_11_085001_create_sellers_table',1),(126,'2023_05_11_085008_create_sales_orders_table',1),(127,'2023_05_11_085009_create_sales_order_items_table',1),(128,'2023_05_11_085011_create_sales_invoices_table',1),(129,'2023_05_11_085854_create_sales_invoice_items_table',1),(130,'2023_05_11_131555_create_standard_sales_invoice_expenses_table',1),(131,'2023_05_14_063526_create_sales_invoice_expenses_table',1),(132,'2023_05_17_055140_create_returned_sales_bonds_table',1),(133,'2023_05_17_055201_create_returned_sales_bond_items_table',1),(134,'2023_06_11_123310_create_response_templates_table',1),(135,'2023_06_15_070021_create_stocktaking_bonds_table',1),(136,'2023_06_18_095837_create_stocktaking_bond_items_table',1),(137,'2023_07_12_131512_create_warehouses_signatures_table',1),(138,'2023_08_27_132410_create_rental_contract_initial_balances_table',1),(139,'2023_09_04_081832_create_automated_entries_table',1),(140,'2023_09_04_081909_create_automated_entry_items_table',1),(141,'2023_09_12_085333_create_sales_order_expenses_table',1),(142,'2023_09_14_072436_create_draft_sales_order_meets_table',1),(143,'2023_09_28_094337_create_pos_desktop_functions_table',1),(144,'2023_09_28_094340_create_pos_users_table',1),(145,'2023_09_28_094342_create_cash_devices_table',1),(146,'2023_09_28_094344_create_box_days_table',1),(147,'2023_09_28_094347_create_boxes_table',1),(148,'2023_09_28_094348_create_menus_table',1),(149,'2023_09_28_094350_create_box_day_entry_items_table',1),(150,'2023_09_28_105131_create_pos_sales_invoices_table',1),(151,'2023_09_28_105146_create_pos_sales_invoice_items_table',1),(152,'2023_09_28_105235_create_pos_returned_sales_bonds_table',1),(153,'2023_09_28_105240_create_pos_returned_sales_bond_items_table',1),(154,'2023_10_03_064511_create_barcode_menu_table',1),(155,'2023_10_08_101346_create_branch_item_table',1),(156,'2023_10_12_055857_create_pos_sales_invoice_payments_table',1),(157,'2023_10_16_082216_create_receivable_payment_method_accounts_table',1),(158,'2023_10_26_114142_create_pos_sections_table',1),(159,'2023_10_29_130308_create_exchange_bonds_table',1),(160,'2023_10_29_130314_create_exchange_bond_items_table',1),(161,'2023_10_31_103514_create_barcode_section_table',1),(162,'2023_11_01_130426_create_branch_menu_table',1),(163,'2023_11_07_105524_create_notifications_table',1),(164,'2023_11_09_065153_create_minus_entry_batches_table',1),(165,'2023_11_09_065153_create_minus_out_batches_table',1),(166,'2023_11_16_123158_create_pos_offers_table',1),(167,'2023_11_16_124007_create_pos_offer_items_table',1),(168,'2023_11_16_124909_create_pos_offer_barcodes_table',1),(169,'2023_11_27_103029_create_withdrawal_bonds_table',1),(170,'2023_12_05_084626_create_purchase_invoice_entries_table',1),(171,'2022_08_07_130519_create_general_item_classifications_table',2),(172,'2023_05_11_085004_create_sales_price_offers_table',2),(173,'2023_05_11_085005_create_sales_price_offer_items_table',2),(174,'2024_02_05_062129_create_item_dynamic_inputs_table',3),(175,'2024_02_06_114204_create_item_dynamic_input_values_table',3),(177,'2024_02_18_110654_create_print_bond_templates_table',5),(178,'2024_03_10_100057_create_deleted_item_log_actions_table',6),(179,'2024_04_16_100724_create_representatives_branches_table',7),(180,'2024_04_16_101036_create_representatives_receivables_table',7),(181,'2024_04_17_160705_create_representatives_mobile_sections_table',7),(182,'2024_04_17_160728_create_representatives_mobile_functions_table',7),(183,'2024_05_05_103551_create_barcode_branch_locations_table',8),(184,'2024_04_23_105903_create_cart_items_table',9),(185,'2024_06_09_201000_create_delivery_cars_table',10),(186,'2024_06_10_202057_create_shipment_bonds_table',10),(187,'2024_06_10_203402_create_shipment_bond_items_table',10),(188,'2024_11_20_165621_create_cost_increase_bonds_table',11),(189,'2024_11_21_102121_create_cost_increase_bonds_item_table',11),(190,'2024_11_25_112228_create_cost_decrease_bonds_table',11),(191,'2024_12_17_154700_create_cost_decrease_bond_items_table',11),(192,'2025_05_30_220315_create_returned_service_bonds_table',12),(193,'2025_05_31_220440_create_returned_service_bonds_items_table',12),(194,'2025_07_05_091505_create_aggregation_invoices_table',13),(195,'2025_07_05_091900_create_aggregation_invoice_items_table',13),(196,'2025_08_17_094659_create_returned_aggregations',13),(197,'2025_08_17_094744_create_returned_aggregation_items',13),(198,'2025_08_18_120848_create_aggregation_invoice_sales',13),(199,'2022_08_10_083140_create_representatives_table',14),(200,'2022_09_28_094340_create_pos_users_table',14),(201,'2025_11_01_161537_create_pos_returned_bond_payments_table',14);

--
-- Table structure for table `minus_entry_batches`
--

CREATE TABLE `minus_entry_batches` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `date` date NOT NULL,
  `entry_bond_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `entry_bond_id` bigint unsigned NOT NULL,
  `entry_bond_item_id` bigint unsigned NOT NULL,
  `barcode_id` bigint unsigned NOT NULL,
  `branch_id` bigint unsigned NOT NULL,
  `quantity` double NOT NULL,
  `created_at` timestamp NOT NULL,
  PRIMARY KEY (`id`),
  KEY `minus_entry_batches_barcode_id_foreign` (`barcode_id`),
  KEY `minus_entry_batches_branch_id_foreign` (`branch_id`),
  CONSTRAINT `minus_entry_batches_barcode_id_foreign` FOREIGN KEY (`barcode_id`) REFERENCES `barcodes` (`id`),
  CONSTRAINT `minus_entry_batches_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `minus_entry_batches`
--


--
-- Table structure for table `minus_out_batches`
--

CREATE TABLE `minus_out_batches` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `date` date NOT NULL,
  `out_bond_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `branch_id` bigint unsigned NOT NULL,
  `out_bond_id` bigint unsigned NOT NULL,
  `out_bond_item_id` bigint unsigned NOT NULL,
  `barcode_id` bigint unsigned NOT NULL,
  `quantity` double NOT NULL,
  `sales_price` double DEFAULT NULL,
  `created_at` timestamp NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `minus_out_batches`
--


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

CREATE TABLE `model_has_permissions` (
  `permission_id` bigint unsigned NOT NULL,
  `model_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `model_id` bigint unsigned NOT NULL,
  PRIMARY KEY (`permission_id`,`model_id`,`model_type`),
  KEY `model_has_permissions_model_id_model_type_index` (`model_id`,`model_type`),
  CONSTRAINT `model_has_permissions_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `model_has_permissions` VALUES (1,'App\\Models\\Employee',1),(2,'App\\Models\\Employee',1),(3,'App\\Models\\Employee',1),(4,'App\\Models\\Employee',1),(5,'App\\Models\\Employee',1),(6,'App\\Models\\Employee',1),(7,'App\\Models\\Employee',1),(8,'App\\Models\\Employee',1),(9,'App\\Models\\Employee',1),(10,'App\\Models\\Employee',1),(11,'App\\Models\\Employee',1),(12,'App\\Models\\Employee',1),(13,'App\\Models\\Employee',1),(14,'App\\Models\\Employee',1),(15,'App\\Models\\Employee',1),(16,'App\\Models\\Employee',1),(17,'App\\Models\\Employee',1),(18,'App\\Models\\Employee',1),(19,'App\\Models\\Employee',1),(20,'App\\Models\\Employee',1),(21,'App\\Models\\Employee',1),(22,'App\\Models\\Employee',1),(23,'App\\Models\\Employee',1),(24,'App\\Models\\Employee',1),(25,'App\\Models\\Employee',1),(26,'App\\Models\\Employee',1),(27,'App\\Models\\Employee',1),(28,'App\\Models\\Employee',1),(29,'App\\Models\\Employee',1),(30,'App\\Models\\Employee',1),(31,'App\\Models\\Employee',1),(32,'App\\Models\\Employee',1),(33,'App\\Models\\Employee',1),(34,'App\\Models\\Employee',1),(35,'App\\Models\\Employee',1),(36,'App\\Models\\Employee',1),(37,'App\\Models\\Employee',1),(38,'App\\Models\\Employee',1),(39,'App\\Models\\Employee',1),(40,'App\\Models\\Employee',1),(41,'App\\Models\\Employee',1),(42,'App\\Models\\Employee',1),(43,'App\\Models\\Employee',1),(44,'App\\Models\\Employee',1),(45,'App\\Models\\Employee',1),(46,'App\\Models\\Employee',1),(47,'App\\Models\\Employee',1),(48,'App\\Models\\Employee',1),(49,'App\\Models\\Employee',1),(50,'App\\Models\\Employee',1),(51,'App\\Models\\Employee',1),(52,'App\\Models\\Employee',1),(53,'App\\Models\\Employee',1),(54,'App\\Models\\Employee',1),(55,'App\\Models\\Employee',1),(56,'App\\Models\\Employee',1),(57,'App\\Models\\Employee',1),(58,'App\\Models\\Employee',1),(59,'App\\Models\\Employee',1),(60,'App\\Models\\Employee',1),(61,'App\\Models\\Employee',1),(62,'App\\Models\\Employee',1),(63,'App\\Models\\Employee',1),(64,'App\\Models\\Employee',1),(65,'App\\Models\\Employee',1),(66,'App\\Models\\Employee',1),(67,'App\\Models\\Employee',1),(68,'App\\Models\\Employee',1),(69,'App\\Models\\Employee',1),(70,'App\\Models\\Employee',1),(71,'App\\Models\\Employee',1),(72,'App\\Models\\Employee',1),(73,'App\\Models\\Employee',1),(74,'App\\Models\\Employee',1),(75,'App\\Models\\Employee',1),(76,'App\\Models\\Employee',1),(77,'App\\Models\\Employee',1),(78,'App\\Models\\Employee',1),(79,'App\\Models\\Employee',1),(80,'App\\Models\\Employee',1),(81,'App\\Models\\Employee',1),(82,'App\\Models\\Employee',1),(83,'App\\Models\\Employee',1),(84,'App\\Models\\Employee',1),(85,'App\\Models\\Employee',1),(86,'App\\Models\\Employee',1),(87,'App\\Models\\Employee',1),(88,'App\\Models\\Employee',1),(89,'App\\Models\\Employee',1),(90,'App\\Models\\Employee',1),(91,'App\\Models\\Employee',1),(92,'App\\Models\\Employee',1),(93,'App\\Models\\Employee',1),(94,'App\\Models\\Employee',1),(95,'App\\Models\\Employee',1),(96,'App\\Models\\Employee',1),(97,'App\\Models\\Employee',1),(98,'App\\Models\\Employee',1),(99,'App\\Models\\Employee',1),(100,'App\\Models\\Employee',1),(101,'App\\Models\\Employee',1),(102,'App\\Models\\Employee',1),(103,'App\\Models\\Employee',1),(104,'App\\Models\\Employee',1),(105,'App\\Models\\Employee',1),(106,'App\\Models\\Employee',1),(107,'App\\Models\\Employee',1),(108,'App\\Models\\Employee',1),(109,'App\\Models\\Employee',1),(110,'App\\Models\\Employee',1),(111,'App\\Models\\Employee',1),(112,'App\\Models\\Employee',1),(113,'App\\Models\\Employee',1),(114,'App\\Models\\Employee',1),(115,'App\\Models\\Employee',1),(116,'App\\Models\\Employee',1),(117,'App\\Models\\Employee',1),(118,'App\\Models\\Employee',1),(119,'App\\Models\\Employee',1),(120,'App\\Models\\Employee',1),(121,'App\\Models\\Employee',1),(122,'App\\Models\\Employee',1),(123,'App\\Models\\Employee',1),(124,'App\\Models\\Employee',1),(125,'App\\Models\\Employee',1),(126,'App\\Models\\Employee',1),(127,'App\\Models\\Employee',1),(128,'App\\Models\\Employee',1),(129,'App\\Models\\Employee',1),(130,'App\\Models\\Employee',1),(131,'App\\Models\\Employee',1),(132,'App\\Models\\Employee',1),(133,'App\\Models\\Employee',1),(134,'App\\Models\\Employee',1),(135,'App\\Models\\Employee',1),(136,'App\\Models\\Employee',1),(137,'App\\Models\\Employee',1),(138,'App\\Models\\Employee',1),(139,'App\\Models\\Employee',1),(140,'App\\Models\\Employee',1),(141,'App\\Models\\Employee',1),(142,'App\\Models\\Employee',1),(143,'App\\Models\\Employee',1),(144,'App\\Models\\Employee',1),(145,'App\\Models\\Employee',1),(146,'App\\Models\\Employee',1),(147,'App\\Models\\Employee',1),(148,'App\\Models\\Employee',1),(149,'App\\Models\\Employee',1),(150,'App\\Models\\Employee',1),(151,'App\\Models\\Employee',1),(152,'App\\Models\\Employee',1),(153,'App\\Models\\Employee',1),(154,'App\\Models\\Employee',1),(155,'App\\Models\\Employee',1),(156,'App\\Models\\Employee',1),(157,'App\\Models\\Employee',1),(158,'App\\Models\\Employee',1),(159,'App\\Models\\Employee',1),(160,'App\\Models\\Employee',1),(161,'App\\Models\\Employee',1),(162,'App\\Models\\Employee',1),(163,'App\\Models\\Employee',1),(164,'App\\Models\\Employee',1),(165,'App\\Models\\Employee',1),(166,'App\\Models\\Employee',1),(167,'App\\Models\\Employee',1),(168,'App\\Models\\Employee',1),(169,'App\\Models\\Employee',1),(170,'App\\Models\\Employee',1),(171,'App\\Models\\Employee',1),(172,'App\\Models\\Employee',1),(173,'App\\Models\\Employee',1),(174,'App\\Models\\Employee',1),(175,'App\\Models\\Employee',1),(176,'App\\Models\\Employee',1),(177,'App\\Models\\Employee',1),(178,'App\\Models\\Employee',1),(179,'App\\Models\\Employee',1),(180,'App\\Models\\Employee',1),(181,'App\\Models\\Employee',1),(182,'App\\Models\\Employee',1),(183,'App\\Models\\Employee',1),(184,'App\\Models\\Employee',1),(185,'App\\Models\\Employee',1),(186,'App\\Models\\Employee',1),(187,'App\\Models\\Employee',1),(188,'App\\Models\\Employee',1),(189,'App\\Models\\Employee',1),(190,'App\\Models\\Employee',1),(191,'App\\Models\\Employee',1),(192,'App\\Models\\Employee',1),(193,'App\\Models\\Employee',1),(194,'App\\Models\\Employee',1),(195,'App\\Models\\Employee',1),(196,'App\\Models\\Employee',1),(197,'App\\Models\\Employee',1),(198,'App\\Models\\Employee',1),(199,'App\\Models\\Employee',1),(200,'App\\Models\\Employee',1),(201,'App\\Models\\Employee',1),(202,'App\\Models\\Employee',1),(203,'App\\Models\\Employee',1),(204,'App\\Models\\Employee',1),(205,'App\\Models\\Employee',1),(206,'App\\Models\\Employee',1),(207,'App\\Models\\Employee',1),(208,'App\\Models\\Employee',1),(209,'App\\Models\\Employee',1),(210,'App\\Models\\Employee',1),(211,'App\\Models\\Employee',1),(212,'App\\Models\\Employee',1),(213,'App\\Models\\Employee',1),(214,'App\\Models\\Employee',1),(215,'App\\Models\\Employee',1),(216,'App\\Models\\Employee',1),(217,'App\\Models\\Employee',1),(218,'App\\Models\\Employee',1),(219,'App\\Models\\Employee',1),(220,'App\\Models\\Employee',1),(221,'App\\Models\\Employee',1),(222,'App\\Models\\Employee',1),(223,'App\\Models\\Employee',1),(224,'App\\Models\\Employee',1),(225,'App\\Models\\Employee',1),(226,'App\\Models\\Employee',1),(227,'App\\Models\\Employee',1),(228,'App\\Models\\Employee',1),(229,'App\\Models\\Employee',1),(230,'App\\Models\\Employee',1),(231,'App\\Models\\Employee',1),(232,'App\\Models\\Employee',1),(233,'App\\Models\\Employee',1),(234,'App\\Models\\Employee',1),(235,'App\\Models\\Employee',1),(236,'App\\Models\\Employee',1),(237,'App\\Models\\Employee',1),(238,'App\\Models\\Employee',1),(239,'App\\Models\\Employee',1),(240,'App\\Models\\Employee',1),(241,'App\\Models\\Employee',1),(242,'App\\Models\\Employee',1),(243,'App\\Models\\Employee',1),(244,'App\\Models\\Employee',1),(245,'App\\Models\\Employee',1),(246,'App\\Models\\Employee',1),(247,'App\\Models\\Employee',1),(248,'App\\Models\\Employee',1),(249,'App\\Models\\Employee',1),(250,'App\\Models\\Employee',1),(251,'App\\Models\\Employee',1),(252,'App\\Models\\Employee',1),(253,'App\\Models\\Employee',1),(254,'App\\Models\\Employee',1),(255,'App\\Models\\Employee',1),(256,'App\\Models\\Employee',1),(257,'App\\Models\\Employee',1),(258,'App\\Models\\Employee',1),(259,'App\\Models\\Employee',1),(260,'App\\Models\\Employee',1),(261,'App\\Models\\Employee',1),(262,'App\\Models\\Employee',1),(263,'App\\Models\\Employee',1),(264,'App\\Models\\Employee',1),(265,'App\\Models\\Employee',1),(266,'App\\Models\\Employee',1),(267,'App\\Models\\Employee',1),(268,'App\\Models\\Employee',1),(269,'App\\Models\\Employee',1),(270,'App\\Models\\Employee',1),(271,'App\\Models\\Employee',1),(272,'App\\Models\\Employee',1),(273,'App\\Models\\Employee',1),(274,'App\\Models\\Employee',1),(275,'App\\Models\\Employee',1),(276,'App\\Models\\Employee',1),(277,'App\\Models\\Employee',1),(278,'App\\Models\\Employee',1),(279,'App\\Models\\Employee',1),(280,'App\\Models\\Employee',1),(281,'App\\Models\\Employee',1),(282,'App\\Models\\Employee',1),(283,'App\\Models\\Employee',1),(284,'App\\Models\\Employee',1),(285,'App\\Models\\Employee',1),(286,'App\\Models\\Employee',1),(287,'App\\Models\\Employee',1),(288,'App\\Models\\Employee',1),(289,'App\\Models\\Employee',1),(290,'App\\Models\\Employee',1),(291,'App\\Models\\Employee',1),(292,'App\\Models\\Employee',1),(293,'App\\Models\\Employee',1),(294,'App\\Models\\Employee',1),(295,'App\\Models\\Employee',1),(296,'App\\Models\\Employee',1),(297,'App\\Models\\Employee',1),(298,'App\\Models\\Employee',1),(299,'App\\Models\\Employee',1),(300,'App\\Models\\Employee',1),(301,'App\\Models\\Employee',1),(302,'App\\Models\\Employee',1),(303,'App\\Models\\Employee',1),(304,'App\\Models\\Employee',1),(305,'App\\Models\\Employee',1),(306,'App\\Models\\Employee',1),(307,'App\\Models\\Employee',1),(308,'App\\Models\\Employee',1),(309,'App\\Models\\Employee',1),(310,'App\\Models\\Employee',1),(311,'App\\Models\\Employee',1),(312,'App\\Models\\Employee',1),(313,'App\\Models\\Employee',1),(314,'App\\Models\\Employee',1),(315,'App\\Models\\Employee',1),(316,'App\\Models\\Employee',1),(317,'App\\Models\\Employee',1),(318,'App\\Models\\Employee',1),(319,'App\\Models\\Employee',1),(320,'App\\Models\\Employee',1),(321,'App\\Models\\Employee',1),(322,'App\\Models\\Employee',1),(323,'App\\Models\\Employee',1),(324,'App\\Models\\Employee',1),(325,'App\\Models\\Employee',1),(326,'App\\Models\\Employee',1),(327,'App\\Models\\Employee',1),(328,'App\\Models\\Employee',1),(329,'App\\Models\\Employee',1),(330,'App\\Models\\Employee',1),(331,'App\\Models\\Employee',1),(332,'App\\Models\\Employee',1),(333,'App\\Models\\Employee',1),(334,'App\\Models\\Employee',1),(335,'App\\Models\\Employee',1),(336,'App\\Models\\Employee',1),(337,'App\\Models\\Employee',1),(338,'App\\Models\\Employee',1),(339,'App\\Models\\Employee',1),(340,'App\\Models\\Employee',1),(341,'App\\Models\\Employee',1),(342,'App\\Models\\Employee',1),(343,'App\\Models\\Employee',1),(344,'App\\Models\\Employee',1),(345,'App\\Models\\Employee',1),(346,'App\\Models\\Employee',1),(347,'App\\Models\\Employee',1),(348,'App\\Models\\Employee',1),(349,'App\\Models\\Employee',1),(350,'App\\Models\\Employee',1),(351,'App\\Models\\Employee',1),(352,'App\\Models\\Employee',1),(353,'App\\Models\\Employee',1),(354,'App\\Models\\Employee',1),(390,'App\\Models\\Employee',1),(391,'App\\Models\\Employee',1),(392,'App\\Models\\Employee',1),(393,'App\\Models\\Employee',1),(394,'App\\Models\\Employee',1),(395,'App\\Models\\Employee',1),(396,'App\\Models\\Employee',1),(397,'App\\Models\\Employee',1),(398,'App\\Models\\Employee',1),(399,'App\\Models\\Employee',1),(400,'App\\Models\\Employee',1),(401,'App\\Models\\Employee',1),(402,'App\\Models\\Employee',1),(403,'App\\Models\\Employee',1),(404,'App\\Models\\Employee',1),(405,'App\\Models\\Employee',1),(407,'App\\Models\\Employee',1);

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

CREATE TABLE `model_has_roles` (
  `role_id` bigint unsigned NOT NULL,
  `model_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `model_id` bigint unsigned NOT NULL,
  PRIMARY KEY (`role_id`,`model_id`,`model_type`),
  KEY `model_has_roles_model_id_model_type_index` (`model_id`,`model_type`),
  CONSTRAINT `model_has_roles_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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


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

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

--
-- Dumping data for table `notifications`
--

INSERT INTO `notifications` VALUES ('f6e2eb66-b738-4012-baf7-234774f5375a','App\\Notifications\\TenantAnnouncement','App\\Models\\Employee',1,'{\"announcement_type\":\"new-feature\",\"title\":\"\\u0645\\u064a\\u0632\\u0629 \\u062c\\u062f\\u064a\\u062f\\u0629 \\u0639\\u0644\\u0649 \\u0633\\u0646\\u062f\\u0627\\u062a \\u0627\\u0644\\u0625\\u062e\\u0631\\u0627\\u062c\",\"description\":\"\\u062a\\u0645 \\u0625\\u0636\\u0627\\u0641\\u0629 (\\u0627\\u0644\\u062a\\u0623\\u062b\\u064a\\u0631 \\u0627\\u0644\\u0645\\u062d\\u0627\\u0633\\u0628\\u064a) \\u0639\\u0644\\u0649 \\u0633\\u0646\\u062f\\u0627\\u062a \\u0627\\u0644\\u0625\\u062e\\u0631\\u0627\\u062c, \\u0643\\u0635\\u0631\\u0641 \\u0645\\u0633\\u062a\\u0648\\u062f\\u0639\\u064a\"}','2025-11-05 11:58:51','2024-01-11 19:33:36','2025-11-05 11:58:51');

--
-- Table structure for table `out_bond_items`
--

CREATE TABLE `out_bond_items` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `bond_id` bigint unsigned NOT NULL,
  `barcode_id` bigint unsigned NOT NULL,
  `quantity` double NOT NULL DEFAULT '1',
  `notice` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `cost_center_id` bigint unsigned DEFAULT NULL,
  `selected_batches_ids` json DEFAULT NULL,
  `print_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  KEY `out_bond_items_bond_id_foreign` (`bond_id`),
  KEY `out_bond_items_barcode_id_foreign` (`barcode_id`),
  KEY `out_bond_items_cost_center_id_foreign` (`cost_center_id`),
  CONSTRAINT `out_bond_items_barcode_id_foreign` FOREIGN KEY (`barcode_id`) REFERENCES `barcodes` (`id`),
  CONSTRAINT `out_bond_items_bond_id_foreign` FOREIGN KEY (`bond_id`) REFERENCES `out_bonds` (`id`),
  CONSTRAINT `out_bond_items_cost_center_id_foreign` FOREIGN KEY (`cost_center_id`) REFERENCES `cost_centers` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `out_bond_items`
--


--
-- Table structure for table `out_bonds`
--

CREATE TABLE `out_bonds` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `date` date NOT NULL,
  `bond_number` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `employee_id` bigint unsigned DEFAULT NULL,
  `pos_user_id` bigint unsigned DEFAULT NULL,
  `type_id` bigint unsigned NOT NULL,
  `branch_id` bigint unsigned NOT NULL,
  `client_id` bigint unsigned DEFAULT NULL,
  `notice` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `post_status` tinyint(1) NOT NULL DEFAULT '0',
  `posted_at` datetime DEFAULT NULL,
  `builder_model` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `builder_model_id` bigint DEFAULT NULL,
  `is_fully_costed` tinyint(1) NOT NULL DEFAULT '0',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `out_bonds_type_id_foreign` (`type_id`),
  KEY `out_bonds_branch_id_foreign` (`branch_id`),
  KEY `out_bonds_employee_id_foreign` (`employee_id`),
  KEY `out_bonds_client_id_foreign` (`client_id`),
  KEY `out_bonds_pos_user_id_foreign` (`pos_user_id`),
  CONSTRAINT `out_bonds_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`),
  CONSTRAINT `out_bonds_client_id_foreign` FOREIGN KEY (`client_id`) REFERENCES `receivable_accounts` (`id`),
  CONSTRAINT `out_bonds_employee_id_foreign` FOREIGN KEY (`employee_id`) REFERENCES `employees` (`id`),
  CONSTRAINT `out_bonds_pos_user_id_foreign` FOREIGN KEY (`pos_user_id`) REFERENCES `pos_users` (`id`),
  CONSTRAINT `out_bonds_type_id_foreign` FOREIGN KEY (`type_id`) REFERENCES `out_bond_types` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `out_bonds`
--


--
-- Table structure for table `out_sourced_employee_types`
--

CREATE TABLE `out_sourced_employee_types` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `out_sourced_employee_types`
--


--
-- Table structure for table `out_sourced_employees`
--

CREATE TABLE `out_sourced_employees` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `type_id` bigint unsigned NOT NULL,
  `hour_cost` double NOT NULL,
  `active_status` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `out_sourced_employees_type_id_foreign` (`type_id`),
  CONSTRAINT `out_sourced_employees_type_id_foreign` FOREIGN KEY (`type_id`) REFERENCES `out_sourced_employee_types` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `out_sourced_employees`
--


--
-- Table structure for table `payment_terms`
--

CREATE TABLE `payment_terms` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `payment_terms`
--


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

CREATE TABLE `permissions` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(125) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `guard_name` varchar(125) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `permissions_name_guard_name_unique` (`name`,`guard_name`)
) ENGINE=InnoDB AUTO_INCREMENT=409 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `permissions` VALUES (1,'accounting','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(2,'accounting-accountsTree','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(3,'accounting-accountsTree-show','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(4,'accounting-accountsTree-add','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(5,'accounting-accountsTree-edit','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(6,'accounting-accountsTree-delete','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(7,'accounting-initialBalances','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(8,'accounting-initialBalances-show','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(9,'accounting-initialBalances-initialize','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(10,'accounting-costCenterTree','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(11,'accounting-costCenterTree-add','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(12,'accounting-costCenterTree-edit','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(13,'accounting-costCenterTree-delete','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(14,'accounting-bondsAuditing','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(15,'accounting-bondsAuditing-audit','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(16,'accounting-bondsAuditing-unaudit','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(17,'accounting-bondsAuditing-post','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(18,'accounting-bondsAuditing-unpost','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(19,'accounting-entries','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(20,'accounting-entries-show','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(21,'accounting-entries-add','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(22,'accounting-entries-edit','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(23,'accounting-entries-delete','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(24,'accounting-entries-post','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(25,'accounting-entries-clone','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(26,'accounting-entries-unpost','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(27,'accounting-entries-audit','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(28,'accounting-entries-unaudit','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(29,'accounting-receipts','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(30,'accounting-receipts-show','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(31,'accounting-receipts-add','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(32,'accounting-receipts-edit','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(33,'accounting-receipts-delete','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(34,'accounting-receipts-post','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(35,'accounting-receipts-unpost','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(36,'accounting-receipts-audit','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(37,'accounting-receipts-unaudit','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(38,'accounting-exchanges','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(39,'accounting-exchanges-show','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(40,'accounting-exchanges-add','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(41,'accounting-exchanges-edit','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(42,'accounting-exchanges-delete','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(43,'accounting-exchanges-post','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(44,'accounting-exchanges-unpost','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(45,'accounting-exchanges-audit','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(46,'accounting-exchanges-unaudit','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(47,'accounting-servicesInvoices','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(48,'accounting-servicesInvoices-show','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(49,'accounting-servicesInvoices-add','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(50,'accounting-servicesInvoices-edit','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(51,'accounting-servicesInvoices-delete','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(52,'accounting-servicesInvoices-post','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(53,'accounting-servicesInvoices-unpost','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(54,'accounting-servicesInvoices-audit','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(55,'accounting-servicesInvoices-unaudit','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(56,'accounting-returnedServicesBonds','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(57,'accounting-returnedServicesBonds-show','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(58,'accounting-returnedServicesBonds-add','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(59,'accounting-returnedServicesBonds-edit','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(60,'accounting-returnedServicesBonds-delete','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(61,'accounting-returnedServicesBonds-post','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(62,'accounting-returnedServicesBonds-unpost','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(63,'accounting-returnedServicesBonds-audit','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(64,'accounting-returnedServicesBonds-unaudit','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(65,'accounting-debitNotes','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(66,'accounting-debitNotes-show','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(67,'accounting-debitNotes-add','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(68,'accounting-debitNotes-edit','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(69,'accounting-debitNotes-delete','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(70,'accounting-debitNotes-post','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(71,'accounting-debitNotes-unpost','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(72,'accounting-debitNotes-audit','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(73,'accounting-debitNotes-unaudit','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(74,'accounting-creditNotes','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(75,'accounting-creditNotes-show','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(76,'accounting-creditNotes-add','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(77,'accounting-creditNotes-edit','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(78,'accounting-creditNotes-delete','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(79,'accounting-creditNotes-post','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(80,'accounting-creditNotes-unpost','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(81,'accounting-creditNotes-audit','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(82,'accounting-creditNotes-unaudit','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(83,'accounting-automatedEntries','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(84,'accounting-automatedEntries-show','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(85,'accounting-receiptChecksKeeper','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(86,'accounting-receiptChecksKeeper-post','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(87,'accounting-receiptChecksKeeper-unpost','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(88,'accounting-receiptChecksKeeper-change','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(89,'accounting-receiptChecksKeeper-return','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(90,'accounting-receiptChecksKeeper-convert','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(91,'accounting-receiptChecksKeeper-unconvert','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(92,'accounting-exchangeChecksKeeper','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(93,'accounting-exchangeChecksKeeper-post','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(94,'accounting-exchangeChecksKeeper-unpost','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(95,'accounting-exchangeChecksKeeper-change','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(96,'accounting-exchangeChecksKeeper-return','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(97,'accounting-checks','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(98,'accounting-checks-show','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(99,'accounting-checks-add','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(100,'accounting-checks-edit','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(101,'accounting-reports','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(102,'accounting-reports-incomeList','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(103,'accounting-reports-monthlyAccountBalance','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(104,'accounting-reports-outlaysAnalysis','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(105,'accounting-reports-totalAccountBalance','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(106,'accounting-reports-trialBalance','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(107,'accounting-reports-costCentersStatement','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(108,'accounting-reports-detailedCostCenterStatement','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(109,'receivable','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(110,'receivable-receivableTypes','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(111,'receivable-receivableTypes-show','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(112,'receivable-receivableTypes-add','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(113,'receivable-receivableTypes-edit','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(114,'receivable-receivableTypes-delete','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(115,'receivable-receivableAccounts','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(116,'receivable-receivableAccounts-show','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(117,'receivable-receivableAccounts-add','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(118,'receivable-receivableAccounts-edit','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(119,'receivable-receivableAccounts-delete','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(120,'receivable-reports','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(121,'receivable-reports-detailedStatement','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(122,'receivable-reports-receivableAccountAging','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(123,'warehouses','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(124,'warehouses-branches','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(125,'warehouses-branches-add','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(126,'warehouses-branches-edit','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(127,'warehouses-branches-delete','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(128,'warehouses-categories','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(129,'warehouses-categories-add','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(130,'warehouses-categories-edit','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(131,'warehouses-categories-delete','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(132,'warehouses-items','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(133,'warehouses-items-add','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(134,'warehouses-items-edit','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(135,'warehouses-items-delete','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(136,'warehouses-items-barcodeOverview','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(137,'warehouses-entryBonds','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(138,'warehouses-entryBonds-add','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(139,'warehouses-entryBonds-edit','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(140,'warehouses-entryBonds-delete','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(141,'warehouses-entryBonds-post','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(142,'warehouses-entryBonds-unpost','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(143,'warehouses-outBonds','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(144,'warehouses-outBonds-add','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(145,'warehouses-outBonds-edit','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(146,'warehouses-outBonds-delete','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(147,'warehouses-outBonds-post','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(148,'warehouses-outBonds-unpost','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(149,'warehouses-convertBonds','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(150,'warehouses-convertBonds-add','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(151,'warehouses-convertBonds-edit','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(152,'warehouses-convertBonds-delete','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(153,'warehouses-convertBonds-post','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(154,'warehouses-convertBonds-unpost','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(155,'warehouses-convertBonds-showCost','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(156,'warehouses-convertBonds-showSalesPrice','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(157,'warehouses-manufacturingBonds','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(158,'warehouses-manufacturingBonds-add','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(159,'warehouses-manufacturingBonds-edit','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(160,'warehouses-manufacturingBonds-delete','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(161,'warehouses-manufacturingBonds-post','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(162,'warehouses-manufacturingBonds-audit','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(163,'warehouses-purchaseCommands','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(164,'warehouses-purchaseCommands-add','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(165,'warehouses-purchaseCommands-edit','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(166,'warehouses-purchaseCommands-delete','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(167,'warehouses-purchaseCommands-post','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(168,'warehouses-purchaseOrders','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(169,'warehouses-purchaseOrders-add','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(170,'warehouses-purchaseOrders-edit','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(171,'warehouses-purchaseOrders-delete','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(172,'warehouses-purchaseOrders-meet','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(173,'warehouses-purchaseOrders-post','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(174,'warehouses-purchaseInvoices','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(175,'warehouses-purchaseInvoices-add','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(176,'warehouses-purchaseInvoices-edit','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(177,'warehouses-purchaseInvoices-delete','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(178,'warehouses-purchaseInvoices-post','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(179,'warehouses-purchaseInvoices-unpost','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(180,'warehouses-returnedPurchaseBonds','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(181,'warehouses-returnedPurchaseBonds-add','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(182,'warehouses-returnedPurchaseBonds-edit','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(183,'warehouses-returnedPurchaseBonds-delete','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(184,'warehouses-returnedPurchaseBonds-post','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(185,'warehouses-returnedPurchaseBonds-unpost','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(186,'warehouses-salesPriceOffers','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(187,'warehouses-salesPriceOffers-add','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(188,'warehouses-salesPriceOffers-edit','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(189,'warehouses-salesPriceOffers-copy','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(190,'warehouses-salesPriceOffers-delete','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(191,'warehouses-salesPriceOffers-changeStatus','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(192,'warehouses-salesPriceOffers-showSalesPrice','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(193,'warehouses-salesPriceOffers-showProfitRatio','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(194,'warehouses-salesPriceOffers-editCashPaymentWay','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(195,'warehouses-salesPriceOffers-editClientName','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(196,'warehouses-salesOrders','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(197,'warehouses-salesOrders-add','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(198,'warehouses-salesOrders-edit','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(199,'warehouses-salesOrders-delete','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(200,'warehouses-salesOrders-meet','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(201,'warehouses-salesOrders-post','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(202,'warehouses-salesOrders-editClientName','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(203,'warehouses-salesInvoices','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(204,'warehouses-salesInvoices-add','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(205,'warehouses-salesInvoices-edit','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(206,'warehouses-salesInvoices-show','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(207,'warehouses-salesInvoices-delete','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(208,'warehouses-salesInvoices-post','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(209,'warehouses-salesInvoices-unpost','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(210,'warehouses-salesInvoices-audit','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(211,'warehouses-salesInvoices-unaudit','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(212,'warehouses-salesInvoices-postUnauditInvoice','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(213,'warehouses-salesInvoices-allowFutureDate','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(214,'warehouses-salesInvoices-changeBranch','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(215,'warehouses-salesInvoices-saleByLowerPriceOfCost','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(216,'warehouses-salesInvoices-showProfitRatio','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(217,'warehouses-salesInvoices-showCost','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(218,'warehouses-salesInvoices-showBonus','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(219,'warehouses-salesInvoices-showOriginalPrice','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(220,'warehouses-salesInvoices-showSalesPrice','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(221,'warehouses-salesInvoices-editPrice','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(222,'warehouses-salesInvoices-editBonus','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(223,'warehouses-salesInvoices-editClientType','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(224,'warehouses-salesInvoices-editClient','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(225,'warehouses-salesInvoices-editCashPaymentWay','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(226,'warehouses-salesInvoices-addAttachments','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(227,'warehouses-salesInvoices-showAttachments','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(228,'warehouses-salesInvoices-deleteAttachments','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(229,'warehouses-salesInvoices-editClientName','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(230,'warehouses-returnedSalesBonds','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(231,'warehouses-returnedSalesBonds-add','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(232,'warehouses-returnedSalesBonds-edit','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(233,'warehouses-returnedSalesBonds-delete','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(234,'warehouses-returnedSalesBonds-post','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(235,'warehouses-returnedSalesBonds-unpost','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(236,'warehouses-productionRequest','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(237,'warehouses-productionCommand','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(238,'warehouses-stocktakingBonds','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(239,'warehouses-stocktakingBonds-add','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(240,'warehouses-stocktakingBonds-edit','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(241,'warehouses-stocktakingBonds-delete','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(242,'warehouses-stocktakingBonds-post','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(243,'warehouses-stocktakingBonds-unpost','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(244,'warehouses-reports','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(245,'warehouses-reports-warehouseStocktaking','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(246,'warehouses-reports-salesAndProfit','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(247,'warehouses-reports-salesTax','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(248,'warehouses-reports-purchasesTax','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(249,'warehouses-reports-goodsSettlementStatement','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(250,'warehouses-reports-detailedItems','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(251,'warehouses-reports-minusSales','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(252,'warehouses-reports-generalSalesInvoices','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(253,'warehouses-reports-generalPurchaseInvoices','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(254,'generalSettings','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(255,'generalSettings-homePage','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(256,'generalSettings-homePage-showTotalsCharts','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(257,'generalSettings-companyDefinition','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(258,'generalSettings-companyDefinition-show','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(259,'generalSettings-companyDefinition-edit','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(260,'generalSettings-general','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(261,'generalSettings-general-show','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(262,'generalSettings-general-edit','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(263,'generalSettings-fiscalYears','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(264,'generalSettings-fiscalYears-create','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(265,'generalSettings-fiscalYears-openYear','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(266,'generalSettings-fiscalYears-closeYear','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(267,'generalSettings-fiscalYears-closeMonth','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(268,'generalSettings-fiscalYears-activateYear','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(269,'generalSettings-receivablePaymentMethods','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(270,'generalSettings-receivablePaymentMethods-show','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(271,'generalSettings-receivablePaymentMethods-add','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(272,'generalSettings-receivablePaymentMethods-edit','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(273,'generalSettings-receivablePaymentMethods-delete','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(274,'generalSettings-receivablePaymentMethods-changeStatus','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(275,'generalSettings-employees','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(276,'generalSettings-employees-show','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(277,'generalSettings-employees-activate','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(278,'generalSettings-employees-add','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(279,'generalSettings-employees-editInfo','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(280,'generalSettings-employees-editPermissions','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(281,'generalSettings-employees-delete','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(282,'generalSettings-employeesActionsLog','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(283,'generalSettings-employeesActionsLog-show','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(284,'generalSettings-receivableCategory','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(285,'generalSettings-receivableCategory-show','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(286,'generalSettings-receivableCategory-edit','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(287,'generalSettings-receivableCategory-add','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(288,'generalSettings-receivableCategory-delete','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(289,'accountingSettings','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(290,'accountingSettings-bankAccountsConnecting','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(291,'accountingSettings-bankAccountsConnecting-show','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(292,'accountingSettings-bankAccountsConnecting-connect','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(293,'accountingSettings-defaultAccounts','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(294,'accountingSettings-defaultAccounts-show','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(295,'accountingSettings-defaultAccounts-edit','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(296,'accountingSettings-costCenters','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(297,'accountingSettings-costCenters-show','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(298,'accountingSettings-costCenters-edit','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(299,'accountingSettings-ewalletAccounts','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(300,'accountingSettings-ewalletAccounts-show','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(301,'accountingSettings-ewalletAccounts-edit','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(302,'accountingSettings-taxes','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(303,'accountingSettings-taxes-add','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(304,'accountingSettings-taxes-edit','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(305,'accountingSettings-taxes-activate','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(306,'accountingSettings-bonds','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(307,'accountingSettings-bonds-unpostEntry','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(308,'accountingSettings-bonds-unpostReceipt','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(309,'accountingSettings-bonds-unpostExchange','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(310,'accountingSettings-bonds-unpostServiceInvoice','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(311,'accountingSettings-bonds-unpostReturnedServiceBond','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(312,'accountingSettings-bonds-unpostDebitNote','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(313,'accountingSettings-bonds-unpostCreditNote','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(314,'accountingSettings-bonds-exchangeChecksDailyCeiling','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(315,'accountingSettings-signatures','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(316,'accountingSettings-signatures-entry','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(317,'accountingSettings-signatures-exchange','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(318,'accountingSettings-signatures-receipt','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(319,'accountingSettings-signatures-serviceInvoice','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(320,'accountingSettings-signatures-returnedServiceInvoice','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(321,'accountingSettings-signatures-debitNote','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(322,'accountingSettings-signatures-creditNote','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(323,'warehousesSettings','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(324,'warehousesSettings-warehousesUnits','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(325,'warehousesSettings-warehousesUnits-add','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(326,'warehousesSettings-warehousesUnits-edit','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(327,'warehousesSettings-warehousesUnits-delete','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(328,'warehousesSettings-warehousesItemSizes','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(329,'warehousesSettings-warehousesItemSizes-add','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(330,'warehousesSettings-warehousesItemSizes-edit','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(331,'warehousesSettings-warehousesItemSizes-delete','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(332,'warehousesSettings-warehousesEntryBondTypes','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(333,'warehousesSettings-warehousesEntryBondTypes-add','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(334,'warehousesSettings-warehousesEntryBondTypes-edit','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(335,'warehousesSettings-warehousesEntryBondTypes-delete','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(336,'warehousesSettings-warehousesOutBondTypes','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(337,'warehousesSettings-warehousesOutBondTypes-add','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(338,'warehousesSettings-warehousesOutBondTypes-edit','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(339,'warehousesSettings-warehousesOutBondTypes-delete','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(340,'warehousesSettings-warehousesManufacturingBonds','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(341,'warehousesSettings-warehousesManufacturingBonds-enableAuditingPhase','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(342,'warehousesSettings-warehousesManufacturingBonds-postExpensesToAccounting','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(343,'warehousesSettings-barcodePriceTypes','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(344,'warehousesSettings-barcodePriceTypes-add','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(345,'warehousesSettings-barcodePriceTypes-edit','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(346,'warehousesSettings-barcodePriceTypes-delete','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(347,'warehousesSettings-paymentTerms','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(348,'warehousesSettings-paymentTerms-add','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(349,'warehousesSettings-paymentTerms-edit','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(350,'warehousesSettings-paymentTerms-delete','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(351,'warehousesSettings-deliveryTerms','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(352,'warehousesSettings-deliveryTerms-add','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(353,'warehousesSettings-deliveryTerms-edit','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(354,'warehousesSettings-deliveryTerms-delete','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(355,'representativesApp-ordersDelivery','representative','2025-12-06 13:12:24','2025-12-06 13:12:24'),(356,'representativesApp-cashVan','representative','2025-12-06 13:12:24','2025-12-06 13:12:24'),(357,'representativesApp-salesMan','representative','2025-12-06 13:12:24','2025-12-06 13:12:24'),(358,'representativesApp-salesMan-addSalesInvoices','representative','2025-12-06 13:12:24','2025-12-06 13:12:24'),(359,'representativesApp-salesMan-editSalesInvoices','representative','2025-12-06 13:12:24','2025-12-06 13:12:24'),(360,'representativesApp-salesMan-postSalesInvoices','representative','2025-12-06 13:12:24','2025-12-06 13:12:24'),(361,'representativesApp-salesMan-addSalesOrders','representative','2025-12-06 13:12:24','2025-12-06 13:12:24'),(362,'representativesApp-salesMan-editSalesOrders','representative','2025-12-06 13:12:24','2025-12-06 13:12:24'),(363,'representativesApp-salesMan-convertSalesOrders','representative','2025-12-06 13:12:24','2025-12-06 13:12:24'),(364,'representativesApp-salesMan-addSalesOffers','representative','2025-12-06 13:12:24','2025-12-06 13:12:24'),(365,'representativesApp-salesMan-editSalesOffers','representative','2025-12-06 13:12:24','2025-12-06 13:12:24'),(366,'representativesApp-salesMan-convertSalesOffers','representative','2025-12-06 13:12:24','2025-12-06 13:12:24'),(367,'representativesApp-collector','representative','2025-12-06 13:12:24','2025-12-06 13:12:24'),(368,'representativesApp-collector-addReceiptEntry','representative','2025-12-06 13:12:24','2025-12-06 13:12:24'),(369,'representativesApp-collector-editReceiptEntry','representative','2025-12-06 13:12:24','2025-12-06 13:12:24'),(370,'representativesApp-collector-postReceiptEntry','representative','2025-12-06 13:12:24','2025-12-06 13:12:24'),(371,'pos-desktopApp-itemSearch','pos-desktop','2025-12-06 13:12:24','2025-12-06 13:12:24'),(372,'pos-desktopApp-checkItemPrice','pos-desktop','2025-12-06 13:12:24','2025-12-06 13:12:24'),(373,'pos-desktopApp-closeSlip','pos-desktop','2025-12-06 13:12:24','2025-12-06 13:12:24'),(374,'pos-desktopApp-printSlip','pos-desktop','2025-12-06 13:12:24','2025-12-06 13:12:24'),(375,'pos-desktopApp-slipItemDiscount','pos-desktop','2025-12-06 13:12:24','2025-12-06 13:12:24'),(376,'pos-desktopApp-slipDiscount','pos-desktop','2025-12-06 13:12:24','2025-12-06 13:12:24'),(377,'pos-desktopApp-makeInvoiceWithoutTax','pos-desktop','2025-12-06 13:12:24','2025-12-06 13:12:24'),(378,'pos-desktopApp-changePaymentMethods','pos-desktop','2025-12-06 13:12:24','2025-12-06 13:12:24'),(379,'pos-desktopApp-exchange','pos-desktop','2025-12-06 13:12:24','2025-12-06 13:12:24'),(380,'pos-desktopApp-deleteInvoiceItem','pos-desktop','2025-12-06 13:12:24','2025-12-06 13:12:24'),(381,'pos-desktopApp-deleteAllInvoiceItems','pos-desktop','2025-12-06 13:12:24','2025-12-06 13:12:24'),(382,'pos-desktopApp-writeNotes','pos-desktop','2025-12-06 13:12:24','2025-12-06 13:12:24'),(383,'pos-desktopApp-quickReturn','pos-desktop','2025-12-06 13:12:24','2025-12-06 13:12:24'),(384,'pos-desktopApp-returnFromInvoice','pos-desktop','2025-12-06 13:12:24','2025-12-06 13:12:24'),(385,'pos-desktopApp-closeCash','pos-desktop','2025-12-06 13:12:24','2025-12-06 13:12:24'),(386,'pos-desktopApp-printCash','pos-desktop','2025-12-06 13:12:24','2025-12-06 13:12:24'),(387,'pos-desktopApp-printerSettings','pos-desktop','2025-12-06 13:12:24','2025-12-06 13:12:24'),(388,'pos-desktopApp-refresh','pos-desktop','2025-12-06 13:12:24','2025-12-06 13:12:24'),(389,'pos-desktopApp-logout','pos-desktop','2025-12-06 13:12:24','2025-12-06 13:12:24'),(390,'supplier-1','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(391,'supplier-2','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(392,'supplier-3','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(393,'supplier-4','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(394,'supplier-5','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(395,'supplier-6','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(396,'supplier-7','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(397,'supplier-8','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(398,'supplier-9','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(399,'supplier-10','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(400,'supplier-11','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(401,'supplier-12','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(402,'supplier-13','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(403,'supplier-14','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(404,'supplier-15','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(405,'supplier-16','web','2025-12-06 13:12:24','2025-12-06 13:12:24'),(407,'branch-1','web','2025-12-06 14:48:43','2025-12-06 14:48:43'),(408,'branch-1','pos-desktop','2025-12-06 14:48:43','2025-12-06 14:48:43');

--
-- Table structure for table `pos_desktop_functions`
--

CREATE TABLE `pos_desktop_functions` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `code` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=191 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `pos_desktop_functions`
--

INSERT INTO `pos_desktop_functions` VALUES (172,'البحث عن مادة','itemSearch'),(173,'التحقق من سعر المواد','checkItemPrice'),(174,'إضافة فاتورة','closeSlip'),(175,'طباعة الفاتورة','printSlip'),(176,'خصم على مادة بالفاتورة','slipItemDiscount'),(177,'خصم على الفاتورة','slipDiscount'),(178,'إزالة الضريبة من الفاتورة','makeInvoiceWithoutTax'),(179,'تغيير طرق الدفع بالفاتورة','changePaymentMethods'),(180,'تبديل المواد','exchange'),(181,'حذف مادة بالفاتورة','deleteInvoiceItem'),(182,'حذف كل مواد الفاتورة','deleteAllInvoiceItems'),(183,'كتابة ملاحظات','writeNotes'),(184,'عمل إرجاع سريع','quickReturn'),(185,'عمل إرجاع من فاتورة','returnFromInvoice'),(186,'إغلاق الصندوق','closeCash'),(187,'طباعة الصندوق','printCash'),(188,'التعديل على إعدادات الطباعة','printerSettings'),(189,'تحديث البيانات','refresh'),(190,'تسجيل الخروج','logout');

--
-- Table structure for table `pos_offer_barcodes`
--

CREATE TABLE `pos_offer_barcodes` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `offer_id` bigint unsigned NOT NULL,
  `barcode_id` bigint unsigned NOT NULL,
  `branch_id` bigint unsigned NOT NULL,
  `client_id` bigint unsigned DEFAULT NULL,
  `price_type_id` bigint unsigned NOT NULL,
  `discount_price` double DEFAULT NULL,
  `discount_ratio` double DEFAULT NULL,
  `when_quantity` double DEFAULT NULL,
  `free_quantity` double DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `pos_offer_barcodes_offer_id_foreign` (`offer_id`),
  CONSTRAINT `pos_offer_barcodes_offer_id_foreign` FOREIGN KEY (`offer_id`) REFERENCES `pos_offers` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `pos_offer_barcodes`
--


--
-- Table structure for table `pos_offer_items`
--

CREATE TABLE `pos_offer_items` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `offer_id` bigint unsigned NOT NULL,
  `resource_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'category' COMMENT 'category/barcode/country/supplier',
  `resource_id` bigint unsigned NOT NULL,
  `discount_price` double DEFAULT NULL,
  `discount_ratio` double DEFAULT NULL,
  `when_quantity` double DEFAULT NULL,
  `free_quantity` double DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `pos_offer_items_offer_id_foreign` (`offer_id`),
  CONSTRAINT `pos_offer_items_offer_id_foreign` FOREIGN KEY (`offer_id`) REFERENCES `pos_offers` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `pos_offer_items`
--


--
-- Table structure for table `pos_offers`
--

CREATE TABLE `pos_offers` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'general' COMMENT 'general/private',
  `clients_ids` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `branches_ids` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `price_types_ids` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `title` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `from_date` date NOT NULL,
  `to_date` date DEFAULT NULL,
  `from_time` time DEFAULT NULL,
  `to_time` time DEFAULT NULL,
  `is_forever` tinyint(1) NOT NULL DEFAULT '0',
  `filter_by` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'category' COMMENT 'category/barcode/supplier/country',
  `filtered_resources_ids` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `show_sub_categories` tinyint(1) NOT NULL DEFAULT '0',
  `offer_way` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'price' COMMENT 'price/ratio/quantity',
  `apply_way_on_all` tinyint(1) NOT NULL DEFAULT '1',
  `discount_price` double DEFAULT NULL,
  `discount_ratio` double DEFAULT NULL,
  `when_quantity` double DEFAULT NULL,
  `free_quantity` double DEFAULT NULL,
  `status` tinyint(1) NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `pos_offers`
--


--
-- Table structure for table `pos_returned_bond_payments`
--

CREATE TABLE `pos_returned_bond_payments` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `returned_sales_bond_id` bigint unsigned NOT NULL,
  `payment_method_id` bigint unsigned NOT NULL,
  `amount` double(10,5) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `pos_returned_bond_payments_returned_sales_bond_id_foreign` (`returned_sales_bond_id`),
  KEY `pos_returned_bond_payments_payment_method_id_foreign` (`payment_method_id`),
  CONSTRAINT `pos_returned_bond_payments_payment_method_id_foreign` FOREIGN KEY (`payment_method_id`) REFERENCES `receivable_payment_methods` (`id`),
  CONSTRAINT `pos_returned_bond_payments_returned_sales_bond_id_foreign` FOREIGN KEY (`returned_sales_bond_id`) REFERENCES `pos_returned_sales_bonds` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `pos_returned_bond_payments`
--


--
-- Table structure for table `pos_returned_sales_bond_items`
--

CREATE TABLE `pos_returned_sales_bond_items` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `pos_returned_bond_id` bigint unsigned NOT NULL,
  `barcode_id` bigint unsigned NOT NULL,
  `quantity` double NOT NULL DEFAULT '1',
  `price` double DEFAULT NULL,
  `tax_ratio` double DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `pos_returned_sales_bond_items_pos_returned_bond_id_foreign` (`pos_returned_bond_id`),
  KEY `pos_returned_sales_bond_items_barcode_id_foreign` (`barcode_id`),
  CONSTRAINT `pos_returned_sales_bond_items_barcode_id_foreign` FOREIGN KEY (`barcode_id`) REFERENCES `barcodes` (`id`),
  CONSTRAINT `pos_returned_sales_bond_items_pos_returned_bond_id_foreign` FOREIGN KEY (`pos_returned_bond_id`) REFERENCES `pos_returned_sales_bonds` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `pos_returned_sales_bond_items`
--


--
-- Table structure for table `pos_returned_sales_bonds`
--

CREATE TABLE `pos_returned_sales_bonds` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `user_id` bigint unsigned NOT NULL,
  `branch_id` bigint unsigned NOT NULL,
  `box_id` bigint unsigned NOT NULL,
  `client_id` bigint unsigned DEFAULT NULL,
  `type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'exchange, from_invoice',
  `pos_sales_invoice_id` bigint unsigned NOT NULL,
  `post_status` tinyint(1) NOT NULL DEFAULT '0',
  `posted_at` datetime DEFAULT NULL,
  `fotara_saved_at` datetime DEFAULT NULL,
  `is_fully_costed` tinyint(1) NOT NULL DEFAULT '0',
  `builder_model` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `builder_model_id` bigint DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `pos_returned_sales_bonds_user_id_foreign` (`user_id`),
  KEY `pos_returned_sales_bonds_branch_id_foreign` (`branch_id`),
  KEY `pos_returned_sales_bonds_box_id_foreign` (`box_id`),
  KEY `pos_returned_sales_bonds_client_id_foreign` (`client_id`),
  KEY `pos_returned_sales_bonds_pos_sales_invoice_id_foreign` (`pos_sales_invoice_id`),
  CONSTRAINT `pos_returned_sales_bonds_box_id_foreign` FOREIGN KEY (`box_id`) REFERENCES `boxes` (`id`),
  CONSTRAINT `pos_returned_sales_bonds_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`),
  CONSTRAINT `pos_returned_sales_bonds_client_id_foreign` FOREIGN KEY (`client_id`) REFERENCES `receivable_accounts` (`id`),
  CONSTRAINT `pos_returned_sales_bonds_pos_sales_invoice_id_foreign` FOREIGN KEY (`pos_sales_invoice_id`) REFERENCES `pos_sales_invoices` (`id`),
  CONSTRAINT `pos_returned_sales_bonds_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `pos_users` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `pos_returned_sales_bonds`
--


--
-- Table structure for table `pos_sales_invoice_items`
--

CREATE TABLE `pos_sales_invoice_items` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `pos_sales_invoice_id` bigint unsigned NOT NULL,
  `barcode_id` bigint unsigned NOT NULL,
  `quantity` double(9,3) NOT NULL,
  `price` double NOT NULL,
  `tax_ratio` double(10,3) DEFAULT NULL,
  `total_discount_amount` double(10,3) DEFAULT NULL,
  `free_quantity` double(10,3) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `pos_sales_invoice_items_pos_sales_invoice_id_foreign` (`pos_sales_invoice_id`),
  KEY `pos_sales_invoice_items_barcode_id_foreign` (`barcode_id`),
  CONSTRAINT `pos_sales_invoice_items_barcode_id_foreign` FOREIGN KEY (`barcode_id`) REFERENCES `barcodes` (`id`),
  CONSTRAINT `pos_sales_invoice_items_pos_sales_invoice_id_foreign` FOREIGN KEY (`pos_sales_invoice_id`) REFERENCES `pos_sales_invoices` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `pos_sales_invoice_items`
--


--
-- Table structure for table `pos_sales_invoice_payments`
--

CREATE TABLE `pos_sales_invoice_payments` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `sales_invoice_id` bigint unsigned NOT NULL,
  `payment_method_id` bigint unsigned NOT NULL,
  `amount` double NOT NULL,
  PRIMARY KEY (`id`),
  KEY `pos_sales_invoice_payments_sales_invoice_id_foreign` (`sales_invoice_id`),
  KEY `pos_sales_invoice_payments_payment_method_id_foreign` (`payment_method_id`),
  CONSTRAINT `pos_sales_invoice_payments_payment_method_id_foreign` FOREIGN KEY (`payment_method_id`) REFERENCES `receivable_payment_methods` (`id`),
  CONSTRAINT `pos_sales_invoice_payments_sales_invoice_id_foreign` FOREIGN KEY (`sales_invoice_id`) REFERENCES `pos_sales_invoices` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `pos_sales_invoice_payments`
--


--
-- Table structure for table `pos_sales_invoices`
--

CREATE TABLE `pos_sales_invoices` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `order_number` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '1',
  `user_id` bigint unsigned NOT NULL,
  `branch_id` bigint unsigned NOT NULL,
  `box_id` bigint unsigned NOT NULL,
  `client_id` bigint unsigned DEFAULT NULL,
  `amount` double NOT NULL,
  `with_tax` tinyint(1) NOT NULL DEFAULT '1',
  `tax_amount` double DEFAULT NULL,
  `note` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `is_take_away` tinyint(1) NOT NULL DEFAULT '0',
  `post_status` tinyint(1) NOT NULL DEFAULT '0',
  `posted_at` datetime DEFAULT NULL,
  `fotara_saved_at` datetime DEFAULT NULL,
  `is_fully_costed` tinyint(1) NOT NULL DEFAULT '0',
  `builder_model` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `builder_model_id` bigint DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `pos_sales_invoices_user_id_foreign` (`user_id`),
  KEY `pos_sales_invoices_branch_id_foreign` (`branch_id`),
  KEY `pos_sales_invoices_box_id_foreign` (`box_id`),
  KEY `pos_sales_invoices_client_id_foreign` (`client_id`),
  CONSTRAINT `pos_sales_invoices_box_id_foreign` FOREIGN KEY (`box_id`) REFERENCES `boxes` (`id`),
  CONSTRAINT `pos_sales_invoices_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`),
  CONSTRAINT `pos_sales_invoices_client_id_foreign` FOREIGN KEY (`client_id`) REFERENCES `receivable_accounts` (`id`),
  CONSTRAINT `pos_sales_invoices_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `pos_users` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `pos_sales_invoices`
--


--
-- Table structure for table `pos_sections`
--

CREATE TABLE `pos_sections` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `branch_id` bigint unsigned NOT NULL,
  `printer` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `pos_sections_branch_id_foreign` (`branch_id`),
  CONSTRAINT `pos_sections_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `pos_sections`
--


--
-- Table structure for table `print_bond_templates`
--

CREATE TABLE `print_bond_templates` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `bond_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `title` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `path` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `print_bond_templates`
--

INSERT INTO `print_bond_templates` VALUES (1,'salesOffer','Sales Offers Simple Template','show'),(2,'salesOffer','Sales Offers Advanced Template','show-2'),(3,'salesOrder','Sales Orders Simple Template 1','show'),(4,'salesOrder','Sales Orders Advanced Template 2','show-2'),(5,'salesInvoice','Sales Invoices Simple Template 1','show'),(6,'salesInvoice','Sales Invoices Advanced Template 2','show-2');

--
-- Table structure for table `purchase_command_barcodes`
--

CREATE TABLE `purchase_command_barcodes` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `purchase_command_id` bigint unsigned NOT NULL,
  `barcode_id` bigint unsigned NOT NULL,
  `quantity` double(10,2) NOT NULL DEFAULT '1.00',
  `notice` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `purchase_command_barcodes_purchase_command_id_foreign` (`purchase_command_id`),
  KEY `purchase_command_barcodes_barcode_id_foreign` (`barcode_id`),
  CONSTRAINT `purchase_command_barcodes_barcode_id_foreign` FOREIGN KEY (`barcode_id`) REFERENCES `barcodes` (`id`),
  CONSTRAINT `purchase_command_barcodes_purchase_command_id_foreign` FOREIGN KEY (`purchase_command_id`) REFERENCES `purchase_commands` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `purchase_command_barcodes`
--


--
-- Table structure for table `purchase_commands`
--

CREATE TABLE `purchase_commands` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `date` date NOT NULL,
  `bond_number` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `branch_id` bigint unsigned NOT NULL,
  `status` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'draft' COMMENT 'draft/ unmet/ partially-satiated/ full-satiated',
  `employee_id` bigint unsigned NOT NULL,
  `notice` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `purchase_commands_branch_id_foreign` (`branch_id`),
  KEY `purchase_commands_employee_id_foreign` (`employee_id`),
  CONSTRAINT `purchase_commands_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`),
  CONSTRAINT `purchase_commands_employee_id_foreign` FOREIGN KEY (`employee_id`) REFERENCES `employees` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `purchase_commands`
--


--
-- Table structure for table `purchase_invoice_barcodes`
--

CREATE TABLE `purchase_invoice_barcodes` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `purchase_invoice_id` bigint unsigned NOT NULL,
  `barcode_id` bigint unsigned NOT NULL,
  `quantity` double NOT NULL,
  `cost` double(14,9) NOT NULL,
  `foreign_cost` double(14,9) DEFAULT NULL,
  `tax_ratio` double(10,3) DEFAULT NULL,
  `bonus` double(10,2) DEFAULT NULL,
  `discount_amount` double(14,9) DEFAULT NULL,
  `extra_discount_amount` double(14,9) DEFAULT NULL,
  `expenses_amount` double(10,2) DEFAULT NULL,
  `expire_date` date DEFAULT NULL,
  `notice` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `print_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  KEY `purchase_invoice_barcodes_purchase_invoice_id_foreign` (`purchase_invoice_id`),
  KEY `purchase_invoice_barcodes_barcode_id_foreign` (`barcode_id`),
  CONSTRAINT `purchase_invoice_barcodes_barcode_id_foreign` FOREIGN KEY (`barcode_id`) REFERENCES `barcodes` (`id`),
  CONSTRAINT `purchase_invoice_barcodes_purchase_invoice_id_foreign` FOREIGN KEY (`purchase_invoice_id`) REFERENCES `purchase_invoices` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `purchase_invoice_barcodes`
--


--
-- Table structure for table `purchase_invoice_entries`
--

CREATE TABLE `purchase_invoice_entries` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `purchase_invoice_id` bigint unsigned NOT NULL,
  `credit_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'account' COMMENT 'account/receivable',
  `credit_account_id` bigint unsigned NOT NULL,
  `debit_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'account' COMMENT 'account/receivable',
  `debit_account_id` bigint unsigned NOT NULL,
  `amount` double NOT NULL,
  `notice` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `purchase_invoice_entries_purchase_invoice_id_foreign` (`purchase_invoice_id`),
  CONSTRAINT `purchase_invoice_entries_purchase_invoice_id_foreign` FOREIGN KEY (`purchase_invoice_id`) REFERENCES `purchase_invoices` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `purchase_invoice_entries`
--


--
-- Table structure for table `purchase_invoice_expenses`
--

CREATE TABLE `purchase_invoice_expenses` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `purchase_invoice_id` bigint unsigned NOT NULL,
  `expenses_id` bigint unsigned NOT NULL,
  `amount` double(10,2) NOT NULL,
  `credit_account_id` bigint unsigned DEFAULT NULL,
  `credit_receivable_account_id` bigint unsigned DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `purchase_invoice_expenses_purchase_invoice_id_foreign` (`purchase_invoice_id`),
  KEY `purchase_invoice_expenses_expenses_id_foreign` (`expenses_id`),
  CONSTRAINT `purchase_invoice_expenses_expenses_id_foreign` FOREIGN KEY (`expenses_id`) REFERENCES `standard_purchase_invoice_expenses` (`id`),
  CONSTRAINT `purchase_invoice_expenses_purchase_invoice_id_foreign` FOREIGN KEY (`purchase_invoice_id`) REFERENCES `purchase_invoices` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `purchase_invoice_expenses`
--


--
-- Table structure for table `purchase_invoices`
--

CREATE TABLE `purchase_invoices` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `purchase_order_id` bigint unsigned DEFAULT NULL,
  `date` date NOT NULL,
  `employee_id` bigint unsigned DEFAULT NULL,
  `bond_number` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `branch_id` bigint unsigned NOT NULL,
  `cost_center_id` bigint unsigned DEFAULT NULL,
  `supplier_id` bigint unsigned NOT NULL,
  `selected_payment_method` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'internal / external',
  `supplier_invoice_number` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `supplier_invoice_date` date DEFAULT NULL,
  `expected_delivery_date` date DEFAULT NULL,
  `show_just_supplier_items` tinyint(1) NOT NULL DEFAULT '1',
  `expenses_distribution_way` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'equally' COMMENT 'equally / manually',
  `recipient_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `deposit_number` int DEFAULT NULL,
  `extra_discount_amount` double(10,3) DEFAULT NULL,
  `total_before_taxes` double(10,3) DEFAULT NULL,
  `taxes_sum` double(10,2) DEFAULT NULL,
  `total_after_taxes` double(10,3) DEFAULT NULL,
  `currency_id` bigint unsigned NOT NULL,
  `exchange_price` double(10,5) DEFAULT NULL,
  `is_under_tax` tinyint(1) NOT NULL DEFAULT '0',
  `notice` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `post_status` tinyint(1) NOT NULL DEFAULT '0',
  `posted_at` datetime DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `purchase_invoices_purchase_order_id_foreign` (`purchase_order_id`),
  KEY `purchase_invoices_branch_id_foreign` (`branch_id`),
  KEY `purchase_invoices_supplier_id_foreign` (`supplier_id`),
  KEY `purchase_invoices_currency_id_foreign` (`currency_id`),
  KEY `purchase_invoices_cost_center_id_foreign` (`cost_center_id`),
  KEY `purchase_invoices_employee_id_foreign` (`employee_id`),
  CONSTRAINT `purchase_invoices_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`),
  CONSTRAINT `purchase_invoices_cost_center_id_foreign` FOREIGN KEY (`cost_center_id`) REFERENCES `cost_centers` (`id`),
  CONSTRAINT `purchase_invoices_currency_id_foreign` FOREIGN KEY (`currency_id`) REFERENCES `currencies` (`id`),
  CONSTRAINT `purchase_invoices_employee_id_foreign` FOREIGN KEY (`employee_id`) REFERENCES `employees` (`id`),
  CONSTRAINT `purchase_invoices_purchase_order_id_foreign` FOREIGN KEY (`purchase_order_id`) REFERENCES `purchase_orders` (`id`),
  CONSTRAINT `purchase_invoices_supplier_id_foreign` FOREIGN KEY (`supplier_id`) REFERENCES `receivable_accounts` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `purchase_invoices`
--


--
-- Table structure for table `purchase_order_barcodes`
--

CREATE TABLE `purchase_order_barcodes` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `purchase_order_id` bigint unsigned NOT NULL,
  `barcode_id` bigint unsigned NOT NULL,
  `quantity` double(10,2) NOT NULL,
  `delivered_quantity` double(10,2) NOT NULL DEFAULT '0.00',
  `cost` double(10,2) NOT NULL,
  `discount_amount` double(10,2) DEFAULT NULL,
  `bonus` double(10,2) DEFAULT NULL,
  `delivered_bonus` double(10,2) NOT NULL DEFAULT '0.00',
  `notice` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `purchase_order_barcodes_purchase_order_id_foreign` (`purchase_order_id`),
  KEY `purchase_order_barcodes_barcode_id_foreign` (`barcode_id`),
  CONSTRAINT `purchase_order_barcodes_barcode_id_foreign` FOREIGN KEY (`barcode_id`) REFERENCES `barcodes` (`id`),
  CONSTRAINT `purchase_order_barcodes_purchase_order_id_foreign` FOREIGN KEY (`purchase_order_id`) REFERENCES `purchase_orders` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `purchase_order_barcodes`
--


--
-- Table structure for table `purchase_orders`
--

CREATE TABLE `purchase_orders` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `purchase_command_id` bigint unsigned DEFAULT NULL,
  `date` date NOT NULL,
  `employee_id` bigint unsigned DEFAULT NULL,
  `bond_number` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `expected_delivery_date` date DEFAULT NULL,
  `branch_id` bigint unsigned NOT NULL,
  `supplier_id` bigint unsigned NOT NULL,
  `delivery_term_id` bigint unsigned DEFAULT NULL,
  `payment_term_id` bigint unsigned DEFAULT NULL,
  `currency_id` bigint unsigned DEFAULT NULL,
  `exchange_price` double(10,2) DEFAULT NULL,
  `just_show_supplier_items` tinyint(1) NOT NULL DEFAULT '0',
  `tax_id` bigint unsigned DEFAULT NULL,
  `extra_discount_amount` double(10,2) DEFAULT NULL,
  `total_before_taxes` double(10,2) DEFAULT NULL,
  `taxes_sum` double(10,2) DEFAULT NULL,
  `total_after_taxes` double(10,2) DEFAULT NULL,
  `order_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `printing_count` int NOT NULL DEFAULT '0',
  `notice` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `status` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'draft' COMMENT 'draft/ unmet/ partially-satiated/ full-satiated',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `purchase_orders_purchase_command_id_foreign` (`purchase_command_id`),
  KEY `purchase_orders_branch_id_foreign` (`branch_id`),
  KEY `purchase_orders_supplier_id_foreign` (`supplier_id`),
  KEY `purchase_orders_delivery_term_id_foreign` (`delivery_term_id`),
  KEY `purchase_orders_payment_term_id_foreign` (`payment_term_id`),
  KEY `purchase_orders_currency_id_foreign` (`currency_id`),
  KEY `purchase_orders_tax_id_foreign` (`tax_id`),
  KEY `purchase_orders_employee_id_foreign` (`employee_id`),
  CONSTRAINT `purchase_orders_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`),
  CONSTRAINT `purchase_orders_currency_id_foreign` FOREIGN KEY (`currency_id`) REFERENCES `currencies` (`id`),
  CONSTRAINT `purchase_orders_delivery_term_id_foreign` FOREIGN KEY (`delivery_term_id`) REFERENCES `delivery_terms` (`id`),
  CONSTRAINT `purchase_orders_employee_id_foreign` FOREIGN KEY (`employee_id`) REFERENCES `employees` (`id`),
  CONSTRAINT `purchase_orders_payment_term_id_foreign` FOREIGN KEY (`payment_term_id`) REFERENCES `payment_terms` (`id`),
  CONSTRAINT `purchase_orders_purchase_command_id_foreign` FOREIGN KEY (`purchase_command_id`) REFERENCES `purchase_commands` (`id`),
  CONSTRAINT `purchase_orders_supplier_id_foreign` FOREIGN KEY (`supplier_id`) REFERENCES `receivable_accounts` (`id`),
  CONSTRAINT `purchase_orders_tax_id_foreign` FOREIGN KEY (`tax_id`) REFERENCES `taxes` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `purchase_orders`
--


--
-- Table structure for table `receipt_bank_transfers`
--

CREATE TABLE `receipt_bank_transfers` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `receipt_id` bigint unsigned NOT NULL,
  `number` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `amount` double(13,3) NOT NULL,
  `date` date NOT NULL,
  `notice` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  PRIMARY KEY (`id`),
  KEY `receipt_bank_transfers_receipt_id_foreign` (`receipt_id`),
  CONSTRAINT `receipt_bank_transfers_receipt_id_foreign` FOREIGN KEY (`receipt_id`) REFERENCES `receipt_entries` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=36 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `receipt_bank_transfers`
--

INSERT INTO `receipt_bank_transfers` VALUES (4,6,'22',3000.000,'2024-11-10','وذلك عن ايداع شيك 22 حق 10/11/2024'),(6,7,'7',5000.000,'2024-11-25','وذلك عن ايداع شيك 7 حق 25/11/2024'),(7,5,'4655',500.000,'2024-11-10','وذلك عن ايداع شيك 4655 حق 10/11/2024'),(8,4,'6',5000.000,'2024-10-23','وذلك عن ايداع شيك 6 حق 25/10/2024'),(9,8,'11',10016.000,'2024-11-06','وذلك عن حوالة نقدية الى البنك'),(10,9,'1604',10000.000,'2024-04-16','وذلك عن تعزيز الشريك محمد اديب ت 16/04/2024'),(11,10,'111',51000.000,'2024-05-13','وذلك عن تعزيز الشريك محمد اديب ت 13/05/2024'),(12,12,'111',10000.000,'2024-06-02','وذلك عن تعزيز الشريك محمد اديب ت 02/06/2024'),(13,13,'1111',50000.000,'2024-06-10','وذلك عن تعزيز الشريك محمد اديب ت 10/06/2024'),(14,14,'1125',50000.000,'2024-06-26','وذلك عن تعزيز الشريك محمد اديب ت 26/06/2024'),(15,3,'25',4050.000,'2024-07-04','وذلك عن ايداع شيك 25 - حق 04/07/204'),(16,15,'506',500.000,'2024-07-11','وذلك عن قبض شيك 506 حق 11/07/2024'),(17,16,'39',250.000,'2024-07-11','وذلك عن ايداع شيك 39 حق 11/07/2024'),(18,17,'683',450.000,'2024-07-11','وذلك عن ايداع شيك 683 حق 11/07/2024'),(19,18,'12648',5000.000,'2024-07-31','وذلك عن ايداع شيك شيك 12648 حق 31/07/2024'),(20,19,'0408',50000.000,'2024-08-04','وذلك عن تعزيز الشريك محمد اديب ت 04/08/2024'),(21,20,'1258',10000.000,'2024-08-04','وذلك عن تعزيز الشريك محمد اديب ت 04/08/2024'),(22,21,'4',14485.000,'2024-08-19','وذلك عن ايداع شيك 4 حق 19/08/2024'),(23,22,'125',50000.000,'2024-09-09','وذلك عن تعزيز الشريك محمد اديب ت 09/09/2024'),(24,23,'111',3000.000,'2024-09-29','وذلك عن تعزيز الشريك محمد اديب ت 29/09/2024'),(25,24,'5',5000.000,'2024-09-30','وذلك عن ايداع شيك 5 حق 25/10/2024'),(26,25,'11',45000.000,'2024-10-07','وذلك عن تعزيز الشريك محمد اديب ت 07/10/2024'),(27,26,'1',50000.000,'2024-10-08','وذلك عن تعزيز الشريك محمد اديب ت 08/10/2024'),(28,27,'4654',500.000,'2024-10-10','وذلك عن ايداع شيك 4654 حق 10/10/2024'),(29,28,'2111',50000.000,'2024-11-21','وذلك عن تعزيز الشريك محمد اديب 21+24 11 2024'),(30,28,'2411',6000.000,'2024-11-24','وذلك عن تعزيز الشريك محمد اديب 21+24 11 2024'),(31,29,'4656',500.000,'2024-12-10','وذلك عن ايداع شيك 4656 حق 10/12/2024'),(32,30,'23',3000.000,'2024-12-10','وذلك عن ايداع شيك 23 حق 10/12/2024'),(33,31,'8',5000.000,'2024-12-26','وذلك عن ايداع شيك 8 حق 26/12/2024'),(34,32,'2',100000.000,'2024-12-26','وذلك عن تعزيز الشريك محمد اديب 26/12/2024 - 100 الف دينار'),(35,33,'11',10000.000,'2024-10-28','وذلك عن تعزيز الشريك محمد ت 28/10/2024');

--
-- Table structure for table `receipt_check_operations`
--

CREATE TABLE `receipt_check_operations` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `check_id` bigint unsigned NOT NULL,
  `date` date NOT NULL,
  `credit_type` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `credit_account_id` bigint unsigned NOT NULL,
  `debit_type` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `debit_account_id` bigint unsigned NOT NULL,
  `posted_file` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `receipt_check_operations_check_id_foreign` (`check_id`),
  CONSTRAINT `receipt_check_operations_check_id_foreign` FOREIGN KEY (`check_id`) REFERENCES `receipt_checks` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `receipt_check_operations`
--


--
-- Table structure for table `receipt_checks`
--

CREATE TABLE `receipt_checks` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `receipt_id` bigint unsigned NOT NULL,
  `number` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `bank` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'bank name',
  `amount` double(13,3) NOT NULL,
  `date` date NOT NULL,
  `drawer_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `switched_check_id` bigint unsigned DEFAULT NULL,
  `notice` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `status` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'in_box/ in_collection/ posted/ returned/ converted',
  PRIMARY KEY (`id`),
  KEY `receipt_checks_receipt_id_foreign` (`receipt_id`),
  KEY `receipt_checks_switched_check_id_foreign` (`switched_check_id`),
  CONSTRAINT `receipt_checks_receipt_id_foreign` FOREIGN KEY (`receipt_id`) REFERENCES `receipt_entries` (`id`),
  CONSTRAINT `receipt_checks_switched_check_id_foreign` FOREIGN KEY (`switched_check_id`) REFERENCES `receipt_checks` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `receipt_checks`
--


--
-- Table structure for table `receipt_entries`
--

CREATE TABLE `receipt_entries` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `year_id` bigint unsigned NOT NULL,
  `period_id` bigint unsigned NOT NULL,
  `employee_id` bigint unsigned DEFAULT NULL,
  `date` date NOT NULL,
  `bond_number` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `payment_way` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'cash,check,transfer,ewallet,other',
  `credit_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'account / receivable',
  `debit_account_id` bigint unsigned DEFAULT NULL,
  `credit_account_id` bigint unsigned DEFAULT NULL,
  `credit_receivable_id` bigint unsigned DEFAULT NULL,
  `checks_post_way` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'by checks-box or checks-collector',
  `direct_post_to_bank` tinyint(1) NOT NULL DEFAULT '0',
  `customer_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `amount` double(13,3) NOT NULL,
  `notice` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `automated_notice` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `post_status` tinyint(1) NOT NULL DEFAULT '0',
  `audit_status` tinyint(1) NOT NULL DEFAULT '0',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `receipt_entries_year_id_foreign` (`year_id`),
  KEY `receipt_entries_period_id_foreign` (`period_id`),
  KEY `receipt_entries_debit_account_id_foreign` (`debit_account_id`),
  KEY `receipt_entries_credit_account_id_foreign` (`credit_account_id`),
  KEY `receipt_entries_credit_receivable_id_foreign` (`credit_receivable_id`),
  KEY `receipt_entries_employee_id_foreign` (`employee_id`),
  CONSTRAINT `receipt_entries_credit_account_id_foreign` FOREIGN KEY (`credit_account_id`) REFERENCES `accounts` (`id`),
  CONSTRAINT `receipt_entries_credit_receivable_id_foreign` FOREIGN KEY (`credit_receivable_id`) REFERENCES `receivable_accounts` (`id`),
  CONSTRAINT `receipt_entries_debit_account_id_foreign` FOREIGN KEY (`debit_account_id`) REFERENCES `accounts` (`id`),
  CONSTRAINT `receipt_entries_employee_id_foreign` FOREIGN KEY (`employee_id`) REFERENCES `employees` (`id`),
  CONSTRAINT `receipt_entries_period_id_foreign` FOREIGN KEY (`period_id`) REFERENCES `fiscal_periods` (`id`),
  CONSTRAINT `receipt_entries_year_id_foreign` FOREIGN KEY (`year_id`) REFERENCES `fiscal_years` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=34 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `receipt_entries`
--

INSERT INTO `receipt_entries` VALUES (1,1,10,1,'2023-10-20','001','cash','account',5,149,NULL,NULL,0,'نقدي',65000.000,'وذلك عن تمويل مدفوعات تاسيس الشركة 2023 من الشريك محمد اديب الحاووط',NULL,1,0,'2024-04-07 10:44:59','2024-04-07 10:45:08',NULL),(2,2,13,1,'2024-01-02','002','cash','account',5,149,NULL,NULL,0,'نقدي',27000.000,'تمويل مدفوعات الشركة - الشريك محمد اديب',NULL,1,0,'2024-04-08 12:40:36','2024-04-08 12:40:44',NULL),(3,2,19,1,'2024-07-04','001','transfer','account',7,5,NULL,NULL,0,'نقدي',4050.000,'وذلك عن ايداع شيك 25 - حق 04/07/204',NULL,1,0,'2025-02-11 15:42:44','2025-02-16 17:50:24',NULL),(4,2,22,1,'2024-10-23','010','transfer','receivable',7,NULL,15,NULL,0,'شركة الصلاح للتكنولوجيا واستشارات التعليم',5000.000,'وذلك عن ايداع شيك 6 حق 25/10/2024',NULL,1,0,'2025-02-16 17:11:15','2025-02-16 17:19:25',NULL),(5,2,23,1,'2024-11-10','011','transfer','receivable',7,NULL,16,NULL,0,'صيدلية الريان - عبدالله رمضان',500.000,'وذلك عن ايداع شيك 4655 حق 10/11/2024',NULL,1,0,'2025-02-16 17:12:16','2025-02-16 17:17:45',NULL),(6,2,23,1,'2024-11-04','012','transfer','account',7,5,NULL,NULL,0,'نقدي',3000.000,'وذلك عن ايداع شيك 22 حق 10/11/2024',NULL,1,0,'2025-02-16 17:13:09','2025-02-16 17:16:25',NULL),(7,2,23,1,'2024-11-26','013','transfer','receivable',7,NULL,15,NULL,0,'شركة الصلاح للتكنولوجيا واستشارات التعليم',5000.000,'وذلك عن ايداع شيك 7 حق 25/11/2024',NULL,1,0,'2025-02-16 17:14:05','2025-02-16 17:16:04',NULL),(8,2,23,1,'2024-11-06','014','transfer','account',7,5,NULL,NULL,0,'نقدي',10016.000,'وذلك عن حوالة نقدية الى البنك',NULL,1,0,'2025-02-16 17:19:16','2025-02-16 17:19:25',NULL),(9,2,16,1,'2024-04-16','003','transfer','account',7,149,NULL,NULL,0,'نقدي',10000.000,'وذلك عن تعزيز الشريك محمد اديب ت 16/04/2024',NULL,1,0,'2025-02-16 17:44:25','2025-02-16 17:50:24',NULL),(10,2,17,1,'2024-05-13','004','transfer','account',7,149,NULL,NULL,0,'نقدي',51000.000,'وذلك عن تعزيز الشريك محمد اديب ت 13/05/2024',NULL,1,0,'2025-02-16 17:45:16','2025-02-16 17:50:24',NULL),(12,2,18,1,'2024-06-02','005','transfer','account',7,149,NULL,NULL,0,'نقدي',10000.000,'وذلك عن تعزيز الشريك محمد اديب ت 02/06/2024',NULL,1,0,'2025-02-16 17:46:26','2025-02-16 17:50:24',NULL),(13,2,18,1,'2024-06-10','006','transfer','account',7,149,NULL,NULL,0,'نقدي',50000.000,'وذلك عن تعزيز الشريك محمد اديب ت 10/06/2024',NULL,1,0,'2025-02-16 17:47:16','2025-02-16 17:50:24',NULL),(14,2,18,1,'2024-06-26','007','transfer','account',7,149,NULL,NULL,0,'نقدي',50000.000,'وذلك عن تعزيز الشريك محمد اديب ت 26/06/2024',NULL,1,0,'2025-02-16 17:47:48','2025-02-16 17:50:24',NULL),(15,2,19,1,'2024-07-11','008','transfer','account',7,5,NULL,NULL,0,'نقدي',500.000,'وذلك عن قبض شيك 506 حق 11/07/2024',NULL,1,0,'2025-02-16 17:54:54','2025-02-16 18:12:19',NULL),(16,2,19,1,'2024-07-11','009','transfer','account',7,5,NULL,NULL,0,'نقدي',250.000,'وذلك عن ايداع شيك 39 حق 11/07/2024',NULL,1,0,'2025-02-16 17:55:39','2025-02-16 18:12:19',NULL),(17,2,19,1,'2024-07-11','015','transfer','account',7,5,NULL,NULL,0,'نقدي',450.000,'وذلك عن ايداع شيك 683 حق 11/07/2024',NULL,1,0,'2025-02-16 17:56:49','2025-02-16 18:12:19',NULL),(18,2,19,1,'2024-07-31','016','transfer','account',7,5,NULL,NULL,0,'نقدي',5000.000,'وذلك عن ايداع شيك شيك 12648 حق 31/07/2024',NULL,1,0,'2025-02-16 17:59:02','2025-02-16 18:12:19',NULL),(19,2,20,1,'2024-08-04','017','transfer','account',7,149,NULL,NULL,0,'نقدي',50000.000,'وذلك عن تعزيز الشريك محمد اديب ت 04/08/2024',NULL,1,0,'2025-02-16 18:00:00','2025-02-16 18:12:19',NULL),(20,2,20,1,'2024-08-04','018','transfer','account',7,149,NULL,NULL,0,'نقدي',10000.000,'وذلك عن تعزيز الشريك محمد اديب ت 04/08/2024',NULL,1,0,'2025-02-16 18:00:41','2025-02-16 18:12:19',NULL),(21,2,20,1,'2024-08-19','019','transfer','account',7,5,NULL,NULL,0,'نقدي',14485.000,'وذلك عن ايداع شيك 4 حق 19/08/2024',NULL,1,0,'2025-02-16 18:01:27','2025-02-16 18:12:19',NULL),(22,2,21,1,'2024-09-09','021','transfer','account',7,149,NULL,NULL,0,'نقدي',50000.000,'وذلك عن تعزيز الشريك محمد اديب ت 09/09/2024',NULL,1,0,'2025-02-16 18:02:12','2025-02-16 18:12:19',NULL),(23,2,21,1,'2024-09-21','022','transfer','account',7,149,NULL,NULL,0,'نقدي',3000.000,'وذلك عن تعزيز الشريك محمد اديب ت 29/09/2024',NULL,1,0,'2025-02-16 18:02:54','2025-02-16 18:12:19',NULL),(24,2,21,1,'2024-09-30','023','transfer','receivable',7,NULL,15,NULL,0,'شركة الصلاح للتكنولوجيا واستشارات التعليم',5000.000,'وذلك عن ايداع شيك 5 حق 25/10/2024',NULL,1,0,'2025-02-16 18:03:51','2025-02-16 18:12:19',NULL),(25,2,22,1,'2024-10-07','024','transfer','account',7,149,NULL,NULL,0,'نقدي',45000.000,'وذلك عن تعزيز الشريك محمد اديب ت 07/10/2024',NULL,1,0,'2025-02-16 18:05:31','2025-02-16 18:12:19',NULL),(26,2,22,1,'2024-10-08','025','transfer','account',7,149,NULL,NULL,0,'نقدي',50000.000,'وذلك عن تعزيز الشريك محمد اديب ت 08/10/2024',NULL,1,0,'2025-02-16 18:06:07','2025-02-16 18:12:19',NULL),(27,2,22,1,'2024-10-10','026','transfer','receivable',7,NULL,16,NULL,0,'صيدلية الريان - عبدالله رمضان',500.000,'وذلك عن ايداع شيك 4654 حق 10/10/2024',NULL,1,0,'2025-02-16 18:07:08','2025-02-16 18:12:19',NULL),(28,2,23,1,'2024-11-24','027','transfer','account',7,149,NULL,NULL,0,'نقدي',56000.000,'وذلك عن تعزيز الشريك محمد اديب 21+24 11 2024',NULL,1,0,'2025-02-16 18:08:19','2025-02-16 18:12:19',NULL),(29,2,24,1,'2024-12-10','028','transfer','receivable',7,NULL,16,NULL,0,'صيدلية الريان - عبدالله رمضان',500.000,'وذلك عن ايداع شيك 4656 حق 10/12/2024',NULL,1,0,'2025-02-16 18:09:24','2025-02-16 18:12:19',NULL),(30,2,24,1,'2024-12-10','029','transfer','account',7,5,NULL,NULL,0,'نقدي',3000.000,'وذلك عن ايداع شيك 23 حق 10/12/2024',NULL,1,0,'2025-02-16 18:10:18','2025-02-16 18:12:19',NULL),(31,2,24,1,'2024-12-26','030','transfer','receivable',7,NULL,15,NULL,0,'شركة الصلاح للتكنولوجيا واستشارات التعليم',5000.000,'وذلك عن ايداع شيك 8 حق 26/12/2024',NULL,1,0,'2025-02-16 18:11:01','2025-02-16 18:12:19',NULL),(32,2,24,1,'2024-12-26','031','transfer','account',7,149,NULL,NULL,0,'نقدي',100000.000,'وذلك عن تعزيز الشريك محمد اديب 26/12/2024 - 100 الف دينار',NULL,1,0,'2025-02-16 18:12:07','2025-02-16 18:12:19',NULL),(33,2,22,1,'2024-10-28','020','transfer','account',7,149,NULL,NULL,0,'نقدي',10000.000,'وذلك عن تعزيز الشريك محمد ت 28/10/2024',NULL,1,0,'2025-02-16 18:15:43','2025-02-16 18:15:49',NULL);

--
-- Table structure for table `receipt_ewallet_items`
--

CREATE TABLE `receipt_ewallet_items` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `receipt_id` bigint unsigned NOT NULL,
  `from_number` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `amount` double(10,2) NOT NULL,
  `date` date NOT NULL,
  `notice` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  PRIMARY KEY (`id`),
  KEY `receipt_ewallet_items_receipt_id_foreign` (`receipt_id`),
  CONSTRAINT `receipt_ewallet_items_receipt_id_foreign` FOREIGN KEY (`receipt_id`) REFERENCES `receipt_entries` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `receipt_ewallet_items`
--


--
-- Table structure for table `receivable_account_branches`
--

CREATE TABLE `receivable_account_branches` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `receivable_account_id` bigint unsigned NOT NULL,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `receivable_account_branches_receivable_account_id_foreign` (`receivable_account_id`),
  CONSTRAINT `receivable_account_branches_receivable_account_id_foreign` FOREIGN KEY (`receivable_account_id`) REFERENCES `receivable_accounts` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `receivable_account_branches`
--


--
-- Table structure for table `receivable_categories`
--

CREATE TABLE `receivable_categories` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `ar_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `parent_id` bigint unsigned DEFAULT NULL,
  `level` int NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`),
  KEY `receivable_categories_parent_id_foreign` (`parent_id`),
  CONSTRAINT `receivable_categories_parent_id_foreign` FOREIGN KEY (`parent_id`) REFERENCES `receivable_categories` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `receivable_categories`
--


--
-- Table structure for table `receivable_payment_method_accounts`
--

CREATE TABLE `receivable_payment_method_accounts` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `payment_method_id` bigint unsigned NOT NULL,
  `branch_id` bigint unsigned NOT NULL,
  `account_id` bigint unsigned DEFAULT NULL,
  `commission_account_id` bigint unsigned DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `receivable_payment_method_accounts_payment_method_id_foreign` (`payment_method_id`),
  KEY `receivable_payment_method_accounts_branch_id_foreign` (`branch_id`),
  KEY `receivable_payment_method_accounts_account_id_foreign` (`account_id`),
  KEY `receivable_payment_method_accounts_commission_account_id_foreign` (`commission_account_id`),
  CONSTRAINT `receivable_payment_method_accounts_account_id_foreign` FOREIGN KEY (`account_id`) REFERENCES `accounts` (`id`),
  CONSTRAINT `receivable_payment_method_accounts_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`),
  CONSTRAINT `receivable_payment_method_accounts_commission_account_id_foreign` FOREIGN KEY (`commission_account_id`) REFERENCES `accounts` (`id`),
  CONSTRAINT `receivable_payment_method_accounts_payment_method_id_foreign` FOREIGN KEY (`payment_method_id`) REFERENCES `receivable_payment_methods` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `receivable_payment_method_accounts`
--


--
-- Table structure for table `receivable_payment_methods`
--

CREATE TABLE `receivable_payment_methods` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `title` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `logo` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `way_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'receivable' COMMENT 'receivable/cash/cards',
  `days_count` int DEFAULT NULL,
  `commission_ratio` double(10,2) DEFAULT NULL,
  `show_in_pos` tinyint(1) NOT NULL DEFAULT '0',
  `status` tinyint(1) NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `receivable_payment_methods`
--

INSERT INTO `receivable_payment_methods` VALUES (1,'نقدي',NULL,'cash',NULL,NULL,0,1),(2,'10 يوم',NULL,'receivable',10,NULL,0,1),(3,'20 يوم',NULL,'receivable',20,NULL,0,1),(4,'30 يوم',NULL,'receivable',30,NULL,0,1),(5,'45 يوم',NULL,'receivable',45,NULL,0,1),(6,'90 يوم',NULL,'receivable',90,NULL,0,1);

--
-- Table structure for table `rental_contract_initial_balances`
--

CREATE TABLE `rental_contract_initial_balances` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `contract_id` bigint unsigned NOT NULL,
  `date` date NOT NULL,
  `tenant_id` bigint unsigned NOT NULL,
  `account_id` bigint unsigned NOT NULL,
  `amount` double NOT NULL DEFAULT '0',
  `notice` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `rental_contract_initial_balances_contract_id_foreign` (`contract_id`),
  KEY `rental_contract_initial_balances_tenant_id_foreign` (`tenant_id`),
  KEY `rental_contract_initial_balances_account_id_foreign` (`account_id`),
  CONSTRAINT `rental_contract_initial_balances_account_id_foreign` FOREIGN KEY (`account_id`) REFERENCES `accounts` (`id`),
  CONSTRAINT `rental_contract_initial_balances_contract_id_foreign` FOREIGN KEY (`contract_id`) REFERENCES `rental_contracts` (`id`),
  CONSTRAINT `rental_contract_initial_balances_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `receivable_accounts` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `rental_contract_initial_balances`
--


--
-- Table structure for table `rental_contract_invoices`
--

CREATE TABLE `rental_contract_invoices` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `contract_id` bigint unsigned NOT NULL,
  `tenant_id` bigint unsigned NOT NULL,
  `type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'normal' COMMENT 'normal,services,knowledges_tax',
  `id_by_type` bigint NOT NULL,
  `amount` double(13,3) NOT NULL,
  `accrued_amount` double(13,3) NOT NULL,
  `accrued_date_starting` date NOT NULL,
  `accrued_date_ending` date NOT NULL,
  `cost_center_id` bigint unsigned DEFAULT NULL,
  `post_status` tinyint(1) NOT NULL DEFAULT '0',
  `fully_distributed` tinyint(1) NOT NULL DEFAULT '0',
  `notice` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `rental_contract_invoices_contract_id_foreign` (`contract_id`),
  KEY `rental_contract_invoices_tenant_id_foreign` (`tenant_id`),
  KEY `rental_contract_invoices_cost_center_id_foreign` (`cost_center_id`),
  CONSTRAINT `rental_contract_invoices_contract_id_foreign` FOREIGN KEY (`contract_id`) REFERENCES `rental_contracts` (`id`),
  CONSTRAINT `rental_contract_invoices_cost_center_id_foreign` FOREIGN KEY (`cost_center_id`) REFERENCES `cost_centers` (`id`),
  CONSTRAINT `rental_contract_invoices_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `receivable_accounts` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `rental_contract_invoices`
--


--
-- Table structure for table `rental_contracts`
--

CREATE TABLE `rental_contracts` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `tenant_id` bigint unsigned NOT NULL,
  `shop_id` bigint unsigned DEFAULT NULL,
  `booth_id` bigint unsigned DEFAULT NULL,
  `rented_place_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'shop/booth',
  `period_starting` date NOT NULL,
  `period_ending` date NOT NULL,
  `creating_invoices_from_date` date NOT NULL,
  `amount` double(13,3) NOT NULL,
  `initial_balance_on_receivable` double(9,3) DEFAULT NULL,
  `term_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'long_term / short_term',
  `payment_frequency` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'amount calc yearly, monthly, daily',
  `knowledge_tax` double(13,3) DEFAULT NULL,
  `services_amount` double(13,3) DEFAULT NULL,
  `services_payment_way` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'yearly, monthly, quarter, daily, oneTime',
  `logo_path` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `payment_way` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'yearly, monthly, quarter, daily, oneTime',
  `years_amounts_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'static' COMMENT 'static',
  `years_increment_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'from-first-year,from-previous-year',
  `category_id` bigint unsigned NOT NULL,
  `cost_center_id` bigint unsigned DEFAULT NULL,
  `brand_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `company_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `signaturey_of_contract` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `tenant_address` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `work_nature` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `automatic_export_invoices` tinyint(1) NOT NULL DEFAULT '0',
  `monthly_distribute_invoices` tinyint(1) NOT NULL DEFAULT '0',
  `notice` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `post_status` tinyint(1) NOT NULL DEFAULT '0',
  `status` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'draft' COMMENT 'draft/active/unactive/trashed/terminated',
  `posted_at` datetime DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `rental_contracts_tenant_id_foreign` (`tenant_id`),
  KEY `rental_contracts_shop_id_foreign` (`shop_id`),
  KEY `rental_contracts_booth_id_foreign` (`booth_id`),
  KEY `rental_contracts_category_id_foreign` (`category_id`),
  KEY `rental_contracts_cost_center_id_foreign` (`cost_center_id`),
  CONSTRAINT `rental_contracts_booth_id_foreign` FOREIGN KEY (`booth_id`) REFERENCES `booths` (`id`),
  CONSTRAINT `rental_contracts_category_id_foreign` FOREIGN KEY (`category_id`) REFERENCES `contract_categories` (`id`),
  CONSTRAINT `rental_contracts_cost_center_id_foreign` FOREIGN KEY (`cost_center_id`) REFERENCES `cost_centers` (`id`),
  CONSTRAINT `rental_contracts_shop_id_foreign` FOREIGN KEY (`shop_id`) REFERENCES `shops` (`id`),
  CONSTRAINT `rental_contracts_tenant_id_foreign` FOREIGN KEY (`tenant_id`) REFERENCES `receivable_accounts` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `rental_contracts`
--


--
-- Table structure for table `rental_events`
--

CREATE TABLE `rental_events` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `from_date` datetime NOT NULL,
  `to_date` datetime NOT NULL,
  `title` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `building_id` bigint unsigned NOT NULL,
  `floor_id` bigint unsigned NOT NULL,
  `shop_id` bigint unsigned DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `rental_events_building_id_foreign` (`building_id`),
  KEY `rental_events_floor_id_foreign` (`floor_id`),
  KEY `rental_events_shop_id_foreign` (`shop_id`),
  CONSTRAINT `rental_events_building_id_foreign` FOREIGN KEY (`building_id`) REFERENCES `buildings` (`id`),
  CONSTRAINT `rental_events_floor_id_foreign` FOREIGN KEY (`floor_id`) REFERENCES `floors` (`id`),
  CONSTRAINT `rental_events_shop_id_foreign` FOREIGN KEY (`shop_id`) REFERENCES `shops` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `rental_events`
--


--
-- Table structure for table `rental_requests`
--

CREATE TABLE `rental_requests` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `company_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `en_company_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `owner_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `contact_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `address` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `email` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `phone` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `fax_number` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `trade_mark` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `current_shopping_centers` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `company_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'general_partnership',
  `capital_investment` double(10,2) DEFAULT NULL,
  `years_in_business` int DEFAULT NULL,
  `stores_in_business_count` int DEFAULT NULL,
  `employees_count` int DEFAULT NULL,
  `required_area` double(10,2) NOT NULL,
  `business_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `other_business_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `business_description` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `accepted_credit_cards` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `business_reference` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `bank_reference` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `applicant_name` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `rental_requests`
--


--
-- Table structure for table `rental_tenant_actions`
--

CREATE TABLE `rental_tenant_actions` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `receivable_account_id` bigint unsigned NOT NULL,
  `action_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `rental_tenant_action_files` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `from_date` datetime NOT NULL,
  `to_date` datetime NOT NULL,
  `status` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'pending' COMMENT 'pending,accepted,cancelled',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `rental_tenant_actions_receivable_account_id_foreign` (`receivable_account_id`),
  CONSTRAINT `rental_tenant_actions_receivable_account_id_foreign` FOREIGN KEY (`receivable_account_id`) REFERENCES `receivable_accounts` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `rental_tenant_actions`
--


--
-- Table structure for table `representatives_branches`
--

CREATE TABLE `representatives_branches` (
  `representative_id` bigint unsigned NOT NULL,
  `branch_id` bigint unsigned NOT NULL,
  PRIMARY KEY (`representative_id`,`branch_id`),
  KEY `representatives_branches_branch_id_foreign` (`branch_id`),
  CONSTRAINT `representatives_branches_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`),
  CONSTRAINT `representatives_branches_representative_id_foreign` FOREIGN KEY (`representative_id`) REFERENCES `representatives` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `representatives_branches`
--


--
-- Table structure for table `representatives_mobile_functions`
--

CREATE TABLE `representatives_mobile_functions` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `section_id` bigint unsigned NOT NULL,
  `code` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  PRIMARY KEY (`id`),
  KEY `representatives_mobile_functions_section_id_foreign` (`section_id`),
  CONSTRAINT `representatives_mobile_functions_section_id_foreign` FOREIGN KEY (`section_id`) REFERENCES `representatives_mobile_sections` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=61 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `representatives_mobile_functions`
--

INSERT INTO `representatives_mobile_functions` VALUES (49,'إضافة فواتير المبيعات',19,'addSalesInvoices'),(50,'تعديل فواتير المبيعات',19,'editSalesInvoices'),(51,'ترحيل فواتر المبيعات',19,'postSalesInvoices'),(52,'إضافة طلبات المبيعات',19,'addSalesOrders'),(53,'تعديل طلبات المبيعات',19,'editSalesOrders'),(54,'تحويل طلبات المبيعات',19,'convertSalesOrders'),(55,'إضافة عروض الاسعار',19,'addSalesOffers'),(56,'تعديل عروض الاسعار',19,'editSalesOffers'),(57,'تحويل عروض الاسعار',19,'convertSalesOffers'),(58,'إضافة سندات القبض',20,'addReceiptEntry'),(59,'تعديل سندات القبض',20,'editReceiptEntry'),(60,'ترحيل سندات القبض ',20,'postReceiptEntry');

--
-- Table structure for table `representatives_mobile_sections`
--

CREATE TABLE `representatives_mobile_sections` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `code` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `representatives_mobile_sections`
--

INSERT INTO `representatives_mobile_sections` VALUES (17,'توصيل الطلبيات','ordersDelivery'),(18,'كاش فان','cashVan'),(19,'مندوب مبيعات','salesMan'),(20,'التحصيل','collector');

--
-- Table structure for table `representatives_receivables`
--

CREATE TABLE `representatives_receivables` (
  `representative_id` bigint unsigned NOT NULL,
  `receivable_id` bigint unsigned NOT NULL,
  PRIMARY KEY (`representative_id`,`receivable_id`),
  KEY `representatives_receivables_receivable_id_foreign` (`receivable_id`),
  CONSTRAINT `representatives_receivables_receivable_id_foreign` FOREIGN KEY (`receivable_id`) REFERENCES `receivable_accounts` (`id`),
  CONSTRAINT `representatives_receivables_representative_id_foreign` FOREIGN KEY (`representative_id`) REFERENCES `representatives` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `representatives_receivables`
--


--
-- Table structure for table `response_templates`
--

CREATE TABLE `response_templates` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `response_templates`
--


--
-- Table structure for table `returned_aggregation_items`
--

CREATE TABLE `returned_aggregation_items` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `returned_aggregation_id` bigint unsigned NOT NULL,
  `barcode_id` bigint unsigned NOT NULL,
  `quantity` decimal(10,3) NOT NULL,
  `price` decimal(10,3) NOT NULL,
  `discount` decimal(10,3) NOT NULL DEFAULT '0.000',
  `tax_ratio` decimal(10,3) DEFAULT NULL,
  `total` decimal(10,3) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `returned_aggregation_items_returned_aggregation_id_foreign` (`returned_aggregation_id`),
  KEY `returned_aggregation_items_barcode_id_foreign` (`barcode_id`),
  CONSTRAINT `returned_aggregation_items_barcode_id_foreign` FOREIGN KEY (`barcode_id`) REFERENCES `barcodes` (`id`),
  CONSTRAINT `returned_aggregation_items_returned_aggregation_id_foreign` FOREIGN KEY (`returned_aggregation_id`) REFERENCES `returned_aggregations` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `returned_aggregation_items`
--


--
-- Table structure for table `returned_aggregations`
--

CREATE TABLE `returned_aggregations` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `bond_number` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `date` date NOT NULL,
  `box_day_id` bigint unsigned NOT NULL,
  `branch_id` bigint unsigned NOT NULL,
  `aggregation_invoice_id` bigint unsigned NOT NULL,
  `source_return_bond_id` bigint unsigned NOT NULL,
  `post_status` tinyint(1) NOT NULL DEFAULT '0',
  `posted_at` timestamp NULL DEFAULT NULL,
  `price` decimal(10,3) NOT NULL DEFAULT '0.000',
  `quantity` decimal(10,3) NOT NULL DEFAULT '0.000',
  `discount` decimal(10,3) NOT NULL DEFAULT '0.000',
  `tax_amount` decimal(10,3) NOT NULL DEFAULT '0.000',
  `total` decimal(10,3) NOT NULL DEFAULT '0.000',
  `fotara_saved_at` datetime DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `returned_aggregations_box_day_id_foreign` (`box_day_id`),
  KEY `returned_aggregations_branch_id_foreign` (`branch_id`),
  KEY `returned_aggregations_aggregation_invoice_id_foreign` (`aggregation_invoice_id`),
  KEY `returned_aggregations_source_return_bond_id_foreign` (`source_return_bond_id`),
  CONSTRAINT `returned_aggregations_aggregation_invoice_id_foreign` FOREIGN KEY (`aggregation_invoice_id`) REFERENCES `aggregation_invoices` (`id`),
  CONSTRAINT `returned_aggregations_box_day_id_foreign` FOREIGN KEY (`box_day_id`) REFERENCES `box_days` (`id`),
  CONSTRAINT `returned_aggregations_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`),
  CONSTRAINT `returned_aggregations_source_return_bond_id_foreign` FOREIGN KEY (`source_return_bond_id`) REFERENCES `pos_returned_sales_bonds` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `returned_aggregations`
--


--
-- Table structure for table `returned_purchase_bond_items`
--

CREATE TABLE `returned_purchase_bond_items` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `returned_purchase_bond_id` bigint unsigned NOT NULL,
  `barcode_id` bigint unsigned NOT NULL,
  `quantity` double(10,3) NOT NULL,
  `cost` double(10,3) NOT NULL,
  `foreign_cost` double(10,3) DEFAULT NULL,
  `purchase_invoice_id` bigint unsigned DEFAULT NULL,
  `tax_ratio` double(10,3) DEFAULT NULL,
  `tax_amount` decimal(10,2) DEFAULT NULL,
  `total_cost_after_tax` decimal(10,2) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `returned_purchase_bond_items_returned_purchase_bond_id_foreign` (`returned_purchase_bond_id`),
  KEY `returned_purchase_bond_items_barcode_id_foreign` (`barcode_id`),
  KEY `returned_purchase_bond_items_purchase_invoice_id_foreign` (`purchase_invoice_id`),
  CONSTRAINT `returned_purchase_bond_items_barcode_id_foreign` FOREIGN KEY (`barcode_id`) REFERENCES `barcodes` (`id`),
  CONSTRAINT `returned_purchase_bond_items_purchase_invoice_id_foreign` FOREIGN KEY (`purchase_invoice_id`) REFERENCES `purchase_invoices` (`id`),
  CONSTRAINT `returned_purchase_bond_items_returned_purchase_bond_id_foreign` FOREIGN KEY (`returned_purchase_bond_id`) REFERENCES `returned_purchase_bonds` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `returned_purchase_bond_items`
--


--
-- Table structure for table `returned_purchase_bond_types`
--

CREATE TABLE `returned_purchase_bond_types` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `is_deletable` tinyint(1) NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `returned_purchase_bond_types`
--

INSERT INTO `returned_purchase_bond_types` VALUES (1,'مردود مشتريات',0);

--
-- Table structure for table `returned_purchase_bonds`
--

CREATE TABLE `returned_purchase_bonds` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `date` date NOT NULL,
  `employee_id` bigint unsigned DEFAULT NULL,
  `bond_number` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `supplier_id` bigint unsigned NOT NULL,
  `branch_id` bigint unsigned NOT NULL,
  `cost_center_id` bigint unsigned DEFAULT NULL,
  `selected_invoices_ids` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `currency_id` bigint unsigned NOT NULL,
  `type_id` bigint unsigned NOT NULL,
  `exchange_price` double(10,3) DEFAULT NULL,
  `payment_way` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'receivable / cash',
  `just_show_supplier_items` tinyint(1) NOT NULL DEFAULT '0',
  `notice` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `post_status` tinyint(1) NOT NULL DEFAULT '0',
  `posted_at` datetime DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `returned_purchase_bonds_supplier_id_foreign` (`supplier_id`),
  KEY `returned_purchase_bonds_branch_id_foreign` (`branch_id`),
  KEY `returned_purchase_bonds_currency_id_foreign` (`currency_id`),
  KEY `returned_purchase_bonds_type_id_foreign` (`type_id`),
  KEY `returned_purchase_bonds_cost_center_id_foreign` (`cost_center_id`),
  KEY `returned_purchase_bonds_employee_id_foreign` (`employee_id`),
  CONSTRAINT `returned_purchase_bonds_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`),
  CONSTRAINT `returned_purchase_bonds_cost_center_id_foreign` FOREIGN KEY (`cost_center_id`) REFERENCES `cost_centers` (`id`),
  CONSTRAINT `returned_purchase_bonds_currency_id_foreign` FOREIGN KEY (`currency_id`) REFERENCES `currencies` (`id`),
  CONSTRAINT `returned_purchase_bonds_employee_id_foreign` FOREIGN KEY (`employee_id`) REFERENCES `employees` (`id`),
  CONSTRAINT `returned_purchase_bonds_supplier_id_foreign` FOREIGN KEY (`supplier_id`) REFERENCES `receivable_accounts` (`id`),
  CONSTRAINT `returned_purchase_bonds_type_id_foreign` FOREIGN KEY (`type_id`) REFERENCES `returned_purchase_bond_types` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `returned_purchase_bonds`
--


--
-- Table structure for table `returned_sales_bond_items`
--

CREATE TABLE `returned_sales_bond_items` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `returned_sales_bond_id` bigint unsigned NOT NULL,
  `barcode_id` bigint unsigned NOT NULL,
  `quantity` double NOT NULL,
  `tax_ratio` double DEFAULT NULL,
  `sales_invoice_id` bigint unsigned NOT NULL,
  `notice` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `price` decimal(10,3) DEFAULT NULL,
  `total_price` decimal(10,3) DEFAULT NULL,
  `total_price_after_tax` decimal(10,3) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `returned_sales_bond_items_returned_sales_bond_id_foreign` (`returned_sales_bond_id`),
  KEY `returned_sales_bond_items_barcode_id_foreign` (`barcode_id`),
  KEY `returned_sales_bond_items_sales_invoice_id_foreign` (`sales_invoice_id`),
  CONSTRAINT `returned_sales_bond_items_barcode_id_foreign` FOREIGN KEY (`barcode_id`) REFERENCES `barcodes` (`id`),
  CONSTRAINT `returned_sales_bond_items_returned_sales_bond_id_foreign` FOREIGN KEY (`returned_sales_bond_id`) REFERENCES `returned_sales_bonds` (`id`),
  CONSTRAINT `returned_sales_bond_items_sales_invoice_id_foreign` FOREIGN KEY (`sales_invoice_id`) REFERENCES `sales_invoices` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `returned_sales_bond_items`
--


--
-- Table structure for table `returned_sales_bonds`
--

CREATE TABLE `returned_sales_bonds` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `date` date NOT NULL,
  `employee_id` bigint unsigned DEFAULT NULL,
  `bond_number` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `client_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'cash' COMMENT 'cash / receivable',
  `client_id` bigint unsigned DEFAULT NULL,
  `client_name` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `branch_id` bigint unsigned NOT NULL,
  `cost_center_id` bigint unsigned DEFAULT NULL,
  `selected_invoices_ids` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `client_branch_id` bigint unsigned DEFAULT NULL,
  `notice` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `post_status` tinyint(1) NOT NULL DEFAULT '0',
  `posted_at` datetime DEFAULT NULL,
  `fotara_saved_at` datetime DEFAULT NULL,
  `is_fully_costed` tinyint(1) NOT NULL DEFAULT '0',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `returned_sales_bonds_client_id_foreign` (`client_id`),
  KEY `returned_sales_bonds_branch_id_foreign` (`branch_id`),
  KEY `returned_sales_bonds_client_branch_id_foreign` (`client_branch_id`),
  KEY `returned_sales_bonds_cost_center_id_foreign` (`cost_center_id`),
  KEY `returned_sales_bonds_employee_id_foreign` (`employee_id`),
  CONSTRAINT `returned_sales_bonds_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`),
  CONSTRAINT `returned_sales_bonds_client_branch_id_foreign` FOREIGN KEY (`client_branch_id`) REFERENCES `receivable_account_branches` (`id`),
  CONSTRAINT `returned_sales_bonds_client_id_foreign` FOREIGN KEY (`client_id`) REFERENCES `receivable_accounts` (`id`),
  CONSTRAINT `returned_sales_bonds_cost_center_id_foreign` FOREIGN KEY (`cost_center_id`) REFERENCES `cost_centers` (`id`),
  CONSTRAINT `returned_sales_bonds_employee_id_foreign` FOREIGN KEY (`employee_id`) REFERENCES `employees` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `returned_sales_bonds`
--


--
-- Table structure for table `returned_service_bond_items`
--

CREATE TABLE `returned_service_bond_items` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `returned_service_bond_id` bigint unsigned NOT NULL,
  `account_id` bigint unsigned DEFAULT NULL,
  `tax_id` bigint unsigned DEFAULT NULL,
  `amount` double(13,3) NOT NULL,
  `tax_amount` double(13,3) DEFAULT NULL,
  `cost_center_id` bigint unsigned DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `returned_service_bond_items_returned_service_bond_id_foreign` (`returned_service_bond_id`),
  KEY `returned_service_bond_items_account_id_foreign` (`account_id`),
  KEY `returned_service_bond_items_tax_id_foreign` (`tax_id`),
  KEY `returned_service_bond_items_cost_center_id_foreign` (`cost_center_id`),
  CONSTRAINT `returned_service_bond_items_account_id_foreign` FOREIGN KEY (`account_id`) REFERENCES `accounts` (`id`),
  CONSTRAINT `returned_service_bond_items_cost_center_id_foreign` FOREIGN KEY (`cost_center_id`) REFERENCES `cost_centers` (`id`),
  CONSTRAINT `returned_service_bond_items_returned_service_bond_id_foreign` FOREIGN KEY (`returned_service_bond_id`) REFERENCES `returned_service_bonds` (`id`),
  CONSTRAINT `returned_service_bond_items_tax_id_foreign` FOREIGN KEY (`tax_id`) REFERENCES `taxes` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `returned_service_bond_items`
--


--
-- Table structure for table `returned_service_bonds`
--

CREATE TABLE `returned_service_bonds` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `year_id` bigint unsigned NOT NULL,
  `period_id` bigint unsigned NOT NULL,
  `employee_id` bigint unsigned NOT NULL,
  `date` date NOT NULL,
  `bond_number` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `selected_invoices_ids` bigint unsigned DEFAULT NULL,
  `post_status` smallint NOT NULL DEFAULT '0',
  `posted_at` datetime DEFAULT NULL,
  `audit_status` tinyint(1) NOT NULL DEFAULT '0',
  `fotara_saved_at` datetime DEFAULT NULL,
  `debit_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'cash or receivable',
  `receivable_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'name of customer (cash/receivable)',
  `debit_account_id` bigint unsigned DEFAULT NULL COMMENT 'when type is cash',
  `debit_receivable_id` bigint unsigned DEFAULT NULL COMMENT 'when type is receivable',
  `notice` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `returned_service_bonds_year_id_foreign` (`year_id`),
  KEY `returned_service_bonds_period_id_foreign` (`period_id`),
  KEY `returned_service_bonds_employee_id_foreign` (`employee_id`),
  KEY `returned_service_bonds_debit_account_id_foreign` (`debit_account_id`),
  KEY `returned_service_bonds_debit_receivable_id_foreign` (`debit_receivable_id`),
  KEY `returned_service_bonds_selected_invoices_ids_foreign` (`selected_invoices_ids`),
  CONSTRAINT `returned_service_bonds_debit_account_id_foreign` FOREIGN KEY (`debit_account_id`) REFERENCES `accounts` (`id`),
  CONSTRAINT `returned_service_bonds_debit_receivable_id_foreign` FOREIGN KEY (`debit_receivable_id`) REFERENCES `receivable_accounts` (`id`),
  CONSTRAINT `returned_service_bonds_employee_id_foreign` FOREIGN KEY (`employee_id`) REFERENCES `employees` (`id`),
  CONSTRAINT `returned_service_bonds_period_id_foreign` FOREIGN KEY (`period_id`) REFERENCES `fiscal_periods` (`id`),
  CONSTRAINT `returned_service_bonds_selected_invoices_ids_foreign` FOREIGN KEY (`selected_invoices_ids`) REFERENCES `service_invoices` (`id`),
  CONSTRAINT `returned_service_bonds_year_id_foreign` FOREIGN KEY (`year_id`) REFERENCES `fiscal_years` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `returned_service_bonds`
--


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

CREATE TABLE `role_has_permissions` (
  `permission_id` bigint unsigned NOT NULL,
  `role_id` bigint unsigned NOT NULL,
  PRIMARY KEY (`permission_id`,`role_id`),
  KEY `role_has_permissions_role_id_foreign` (`role_id`),
  CONSTRAINT `role_has_permissions_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE,
  CONSTRAINT `role_has_permissions_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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


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

CREATE TABLE `roles` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(125) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `guard_name` varchar(125) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `roles_name_guard_name_unique` (`name`,`guard_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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


--
-- Table structure for table `sales_invoice_expenses`
--

CREATE TABLE `sales_invoice_expenses` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `sales_invoice_id` bigint unsigned NOT NULL,
  `expenses_id` bigint unsigned NOT NULL,
  `amount` double(10,2) NOT NULL,
  `credit_account_id` bigint unsigned DEFAULT NULL,
  `credit_receivable_account_id` bigint unsigned DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `sales_invoice_expenses_sales_invoice_id_foreign` (`sales_invoice_id`),
  KEY `sales_invoice_expenses_expenses_id_foreign` (`expenses_id`),
  CONSTRAINT `sales_invoice_expenses_expenses_id_foreign` FOREIGN KEY (`expenses_id`) REFERENCES `standard_sales_invoice_expenses` (`id`),
  CONSTRAINT `sales_invoice_expenses_sales_invoice_id_foreign` FOREIGN KEY (`sales_invoice_id`) REFERENCES `sales_invoices` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `sales_invoice_expenses`
--


--
-- Table structure for table `sales_invoice_items`
--

CREATE TABLE `sales_invoice_items` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `sales_invoice_id` bigint unsigned NOT NULL,
  `barcode_id` bigint unsigned NOT NULL,
  `quantity` double(10,3) NOT NULL,
  `price` double(15,9) DEFAULT NULL,
  `foreign_price` double(13,9) DEFAULT NULL,
  `tax_ratio` double(10,3) DEFAULT NULL,
  `discount_amount` double(10,5) DEFAULT NULL,
  `extra_discount_amount` double(10,5) DEFAULT NULL,
  `bonus` double(10,2) DEFAULT NULL,
  `expire_date` date DEFAULT NULL,
  `serial_items` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `notice` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `print_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  KEY `sales_invoice_items_sales_invoice_id_foreign` (`sales_invoice_id`),
  KEY `sales_invoice_items_barcode_id_foreign` (`barcode_id`),
  CONSTRAINT `sales_invoice_items_barcode_id_foreign` FOREIGN KEY (`barcode_id`) REFERENCES `barcodes` (`id`),
  CONSTRAINT `sales_invoice_items_sales_invoice_id_foreign` FOREIGN KEY (`sales_invoice_id`) REFERENCES `sales_invoices` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `sales_invoice_items`
--


--
-- Table structure for table `sales_invoices`
--

CREATE TABLE `sales_invoices` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `sales_price_offer_id` bigint unsigned DEFAULT NULL,
  `sales_order_id` bigint unsigned DEFAULT NULL,
  `entry_bond_id` bigint unsigned DEFAULT NULL,
  `out_bond_id` bigint unsigned DEFAULT NULL,
  `date` date NOT NULL,
  `employee_id` bigint unsigned DEFAULT NULL,
  `representative_id` bigint unsigned DEFAULT NULL,
  `bond_number` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `client_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'cash' COMMENT 'cash/receivable',
  `client_id` bigint unsigned DEFAULT NULL,
  `branch_id` bigint unsigned NOT NULL,
  `cost_center_id` bigint unsigned DEFAULT NULL,
  `price_type_id` bigint unsigned NOT NULL,
  `type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'internal' COMMENT 'internal / external',
  `client_name` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `delivered_date` date DEFAULT NULL,
  `accured_date` date DEFAULT NULL,
  `payment_method_id` bigint unsigned DEFAULT NULL,
  `driver_id` bigint unsigned DEFAULT NULL,
  `seller_id` bigint unsigned DEFAULT NULL,
  `client_branch_id` bigint unsigned DEFAULT NULL,
  `extra_discount_amount` double(10,3) DEFAULT NULL,
  `client_discount_ratio` double DEFAULT NULL,
  `currency_id` bigint unsigned NOT NULL,
  `exchange_price` double(10,5) DEFAULT NULL,
  `selected_payment_way` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `post_status` tinyint(1) NOT NULL DEFAULT '0',
  `posted_at` datetime DEFAULT NULL,
  `fotara_saved_at` datetime DEFAULT NULL,
  `total_before_taxes` double NOT NULL,
  `accrued_amount` double(10,3) NOT NULL,
  `original_price` tinyint(1) NOT NULL DEFAULT '0',
  `without_out_quantities` tinyint(1) NOT NULL DEFAULT '0',
  `builder_model` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `builder_model_id` bigint DEFAULT NULL,
  `is_under_tax` tinyint(1) NOT NULL DEFAULT '0',
  `without_tax` tinyint(1) NOT NULL DEFAULT '0',
  `taxes_sum` double NOT NULL DEFAULT '0',
  `is_fully_costed` tinyint(1) NOT NULL DEFAULT '0',
  `delivered_status` tinyint(1) NOT NULL DEFAULT '0',
  `notice` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `sales_invoices_sales_order_id_foreign` (`sales_order_id`),
  KEY `sales_invoices_client_id_foreign` (`client_id`),
  KEY `sales_invoices_branch_id_foreign` (`branch_id`),
  KEY `sales_invoices_price_type_id_foreign` (`price_type_id`),
  KEY `sales_invoices_driver_id_foreign` (`driver_id`),
  KEY `sales_invoices_seller_id_foreign` (`seller_id`),
  KEY `sales_invoices_client_branch_id_foreign` (`client_branch_id`),
  KEY `sales_invoices_currency_id_foreign` (`currency_id`),
  KEY `sales_invoices_sales_price_offer_id_foreign` (`sales_price_offer_id`),
  KEY `sales_invoices_cost_center_id_foreign` (`cost_center_id`),
  KEY `sales_invoices_entry_bond_id_foreign` (`entry_bond_id`),
  KEY `sales_invoices_out_bond_id_foreign` (`out_bond_id`),
  KEY `sales_invoices_employee_id_foreign` (`employee_id`),
  KEY `sales_invoices_representative_id_foreign` (`representative_id`),
  CONSTRAINT `sales_invoices_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`),
  CONSTRAINT `sales_invoices_client_branch_id_foreign` FOREIGN KEY (`client_branch_id`) REFERENCES `receivable_account_branches` (`id`),
  CONSTRAINT `sales_invoices_client_id_foreign` FOREIGN KEY (`client_id`) REFERENCES `receivable_accounts` (`id`),
  CONSTRAINT `sales_invoices_cost_center_id_foreign` FOREIGN KEY (`cost_center_id`) REFERENCES `cost_centers` (`id`),
  CONSTRAINT `sales_invoices_currency_id_foreign` FOREIGN KEY (`currency_id`) REFERENCES `currencies` (`id`),
  CONSTRAINT `sales_invoices_driver_id_foreign` FOREIGN KEY (`driver_id`) REFERENCES `drivers` (`id`),
  CONSTRAINT `sales_invoices_employee_id_foreign` FOREIGN KEY (`employee_id`) REFERENCES `employees` (`id`),
  CONSTRAINT `sales_invoices_entry_bond_id_foreign` FOREIGN KEY (`entry_bond_id`) REFERENCES `entry_bonds` (`id`),
  CONSTRAINT `sales_invoices_out_bond_id_foreign` FOREIGN KEY (`out_bond_id`) REFERENCES `out_bonds` (`id`),
  CONSTRAINT `sales_invoices_price_type_id_foreign` FOREIGN KEY (`price_type_id`) REFERENCES `barcode_price_types` (`id`),
  CONSTRAINT `sales_invoices_representative_id_foreign` FOREIGN KEY (`representative_id`) REFERENCES `representatives` (`id`),
  CONSTRAINT `sales_invoices_sales_order_id_foreign` FOREIGN KEY (`sales_order_id`) REFERENCES `sales_orders` (`id`),
  CONSTRAINT `sales_invoices_sales_price_offer_id_foreign` FOREIGN KEY (`sales_price_offer_id`) REFERENCES `sales_price_offers` (`id`),
  CONSTRAINT `sales_invoices_seller_id_foreign` FOREIGN KEY (`seller_id`) REFERENCES `sellers` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `sales_invoices`
--


--
-- Table structure for table `sales_order_expenses`
--

CREATE TABLE `sales_order_expenses` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `sales_order_id` bigint unsigned NOT NULL,
  `expenses_id` bigint unsigned NOT NULL,
  `amount` double(10,2) NOT NULL,
  `credit_account_id` bigint unsigned DEFAULT NULL,
  `credit_receivable_account_id` bigint unsigned DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `sales_order_expenses_sales_order_id_foreign` (`sales_order_id`),
  KEY `sales_order_expenses_expenses_id_foreign` (`expenses_id`),
  CONSTRAINT `sales_order_expenses_expenses_id_foreign` FOREIGN KEY (`expenses_id`) REFERENCES `standard_sales_invoice_expenses` (`id`),
  CONSTRAINT `sales_order_expenses_sales_order_id_foreign` FOREIGN KEY (`sales_order_id`) REFERENCES `sales_orders` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `sales_order_expenses`
--


--
-- Table structure for table `sales_order_items`
--

CREATE TABLE `sales_order_items` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `sales_order_id` bigint unsigned NOT NULL,
  `barcode_id` bigint unsigned NOT NULL,
  `quantity` double(10,3) NOT NULL,
  `delivered_quantity` double(10,2) NOT NULL DEFAULT '0.00' COMMENT 'quantity Received from client',
  `delivered_bonus` double(10,2) NOT NULL DEFAULT '0.00' COMMENT 'bonus Received from client',
  `price` double(13,9) NOT NULL,
  `foreign_price` double(13,9) DEFAULT NULL,
  `discount_amount` double(10,2) DEFAULT NULL,
  `extra_discount_amount` double(10,2) DEFAULT NULL,
  `bonus` double(10,2) DEFAULT NULL,
  `expire_date` date DEFAULT NULL,
  `serial_items` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `notice` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `sales_order_items_sales_order_id_foreign` (`sales_order_id`),
  KEY `sales_order_items_barcode_id_foreign` (`barcode_id`),
  CONSTRAINT `sales_order_items_barcode_id_foreign` FOREIGN KEY (`barcode_id`) REFERENCES `barcodes` (`id`),
  CONSTRAINT `sales_order_items_sales_order_id_foreign` FOREIGN KEY (`sales_order_id`) REFERENCES `sales_orders` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `sales_order_items`
--


--
-- Table structure for table `sales_orders`
--

CREATE TABLE `sales_orders` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `date` date NOT NULL,
  `employee_id` bigint unsigned DEFAULT NULL,
  `bond_number` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `sales_price_offer_id` bigint unsigned DEFAULT NULL,
  `client_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'cash' COMMENT 'cash/receivable',
  `client_id` bigint unsigned DEFAULT NULL,
  `branch_id` bigint unsigned NOT NULL,
  `price_type_id` bigint unsigned NOT NULL,
  `type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'internal' COMMENT 'internal / external',
  `client_name` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `delivered_date` date DEFAULT NULL,
  `accured_date` date DEFAULT NULL,
  `payment_method_id` bigint unsigned DEFAULT NULL,
  `driver_id` bigint unsigned DEFAULT NULL,
  `seller_id` bigint unsigned DEFAULT NULL,
  `client_branch_id` bigint unsigned DEFAULT NULL,
  `extra_discount_amount` double(10,2) DEFAULT NULL,
  `client_discount_ratio` double DEFAULT NULL,
  `currency_id` bigint unsigned NOT NULL,
  `exchange_price` double(10,5) DEFAULT NULL,
  `amount` double(10,3) NOT NULL,
  `accrued_amount` double(10,3) NOT NULL,
  `notice` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `status` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'draft' COMMENT 'draft/ unmet/ partially-satiated/ full-satiated',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `sales_orders_client_id_foreign` (`client_id`),
  KEY `sales_orders_branch_id_foreign` (`branch_id`),
  KEY `sales_orders_price_type_id_foreign` (`price_type_id`),
  KEY `sales_orders_driver_id_foreign` (`driver_id`),
  KEY `sales_orders_seller_id_foreign` (`seller_id`),
  KEY `sales_orders_client_branch_id_foreign` (`client_branch_id`),
  KEY `sales_orders_currency_id_foreign` (`currency_id`),
  KEY `sales_orders_sales_price_offer_id_foreign` (`sales_price_offer_id`),
  KEY `sales_orders_employee_id_foreign` (`employee_id`),
  CONSTRAINT `sales_orders_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`),
  CONSTRAINT `sales_orders_client_branch_id_foreign` FOREIGN KEY (`client_branch_id`) REFERENCES `receivable_account_branches` (`id`),
  CONSTRAINT `sales_orders_client_id_foreign` FOREIGN KEY (`client_id`) REFERENCES `receivable_accounts` (`id`),
  CONSTRAINT `sales_orders_currency_id_foreign` FOREIGN KEY (`currency_id`) REFERENCES `currencies` (`id`),
  CONSTRAINT `sales_orders_driver_id_foreign` FOREIGN KEY (`driver_id`) REFERENCES `drivers` (`id`),
  CONSTRAINT `sales_orders_employee_id_foreign` FOREIGN KEY (`employee_id`) REFERENCES `employees` (`id`),
  CONSTRAINT `sales_orders_price_type_id_foreign` FOREIGN KEY (`price_type_id`) REFERENCES `barcode_price_types` (`id`),
  CONSTRAINT `sales_orders_sales_price_offer_id_foreign` FOREIGN KEY (`sales_price_offer_id`) REFERENCES `sales_price_offers` (`id`),
  CONSTRAINT `sales_orders_seller_id_foreign` FOREIGN KEY (`seller_id`) REFERENCES `sellers` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `sales_orders`
--


--
-- Table structure for table `sales_price_offer_items`
--

CREATE TABLE `sales_price_offer_items` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `sales_price_offer_id` bigint unsigned NOT NULL,
  `barcode_id` bigint unsigned NOT NULL,
  `quantity` double(10,3) NOT NULL,
  `price` double(13,9) NOT NULL,
  `discount_amount` double(10,3) DEFAULT NULL,
  `extra_discount_amount` double(10,2) DEFAULT NULL,
  `notice` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `sales_price_offer_items_sales_price_offer_id_foreign` (`sales_price_offer_id`),
  KEY `sales_price_offer_items_barcode_id_foreign` (`barcode_id`),
  CONSTRAINT `sales_price_offer_items_barcode_id_foreign` FOREIGN KEY (`barcode_id`) REFERENCES `barcodes` (`id`),
  CONSTRAINT `sales_price_offer_items_sales_price_offer_id_foreign` FOREIGN KEY (`sales_price_offer_id`) REFERENCES `sales_price_offers` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `sales_price_offer_items`
--


--
-- Table structure for table `sales_price_offers`
--

CREATE TABLE `sales_price_offers` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `date` date NOT NULL,
  `employee_id` bigint unsigned DEFAULT NULL,
  `representative_id` bigint unsigned DEFAULT NULL,
  `bond_number` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `client_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'cash' COMMENT 'cash/receivable',
  `client_id` bigint unsigned DEFAULT NULL,
  `branch_id` bigint unsigned NOT NULL,
  `price_type_id` bigint unsigned NOT NULL,
  `client_name` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `payment_method_id` bigint unsigned DEFAULT NULL,
  `selected_payment_way` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `amount` double(10,2) NOT NULL,
  `extra_discount_amount` double(10,3) DEFAULT NULL,
  `client_discount_ratio` double DEFAULT NULL,
  `status` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'draft' COMMENT 'draft/active',
  `notice` varchar(190) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `sales_price_offers_client_id_foreign` (`client_id`),
  KEY `sales_price_offers_branch_id_foreign` (`branch_id`),
  KEY `sales_price_offers_price_type_id_foreign` (`price_type_id`),
  KEY `sales_price_offers_employee_id_foreign` (`employee_id`),
  KEY `sales_price_offers_representative_id_foreign` (`representative_id`),
  CONSTRAINT `sales_price_offers_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`),
  CONSTRAINT `sales_price_offers_client_id_foreign` FOREIGN KEY (`client_id`) REFERENCES `receivable_accounts` (`id`),
  CONSTRAINT `sales_price_offers_employee_id_foreign` FOREIGN KEY (`employee_id`) REFERENCES `employees` (`id`),
  CONSTRAINT `sales_price_offers_price_type_id_foreign` FOREIGN KEY (`price_type_id`) REFERENCES `barcode_price_types` (`id`),
  CONSTRAINT `sales_price_offers_representative_id_foreign` FOREIGN KEY (`representative_id`) REFERENCES `representatives` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `sales_price_offers`
--


--
-- Table structure for table `sellers`
--

CREATE TABLE `sellers` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `sellers`
--


--
-- Table structure for table `service_invoice_items`
--

CREATE TABLE `service_invoice_items` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `service_invoice_id` bigint unsigned NOT NULL,
  `account_id` bigint unsigned DEFAULT NULL,
  `tax_id` bigint unsigned DEFAULT NULL,
  `amount` double(13,3) NOT NULL,
  `tax_amount` double(13,3) DEFAULT NULL,
  `cost_center_id` bigint unsigned DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `service_invoice_items_service_invoice_id_foreign` (`service_invoice_id`),
  KEY `service_invoice_items_account_id_foreign` (`account_id`),
  KEY `service_invoice_items_tax_id_foreign` (`tax_id`),
  KEY `service_invoice_items_cost_center_id_foreign` (`cost_center_id`),
  CONSTRAINT `service_invoice_items_account_id_foreign` FOREIGN KEY (`account_id`) REFERENCES `accounts` (`id`),
  CONSTRAINT `service_invoice_items_cost_center_id_foreign` FOREIGN KEY (`cost_center_id`) REFERENCES `cost_centers` (`id`),
  CONSTRAINT `service_invoice_items_service_invoice_id_foreign` FOREIGN KEY (`service_invoice_id`) REFERENCES `service_invoices` (`id`),
  CONSTRAINT `service_invoice_items_tax_id_foreign` FOREIGN KEY (`tax_id`) REFERENCES `taxes` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=53 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `service_invoice_items`
--

INSERT INTO `service_invoice_items` VALUES (1,1,112,NULL,500.000,NULL,NULL),(2,2,114,NULL,500.000,NULL,NULL),(3,3,112,NULL,350.000,NULL,NULL),(4,4,113,NULL,1250.000,NULL,NULL),(5,5,114,NULL,4500.000,NULL,NULL),(6,6,112,NULL,300.000,NULL,NULL),(7,7,112,NULL,250.000,NULL,NULL),(8,8,114,NULL,3150.000,NULL,NULL),(9,9,113,NULL,3850.000,NULL,NULL),(10,10,112,NULL,250.000,NULL,NULL),(11,11,112,NULL,280.000,NULL,NULL),(12,12,114,NULL,6150.000,NULL,NULL),(13,13,114,NULL,6550.000,NULL,NULL),(14,14,112,NULL,150.000,NULL,NULL),(15,15,112,NULL,150.000,NULL,NULL),(16,16,112,NULL,150.000,NULL,NULL),(17,17,112,NULL,450.000,NULL,NULL),(18,18,112,NULL,250.000,NULL,NULL),(19,19,113,NULL,2150.000,NULL,NULL),(20,20,114,NULL,18000.000,NULL,NULL),(21,21,113,NULL,3000.000,NULL,NULL),(22,22,112,NULL,550.000,NULL,NULL),(23,23,112,NULL,500.000,NULL,NULL),(24,24,112,NULL,500.000,NULL,NULL),(25,25,114,NULL,175.000,NULL,NULL),(26,26,113,NULL,4180.000,NULL,NULL),(27,27,114,NULL,4800.000,NULL,NULL),(28,28,114,NULL,480.000,NULL,NULL),(29,29,114,NULL,1500.000,NULL,NULL),(30,30,114,NULL,18100.000,NULL,NULL),(31,31,113,NULL,3500.000,NULL,NULL),(32,32,112,NULL,500.000,NULL,NULL),(33,33,112,NULL,5500.000,NULL,NULL),(34,34,114,NULL,3600.000,NULL,NULL),(35,35,114,NULL,7200.000,NULL,NULL),(36,36,112,NULL,1350.000,NULL,NULL),(37,37,112,NULL,3520.000,NULL,NULL),(38,38,114,NULL,4800.000,NULL,NULL),(39,39,114,NULL,7200.000,NULL,NULL),(40,40,112,NULL,550.000,NULL,NULL),(41,41,113,NULL,6600.000,NULL,NULL),(42,42,112,NULL,550.000,NULL,NULL),(43,43,112,NULL,550.000,NULL,NULL),(44,44,112,NULL,500.000,NULL,NULL),(45,45,112,NULL,500.000,NULL,NULL),(46,46,112,NULL,500.000,NULL,NULL),(47,47,114,NULL,500.000,NULL,NULL),(48,48,112,NULL,550.000,NULL,NULL),(49,49,113,NULL,250.000,NULL,NULL),(50,50,112,NULL,700.000,NULL,NULL),(51,51,114,NULL,11000.000,NULL,NULL),(52,52,114,NULL,6250.000,NULL,NULL);

--
-- Table structure for table `service_invoices`
--

CREATE TABLE `service_invoices` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `year_id` bigint unsigned NOT NULL,
  `period_id` bigint unsigned NOT NULL,
  `employee_id` bigint unsigned DEFAULT NULL,
  `date` date NOT NULL,
  `bond_number` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `amount` double(13,3) DEFAULT NULL,
  `accrued_amount` double(13,3) DEFAULT NULL,
  `post_status` smallint NOT NULL DEFAULT '0',
  `posted_at` datetime DEFAULT NULL,
  `fotara_saved_at` datetime DEFAULT NULL,
  `audit_status` tinyint(1) NOT NULL DEFAULT '0',
  `debit_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'cash or receivable',
  `receivable_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'name of customer (cash/receivable)',
  `debit_account_id` bigint unsigned DEFAULT NULL COMMENT 'when type is cash',
  `debit_receivable_id` bigint unsigned DEFAULT NULL COMMENT 'when type is receivable',
  `notice` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `service_invoices_year_id_foreign` (`year_id`),
  KEY `service_invoices_period_id_foreign` (`period_id`),
  KEY `service_invoices_debit_account_id_foreign` (`debit_account_id`),
  KEY `service_invoices_debit_receivable_id_foreign` (`debit_receivable_id`),
  KEY `service_invoices_employee_id_foreign` (`employee_id`),
  CONSTRAINT `service_invoices_debit_account_id_foreign` FOREIGN KEY (`debit_account_id`) REFERENCES `accounts` (`id`),
  CONSTRAINT `service_invoices_debit_receivable_id_foreign` FOREIGN KEY (`debit_receivable_id`) REFERENCES `receivable_accounts` (`id`),
  CONSTRAINT `service_invoices_employee_id_foreign` FOREIGN KEY (`employee_id`) REFERENCES `employees` (`id`),
  CONSTRAINT `service_invoices_period_id_foreign` FOREIGN KEY (`period_id`) REFERENCES `fiscal_periods` (`id`),
  CONSTRAINT `service_invoices_year_id_foreign` FOREIGN KEY (`year_id`) REFERENCES `fiscal_years` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=53 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `service_invoices`
--

INSERT INTO `service_invoices` VALUES (1,2,23,1,'2024-01-04','001',500.000,500.000,1,'2025-02-18 20:57:20',NULL,0,'cash','شركة سيتس',5,NULL,'وذلك عن تاجير برامج erp - شركة سيتس من 01/01/2024 حتى 31/12/2024 - نقدا','2024-11-04 15:42:13','2025-02-18 17:57:20',NULL),(2,2,13,1,'2024-01-20','002',500.000,500.000,1,'2025-04-29 13:11:47',NULL,0,'cash','عالم مینا للانتاج والتوزیع',5,NULL,'وذلك عن ادارة المحتوى - نقدا   - عالم مینا للانتاج والتوزیع','2025-02-18 17:27:03','2025-04-29 10:11:47',NULL),(3,2,13,1,'2024-01-01','003',350.000,350.000,1,'2025-02-18 20:57:20',NULL,0,'cash','عميل نقدي',5,NULL,'وذلك عن تاجير برامج erp -  من 01/01/2024 حتى 31/12/2024 - نقدا','2025-02-18 17:28:04','2025-02-18 17:57:20',NULL),(4,2,14,1,'2024-02-01','004',1250.000,1250.000,1,'2025-04-29 13:11:47',NULL,0,'cash','عالم مینا للانتاج والتوزیع',5,NULL,'ادارة برمجة المحتوي الشركة - عالم مینا للانتاج والتوزیع','2025-02-18 17:28:30','2025-04-29 10:11:47',NULL),(5,2,15,1,'2024-03-01','005',4500.000,4500.000,1,'2025-04-29 13:11:47',NULL,0,'cash','عالم مینا للانتاج والتوزیع',5,NULL,'وذلك عن ادارة محتوى - لغايات الانتاج - عالم مینا للانتاج والتوزیع','2025-02-18 17:29:12','2025-04-29 10:11:47',NULL),(6,2,15,1,'2024-03-01','006',300.000,300.000,1,'2025-02-18 20:57:20',NULL,0,'cash','عميل نقدي',5,NULL,'وذلك عن تاجير برامج erp -  من 01/03/2024 حتى 31/12/2024 - نقدا','2025-02-18 17:29:43','2025-02-18 17:57:20',NULL),(7,2,16,1,'2024-04-01','007',250.000,250.000,1,'2025-02-18 20:57:20',NULL,0,'cash','عميل نقدي',5,NULL,'وذلك عن تاجير برامج erp -  من 01/05/2024 حتى 31/12/2024 - نقدا','2025-02-18 17:30:07','2025-02-18 17:57:20',NULL),(8,2,16,1,'2024-04-20','008',3150.000,3150.000,1,'2025-02-18 20:57:20',NULL,0,'cash','عميل نقدي',5,NULL,'وذلك عن برمجة تطبيق بطاقات بيع الكتروني','2025-02-18 17:33:43','2025-02-18 17:57:20',NULL),(9,2,16,1,'2024-04-20','009',3850.000,3850.000,1,'2025-02-18 20:57:20',NULL,0,'cash','عميل نقدي',5,NULL,'وذلك عن تصميم ويب سايت - الجود الرائدة','2025-02-18 17:34:13','2025-02-18 17:57:20',NULL),(10,2,17,1,'2024-05-01','010',250.000,250.000,1,'2025-02-18 20:57:20',NULL,0,'cash','عميل نقدي',5,NULL,'وذلك عن تاجير برامج erp -  من 01/06/2024 حتى 31/12/2024 - نقدا','2025-02-18 17:34:35','2025-02-18 17:57:20',NULL),(11,2,18,1,'2024-06-01','011',280.000,280.000,1,'2025-02-18 20:57:20',NULL,0,'cash','عميل نقدي',5,NULL,'وذلك عن تاجير برامج erp -  من 01/06/2024 حتى 31/12/2024 - نقدا','2025-02-18 17:35:10','2025-02-18 17:57:20',NULL),(12,2,18,1,'2024-06-28','012',6150.000,6150.000,1,'2025-02-18 20:57:20',NULL,0,'cash','عميل نقدي',5,NULL,'وذلك عن اعمال برمجة - خارجي - منصة','2025-02-18 17:35:45','2025-02-18 17:57:20',NULL),(13,2,18,1,'2024-06-30','013',6550.000,6550.000,1,'2025-02-18 20:57:20',NULL,0,'cash','عميل نقدي',5,NULL,'وذلك عن ادارة محتوى منصة تعليمية - اعادة برمجة الحماية','2025-02-18 17:36:29','2025-02-18 17:57:20',NULL),(14,2,19,1,'2024-07-01','014',150.000,150.000,1,'2025-02-18 20:57:20',NULL,0,'cash','عميل نقدي',5,NULL,'وذلك عن تاجير برامج erp -  من 01/03/2024 حتى 31/12/2024 - نقدا','2025-02-18 17:36:47','2025-02-18 17:57:20',NULL),(15,2,19,1,'2024-07-01','015',150.000,150.000,1,'2025-02-18 20:57:20',NULL,0,'cash','عميل نقدي',5,NULL,'وذلك عن تاجير برامج erp -  من 01/07/2024 حتى 31/12/2024 - نقدا','2025-02-18 17:37:17','2025-02-18 17:57:20',NULL),(16,2,19,1,'2024-07-01','016',150.000,150.000,1,'2025-02-18 20:57:20',NULL,0,'cash','عميل نقدي',5,NULL,'وذلك عن تاجير برامج erp -  من 01/07/2024 حتى 31/12/2024 - نقدا','2025-02-18 17:37:42','2025-02-18 17:57:20',NULL),(17,2,19,1,'2024-07-01','017',450.000,450.000,1,'2025-02-18 20:57:20',NULL,0,'cash','عميل نقدي',5,NULL,'وذلك عن تاجير برامج erp -  من 01/07/2024 حتى 30/06/2025 - نقدا','2025-02-18 17:38:25','2025-02-18 17:57:20',NULL),(18,2,19,1,'2024-07-02','018',250.000,250.000,1,'2025-02-18 20:57:20',NULL,0,'cash','عميل نقدي',5,NULL,'وذلك عن تاجير برامج erp -  من 01/07/2024 حتى 31/12/2024 - نقدا','2025-02-18 17:38:44','2025-02-18 17:57:20',NULL),(19,2,19,1,'2024-07-15','019',2150.000,2150.000,1,'2025-02-18 20:57:20',NULL,0,'cash','عميل نقدي',5,NULL,'وذلك عن اعمال برمجة - ويب سايت','2025-02-18 17:39:15','2025-02-18 17:57:20',NULL),(20,2,20,1,'2024-08-01','020',18000.000,18000.000,1,'2025-04-29 13:11:47',NULL,0,'cash','عالم مینا للانتاج والتوزیع',5,NULL,'وذلك عن اعمال ادارة محتوى - الويب سايت عن سنة 2024 كاملة - عالم مینا للانتاج والتوزیع','2025-02-18 17:39:47','2025-04-29 10:11:47',NULL),(21,2,20,1,'2024-08-16','021',3000.000,3000.000,1,'2025-02-18 20:57:20',NULL,0,'cash','عميل نقدي',5,NULL,'وذلك عن اعمال ويب سايت','2025-02-18 17:40:15','2025-02-18 17:57:20',NULL),(22,2,21,1,'2024-09-01','022',550.000,550.000,1,'2025-02-18 20:57:20',NULL,0,'cash','عميل نقدي',5,NULL,'وذلك عن تاجير برامج erp -  من 01/03/2024 حتى 31/12/2024 - نقدا - ايجارات','2025-02-18 17:41:17','2025-02-18 17:57:20',NULL),(23,2,21,1,'2024-09-02','023',500.000,500.000,1,'2025-02-18 20:57:20',NULL,0,'cash','عميل نقدي',5,NULL,'وذلك عن تاجير برامج erp -  من 01/09/2024 حتى 31/08/2025 - نقدا','2025-02-18 17:42:12','2025-02-18 17:57:20',NULL),(24,2,21,1,'2024-09-02','024',500.000,500.000,1,'2025-02-18 20:57:20',NULL,0,'cash','عميل نقدي',5,NULL,'وذلك عن تاجير برامج erp -  من 01/09/2024 حتى 31/08/2025 - نقدا','2025-02-18 17:42:36','2025-02-18 17:57:20',NULL),(25,2,21,1,'2024-09-04','025',175.000,175.000,1,'2025-02-18 20:57:20',NULL,0,'cash','عميل نقدي',5,NULL,'وذلك عن اعمال برمجة وصيانة','2025-02-18 17:43:00','2025-02-18 17:57:20',NULL),(26,2,21,1,'2024-09-09','026',4180.000,4180.000,1,'2025-02-18 20:57:20',NULL,0,'cash','عميل نقدي',5,NULL,'وذلك عن تصميم موقع الكتروني - امريكا','2025-02-18 17:43:36','2025-02-18 17:57:20',NULL),(27,2,21,1,'2024-09-18','027',4800.000,4800.000,1,'2025-03-08 15:09:41',NULL,0,'cash','عميل نقدي',5,NULL,'برمجة منصة تعليمية - طرق دراستك','2025-02-18 17:44:10','2025-03-08 12:09:41',NULL),(28,2,21,1,'2024-09-20','028',480.000,480.000,1,'2025-02-18 20:57:20',NULL,0,'cash','عميل نقدي',5,NULL,'تصميم صور وفيديوهات','2025-02-18 17:44:40','2025-02-18 17:57:20',NULL),(29,2,24,1,'2024-09-30','029',1500.000,1500.000,1,'2025-02-18 20:57:20',NULL,0,'receivable',NULL,NULL,16,'اعمال تصميم - ويب سايت ونظام جرد للصيدليات','2025-02-18 17:45:29','2025-02-18 17:57:20',NULL),(30,2,21,1,'2024-09-30','030',18100.000,18100.000,1,'2025-04-17 11:18:10',NULL,0,'receivable',NULL,NULL,15,'تصميم منصة تعليمية','2025-02-18 17:46:18','2025-04-17 08:18:10',NULL),(31,2,22,1,'2024-10-01','031',3500.000,3500.000,1,'2025-02-18 20:57:20',NULL,0,'cash','عميل نقدي',5,NULL,'تصميم موقع الكتروني','2025-02-18 17:46:46','2025-02-18 17:57:20',NULL),(32,2,22,1,'2024-10-01','032',500.000,500.000,1,'2025-02-18 20:57:20',NULL,0,'cash','عميل نقدي',5,NULL,'وذلك عن تاجير برامج erp -  من 01/09/2024 حتى 31/08/2025 - نقدا','2025-02-18 17:47:05','2025-02-18 17:57:20',NULL),(33,2,22,1,'2024-10-01','033',5500.000,5500.000,1,'2025-02-18 20:57:20',NULL,0,'cash','عميل نقدي',5,NULL,'اشتراكات برنامج الايجارات - محامي','2025-02-18 17:47:45','2025-02-18 17:57:20',NULL),(34,2,22,1,'2024-10-01','034',3600.000,3600.000,1,'2025-04-17 11:17:08',NULL,0,'cash','منصة طرق دراستك المتميزة',5,NULL,'دعم فني منصة تعليمية/منصة طرق دراستك المتميزة','2025-02-18 17:48:36','2025-04-17 08:17:08',NULL),(35,2,22,1,'2024-10-01','035',7200.000,7200.000,1,'2025-03-08 15:10:44',NULL,0,'cash','عميل نقدي',5,NULL,'دعم فني - منصة تعليمية','2025-02-18 17:49:12','2025-03-08 12:10:44',NULL),(36,2,22,1,'2024-10-15','036',1350.000,1350.000,1,'2025-02-18 20:57:20',NULL,0,'cash','عميل نقدي',5,NULL,'اشتراك برنامج محاسبي','2025-02-18 17:50:11','2025-02-18 17:57:20',NULL),(37,2,22,1,'2024-10-18','037',3520.000,3520.000,1,'2025-02-18 20:57:20',NULL,0,'cash','عميل نقدي',5,NULL,'اشتراكات برنامج الايجارات','2025-02-18 17:50:38','2025-02-18 17:57:20',NULL),(38,2,22,1,'2024-10-20','038',4800.000,4800.000,1,'2025-03-08 15:11:15',NULL,0,'cash','عميل نقدي',5,NULL,'اتعاب برمجة - ويب سايت تجاري','2025-02-18 17:51:20','2025-03-08 12:11:15',NULL),(39,2,23,1,'2024-11-10','039',7200.000,7200.000,1,'2025-03-08 15:11:15',NULL,0,'cash','عميل نقدي',5,NULL,'اعمال برمجة','2025-02-18 17:51:48','2025-03-08 12:11:15',NULL),(40,2,24,1,'2024-12-01','040',550.000,550.000,1,'2025-02-18 20:57:20',NULL,0,'cash','عميل نقدي',5,NULL,'اشتراك برنامج محاسبي','2025-02-18 17:52:18','2025-02-18 17:57:20',NULL),(41,2,24,1,'2024-12-01','041',6600.000,6600.000,1,'2025-02-18 20:57:20',NULL,0,'cash','عميل نقدي',5,NULL,'تصميم موقع الكتروني','2025-02-18 17:52:37','2025-02-18 17:57:20',NULL),(42,2,24,1,'2024-12-01','042',550.000,550.000,1,'2025-02-18 20:57:20',NULL,0,'cash','عميل نقدي',5,NULL,'برنامج محسبي 13 شهر','2025-02-18 17:53:02','2025-02-18 17:57:20',NULL),(43,2,24,1,'2024-12-01','043',550.000,550.000,1,'2025-02-18 20:57:20',NULL,0,'cash','عميل نقدي',5,NULL,'برنامج محسبي 13 شهر','2025-02-18 17:53:18','2025-02-18 17:57:20',NULL),(44,2,24,1,'2024-12-15','044',500.000,500.000,1,'2025-02-18 20:57:20',NULL,0,'cash','عميل نقدي',5,NULL,'برنامج محسبي من 01/01/2025 حتى 13/12/2025','2025-02-18 17:53:54','2025-02-18 17:57:20',NULL),(45,2,24,1,'2024-12-20','045',500.000,500.000,1,'2025-02-18 20:57:20',NULL,0,'cash','عميل نقدي',5,NULL,'برنامج محسبي من 01/01/2025 حتى 13/12/2025','2025-02-18 17:54:10','2025-02-18 17:57:20',NULL),(46,2,24,1,'2024-12-20','046',500.000,500.000,1,'2025-02-18 20:57:20',NULL,0,'cash','عميل نقدي',5,NULL,'برنامج محسبي من 01/01/2025 حتى 13/12/2025','2025-02-18 17:54:29','2025-02-18 17:57:20',NULL),(47,2,24,1,'2024-12-21','047',500.000,500.000,1,'2025-04-29 13:20:13',NULL,0,'cash','عالم مینا للانتاج والتوزیع',5,NULL,'ادارة محتوى -عالم مینا للانتاج والتوزیع','2025-02-18 17:54:45','2025-04-29 10:20:13',NULL),(48,2,24,1,'2024-12-31','048',550.000,550.000,1,'2025-02-18 20:57:20',NULL,0,'cash','عميل نقدي',5,NULL,'برنامج محسبي من 01/01/2025 حتى 31/12/2025','2025-02-18 17:55:17','2025-02-18 17:57:20',NULL),(49,2,24,1,'2024-12-31','049',250.000,250.000,1,'2025-04-29 13:11:47',NULL,0,'cash','عالم مینا للانتاج والتوزیع',5,NULL,'اضافة تصميم -عالم مینا للانتاج والتوزیع','2025-02-18 17:55:38','2025-04-29 10:11:47',NULL),(50,2,24,1,'2024-12-31','050',700.000,700.000,1,'2025-04-29 12:45:46',NULL,0,'cash','عميل نقدي',5,NULL,'برنامج محسبي من 01/01/2025 حتى 31/12/2025','2025-02-18 17:55:56','2025-04-29 09:45:46',NULL),(51,2,24,1,'2024-12-31','051',11000.000,11000.000,1,'2025-03-08 15:12:31',NULL,0,'cash','عميل نقدي',5,NULL,'جميع اعمال برمجة وادارة منصة 2024','2025-02-18 17:56:25','2025-03-08 12:12:31',NULL),(52,2,24,1,'2024-12-31','052',6250.000,6250.000,1,'2025-03-08 15:14:07',NULL,0,'cash','عميل نقدي',5,NULL,'جميع اعمال الصيانة للعام 2024 - ويب سايت','2025-02-18 17:56:57','2025-03-08 12:14:07',NULL);

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

CREATE TABLE `sessions` (
  `id` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `user_id` bigint unsigned DEFAULT NULL,
  `ip_address` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `user_agent` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `payload` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `last_activity` int NOT NULL,
  PRIMARY KEY (`id`),
  KEY `sessions_user_id_index` (`user_id`),
  KEY `sessions_last_activity_index` (`last_activity`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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


--
-- Table structure for table `settings`
--

CREATE TABLE `settings` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `value` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  PRIMARY KEY (`id`),
  UNIQUE KEY `settings_name_unique` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=100 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `settings`
--

INSERT INTO `settings` VALUES (1,'sub_users_count','4'),(2,'buildings_count',NULL),(3,'floors_count_to_each_building',NULL),(4,'warehouses_count','4'),(5,'company_info','{\"name\":\"\\u0628\\u0648\\u0631\\u062a \\u0644\\u0644\\u0628\\u0631\\u0645\\u062c\\u064a\\u0627\\u062a\",\"en_name\":\"Port Software\",\"phone\":\"00962791007510\",\"fax\":null,\"email\":\"it@port-software.com\",\"website\":null,\"owner\":\"\\u0628\\u0648\\u0631\\u062a \\u0644\\u0644\\u0628\\u0631\\u0645\\u062c\\u064a\\u0627\\u062a\",\"id_number\":\"200195493\",\"tax_number\":null,\"address\":{\"governorate\":\"\\u0627\\u0644\\u0639\\u0627\\u0635\\u0645\\u0629\",\"neighborhood\":\"\\u062a\\u0644\\u0627\\u0639 \\u0627\\u0644\\u0639\\u0644\\u064a\",\"street\":\"\\u0634\\u0627\\u0631\\u0639 \\u0648\\u0635\\u0641\\u064a \\u0627\\u0644\\u062a\\u0644\"},\"under_tax\":false,\"register_date\":\"2023-10-11\"}'),(6,'logo','settings/logo.jpg'),(7,'auditing_step','1'),(8,'checks_box_step','1'),(9,'bonds_unpost','{\"entries\":true,\"receipts\":true,\"exchanges\":true,\"serviceInvoices\":true,\"debitNotes\":true,\"creditNotes\":true,\"returnedServiceBonds\":true}'),(10,'bonds_autopost','{\"entries\":false,\"receipts\":false,\"exchanges\":false,\"serviceInvoices\":false,\"debitNotes\":false,\"creditNotes\":false,\"returnedServiceBonds\":true}'),(11,'accounting_bonds_printing_after_save','{\"entries\":true,\"receipts\":true,\"exchanges\":true,\"serviceInvoices\":true,\"debitNotes\":true,\"creditNotes\":true,\"returnedServiceBonds\":true}'),(12,'warehouses_bonds_printing_after_save','{\"entryBonds\":true,\"outBonds\":true,\"convertBonds\":true,\"manufacturingBonds\":true,\"purchasesOrders\":true,\"purchasesCommands\":true,\"purchasesInvoices\":true,\"returnedPurchasesBonds\":true,\"salesInvoices\":true,\"salesOrders\":true,\"returnedSalesBonds\":true,\"stocktakingBonds\":true,\"salesPriceOffers\":true,\"costDecreaseBonds\":true,\"costIncreaseBonds\":true}'),(13,'daily_ceiling_for_exchange_checks','0'),(14,'automatic_export_rental_contract_invoices','1'),(15,'monthly_distribute_rental_contract_invoices','0'),(16,'start_date','2024-01-01'),(17,'end_date','2025-12-31'),(18,'default_currency','1'),(19,'decimal_places','3'),(20,'active_accounts_for_cost_centers','[]'),(21,'normal_rental_invoices_posting_account','76'),(22,'services_rental_invoices_posting_account','76'),(23,'knowledge_rental_invoices_posting_account','76'),(24,'normal_rental_invoices_monthly_distribution_account','112'),(25,'services_rental_invoices_monthly_distribution_account','113'),(26,'knowledge_rental_invoices_monthly_distribution_account','112'),(27,'enable_manual_auditing_for_manufacturing','1'),(28,'enable_post_manufacturing_expenses_to_accounting','1'),(29,'debit_account_for_manufacturing_expenses_posting','5'),(30,'ar_purchase_order_conditions','[]'),(31,'en_purchase_order_conditions','[]'),(32,'allowed_purchase_invoice_date_before_days_count','20'),(33,'warehouses_bonds_autopost','{\"entryBonds\":false,\"outBonds\":false,\"convertBonds\":false,\"manufacturingBonds\":false,\"stocktakingBonds\":false,\"purchasesInvoices\":false,\"returnedPurchasesBonds\":false,\"salesInvoices\":false,\"returnedSalesBonds\":false}'),(34,'deletable_accounting_bonds','{\"entries\":true,\"receipts\":true,\"exchanges\":true,\"serviceInvoices\":true,\"debitNotes\":true,\"creditNotes\":true,\"returnedServiceBonds\":false}'),(35,'deletable_warehouses_bonds','{\"entryBonds\":false,\"outBonds\":false,\"convertBonds\":false,\"manufacturingBonds\":false,\"purchasesOrders\":false,\"purchasesCommands\":false,\"purchasesInvoices\":false,\"returnedPurchasesBonds\":false,\"salesInvoices\":false,\"salesOrders\":false,\"returnedSalesBonds\":false,\"stocktakingBonds\":false,\"salesPriceOffers\":false,\"costDecreaseBonds\":false,\"costIncreaseBonds\":false}'),(36,'print_options','{\"show_header\":true,\"show_footer\":true}'),(37,'initial_balances_account_in_rental_contracts','89'),(38,'finished_tour','1'),(39,'show_barcode_image_on_pos_scan','1'),(40,'allowing_sale_not_exist_items','0'),(41,'allowing_sale_not_exist_items_on_pos','0'),(42,'pos_taking_out_items_quantity_option','direct'),(43,'multiple_users_on_one_box','0'),(44,'allowing_edit_price_for_editable_price_items','0'),(45,'track_items_expire_date_on_pos','0'),(46,'items_prices_with_tax_in_pos','[]'),(47,'pos_custody_on_boxes',NULL),(48,'pos_order_number_start','1'),(49,'pos_order_number_end','100'),(50,'enable_auto_close_for_pos_days','0'),(51,'hours_count_to_wait_for_auto_close_pos_days',NULL),(52,'enable_to_close_pos_day_when_prev_day_is_not_closed','0'),(53,'pos_printers_settings','{\"logo_content\":null,\"lang\":\"ar\",\"header_1\":null,\"header_2\":null,\"footer_1\":null}'),(54,'pos_allowing_edit_quantity_for_items','1'),(55,'auto_generated_barcode_number_length','5'),(56,'is_item_price_required','0'),(57,'default-receipt.cash-account','5'),(58,'default-receipt.check.checksBox-account','9'),(59,'default-receipt.check.underCollection-account','22'),(60,'default-receipt.check.bank-account','7'),(61,'default-receipt.transfer-account','7'),(62,'default-receipt.ewallet-account','11'),(63,'default-exchange.cash-account','5'),(64,'default-exchange.check-account','67'),(65,'default-exchange.transfer-account','7'),(66,'default-exchange.ewallet-account','11'),(67,'default-serviceInvoice-account','112'),(68,'item_number_way',NULL),(69,'item_number_single_part',NULL),(70,'item_number_multi_parts','{\"country\":false,\"supplier\":false,\"category\":false,\"general_classification\":false}'),(71,'active_modules_for_cost_centers','[]'),(72,'selected_print_templates','{\"salesOffer\":null}'),(73,'warehouses_bonds_number_way','{\"EntryBond\":\"forever_sequence\",\"OutBond\":\"forever_sequence\",\"ConvertBond\":\"forever_sequence\",\"ManufacturingBond\":\"forever_sequence\",\"StocktakingBond\":\"forever_sequence\",\"PurchaseOrder\":\"forever_sequence\",\"PurchaseCommand\":\"forever_sequence\",\"PurchaseInvoice\":\"forever_sequence\",\"ReturnedPurchaseBond\":\"forever_sequence\",\"SalesOrder\":\"forever_sequence\",\"SalesInvoice\":\"forever_sequence\",\"ReturnedSalesBond\":\"forever_sequence\",\"SalesPriceOffer\":\"forever_sequence\"}'),(74,'accounting_bonds_number_way','{\"ReceiptEntry\":\"forever_sequence\",\"ExchangeEntry\":\"forever_sequence\",\"ServiceInvoice\":\"forever_sequence\",\"DebitNote\":\"forever_sequence\",\"CreditNote\":\"forever_sequence\",\"ReturnedServiceBond\":\"forever_sequence\"}'),(75,'ar_sales_order_conditions','[]'),(76,'en_sales_order_conditions','[]'),(77,'ar_sales_price_offers_conditions','[]'),(78,'en_sales_price_offers_conditions','[]'),(79,'pos_content_lang','english'),(80,'sales_show_entry_bond','0'),(81,'sales_show_out_bond','0'),(82,'sales_show_original_price','0'),(83,'allow_slip_discount_on_undiscountable_items','0'),(84,'allow_direct_costing_for_minus_batches','0'),(86,'allow_auto_manufacturing','0'),(87,'allow_duplicated_items_in_bonds','{\"entryBonds\":false,\"outBonds\":false,\"purchasesInvoices\":false,\"salesInvoices\":false}'),(88,'fotara_config','{\"is_enabled\":false,\"company_name\":\"\",\"income_seq_number\":\"\",\"client_id\":\"\",\"secret_key\":\"\"}'),(89,'enable_auto_close_cash_for_boxes','0'),(90,'hour_to_auto_close_cash_for_boxes','00:00'),(91,'pos_returend_period','0'),(92,'default-returnedServiceBond-account','178'),(93,'allowing_show_cost_in_find_item','0'),(94,'allowing_show_available_quantity_for_barcodes','0'),(95,'fotara_posting_type','per_day'),(96,'fotara_lock_at',NULL),(97,'scale_first_digits','21'),(98,'scale_barcode_type','weight'),(99,'enable_automatic_manufacturing_pos','0');

--
-- Table structure for table `shipment_bond_items`
--

CREATE TABLE `shipment_bond_items` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `shipment_bond_id` bigint unsigned NOT NULL,
  `sales_invoice_id` bigint unsigned NOT NULL,
  `delivered_status` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `shipment_bond_items_shipment_bond_id_foreign` (`shipment_bond_id`),
  KEY `shipment_bond_items_sales_invoice_id_foreign` (`sales_invoice_id`),
  CONSTRAINT `shipment_bond_items_sales_invoice_id_foreign` FOREIGN KEY (`sales_invoice_id`) REFERENCES `sales_invoices` (`id`),
  CONSTRAINT `shipment_bond_items_shipment_bond_id_foreign` FOREIGN KEY (`shipment_bond_id`) REFERENCES `shipment_bonds` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `shipment_bond_items`
--


--
-- Table structure for table `shipment_bonds`
--

CREATE TABLE `shipment_bonds` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `bond_number` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `employee_id` bigint unsigned DEFAULT NULL,
  `from_date` datetime NOT NULL,
  `to_date` datetime NOT NULL,
  `driver_id` bigint unsigned NOT NULL,
  `delivery_car_id` bigint unsigned NOT NULL,
  `post_status` tinyint(1) NOT NULL DEFAULT '0',
  `delivery_status` tinyint(1) NOT NULL DEFAULT '0',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `shipment_bonds_employee_id_foreign` (`employee_id`),
  KEY `shipment_bonds_driver_id_foreign` (`driver_id`),
  KEY `shipment_bonds_delivery_car_id_foreign` (`delivery_car_id`),
  CONSTRAINT `shipment_bonds_delivery_car_id_foreign` FOREIGN KEY (`delivery_car_id`) REFERENCES `delivery_cars` (`id`),
  CONSTRAINT `shipment_bonds_driver_id_foreign` FOREIGN KEY (`driver_id`) REFERENCES `drivers` (`id`),
  CONSTRAINT `shipment_bonds_employee_id_foreign` FOREIGN KEY (`employee_id`) REFERENCES `employees` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `shipment_bonds`
--


--
-- Table structure for table `shop_merges`
--

CREATE TABLE `shop_merges` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `shop_id` bigint unsigned NOT NULL,
  `merged_shop_id` bigint unsigned NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `shop_merges_shop_id_foreign` (`shop_id`),
  KEY `shop_merges_merged_shop_id_foreign` (`merged_shop_id`),
  CONSTRAINT `shop_merges_merged_shop_id_foreign` FOREIGN KEY (`merged_shop_id`) REFERENCES `shops` (`id`),
  CONSTRAINT `shop_merges_shop_id_foreign` FOREIGN KEY (`shop_id`) REFERENCES `shops` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `shop_merges`
--


--
-- Table structure for table `shops`
--

CREATE TABLE `shops` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `floor_id` bigint unsigned NOT NULL,
  `number` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `title` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `area` double(10,3) NOT NULL,
  `price` double(10,3) NOT NULL,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_rented` tinyint(1) NOT NULL DEFAULT '0',
  `notice` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `shops_floor_id_foreign` (`floor_id`),
  CONSTRAINT `shops_floor_id_foreign` FOREIGN KEY (`floor_id`) REFERENCES `floors` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `shops`
--


--
-- Table structure for table `signatures`
--

CREATE TABLE `signatures` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `bond_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `label` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `status` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `signatures`
--


--
-- Table structure for table `standard_purchase_invoice_expenses`
--

CREATE TABLE `standard_purchase_invoice_expenses` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `account_id` bigint unsigned NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `standard_purchase_invoice_expenses_account_id_foreign` (`account_id`),
  CONSTRAINT `standard_purchase_invoice_expenses_account_id_foreign` FOREIGN KEY (`account_id`) REFERENCES `accounts` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `standard_purchase_invoice_expenses`
--


--
-- Table structure for table `standard_sales_invoice_expenses`
--

CREATE TABLE `standard_sales_invoice_expenses` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `account_id` bigint unsigned NOT NULL,
  PRIMARY KEY (`id`),
  KEY `standard_sales_invoice_expenses_account_id_foreign` (`account_id`),
  CONSTRAINT `standard_sales_invoice_expenses_account_id_foreign` FOREIGN KEY (`account_id`) REFERENCES `accounts` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `standard_sales_invoice_expenses`
--


--
-- Table structure for table `stocktaking_bond_items`
--

CREATE TABLE `stocktaking_bond_items` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `stocktaking_bond_id` bigint unsigned NOT NULL,
  `barcode_id` bigint unsigned NOT NULL,
  `expected_available_quantity` double NOT NULL DEFAULT '1',
  `real_available_quantity` double NOT NULL DEFAULT '1',
  `avg_cost` double DEFAULT NULL,
  `expire_date` date DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `stocktaking_bond_items_stocktaking_bond_id_foreign` (`stocktaking_bond_id`),
  KEY `stocktaking_bond_items_barcode_id_foreign` (`barcode_id`),
  CONSTRAINT `stocktaking_bond_items_barcode_id_foreign` FOREIGN KEY (`barcode_id`) REFERENCES `barcodes` (`id`),
  CONSTRAINT `stocktaking_bond_items_stocktaking_bond_id_foreign` FOREIGN KEY (`stocktaking_bond_id`) REFERENCES `stocktaking_bonds` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `stocktaking_bond_items`
--


--
-- Table structure for table `stocktaking_bonds`
--

CREATE TABLE `stocktaking_bonds` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `date` date NOT NULL,
  `employee_id` bigint unsigned DEFAULT NULL,
  `bond_number` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `branch_id` bigint unsigned NOT NULL,
  `filter_by` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `selected_categories_ids` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `selected_suppliers_ids` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `selected_items_ids` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `selected_barcodes_ids` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `notice` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `post_status` tinyint(1) NOT NULL DEFAULT '0',
  `posted_at` datetime DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `stocktaking_bonds_branch_id_foreign` (`branch_id`),
  KEY `stocktaking_bonds_employee_id_foreign` (`employee_id`),
  CONSTRAINT `stocktaking_bonds_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`),
  CONSTRAINT `stocktaking_bonds_employee_id_foreign` FOREIGN KEY (`employee_id`) REFERENCES `employees` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `stocktaking_bonds`
--


--
-- Table structure for table `taxes`
--

CREATE TABLE `taxes` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `value` int NOT NULL,
  `account_id` bigint unsigned NOT NULL,
  `status` tinyint(1) NOT NULL DEFAULT '1',
  `is_default` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `taxes_account_id_foreign` (`account_id`),
  CONSTRAINT `taxes_account_id_foreign` FOREIGN KEY (`account_id`) REFERENCES `accounts` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `taxes`
--

INSERT INTO `taxes` VALUES (1,2,72,1,0),(2,4,72,1,0),(3,5,72,1,0),(4,10,72,1,0),(5,16,72,1,0),(6,0,72,1,0);

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

CREATE TABLE `units` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `is_decimal` tinyint(1) NOT NULL DEFAULT '0',
  `unit_id` bigint unsigned DEFAULT NULL,
  `unit_count` double DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `units_unit_id_foreign` (`unit_id`),
  CONSTRAINT `units_unit_id_foreign` FOREIGN KEY (`unit_id`) REFERENCES `units` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

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

INSERT INTO `units` VALUES (1,'PC',0,NULL,NULL),(2,'KG',1,NULL,NULL),(3,'Liter',1,NULL,NULL),(4,'Meter',1,NULL,NULL),(5,'CM',1,NULL,NULL);

--
-- Table structure for table `updated_shops`
--

CREATE TABLE `updated_shops` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `shop_id` bigint unsigned NOT NULL,
  `number` int NOT NULL,
  `title` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `area` double(10,3) NOT NULL,
  `price` double(10,3) NOT NULL,
  `active` tinyint(1) NOT NULL DEFAULT '1',
  `notice` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `updated_shops_shop_id_foreign` (`shop_id`),
  CONSTRAINT `updated_shops_shop_id_foreign` FOREIGN KEY (`shop_id`) REFERENCES `shops` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `updated_shops`
--


--
-- Table structure for table `warehouses_signatures`
--

CREATE TABLE `warehouses_signatures` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `bond_type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `label` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `status` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `warehouses_signatures`
--


--
-- Table structure for table `withdrawal_bonds`
--

CREATE TABLE `withdrawal_bonds` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `branch_id` bigint unsigned NOT NULL,
  `user_id` bigint unsigned NOT NULL,
  `date` date NOT NULL,
  `type` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'cash' COMMENT 'cash/debit',
  `amount` double NOT NULL,
  `box_id` bigint unsigned NOT NULL,
  `client_id` bigint unsigned DEFAULT NULL,
  `note` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `withdrawal_bonds_branch_id_foreign` (`branch_id`),
  KEY `withdrawal_bonds_user_id_foreign` (`user_id`),
  KEY `withdrawal_bonds_box_id_foreign` (`box_id`),
  KEY `withdrawal_bonds_client_id_foreign` (`client_id`),
  CONSTRAINT `withdrawal_bonds_box_id_foreign` FOREIGN KEY (`box_id`) REFERENCES `boxes` (`id`),
  CONSTRAINT `withdrawal_bonds_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`),
  CONSTRAINT `withdrawal_bonds_client_id_foreign` FOREIGN KEY (`client_id`) REFERENCES `receivable_accounts` (`id`),
  CONSTRAINT `withdrawal_bonds_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `pos_users` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `withdrawal_bonds`
--


--
-- Table structure for table `year_account_balances`
--

CREATE TABLE `year_account_balances` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `year_id` bigint unsigned NOT NULL,
  `account_id` bigint unsigned NOT NULL,
  `initial_balance` double(13,3) NOT NULL DEFAULT '0.000',
  `debit_balance` double(13,3) NOT NULL DEFAULT '0.000',
  `credit_balance` double(13,3) NOT NULL DEFAULT '0.000',
  PRIMARY KEY (`id`),
  KEY `year_account_balances_year_id_foreign` (`year_id`),
  KEY `year_account_balances_account_id_foreign` (`account_id`),
  CONSTRAINT `year_account_balances_account_id_foreign` FOREIGN KEY (`account_id`) REFERENCES `accounts` (`id`),
  CONSTRAINT `year_account_balances_year_id_foreign` FOREIGN KEY (`year_id`) REFERENCES `fiscal_years` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=532 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `year_account_balances`
--

INSERT INTO `year_account_balances` VALUES (1,1,1,0.000,0.000,0.000),(2,1,2,0.000,0.000,0.000),(3,1,3,0.000,0.000,0.000),(4,1,4,0.000,0.000,0.000),(5,1,5,0.000,92000.000,90871.254),(6,1,6,0.000,0.000,0.000),(7,1,7,0.000,92000.000,30187.000),(8,1,8,0.000,0.000,0.000),(9,1,9,0.000,0.000,0.000),(10,1,10,0.000,0.000,0.000),(11,1,11,0.000,0.000,0.000),(12,1,12,0.000,0.000,0.000),(13,1,13,0.000,0.000,0.000),(14,1,14,0.000,0.000,0.000),(15,1,15,0.000,0.000,0.000),(16,1,16,0.000,0.000,0.000),(17,1,17,0.000,0.000,0.000),(18,1,18,0.000,0.000,0.000),(19,1,19,0.000,0.000,0.000),(20,1,20,0.000,0.000,0.000),(21,1,21,0.000,0.000,0.000),(22,1,22,0.000,0.000,0.000),(23,1,23,0.000,0.000,0.000),(24,1,24,0.000,0.000,0.000),(25,1,25,0.000,0.000,0.000),(26,1,26,0.000,0.000,0.000),(27,1,27,0.000,0.000,0.000),(28,1,28,0.000,0.000,0.000),(29,1,29,0.000,0.000,0.000),(30,1,30,0.000,0.000,0.000),(31,1,31,0.000,0.000,0.000),(32,1,32,0.000,0.000,0.000),(33,1,33,0.000,0.000,0.000),(34,1,34,0.000,0.000,0.000),(35,1,35,0.000,0.000,0.000),(36,1,36,0.000,0.000,0.000),(37,1,37,0.000,2340.000,0.000),(38,1,38,0.000,0.000,0.000),(39,1,39,0.000,6085.054,0.000),(40,1,40,0.000,0.000,0.000),(41,1,41,0.000,6440.000,0.000),(42,1,42,0.000,0.000,0.000),(43,1,43,0.000,17250.000,0.000),(44,1,44,0.000,0.000,0.000),(45,1,45,0.000,0.000,0.000),(46,1,46,0.000,0.000,0.000),(47,1,47,0.000,0.000,0.000),(48,1,48,0.000,0.000,0.000),(49,1,49,0.000,0.000,0.000),(50,1,50,0.000,0.000,0.000),(51,1,51,0.000,0.000,0.000),(52,1,52,0.000,0.000,0.000),(53,1,53,0.000,0.000,0.000),(54,1,54,0.000,0.000,0.000),(55,1,55,0.000,0.000,0.000),(56,1,56,0.000,0.000,0.000),(57,1,57,0.000,434932.054,434932.054),(58,1,58,0.000,0.000,0.000),(59,1,59,0.000,0.000,0.000),(60,1,60,0.000,0.000,0.000),(61,1,61,0.000,0.000,0.000),(62,1,62,0.000,0.000,0.000),(63,1,63,0.000,0.000,0.000),(64,1,64,0.000,0.000,0.000),(65,1,65,0.000,0.000,0.000),(66,1,66,0.000,0.000,0.000),(67,1,67,0.000,0.000,350000.000),(68,1,68,0.000,0.000,0.000),(69,1,69,0.000,0.000,0.000),(70,1,70,0.000,0.000,0.000),(71,1,71,0.000,0.000,0.000),(72,1,72,0.000,0.000,0.000),(73,1,73,0.000,0.000,0.000),(74,1,74,0.000,5106.000,5606.000),(75,1,75,0.000,0.000,0.000),(76,1,76,0.000,0.000,0.000),(77,1,77,0.000,0.000,0.000),(78,1,78,0.000,0.000,0.000),(79,1,79,0.000,0.000,0.000),(80,1,80,0.000,0.000,0.000),(81,1,81,0.000,0.000,0.000),(82,1,82,0.000,0.000,0.000),(83,1,83,0.000,0.000,0.000),(84,1,84,0.000,0.000,0.000),(85,1,85,0.000,0.000,20000.000),(86,1,86,0.000,0.000,0.000),(87,1,87,0.000,0.000,0.000),(88,1,88,0.000,0.000,0.000),(89,1,89,0.000,0.000,0.000),(90,1,90,0.000,0.000,0.000),(91,1,91,0.000,0.000,0.000),(92,1,92,0.000,0.000,0.000),(93,1,93,0.000,0.000,0.000),(94,1,94,0.000,0.000,0.000),(95,1,95,0.000,0.000,0.000),(96,1,96,0.000,0.000,0.000),(97,1,97,0.000,0.000,0.000),(98,1,98,0.000,0.000,0.000),(99,1,99,0.000,0.000,0.000),(100,1,100,0.000,0.000,0.000),(101,1,101,0.000,0.000,0.000),(102,1,102,0.000,0.000,0.000),(103,1,103,0.000,0.000,0.000),(104,1,104,0.000,0.000,0.000),(105,1,105,0.000,0.000,0.000),(106,1,106,0.000,0.000,0.000),(107,1,107,0.000,0.000,0.000),(108,1,108,0.000,0.000,0.000),(109,1,109,0.000,0.000,0.000),(110,1,110,0.000,0.000,0.000),(111,1,111,0.000,0.000,0.000),(112,1,112,0.000,0.000,0.000),(113,1,113,0.000,0.000,0.000),(114,1,114,0.000,0.000,0.000),(115,1,115,0.000,0.000,0.000),(116,1,116,0.000,0.000,0.000),(117,1,117,0.000,0.000,0.000),(118,1,118,0.000,0.000,0.000),(119,1,119,0.000,0.000,0.000),(120,1,120,0.000,0.000,0.000),(121,1,121,0.000,0.000,0.000),(122,1,122,0.000,0.000,0.000),(123,1,123,0.000,0.000,0.000),(124,1,124,0.000,0.000,0.000),(125,1,125,0.000,0.000,0.000),(126,1,126,0.000,0.000,0.000),(127,1,127,0.000,0.000,0.000),(128,1,128,0.000,0.000,0.000),(129,1,129,0.000,0.000,0.000),(130,1,130,0.000,8960.000,0.000),(131,1,131,0.000,1276.800,0.000),(132,1,132,0.000,0.000,0.000),(133,1,133,0.000,0.000,0.000),(134,1,134,0.000,0.000,0.000),(135,1,135,0.000,0.000,0.000),(136,1,136,0.000,0.000,0.000),(137,1,137,0.000,12.482,0.000),(138,1,138,0.000,0.000,0.000),(139,1,139,0.000,0.000,0.000),(140,1,140,0.000,0.000,0.000),(141,1,141,0.000,0.000,0.000),(142,1,142,0.000,0.000,0.000),(143,1,143,0.000,0.000,0.000),(144,1,144,0.000,0.000,0.000),(145,2,1,0.000,0.000,0.000),(146,2,2,0.000,0.000,0.000),(147,2,3,0.000,0.000,0.000),(148,2,4,0.000,0.000,0.000),(149,2,5,1128.746,177935.000,178345.598),(150,2,6,0.000,0.000,0.000),(151,2,7,61813.000,688126.000,726629.181),(152,2,8,0.000,0.000,0.000),(153,2,9,0.000,0.000,0.000),(154,2,10,0.000,0.000,0.000),(155,2,11,0.000,0.000,0.000),(156,2,12,0.000,0.000,0.000),(157,2,13,0.000,0.000,0.000),(158,2,14,0.000,0.000,0.000),(159,2,15,0.000,0.000,0.000),(160,2,16,0.000,19600.000,21500.000),(161,2,17,0.000,0.000,0.000),(162,2,18,0.000,0.000,0.000),(163,2,19,0.000,0.000,0.000),(164,2,20,0.000,0.000,0.000),(165,2,21,0.000,0.000,0.000),(166,2,22,0.000,0.000,0.000),(167,2,23,0.000,0.000,0.000),(168,2,24,0.000,0.000,0.000),(169,2,25,0.000,0.000,0.000),(170,2,26,0.000,0.000,0.000),(171,2,27,0.000,0.000,0.000),(172,2,28,0.000,0.000,0.000),(173,2,29,0.000,7000.000,3500.000),(174,2,30,0.000,0.000,0.000),(175,2,31,0.000,0.000,0.000),(176,2,32,0.000,0.000,0.000),(177,2,33,0.000,0.000,0.000),(178,2,34,0.000,0.000,0.000),(179,2,35,0.000,0.000,0.000),(180,2,36,0.000,0.000,0.000),(181,2,37,2340.000,0.000,0.000),(182,2,38,0.000,0.000,0.000),(183,2,39,6085.054,4358.055,0.000),(184,2,40,0.000,0.000,0.000),(185,2,41,6440.000,2433.000,0.000),(186,2,42,0.000,0.000,0.000),(187,2,43,17250.000,4320.800,0.000),(188,2,44,0.000,0.000,0.000),(189,2,45,0.000,0.000,0.000),(190,2,46,0.000,0.000,234.000),(191,2,47,0.000,0.000,0.000),(192,2,48,0.000,0.000,1044.300),(193,2,49,0.000,0.000,0.000),(194,2,50,0.000,0.000,887.300),(195,2,51,0.000,0.000,0.000),(196,2,52,0.000,0.000,2157.800),(197,2,53,0.000,0.000,0.000),(198,2,54,0.000,0.000,0.000),(199,2,55,0.000,0.000,0.000),(200,2,56,0.000,0.000,0.000),(201,2,57,0.000,378317.800,378317.800),(202,2,58,0.000,0.000,0.000),(203,2,59,0.000,0.000,0.000),(204,2,60,0.000,0.000,0.000),(205,2,61,0.000,0.000,0.000),(206,2,62,0.000,0.000,0.000),(207,2,63,0.000,0.000,0.000),(208,2,64,0.000,0.000,0.000),(209,2,65,0.000,0.000,0.000),(210,2,66,0.000,0.000,0.000),(211,2,67,-350000.000,565875.000,310250.000),(212,2,68,0.000,0.000,0.000),(213,2,69,0.000,0.000,0.000),(214,2,70,0.000,0.000,0.000),(215,2,71,0.000,0.000,0.000),(216,2,72,0.000,0.000,0.000),(217,2,73,0.000,0.000,0.000),(218,2,74,-500.000,89606.000,89606.000),(219,2,75,0.000,0.000,0.000),(220,2,76,0.000,0.000,0.000),(221,2,77,0.000,0.000,0.000),(222,2,78,0.000,0.000,0.000),(223,2,79,0.000,0.000,0.000),(224,2,80,0.000,0.000,0.000),(225,2,81,0.000,0.000,0.000),(226,2,82,0.000,0.000,0.000),(227,2,83,0.000,0.000,0.000),(228,2,84,0.000,0.000,0.000),(229,2,85,-20000.000,0.000,0.000),(230,2,86,0.000,0.000,0.000),(231,2,87,0.000,0.000,0.000),(232,2,88,0.000,0.000,0.000),(233,2,89,10834.282,-8953.129,0.000),(234,2,90,0.000,0.000,0.000),(235,2,91,0.000,0.000,0.000),(236,2,92,0.000,0.000,0.000),(237,2,93,0.000,0.000,0.000),(238,2,94,0.000,0.000,0.000),(239,2,95,0.000,0.000,0.000),(240,2,96,0.000,0.000,0.000),(241,2,97,0.000,0.000,0.000),(242,2,98,0.000,0.000,0.000),(243,2,99,0.000,0.000,0.000),(244,2,100,0.000,0.000,0.000),(245,2,101,0.000,0.000,0.000),(246,2,102,0.000,0.000,0.000),(247,2,103,0.000,0.000,0.000),(248,2,104,0.000,0.000,0.000),(249,2,105,0.000,0.000,0.000),(250,2,106,0.000,0.000,0.000),(251,2,107,0.000,0.000,0.000),(252,2,108,0.000,0.000,0.000),(253,2,109,0.000,0.000,0.000),(254,2,110,0.000,0.000,0.000),(255,2,111,0.000,0.000,0.000),(256,2,112,0.000,19900.000,19900.000),(257,2,113,0.000,24780.000,24780.000),(258,2,114,0.000,104455.000,104455.000),(259,2,115,0.000,0.000,0.000),(260,2,116,0.000,0.000,0.000),(261,2,117,0.000,0.000,0.000),(262,2,118,0.000,0.000,0.000),(263,2,119,0.000,0.000,0.000),(264,2,120,0.000,0.000,0.000),(265,2,121,0.000,0.000,0.000),(266,2,122,0.000,0.000,0.000),(267,2,123,0.000,0.000,0.000),(268,2,124,0.000,0.000,0.000),(269,2,125,0.000,0.000,0.000),(270,2,126,0.000,0.000,0.000),(271,2,127,0.000,0.000,0.000),(272,2,128,0.000,0.000,0.000),(273,2,129,0.000,0.000,0.000),(274,2,130,0.000,98100.035,89140.035),(275,2,131,0.000,9802.007,8525.207),(276,2,132,0.000,0.000,0.000),(277,2,133,0.000,1763.788,1763.788),(278,2,134,0.000,0.000,0.000),(279,2,135,0.000,6.000,6.000),(280,2,136,0.000,139.200,139.200),(281,2,137,0.000,52.600,40.118),(282,2,138,0.000,27.000,27.000),(283,2,139,0.000,1282.204,1282.204),(284,2,140,0.000,756.410,756.410),(285,2,141,0.000,0.000,0.000),(286,2,142,0.000,0.000,0.000),(287,2,143,0.000,0.000,0.000),(288,2,144,0.000,0.000,0.000),(291,1,146,0.000,0.000,0.000),(292,2,146,0.000,0.000,0.000),(293,1,147,0.000,0.000,0.000),(294,2,147,0.000,0.000,0.000),(295,1,148,0.000,0.000,0.000),(296,2,148,0.000,0.000,0.000),(297,1,149,0.000,20000.000,157000.000),(298,2,149,-137000.000,37627.010,632875.000),(299,1,150,0.000,0.000,0.000),(300,2,150,0.000,0.000,0.000),(301,1,151,0.000,400000.000,0.000),(302,2,151,400000.000,347000.000,0.000),(303,1,152,0.000,0.000,0.000),(304,2,152,0.000,0.000,0.000),(305,1,153,0.000,0.000,0.000),(306,2,153,0.000,0.000,0.000),(307,1,154,0.000,0.000,0.000),(308,2,154,0.000,0.000,0.000),(309,1,155,0.000,748.200,1956.282),(310,2,155,-1208.082,14835.253,14896.892),(311,1,156,0.000,2417.000,0.000),(312,2,156,2417.000,255.000,0.000),(313,1,157,0.000,400.000,0.000),(314,2,157,400.000,90.000,0.000),(315,1,158,0.000,500.000,0.000),(316,2,158,0.000,500.000,0.000),(317,1,159,0.000,0.000,0.000),(318,2,159,0.000,757.900,757.900),(319,1,160,0.000,0.000,0.000),(320,2,160,0.000,609.633,609.633),(321,1,161,0.000,0.000,0.000),(322,2,161,0.000,4418.750,4418.750),(323,1,162,0.000,0.000,0.000),(324,2,162,0.000,59.368,59.368),(325,1,163,0.000,85.000,0.000),(326,2,163,0.000,612.980,527.980),(327,1,164,0.000,0.000,0.000),(328,2,164,0.000,16253.000,16253.000),(329,1,165,0.000,0.000,0.000),(330,2,165,0.000,800.000,800.000),(331,1,166,0.000,0.000,0.000),(332,2,166,0.000,8925.000,8925.000),(335,1,168,0.000,0.000,0.000),(336,2,168,0.000,1133.952,1133.952),(337,1,169,0.000,0.000,0.000),(338,2,169,0.000,2648.296,2648.296),(339,1,170,0.000,0.000,0.000),(340,2,170,0.000,322.250,322.250),(341,1,171,0.000,0.000,0.000),(342,2,171,0.000,422.500,422.500),(343,1,172,0.000,0.000,0.000),(344,2,172,0.000,2000.000,4000.000),(345,1,173,0.000,0.000,0.000),(346,2,173,0.000,2000.000,2000.000),(347,1,174,0.000,0.000,0.000),(348,2,174,0.000,23300.000,0.000),(349,1,175,0.000,0.000,0.000),(350,2,175,0.000,4639.600,4639.600),(351,1,176,0.000,0.000,0.000),(352,2,176,0.000,0.000,316.200),(353,1,177,0.000,0.000,0.000),(354,2,177,0.000,0.000,0.000),(357,3,1,0.000,0.000,0.000),(358,3,2,0.000,0.000,0.000),(359,3,3,0.000,0.000,0.000),(360,3,4,0.000,0.000,0.000),(361,3,5,718.148,0.000,0.000),(362,3,6,0.000,0.000,0.000),(363,3,7,23309.819,0.000,0.000),(364,3,8,0.000,0.000,0.000),(365,3,9,0.000,0.000,0.000),(366,3,10,0.000,0.000,0.000),(367,3,11,0.000,0.000,0.000),(368,3,12,0.000,0.000,0.000),(369,3,13,0.000,0.000,0.000),(370,3,14,0.000,0.000,0.000),(371,3,15,0.000,0.000,0.000),(372,3,16,-1900.000,0.000,0.000),(373,3,17,0.000,0.000,0.000),(374,3,18,0.000,0.000,0.000),(375,3,19,0.000,0.000,0.000),(376,3,20,0.000,0.000,0.000),(377,3,21,0.000,0.000,0.000),(378,3,22,0.000,0.000,0.000),(379,3,23,0.000,0.000,0.000),(380,3,24,0.000,0.000,0.000),(381,3,25,0.000,0.000,0.000),(382,3,26,0.000,0.000,0.000),(383,3,27,0.000,0.000,0.000),(384,3,28,0.000,0.000,0.000),(385,3,29,3500.000,0.000,0.000),(386,3,30,0.000,0.000,0.000),(387,3,31,0.000,0.000,0.000),(388,3,32,0.000,0.000,0.000),(389,3,33,0.000,0.000,0.000),(390,3,34,0.000,0.000,0.000),(391,3,35,0.000,0.000,0.000),(392,3,36,0.000,0.000,0.000),(393,3,37,2340.000,0.000,0.000),(394,3,38,0.000,0.000,0.000),(395,3,39,10443.109,0.000,0.000),(396,3,40,0.000,0.000,0.000),(397,3,41,8873.000,0.000,0.000),(398,3,42,0.000,0.000,0.000),(399,3,43,21570.800,0.000,0.000),(400,3,44,0.000,0.000,0.000),(401,3,45,0.000,0.000,0.000),(402,3,46,-234.000,0.000,0.000),(403,3,47,0.000,0.000,0.000),(404,3,48,-1044.300,0.000,0.000),(405,3,49,0.000,0.000,0.000),(406,3,50,-887.300,0.000,0.000),(407,3,51,0.000,0.000,0.000),(408,3,52,-2157.800,0.000,0.000),(409,3,53,0.000,0.000,0.000),(410,3,54,0.000,0.000,0.000),(411,3,55,0.000,0.000,0.000),(412,3,56,0.000,0.000,0.000),(413,3,57,0.000,0.000,0.000),(414,3,58,0.000,0.000,0.000),(415,3,59,0.000,0.000,0.000),(416,3,60,0.000,0.000,0.000),(417,3,61,0.000,0.000,0.000),(418,3,62,0.000,0.000,0.000),(419,3,63,0.000,0.000,0.000),(420,3,64,0.000,0.000,0.000),(421,3,65,0.000,0.000,0.000),(422,3,66,0.000,0.000,0.000),(423,3,67,-94375.000,0.000,0.000),(424,3,68,0.000,0.000,0.000),(425,3,69,0.000,0.000,0.000),(426,3,70,0.000,0.000,0.000),(427,3,71,0.000,0.000,0.000),(428,3,72,0.000,0.000,0.000),(429,3,73,0.000,0.000,0.000),(430,3,74,-500.000,0.000,0.000),(431,3,75,0.000,0.000,0.000),(432,3,76,0.000,0.000,0.000),(433,3,77,0.000,0.000,0.000),(434,3,78,0.000,0.000,0.000),(435,3,79,0.000,0.000,0.000),(436,3,80,0.000,0.000,0.000),(437,3,81,0.000,0.000,0.000),(438,3,82,0.000,0.000,0.000),(439,3,83,0.000,0.000,0.000),(440,3,84,0.000,0.000,0.000),(441,3,85,-20000.000,0.000,0.000),(442,3,86,0.000,0.000,0.000),(443,3,87,0.000,0.000,0.000),(444,3,88,0.000,0.000,0.000),(445,3,89,12715.435,0.000,0.000),(446,3,90,0.000,0.000,0.000),(447,3,91,0.000,0.000,0.000),(448,3,92,0.000,0.000,0.000),(449,3,93,0.000,0.000,0.000),(450,3,94,0.000,0.000,0.000),(451,3,95,0.000,0.000,0.000),(452,3,96,0.000,0.000,0.000),(453,3,97,0.000,0.000,0.000),(454,3,98,0.000,0.000,0.000),(455,3,99,0.000,0.000,0.000),(456,3,100,0.000,0.000,0.000),(457,3,101,0.000,0.000,0.000),(458,3,102,0.000,0.000,0.000),(459,3,103,0.000,0.000,0.000),(460,3,104,0.000,0.000,0.000),(461,3,105,0.000,0.000,0.000),(462,3,106,0.000,0.000,0.000),(463,3,107,0.000,0.000,0.000),(464,3,108,0.000,0.000,0.000),(465,3,109,0.000,0.000,0.000),(466,3,110,0.000,0.000,0.000),(467,3,111,0.000,0.000,0.000),(468,3,112,0.000,0.000,0.000),(469,3,113,0.000,0.000,0.000),(470,3,114,0.000,0.000,0.000),(471,3,115,0.000,0.000,0.000),(472,3,116,0.000,0.000,0.000),(473,3,117,0.000,0.000,0.000),(474,3,118,0.000,0.000,0.000),(475,3,119,0.000,0.000,0.000),(476,3,120,0.000,0.000,0.000),(477,3,121,0.000,0.000,0.000),(478,3,122,0.000,0.000,0.000),(479,3,123,0.000,0.000,0.000),(480,3,124,0.000,0.000,0.000),(481,3,125,0.000,0.000,0.000),(482,3,126,0.000,0.000,0.000),(483,3,127,0.000,0.000,0.000),(484,3,128,0.000,0.000,0.000),(485,3,129,0.000,0.000,0.000),(486,3,130,0.000,0.000,0.000),(487,3,131,0.000,0.000,0.000),(488,3,132,0.000,0.000,0.000),(489,3,133,0.000,0.000,0.000),(490,3,134,0.000,0.000,0.000),(491,3,135,0.000,0.000,0.000),(492,3,136,0.000,0.000,0.000),(493,3,137,0.000,0.000,0.000),(494,3,138,0.000,0.000,0.000),(495,3,139,0.000,0.000,0.000),(496,3,140,0.000,0.000,0.000),(497,3,141,0.000,0.000,0.000),(498,3,142,0.000,0.000,0.000),(499,3,143,0.000,0.000,0.000),(500,3,144,0.000,0.000,0.000),(501,3,146,0.000,0.000,0.000),(502,3,147,0.000,0.000,0.000),(503,3,148,0.000,0.000,0.000),(504,3,149,-732247.990,0.000,0.000),(505,3,150,0.000,0.000,0.000),(506,3,151,747000.000,0.000,0.000),(507,3,152,0.000,0.000,0.000),(508,3,153,0.000,0.000,0.000),(509,3,154,0.000,0.000,0.000),(510,3,155,-1269.721,0.000,0.000),(511,3,156,2672.000,0.000,0.000),(512,3,157,490.000,0.000,0.000),(513,3,158,0.000,0.000,0.000),(514,3,159,0.000,0.000,0.000),(515,3,160,0.000,0.000,0.000),(516,3,161,0.000,0.000,0.000),(517,3,162,0.000,0.000,0.000),(518,3,163,0.000,0.000,0.000),(519,3,164,0.000,0.000,0.000),(520,3,165,0.000,0.000,0.000),(521,3,166,0.000,0.000,0.000),(522,3,168,0.000,0.000,0.000),(523,3,169,0.000,0.000,0.000),(524,3,170,0.000,0.000,0.000),(525,3,171,0.000,0.000,0.000),(526,3,172,-2000.000,0.000,0.000),(527,3,173,0.000,0.000,0.000),(528,3,174,23300.000,0.000,0.000),(529,3,175,0.000,0.000,0.000),(530,3,176,-316.200,0.000,0.000),(531,3,177,0.000,0.000,0.000);

--
-- Table structure for table `year_receivable_account_balances`
--

CREATE TABLE `year_receivable_account_balances` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `year_id` bigint unsigned NOT NULL,
  `account_id` bigint unsigned NOT NULL,
  `initial_balance` double(13,3) NOT NULL DEFAULT '0.000',
  `debit_balance` double(13,3) NOT NULL DEFAULT '0.000',
  `credit_balance` double(13,3) NOT NULL DEFAULT '0.000',
  PRIMARY KEY (`id`),
  KEY `year_receivable_account_balances_year_id_foreign` (`year_id`),
  KEY `year_receivable_account_balances_account_id_foreign` (`account_id`),
  CONSTRAINT `year_receivable_account_balances_account_id_foreign` FOREIGN KEY (`account_id`) REFERENCES `receivable_accounts` (`id`),
  CONSTRAINT `year_receivable_account_balances_year_id_foreign` FOREIGN KEY (`year_id`) REFERENCES `fiscal_years` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=49 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `year_receivable_account_balances`
--

INSERT INTO `year_receivable_account_balances` VALUES (1,1,1,0.000,400000.000,400000.000),(2,2,1,0.000,300000.000,300000.000),(3,1,2,0.000,775.054,775.054),(4,2,2,0.000,1400.000,1400.000),(5,1,3,0.000,20693.000,20693.000),(6,2,3,0.000,0.000,0.000),(7,1,4,0.000,13464.000,13464.000),(8,2,4,0.000,0.000,0.000),(9,1,5,0.000,0.000,0.000),(10,2,5,0.000,47000.000,47000.000),(11,1,6,0.000,0.000,0.000),(12,2,6,0.000,375.000,375.000),(13,1,7,0.000,0.000,0.000),(14,2,7,0.000,8925.000,8925.000),(15,1,8,0.000,0.000,0.000),(16,2,8,0.000,1298.800,1298.800),(17,1,9,0.000,0.000,0.000),(18,2,9,0.000,0.000,0.000),(19,1,10,0.000,0.000,0.000),(20,2,10,0.000,8219.000,8219.000),(21,1,11,0.000,0.000,0.000),(22,2,11,0.000,1350.000,1350.000),(23,1,12,0.000,0.000,0.000),(24,2,12,0.000,0.000,0.000),(25,1,13,0.000,0.000,0.000),(26,2,13,0.000,250.000,250.000),(27,1,14,0.000,0.000,0.000),(28,2,14,0.000,9500.000,9500.000),(29,1,15,0.000,0.000,0.000),(30,2,15,0.000,18100.000,20000.000),(31,1,16,0.000,0.000,0.000),(32,2,16,0.000,1500.000,1500.000),(33,3,1,0.000,0.000,0.000),(34,3,2,0.000,0.000,0.000),(35,3,3,0.000,0.000,0.000),(36,3,4,0.000,0.000,0.000),(37,3,5,0.000,0.000,0.000),(38,3,6,0.000,0.000,0.000),(39,3,7,0.000,0.000,0.000),(40,3,8,0.000,0.000,0.000),(41,3,9,0.000,0.000,0.000),(42,3,10,0.000,0.000,0.000),(43,3,11,0.000,0.000,0.000),(44,3,12,0.000,0.000,0.000),(45,3,13,0.000,0.000,0.000),(46,3,14,0.000,0.000,0.000),(47,3,15,-1900.000,0.000,0.000),(48,3,16,0.000,0.000,0.000);

--
-- Table structure for table `yearly_contract_amounts`
--

CREATE TABLE `yearly_contract_amounts` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `contract_id` bigint unsigned NOT NULL,
  `from_date` date NOT NULL,
  `to_date` date NOT NULL,
  `amount` double(13,3) NOT NULL,
  `has_knowledge_tax` tinyint(1) NOT NULL DEFAULT '0',
  `knowledge_tax_ratio` double DEFAULT NULL,
  `has_services_amount` tinyint(1) NOT NULL DEFAULT '0',
  `services_ratio` double DEFAULT NULL,
  `services_payment_way` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'yearly, monthly, quarter, daily, oneTime',
  `increment_ratio` double DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `yearly_contract_amounts_contract_id_foreign` (`contract_id`),
  CONSTRAINT `yearly_contract_amounts_contract_id_foreign` FOREIGN KEY (`contract_id`) REFERENCES `rental_contracts` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `yearly_contract_amounts`
--



