2022-09-16 10:53:45 +00:00
|
|
|
package model
|
|
|
|
|
|
|
|
type BackupAccount struct {
|
|
|
|
BaseModel
|
2022-09-19 11:42:06 +00:00
|
|
|
Type string `gorm:"type:varchar(64);unique;not null" json:"type"`
|
2022-09-16 10:53:45 +00:00
|
|
|
Bucket string `gorm:"type:varchar(256)" json:"bucket"`
|
2022-12-22 07:03:43 +00:00
|
|
|
AccessKey string `gorm:"type:varchar(256)" json:"accessKey"`
|
2022-09-16 10:53:45 +00:00
|
|
|
Credential string `gorm:"type:varchar(256)" json:"credential"`
|
|
|
|
Vars string `gorm:"type:longText" json:"vars"`
|
|
|
|
}
|
2022-10-27 15:09:39 +00:00
|
|
|
|
|
|
|
type BackupRecord struct {
|
|
|
|
BaseModel
|
|
|
|
Type string `gorm:"type:varchar(64);not null" json:"type"`
|
|
|
|
Name string `gorm:"type:varchar(64);not null" json:"name"`
|
|
|
|
DetailName string `gorm:"type:varchar(256)" json:"detailName"`
|
|
|
|
Source string `gorm:"type:varchar(256)" json:"source"`
|
2022-10-31 09:26:15 +00:00
|
|
|
BackupType string `gorm:"type:varchar(256)" json:"backupType"`
|
2022-10-27 15:09:39 +00:00
|
|
|
FileDir string `gorm:"type:varchar(256)" json:"fileDir"`
|
|
|
|
FileName string `gorm:"type:varchar(256)" json:"fileName"`
|
|
|
|
}
|