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/Template.json
T
2015-07-13 15:22:48 +03:00

89 lines
1.9 KiB
JSON

{
"fields": {
"name": {
"type": "varchar",
"required": true
},
"body": {
"type": "text",
"view": "Fields.Wysiwyg"
},
"header": {
"type": "text",
"view": "Fields.Wysiwyg"
},
"footer": {
"type": "text",
"view": "Fields.Wysiwyg",
"tooltip": true
},
"entityType": {
"type": "enum",
"required": true,
"translation": "Global.scopeNames",
"view": "Fields.EntityType"
},
"leftMargin": {
"type": "float",
"default": 10
},
"rightMargin": {
"type": "float",
"default": 10
},
"topMargin": {
"type": "float",
"default": 10
},
"bottomMargin": {
"type": "float",
"default": 25
},
"printFooter": {
"type": "bool"
},
"footerPosition": {
"type": "float",
"default": 15
},
"teams": {
"type": "linkMultiple"
},
"createdAt": {
"type": "datetime",
"readOnly": true
},
"modifiedAt": {
"type": "datetime",
"readOnly": true
},
"createdBy": {
"type": "link",
"readOnly": true
},
"modifiedBy": {
"type": "link",
"readOnly": true
}
},
"links": {
"teams": {
"type": "hasMany",
"entity": "Team",
"relationName": "entityTeam"
},
"createdBy": {
"type": "belongsTo",
"entity": "User"
},
"modifiedBy": {
"type": "belongsTo",
"entity": "User"
}
},
"collection": {
"sortBy": "name",
"asc": true
}
}