11 lines
229 B
Go
11 lines
229 B
Go
package permissions
|
|
|
|
import (
|
|
"github.com/oklog/ulid/v2"
|
|
)
|
|
|
|
type User struct {
|
|
ActiveRole *Role `gorm:"foreignKey:UserID"` // Beziehung zur aktiven Rolle
|
|
UserID ulid.ULID `gorm:"type:bytea"` //Fremdschlüssel
|
|
}
|