Files
SingBox-Gopanel/internal/model/setting.go
CN-JS-HuiBai 1ed31b9292
All checks were successful
build / build (api, amd64, linux) (push) Successful in -47s
build / build (api, arm64, linux) (push) Successful in -48s
build / build (api.exe, amd64, windows) (push) Successful in -47s
first commit
2026-04-17 09:49:16 +08:00

18 lines
541 B
Go

package model
import "time"
type Setting struct {
ID int `gorm:"primaryKey;column:id" json:"id"`
Group *string `gorm:"column:group" json:"group"`
Type *string `gorm:"column:type" json:"type"`
Name string `gorm:"column:name;index" json:"name"`
Value string `gorm:"column:value" json:"value"`
CreatedAt *time.Time `gorm:"column:created_at" json:"created_at"`
UpdatedAt *time.Time `gorm:"column:updated_at" json:"updated_at"`
}
func (Setting) TableName() string {
return "v2_settings"
}