32 lines
848 B
TypeScript
32 lines
848 B
TypeScript
|
|
import { Entity, Column, PrimaryGeneratedColumn } from 'typeorm';
|
||
|
|
|
||
|
|
@Entity('sys_backup_records')
|
||
|
|
export class SysBackupRecords {
|
||
|
|
@PrimaryGeneratedColumn({ type: 'int' })
|
||
|
|
id: number;
|
||
|
|
|
||
|
|
@Column({ name: 'version', type: 'varchar', length: 255, default: '' })
|
||
|
|
version: any;
|
||
|
|
|
||
|
|
@Column({ name: 'backup_key', type: 'varchar', length: 255, default: '' })
|
||
|
|
backupKey: any;
|
||
|
|
|
||
|
|
@Column({ name: 'content', type: 'text' })
|
||
|
|
content: any;
|
||
|
|
|
||
|
|
@Column({ name: 'status', type: 'varchar', length: 255, default: '' })
|
||
|
|
status: any;
|
||
|
|
|
||
|
|
@Column({ name: 'fail_reason', type: 'text' })
|
||
|
|
failReason: any;
|
||
|
|
|
||
|
|
@Column({ name: 'remark', type: 'varchar', length: 500, default: '' })
|
||
|
|
remark: any;
|
||
|
|
|
||
|
|
@Column({ name: 'create_time', type: 'int', default: 0 })
|
||
|
|
createTime: any;
|
||
|
|
|
||
|
|
@Column({ name: 'complete_time', type: 'int', default: 0 })
|
||
|
|
completeTime: any;
|
||
|
|
}
|