-- phpMyAdmin SQL Dump
-- version 5.1.3
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Mar 22, 2022 at 01:05 PM
-- Server version: 5.7.33
-- PHP Version: 7.3.4

SET FOREIGN_KEY_CHECKS=0;
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;

--
-- Database: `hgagent`
--

-- --------------------------------------------------------

--
-- Table structure for table `list_promoter_task`
--

DROP TABLE IF EXISTS `list_promoter_task`;
CREATE TABLE `list_promoter_task` (
  `promoter_id` bigint(20) UNSIGNED NOT NULL,
  `promoter_task_list_id` bigint(20) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;

--
-- Indexes for dumped tables
--

--
-- Indexes for table `list_promoter_task`
--
ALTER TABLE `list_promoter_task`
  ADD KEY `list_promoter_task_promoter_id_foreign` (`promoter_id`),
  ADD KEY `list_promoter_task_promoter_task_list_id_foreign` (`promoter_task_list_id`);

--
-- Constraints for dumped tables
--

--
-- Constraints for table `list_promoter_task`
--
ALTER TABLE `list_promoter_task`
  ADD CONSTRAINT `list_promoter_task_promoter_id_foreign` FOREIGN KEY (`promoter_id`) REFERENCES `promoters` (`id`) ON DELETE CASCADE,
  ADD CONSTRAINT `list_promoter_task_promoter_task_list_id_foreign` FOREIGN KEY (`promoter_task_list_id`) REFERENCES `promoter_task_lists` (`id`) ON DELETE CASCADE;
SET FOREIGN_KEY_CHECKS=1;
COMMIT;

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
