models

package
v0.0.0-...-fe5d25b Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	Id        uint64    `json:"id" bun:",pk,autoincrement"`
	Bio       string    `json:"bio" validate:"max=1024"`
	CreatedAt time.Time `json:"createdAt"`
	CreatedBy string    `json:"CreatedBy"`
	Email     string    `json:"email" validate:"required,email"`
	FirstName string    `json:"firstName" validate:"required,alpha"`
	LastName  string    `json:"lastName" validate:"required,alpha"`
	Password  string    `json:"password" validate:"required,gte=6"`
	Role      string    `json:"role" validate:"required,oneof=ADMIN USER TRADER"`
}

Jump to

Keyboard shortcuts

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