Files
krafttrainer/backend/internal/model/session.go
Christoph K. dfd66e43c6 Initial commit
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-21 15:03:55 +01:00

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"`
}