Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct { ID uuid.UUID `db:"id" json:"id" validate:"required,uuid"` Name string `db:"name" json:"name" validate:"lte=255"` Email string `db:"email" json:"email" validate:"required,email,lte=255"` PasswordHash string `db:"password_hash" json:"password_hash,omitempty" validate:"required,lte=255"` UserStatus int `db:"user_status" json:"user_status" validate:"required,len=1"` UserRole string `db:"user_role" json:"user_role" validate:"required,lte=25"` CreatedAt time.Time `db:"created_at" json:"created_at"` UpdatedAt time.Time `db:"updated_at" json:"updated_at"` }
User struct to describe User object.
type UserRole ¶
type UserRole struct { ID uuid.UUID `db:"id" json:"id" validate:"required,uuid"` Name string `db:"name" json:"name" validate:"required,lte=255"` CreatedAt time.Time `db:"created_at" json:"created_at"` UpdatedAt time.Time `db:"updated_at" json:"updated_at"` }
User struct to describe User object.
Click to show internal directories.
Click to hide internal directories.