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"` }