{
    "name": "relation.dmd",
    "model": {
        "proxy": {
            "defaultHive": "ip2-services/",
            "url": "ip2dmdProxy.aspx"
        },
        "API": {
            "eventHandler": "ip2-services/ip2dmdProxy.aspx"
        },
        "entities": {
            "WSHRELET00": {
                "title": {
                    "da": "Relation",
                    "en": "Relation"
                },
                "permission": {
                    "locked": {
                        "form": false,
                        "grid": false
                    },
                    "add": {
                        "form": false,
                        "grid": false
                    },
                    "edit": {
                        "form": true,
                        "grid": true
                    },
                    "remove": {
                        "grid": true,
                        "form": false
                    }
                },
                "cid": "RE",
                "idColumn": "RELRELTKN",
                "columns": {
                    "RELRELTKN": {
                        "title": {
                            "da": "ID",
                            "en": "ID"
                        },
                        "type": "integer"
                    },
                    "RELPNTTYP": {
                        "title": {
                            "da": "Type of parent",
                            "en": "Type of parent"
                        },
                        "type": "integer",
                        "uitype": "enum",
                        "enum": "relation_parent_type",
                        "preprocess": [
                            {
                                "regexp": "^",
                                "replace": "webr~relation_parent_type~"
                            }
                        ],
                        "postprocess": [
                            {
                                "search": "webr~relation_parent_type~",
                                "replace": ""
                            }
                        ]
                    },
                    "RELPNTTKN": {
                        "title": {
                            "da": "Token for parent",
                            "en": "Token for parent"
                        },
                        "type": "integer"
                    },
                    "RELPNTLNG": {
                        "title": {
                            "da": "Languagecode for parent",
                            "en": "Languagecode for parent"
                        },
                        "type": "char(2)"
                    },
                    "RELCHDTYP": {
                        "title": {
                            "da": "Type of child",
                            "en": "Type of child"
                        },
                        "type": "integer"
                    },
                    "RELCHDTKN": {
                        "title": {
                            "da": "Token for child",
                            "en": "Token for child"
                        },
                        "type": "integer"
                    },
                    "RELCHDSEQ": {
                        "title": {
                            "da": "Child sequence",
                            "en": "Child sequence"
                        },
                        "type": "integer"
                    },
                    "RELCHDPROP": {
                        "title": {
                            "da": "Child properties",
                            "en": "Child properties"
                        },
                        "type": "varchar(32000)"
                    }
                },
                "ui": {
                    "grids": {
                        "portfolio": {
                            "sort": "RELPNTTKN, RELPNTTYP",
                            "columns": [
                                {
                                    "name": "RELRELTKN",
                                    "width": 80,
                                    "hide" : true
                                },
                                {
                                    "name": "RELPNTTYP",
                                    "align":  "left"
                                },
                                {
                                    "name": "RELPNTTKN",
                                    "align":  "left"
                                },
                                {
                                    "name": "RELPNTLNG",
                                    "hide" : true
                                },
                                {
                                    "name": "RELCHDTYP",
                                    "hide" : true
                                },
                                {
                                    "name": "RELCHDTKN",
                                    "hide" : true
                                },
                                {
                                    "name": "RELCHDSEQ",
                                    "hide" : true
                                },
                                {
                                    "name": "RELCHDPROP",
                                    "hide": true,
                                }
                            ]
                        }
                    }
                }
            }
        },
        "relations": []
    }
}
