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/EmailTemplate.json
T
Yuri Kuznetsov e6407bf292 cleanup
2023-05-04 16:48:55 +03:00

93 lines
2.2 KiB
JSON

{
"fields": {
"name": {
"type": "varchar",
"required": true
},
"subject": {
"type": "varchar"
},
"body": {
"type": "wysiwyg",
"view": "views/email-template/fields/body",
"useIframe": true
},
"isHtml": {
"type": "bool",
"default": true,
"inlineEditDisabled": true
},
"oneOff": {
"type": "bool",
"default": false,
"tooltip": true
},
"attachments": {
"type": "attachmentMultiple"
},
"category": {
"type": "link",
"view": "views/fields/link-category-tree"
},
"assignedUser": {
"type": "link"
},
"teams": {
"type": "linkMultiple"
},
"createdAt": {
"type": "datetime",
"readOnly": true
},
"modifiedAt": {
"type": "datetime",
"readOnly": true
},
"createdBy": {
"type": "link",
"readOnly": true,
"view": "views/fields/user"
},
"modifiedBy": {
"type": "link",
"readOnly": true,
"view": "views/fields/user"
}
},
"links": {
"attachments": {
"type": "hasChildren",
"entity": "Attachment",
"foreign": "parent"
},
"category": {
"type": "belongsTo",
"foreign": "emailTemplates",
"entity": "EmailTemplateCategory"
},
"teams": {
"type": "hasMany",
"entity": "Team",
"relationName": "entityTeam"
},
"assignedUser": {
"type": "belongsTo",
"entity": "User"
},
"createdBy": {
"type": "belongsTo",
"entity": "User"
},
"modifiedBy": {
"type": "belongsTo",
"entity": "User"
}
},
"collection": {
"orderBy": "createdAt",
"order": "desc",
"textFilterFields": ["name", "subject"]
},
"optimisticConcurrencyControl": true
}