package medicinemix

import (
	ecore "simrs-vx/internal/domain/base-entities/core"
	emmi "simrs-vx/internal/domain/main-entities/medicine-mix-item"
	eu "simrs-vx/internal/domain/main-entities/uom"
)

type MedicineMix struct {
	ecore.Main                         // adjust this according to the needs
	Name       string                  `json:"name" gorm:"size:50"`
	Uom_Code   *string                 `json:"uom_code" gorm:"size:10"`
	Uom        *eu.Uom                 `json:"uom" gorm:"foreignKey:Uom_Code;references:Code"`
	MixItems   []*emmi.MedicineMixItem `json:"mixItems" gorm:"foreignKey:MedicineMix_Id;references:Id"`
}
