add check roles
This commit is contained in:
@@ -4,7 +4,7 @@ import "gorm.io/gorm"
|
||||
|
||||
type Organization struct {
|
||||
gorm.Model
|
||||
Name string `gorm:"unique;index"`
|
||||
Name string `json:"name" gorm:"unique;index"`
|
||||
ParentID uint `json:"parent_id"`
|
||||
Positions []Position `json:"positions,omitempty"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user