models

package
v1.0.0-...-d4d752e Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2017 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// CollectionTareWeights Collection name
	CollectionTareWeights = "tare_weights"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type TareWeight

type TareWeight struct {
	Id          bson.ObjectId `json:"_id,omitempty" bson:"_id,omitempty"`
	Brand       string        `json:"brand" form:"brand" binding:"required" bson:"brand"`
	Category    string        `json:"category" form:"category" binding:"required" bson:"category"` // Rum, Vodka, Gin, ...
	Name        string        `json:"name" form:"name" binding:"required" bson:"name"`
	BottleSize  float64       `json:"bottle_size" form:"bottle_size" binding:"required" bson:"bottle_size"`    // Size in ml
	EmptyWeight float64       `json:"empty_weight" form:"empty_weight" binding:"required" bson:"empty_weight"` // Tare weight in grams
	FullWeight  float64       `json:"full_weight" form:"full_weight" binding:"required" bson:"full_weight"`    // Full weight in grams
	ImageUrl    string        `json:"image_url" form:"image_url" bson:"image_url"`
	CreatedOn   time.Time     `json:"created_on" bson:"created_on"`
	UpdatedOn   time.Time     `json:"updated_on" bson:"updated_on"`
}

TareWeight Model for liquor bottle tare weights

Jump to

Keyboard shortcuts

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