models

package
v0.0.0-...-a36e7e9 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OTP

type OTP struct {
	gorm.Model
	UserID    uint        `gorm:"not null"`
	Code      string      `gorm:"not null"`
	ExpiresAt time.Time   `gorm:"not null"`
	IsValid   bool        `gorm:"default:true"`
	User      models.User `gorm:"foreignKey:UserID;references:ID;constraint:OnDelete:CASCADE;"`
}

Jump to

Keyboard shortcuts

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