-- --------------------------------------------------------
-- Host:                         127.0.0.1
-- Server version:               5.7.33 - MySQL Community Server (GPL)
-- Server OS:                    Win64
-- HeidiSQL Version:             11.2.0.6213
-- --------------------------------------------------------

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET NAMES utf8 */;
/*!50503 SET NAMES utf8mb4 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;

-- Dumping structure for table hgagent.adjustment_entries
CREATE TABLE IF NOT EXISTS `adjustment_entries` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `ref_no` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `date` date NOT NULL,
  `remark` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `sat_id` bigint(20) unsigned DEFAULT NULL,
  `supplier_id` bigint(20) unsigned DEFAULT NULL,
  `warehouse_id` bigint(20) unsigned DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `adjustment_entries_sat_id_foreign` (`sat_id`),
  KEY `adjustment_entries_supplier_id_foreign` (`supplier_id`),
  KEY `adjustment_entries_warehouse_id_foreign` (`warehouse_id`),
  CONSTRAINT `adjustment_entries_sat_id_foreign` FOREIGN KEY (`sat_id`) REFERENCES `stock_adjustment_types` (`id`),
  CONSTRAINT `adjustment_entries_supplier_id_foreign` FOREIGN KEY (`supplier_id`) REFERENCES `suppliers` (`id`),
  CONSTRAINT `adjustment_entries_warehouse_id_foreign` FOREIGN KEY (`warehouse_id`) REFERENCES `warehouses` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;

-- Dumping data for table hgagent.adjustment_entries: ~6 rows (approximately)
DELETE FROM `adjustment_entries`;
/*!40000 ALTER TABLE `adjustment_entries` DISABLE KEYS */;
INSERT INTO `adjustment_entries` (`id`, `ref_no`, `date`, `remark`, `deleted_at`, `created_at`, `updated_at`, `sat_id`, `supplier_id`, `warehouse_id`) VALUES
	(1, '', '2022-05-18', NULL, '2022-05-18 16:39:45', '2022-05-18 15:13:03', '2022-05-18 16:39:45', 1, 1, 1),
	(2, '', '2022-05-18', NULL, '2022-05-18 16:39:45', '2022-05-18 15:17:01', '2022-05-18 16:39:45', 1, 1, 1),
	(3, '', '2022-05-18', NULL, '2022-05-18 16:39:45', '2022-05-18 15:18:51', '2022-05-18 16:39:45', 1, 1, 1),
	(4, '', '2022-05-18', NULL, '2022-05-18 16:39:45', '2022-05-18 15:19:53', '2022-05-18 16:39:45', 1, 1, 1),
	(5, '', '2022-05-18', NULL, '2022-05-18 16:39:45', '2022-05-18 15:20:14', '2022-05-18 16:39:45', 1, 1, 1),
	(6, 'AD2205-00006', '2022-05-18', NULL, '2022-05-18 16:39:45', '2022-05-18 15:26:47', '2022-05-18 16:39:45', 2, 1, 1);
/*!40000 ALTER TABLE `adjustment_entries` ENABLE KEYS */;

/*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */;
/*!40014 SET FOREIGN_KEY_CHECKS=IFNULL(@OLD_FOREIGN_KEY_CHECKS, 1) */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40111 SET SQL_NOTES=IFNULL(@OLD_SQL_NOTES, 1) */;
