15 lines
524 B
Go
15 lines
524 B
Go
package model
|
|
|
|
import "time"
|
|
|
|
type RefreshSession struct {
|
|
ID uint `json:"id" gorm:"primaryKey"`
|
|
UserID uint `json:"user_id" gorm:"not null;index"`
|
|
JTI string `json:"jti" gorm:"size:64;not null;uniqueIndex"`
|
|
ExpiresAt time.Time `json:"expires_at" gorm:"not null;index"`
|
|
RevokedAt *time.Time `json:"revoked_at,omitempty" gorm:"index"`
|
|
ReplacedBy string `json:"replaced_by" gorm:"size:64"`
|
|
CreatedAt time.Time `json:"created_at"`
|
|
UpdatedAt time.Time `json:"updated_at"`
|
|
}
|