Files
proxy-platform/internal/models/install.go
T

23 lines
719 B
Go

package models
import (
"time"
)
// InstallStatus 安装状态
type InstallStatus struct {
ID uint `gorm:"primaryKey" json:"id"`
Installed bool `gorm:"default:false" json:"installed"`
DbType string `gorm:"type:varchar(20);default:'sqlite'" json:"db_type"` // sqlite, postgres
RedisEnabled bool `gorm:"default:false" json:"redis_enabled"`
AdminUser string `gorm:"size:64" json:"admin_user"`
PlatformName string `gorm:"size:128;default:'代理管理平台'" json:"platform_name"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
// TableName 指定表名
func (InstallStatus) TableName() string {
return "install_status"
}