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