package domain import "time" type Device struct { ID int `json:"id"` UserID int `json:"userId"` Name string `json:"name"` IPAddress string `json:"ipAddress"` UserAgent string `json:"userAgent"` ConfirmationToken string `json:"-"` ExpiresAt time.Time `json:"expiresAt"` CreatedAt time.Time `json:"createdAt"` } type Session struct { ID int `json:"id"` UserID int `json:"userId"` DeviceID int `json:"deviceId"` Device *Device `json:"device,omitempty"` StartedAt time.Time `json:"startedAt"` EndedAt time.Time `json:"endedAt,omitempty"` IsCurrent bool `json:"isCurrent,omitempty"` }