sql

package
v0.0.0-...-652937c Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Beans

type Beans struct {
	Id         int        `db:"id"`
	Roaster    *Roaster   `db:"roaster"`
	Name       string     `db:"name"`
	RoastDate  *time.Time `db:"roast_date"`
	RoastLevel RoastLevel `db:"roast_level"`
	CreatedAt  *time.Time `db:"created_at"`
	UpdatedAt  *time.Time `db:"updated_at"`
}

type ComparaisonWithPreviousResult

type ComparaisonWithPreviousResult uint8
const (
	Worst ComparaisonWithPreviousResult = iota
	Same
	Better
	Unknown
)

type RoastLevel

type RoastLevel uint8
const (
	RoastLevelLight RoastLevel = iota
	RoastLevelLightToMedium
	RoastLevelMedium
	RoastLevelMediumToDark
	RoastLevelDark
)

type Roaster

type Roaster struct {
	Id        int        `db:"id"`
	Name      string     `db:"name"`
	CreatedAt *time.Time `db:"created_at"`
	UpdatedAt *time.Time `db:"updated_at"`
}

type Sheet

type Sheet struct {
	Id        int        `db:"id"`
	Name      string     `db:"name"`
	CreatedAt *time.Time `db:"created_at"`
	UpdatedAt *time.Time `db:"updated_at"`
}

type Shot

type Shot struct {
	Id                            int                           `db:"id"`
	Sheet                         *Sheet                        `db:"sheet"`
	Beans                         *Beans                        `db:"beans"`
	GrindSetting                  int                           `db:"grind_setting"`
	QuantityIn                    float64                       `db:"quantity_in"`
	QuantityOut                   float64                       `db:"quantity_out"`
	ShotTime                      time.Duration                 `db:"shot_time"`
	WaterTemperature              float64                       `db:"water_temperature"`
	Rating                        float64                       `db:"rating"`
	IsTooBitter                   bool                          `db:"is_too_bitter"`
	IsTooSour                     bool                          `db:"is_too_sour"`
	ComparaisonWithPreviousResult ComparaisonWithPreviousResult `db:"comparaison_with_previous_result"`
	AdditionalNotes               string                        `db:"additional_notes"`
	CreatedAt                     *time.Time                    `db:"created_at"`
	UpdatedAt                     *time.Time                    `db:"updated_at"`
}

Jump to

Keyboard shortcuts

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