package installation

import (
	ecore "simrs-vx/internal/domain/base-entities/core"
	eipb "simrs-vx/internal/domain/main-entities/installation-position/base"
	ere "simrs-vx/internal/domain/references/encounter"
)

type Installation struct {
	ecore.SmallMain                              // adjust this according to the needs
	Code                  string                 `json:"code" gorm:"unique;size:20"`
	Name                  string                 `json:"name" gorm:"size:50"`
	EncounterClass_Code   ere.EncounterClassCode `json:"encounterClass_code" gorm:"size:10"`
	InstallationPositions []eipb.Basic           `json:"installationPositions,omitempty" gorm:"foreignKey:Installation_Code;references:Code"`
}
