Exercise.yaml 669 B

12345678910111213141516171819202122232425262728293031
  1. type: object
  2. required:
  3. - id
  4. - workout
  5. - name
  6. - exercise_type
  7. - position
  8. properties:
  9. id:
  10. type: string
  11. format: uuid
  12. description: UUID v7 primary key.
  13. example: 0191a23b-dead-7000-beef-000000000003
  14. workout:
  15. type: string
  16. format: uuid
  17. description: Foreign key referencing the parent workout.
  18. example: 0191a23b-dead-7000-beef-000000000002
  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