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
Click to show internal directories.
Click to hide internal directories.