package database // DeliveryResult represents the result of a delivery attempt type DeliveryResult struct { BaseModel DeliveryID string `gorm:"type:uuid;not null" json:"deliveryId"` AttemptNum int `gorm:"not null" json:"attemptNum"` Success bool `json:"success"` StatusCode int `json:"statusCode,omitempty"` ResponseBody string `gorm:"type:text" json:"responseBody,omitempty"` Error string `json:"error,omitempty"` Duration int64 `json:"durationMs"` // Duration in milliseconds // Relations Delivery Delivery `json:"delivery,omitzero"` }