chore: update id order
This commit is contained in:
@@ -10,14 +10,16 @@ type LivreurPosition struct {
|
||||
}
|
||||
|
||||
type DeliveryIssue struct {
|
||||
ID int `json:"id"`
|
||||
CommandID int `json:"command_id"`
|
||||
IssueType string `json:"issue_type"`
|
||||
Description string `json:"description"`
|
||||
Status string `json:"status"` // "open", "in_progress", "resolved"
|
||||
ReportedBy string `json:"reported_by"`
|
||||
ResolvedBy string `json:"resolved_by,omitempty"`
|
||||
Resolution string `json:"resolution,omitempty"`
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
UpdatedAt time.Time `json:"updated_at"`
|
||||
ID int `json:"id" gorm:"primaryKey;autoIncrement"`
|
||||
CommandID int `json:"command_id" gorm:"column:command_id;index"`
|
||||
IssueType string `json:"issue_type" gorm:"column:issue_type"`
|
||||
Description string `json:"description" gorm:"column:description"`
|
||||
Status string `json:"status" gorm:"column:status"`
|
||||
ReportedBy string `json:"reported_by" gorm:"column:reported_by"`
|
||||
ResolvedBy string `json:"resolved_by,omitempty" gorm:"column:resolved_by"`
|
||||
Resolution string `json:"resolution,omitempty" gorm:"column:resolution"`
|
||||
CreatedAt time.Time `json:"created_at" gorm:"autoCreateTime"`
|
||||
UpdatedAt time.Time `json:"updated_at" gorm:"autoUpdateTime"`
|
||||
}
|
||||
|
||||
func (DeliveryIssue) TableName() string { return "delivery_issues" }
|
||||
|
||||
Reference in New Issue
Block a user