package antibioticsrc

import (
	ecore "simrs-vx/internal/domain/base-entities/core"
	easc "simrs-vx/internal/domain/main-entities/antibiotic-src-category"
)

type AntibioticSrc struct {
	ecore.Main                                             // adjust this according to the needs
	Code                       string                      `json:"code" gorm:"unique;size:20"`
	Name                       string                      `json:"name" gorm:"size:50"`
	AntibioticSrcCategory_Code *string                     `json:"antibioticSrcCategory_code" gorm:"size:20"`
	AntibioticSrcCategory      *easc.AntibioticSrcCategory `json:"antibioticSrcCategory,omitempty" gorm:"foreignKey:AntibioticSrcCategory_Code;references:Code"`
	// Item_Id                    *uint                       `json:"item_id"`
	// Item                       *ei.Item                    `json:"item,omitempty" gorm:"foreignKey:Item_Id;references:Id"`
}
