14 lines
372 B
Go
14 lines
372 B
Go
package models
|
|
|
|
import "time"
|
|
|
|
type Verification struct {
|
|
UpdatedAt time.Time
|
|
CreatedAt time.Time
|
|
VerifiedAt *time.Time `gorm:"Default:NULL" json:"verified_at"`
|
|
VerificationToken string `json:"token"`
|
|
ID uint `gorm:"primaryKey"`
|
|
UserID uint `gorm:"unique;" json:"user_id"`
|
|
Type string
|
|
}
|