-- --------------------------------------------------------
-- 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_entry_data
CREATE TABLE IF NOT EXISTS `adjustment_entry_data` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `in_qty` int(11) NOT NULL,
  `out_qty` int(11) 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,
  `ae_id` bigint(20) unsigned DEFAULT NULL,
  `product_id` bigint(20) unsigned DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `adjustment_entries_data_ae_id_foreign` (`ae_id`),
  KEY `adjustment_entries_data_product_id_foreign` (`product_id`),
  CONSTRAINT `adjustment_entries_data_ae_id_foreign` FOREIGN KEY (`ae_id`) REFERENCES `adjustment_entries` (`id`),
  CONSTRAINT `adjustment_entries_data_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;

-- Dumping data for table hgagent.adjustment_entry_data: ~4 rows (approximately)
DELETE FROM `adjustment_entry_data`;
/*!40000 ALTER TABLE `adjustment_entry_data` DISABLE KEYS */;
INSERT INTO `adjustment_entry_data` (`id`, `in_qty`, `out_qty`, `remark`, `deleted_at`, `created_at`, `updated_at`, `ae_id`, `product_id`) VALUES
	(1, 5, 4, NULL, '2022-05-18 16:39:45', '2022-05-18 15:20:14', '2022-05-18 16:39:45', 5, 2),
	(2, 3, 2, NULL, '2022-05-18 16:39:45', '2022-05-18 15:20:14', '2022-05-18 16:39:45', 5, 5),
	(3, 4, 7, 'asdsad', '2022-05-18 16:39:45', '2022-05-18 15:26:47', '2022-05-18 16:39:45', 6, 2),
	(4, 5, 7, 'asdsa', '2022-05-18 16:39:45', '2022-05-18 15:26:47', '2022-05-18 16:39:45', 6, 5);
/*!40000 ALTER TABLE `adjustment_entry_data` 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) */;
