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 { ID uint64 `gorm:"primarykey"` User User UserId string Role Role RoleId uint }