/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!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 */;
DROP TABLE IF EXISTS `wplc_defender_quarantine`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `wplc_defender_quarantine` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `defender_scan_item_id` int(10) unsigned DEFAULT NULL,
  `file_hash` char(53) COLLATE utf8mb4_unicode_520_ci NOT NULL,
  `file_full_path` text COLLATE utf8mb4_unicode_520_ci NOT NULL,
  `file_original_name` tinytext COLLATE utf8mb4_unicode_520_ci NOT NULL,
  `file_extension` varchar(16) COLLATE utf8mb4_unicode_520_ci DEFAULT NULL,
  `file_mime_type` varchar(64) COLLATE utf8mb4_unicode_520_ci DEFAULT NULL,
  `file_rw_permission` smallint(5) unsigned DEFAULT NULL,
  `file_owner` varchar(255) COLLATE utf8mb4_unicode_520_ci DEFAULT NULL,
  `file_group` varchar(255) COLLATE utf8mb4_unicode_520_ci DEFAULT NULL,
  `file_version` varchar(32) COLLATE utf8mb4_unicode_520_ci DEFAULT NULL,
  `file_category` tinyint(3) unsigned DEFAULT '0',
  `file_modified_time` datetime NOT NULL,
  `source_slug` varchar(255) COLLATE utf8mb4_unicode_520_ci NOT NULL,
  `created_time` datetime NOT NULL,
  `created_by` bigint(20) unsigned DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `fk_defender_scan_item` (`defender_scan_item_id`),
  KEY `fk_created_by` (`created_by`),
  CONSTRAINT `fk_created_by` FOREIGN KEY (`created_by`) REFERENCES `wplc_users` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE,
  CONSTRAINT `fk_defender_scan_item` FOREIGN KEY (`defender_scan_item_id`) REFERENCES `wplc_defender_scan_item` (`id`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;
/*!40101 SET character_set_client = @saved_cs_client */;


/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

