cleaned verification model
This commit is contained in:
@@ -1,13 +1,15 @@
|
|||||||
package models
|
package models
|
||||||
|
|
||||||
import "time"
|
import (
|
||||||
|
"time"
|
||||||
|
)
|
||||||
|
|
||||||
type Verification struct {
|
type Verification struct {
|
||||||
UpdatedAt time.Time
|
UpdatedAt time.Time
|
||||||
CreatedAt time.Time
|
CreatedAt time.Time
|
||||||
VerifiedAt *time.Time `gorm:"Default:NULL" json:"verified_at"`
|
VerifiedAt *time.Time `json:"verified_at"`
|
||||||
VerificationToken string `json:"token"`
|
VerificationToken string `json:"token"`
|
||||||
ID uint `gorm:"primaryKey"`
|
ID uint `gorm:"primaryKey"`
|
||||||
UserID uint `gorm:"unique;" json:"user_id"`
|
UserID uint `json:"user_id"`
|
||||||
Type string
|
Type string
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user