mirror of
https://github.com/sstent/FitTrack_ReportGenerator.git
synced 2026-01-26 09:02:26 +00:00
22 lines
879 B
Markdown
22 lines
879 B
Markdown
# Data Model
|
|
|
|
## Entities
|
|
|
|
### WorkoutAnalysis (Cache)
|
|
|
|
- **Description**: Represents a cached workout analysis result. This is an in-memory object to speed up subsequent requests for the same analysis.
|
|
- **Fields**:
|
|
- `activity_id`: The ID of the activity.
|
|
- `analysis_summary`: JSON object containing the summary of the analysis.
|
|
- `charts`: Dictionary of chart types to chart data.
|
|
- `timestamp`: The time when the analysis was cached.
|
|
|
|
### AnalysisArtifact (CentralDB)
|
|
|
|
- **Description**: Represents a stored analysis artifact in the CentralDB. This is the long-term storage for the analysis results.
|
|
- **Fields** (based on the CentralDB API):
|
|
- `id`: Unique identifier of the artifact.
|
|
- `activity_id`: The ID of the activity.
|
|
- `data`: JSON object containing the analysis results.
|
|
- `created_at`: Timestamp of when the artifact was created.
|