{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "entry": {
      "description": "One preferred brand and the product areas in which it is preferred. Brand preferences for every product area, clothing included, are kept here. The same brand is kept as one item, with its categories merged.",
      "properties": {
        "brand": {
          "description": "The brand name.",
          "maxGraphemes": 256,
          "maxLength": 2560,
          "type": "string"
        },
        "categories": {
          "description": "List of the product areas in which this brand is preferred (open vocabulary). Omit it when unknown.",
          "items": {
            "description": "One item of the list of the product areas in which this brand is preferred.",
            "knownValues": [
              "electronics",
              "groceries",
              "fashion",
              "home_goods",
              "pet_supplies",
              "sports"
            ],
            "maxGraphemes": 64,
            "maxLength": 640,
            "type": "string"
          },
          "maxLength": 100,
          "type": "array"
        }
      },
      "type": "object"
    },
    "main": {
      "description": "The categories bought often and the way buying decisions are made. Each preferred brand is one item of this section, with the product areas in which it is preferred.",
      "key": "any",
      "record": {
        "properties": {
          "_meta": {
            "ref": "ai.newnal.mydata.defs#recordMeta",
            "type": "ref"
          },
          "data": {
            "closed": true,
            "refs": [
              "#section",
              "#entry"
            ],
            "type": "union"
          }
        },
        "required": [
          "data",
          "_meta"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "section": {
      "description": "The categories bought often and the way buying decisions are made. Each preferred brand is one item of this section, with the product areas in which it is preferred.",
      "properties": {
        "shoppingCategories": {
          "description": "List of the product categories bought or browsed often.",
          "items": {
            "description": "One item of the list of the product categories bought or browsed often.",
            "knownValues": [
              "electronics",
              "groceries",
              "fashion",
              "home_goods",
              "pet_supplies",
              "sports"
            ],
            "maxGraphemes": 64,
            "maxLength": 640,
            "type": "string"
          },
          "maxLength": 100,
          "type": "array"
        },
        "shoppingStyle": {
          "description": "The user's general shopping and buying tendency, including planned and impulsive buying.",
          "knownValues": [
            "price_comparison",
            "convenience_first",
            "brand_loyal",
            "quality_first"
          ],
          "maxGraphemes": 64,
          "maxLength": 640,
          "type": "string"
        }
      },
      "type": "object"
    }
  },
  "id": "ai.newnal.mydata.lifestyleShopping",
  "lexicon": 1
}
