Files
simrsx-be/internal/domain/main-entities/material-order-item/entity.go
T
dpurbosakti 45d687c5ec wip
2025-09-15 14:07:30 +07:00

17 lines
717 B
Go

package materialorderitem
import (
ecore "simrs-vx/internal/domain/base-entities/core"
em "simrs-vx/internal/domain/main-entities/material"
emo "simrs-vx/internal/domain/main-entities/material-order"
)
type MaterialOrderItem struct {
ecore.Main // adjust this according to the needs
MaterialOrder_Id *uint `json:"materialOrder_id"`
MaterialOrder *emo.MaterialOrder `json:"materialOrder,omitempty" gorm:"foreignKey:MaterialOrder_Id;references:Id"`
Material_Id *uint `json:"material_id"`
Material *em.Material `json:"material,omitempty" gorm:"foreignKey:Material_Id;references:Id"`
Count *uint16 `json:"count"`
}