cleaned verification model

This commit is contained in:
Alex
2025-03-11 20:50:19 +01:00
parent 9c429185dc
commit 9a8b386931

View File

@@ -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
} }