# es.joeinn.timetracker.activity

> Published by [joe-test.spaces-alpha.bsky.network](https://lexicon.garden/identity/did:plc:o5amjq3nj2xts23zi6nmv52b)

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:o5amjq3nj2xts23zi6nmv52b/es.joeinn.timetracker.activity)
- [Documentation](https://lexicon.garden/lexicon/did:plc:o5amjq3nj2xts23zi6nmv52b/es.joeinn.timetracker.activity/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:o5amjq3nj2xts23zi6nmv52b/es.joeinn.timetracker.activity/examples)

## Definitions

### `es.joeinn.timetracker.activity`

**Type**: `record`

A named activity and its optional weekly budget.

**Key**: `any`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `name` | `string` | Yes |  |
| `color` | `string` | Yes |  |
| `budget` | `ref` → `#budget` | No |  |
| `createdAt` | `string` (datetime) | Yes |  |
| `updatedAt` | `string` (datetime) | Yes |  |

### `es.joeinn.timetracker.activity#budget`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `timezone` | `string` | Yes |  |
| `weekdays` | `array` | Yes |  |
| `weeklyMinutes` | `integer` | Yes |  |

## Raw Schema

```json
{
  "id": "es.joeinn.timetracker.activity",
  "defs": {
    "main": {
      "key": "any",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "name",
          "color",
          "createdAt",
          "updatedAt"
        ],
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 80,
            "minLength": 1
          },
          "color": {
            "type": "string",
            "maxLength": 9,
            "minLength": 4
          },
          "budget": {
            "ref": "#budget",
            "type": "ref"
          },
          "createdAt": {
            "type": "string",
            "format": "datetime"
          },
          "updatedAt": {
            "type": "string",
            "format": "datetime"
          }
        }
      },
      "description": "A named activity and its optional weekly budget."
    },
    "budget": {
      "type": "object",
      "required": [
        "weeklyMinutes",
        "weekdays",
        "timezone"
      ],
      "properties": {
        "timezone": {
          "type": "string",
          "maxLength": 100,
          "minLength": 1
        },
        "weekdays": {
          "type": "array",
          "items": {
            "type": "integer",
            "maximum": 7,
            "minimum": 1
          },
          "maxLength": 7,
          "minLength": 1
        },
        "weeklyMinutes": {
          "type": "integer",
          "maximum": 10080,
          "minimum": 1
        }
      }
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
