# garden.goals.completion

> Published by [goals.garden](https://lexicon.garden/identity/did:plc:r4suwlt5zl7sexnfgmi3jctw)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:r4suwlt5zl7sexnfgmi3jctw/garden.goals.completion)
- [Documentation](https://lexicon.garden/lexicon/did:plc:r4suwlt5zl7sexnfgmi3jctw/garden.goals.completion/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:r4suwlt5zl7sexnfgmi3jctw/garden.goals.completion/examples)

## Definitions

### `garden.goals.completion`

**Type**: `record`

A record of completing a goal on a specific day.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `day` | `integer` | Yes | Day of the completion (1-31) |
| `year` | `integer` | Yes | Year of the completion |
| `month` | `integer` | Yes | Month of the completion (1-12) |
| `notes` | `string` | No | Optional notes for this completion |
| `goalId` | `string` | Yes | UUID of the goal this completion belongs to |
| `goalUri` | `string` (at-uri) | No | AT Protocol URI reference to the goal record |
| `photoBlob` | `blob` | No | Optional photo for this completion |
| `completedAt` | `string` (datetime) | Yes | Timestamp when the completion was recorded |
| `sequenceNum` | `integer` | No | Sequence number for countable goals |

## Raw Schema

```json
{
  "id": "garden.goals.completion",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "goalId",
          "year",
          "month",
          "day",
          "completedAt"
        ],
        "properties": {
          "day": {
            "type": "integer",
            "maximum": 31,
            "minimum": 1,
            "description": "Day of the completion (1-31)"
          },
          "year": {
            "type": "integer",
            "minimum": 1970,
            "description": "Year of the completion"
          },
          "month": {
            "type": "integer",
            "maximum": 12,
            "minimum": 1,
            "description": "Month of the completion (1-12)"
          },
          "notes": {
            "type": "string",
            "maxLength": 99,
            "description": "Optional notes for this completion"
          },
          "goalId": {
            "type": "string",
            "maxLength": 64,
            "description": "UUID of the goal this completion belongs to"
          },
          "goalUri": {
            "type": "string",
            "format": "at-uri",
            "description": "AT Protocol URI reference to the goal record"
          },
          "photoBlob": {
            "type": "blob",
            "accept": [
              "image/*"
            ],
            "maxSize": 1000000,
            "description": "Optional photo for this completion"
          },
          "completedAt": {
            "type": "string",
            "format": "datetime",
            "description": "Timestamp when the completion was recorded"
          },
          "sequenceNum": {
            "type": "integer",
            "minimum": 1,
            "description": "Sequence number for countable goals"
          }
        }
      },
      "description": "A record of completing a goal on a specific day."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
