models

package
v0.0.0-...-4f6929d Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExpiredTokens

type ExpiredTokens struct {
	AccessToken string
}

type Fact

type Fact struct {
	gorm.Model
	Question string `json:"question" gorm:"text; not null; default: null; column:question"`
	Answer   string `json:"answer" gorm:"text; not null; default: null; column:answer"`
}

type TokenDetails

type TokenDetails struct {
	Token     *string
	TokenUuid string
	UserID    string
	ExpiresIn *int64
}

type User

type User struct {
	gorm.Model
	ID       uuid.UUID `gorm:"type:uuid;"`
	Username string    `json:"username" gorm:"unique"`
	Email    string    `json:"email"`
	Password string    `json:"password"`
}

User struct

func (*User) BeforeCreate

func (user *User) BeforeCreate(tx *gorm.DB) (err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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