add content
This commit is contained in:
parent
06f187b742
commit
149623c073
@ -9,4 +9,6 @@ export const database = (): TypeOrmModuleOptions => ({
|
||||
username: '3r',
|
||||
password: '12345678',
|
||||
database: '3r',
|
||||
synchronize: true,
|
||||
autoLoadEntities: true,
|
||||
});
|
||||
|
@ -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 })
|
||||
|
Loading…
Reference in New Issue
Block a user