refactor: rebuild the app in golang with the fyne framework
This commit is contained in:
parent
479e4dffa8
commit
a8ed9c9ed1
161 changed files with 1212 additions and 6641 deletions
17
internal/data/models.go
Normal file
17
internal/data/models.go
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
package data
|
||||
|
||||
import "time"
|
||||
|
||||
// TrainingSession repräsentiert eine einzelne Trainingseinheit.
|
||||
// Die `db`-Tags werden verwendet, um die Struct-Felder den Datenbankspalten zuzuordnen.
|
||||
type TrainingSession struct {
|
||||
ID int64 `db:"id"`
|
||||
Date time.Time `db:"date"`
|
||||
Sets int64 `db:"sets"`
|
||||
WeightLeft float64 `db:"weightLeft"`
|
||||
WeightRight float64 `db:"weightRight"`
|
||||
RepsPerSet int64 `db:"repsPerSet"`
|
||||
Duration int64 `db:"duration"` // in Sekunden
|
||||
Program string `db:"program"`
|
||||
BlockDay int64 `db:"blockDay"`
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue