user

package
v0.0.0-...-b9ec457 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2022 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	Country  string `bson:"country"`
	Division string `bson:"division"`
	City     string `bson:"city"`
	Lane     string `bson:"lane"`
	Pin      string `bson:"pin"`
}

type User

type User struct {
	Id        string             `bson:"_id,omitempty"`
	Name      string             `bson:"name"`
	Email     string             `bson:"email"`
	Phone     string             `bson:"phone"`
	Profile   string             `bson:"profile"`
	Address   Address            `bson:"address"`
	Rating    float32            `bson:"rating"`
	Ratecount int32              `bson:"ratecount"`
	Wishlist  []string           `bson:"wishlist"`
	Products  []string           `bson:"products"`
	CreatedAt primitive.DateTime `bson:"createdAt"`
	UpdatedAt primitive.DateTime `bson:"updatedAt"`
}

Jump to

Keyboard shortcuts

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