initial
This commit is contained in:
17
internal/database/model_delivery_result.go
Normal file
17
internal/database/model_delivery_result.go
Normal file
@@ -0,0 +1,17 @@
|
||||
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"`
|
||||
}
|
||||
Reference in New Issue
Block a user