mirror of
https://github.com/sstent/FitTrack_ReportGenerator.git
synced 2026-01-27 01:22:24 +00:00
sync
This commit is contained in:
21
specs/002-feature-use-centraldb/data-model.md
Normal file
21
specs/002-feature-use-centraldb/data-model.md
Normal file
@@ -0,0 +1,21 @@
|
||||
# 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.
|
||||
Reference in New Issue
Block a user