-- --------------------------------------------------------
-- 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
DROP TABLE IF EXISTS `list_promoter_task`;
CREATE TABLE IF NOT EXISTS `list_promoter_task` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `promoter_id` bigint(20) unsigned NOT NULL,
  `promoter_task_list_id` bigint(20) unsigned NOT NULL,
  `upload_pdf_path` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `active_status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '0:Inactive, 1:Active',
  `status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '0:Inactive, 1:Clocked In, 2:Clocked Out,3:Completed',
  `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_promoter_id_foreign` (`promoter_id`),
  KEY `list_promoter_task_promoter_task_list_id_foreign` (`promoter_task_list_id`),
  CONSTRAINT `list_promoter_task_promoter_id_foreign` FOREIGN KEY (`promoter_id`) REFERENCES `promoters` (`id`) ON DELETE CASCADE,
  CONSTRAINT `list_promoter_task_promoter_task_list_id_foreign` FOREIGN KEY (`promoter_task_list_id`) REFERENCES `promoter_task_lists` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;

-- Data exporting was unselected.
/*!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) */;
