Files
dokku-ui/internal/models/auth.go
2023-04-25 14:33:14 +08:00

23 lines
321 B
Go

package models
import "gorm.io/gorm"
type User struct {
gorm.Model
Name string `gorm:"unique"`
Source string
SSHKeys []SSHKey
PasswordHash []byte
TotpEnabled bool
TotpSecret string
RecoveryCode string
}
type SSHKey struct {
gorm.Model
UserID uint
GithubID int64 `gorm:"unique"`
Key string
}