package medicalactionsrc

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

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