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
2015-06-11 10:52:14 +03:00

96 lines
2.2 KiB
JSON

{
"fields": {
"name": {
"type": "varchar",
"required": 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"
},
"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": {
"sortBy": "parent",
"asc": true
},
"additionalTables": {
"DocumentFolderPath": {
"fields": {
"id": {
"type": "id",
"dbType": "int",
"len": "11",
"autoincrement": true,
"unique" : true
},
"ascendorId": {
"type": "varchar",
"len": "100",
"index": true
},
"descendorId" : {
"type": "varchar",
"len": "24",
"index": true
}
}
}
}
}