2024-07-23 14:48:37 +08:00
|
|
|
package model
|
|
|
|
|
|
|
|
type Snapshot struct {
|
|
|
|
BaseModel
|
2024-08-13 15:33:34 +08:00
|
|
|
Name string `json:"name" gorm:"not null;unique"`
|
|
|
|
Description string `json:"description"`
|
2024-08-14 10:15:55 +08:00
|
|
|
SourceAccountIDs string `json:"sourceAccountIDs"`
|
2024-08-13 15:33:34 +08:00
|
|
|
DownloadAccountID uint `json:"downloadAccountID"`
|
|
|
|
Status string `json:"status"`
|
|
|
|
Message string `json:"message"`
|
|
|
|
Version string `json:"version"`
|
2024-07-23 14:48:37 +08:00
|
|
|
|
2024-08-13 15:33:34 +08:00
|
|
|
InterruptStep string `json:"interruptStep"`
|
|
|
|
RecoverStatus string `json:"recoverStatus"`
|
|
|
|
RecoverMessage string `json:"recoverMessage"`
|
|
|
|
LastRecoveredAt string `json:"lastRecoveredAt"`
|
|
|
|
RollbackStatus string `json:"rollbackStatus"`
|
|
|
|
RollbackMessage string `json:"rollbackMessage"`
|
|
|
|
LastRollbackAt string `json:"lastRollbackAt"`
|
2024-07-23 14:48:37 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type SnapshotStatus struct {
|
|
|
|
BaseModel
|
2024-08-13 15:33:34 +08:00
|
|
|
SnapID uint `json:"snapID"`
|
|
|
|
Panel string `json:"panel" gorm:"default:Running"`
|
|
|
|
PanelInfo string `json:"panelInfo" gorm:"default:Running"`
|
|
|
|
DaemonJson string `json:"daemonJson" gorm:"default:Running"`
|
|
|
|
AppData string `json:"appData" gorm:"default:Running"`
|
|
|
|
PanelData string `json:"panelData" gorm:"default:Running"`
|
|
|
|
BackupData string `json:"backupData" gorm:"default:Running"`
|
2024-07-23 14:48:37 +08:00
|
|
|
|
2024-08-13 15:33:34 +08:00
|
|
|
Compress string `json:"compress" gorm:"default:Waiting"`
|
|
|
|
Size string `json:"size" `
|
|
|
|
Upload string `json:"upload" gorm:"default:Waiting"`
|
2024-07-23 14:48:37 +08:00
|
|
|
}
|