18 lines
557 B
Go
18 lines
557 B
Go
package vehicle_hist
|
|
|
|
import (
|
|
ecore "simrs-vx/internal/domain/base-entities/core"
|
|
ev "simrs-vx/internal/domain/main-entities/vehicle"
|
|
erc "simrs-vx/internal/domain/references/common"
|
|
"time"
|
|
)
|
|
|
|
type VehicleHist struct {
|
|
ecore.Main // adjust this according to the needs
|
|
Vehicle_Id *uint `json:"vehicle_id"`
|
|
Vehicle *ev.Vehicle `json:"vehicle,omitempty" gorm:"foreignKey:Vehicle_Id;references:Id"`
|
|
Date *time.Time `json:"date"`
|
|
Data *string `json:"data"`
|
|
Crud_Code *erc.CrudCode `json:"crud_code"`
|
|
}
|