18 lines
189 B
Go
18 lines
189 B
Go
|
package models
|
||
|
|
||
|
import (
|
||
|
"time"
|
||
|
|
||
|
"gorm.io/gorm"
|
||
|
)
|
||
|
|
||
|
type EmailVerification struct {
|
||
|
gorm.Model
|
||
|
|
||
|
UserID uint
|
||
|
User User
|
||
|
NewEmail string
|
||
|
Token string
|
||
|
ExpiresAt time.Time
|
||
|
}
|