Add db and types
This commit is contained in:
35
types.go
Normal file
35
types.go
Normal file
@@ -0,0 +1,35 @@
|
||||
package main
|
||||
|
||||
import "time"
|
||||
|
||||
type (
|
||||
Setting struct {
|
||||
key string
|
||||
value string
|
||||
}
|
||||
|
||||
Food struct {
|
||||
rowid int
|
||||
date time.Time
|
||||
food string
|
||||
descripton string
|
||||
amount float32
|
||||
per100 float32
|
||||
energy float32
|
||||
}
|
||||
AggregatedFood struct {
|
||||
period string
|
||||
amount float32
|
||||
avgPer100 float32
|
||||
energy float32
|
||||
}
|
||||
Weight struct {
|
||||
rowid int
|
||||
date time.Time
|
||||
weight float32
|
||||
}
|
||||
AggregatedWeight struct {
|
||||
period string
|
||||
amount float32
|
||||
}
|
||||
)
|
||||
Reference in New Issue
Block a user