{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://schemas.apps.smartmate.io/fields/types/relationship/relationship.props.schema.json",
  "$$target": "https://schemas.apps.smartmate.io/fields/types/relationship/relationship.props.schema.json",
  "title": "relationship props",
  "allOf": [{"$ref": "https://schemas.apps.smartmate.io/fields/types/_base/_base.props.schema.json"}],
  "properties": {
    "type": {
      "$id": "#/properties/type",
      "type": "string",
      "enum": ["relationship"]
    },
    "table": {
      "$id": "#/properties/table",
      "title": "table",
      "$ref": "https://schemas.apps.smartmate.io/patterns/nestedIdentification.schema.json"
    },
    "label": {},
    "description": {},
    "required": {},
    "readOnly": {},
    "hidden": {},
    "validations": {},
    "filter": {
      "description": "Filter which rows of the target table should be displayed for selecting the relationship",
      "$ref": "https://schemas.apps.smartmate.io/tables/filter/filter.schema.json"
    },
    "options": {
      "type": "object",
      "properties": {
        "addNew": {
          "description": "Whether to display an ``Add New`` button",
          "type": "boolean",
          "default": false
        }
      },
      "additionalProperties": false
    }
  },
  "additionalProperties": false
}
