From 7180b553b3ac252a3c5063e36e34b0fec501dc15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B4=9B=E6=B0=B4=E5=B1=85=E5=AE=A4?= Date: Mon, 13 Jun 2022 15:57:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20`tgpaimonbot.sql`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/sql/tgpaimonbot.sql | 34 ++++++++++++++++++++++++---------- 1 file changed, 24 insertions(+), 10 deletions(-) diff --git a/config/sql/tgpaimonbot.sql b/config/sql/tgpaimonbot.sql index ec649006..06ee1bab 100644 --- a/config/sql/tgpaimonbot.sql +++ b/config/sql/tgpaimonbot.sql @@ -10,7 +10,7 @@ CREATE TABLE `admin` ( `user_id` bigint(20) UNSIGNED NOT NULL, PRIMARY KEY (`id`) USING BTREE, UNIQUE INDEX `user_id`(`user_id`) USING BTREE -) ENGINE = InnoDB AUTO_INCREMENT = 20 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; +) ENGINE = InnoDB AUTO_INCREMENT = 19 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Table structure for answer @@ -24,13 +24,13 @@ CREATE TABLE `answer` ( PRIMARY KEY (`id`) USING BTREE, INDEX `question_id`(`question_id`) USING BTREE, CONSTRAINT `answer_ibfk_1` FOREIGN KEY (`question_id`) REFERENCES `question` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT -) ENGINE = InnoDB AUTO_INCREMENT = 355 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; +) ENGINE = InnoDB AUTO_INCREMENT = 360 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Table structure for chat -- ---------------------------- DROP TABLE IF EXISTS `chat`; -CREATE TABLE `char` ( +CREATE TABLE `chat` ( `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, `chat_id` bigint(20) UNSIGNED NOT NULL, `is_authorize` int(10) UNSIGNED NULL DEFAULT NULL, @@ -48,7 +48,7 @@ CREATE TABLE `hoyoverse_cookie` ( `cookie` varchar(2000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, PRIMARY KEY (`id`, `user_id`) USING BTREE, UNIQUE INDEX `user_id`(`user_id`) USING BTREE -) ENGINE = InnoDB AUTO_INCREMENT = 7 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; +) ENGINE = InnoDB AUTO_INCREMENT = 19 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Table structure for job @@ -56,9 +56,10 @@ CREATE TABLE `hoyoverse_cookie` ( DROP TABLE IF EXISTS `job`; CREATE TABLE `job` ( `id` int(11) NOT NULL, - `job` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, - `job_status` int(11) NULL DEFAULT NULL, - `last_time` datetime(0) NULL DEFAULT NULL, + `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `time` date NULL DEFAULT NULL, + `last_time` date NULL DEFAULT NULL, + `status` int(11) NULL DEFAULT NULL, PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; @@ -72,7 +73,7 @@ CREATE TABLE `mihoyo_cookie` ( `cookie` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, PRIMARY KEY (`id`, `user_id`) USING BTREE, UNIQUE INDEX `user_id`(`user_id`) USING BTREE -) ENGINE = InnoDB AUTO_INCREMENT = 12 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic; +) ENGINE = InnoDB AUTO_INCREMENT = 30 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Table structure for question @@ -82,7 +83,20 @@ CREATE TABLE `question` ( `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, `question` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, PRIMARY KEY (`id`) USING BTREE -) ENGINE = InnoDB AUTO_INCREMENT = 88 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Redundant; +) ENGINE = InnoDB AUTO_INCREMENT = 89 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Redundant; + +-- ---------------------------- +-- Table structure for sign +-- ---------------------------- +DROP TABLE IF EXISTS `sign`; +CREATE TABLE `sign` ( + `id` int(11) NOT NULL, + `user_id` int(11) NULL DEFAULT NULL, + `time` datetime(0) NULL DEFAULT NULL, + `last_time` datetime(0) NULL DEFAULT NULL, + `status` int(11) NULL DEFAULT NULL, + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Table structure for user @@ -96,7 +110,7 @@ CREATE TABLE `user` ( `service` int(11) NULL DEFAULT NULL, PRIMARY KEY (`id`, `user_id`) USING BTREE, UNIQUE INDEX `user_id`(`user_id`) USING BTREE -) ENGINE = InnoDB AUTO_INCREMENT = 19 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic; +) ENGINE = InnoDB AUTO_INCREMENT = 51 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- View structure for quiz