/* DESCRIPTION: Sample of struct to define an entity both in the application and database. Uses the base struct from the core package for the standard attributes. The original attributes are extracted and grouped into several parts (structs), which later embeded. The extracted attributes are stored into the subdirectory 'base'. The extraction is done to cover several cases regarding the eficiency the of the data retreiving by using only needed attributes. Each case has its own directory with the same struct name with the main entity that embeds the needed attributes from the 'base'. NOTES: Make sure to use 'case-sensitive' option when doing search-replace TODO: - replace 'separated' with the name of the package, ie: myentity - replace 'Separated' with the name of the entity, ie: MyEntity */ package separated import ( ecore "simrs-vx/internal/domain/base-entities/core" eb "simrs-vx/internal/domain/main-entities/separated/base" ) type Separated struct { ecore.Main // adjust this according to the needs eb.Basic eb.Default eb.Extra }