This commit is contained in:
2026-07-04 11:10:52 +05:30
parent bd6427f5db
commit c8adaf7815
18 changed files with 1140 additions and 92 deletions

View File

@@ -13,7 +13,10 @@ type Tripsheet struct {
Driveruserid *int `json:"driveruserid" gorm:"column:driveruserid"`
Dispatchtime *time.Time `json:"dispatchtime" gorm:"column:dispatchtime"`
Arrivaltime *time.Time `json:"arrivaltime" gorm:"column:arrivaltime"`
Status string `json:"status" gorm:"column:status;default:Draft"` // Draft, Dispatched, Arrived, Cancelled
Status string `json:"status" gorm:"column:status;default:Draft"` // Draft, Ready, Dispatched, Arrived, Cancelled
Batchlabel string `json:"batchlabel" gorm:"column:batchlabel;size:100"`
Batchkind string `json:"batchkind" gorm:"column:batchkind;size:20"` // local, transfer
Destinationlabel string `json:"destinationlabel" gorm:"column:destinationlabel;size:200"`
Createdat time.Time `json:"createdat" gorm:"column:createdat;default:CURRENT_TIMESTAMP"`
Updatedat time.Time `json:"updatedat" gorm:"column:updatedat;default:CURRENT_TIMESTAMP"`
Createdby int `json:"createdby" gorm:"column:createdby"`