This repository has been archived on 2026-07-19. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
espocrm-base/application/Espo/Modules/Crm/Resources/metadata/entityDefs/DocumentFolder.json
T
Taras Machyshyn c00bbdb0fe Merge commits
2018-10-29 16:32:58 +02:00

97 lines
2.3 KiB
JSON

{
"fields": {
"name": {
"type": "varchar",
"required": true,
"trim": true
},
"description": {
"type": "text"
},
"createdAt": {
"type": "datetime",
"readOnly": true
},
"modifiedAt": {
"type": "datetime",
"readOnly": true
},
"createdBy": {
"type": "link",
"readOnly": true
},
"modifiedBy": {
"type": "link",
"readOnly": true
},
"teams": {
"type": "linkMultiple",
"view": "views/fields/teams"
},
"parent": {
"type": "link"
},
"childList": {
"type": "jsonArray",
"notStorable": true
}
},
"links": {
"createdBy": {
"type": "belongsTo",
"entity": "User"
},
"modifiedBy": {
"type": "belongsTo",
"entity": "User"
},
"teams": {
"type": "hasMany",
"entity": "Team",
"relationName": "entityTeam",
"layoutRelationshipsDisabled": true
},
"parent": {
"type": "belongsTo",
"foreign": "children",
"entity": "DocumentFolder"
},
"children": {
"type": "hasMany",
"foreign": "parent",
"entity": "DocumentFolder"
},
"documents": {
"type": "hasMany",
"foreign": "folder",
"entity": "Document"
}
},
"collection": {
"orderBy": "parent",
"order": "asc"
},
"additionalTables": {
"DocumentFolderPath": {
"fields": {
"id": {
"type": "id",
"dbType": "int",
"len": "11",
"autoincrement": true
},
"ascendorId": {
"type": "varchar",
"len": "100",
"index": true
},
"descendorId" : {
"type": "varchar",
"len": "24",
"index": true
}
}
}
}
}