api_auth_model

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2026 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package api_auth_model api/api_auth/api_auth_model/api_auth_model.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthSession

type AuthSession struct {
	gorm.Model
	SessionID        string     `gorm:"type:char(36);not null;uniqueIndex"`
	UserID           string     `gorm:"type:char(36);not null;index"`
	RefreshTokenHash string     `gorm:"type:char(64);not null"`
	ExpiresAt        time.Time  `gorm:"not null;index"`
	RevokedAt        *time.Time `gorm:"index"`
}

type AuthVerifyCode

type AuthVerifyCode struct {
	gorm.Model
	Recipient           string    `gorm:"size:320;not null;uniqueIndex"`
	CodeHash            string    `gorm:"size:64;not null"`
	AttemptsRemaining   int       `gorm:"not null"`
	ExpiresAt           time.Time `gorm:"not null;index"`
	ResendAvailableAt   time.Time `gorm:"not null"`
	SendWindowStartedAt time.Time `gorm:"not null"`
	SendCount           int       `gorm:"not null"`
	SentAt              *time.Time
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL