mirror of
https://github.com/Awuqing/BackupX.git
synced 2026-05-11 09:59:56 +08:00
17 lines
462 B
Go
17 lines
462 B
Go
package model
|
|
|
|
import "time"
|
|
|
|
type SystemConfig struct {
|
|
ID uint `gorm:"primaryKey" json:"id"`
|
|
Key string `gorm:"size:128;uniqueIndex;not null" json:"key"`
|
|
Value string `gorm:"type:text;not null" json:"value"`
|
|
Encrypted bool `gorm:"not null;default:false" json:"encrypted"`
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
UpdatedAt time.Time `json:"updatedAt"`
|
|
}
|
|
|
|
func (SystemConfig) TableName() string {
|
|
return "system_configs"
|
|
}
|