Initial commit
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
19
backend/internal/model/session.go
Executable file
19
backend/internal/model/session.go
Executable file
@@ -0,0 +1,19 @@
|
||||
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"`
|
||||
}
|
||||
Reference in New Issue
Block a user