11 lines
259 B
Go
11 lines
259 B
Go
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
|
|
}
|