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/Resources/metadata/entityDefs/Attachment.json
T
Yuri Kuznetsov 8fa0fae265 add indexes
2014-12-02 16:13:00 +02:00

59 lines
1.2 KiB
JSON

{
"fields": {
"name": {
"type": "varchar",
"required": true
},
"type": {
"type": "varchar",
"maxLength": 36
},
"size": {
"type": "int",
"min": 0
},
"parent": {
"type": "linkParent"
},
"createdAt": {
"type": "datetime",
"readOnly": true
},
"createdBy": {
"type": "link",
"readOnly": true
},
"contents": {
"type": "text",
"notStorable": true
},
"role": {
"type": "varchar",
"maxLength": 36
},
"global": {
"type": "bool",
"default": false
}
},
"links": {
"createdBy": {
"type": "belongsTo",
"entity": "User"
},
"parent": {
"type": "belongsToParent",
"foreign": "attachments"
}
},
"collection": {
"sortBy": "createdAt",
"asc": false
},
"indexes": {
"parent": {
"columns": ["parentType", "parentId"]
}
}
}