add content

This commit is contained in:
liuyi 2025-05-19 16:33:14 +08:00
parent 06f187b742
commit 149623c073
2 changed files with 3 additions and 1 deletions

View File

@ -9,4 +9,6 @@ export const database = (): TypeOrmModuleOptions => ({
username: '3r',
password: '12345678',
database: '3r',
synchronize: true,
autoLoadEntities: true,
});

View File

@ -21,7 +21,7 @@ export class PostEntity extends BaseEntity {
@Column({ comment: '关键字', type: 'simple-array', nullable: true })
keywords?: [];
@Column({ comment: '文章类型', type: 'varchar', enum: PostBodyType })
@Column({ comment: '文章类型', type: 'enum', enum: PostBodyType })
type: PostBodyType;
@Column({ comment: '发布时间', type: 'varchar', nullable: true })