This commit is contained in:
parent
b6f12b7acf
commit
8f8ad3035a
33 changed files with 166 additions and 111 deletions
|
@ -1,8 +1,9 @@
|
|||
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
|
||||
// Each user may have one or more roles
|
||||
// (every user has the default role and their personal one)
|
||||
// but each user to role combination may appear at most once
|
||||
type UserToRole struct {
|
||||
ID uint64 `gorm:"primarykey"`
|
||||
User User
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue