add check roles
This commit is contained in:
@@ -4,7 +4,7 @@ import "gorm.io/gorm"
|
||||
|
||||
type Position struct {
|
||||
gorm.Model
|
||||
Name string `gorm:"unique;index"`
|
||||
Name string `json:"name" gorm:"unique;index"`
|
||||
RightMask int `json:"right_mask"`
|
||||
OrganizationID uint `json:"organization_id" gorm:"index;not null"`
|
||||
Users []User `json:"users,omitempty"`
|
||||
|
||||
Reference in New Issue
Block a user