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
2016-02-11 12:48:33 +02:00

82 lines
1.8 KiB
JSON

{
"fields": {
"name": {
"type": "varchar",
"required": true,
"trim": true
},
"subject": {
"type": "varchar"
},
"body": {
"type": "text",
"view": "views/fields/wysiwyg"
},
"isHtml": {
"type": "bool",
"default": true
},
"oneOff": {
"type": "bool",
"default": false,
"tooltip": true
},
"attachments": {
"type": "linkMultiple",
"view": "views/fields/attachment-multiple"
},
"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"
},
"teams": {
"type": "hasMany",
"entity": "Team",
"relationName": "entityTeam"
},
"assignedUser": {
"type": "belongsTo",
"entity": "User"
},
"createdBy": {
"type": "belongsTo",
"entity": "User"
},
"modifiedBy": {
"type": "belongsTo",
"entity": "User"
}
},
"collection": {
"sortBy": "createdAt",
"asc": false
}
}