fix: use longbolob for big data

This commit is contained in:
fantasticit 2022-03-25 21:40:04 +08:00
parent 5b1f6b625d
commit b3fcbd5dca
1 changed files with 2 additions and 5 deletions

View File

@ -14,13 +14,10 @@ export class TemplateEntity {
@Column({ type: 'varchar', length: 200, comment: '标题' }) @Column({ type: 'varchar', length: 200, comment: '标题' })
public title: string; public title: string;
@Column({ type: 'text', comment: '内容' }) @Column({ type: 'longblob', comment: '文档内容' })
public content: string; public content: string;
@Column({ @Column({ type: 'longblob', comment: '文档内容' })
type: 'blob',
comment: '内容',
})
public state: Uint8Array; public state: Uint8Array;
@Column({ type: 'int', default: 0, comment: '使用量' }) @Column({ type: 'int', default: 0, comment: '使用量' })