package models import ( "time" "go.mongodb.org/mongo-driver/v2/bson" ) type Server struct { ID bson.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"` ServerID string `bson:"server_id" json:"server_id"` Hostname string `bson:"hostname" json:"hostname"` IPAddress string `bson:"ip_address" json:"ip_address"` OSInfo string `bson:"os_info" json:"os_info"` PreRegToken string `bson:"pre_reg_token,omitempty" json:"pre_reg_token,omitempty"` PreRegExpires *time.Time `bson:"pre_reg_expires,omitempty" json:"pre_reg_expires,omitempty"` AgentTokenHash string `bson:"agent_token_hash,omitempty" json:"-"` Status string `bson:"status" json:"status"` LastSeen *time.Time `bson:"last_seen,omitempty" json:"last_seen,omitempty"` CreatedAt time.Time `bson:"created_at" json:"created_at"` }