Skip to content

Commit

Permalink
add uniq key to ap
Browse files Browse the repository at this point in the history
  • Loading branch information
Maksiomo committed Aug 14, 2024
1 parent b28113b commit 56b3d4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared/toscale.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func (User) TableName() string {

type AdminPermission struct {
ID uint64 `gorm:"primaryKey"`
UserId uint64
UserId uint64 `gorm:"uniqueIndex:ap_uniq_user_key"`
IsAvaliableTools bool
IsAvaliableTerminals bool
IsAvaliableUsers bool
Expand Down

0 comments on commit 56b3d4f

Please sign in to comment.