diff --git a/models/article.ts b/models/article.ts index 676b92d..18ba0c7 100644 --- a/models/article.ts +++ b/models/article.ts @@ -41,7 +41,7 @@ export default class Article extends Model { @TypeORM.Column({ nullable: true, type: "integer" }) comments_num: number; - @TypeORM.Column({ nullable: true, type: "boolean" }) + @TypeORM.Column({ default: true, type: "boolean" }) allow_comment: boolean; @TypeORM.Index()