/*
 Navicat Premium Data Transfer

 Source Server         : First
 Source Server Type    : MySQL
 Source Server Version : 50719
 Source Host           : localhost:3306
 Source Schema         : xj_oj

 Target Server Type    : MySQL
 Target Server Version : 50719
 File Encoding         : 65001

 Date: 26/09/2024 15:02:11
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for article
-- ----------------------------
DROP TABLE IF EXISTS `article`;
CREATE TABLE `article`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  `author_id` int(11) NOT NULL COMMENT '作者id',
  `title` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '标题',
  `content` text CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '正文',
  `time` datetime NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '发布时间',
  `read_num` int(11) NULL DEFAULT 0 COMMENT '阅读量',
  `star_num` int(11) NULL DEFAULT 0 COMMENT '点赞量',
  `comment_num` int(11) NULL DEFAULT 0 COMMENT '点赞量',
  `problem_id` int(11) NULL DEFAULT NULL COMMENT '题目id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 7 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of article
-- ----------------------------
INSERT INTO `article` VALUES (3, 1, '发士大夫', '<p>的空间哇大王卡进度</p><p>端午安康的哇咔咔的开挖阿里</p>', '2024-09-23 13:45:45', 24, 0, 0, NULL);
INSERT INTO `article` VALUES (4, 1, '12321', '<p>sdfsddsfsdf</p><p><br></p><p>萨的课件撒卡卡十九大</p>', '2024-09-23 15:07:33', 37, 0, 0, NULL);
INSERT INTO `article` VALUES (6, 1, 'ddf', '<p>323</p>', '2024-09-24 09:11:49', 0, 0, 0, NULL);

-- ----------------------------
-- Table structure for code
-- ----------------------------
DROP TABLE IF EXISTS `code`;
CREATE TABLE `code`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '代码id',
  `user_id` int(11) NOT NULL,
  `problem_id` int(11) NOT NULL,
  `code_path` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `create_time` datetime NULL DEFAULT NULL,
  `language` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 83 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of code
-- ----------------------------
INSERT INTO `code` VALUES (1, 2, 1, '/data/code/python/1/6846894f08e54134b72263516716dcbf/', '2024-09-22 23:24:02', 'Python');
INSERT INTO `code` VALUES (2, 2, 1, '/data/code/python/1/4997b0458c9f48a384def2464706457b/', '2024-09-22 23:29:45', 'Python');
INSERT INTO `code` VALUES (3, 2, 1, '/data/code/python/1/be2fc9b7942d4a1fb5d8f8ed33b8b285/', '2024-09-22 23:30:13', 'Python');
INSERT INTO `code` VALUES (4, 2, 1, '/data/code/python/1/c021c6da11ae4ef4af3da575c29fa326/', '2024-09-22 23:31:41', 'Python');
INSERT INTO `code` VALUES (5, 2, 1, '/data/code/python/1/5fa0315aabc14988b351fe7143ed7cca/', '2024-09-22 23:31:49', 'Python');
INSERT INTO `code` VALUES (6, 2, 1, '/data/code/python/1/9bddb734b58b45eda860b0b40b875cef/', '2024-09-22 23:32:13', 'Python');
INSERT INTO `code` VALUES (7, 2, 1, '/data/code/python/1/ad5af76cdb104ad58fd2b8523c72c7fb/', '2024-09-22 23:32:27', 'Python');
INSERT INTO `code` VALUES (8, 2, 1, '/data/code/python/1/c55f7e320cc44f00a2838444ec180530/', '2024-09-22 23:32:53', 'Python');
INSERT INTO `code` VALUES (9, 2, 1, '/data/code/python/1/a873eeb8848444a692c5615f1996698d/', '2024-09-22 23:54:28', 'Python');
INSERT INTO `code` VALUES (10, 2, 1, '/data/code/python/1/805f268fc2254dddab6ab19922d995b4/', '2024-09-22 23:54:49', 'Python');
INSERT INTO `code` VALUES (11, 2, 1, '/data/code/c/1/2c7a24305e5b40c9b168e72b5c2ee658/', '2024-09-22 23:58:28', 'C');
INSERT INTO `code` VALUES (12, 2, 1, '/data/code/c/1/bc27cd965df04694ba1eb7d0b90511d1/', '2024-09-22 23:59:03', 'C');
INSERT INTO `code` VALUES (13, 2, 1, '/data/code/c/1/cfb802b130b34a09bcbef7c56daf7774/', '2024-09-22 23:59:21', 'C');
INSERT INTO `code` VALUES (14, 2, 1, '/data/code/c/1/944a87dd1c6a4460801eb897a0474bb9/', '2024-09-22 23:59:47', 'C');
INSERT INTO `code` VALUES (15, 2, 1, '/data/code/c/1/b38f2e9b9b57436c8e8cacb448520215/', '2024-09-23 00:00:05', 'C');
INSERT INTO `code` VALUES (16, 2, 1, '/data/code/python/1/3679a77fd5f447eda0798882820245db/', '2024-09-23 00:00:32', 'Python');
INSERT INTO `code` VALUES (17, 2, 1, '/data/code/python/1/4991c0371a0c4fb8b80e89bcd3363401/', '2024-09-23 00:02:37', 'Python');
INSERT INTO `code` VALUES (18, 2, 1, '/data/code/python/1/0f73bff190644ba88789e2698b332cac/', '2024-09-23 00:05:09', 'Python');
INSERT INTO `code` VALUES (19, 2, 1, '/data/code/python/1/21e39e56553743e2a7a3d8dd4a8502c0/', '2024-09-23 00:05:27', 'Python');
INSERT INTO `code` VALUES (20, 2, 1, '/data/code/python/1/67bc48aa7d4b477184a58bc39c186d28/', '2024-09-23 00:05:33', 'Python');
INSERT INTO `code` VALUES (21, 2, 1, '/data/code/python/1/e34d3de8dcd243d6b0347b37313547e8/', '2024-09-23 00:09:05', 'Python');
INSERT INTO `code` VALUES (22, 2, 1, '/data/code/python/1/f797336382f2496e9a6ee8f3697add82/', '2024-09-23 09:38:59', 'Python');
INSERT INTO `code` VALUES (23, 2, 1, '/data/code/js/1/b52df315c26f4212aaa5c97786ef0629/', '2024-09-23 09:43:31', 'JavaScript');
INSERT INTO `code` VALUES (24, 2, 1, '/data/code/js/1/49b3a27a005041b2937dd4020939c5bc/', '2024-09-23 09:47:11', 'JavaScript');
INSERT INTO `code` VALUES (25, 2, 1, '/data/code/js/1/bc8c45a0a7fa4265ac3511423644ee54/', '2024-09-23 09:48:40', 'JavaScript');
INSERT INTO `code` VALUES (26, 2, 1, '/data/code/js/1/cf078c519b624b599bb0109e44267737/', '2024-09-23 09:49:12', 'JavaScript');
INSERT INTO `code` VALUES (27, 2, 1, '/data/code/js/1/a81e1c43c384478f9536ebd07283b8d4/', '2024-09-23 09:52:21', 'JavaScript');
INSERT INTO `code` VALUES (28, 2, 1, '/data/code/js/1/2492b0414db2419a9087d283d16b122d/', '2024-09-23 09:53:55', 'JavaScript');
INSERT INTO `code` VALUES (29, 2, 1, '/data/code/js/1/0274954b55d947f283a323834720616d/', '2024-09-23 09:58:40', 'JavaScript');
INSERT INTO `code` VALUES (30, 2, 1, '/data/code/js/1/18cc36075aa14bdd897cb4cd3d9970e0/', '2024-09-23 10:00:18', 'JavaScript');
INSERT INTO `code` VALUES (31, 2, 1, '/data/code/js/1/ebae9513154f492b8980fd87601edde5/', '2024-09-23 10:00:28', 'JavaScript');
INSERT INTO `code` VALUES (32, 2, 1, '/data/code/js/1/0a2dcf50982f4f02a92e4724fe38e00e/', '2024-09-23 10:07:28', 'JavaScript');
INSERT INTO `code` VALUES (33, 2, 1, '/data/code/js/1/6e83dfa40d684393a38003a1db322184/', '2024-09-23 10:07:37', 'JavaScript');
INSERT INTO `code` VALUES (34, 2, 1, '/data/code/js/1/54019dcd7b414928b831ac25570b283b/', '2024-09-23 10:07:52', 'JavaScript');
INSERT INTO `code` VALUES (35, 2, 1, '/data/code/js/1/9922f1136a1d48f8a00ffdab835fbeb1/', '2024-09-23 10:10:28', 'JavaScript');
INSERT INTO `code` VALUES (36, 2, 1, '/data/code/js/1/3bc776bd768d4e84a52ae3067152b8eb/', '2024-09-23 10:11:10', 'JavaScript');
INSERT INTO `code` VALUES (37, 2, 1, '/data/code/js/1/26f3ec795dd1467ebfc223c3b0994ce6/', '2024-09-23 10:11:37', 'JavaScript');
INSERT INTO `code` VALUES (38, 2, 1, '/data/code/java/1/04e2e70b72594512890ae45fbb02e825/', '2024-09-23 10:12:28', 'Java');
INSERT INTO `code` VALUES (39, 2, 1, '/data/code/cpp/1/363456c9089b4520bc6602a443dffdb3/', '2024-09-23 10:46:05', 'C++');
INSERT INTO `code` VALUES (40, 2, 1, '/data/code/cpp/1/17fc422f5b51433bb490df2ad810f02c/', '2024-09-23 10:48:45', 'C++');
INSERT INTO `code` VALUES (41, 2, 1, '/data/code/cpp/1/69323f7fb434466b950c26ffd113468e/', '2024-09-23 10:52:40', 'C++');
INSERT INTO `code` VALUES (42, 2, 1, '/data/code/cpp/1/2ffbf38fb9854d7bae86ddca2651d39a/', '2024-09-23 10:53:49', 'C++');
INSERT INTO `code` VALUES (43, 2, 1, '/data/code/cpp/1/1d53dd6ce32f4460808d3f5fff0890e0/', '2024-09-23 10:57:19', 'C++');
INSERT INTO `code` VALUES (44, 2, 1, '/data/code/cpp/1/ee65e2e37eaf436d9149bf9940c93363/', '2024-09-23 10:58:47', 'C++');
INSERT INTO `code` VALUES (45, 2, 1, '/data/code/cpp/1/fe3300d6208c4539a22bc2e7db10d159/', '2024-09-23 11:02:18', 'C++');
INSERT INTO `code` VALUES (46, 2, 1, '/data/code/cpp/1/b7dd4610b3a847e194afd53df1c57481/', '2024-09-23 11:04:07', 'C++');
INSERT INTO `code` VALUES (47, 2, 1, '/data/code/c/1/82c430cce1a049de82e627ec2e8d5e0c/', '2024-09-23 11:06:21', 'C');
INSERT INTO `code` VALUES (48, 2, 1, '/data/code/c/1/a41951c4e7614b56aea22077bfca2377/', '2024-09-23 11:08:29', 'C');
INSERT INTO `code` VALUES (49, 2, 1, '/data/code/c/1/7d9a2f2d5a774b2d9150696e6d086861/', '2024-09-23 11:08:59', 'C');
INSERT INTO `code` VALUES (50, 2, 1, '/data/code/c/1/17b831bdf4924073b38b0face549386e/', '2024-09-23 11:10:18', 'C');
INSERT INTO `code` VALUES (51, 2, 1, '/data/code/c/1/e5657a89a93b4cd0ad27f25eb8c305ee/', '2024-09-23 11:10:56', 'C');
INSERT INTO `code` VALUES (52, 2, 1, '/data/code/c/1/300f5d7402574e7dbb01ca356981ab30/', '2024-09-23 11:12:32', 'C');
INSERT INTO `code` VALUES (53, 2, 1, '/data/code/cpp/1/9636c3cdeba549108f0c28ef36fa60ee/', '2024-09-23 11:14:32', 'C++');
INSERT INTO `code` VALUES (54, 2, 1, '/data/code/cpp/1/4def23201b734845a6eb0882943cd5e8/', '2024-09-23 11:15:43', 'C++');
INSERT INTO `code` VALUES (55, 2, 1, '/data/code/cpp/1/f9abeb87120241068d70362e827cabd9/', '2024-09-23 11:16:58', 'C++');
INSERT INTO `code` VALUES (56, 2, 1, '/data/code/c/1/c28da4bd83fe4e62b92283234a0de2cc/', '2024-09-23 11:17:33', 'C');
INSERT INTO `code` VALUES (57, 2, 1, '/data/code/js/1/81b26a06b0da4047a6d435d5830519f3/', '2024-09-23 11:18:24', 'JavaScript');
INSERT INTO `code` VALUES (58, 2, 1, '/data/code/js/1/f281008438cf4487a9263b287b5d50e9/', '2024-09-23 11:19:57', 'JavaScript');
INSERT INTO `code` VALUES (59, 2, 1, '/data/code/js/1/2b720ade02f942af98a8ffb3381298a4/', '2024-09-23 11:24:21', 'JavaScript');
INSERT INTO `code` VALUES (60, 2, 1, '/data/code/js/1/0756642799ab4f7aa57b4ddd0a8ff147/', '2024-09-23 11:24:38', 'JavaScript');
INSERT INTO `code` VALUES (61, 2, 1, '/data/code/js/1/492d7d35c7394fdf822ee44f2eaf4aa2/', '2024-09-23 11:27:44', 'JavaScript');
INSERT INTO `code` VALUES (62, 2, 1, '/data/code/js/1/8bc65ea17439428bbaf50d3bea309ce9/', '2024-09-23 11:28:00', 'JavaScript');
INSERT INTO `code` VALUES (63, 2, 1, '/data/code/js/1/c1b7a96ab6724fd8877a7f2732381155/', '2024-09-23 11:28:34', 'JavaScript');
INSERT INTO `code` VALUES (64, 2, 1, '/data/code/js/1/60d2ef68c67d44c8a2c161694f505b7f/', '2024-09-23 11:30:06', 'JavaScript');
INSERT INTO `code` VALUES (65, 2, 1, '/data/code/js/1/00c96761a4bc494baa0b64d670bf513d/', '2024-09-23 11:30:11', 'JavaScript');
INSERT INTO `code` VALUES (66, 2, 1, '/data/code/js/1/fd352bf127df4e17b67cd733fe2eec32/', '2024-09-23 11:30:21', 'JavaScript');
INSERT INTO `code` VALUES (67, 2, 1, '/data/code/js/1/d6bc070a4fc84e3da1bac62f93d8260e/', '2024-09-23 11:30:42', 'JavaScript');
INSERT INTO `code` VALUES (68, 1, 1, '/data/code/c/1/a4cd8aa7bc49474f9012956f6bac1c53/', '2024-09-23 13:06:15', 'C');
INSERT INTO `code` VALUES (69, 1, 1, '/data/code/golang/1/87525bcd2d004e52b9e3534c639b45cb/', '2024-09-23 13:29:29', 'Golang');
INSERT INTO `code` VALUES (70, 1, 1, '/data/code/python/1/e6ffb53ad8fd4b518ee1d2205227121a/', '2024-09-23 15:23:31', 'Python');
INSERT INTO `code` VALUES (71, 1, 1, '/data/code/python/1/e2ad56109cb8420a9f6dd0bb1bf33e77/', '2024-09-23 15:23:39', 'Python');
INSERT INTO `code` VALUES (72, 1, 1, '/data/code/python/1/0e192b79a315427591b0f756feb1b371/', '2024-09-24 09:00:32', 'Python');
INSERT INTO `code` VALUES (73, 1, 1, '/data/code/python/1/20239386ecc74a14a1bb0e429d95a549/', '2024-09-24 09:00:44', 'Python');
INSERT INTO `code` VALUES (74, 1, 1, '/data/code/python/1/6331830d9a124842b295254c20be8216/', '2024-09-25 15:59:35', 'Python');
INSERT INTO `code` VALUES (75, 1, 1, '/data/code/c/1/7ea95f3100be4a1caefae33049c22bb0/', '2024-09-25 16:00:25', 'C');
INSERT INTO `code` VALUES (76, 1, 1, '/data/code/c/1/a843efc5d79e4ca2abb0af7249b07dc9/', '2024-09-25 16:00:47', 'C');
INSERT INTO `code` VALUES (77, 1, 1, '/data/code/c/1/38a3b937f3864a32afbd3166bfbe80bf/', '2024-09-25 16:03:19', 'C');
INSERT INTO `code` VALUES (78, 1, 1, '/data/code/c/1/f4eb59a6c76741faad039f8c9532454a/', '2024-09-25 16:04:00', 'C');
INSERT INTO `code` VALUES (79, 1, 1, '/data/code/c/1/25d2c48d21f741c5a4af2ea75a1d759c/', '2024-09-25 16:04:06', 'C');
INSERT INTO `code` VALUES (80, 1, 1, '/data/code/cpp/1/087922f9db8a454298dad3a831c450a0/', '2024-09-25 16:04:41', 'C++');
INSERT INTO `code` VALUES (81, 1, 1, '/data/code/c/1/77f12b46b33e49458f5eab0c7a62fd13/', '2024-09-25 16:05:05', 'C');
INSERT INTO `code` VALUES (82, 1, 1, '/data/code/c/1/822ebfa25800453bab3e2d0acd27c081/', '2024-09-25 16:05:24', 'C');

-- ----------------------------
-- Table structure for contest
-- ----------------------------
DROP TABLE IF EXISTS `contest`;
CREATE TABLE `contest`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `start_time` datetime NULL DEFAULT NULL,
  `end_time` datetime NULL DEFAULT NULL,
  `num` int(11) NULL DEFAULT NULL,
  `status` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of contest
-- ----------------------------

-- ----------------------------
-- Table structure for contest_problem
-- ----------------------------
DROP TABLE IF EXISTS `contest_problem`;
CREATE TABLE `contest_problem`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `contest_id` int(11) NOT NULL,
  `problem_id` int(11) NOT NULL,
  `submit_num` int(11) NOT NULL DEFAULT 0 COMMENT '提交数',
  `solved_num` int(11) NOT NULL DEFAULT 0 COMMENT '通过数',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of contest_problem
-- ----------------------------

-- ----------------------------
-- Table structure for contest_user
-- ----------------------------
DROP TABLE IF EXISTS `contest_user`;
CREATE TABLE `contest_user`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `contest_id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `submit_num` int(11) NOT NULL DEFAULT 0,
  `solved_num` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of contest_user
-- ----------------------------

-- ----------------------------
-- Table structure for evaluation
-- ----------------------------
DROP TABLE IF EXISTS `evaluation`;
CREATE TABLE `evaluation`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `problem_id` int(11) NOT NULL,
  `create_time` datetime NOT NULL,
  `language` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `passed_test_case_num` int(11) NOT NULL DEFAULT 0,
  `all_test_case_num` int(11) NOT NULL DEFAULT 0,
  `error` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL,
  `is_passed` int(11) NOT NULL DEFAULT 0,
  `status` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 80 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of evaluation
-- ----------------------------
INSERT INTO `evaluation` VALUES (1, 2, 1, '2024-09-22 23:24:02', 'Python', 0, 2, '测试用例未通过', 0, 'Wrong Answer');
INSERT INTO `evaluation` VALUES (2, 2, 1, '2024-09-22 23:29:45', 'Python', 0, 2, '测试用例未通过', 0, 'Wrong Answer');
INSERT INTO `evaluation` VALUES (3, 2, 1, '2024-09-22 23:30:02', 'Python', 0, 2, '测试用例未通过', 0, 'Wrong Answer');
INSERT INTO `evaluation` VALUES (4, 2, 1, '2024-09-22 23:31:39', 'Python', 0, 2, '测试用例未通过', 0, 'Wrong Answer');
INSERT INTO `evaluation` VALUES (5, 2, 1, '2024-09-22 23:31:47', 'Python', 0, 2, '测试用例未通过', 0, 'Wrong Answer');
INSERT INTO `evaluation` VALUES (6, 2, 1, '2024-09-22 23:32:11', 'Python', 0, 2, '测试用例未通过', 0, 'Wrong Answer');
INSERT INTO `evaluation` VALUES (7, 2, 1, '2024-09-22 23:32:24', 'Python', 0, 2, '测试用例未通过', 0, 'Wrong Answer');
INSERT INTO `evaluation` VALUES (8, 2, 1, '2024-09-22 23:32:51', 'Python', 0, 2, '测试用例未通过', 0, 'Wrong Answer');
INSERT INTO `evaluation` VALUES (9, 2, 1, '2024-09-22 23:54:26', 'Python', 0, 2, '测试用例未通过', 0, 'Wrong Answer');
INSERT INTO `evaluation` VALUES (10, 2, 1, '2024-09-22 23:54:47', 'Python', 0, 2, '测试用例未通过', 0, 'Wrong Answer');
INSERT INTO `evaluation` VALUES (11, 2, 1, '2024-09-22 23:58:28', 'C', 0, 2, '测试用例未通过', 0, 'Wrong Answer');
INSERT INTO `evaluation` VALUES (12, 2, 1, '2024-09-22 23:59:03', 'C', 0, 2, '测试用例未通过', 0, 'Wrong Answer');
INSERT INTO `evaluation` VALUES (13, 2, 1, '2024-09-22 23:59:21', 'C', 0, 2, '测试用例未通过', 0, 'Wrong Answer');
INSERT INTO `evaluation` VALUES (14, 2, 1, '2024-09-22 23:59:47', 'C', 0, 2, '测试用例未通过', 0, 'Wrong Answer');
INSERT INTO `evaluation` VALUES (15, 2, 1, '2024-09-23 00:00:05', 'C', 0, 2, '测试用例未通过', 0, 'Wrong Answer');
INSERT INTO `evaluation` VALUES (16, 2, 1, '2024-09-23 00:00:27', 'Python', 0, 2, '测试用例未通过', 0, 'Wrong Answer');
INSERT INTO `evaluation` VALUES (17, 2, 1, '2024-09-23 00:02:37', 'Python', 0, 2, '测试用例未通过', 0, 'Wrong Answer');
INSERT INTO `evaluation` VALUES (18, 2, 1, '2024-09-23 00:09:05', 'Python', 2, 2, NULL, 1, 'Accepted');
INSERT INTO `evaluation` VALUES (19, 2, 1, '2024-09-23 09:38:59', 'Python', 2, 2, NULL, 1, 'Accepted');
INSERT INTO `evaluation` VALUES (20, 2, 1, '2024-09-23 09:43:31', 'JavaScript', 0, 2, '测试用例未通过', 0, 'Wrong Answer');
INSERT INTO `evaluation` VALUES (21, 2, 1, '2024-09-23 09:47:11', 'JavaScript', 0, 2, '测试用例未通过', 0, 'Wrong Answer');
INSERT INTO `evaluation` VALUES (22, 2, 1, '2024-09-23 09:48:40', 'JavaScript', 0, 2, '测试用例未通过', 0, 'Wrong Answer');
INSERT INTO `evaluation` VALUES (23, 2, 1, '2024-09-23 09:49:12', 'JavaScript', 0, 2, '测试用例未通过', 0, 'Wrong Answer');
INSERT INTO `evaluation` VALUES (24, 2, 1, '2024-09-23 09:52:21', 'JavaScript', 0, 2, '测试用例未通过', 0, 'Wrong Answer');
INSERT INTO `evaluation` VALUES (25, 2, 1, '2024-09-23 09:53:55', 'JavaScript', 0, 2, '测试用例未通过', 0, 'Wrong Answer');
INSERT INTO `evaluation` VALUES (26, 2, 1, '2024-09-23 09:58:40', 'JavaScript', 0, 2, '测试用例未通过', 0, 'Wrong Answer');
INSERT INTO `evaluation` VALUES (27, 2, 1, '2024-09-23 10:00:18', 'JavaScript', 0, 2, '测试用例未通过', 0, 'Wrong Answer');
INSERT INTO `evaluation` VALUES (28, 2, 1, '2024-09-23 10:00:28', 'JavaScript', 0, 2, '测试用例未通过', 0, 'Wrong Answer');
INSERT INTO `evaluation` VALUES (29, 2, 1, '2024-09-23 10:07:28', 'JavaScript', 0, 2, '测试用例未通过', 0, 'Wrong Answer');
INSERT INTO `evaluation` VALUES (30, 2, 1, '2024-09-23 10:07:37', 'JavaScript', 0, 2, '测试用例未通过', 0, 'Wrong Answer');
INSERT INTO `evaluation` VALUES (31, 2, 1, '2024-09-23 10:07:52', 'JavaScript', 0, 2, '测试用例未通过', 0, 'Wrong Answer');
INSERT INTO `evaluation` VALUES (32, 2, 1, '2024-09-23 10:11:10', 'JavaScript', 0, 2, '测试用例未通过', 0, 'Wrong Answer');
INSERT INTO `evaluation` VALUES (33, 2, 1, '2024-09-23 10:10:28', 'JavaScript', 0, 2, '测试用例未通过', 0, 'Wrong Answer');
INSERT INTO `evaluation` VALUES (34, 2, 1, '2024-09-23 10:11:37', 'JavaScript', 0, 2, '测试用例未通过', 0, 'Wrong Answer');
INSERT INTO `evaluation` VALUES (35, 2, 1, '2024-09-23 10:12:28', 'Java', 2, 2, NULL, 1, 'Accepted');
INSERT INTO `evaluation` VALUES (36, 2, 1, '2024-09-23 10:46:05', 'C++', 0, 2, '测试用例未通过', 0, 'Wrong Answer');
INSERT INTO `evaluation` VALUES (37, 2, 1, '2024-09-23 10:48:45', 'C++', 0, 2, '测试用例未通过', 0, 'Wrong Answer');
INSERT INTO `evaluation` VALUES (38, 2, 1, '2024-09-23 10:52:40', 'C++', 0, 2, '测试用例未通过', 0, 'Wrong Answer');
INSERT INTO `evaluation` VALUES (39, 2, 1, '2024-09-23 10:53:49', 'C++', 0, 2, '测试用例未通过', 0, 'Wrong Answer');
INSERT INTO `evaluation` VALUES (40, 2, 1, '2024-09-23 10:57:19', 'C++', 0, 2, '测试用例未通过', 0, 'Wrong Answer');
INSERT INTO `evaluation` VALUES (41, 2, 1, '2024-09-23 10:58:47', 'C++', 0, 2, '测试用例未通过', 0, 'Wrong Answer');
INSERT INTO `evaluation` VALUES (42, 2, 1, '2024-09-23 11:02:18', 'C++', 0, 2, '测试用例未通过', 0, 'Wrong Answer');
INSERT INTO `evaluation` VALUES (43, 2, 1, '2024-09-23 11:04:07', 'C++', 0, 2, '测试用例未通过', 0, 'Wrong Answer');
INSERT INTO `evaluation` VALUES (44, 2, 1, '2024-09-23 11:06:21', 'C', 0, 2, '测试用例未通过', 0, 'Wrong Answer');
INSERT INTO `evaluation` VALUES (45, 2, 1, '2024-09-23 11:08:29', 'C', 0, 2, '测试用例未通过', 0, 'Wrong Answer');
INSERT INTO `evaluation` VALUES (46, 2, 1, '2024-09-23 11:08:59', 'C', 0, 2, '测试用例未通过', 0, 'Wrong Answer');
INSERT INTO `evaluation` VALUES (47, 2, 1, '2024-09-23 11:10:18', 'C', 0, 2, '测试用例未通过', 0, 'Wrong Answer');
INSERT INTO `evaluation` VALUES (48, 2, 1, '2024-09-23 11:10:56', 'C', 0, 2, '测试用例未通过', 0, 'Wrong Answer');
INSERT INTO `evaluation` VALUES (49, 2, 1, '2024-09-23 11:12:32', 'C', 0, 2, '测试用例未通过', 0, 'Wrong Answer');
INSERT INTO `evaluation` VALUES (50, 2, 1, '2024-09-23 11:14:32', 'C++', 2, 2, NULL, 1, 'Accepted');
INSERT INTO `evaluation` VALUES (51, 2, 1, '2024-09-23 11:15:43', 'C++', 2, 2, NULL, 1, 'Accepted');
INSERT INTO `evaluation` VALUES (52, 2, 1, '2024-09-23 11:16:58', 'C++', 2, 2, NULL, 1, 'Accepted');
INSERT INTO `evaluation` VALUES (53, 2, 1, '2024-09-23 11:17:33', 'C', 2, 2, NULL, 1, 'Accepted');
INSERT INTO `evaluation` VALUES (54, 2, 1, '2024-09-23 11:18:24', 'JavaScript', 0, 2, '测试用例未通过', 0, 'Wrong Answer');
INSERT INTO `evaluation` VALUES (55, 2, 1, '2024-09-23 11:19:57', 'JavaScript', 0, 2, '测试用例未通过', 0, 'Wrong Answer');
INSERT INTO `evaluation` VALUES (56, 2, 1, '2024-09-23 11:24:21', 'JavaScript', 0, 2, '测试用例未通过', 0, 'Wrong Answer');
INSERT INTO `evaluation` VALUES (65, 1, 1, '2024-09-23 13:06:15', 'C', 2, 2, NULL, 1, 'Accepted');
INSERT INTO `evaluation` VALUES (66, 1, 1, '2024-09-23 13:29:29', 'Golang', 2, 2, NULL, 1, 'Accepted');
INSERT INTO `evaluation` VALUES (67, 1, 1, '2024-09-23 15:23:31', 'Python', 2, 2, NULL, 1, 'Accepted');
INSERT INTO `evaluation` VALUES (68, 1, 1, '2024-09-23 15:23:39', 'Python', 0, 2, '测试用例未通过', 0, 'Wrong Answer');
INSERT INTO `evaluation` VALUES (69, 1, 1, '2024-09-24 09:00:32', 'Python', 0, 2, '测试用例未通过', 0, 'Wrong Answer');
INSERT INTO `evaluation` VALUES (70, 1, 1, '2024-09-24 09:00:44', 'Python', 2, 2, NULL, 1, 'Accepted');
INSERT INTO `evaluation` VALUES (71, 1, 1, '2024-09-25 15:59:34', 'Python', 2, 2, NULL, 1, 'Accepted');
INSERT INTO `evaluation` VALUES (72, 1, 1, '2024-09-25 16:00:25', 'C', 0, 2, '测试用例未通过', 0, 'Wrong Answer');
INSERT INTO `evaluation` VALUES (73, 1, 1, '2024-09-25 16:00:47', 'C', 0, 2, '测试用例未通过', 0, 'Wrong Answer');
INSERT INTO `evaluation` VALUES (74, 1, 1, '2024-09-25 16:03:19', 'C', 0, 2, '测试用例未通过', 0, 'Wrong Answer');
INSERT INTO `evaluation` VALUES (75, 1, 1, '2024-09-25 16:04:00', 'C', 0, 2, '测试用例未通过', 0, 'Wrong Answer');
INSERT INTO `evaluation` VALUES (76, 1, 1, '2024-09-25 16:04:06', 'C', 0, 2, '测试用例未通过', 0, 'Wrong Answer');
INSERT INTO `evaluation` VALUES (77, 1, 1, '2024-09-25 16:04:41', 'C++', 2, 2, NULL, 1, 'Accepted');
INSERT INTO `evaluation` VALUES (78, 1, 1, '2024-09-25 16:05:05', 'C', 2, 2, NULL, 1, 'Accepted');
INSERT INTO `evaluation` VALUES (79, 1, 1, '2024-09-25 16:05:24', 'C', 0, 0, 'main.c: In function \'main\':\nmain.c:7:13: error: expected \';\' before \'}\' token\n    7 |     return 0\n      |             ^\n      |             ;\n    8 | }\n      | ~            \n', 0, 'Compile Error');

-- ----------------------------
-- Table structure for file
-- ----------------------------
DROP TABLE IF EXISTS `file`;
CREATE TABLE `file`  (
  `id` int(11) NOT NULL,
  `original_filename` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `new_filename` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `url` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `date` datetime NULL DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of file
-- ----------------------------

-- ----------------------------
-- Table structure for problem
-- ----------------------------
DROP TABLE IF EXISTS `problem`;
CREATE TABLE `problem`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '题目id',
  `title` text CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '题目标题',
  `description` text CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '题目描述',
  `input` text CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '输入',
  `output` text CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '输出',
  `hint` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '提示',
  `source` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '来源',
  `create_time` datetime NOT NULL COMMENT '创建时间',
  `time_limit` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '时间限制(ms)',
  `memory_limit` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '内存限制(kb)',
  `difficulty` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '难度',
  `user_id` bigint(20) NULL DEFAULT NULL COMMENT '上传用户',
  `submit_num` int(11) UNSIGNED ZEROFILL NOT NULL DEFAULT 00000000000 COMMENT '提交次数',
  `solved_num` int(11) UNSIGNED ZEROFILL NOT NULL DEFAULT 00000000000 COMMENT '解决次数',
  `describe_input` varchar(255) CHARACTER SET utf16le COLLATE utf16le_general_ci NULL DEFAULT NULL,
  `describe_output` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of problem
-- ----------------------------
INSERT INTO `problem` VALUES (1, 'top.weiyuexin.Test', '一个测试提交的题目 一个测试提交的题目 一个测试提交的题目 一个测试提交的题目 一个测试提交的题目 一个测试提交的题目 一个测试提交的题目 一个测试提交的题目 一个测试提交的题目 一个测试提交的题目', '1 1', '2', '无', '无', '2024-09-22 22:51:01', '1s', '512M', '简单', NULL, 00000000078, 00000000014, '输入两个数，a和b', '求a和b的和');
INSERT INTO `problem` VALUES (2, '1', '1', '1', '1', '1', '1', '2024-09-24 09:23:57', '1', '1', '简单', NULL, 00000000000, 00000000000, '1', '1');

-- ----------------------------
-- Table structure for solution
-- ----------------------------
DROP TABLE IF EXISTS `solution`;
CREATE TABLE `solution`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '编号',
  `user_id` bigint(20) NOT NULL COMMENT '用户id',
  `problem_id` bigint(20) NOT NULL COMMENT '题目id',
  `run_time` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '运行使用时间(ms)',
  `memory` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '运行内存',
  `language_id` int(11) NULL DEFAULT NULL COMMENT '语言id',
  `submit_time` datetime NULL DEFAULT NULL COMMENT '提交时间',
  `result` varchar(999) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '运行结果',
  `contest_id` int(11) NULL DEFAULT NULL COMMENT '所属竞赛id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of solution
-- ----------------------------

-- ----------------------------
-- Table structure for test_case
-- ----------------------------
DROP TABLE IF EXISTS `test_case`;
CREATE TABLE `test_case`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `problem_id` int(11) NOT NULL,
  `input` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `output` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of test_case
-- ----------------------------
INSERT INTO `test_case` VALUES (1, 1, '1 1', '2');
INSERT INTO `test_case` VALUES (2, 1, '2 2', '4');
INSERT INTO `test_case` VALUES (3, 2, '1', '1');

-- ----------------------------
-- Table structure for user
-- ----------------------------
DROP TABLE IF EXISTS `user`;
CREATE TABLE `user`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '用户编号',
  `username` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '用户名',
  `password` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '密码',
  `sex` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '性别',
  `introduction` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '个人简介',
  `photo` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '头像链接',
  `email` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '邮箱',
  `submit_num` bigint(20) NULL DEFAULT 0 COMMENT '提交次数',
  `solved_num` bigint(20) NULL DEFAULT 0 COMMENT '解决的题数',
  `register_time` datetime NULL DEFAULT NULL COMMENT '注册时间',
  `access_time` datetime NULL DEFAULT NULL COMMENT '最后登录时间',
  `ip` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '登录的ip地址',
  `school` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '学校',
  `language` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0' COMMENT '默认使用的语言',
  `is_admin` int(11) NULL DEFAULT 0,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of user
-- ----------------------------
INSERT INTO `user` VALUES (1, 'root', '77546f12af556d23c067f0606aa8b15e', '男', '1234123213', 'https://xj-oj-1329750222.cos.ap-chengdu.myqcloud.com/img/2024/9/24/20249245283f342-fd1c-4a39-9854-1d428983b8b2.png', '2948429338@gmail.com', 15, 7, NULL, '2024-09-25 15:59:09', NULL, '北京大学', 'Java', 1);
INSERT INTO `user` VALUES (2, '2948429338@qq.com', '1f8dd80424518a5fc11f1e1c120cbe95', '男', '你好，我是xxx', 'https://xj-oj-1329750222.cos.ap-chengdu.myqcloud.com/img/2024/9/23/202492305430c4b-a148-40ef-8dec-eac4da31c063.png', '8429338@qq.com', 63, 7, '2024-09-22 16:31:44', '2024-09-23 09:12:28', NULL, '西安建筑科技大学', 'Java', 0);
INSERT INTO `user` VALUES (3, '123456', 'e10adc3949ba59abbe56e057f20f883e', '女', '暂无介绍', 'https://xj-oj-1329750222.cos.ap-chengdu.myqcloud.com/img/2024/9/24/2024924ac574226-bdc9-43e9-a437-c9221be3f787.png', '2948429338@qq.com', 0, 0, '2024-09-24 12:54:08', '2024-09-24 12:55:23', NULL, NULL, '0', 0);

SET FOREIGN_KEY_CHECKS = 1;
