package division import ( ecore "simrs-vx/internal/domain/base-entities/core" ) type Division struct { ecore.SmallMain // adjust this according to the needs Code string `json:"code" gorm:"unique;size:10"` Name string `json:"name" gorm:"size:50"` Parent_Id *uint16 `json:"parent_id"` Parent *Division `gorm:"foreignKey:Parent_Id;references:Id"` Childrens []Division `gorm:"foreignKey:Parent_Id"` // may need references to self }