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