-- --------------------------------------------------------
-- 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.delivery_order_items
CREATE TABLE IF NOT EXISTS `delivery_order_items` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `item_code` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `picking_qty` int(11) NOT NULL,
  `actual_picked_qty` int(11) NOT NULL,
  `status` tinyint(4) NOT NULL DEFAULT '1' COMMENT '0:Inactive, 1:Active',
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `do_id` bigint(20) unsigned DEFAULT NULL,
  `pl_data_id` bigint(20) unsigned DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `delivery_order_items_do_id_foreign` (`do_id`),
  KEY `delivery_order_items_pl_data_id_foreign` (`pl_data_id`),
  CONSTRAINT `delivery_order_items_do_id_foreign` FOREIGN KEY (`do_id`) REFERENCES `delivery_orders` (`id`),
  CONSTRAINT `delivery_order_items_pl_data_id_foreign` FOREIGN KEY (`pl_data_id`) REFERENCES `picking_list_data` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;

-- Dumping data for table hgagent.delivery_order_items: ~2 rows (approximately)
DELETE FROM `delivery_order_items`;
/*!40000 ALTER TABLE `delivery_order_items` DISABLE KEYS */;
INSERT INTO `delivery_order_items` (`id`, `item_code`, `description`, `picking_qty`, `actual_picked_qty`, `status`, `deleted_at`, `created_at`, `updated_at`, `do_id`, `pl_data_id`) VALUES
	(1, '67239', 'Happy Grains Original Mixed Grains - 1.2kg', 3, 3, 1, NULL, '2022-04-27 03:23:16', '2022-04-27 03:23:16', 1, 1),
	(2, '77623', 'Happy Grains Original Mixed Grains - 25gm x 40 sachets', 2, 2, 1, NULL, '2022-04-27 03:23:16', '2022-04-27 03:23:16', 1, 2);
/*!40000 ALTER TABLE `delivery_order_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) */;
