add check roles

This commit is contained in:
andrusyakka
2023-07-05 18:37:24 +03:00
parent 3dd20da723
commit a8be97985a
5 changed files with 24 additions and 6 deletions

View File

@@ -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"`