portal/model/key_challenge.go

16 lines
225 B
Go
Raw Normal View History

2023-04-29 17:38:21 +00:00
package model
import (
"gorm.io/gorm"
"time"
)
type KeyChallenge struct {
gorm.Model
2023-04-30 06:16:32 +00:00
ID uint `gorm:"primaryKey"`
AccountID uint
Account Account
Challenge string `gorm:"not null"`
2023-04-29 17:38:21 +00:00
Expiration time.Time
}