package models import "time" type Backend struct { ID int64 `gorm:"primaryKey" json:"id"` Name string `gorm:"column:name;uniqueIndex" json:"name"` Scheme string `gorm:"column:scheme" json:"scheme"` Address string `gorm:"column:address" json:"address"` Port int `gorm:"column:port" json:"port"` HealthCheckPath *string `gorm:"column:health_check_path" json:"health_check_path,omitempty"` Active bool `gorm:"column:active" json:"active"` CreatedAt time.Time `gorm:"column:created_at" json:"created_at"` UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at"` } func (Backend) TableName() string { return "backends" }