model

package
v0.0.0-...-8176360 Latest Latest
Warning

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

Go to latest
Published: May 20, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProductActive   bool = true
	ProductInactive bool = false
)
View Source
const (
	ProductCollection = "products"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Audit

type Audit struct {
	CreatedDt *time.Time `bson:"crdt"`
	UpdatedDt *time.Time `bson:"updt"`
}

Audit ...

type Product

type Product struct {
	ID          bson.ObjectId `bson:"_id,omitempty"`
	Name        string        `bson:"name"`
	Description string        `bson:"desc"`
	Price       int64         `bson:"price"`
	Stock       int64         `bson:"stock"`
	Status      bool          `bson:"status"`
	Audit
}

Product ...

Jump to

Keyboard shortcuts

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