add question category
This commit is contained in:
parent
d3e186f446
commit
b31bef7026
7
1742891265_create_question_category.up.sql
Normal file
7
1742891265_create_question_category.up.sql
Normal file
@ -0,0 +1,7 @@
|
||||
CREATE TABLE `ufutx_question_category` (
|
||||
`id` INT NOT NULL AUTO_INCREMENT ,
|
||||
`name` VARCHAR(100) NOT NULL COMMENT "名称",
|
||||
`created_at` TIMESTAMP NULL DEFAULT NULL ,
|
||||
`updated_at` TIMESTAMP NULL DEFAULT NULL ,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE = InnoDB COMMENT = '问题分类';
|
2
1742891508_table_question_add_category_id.up.sql
Normal file
2
1742891508_table_question_add_category_id.up.sql
Normal file
@ -0,0 +1,2 @@
|
||||
ALTER TABLE `ufutx_question`
|
||||
ADD COLUMN `category_id` INT default NULL COMMENT "分类id" after `id`
|
Loading…
Reference in New Issue
Block a user