-- --------------------------------------------------------
-- Host:                         127.0.0.1
-- Server version:               8.0.29 - 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.stock_return_items
CREATE TABLE IF NOT EXISTS `stock_return_items` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `quantity` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `stock_return_id` bigint unsigned DEFAULT NULL,
  `sti_id` bigint unsigned DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `stock_return_items_stock_return_id_foreign` (`stock_return_id`),
  KEY `stock_return_items_sti_id_foreign` (`sti_id`),
  CONSTRAINT `stock_return_items_sti_id_foreign` FOREIGN KEY (`sti_id`) REFERENCES `stock_transfer_items` (`id`),
  CONSTRAINT `stock_return_items_stock_return_id_foreign` FOREIGN KEY (`stock_return_id`) REFERENCES `stock_returns` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;

-- Dumping data for table hgagent.stock_return_items: ~2 rows (approximately)
DELETE FROM `stock_return_items`;
/*!40000 ALTER TABLE `stock_return_items` DISABLE KEYS */;
INSERT INTO `stock_return_items` (`id`, `quantity`, `deleted_at`, `created_at`, `updated_at`, `stock_return_id`, `sti_id`) VALUES
	(1, '5', NULL, '2022-05-31 17:49:38', '2022-05-31 17:49:38', 1, 1),
	(2, '3', NULL, '2022-05-31 17:49:38', '2022-05-31 17:49:38', 1, 2),
	(3, '5', NULL, '2022-05-31 17:59:14', '2022-05-31 17:59:14', 2, 1),
	(4, '3', NULL, '2022-05-31 17:59:14', '2022-05-31 17:59:14', 2, 2),
	(5, '5', NULL, '2022-05-31 18:01:12', '2022-05-31 18:01:12', 3, 1),
	(6, '3', NULL, '2022-05-31 18:01:12', '2022-05-31 18:01:12', 3, 2);
/*!40000 ALTER TABLE `stock_return_items` 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) */;
