| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795 |
- -- MySQL dump 10.13 Distrib 5.7.44, for Linux (x86_64)
- --
- -- Host: localhost Database: app_uoj233
- -- ------------------------------------------------------
- -- Server version 5.7.44
- /*!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 */;
- --
- -- Current Database: `app_uoj233`
- --
- CREATE DATABASE /*!32312 IF NOT EXISTS*/ `app_uoj233` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci */;
- USE `app_uoj233`;
- --
- -- Table structure for table `best_ac_submissions`
- --
- DROP TABLE IF EXISTS `best_ac_submissions`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE `best_ac_submissions` (
- `problem_id` int(11) NOT NULL,
- `submitter` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL,
- `submission_id` int(11) NOT NULL,
- `used_time` int(11) NOT NULL,
- `used_memory` int(11) NOT NULL,
- `tot_size` int(11) NOT NULL,
- `shortest_id` int(11) NOT NULL,
- `shortest_used_time` int(11) NOT NULL,
- `shortest_used_memory` int(11) NOT NULL,
- `shortest_tot_size` int(11) NOT NULL,
- PRIMARY KEY (`problem_id`,`submitter`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- --
- /*!40000 ALTER TABLE `best_ac_submissions` DISABLE KEYS */;
- /*!40000 ALTER TABLE `best_ac_submissions` ENABLE KEYS */;
- --
- -- Table structure for table `blogs`
- --
- DROP TABLE IF EXISTS `blogs`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE `blogs` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `title` text COLLATE utf8mb4_unicode_ci NOT NULL,
- `content` mediumtext COLLATE utf8mb4_unicode_ci NOT NULL,
- `post_time` datetime NOT NULL,
- `poster` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL,
- `content_md` mediumtext COLLATE utf8mb4_unicode_ci NOT NULL,
- `zan` int(11) NOT NULL,
- `is_hidden` tinyint(1) NOT NULL,
- `type` char(1) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'B',
- `is_draft` tinyint(1) NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `poster` (`poster`,`post_time`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- --
- /*!40000 ALTER TABLE `blogs` DISABLE KEYS */;
- /*!40000 ALTER TABLE `blogs` ENABLE KEYS */;
- --
- -- Table structure for table `blogs_comments`
- --
- DROP TABLE IF EXISTS `blogs_comments`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE `blogs_comments` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `blog_id` int(11) NOT NULL,
- `content` text COLLATE utf8mb4_unicode_ci NOT NULL,
- `post_time` datetime NOT NULL,
- `poster` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL,
- `zan` int(11) NOT NULL,
- `reply_id` int(11) NOT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- --
- /*!40000 ALTER TABLE `blogs_comments` DISABLE KEYS */;
- /*!40000 ALTER TABLE `blogs_comments` ENABLE KEYS */;
- --
- -- Table structure for table `blogs_tags`
- --
- DROP TABLE IF EXISTS `blogs_tags`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE `blogs_tags` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `blog_id` int(11) NOT NULL,
- `tag` varchar(30) NOT NULL,
- PRIMARY KEY (`id`),
- KEY `blog_id` (`blog_id`),
- KEY `tag` (`tag`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- --
- /*!40000 ALTER TABLE `blogs_tags` DISABLE KEYS */;
- /*!40000 ALTER TABLE `blogs_tags` ENABLE KEYS */;
- --
- -- Table structure for table `click_zans`
- --
- DROP TABLE IF EXISTS `click_zans`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE `click_zans` (
- `type` char(2) COLLATE utf8mb4_unicode_ci NOT NULL,
- `username` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL,
- `target_id` int(11) NOT NULL,
- `val` tinyint(4) NOT NULL DEFAULT '1',
- PRIMARY KEY (`type`,`target_id`,`username`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- --
- /*!40000 ALTER TABLE `click_zans` DISABLE KEYS */;
- /*!40000 ALTER TABLE `click_zans` ENABLE KEYS */;
- --
- -- Table structure for table `contests`
- --
- DROP TABLE IF EXISTS `contests`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE `contests` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `name` varchar(50) NOT NULL,
- `start_time` datetime NOT NULL,
- `last_min` int(11) NOT NULL,
- `player_num` int(11) NOT NULL,
- `status` varchar(50) NOT NULL,
- `extra_config` varchar(500) DEFAULT NULL,
- `zan` int(11) NOT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- --
- /*!40000 ALTER TABLE `contests` DISABLE KEYS */;
- /*!40000 ALTER TABLE `contests` ENABLE KEYS */;
- --
- -- Table structure for table `contests_asks`
- --
- DROP TABLE IF EXISTS `contests_asks`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE `contests_asks` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `contest_id` int(11) NOT NULL,
- `username` varchar(20) NOT NULL,
- `question` text NOT NULL,
- `answer` text NOT NULL,
- `post_time` datetime NOT NULL,
- `reply_time` datetime NOT NULL,
- `is_hidden` tinyint(1) DEFAULT '0',
- PRIMARY KEY (`id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- --
- /*!40000 ALTER TABLE `contests_asks` DISABLE KEYS */;
- /*!40000 ALTER TABLE `contests_asks` ENABLE KEYS */;
- --
- -- Table structure for table `contests_notice`
- --
- DROP TABLE IF EXISTS `contests_notice`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE `contests_notice` (
- `contest_id` int(11) NOT NULL,
- `title` varchar(30) NOT NULL,
- `content` varchar(500) NOT NULL,
- `time` datetime NOT NULL,
- KEY `contest_id` (`contest_id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- --
- /*!40000 ALTER TABLE `contests_notice` DISABLE KEYS */;
- /*!40000 ALTER TABLE `contests_notice` ENABLE KEYS */;
- --
- -- Table structure for table `contests_permissions`
- --
- DROP TABLE IF EXISTS `contests_permissions`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE `contests_permissions` (
- `username` varchar(20) NOT NULL,
- `contest_id` int(11) NOT NULL,
- PRIMARY KEY (`username`,`contest_id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- --
- /*!40000 ALTER TABLE `contests_permissions` DISABLE KEYS */;
- /*!40000 ALTER TABLE `contests_permissions` ENABLE KEYS */;
- --
- -- Table structure for table `contests_problems`
- --
- DROP TABLE IF EXISTS `contests_problems`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE `contests_problems` (
- `problem_id` int(11) NOT NULL,
- `contest_id` int(11) NOT NULL,
- PRIMARY KEY (`problem_id`,`contest_id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- --
- /*!40000 ALTER TABLE `contests_problems` DISABLE KEYS */;
- /*!40000 ALTER TABLE `contests_problems` ENABLE KEYS */;
- --
- -- Table structure for table `contests_registrants`
- --
- DROP TABLE IF EXISTS `contests_registrants`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE `contests_registrants` (
- `username` varchar(20) NOT NULL,
- `user_rating` int(11) NOT NULL,
- `contest_id` int(11) NOT NULL,
- `has_participated` tinyint(1) NOT NULL,
- `rank` int(11) NOT NULL,
- `user_rd` double DEFAULT NULL,
- `user_vol` double DEFAULT NULL,
- PRIMARY KEY (`contest_id`,`username`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- --
- /*!40000 ALTER TABLE `contests_registrants` DISABLE KEYS */;
- /*!40000 ALTER TABLE `contests_registrants` ENABLE KEYS */;
- --
- -- Table structure for table `contests_submissions`
- --
- DROP TABLE IF EXISTS `contests_submissions`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE `contests_submissions` (
- `contest_id` int(11) NOT NULL,
- `submitter` varchar(20) NOT NULL,
- `problem_id` int(11) NOT NULL,
- `submission_id` int(11) NOT NULL,
- `score` int(11) NOT NULL,
- `penalty` int(11) NOT NULL,
- PRIMARY KEY (`contest_id`,`submitter`,`problem_id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- --
- /*!40000 ALTER TABLE `contests_submissions` DISABLE KEYS */;
- /*!40000 ALTER TABLE `contests_submissions` ENABLE KEYS */;
- --
- -- Table structure for table `custom_test_submissions`
- --
- DROP TABLE IF EXISTS `custom_test_submissions`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE `custom_test_submissions` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `problem_id` int(10) unsigned NOT NULL,
- `submit_time` datetime NOT NULL,
- `submitter` varchar(20) NOT NULL,
- `content` text NOT NULL,
- `judge_time` datetime DEFAULT NULL,
- `result` blob NOT NULL,
- `status` varchar(20) NOT NULL,
- `status_details` varchar(100) NOT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- --
- /*!40000 ALTER TABLE `custom_test_submissions` DISABLE KEYS */;
- /*!40000 ALTER TABLE `custom_test_submissions` ENABLE KEYS */;
- --
- -- Table structure for table `datum_requests`
- --
- DROP TABLE IF EXISTS `datum_requests`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE `datum_requests` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `pid` int(10) unsigned NOT NULL,
- `request_time` datetime NOT NULL,
- `finish_time` datetime DEFAULT NULL,
- `std` mediumtext COLLATE utf8mb4_unicode_ci,
- `timelimit` int(11) DEFAULT NULL,
- `memlimit` int(11) DEFAULT NULL,
- `status` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL,
- `generator` mediumtext COLLATE utf8mb4_unicode_ci,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- --
- /*!40000 ALTER TABLE `datum_requests` DISABLE KEYS */;
- /*!40000 ALTER TABLE `datum_requests` ENABLE KEYS */;
- --
- -- Table structure for table `datum_streams`
- --
- DROP TABLE IF EXISTS `datum_streams`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE `datum_streams` (
- `id` int(11) NOT NULL,
- `stream` mediumtext COLLATE utf8mb4_unicode_ci,
- PRIMARY KEY (`id`),
- UNIQUE KEY `id` (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- --
- /*!40000 ALTER TABLE `datum_streams` DISABLE KEYS */;
- /*!40000 ALTER TABLE `datum_streams` ENABLE KEYS */;
- --
- -- Table structure for table `hacks`
- --
- DROP TABLE IF EXISTS `hacks`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE `hacks` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `problem_id` int(10) unsigned NOT NULL,
- `contest_id` int(10) unsigned DEFAULT NULL,
- `submission_id` int(10) unsigned NOT NULL,
- `hacker` varchar(20) NOT NULL,
- `owner` varchar(20) NOT NULL,
- `input` varchar(150) NOT NULL,
- `input_type` char(20) NOT NULL,
- `submit_time` datetime NOT NULL,
- `judge_time` datetime DEFAULT NULL,
- `success` tinyint(1) DEFAULT NULL,
- `details` blob NOT NULL,
- `is_hidden` tinyint(1) NOT NULL,
- PRIMARY KEY (`id`),
- KEY `submission_id` (`submission_id`),
- KEY `is_hidden` (`is_hidden`,`problem_id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- --
- /*!40000 ALTER TABLE `hacks` DISABLE KEYS */;
- /*!40000 ALTER TABLE `hacks` ENABLE KEYS */;
- --
- -- Table structure for table `important_blogs`
- --
- DROP TABLE IF EXISTS `important_blogs`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE `important_blogs` (
- `blog_id` int(11) NOT NULL,
- `level` int(11) NOT NULL,
- PRIMARY KEY (`blog_id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- --
- /*!40000 ALTER TABLE `important_blogs` DISABLE KEYS */;
- /*!40000 ALTER TABLE `important_blogs` ENABLE KEYS */;
- --
- -- Table structure for table `judger_info`
- --
- DROP TABLE IF EXISTS `judger_info`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE `judger_info` (
- `judger_name` varchar(50) NOT NULL,
- `password` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
- `ip` char(20) NOT NULL,
- PRIMARY KEY (`judger_name`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- --
- /*!40000 ALTER TABLE `judger_info` DISABLE KEYS */;
- /*!40000 ALTER TABLE `judger_info` ENABLE KEYS */;
- --
- -- Table structure for table `pastes`
- --
- DROP TABLE IF EXISTS `pastes`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE `pastes` (
- `index` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL,
- `creator` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
- `created_at` datetime DEFAULT NULL,
- `content` text COLLATE utf8mb4_unicode_ci,
- PRIMARY KEY (`index`),
- UNIQUE KEY `pastes_index_uindex` (`index`),
- KEY `pastes_created_at_index` (`created_at`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- --
- /*!40000 ALTER TABLE `pastes` DISABLE KEYS */;
- /*!40000 ALTER TABLE `pastes` ENABLE KEYS */;
- --
- -- Table structure for table `problems`
- --
- DROP TABLE IF EXISTS `problems`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE `problems` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `title` text NOT NULL,
- `is_hidden` tinyint(1) NOT NULL DEFAULT '0',
- `submission_requirement` text,
- `hackable` tinyint(1) NOT NULL DEFAULT '0',
- `extra_config` varchar(500) NOT NULL DEFAULT '{"view_content_type":"ALL","view_details_type":"ALL"}',
- `zan` int(11) NOT NULL,
- `ac_num` int(11) NOT NULL DEFAULT '0',
- `submit_num` int(11) NOT NULL DEFAULT '0',
- `ctrl` varchar(20) DEFAULT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- --
- /*!40000 ALTER TABLE `problems` DISABLE KEYS */;
- /*!40000 ALTER TABLE `problems` ENABLE KEYS */;
- --
- -- Table structure for table `problems_contents`
- --
- DROP TABLE IF EXISTS `problems_contents`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE `problems_contents` (
- `id` int(11) NOT NULL,
- `statement` mediumtext NOT NULL,
- `statement_md` mediumtext NOT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- --
- /*!40000 ALTER TABLE `problems_contents` DISABLE KEYS */;
- /*!40000 ALTER TABLE `problems_contents` ENABLE KEYS */;
- --
- -- Table structure for table `problems_permissions`
- --
- DROP TABLE IF EXISTS `problems_permissions`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE `problems_permissions` (
- `username` varchar(20) NOT NULL,
- `problem_id` int(11) NOT NULL,
- PRIMARY KEY (`username`,`problem_id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- --
- /*!40000 ALTER TABLE `problems_permissions` DISABLE KEYS */;
- /*!40000 ALTER TABLE `problems_permissions` ENABLE KEYS */;
- --
- -- Table structure for table `problems_tags`
- --
- DROP TABLE IF EXISTS `problems_tags`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE `problems_tags` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `problem_id` int(11) NOT NULL,
- `tag` varchar(30) NOT NULL,
- PRIMARY KEY (`id`),
- KEY `problem_id` (`problem_id`),
- KEY `tag` (`tag`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- --
- /*!40000 ALTER TABLE `problems_tags` DISABLE KEYS */;
- /*!40000 ALTER TABLE `problems_tags` ENABLE KEYS */;
- --
- -- Table structure for table `rp`
- --
- DROP TABLE IF EXISTS `rp`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE `rp` (
- `pid` varchar(16) COLLATE utf8mb4_unicode_ci NOT NULL,
- `title` text COLLATE utf8mb4_unicode_ci NOT NULL,
- `statement` text COLLATE utf8mb4_unicode_ci,
- PRIMARY KEY (`pid`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- --
- /*!40000 ALTER TABLE `rp` DISABLE KEYS */;
- /*!40000 ALTER TABLE `rp` ENABLE KEYS */;
- --
- -- Table structure for table `search_requests`
- --
- DROP TABLE IF EXISTS `search_requests`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE `search_requests` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `created_at` datetime NOT NULL,
- `remote_addr` varchar(50) NOT NULL,
- `type` enum('search','autocomplete') NOT NULL,
- `cache_id` int(11) NOT NULL,
- `q` varchar(100) NOT NULL,
- `content` text NOT NULL,
- `result` mediumtext NOT NULL,
- PRIMARY KEY (`id`),
- KEY `remote_addr` (`remote_addr`,`created_at`),
- KEY `created_at` (`created_at`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- --
- /*!40000 ALTER TABLE `search_requests` DISABLE KEYS */;
- /*!40000 ALTER TABLE `search_requests` ENABLE KEYS */;
- --
- -- Table structure for table `songs`
- --
- DROP TABLE IF EXISTS `songs`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE `songs` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `name` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
- `writer` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
- `album` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
- `cover` varchar(256) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
- `click` varchar(256) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
- `user` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- --
- /*!40000 ALTER TABLE `songs` DISABLE KEYS */;
- /*!40000 ALTER TABLE `songs` ENABLE KEYS */;
- --
- -- Table structure for table `submissions`
- --
- DROP TABLE IF EXISTS `submissions`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE `submissions` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `problem_id` int(10) unsigned NOT NULL,
- `contest_id` int(10) unsigned DEFAULT NULL,
- `submit_time` datetime NOT NULL,
- `submitter` varchar(20) NOT NULL,
- `content` text NOT NULL,
- `language` varchar(15) NOT NULL,
- `tot_size` int(11) NOT NULL,
- `judge_time` datetime DEFAULT NULL,
- `result` blob NOT NULL,
- `status` varchar(20) NOT NULL,
- `result_error` varchar(20) DEFAULT NULL,
- `score` int(11) DEFAULT NULL,
- `used_time` int(11) NOT NULL DEFAULT '0',
- `used_memory` int(11) NOT NULL DEFAULT '0',
- `is_hidden` tinyint(1) NOT NULL,
- `status_details` varchar(100) NOT NULL,
- PRIMARY KEY (`id`),
- KEY `is_hidden` (`is_hidden`,`problem_id`),
- KEY `submitter` (`submitter`,`submit_time`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- --
- /*!40000 ALTER TABLE `submissions` DISABLE KEYS */;
- /*!40000 ALTER TABLE `submissions` ENABLE KEYS */;
- --
- -- Table structure for table `user_info`
- --
- DROP TABLE IF EXISTS `user_info`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE `user_info` (
- `usergroup` char(1) NOT NULL DEFAULT 'U',
- `username` varchar(20) NOT NULL,
- `email` varchar(50) NOT NULL,
- `password` char(32) NOT NULL,
- `svn_password` char(10) NOT NULL,
- `rating` int(11) NOT NULL DEFAULT '1500',
- `qq` bigint(20) NOT NULL,
- `sex` char(1) NOT NULL DEFAULT 'U',
- `ac_num` int(11) NOT NULL,
- `register_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
- `remote_addr` varchar(50) NOT NULL,
- `http_x_forwarded_for` varchar(50) NOT NULL,
- `remember_token` char(60) NOT NULL,
- `motto` varchar(200) NOT NULL,
- `extgroups` varchar(128) DEFAULT NULL,
- `privs` text,
- `ctrls` varchar(128) DEFAULT NULL,
- `childgroup` varchar(20) DEFAULT NULL,
- `certs` varchar(64) DEFAULT NULL,
- `certslist` varchar(255) DEFAULT NULL,
- `aboutme_blogid` int(11) DEFAULT NULL,
- `luogu_clientid` char(60) DEFAULT NULL,
- `luogu_uid` int(11) DEFAULT NULL,
- `rating_rd` double DEFAULT NULL,
- `rating_vol` double DEFAULT NULL,
- `bgurl` text,
- PRIMARY KEY (`username`),
- KEY `rating` (`rating`,`username`),
- KEY `ac_num` (`ac_num`,`username`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- --
- /*!40000 ALTER TABLE `user_info` DISABLE KEYS */;
- /*!40000 ALTER TABLE `user_info` ENABLE KEYS */;
- --
- -- Table structure for table `user_msg`
- --
- DROP TABLE IF EXISTS `user_msg`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE `user_msg` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `sender` varchar(20) NOT NULL,
- `receiver` varchar(20) NOT NULL,
- `message` varchar(5000) NOT NULL,
- `send_time` datetime NOT NULL,
- `read_time` datetime DEFAULT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- --
- /*!40000 ALTER TABLE `user_msg` DISABLE KEYS */;
- /*!40000 ALTER TABLE `user_msg` ENABLE KEYS */;
- --
- -- Table structure for table `user_system_msg`
- --
- DROP TABLE IF EXISTS `user_system_msg`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE `user_system_msg` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `title` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
- `content` varchar(300) COLLATE utf8mb4_unicode_ci NOT NULL,
- `receiver` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL,
- `send_time` datetime NOT NULL,
- `read_time` datetime DEFAULT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- --
- /*!40000 ALTER TABLE `user_system_msg` DISABLE KEYS */;
- /*!40000 ALTER TABLE `user_system_msg` ENABLE KEYS */;
- /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
- /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
- /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
- /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
- /*!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 */;
- /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
- -- Dump completed on 2026-09-24 19:40:11
|