models

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RefreshToken

type RefreshToken struct {
	ID        string    `gorm:"type:varchar(36);primary_key" json:"id"`
	UserID    string    `gorm:"type:varchar(36);not null;index:idx_refresh_token_user_id" json:"user_id"`
	Token     string    `gorm:"type:varchar(512);not null;uniqueIndex:idx_refresh_token_token" json:"token"`
	ExpiresAt time.Time `gorm:"not null;index:idx_refresh_token_expires_at" json:"expires_at"`
	Revoked   bool      `gorm:"default:false;index:idx_refresh_token_revoked" json:"revoked"`
	CreatedAt time.Time `gorm:"index" json:"created_at"`
}

RefreshToken represents a refresh token stored in the database

func (RefreshToken) TableName

func (RefreshToken) TableName() string

TableName specifies the table name for RefreshToken

Jump to

Keyboard shortcuts

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