models

package
v0.0.0-...-640f990 Latest Latest
Warning

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

Go to latest
Published: May 1, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DB *gorm.DB

Functions

func ConnectDb

func ConnectDb(logger *zap.SugaredLogger)

Types

type RatingSummary

type RatingSummary struct {
	RatingId        uint    `json:"id" gorm:"primary_key"`
	CoffeeAmount    float32 `json:"coffee_amount"`
	CoffeeBrand     string  `json:"coffee_brand"`
	CoffeeRoastType string  `json:"coffee_roast_type"`
	BrewMethod      string  `json:"brew_method"`
	GrindSize       string  `json:"grind_size"`
	WaterAmount     float32 `json:"water_amount"`
	WaterTemp       float32 `json:"water_temp"`
	SteepTime       float32 `json:"steep_time"`
	MilkAmount      float32 `json:"milk_amount"`
	MilkHeatTime    float32 `json:"milk_heat_time"`
	TotalRating     float32 `json:"total_rating"`
	Notes           string  `json:"notes"`
	CoffeeMadeDate  string  `json:"coffee_made_date"`
}

func (RatingSummary) TableName

func (RatingSummary) TableName() string

Jump to

Keyboard shortcuts

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