20 lines
541 B
Go
Executable File
20 lines
541 B
Go
Executable File
package model
|
|
|
|
import "time"
|
|
|
|
// Session repräsentiert eine Trainingseinheit.
|
|
type Session struct {
|
|
ID int64 `json:"id"`
|
|
SetID int64 `json:"set_id"`
|
|
SetName string `json:"set_name"`
|
|
StartedAt time.Time `json:"started_at"`
|
|
EndedAt *time.Time `json:"ended_at,omitempty"`
|
|
Note string `json:"note"`
|
|
Logs []SessionLog `json:"logs,omitempty"`
|
|
}
|
|
|
|
// CreateSessionRequest enthält die Felder zum Starten einer Session.
|
|
type CreateSessionRequest struct {
|
|
SetID int64 `json:"set_id"`
|
|
}
|