add comment in division entity

This commit is contained in:
dpurbosakti
2025-10-02 16:06:44 +07:00
parent c946380e4a
commit 01ea6b0961
@@ -10,5 +10,5 @@ type Division struct {
Name string `json:"name" gorm:"size:50"`
Parent_Id *int16 `json:"parent_id"`
Parent *Division `gorm:"foreignKey:Parent_Id;references:Id"`
Childrens []Division `gorm:"foreignKey:Parent_Id"`
Childrens []Division `gorm:"foreignKey:Parent_Id"` // may need references to self
}