package materialpackage

import (
	ecore "simrs-vx/internal/domain/base-entities/core"
	em "simrs-vx/internal/domain/main-entities/material"
	emp "simrs-vx/internal/domain/main-entities/material-package"
)

type MaterialPackageItem struct {
	ecore.Main
	MaterialPackage_Code string               `json:"materialPackage_code" gorm:"size:20;not null"`
	MaterialPackage      *emp.MaterialPackage `json:"materialPackage" gorm:"foreignKey:MaterialPackage_Code;references:Code"`
	Material_Code        string               `json:"code" gorm:"size:20;not null"`
	Material             *em.Material         `json:"material" gorm:"foreignKey:Material_Code;references:Code"`
	Count                *uint16              `json:"count"`
}
