2026-05-02 21:59:42 +00:00
|
|
|
import * as plugins from '../plugins.js';
|
|
|
|
|
import type { CloudlyBackupManager, IBackupRecordData } from './classes.backupmanager.js';
|
|
|
|
|
|
|
|
|
|
@plugins.smartdata.managed()
|
|
|
|
|
export class BackupRecord extends plugins.smartdata.SmartDataDbDoc<
|
|
|
|
|
BackupRecord,
|
|
|
|
|
IBackupRecordData,
|
|
|
|
|
CloudlyBackupManager
|
|
|
|
|
> {
|
|
|
|
|
@plugins.smartdata.unI()
|
|
|
|
|
public id!: string;
|
|
|
|
|
|
|
|
|
|
@plugins.smartdata.svDb()
|
|
|
|
|
public serviceId!: string;
|
|
|
|
|
|
|
|
|
|
@plugins.smartdata.svDb()
|
|
|
|
|
public serviceName?: string;
|
|
|
|
|
|
|
|
|
|
@plugins.smartdata.svDb()
|
|
|
|
|
public clusterId?: string;
|
|
|
|
|
|
|
|
|
|
@plugins.smartdata.svDb()
|
|
|
|
|
public status!: IBackupRecordData['status'];
|
|
|
|
|
|
|
|
|
|
@plugins.smartdata.svDb()
|
|
|
|
|
public trigger!: IBackupRecordData['trigger'];
|
|
|
|
|
|
|
|
|
|
@plugins.smartdata.svDb()
|
|
|
|
|
public snapshots!: IBackupRecordData['snapshots'];
|
|
|
|
|
|
2026-05-07 17:44:31 +00:00
|
|
|
@plugins.smartdata.svDb()
|
|
|
|
|
public replication?: IBackupRecordData['replication'];
|
|
|
|
|
|
2026-05-02 21:59:42 +00:00
|
|
|
@plugins.smartdata.svDb()
|
|
|
|
|
public createdAt!: number;
|
|
|
|
|
|
|
|
|
|
@plugins.smartdata.svDb()
|
|
|
|
|
public updatedAt!: number;
|
|
|
|
|
|
|
|
|
|
@plugins.smartdata.svDb()
|
|
|
|
|
public completedAt?: number;
|
|
|
|
|
|
|
|
|
|
@plugins.smartdata.svDb()
|
|
|
|
|
public requestedBy?: string;
|
|
|
|
|
|
|
|
|
|
@plugins.smartdata.svDb()
|
|
|
|
|
public errorText?: string;
|
|
|
|
|
|
|
|
|
|
@plugins.smartdata.svDb()
|
|
|
|
|
public restoreHistory?: IBackupRecordData['restoreHistory'];
|
|
|
|
|
|
|
|
|
|
@plugins.smartdata.svDb()
|
|
|
|
|
public tags?: Record<string, string>;
|
|
|
|
|
}
|