backend changed verification model

This commit is contained in:
Alex
2025-02-26 21:42:49 +01:00
parent 6b408d64a7
commit a2886fc1e0
6 changed files with 222 additions and 2 deletions

View File

@@ -5,9 +5,9 @@ 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"`
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
}