Comments, fixes
Some checks are pending
/ test (push) Waiting to run

This commit is contained in:
Melody Becker 2025-04-01 17:24:06 +02:00
parent 4fb0e17b69
commit ef91558600
Signed by: mstar
SSH key fingerprint: SHA256:9VAo09aaVNTWKzPW7Hq2LW+ox9OdwmTSHRoD4mlz1yI
8 changed files with 73 additions and 19 deletions

View file

@ -1,5 +1,7 @@
package models
import "gorm.io/gorm"
// One authentication method linked to one account.
// Contains the method and whatever the token may be
// For a password, this would be a hash of that password,
@ -8,7 +10,7 @@ package models
//
// Password hashes may only exist at most once per user, the rest 0-m
type UserAuthMethod struct {
ID uint64 `gorm:"primarykey"`
gorm.Model
User User
UserId string
AuthMethod AuthenticationMethodType `gorm:"type:auth_method_type"`