package mcusubsrc

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

type McuSubSrc struct {
	ecore.Main              // adjust this according to the needs
	Code        string      `json:"code" gorm:"unique;size:20"`
	Name        string      `json:"name" gorm:"size:50"`
	McuSrc_Code *string     `json:"mcuSrc_code"`
	McuSrc      *ems.McuSrc `json:"mcuSrc,omitempty" gorm:"foreignKey:McuSrc_Code;references:Code"`
	Item_Code   *string     `json:"item_code"`
	Item        *ei.Item    `json:"item,omitempty" gorm:"foreignKey:Item_Code;references:Code"`
}
