This commit is contained in:
parent
8d4ba2ecae
commit
67b507f4bd
25 changed files with 74 additions and 27 deletions
11
storage-new/models/UserToRole.go
Normal file
11
storage-new/models/UserToRole.go
Normal file
|
@ -0,0 +1,11 @@
|
|||
package models
|
||||
|
||||
// A link of one account to one role
|
||||
// There may be multiple of these links per user and per role
|
||||
// But a role may only be linked at most once to the same user
|
||||
type UserToRole struct {
|
||||
User User
|
||||
UserId string
|
||||
Role Role
|
||||
RoleId uint
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue