package mcusrc

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

type McuSrc struct {
	ecore.Main                               // adjust this according to the needs
	Code                string               `json:"code" gorm:"unique;size:20;not null"`
	Name                string               `json:"name" gorm:"size:50"`
	McuSrcCategory_Code *string              `json:"mcuSrcCategory_code" gorm:"size:20"`
	McuSrcCategory      *emsc.McuSrcCategory `json:"mcuSrcCategory,omitempty" gorm:"foreignKey:McuSrcCategory_Code;references:Code"`
	Item_Code           *string              `json:"item_code"`
	Item                *ei.Item             `json:"item,omitempty" gorm:"foreignKey:Item_Code;references:Code"`
}
