<commit_before>/*!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 utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!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 */;

--
-- Table structure for table `acl_roles`
--

DROP TABLE IF EXISTS `acl_roles`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `acl_roles` (
  `role_id` int(2) unsigned NOT NULL AUTO_INCREMENT,
  `role_name` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `role_global` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`role_id`),
  UNIQUE KEY `role_name` (`role_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

INSERT INTO acl_roles VALUES (1,"GUEST",1);
INSERT INTO acl_roles VALUES (2,"USER",1);
INSERT INTO acl_roles VALUES (3,"MODERATOR",0);
INSERT INTO acl_roles VALUES (4,"ADMIN",0);

--
-- Table structure for table `analytics`
--

DROP TABLE IF EXISTS `analytics`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `analytics` (
  `analytics_id` int(11) NOT NULL AUTO_INCREMENT,
  `ib_id` tinyint(3) unsigned NOT NULL,
  `user_id` int(10) unsigned NOT NULL,
  `request_time` datetime NOT NULL,
  `request_ip` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `request_path` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `request_itemkey` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `request_itemvalue` int(10) unsigned NOT NULL DEFAULT '0',
  `request_cached` tinyint(1) unsigned DEFAULT NULL,
  `request_status` tinyint(3) unsigned NOT NULL,
  `request_latency` int(10) unsigned NOT NULL,
  PRIMARY KEY (`analytics_id`),
  KEY `analytics_ib_id` (`ib_id`),
  KEY `analytics_user_id` (`user_id`),
  KEY `analytics_popular` (`ib_id`,`request_itemkey`,`request_time`),
  KEY `analytics_ib_time` (`ib_id`,`request_time`),
  CONSTRAINT `analytics_ib_id` FOREIGN KEY (`ib_id`) REFERENCES `imageboards` (`ib_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `analytics_user_id` FOREIGN KEY (`user_id`) REFERENCES `users` (`user_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `audit`
--

DROP TABLE IF EXISTS `audit`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `audit` (
  `audit_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned NOT NULL,
  `ib_id` tinyint(3) unsigned NOT NULL,
  `audit_type` tinyint(3) unsigned NOT NULL DEFAULT '1',
  `audit_ip` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `audit_time` datetime NOT NULL,
  `audit_action` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `audit_info` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`audit_id`),
  KEY `audit_user_id_idx` (`user_id`),
  KEY `audit_ib_id_idx` (`ib_id`),
  CONSTRAINT `audit_ib_id` FOREIGN KEY (`ib_id`) REFERENCES `imageboards` (`ib_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `audit_user_id` FOREIGN KEY (`user_id`) REFERENCES `users` (`user_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=56104 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `banned_files`
--

DROP TABLE IF EXISTS `banned_files`;<commit_msg>update schema<commit_after>/*!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 utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!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 */;

--
-- Table structure for table `acl_roles`
--

DROP TABLE IF EXISTS `acl_roles`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `acl_roles` (
  `role_id` int(2) unsigned NOT NULL AUTO_INCREMENT,
  `role_name` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
  `role_global` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`role_id`),
  UNIQUE KEY `role_name` (`role_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

INSERT INTO acl_roles VALUES (1,"GUEST",1);
INSERT INTO acl_roles VALUES (2,"USER",1);
INSERT INTO acl_roles VALUES (3,"MODERATOR",0);
INSERT INTO acl_roles VALUES (4,"ADMIN",0);

--
-- Table structure for table `analytics`
--

DROP TABLE IF EXISTS `analytics`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `analytics` (
  `analytics_id` int(11) NOT NULL AUTO_INCREMENT,
  `ib_id` tinyint(3) unsigned NOT NULL,
  `user_id` int(10) unsigned NOT NULL,
  `request_time` datetime NOT NULL,
  `request_ip` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `request_path` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `request_itemkey` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `request_itemvalue` int(10) unsigned NOT NULL DEFAULT '0',
  `request_cached` tinyint(1) unsigned DEFAULT NULL,
  `request_status` tinyint(3) unsigned NOT NULL,
  `request_latency` int(10) unsigned NOT NULL,
  PRIMARY KEY (`analytics_id`),
  KEY `analytics_ib_id` (`ib_id`),
  KEY `analytics_user_id` (`user_id`),
  KEY `analytics_popular` (`ib_id`,`request_itemkey`,`request_time`),
  KEY `analytics_ib_time` (`ib_id`,`request_time`),
  CONSTRAINT `analytics_ib_id` FOREIGN KEY (`ib_id`) REFERENCES `imageboards` (`ib_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `analytics_user_id` FOREIGN KEY (`user_id`) REFERENCES `users` (`user_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `audit`
--

DROP TABLE IF EXISTS `audit`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `audit` (
  `audit_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` int(10) unsigned NOT NULL,
  `ib_id` tinyint(3) unsigned NOT NULL,
  `audit_type` tinyint(3) unsigned NOT NULL DEFAULT '1',
  `audit_ip` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `audit_time` datetime NOT NULL,
  `audit_action` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `audit_info` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`audit_id`),
  KEY `audit_user_id_idx` (`user_id`),
  KEY `audit_ib_id_idx` (`ib_id`),
  CONSTRAINT `audit_ib_id` FOREIGN KEY (`ib_id`) REFERENCES `imageboards` (`ib_id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `audit_user_id` FOREIGN KEY (`user_id`) REFERENCES `users` (`user_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `banned_files`
--

DROP TABLE IF EXISTS `banned_files`;
{'fraction_non_alphanumeric': 0.13146195859265844, 'fraction_numerical': 0.04356662009399213, 'mean_word_length': 5.974313551815766, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7261903', 'n_tokens_mistral': 3318, 'n_tokens_neox': 2989, 'n_words': 725}