CREATE TABLE `team_shifts` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `team_id` bigint(20) unsigned NOT NULL,
  `shift_id` bigint(20) unsigned NOT NULL,
  `dates` date NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `team_shifts_team_id_foreign` (`team_id`),
  KEY `team_shifts_shift_id_foreign` (`shift_id`),
  CONSTRAINT `team_shifts_shift_id_foreign` FOREIGN KEY (`shift_id`) REFERENCES `shift_details` (`id`) ON DELETE CASCADE,
  CONSTRAINT `team_shifts_team_id_foreign` FOREIGN KEY (`team_id`) REFERENCES `teams` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=62 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci