mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2024-11-11 18:05:59 +08:00
21 lines
854 B
Go
21 lines
854 B
Go
package model
|
|
|
|
type BackupAccount struct {
|
|
BaseModel
|
|
Type string `gorm:"type:varchar(64);unique;not null" json:"type"`
|
|
Bucket string `gorm:"type:varchar(256)" json:"bucket"`
|
|
AccessKey string `gorm:"type:varchar(256)" json:"accessKey"`
|
|
Credential string `gorm:"type:varchar(256)" json:"credential"`
|
|
Vars string `gorm:"type:longText" json:"vars"`
|
|
}
|
|
|
|
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"`
|
|
BackupType string `gorm:"type:varchar(256)" json:"backupType"`
|
|
FileDir string `gorm:"type:varchar(256)" json:"fileDir"`
|
|
FileName string `gorm:"type:varchar(256)" json:"fileName"`
|
|
}
|