models

package
v0.0.0-...-116a753 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 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 User

type User struct {
	Id        primitive.ObjectID `json:"id,omitempty" bson:"_id"`
	UserId    uuid.UUID          `json:"userId,omitempty" bson:"userId"`
	Name      string             `json:"name,omitempty" validate:"required" bson:"name"`
	Address   string             `json:"address,omitempty" validate:"required" bson:"address"`
	CreatedAt time.Time          `json:"createdAt,omitempty" bson:"createdAt"`
}

Jump to

Keyboard shortcuts

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