# ai.newnal.mydata.valuesAndGoalsGoals

> The history of goals in areas such as personal life, work, finances and health. It is a summary for understanding the user's goals and holds no goal management structure such as detailed measures, milestones or target figures per nutrient.

- Kind: record
- Record key: tid
- Authority: mydata.newnal.ai
- Lexicon: 1
- Published by [newnal-platform.newnal.id](https://lexicon.garden/identity/did:plc:vciktevzoffubdvdaajz2yp3), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:vciktevzoffubdvdaajz2yp3/ai.newnal.mydata.valuesAndGoalsGoals)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:vciktevzoffubdvdaajz2yp3/ai.newnal.mydata.valuesAndGoalsGoals/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:vciktevzoffubdvdaajz2yp3/ai.newnal.mydata.valuesAndGoalsGoals/analytics)

## Record (`ai.newnal.mydata.valuesAndGoalsGoals`)

Type: record · key tid

### Properties

- `_meta` (ref, required)
  - Reference: `ai.newnal.mydata.defs#recordMeta`
- `data` (union, required)
  - One of (closed): `#entry`

## #entry (`ai.newnal.mydata.valuesAndGoalsGoals#entry`)

Type: object

One goal.

### Properties

- `description` (string): A free-form description of the goal.
  - Constraints: maxLength: 30000, maxGraphemes: 3000
- `domain` (string): The area this goal belongs to, such as daily life, work or finances.
  - Constraints: maxLength: 640, maxGraphemes: 64, knownValues: home | career | health | finance | learning | family | relationship | travel | creative
- `status` (string): The progress status of the goal.
  - Constraints: maxLength: 640, maxGraphemes: 64, knownValues: active | completed | paused | planned
- `time` (union): The reference for reading the goal's period. When it is a point in time, it is the reference point for reading timeHorizon (when the goal was set); when it is an interval, it is the goal's period (from the start to the deadline, the deadline being optional). Not the time the record was created (_meta.createdAt).
  - One of (closed): `ai.newnal.mydata.defs#instantTime`, `ai.newnal.mydata.defs#intervalTime`
- `timeHorizon` (string): The expected duration or deadline of the goal.
  - Constraints: maxLength: 2560, maxGraphemes: 256
- `title` (string): The title of the goal.
  - Constraints: maxLength: 2560, maxGraphemes: 256

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "entry": {
      "description": "One goal.",
      "properties": {
        "description": {
          "description": "A free-form description of the goal.",
          "maxGraphemes": 3000,
          "maxLength": 30000,
          "type": "string"
        },
        "domain": {
          "description": "The area this goal belongs to, such as daily life, work or finances.",
          "knownValues": [
            "home",
            "career",
            "health",
            "finance",
            "learning",
            "family",
            "relationship",
            "travel",
            "creative"
          ],
          "maxGraphemes": 64,
          "maxLength": 640,
          "type": "string"
        },
        "status": {
          "description": "The progress status of the goal.",
          "knownValues": [
            "active",
            "completed",
            "paused",
            "planned"
          ],
          "maxGraphemes": 64,
          "maxLength": 640,
          "type": "string"
        },
        "time": {
          "closed": true,
          "description": "The reference for reading the goal's period. When it is a point in time, it is the reference point for reading timeHorizon (when the goal was set); when it is an interval, it is the goal's period (from the start to the deadline, the deadline being optional). Not the time the record was created (_meta.createdAt).",
          "refs": [
            "ai.newnal.mydata.defs#instantTime",
            "ai.newnal.mydata.defs#intervalTime"
          ],
          "type": "union"
        },
        "timeHorizon": {
          "description": "The expected duration or deadline of the goal.",
          "maxGraphemes": 256,
          "maxLength": 2560,
          "type": "string"
        },
        "title": {
          "description": "The title of the goal.",
          "maxGraphemes": 256,
          "maxLength": 2560,
          "type": "string"
        }
      },
      "type": "object"
    },
    "main": {
      "description": "The history of goals in areas such as personal life, work, finances and health. It is a summary for understanding the user's goals and holds no goal management structure such as detailed measures, milestones or target figures per nutrient.",
      "key": "tid",
      "record": {
        "properties": {
          "_meta": {
            "ref": "ai.newnal.mydata.defs#recordMeta",
            "type": "ref"
          },
          "data": {
            "closed": true,
            "refs": [
              "#entry"
            ],
            "type": "union"
          }
        },
        "required": [
          "data",
          "_meta"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "ai.newnal.mydata.valuesAndGoalsGoals",
  "lexicon": 1
}
```
