package entities

import "time"

// DETAIL PRODUK
type StockTransferDetail struct {
	Id              uint64 `gorm:"primaryKey;autoIncrement"`
	StockTransferId uint64
	ProductId       uint64
	Quantity        float64
	CreatedAt       time.Time
	UpdatedAt       time.Time
	DeletedAt       *time.Time `gorm:"index"`
	// Relations
	StockTransfer *StockTransfer              `gorm:"foreignKey:StockTransferId"`
	Product       *Product                    `gorm:"foreignKey:ProductId"`
	DeliveryItems []StockTransferDeliveryItem `gorm:"foreignKey:StockTransferDetailId"`
}
