15 lines
242 B
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
|
||
|
}
|