package entities import ( "time" ) type MarketingDeliveryProduct struct { Id uint `gorm:"primaryKey;autoIncrement"` MarketingProductId uint `gorm:"uniqueIndex;not null"` Qty float64 `gorm:"type:numeric(15,3)"` UnitPrice float64 `gorm:"type:numeric(15,3)"` TotalWeight float64 `gorm:"type:numeric(15,3)"` AvgWeight float64 `gorm:"type:numeric(15,3)"` TotalPrice float64 `gorm:"type:numeric(15,3)"` DeliveryDate *time.Time `gorm:"type:timestamptz"` VehicleNumber string `gorm:"type:varchar(50)"` MarketingProduct MarketingProduct `gorm:"foreignKey:MarketingProductId;references:Id"` }