SessionExercise.yaml 862 B

123456789101112131415161718192021222324252627282930313233343536
  1. type: object
  2. required:
  3. - id
  4. - exercise
  5. - name
  6. - exercise_type
  7. - position
  8. properties:
  9. id:
  10. type: string
  11. format: uuid
  12. description: UUID v7 primary key for the recorded exercise instance.
  13. example: 0191a23b-dead-7000-beef-000000000006
  14. exercise:
  15. type: string
  16. format: uuid
  17. description: Foreign key referencing the original exercise from the workout.
  18. example: 0191a23b-dead-7000-beef-000000000003
  19. name:
  20. type: string
  21. example: Bench Press
  22. notes:
  23. type: string
  24. nullable: true
  25. example: Keep elbows tucked
  26. exercise_type:
  27. $ref: './ExerciseType.yaml'
  28. position:
  29. type: integer
  30. description: 1-based position of the exercise within its workout.
  31. example: 1
  32. sets:
  33. type: array
  34. description: Array of performed sets for this exercise instance.
  35. items:
  36. $ref: './SessionSet.yaml'