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_Code    *string            `json:"material_code"`
	Material         *em.Material       `json:"material,omitempty" gorm:"foreignKey:Material_Code;references:Code"`
	Count            *uint16            `json:"count"`
}
