{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A record containing user settings for how to manage a collection in Skywrite.",
      "key": "nsid",
      "record": {
        "properties": {
          "creatable": {
            "description": "New records can be made in the collection. Absent: true.",
            "type": "boolean"
          },
          "customColumns": {
            "description": "Table columns computed for each record with a field path, a chain of lookups or a template, like preview fields.",
            "items": {
              "ref": "us.polhem.skywrite.defs#customColumn",
              "type": "ref"
            },
            "type": "array"
          },
          "deletable": {
            "description": "Its records can be deleted. Absent: true.",
            "type": "boolean"
          },
          "editable": {
            "description": "Its records can be changed. Absent: true. Bluesky’s app view ignores edits, so Skywrite’s defaults make most of its collections read-only.",
            "type": "boolean"
          },
          "editorContentFields": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "editorMetaFields": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "pluralLabel": {
            "description": "Plural noun describing multiple of the collection's records.",
            "maxGraphemes": 64,
            "maxLength": 640,
            "minLength": 1,
            "type": "string"
          },
          "previewFields": {
            "ref": "us.polhem.skywrite.defs#previewFields",
            "type": "ref"
          },
          "quickCompose": {
            "description": "What a Quick Compose box on the dashboard asks for when writing a new record in the collection. Absent: worked out from the collection's lexicon.",
            "ref": "us.polhem.skywrite.defs#quickCompose",
            "type": "ref"
          },
          "relatedFields": {
            "description": "Records from other collections that link to this collection's records, shown in the record editor like fields.",
            "items": {
              "ref": "us.polhem.skywrite.defs#relatedField",
              "type": "ref"
            },
            "type": "array"
          },
          "richTextFields": {
            "description": "Text kept in two of the record's properties, one plain and one structured, edited together with a rich text editor.",
            "items": {
              "refs": [
                "us.polhem.skywrite.defs#richTextFacets",
                "us.polhem.skywrite.defs#richTextMarkdown"
              ],
              "type": "union"
            },
            "type": "array"
          },
          "singularLabel": {
            "description": "Singular noun describing one of the collection's records.",
            "maxGraphemes": 64,
            "maxLength": 640,
            "minLength": 1,
            "type": "string"
          },
          "tableColumnFields": {
            "description": "Columns in the table view, in order: the names of the collection's fields, or of its custom columns.",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "singularLabel"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "us.polhem.skywrite.collection",
  "lexicon": 1
}
