diff --git a/1723449768_create_table_question.up.sql b/1723449768_create_table_question.up.sql new file mode 100644 index 0000000..3cad6ca --- /dev/null +++ b/1723449768_create_table_question.up.sql @@ -0,0 +1,10 @@ +CREATE TABLE `ufutx_question` +( + `id` int(11) unsigned NOT NULL AUTO_INCREMENT, + `title` varchar(255) DEFAULT NULL COMMENT '问题', + `content` text COMMENT '答案', + `created_at` timestamp NULL DEFAULT NULL, + `updated_at` timestamp NULL DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `title` (`title`(191)) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='问题解答表'; \ No newline at end of file