Add IDs to the various connector structs

This commit is contained in:
Melody Becker 2025-03-31 15:23:24 +02:00
parent 582988add2
commit c9e1881f55
Signed by: mstar
SSH key fingerprint: SHA256:9VAo09aaVNTWKzPW7Hq2LW+ox9OdwmTSHRoD4mlz1yI
11 changed files with 13 additions and 1 deletions

View file

@ -4,6 +4,7 @@ package models
// 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