Files
wehub-resource-sync 6d978fe483
Build / Frontend Build (push) Has been cancelled
Build / Backend Build (push) Has been cancelled
Build / Docker Build (push) Has been cancelled
Build / Kubernetes Deploy Smoke Test (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:35:24 +08:00

21 lines
800 B
Go

package models
import "time"
// SystemImageSetting stores admin-managed runtime image overrides for instance types.
type SystemImageSetting struct {
ID int `db:"id,primarykey,autoincrement" json:"id"`
InstanceType string `db:"instance_type" json:"instance_type"`
RuntimeType string `db:"runtime_type" json:"runtime_type"`
DisplayName string `db:"display_name" json:"display_name"`
Image string `db:"image" json:"image"`
IsEnabled bool `db:"is_enabled" json:"is_enabled"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
}
// TableName returns the table name for the SystemImageSetting model.
func (s SystemImageSetting) TableName() string {
return "system_image_settings"
}