{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A Prismaliser Prisma schema and graph layout snapshot.",
      "key": "tid",
      "record": {
        "properties": {
          "createdAt": {
            "description": "The time at which this snapshot was created.",
            "format": "datetime",
            "type": "string"
          },
          "name": {
            "description": "An optional name for the shared diagram.",
            "maxGraphemes": 80,
            "maxLength": 160,
            "type": "string"
          },
          "positions": {
            "description": "The saved positions of the diagram's nodes.",
            "items": {
              "ref": "#position",
              "type": "ref"
            },
            "maxLength": 5000,
            "type": "array"
          },
          "prismaVersion": {
            "description": "The Prisma version used to parse the schema.",
            "maxLength": 64,
            "type": "string"
          },
          "schema": {
            "accept": [
              "text/plain"
            ],
            "description": "The Prisma schema text used to render the diagram.",
            "maxSize": 500000,
            "type": "blob"
          }
        },
        "required": [
          "schema",
          "positions",
          "prismaVersion",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "position": {
      "description": "The saved canvas position of one diagram node.",
      "properties": {
        "id": {
          "description": "The identifier of the diagram node.",
          "maxLength": 512,
          "type": "string"
        },
        "x": {
          "description": "The horizontal node position in canvas coordinates.",
          "maximum": 10000000,
          "minimum": -10000000,
          "type": "integer"
        },
        "y": {
          "description": "The vertical node position in canvas coordinates.",
          "maximum": 10000000,
          "minimum": -10000000,
          "type": "integer"
        }
      },
      "required": [
        "id",
        "x",
        "y"
      ],
      "type": "object"
    }
  },
  "id": "app.prismaliser.schema",
  "lexicon": 1
}
