model

package
v0.0.0-...-13db65c Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2022 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 AccessToken

type AccessToken struct {
	bun.BaseModel `bun:"table:access_token,alias:at"`

	Id        int64     `bun:",pk,autoincrement"`
	UserId    int64     `bun:",notnull"`
	TokenHash string    `bun:",notnull"`
	Expires   time.Time `bun:",notnull"`
	Created   time.Time `bun:",notnull"`
	Modified  time.Time `bun:",notnull"`
}

type User

type User struct {
	bun.BaseModel `bun:"table:user,alias:u"`

	Id       int64     `bun:",pk,autoincrement"`
	Name     string    `bun:",notnull"`
	Email    string    `bun:",notnull,unique"`
	Created  time.Time `bun:",notnull"`
	Modified time.Time `bun:",notnull"`
}

Jump to

Keyboard shortcuts

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