-- --------------------------------------------------------
-- 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.list_promoter_task_data
DROP TABLE IF EXISTS `list_promoter_task_data`;
CREATE TABLE IF NOT EXISTS `list_promoter_task_data` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `list_promoter_task_id` bigint(20) unsigned NOT NULL,
  `promoter_task_list_product_id` bigint(20) unsigned NOT NULL,
  `t_qty` int(11) NOT NULL,
  `o_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,
  PRIMARY KEY (`id`),
  KEY `list_promoter_task_data_list_promoter_task_id_foreign` (`list_promoter_task_id`),
  KEY `list_promoter_task_data_promoter_task_list_product_id_foreign` (`promoter_task_list_product_id`),
  CONSTRAINT `list_promoter_task_data_list_promoter_task_id_foreign` FOREIGN KEY (`list_promoter_task_id`) REFERENCES `list_promoter_task` (`id`) ON DELETE CASCADE,
  CONSTRAINT `list_promoter_task_data_promoter_task_list_product_id_foreign` FOREIGN KEY (`promoter_task_list_product_id`) REFERENCES `promoter_task_list_products` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=26 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;

-- Dumping data for table hgagent.list_promoter_task_data: ~20 rows (approximately)
DELETE FROM `list_promoter_task_data`;
/*!40000 ALTER TABLE `list_promoter_task_data` DISABLE KEYS */;
INSERT INTO `list_promoter_task_data` (`id`, `list_promoter_task_id`, `promoter_task_list_product_id`, `t_qty`, `o_qty`, `remark`, `deleted_at`, `created_at`, `updated_at`) VALUES
	(1, 1, 1, 10, 0, NULL, NULL, '2022-04-11 08:26:06', '2022-04-11 08:33:03'),
	(3, 1, 2, 20, 0, NULL, NULL, '2022-04-11 08:26:06', '2022-04-11 08:33:03'),
	(5, 1, 3, 33, 0, NULL, NULL, '2022-04-11 08:26:06', '2022-04-11 08:33:03'),
	(7, 1, 4, 44, 0, NULL, NULL, '2022-04-11 08:26:06', '2022-04-11 08:33:03'),
	(9, 1, 5, 55, 0, NULL, NULL, '2022-04-11 08:26:07', '2022-04-11 08:33:03'),
	(11, 3, 1, 10, 0, NULL, NULL, '2022-04-11 08:34:04', '2022-04-11 09:23:02'),
	(12, 3, 2, 20, 0, NULL, NULL, '2022-04-11 08:34:04', '2022-04-11 09:23:02'),
	(13, 3, 3, 33, 0, NULL, NULL, '2022-04-11 08:34:04', '2022-04-11 09:23:02'),
	(14, 3, 4, 44, 0, NULL, NULL, '2022-04-11 08:34:04', '2022-04-11 09:23:02'),
	(15, 3, 5, 55, 0, NULL, NULL, '2022-04-11 08:34:04', '2022-04-11 09:23:02'),
	(16, 4, 6, 10, 0, NULL, NULL, '2022-04-12 01:43:05', '2022-04-12 01:43:05'),
	(17, 5, 6, 10, 0, NULL, NULL, '2022-04-12 01:43:05', '2022-04-12 01:43:05'),
	(18, 4, 7, 5, 0, NULL, NULL, '2022-04-12 01:43:05', '2022-04-12 01:43:05'),
	(19, 5, 7, 5, 0, NULL, NULL, '2022-04-12 01:43:05', '2022-04-12 01:43:05'),
	(20, 4, 8, 20, 0, NULL, NULL, '2022-04-12 01:43:05', '2022-04-12 01:43:05'),
	(21, 5, 8, 20, 0, NULL, NULL, '2022-04-12 01:43:05', '2022-04-12 01:43:05'),
	(22, 4, 9, 15, 0, NULL, NULL, '2022-04-12 01:43:05', '2022-04-12 01:43:05'),
	(23, 5, 9, 15, 0, NULL, NULL, '2022-04-12 01:43:05', '2022-04-12 01:43:05'),
	(24, 4, 10, 25, 0, NULL, NULL, '2022-04-12 01:43:05', '2022-04-12 01:43:05'),
	(25, 5, 10, 25, 0, NULL, NULL, '2022-04-12 01:43:05', '2022-04-12 01:43:05');
/*!40000 ALTER TABLE `list_promoter_task_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) */;