diff --git a/shared/toscale.go b/shared/toscale.go index c6c65fa..348c4a3 100644 --- a/shared/toscale.go +++ b/shared/toscale.go @@ -33,7 +33,7 @@ func (User) TableName() string { type AdminPermission struct { ID uint64 `gorm:"primaryKey"` UserId uint64 - User User `gorm:"foreignKey:ID;references:UserId"` + User User `gorm:"foreignKey:UserID;references:ID"` IsAvaliableTools bool IsAvaliableTerminals bool IsAvaliableUsers bool