mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 13:31:56 +00:00
20 lines
703 B
Go
20 lines
703 B
Go
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"`
|
|
}
|