mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 21:41:55 +00:00
25 lines
841 B
Go
25 lines
841 B
Go
package entities
|
|
|
|
import "time"
|
|
|
|
// DETAIL EKSPEDISI
|
|
type StockTransferDelivery struct {
|
|
Id uint64 `gorm:"primaryKey;autoIncrement"`
|
|
StockTransferId uint64
|
|
SupplierId uint64
|
|
VehiclePlate string
|
|
DriverName string
|
|
DocumentNumber string
|
|
DocumentPath string
|
|
ShippingCostItem float64
|
|
ShippingCostTotal float64
|
|
CreatedAt time.Time
|
|
UpdatedAt time.Time
|
|
DeletedAt *time.Time `gorm:"index"`
|
|
// Relations
|
|
StockTransfer *StockTransfer `gorm:"foreignKey:StockTransferId"`
|
|
Supplier *Supplier `gorm:"foreignKey:SupplierId"`
|
|
Items []StockTransferDeliveryItem `gorm:"foreignKey:StockTransferDeliveryId"`
|
|
Documents []Document `gorm:"foreignKey:DocumentableId;constraint:OnUpdate:CASCADE,OnDelete:CASCADE"`
|
|
}
|