# space.opendeck.challenge

> Published by [opendeck.space](https://lexicon.garden/identity/did:plc:5xoilbawtptc3wha4zplgkwd)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:5xoilbawtptc3wha4zplgkwd/space.opendeck.challenge)
- [Documentation](https://lexicon.garden/lexicon/did:plc:5xoilbawtptc3wha4zplgkwd/space.opendeck.challenge/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:5xoilbawtptc3wha4zplgkwd/space.opendeck.challenge/examples)

## Definitions

### `space.opendeck.challenge`

**Type**: `record`

A study challenge between friends. Participants link to it with a challengeEntry.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `createdAt` | `string` (datetime) | Yes |  |
| `endsAt` | `string` (datetime) | Yes |  |
| `kind` | `string` | Yes | studyDays: most study days wins. everyDay: study every day, the last one standing wins. |
| `startsAt` | `string` (datetime) | Yes |  |
| `title` | `string` | Yes |  |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A study challenge between friends. Participants link to it with a challengeEntry.",
      "key": "tid",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "endsAt": {
            "format": "datetime",
            "type": "string"
          },
          "kind": {
            "description": "studyDays: most study days wins. everyDay: study every day, the last one standing wins.",
            "enum": [
              "studyDays",
              "everyDay"
            ],
            "type": "string"
          },
          "startsAt": {
            "format": "datetime",
            "type": "string"
          },
          "title": {
            "maxGraphemes": 100,
            "maxLength": 1000,
            "type": "string"
          }
        },
        "required": [
          "title",
          "kind",
          "startsAt",
          "endsAt",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "space.opendeck.challenge",
  "lexicon": 1
}
```
