# family.pardy.familytime.event

> Something on the schedule, in the family space. Shows only once a parent approves this exact version in the approvals space (the app approves a parent's own events as they add them). Board configuration: board space (parents only); each parent saves their own copy with rkey = id, and the newest updatedAt wins (a deleted copy removes it).

- Kind: record
- Record key: any
- Authority: familytime.pardy.family
- Lexicon: 1
- Published by [pardy.at](https://lexicon.garden/identity/did:plc:dp7v5b5kejmmzzpwmqyf5wj6), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:dp7v5b5kejmmzzpwmqyf5wj6/family.pardy.familytime.event)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:dp7v5b5kejmmzzpwmqyf5wj6/family.pardy.familytime.event/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:dp7v5b5kejmmzzpwmqyf5wj6/family.pardy.familytime.event/analytics)

## Record (`family.pardy.familytime.event`)

Type: record · key any

### Properties

- `anchor` (string): Marks the start or end of the day for the people it's for; free time is planned between these.
  - Constraints: knownValues: wake | bedtime
- `countdown` (ref)
  - Reference: `#countdown`
- `createdAt` (string · datetime, required)
- `date` (string, required): YYYY-MM-DD in the household time zone.
  - Constraints: maxLength: 10
- `deleted` (boolean): Removed, when this is the newest copy.
- `emoji` (string, required)
  - Constraints: maxLength: 32, maxGraphemes: 2
- `endDate` (string): YYYY-MM-DD: the last day of something that spans days (a trip). Shown all day on each day.
  - Constraints: maxLength: 10
- `endTime` (string): HH:MM, 24-hour, household wall-clock.
  - Constraints: maxLength: 5
- `id` (string, required): Stable across edits and parents; the record key.
  - Constraints: maxLength: 64
- `image` (blob): A photo shown instead of the emoji, e.g. the people you're visiting. Referenced from the private space.
  - Constraints: maxSize: 1000000, accept: image/png, image/jpeg, image/webp
- `note` (string)
  - Constraints: maxLength: 1000
- `repeat` (ref)
  - Reference: `#repeat`
- `startTime` (string): HH:MM, 24-hour, household wall-clock.
  - Constraints: maxLength: 5
- `title` (string, required)
  - Constraints: maxLength: 200
- `updatedAt` (string · datetime, required): Last write wins across parents.
- `who` (array): Members it's for; empty means everyone.
  - `items` (string · did)

## #countdown (`family.pardy.familytime.event#countdown`)

Type: object

A big day: the wall counts down to it, starting this many days before.

### Properties

- `days` (integer, required)
  - Constraints: minimum: 1, maximum: 90

## #repeat (`family.pardy.familytime.event#repeat`)

Type: object

### Properties

- `until` (string): YYYY-MM-DD in the household time zone.
  - Constraints: maxLength: 10
- `weekdays` (array, required): 0 = Sunday.
  - `items` (integer)
    - Constraints: minimum: 0, maximum: 6

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "countdown": {
      "description": "A big day: the wall counts down to it, starting this many days before.",
      "properties": {
        "days": {
          "maximum": 90,
          "minimum": 1,
          "type": "integer"
        }
      },
      "required": [
        "days"
      ],
      "type": "object"
    },
    "main": {
      "description": "Something on the schedule, in the family space. Shows only once a parent approves this exact version in the approvals space (the app approves a parent's own events as they add them). Board configuration: board space (parents only); each parent saves their own copy with rkey = id, and the newest updatedAt wins (a deleted copy removes it).",
      "key": "any",
      "record": {
        "properties": {
          "anchor": {
            "description": "Marks the start or end of the day for the people it's for; free time is planned between these.",
            "knownValues": [
              "wake",
              "bedtime"
            ],
            "type": "string"
          },
          "countdown": {
            "ref": "#countdown",
            "type": "ref"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "date": {
            "description": "YYYY-MM-DD in the household time zone.",
            "maxLength": 10,
            "type": "string"
          },
          "deleted": {
            "description": "Removed, when this is the newest copy.",
            "type": "boolean"
          },
          "emoji": {
            "maxGraphemes": 2,
            "maxLength": 32,
            "type": "string"
          },
          "endDate": {
            "description": "YYYY-MM-DD: the last day of something that spans days (a trip). Shown all day on each day.",
            "maxLength": 10,
            "type": "string"
          },
          "endTime": {
            "description": "HH:MM, 24-hour, household wall-clock.",
            "maxLength": 5,
            "type": "string"
          },
          "id": {
            "description": "Stable across edits and parents; the record key.",
            "maxLength": 64,
            "type": "string"
          },
          "image": {
            "accept": [
              "image/png",
              "image/jpeg",
              "image/webp"
            ],
            "description": "A photo shown instead of the emoji, e.g. the people you're visiting. Referenced from the private space.",
            "maxSize": 1000000,
            "type": "blob"
          },
          "note": {
            "maxLength": 1000,
            "type": "string"
          },
          "repeat": {
            "ref": "#repeat",
            "type": "ref"
          },
          "startTime": {
            "description": "HH:MM, 24-hour, household wall-clock.",
            "maxLength": 5,
            "type": "string"
          },
          "title": {
            "maxLength": 200,
            "type": "string"
          },
          "updatedAt": {
            "description": "Last write wins across parents.",
            "format": "datetime",
            "type": "string"
          },
          "who": {
            "description": "Members it's for; empty means everyone.",
            "items": {
              "format": "did",
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "createdAt",
          "date",
          "emoji",
          "id",
          "title",
          "updatedAt"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "repeat": {
      "properties": {
        "until": {
          "description": "YYYY-MM-DD in the household time zone.",
          "maxLength": 10,
          "type": "string"
        },
        "weekdays": {
          "description": "0 = Sunday.",
          "items": {
            "maximum": 6,
            "minimum": 0,
            "type": "integer"
          },
          "type": "array"
        }
      },
      "required": [
        "weekdays"
      ],
      "type": "object"
    }
  },
  "id": "family.pardy.familytime.event",
  "lexicon": 1
}
```
