1
0
Code Issues Pull Requests Projects Releases Wiki Activity GitHub Gitee
answerbook/sql/answerbook.sql

22 lines
731 B
MySQL
Raw Normal View History

2022-09-24 20:55:17 +08:00
SET
FOREIGN_KEY_CHECKS = 0;
2022-09-25 01:36:01 +08:00
CREATE DATABASE `answerbook` CHARACTER SET 'utf8mb4' COLLATE 'utf8mb4_general_ci';
2022-09-24 20:55:17 +08:00
USE `answerbook`;
-- ----------------------------
-- Table structure for answer
-- ----------------------------
DROP TABLE IF EXISTS `answer`;
2022-09-24 21:49:09 +08:00
CREATE TABLE `answer` (
`id` int(11) NOT NULL AUTO_INCREMENT,
2022-09-25 01:25:34 +08:00
`chinese` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '中文',
`english` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '英文',
2022-09-24 21:49:09 +08:00
PRIMARY KEY (`id`),
2022-09-25 01:25:34 +08:00
UNIQUE KEY `text` (`chinese`,`english`)
2022-09-25 01:36:01 +08:00
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
2022-09-24 21:49:09 +08:00
2022-09-24 20:55:17 +08:00
SET
FOREIGN_KEY_CHECKS = 1;