add comment in division entity
This commit is contained in:
@@ -10,5 +10,5 @@ type Division struct {
|
|||||||
Name string `json:"name" gorm:"size:50"`
|
Name string `json:"name" gorm:"size:50"`
|
||||||
Parent_Id *int16 `json:"parent_id"`
|
Parent_Id *int16 `json:"parent_id"`
|
||||||
Parent *Division `gorm:"foreignKey:Parent_Id;references: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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user