# app.fitsky.workoutPlan

> Published by [thatsit.dev](https://lexicon.garden/identity/did:plc:tr7zlhacx3fete5s7cx5tyjd)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:tr7zlhacx3fete5s7cx5tyjd/app.fitsky.workoutPlan)
- [Documentation](https://lexicon.garden/lexicon/did:plc:tr7zlhacx3fete5s7cx5tyjd/app.fitsky.workoutPlan/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:tr7zlhacx3fete5s7cx5tyjd/app.fitsky.workoutPlan/examples)

## Definitions

### `app.fitsky.workoutPlan`

**Type**: `record`

A reusable workout plan template

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `name` | `string` | Yes |  |
| `type` | `string` | Yes |  |
| `ogImage` | `blob` | No | Open Graph preview image for social sharing |
| `createdAt` | `string` (datetime) | Yes |  |
| `exercises` | `array` | Yes |  |

### `app.fitsky.workoutPlan#planExercise`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `name` | `string` | Yes |  |
| `notes` | `string` | No |  |
| `targetReps` | `integer` | Yes |  |
| `targetSets` | `integer` | Yes |  |

## Raw Schema

```json
{
  "id": "app.fitsky.workoutPlan",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "name",
          "type",
          "exercises",
          "createdAt"
        ],
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 256
          },
          "type": {
            "type": "string",
            "maxLength": 64,
            "knownValues": [
              "weightlifting",
              "bodyweight",
              "yoga",
              "hiit"
            ]
          },
          "ogImage": {
            "type": "blob",
            "accept": [
              "image/png",
              "image/jpeg",
              "image/webp"
            ],
            "maxSize": 1000000,
            "description": "Open Graph preview image for social sharing"
          },
          "createdAt": {
            "type": "string",
            "format": "datetime"
          },
          "exercises": {
            "type": "array",
            "items": {
              "ref": "#planExercise",
              "type": "ref"
            }
          }
        }
      },
      "description": "A reusable workout plan template"
    },
    "planExercise": {
      "type": "object",
      "required": [
        "name",
        "targetSets",
        "targetReps"
      ],
      "properties": {
        "name": {
          "type": "string",
          "maxLength": 128
        },
        "notes": {
          "type": "string",
          "maxLength": 512
        },
        "targetReps": {
          "type": "integer",
          "minimum": 1
        },
        "targetSets": {
          "type": "integer",
          "minimum": 1
        }
      }
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
