models

package
v0.0.0-...-bf86ce8 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2023 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 AdminUser

type AdminUser struct {
	bun.BaseModel `bun:"table:admin_users,alias:admin_users"`
	ID            int64     `bun:",pk,autoincrement"`
	Name          string    `bun:",nullzero,notnull" faker:"name"`
	Email         string    `bun:",nullzero,notnull,unique" faker:"email"`
	Password      string    `bun:",nullzero,notnull"`
	Roles         string    `bun:"type:text,nullzero,notnull"`
	CreatedAt     time.Time `bun:"type:timestamp,nullzero,notnull,default:current_timestamp"`
	UpdatedAt     time.Time `bun:"type:timestamp,nullzero,notnull,default:current_timestamp"`
}

func GetFakeAdminUser

func GetFakeAdminUser() (*AdminUser, error)

GetFakeAdminUser ... get fake AdminUser model

Jump to

Keyboard shortcuts

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