models

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UserQuery

func UserQuery(ctx context.Context) *builder.Builder[*User]

Types

type User

type User struct {
	model.BaseModel

	ID           int    `json:"id"       db:"id,primary,autoincrement"`
	Username     string `json:"username" db:"username"`
	Password     []byte `json:"-"        db:"-"`
	PasswordHash []byte `json:"-"        db:"password"`
}

Jump to

Keyboard shortcuts

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