init
This commit is contained in:
21
sql/answerbook.sql
Normal file
21
sql/answerbook.sql
Normal file
@@ -0,0 +1,21 @@
|
||||
SET
|
||||
FOREIGN_KEY_CHECKS = 0;
|
||||
|
||||
CREATE DATABASE `answerbook` CHARACTER SET 'utf8mb4' COLLATE 'utf8mb4_german2_ci';
|
||||
|
||||
USE `answerbook`;
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for answer
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `answer`;
|
||||
|
||||
CREATE TABLE `answer` (
|
||||
`wy_id` int(11) DEFAULT NULL COMMENT '网易id',
|
||||
`text` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '问题答案',
|
||||
UNIQUE KEY `wy_id` (`wy_id`,`text`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;
|
||||
|
||||
SET
|
||||
FOREIGN_KEY_CHECKS = 1;
|
||||
|
Reference in New Issue
Block a user