portal/db/models/email_verification.go

22 lines
243 B
Go
Raw Normal View History

package models
import (
"time"
"gorm.io/gorm"
)
func init() {
registerModel(&EmailVerification{})
}
type EmailVerification struct {
gorm.Model
UserID uint
User User
NewEmail string
Token string
ExpiresAt time.Time
}