package models import "time" type HANode struct { ID string `gorm:"column:id;primaryKey" json:"id"` Name string `gorm:"column:name" json:"name"` FQDN string `gorm:"column:fqdn;uniqueIndex" json:"fqdn"` APIURL string `gorm:"column:api_url" json:"api_url"` PublicIP *string `gorm:"column:public_ip;type:inet" json:"public_ip,omitempty"` InternalIP *string `gorm:"column:internal_ip;type:inet" json:"internal_ip,omitempty"` Role string `gorm:"column:role" json:"role"` LastSeen *time.Time `gorm:"column:last_seen" json:"last_seen,omitempty"` JoinedAt time.Time `gorm:"column:joined_at" json:"joined_at"` CreatedAt time.Time `gorm:"column:created_at" json:"created_at"` UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at"` } func (HANode) TableName() string { return "ha_nodes" }