{
    "name": "filemanager.dmd",
    "model": {
        "proxy": {
            "defaultHive": "ip2-services/",
            "url": "ip2dmdProxy.aspx"
        },
        "API": {
            "eventHandler": "ip2-services/ip2dmdProxy.aspx"
        },
        "entities": {
            "WSHFILET00": {
                "title": {
                    "da": "Fil manager",
                    "en": "File manager"
                },
                "permission": {
                    "locked": {
                        "form": false,
                        "grid": false
                    },
                    "add": {
                        "form": false,
                        "grid": false
                    },
                    "edit": {
                        "form": true,
                        "grid": true
                    },
                    "remove": {
                        "grid": true,
                        "form": false
                    }
                },
                "cid": "F",
                "idColumn": "FILFILTKN",
                "columns": {
                    "FILFILTKN": {
                        "title": {
                            "da": "ID",
                            "en": "ID"
                        },
                        "type": "integer"
                    },
                    "FILCREATE": {
                        "title": {
                            "da": "Oprettet",
                            "en": "Created"
                        },
                        "type": "timestamp",
                        "uitype": "isotimestamp",
                        "default": "current timestamp"
                    },
                    "FILMODIFY" : {
                        "title": {
                            "da": "Modificeret",
                            "en": "Modification"
                        },
                        "type": "timestamp",
                        "uitype": "isotimestamp",
                        "default": "current timestamp"
                    },
                    "FILCRTBY": {
                        "title": {
                            "da": "Oprettet af",
                            "en": "Created by"
                        },
                        "type": "varchar(256)"
                    },
                    "FILMEDIA": {
                        "title": {
                            "da": "Medie",
                            "en": "Media"
                        },
                        "type": "varchar(256)"
                    },
                    "FILNAME": {
                        "title": {
                            "da": "Navn",
                            "en": "Name"
                        },
                        "type": "varchar(256)"
                    },
                    "FILHEAD": {
                        "title": {
                            "da": "Overskrit",
                            "en": "Header"
                        },
                        "type": "varchar(256)"
                    },
                    "FILSUB": {
                        "title": {
                            "da": "Overskrit 2",
                            "en": "Header 2"
                        },
                        "type": "varchar(256)"
                    },
                    "FILPATH": {
                        "title": {
                            "da": "Server sti",
                            "en": "Server path"
                        },
                        "type": "varchar(256)"
                    },
                    "FILORIPATH": {
                        "title": {
                            "da": "Original server sti",
                            "en": "Original server path"
                        },
                        "type": "varchar(256)"
                    },
                    "FILEXT": {
                        "title": {
                            "da": "Fil type",
                            "en": "File extension"
                        },
                        "type": "varchar(256)"
                    },
                    "FILWIDTH" : {
                        "title" : {
                            "da" : "Bredde",
                            "en" : "Width"
                        },
                        "type" : "integer"
                    },
                    "FILHEIGHT" : {
                        "title" : {
                            "da" : "Højde",
                            "en" : "Height"
                        },
                        "type" : "integer"
                    },
                    "FILSIZE" : {
                        "title" : {
                            "da" : "Størrelse",
                            "en" : "Size"
                        },
                        "type" : "integer"
                    },
                    "FILTAG": {
                        "title": {
                            "da": "Tags",
                            "en": "Tags"
                        },
                        "type": "varchar(256)"
                    },
                    "FILREL": {
                        "title": {
                            "da": "Relationer",
                            "en": "Relations"
                        },
                        "type": "integer"
                    }
                },
                "ui": {
                    "grids": {
                        "portfolio": {
                            "sort": "FILFILTKN DESC",
                            "columns": [
                                {
                                    "name": "FILFILTKN",
                                    "width": 50
                                },
                                {
                                    "name": "FILMEDIA",
                                    "width": 80,
                                    "align": "center",
                                    "uitype": "FileImg"
                                },
                                {
                                    "name": "FILNAME",
                                },
                                {
                                    "name": "FILCREATE",
                                },
                                {
                                    "name": "FILMODIFY",
                                },
                                {
                                    "name": "FILCRTBY",
                                },

                                {
                                    "name": "FILHEAD",
                                    "hidden" : true
                                },
                                {
                                    "name": "FILSUB",
                                    "hidden" : true
                                },
                                {
                                    "name": "FILPATH",
                                    "hidden": true
                                },
                                {
                                    "name": "FILORIPATH",
                                    "hidden": true
                                },
                                {
                                    "name": "FILEXT",
                                },
                                {
                                    "name": "FILWIDTH",
                                    "align": "left"
                                },
                                {
                                    "name": "FILHEIGHT",
                                    "align": "left"
                                },
                                {
                                    "name": "FILSIZE",
                                    "align": "left",
                                    "uitype": "FileSize"
                                },
                                {
                                    "name": "FILTAG",
                                    "width": 100,
                                },
                                {
                                    "name": "FILREL",
                                    "align": "left",
                                    "uitype": "FileRel"
                                }
                            ]
                        }
                    }
                }
            }
        },
        "relations": []
    }
}
