switched to gorm..
This commit is contained in:
13
internal/models/Verifications.go
Normal file
13
internal/models/Verifications.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package models
|
||||
|
||||
import "time"
|
||||
|
||||
type Verification struct {
|
||||
UpdatedAt time.Time
|
||||
CreatedAt time.Time
|
||||
EmailVerifiedAt *time.Time `gorm:"Default:NULL" json:"email_verified_at"`
|
||||
IDVerifiedAt *time.Time `gorm:"Default:NULL" json:"id_verified_at"`
|
||||
VerificationToken string `json:"token"`
|
||||
ID int64 `gorm:"primaryKey"`
|
||||
UserID int64 `gorm:"unique;" json:"user_id"`
|
||||
}
|
||||
Reference in New Issue
Block a user