{
  "$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
}
