gohorsejobs/backend/internal/models/login_audit.go
2025-12-22 16:37:05 -03:00

14 lines
502 B
Go

package models
import "time"
// LoginAudit captures authentication access history.
type LoginAudit struct {
ID int `json:"id" db:"id"`
UserID string `json:"userId" db:"user_id"`
Identifier string `json:"identifier" db:"identifier"`
Roles string `json:"roles" db:"roles"`
IPAddress *string `json:"ipAddress,omitempty" db:"ip_address"`
UserAgent *string `json:"userAgent,omitempty" db:"user_agent"`
CreatedAt time.Time `json:"createdAt" db:"created_at"`
}