portal/model/key_challenge.go

15 lines
242 B
Go

package model
import (
"gorm.io/gorm"
"time"
)
type KeyChallenge struct {
gorm.Model
ID uint `gorm:"primaryKey"`
Account Account `gorm:"foreignKey:AccountID"`
Challenge string `gorm:"not null"`
Expiration time.Time
}