linstrom/storage-new/models/UserToRole.go
mstar 8f8ad3035a
Some checks are pending
/ test (push) Waiting to run
Comment all new code
2025-04-02 15:33:07 +02:00

13 lines
330 B
Go

package models
// A link of one account to one role
// 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
UserId string
Role Role
RoleId uint
}