diff --git a/db/models/user.go b/db/models/user.go index 8e06cf5..bce7caf 100644 --- a/db/models/user.go +++ b/db/models/user.go @@ -19,6 +19,10 @@ type User struct { Uploads []Upload LastLogin *time.Time LastLoginIP string + OTPEnabled bool `gorm:"default:false;"` + OTPVerified bool `gorm:"default:false;"` + OTPSecret string + OTPAuthUrl string } func (u *User) BeforeUpdate(tx *gorm.DB) error {