{
  "header": {
    "id": "DocumentData",
    "modelType": "document",
    "modelVersion": "27.0.2",
    "locales": [
      {
        "code": "en"
      },
      {
        "code": "de"
      }
    ],
    "labels": [],
    "annotations": [
      {
        "name": "roles",
        "value": "broker,broker-manager,client-manager"
      }
    ],
    "modelReferences": []
  },
  "content": {
    "modelInfo": {
      "name": "DocumentData",
      "immutable": false
    },
    "modelConfig": {
      "decimalSeparator": ".",
      "timeZone": "Europe/Berlin",
      "conditionLanguage": {
        "code": "en_US"
      }
    },
    "modelRoot": {
      "rootGroups": [
        {
          "type": "Group",
          "id": "group_8e8d7",
          "name": "Documents",
          "Group": {
            "repeatability": 1,
            "elements": [
              {
                "type": "Group",
                "id": "group_4efd6",
                "name": "Documents",
                "Group": {
                  "repeatability": 100,
                  "elements": [
                    {
                      "type": "Group",
                      "id": "attachment_25db0",
                      "name": "Attachments",
                      "annotations": {
                        "document-attachment-group": ""
                      },
                      "externalDescription": [
                        {
                          "locale": "en",
                          "text": "Please upload any necessary  documents."
                        },
                        {
                          "locale": "de",
                          "text": "Please upload any necessary any  documents."
                        }
                      ],
                      "internalDescription": [
                        {
                          "locale": "en",
                          "text": "Please upload any necessary documents."
                        },
                        {
                          "locale": "de",
                          "text": "Please upload any necessary documents."
                        }
                      ],
                      "Group": {
                        "repeatability": 1,
                        "usageType": "attachment",
                        "elements": [
                          {
                            "type": "Field",
                            "id": "attachmentField_8ed32",
                            "name": "original_filename",
                            "Field": {
                              "fieldType": {
                                "type": "StringType"
                              }
                            }
                          },
                          {
                            "type": "Field",
                            "id": "attachmentField_e889f",
                            "name": "internal_filename",
                            "Field": {
                              "fieldType": {
                                "type": "StringType"
                              }
                            }
                          },
                          {
                            "type": "Field",
                            "id": "attachmentField_11dff",
                            "name": "content",
                            "Field": {
                              "fieldType": {
                                "type": "StringType",
                                "StringType": {
                                  "lineBreaksPermitted": true,
                                  "noValueValidation": true
                                }
                              }
                            }
                          },
                          {
                            "type": "Field",
                            "id": "attachmentField_b5e92",
                            "name": "attachment_id",
                            "Field": {
                              "fieldType": {
                                "type": "StringType"
                              }
                            }
                          },
                          {
                            "type": "Field",
                            "id": "attachmentField_b13f7",
                            "name": "size",
                            "Field": {
                              "fieldType": {
                                "type": "NumberType"
                              }
                            }
                          },
                          {
                            "type": "Field",
                            "id": "attachmentField_e77ce",
                            "name": "mime_type",
                            "Field": {
                              "fieldType": {
                                "type": "StringType"
                              }
                            }
                          },
                          {
                            "type": "Field",
                            "id": "attachmentField_d46d9",
                            "name": "category",
                            "Field": {
                              "fieldType": {
                                "type": "StringType"
                              }
                            }
                          },
                          {
                            "type": "Field",
                            "id": "attachmentField_c9f9d",
                            "name": "description",
                            "Field": {
                              "fieldType": {
                                "type": "StringType"
                              }
                            }
                          },
                          {
                            "type": "Rule",
                            "id": "attachmentRule_e11e2",
                            "name": "AttachmentInternalFilenameRequired",
                            "Rule": {
                              "errorEntityId": "attachmentField_e889f",
                              "errorCode": "Error attachmentRule_e11e2",
                              "errorCondition": "GroupFilled(RuleGroup) and FieldNotFilled(internal_filename)",
                              "severity": "ERROR",
                              "errorMessage": [
                                {
                                  "locale": "en",
                                  "text": "Internal Error: Field internal_filename of customType attachment is not filled."
                                },
                                {
                                  "locale": "de",
                                  "text": "Internal Error: Field internal_filename of customType attachment is not filled."
                                }
                              ]
                            }
                          },
                          {
                            "type": "Rule",
                            "id": "attachmentRule_e7d5e",
                            "name": "AttachmentMimeTypeRequired",
                            "Rule": {
                              "errorEntityId": "attachmentField_e77ce",
                              "errorCode": "Error attachmentRule_e7d5e",
                              "errorCondition": "GroupFilled(RuleGroup) and FieldNotFilled(mime_type)",
                              "severity": "ERROR",
                              "errorMessage": [
                                {
                                  "locale": "en",
                                  "text": "Internal Error: Field mime_type of customType attachment is not filled."
                                },
                                {
                                  "locale": "de",
                                  "text": "Internal Error: Field mime_type of customType attachment is not filled."
                                }
                              ]
                            }
                          },
                          {
                            "type": "Rule",
                            "id": "attachmentRule_1ab39",
                            "name": "AttachmentIdOrContentFilled",
                            "Rule": {
                              "errorEntityId": "attachmentField_11dff",
                              "errorCode": "Error attachmentRule_1ab39",
                              "errorCondition": "GroupFilled(RuleGroup) and NotExactlyOneFieldFilled(attachment_id, content)",
                              "severity": "ERROR",
                              "errorMessage": [
                                {
                                  "locale": "en",
                                  "text": "Internal Error: Either attachment_id or content must be filled in a customType attachment, but not both."
                                },
                                {
                                  "locale": "de",
                                  "text": "Internal Error: Either attachment_id or content must be filled in a customType attachment, but not both."
                                }
                              ]
                            }
                          },
                          {
                            "type": "Rule",
                            "id": "attachmentRule_9dcee",
                            "name": "SizeOfContentFilled",
                            "Rule": {
                              "errorEntityId": "attachmentField_11dff",
                              "errorCode": "Error attachmentRule_9dcee",
                              "errorCondition": "FieldFilled(content) and FieldNotFilled(size)",
                              "severity": "ERROR",
                              "errorMessage": [
                                {
                                  "locale": "en",
                                  "text": "Internal Error: If the content is filled, the size must be also filled."
                                },
                                {
                                  "locale": "de",
                                  "text": "Internal Error: If the content is filled, the size must be also filled."
                                }
                              ]
                            }
                          }
                        ]
                      }
                    }
                  ]
                }
              }
            ]
          }
        }
      ]
    }
  }
}
