Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DB is the application business database DB *gorm.DB )
Functions ¶
func CreateAdmin ¶
CreateAdmin creates an admin based on the models
Types ¶
type Batch ¶
type Batch struct { gorm.Model Recipe Recipe `gorm:"foreignkey:RecipeID;not null"` RecipeID uint `gorm:"not null"` Date time.Time Step string StartVolume int CurrentVolume int Events []Event Transfers []Transfer Sales []Sale Stock string }
Batch is made from a recipe and has a list of events altering (or not) it's volume
Click to show internal directories.
Click to hide internal directories.