# us.polhem.skywrite.collection

> A record containing user settings for how to manage a collection in Skywrite.

- Kind: record
- Record key: nsid
- Authority: skywrite.polhem.us
- Lexicon: 1
- Published by [skywrite.polhem.us](https://lexicon.garden/identity/did:plc:prku2qgbkcu2tkjimf7zqfpz), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:prku2qgbkcu2tkjimf7zqfpz/us.polhem.skywrite.collection)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:prku2qgbkcu2tkjimf7zqfpz/us.polhem.skywrite.collection/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:prku2qgbkcu2tkjimf7zqfpz/us.polhem.skywrite.collection/analytics)

## Record (`us.polhem.skywrite.collection`)

Type: record · key nsid

### Properties

- `backlinks` (array): Records from other collections that link to this collection's records, shown in the record editor and table views.
  - `items` (ref)
    - Reference: `us.polhem.skywrite.defs#backlink`
- `creatable` (boolean): New records can be made in the collection. Absent: true.
- `customColumns` (array): Custom column definitions for the collection's table view.
  - `items` (ref)
    - Reference: `us.polhem.skywrite.defs#customColumn`
- `deletable` (boolean): Its records can be deleted. Absent: true.
- `editable` (boolean): Its records can be changed. Absent: true. Bluesky’s app view ignores edits, so Skywrite’s defaults make most of its collections read-only.
- `editorContentFields` (array): Ordered list of field names for the main editor area.
  - `items` (string)
- `editorMetaFields` (array): Ordered list of field names for the secondary editor area.
  - `items` (string)
- `pluralLabel` (string): Plural noun describing multiple of the collection's records.
  - Constraints: minLength: 1, maxLength: 640, maxGraphemes: 64
- `previewFields` (ref): Preview field definitions for records in this collection.
  - Reference: `us.polhem.skywrite.defs#previewFields`
- `quickCompose` (ref): 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.
  - Reference: `us.polhem.skywrite.defs#quickCompose`
- `references` (array): The collection each of the record's link fields points into, so the editor offers that collection's records to pick.
  - `items` (ref)
    - Reference: `us.polhem.skywrite.defs#reference`
- `richTextFields` (array): Text written in one of the record's fields with a rich text editor, which fills in others from it.
  - `items` (ref)
    - Reference: `us.polhem.skywrite.defs#richText`
- `singularLabel` (string, required): Singular noun describing one of the collection's records.
  - Constraints: minLength: 1, maxLength: 640, maxGraphemes: 64
- `tableColumnFields` (array): Ordered list of table columns (field names or custom column names).
  - `items` (string)

## Schema

```json
{
  "$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": {
          "backlinks": {
            "description": "Records from other collections that link to this collection's records, shown in the record editor and table views.",
            "items": {
              "ref": "us.polhem.skywrite.defs#backlink",
              "type": "ref"
            },
            "type": "array"
          },
          "creatable": {
            "description": "New records can be made in the collection. Absent: true.",
            "type": "boolean"
          },
          "customColumns": {
            "description": "Custom column definitions for the collection's table view.",
            "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": {
            "description": "Ordered list of field names for the main editor area.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "editorMetaFields": {
            "description": "Ordered list of field names for the secondary editor area.",
            "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": {
            "description": "Preview field definitions for records in this collection.",
            "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"
          },
          "references": {
            "description": "The collection each of the record's link fields points into, so the editor offers that collection's records to pick.",
            "items": {
              "ref": "us.polhem.skywrite.defs#reference",
              "type": "ref"
            },
            "type": "array"
          },
          "richTextFields": {
            "description": "Text written in one of the record's fields with a rich text editor, which fills in others from it.",
            "items": {
              "ref": "us.polhem.skywrite.defs#richText",
              "type": "ref"
            },
            "type": "array"
          },
          "singularLabel": {
            "description": "Singular noun describing one of the collection's records.",
            "maxGraphemes": 64,
            "maxLength": 640,
            "minLength": 1,
            "type": "string"
          },
          "tableColumnFields": {
            "description": "Ordered list of table columns (field names or custom column names).",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "singularLabel"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "us.polhem.skywrite.collection",
  "lexicon": 1
}
```
