package mcuorderitem

import (
	ecore "simrs-vx/internal/domain/base-entities/core"
	ems "simrs-vx/internal/domain/main-entities/mcu-src"
	"time"

	erc "simrs-vx/internal/domain/references/common"
)

type McuOrderItem struct {
	ecore.Main                         // adjust this according to the needs
	McuOrder_Id     *uint              `json:"mcuOrder_id" gorm:"uniqueIndex:idx_order_src"`
	McuSrc_Code     *string            `json:"mcuSrc_code" gorm:"uniqueIndex:idx_order_src"`
	McuSrc          *ems.McuSrc        `json:"mcuSrc,omitempty" gorm:"foreignKey:McuSrc_Code;references:Code"`
	ExaminationDate *time.Time         `json:"examinationDate"`
	Note            *string            `json:"note" gorm:"size:1024"`
	Result          *string            `json:"result"`
	Status_Code     erc.DataStatusCode `json:"status_code"`
}
