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/KnowledgeBaseArticle.json
T
2018-10-22 15:11:06 +03:00

118 lines
2.9 KiB
JSON

{
"fields": {
"name": {
"type": "varchar",
"required": true,
"trim": true
},
"status": {
"type": "enum",
"options": ["Draft", "In Review", "Published", "Archived"],
"view": "crm:views/knowledge-base-article/fields/status",
"default": "Draft"
},
"language": {
"type": "enum",
"view": "crm:views/knowledge-base-article/fields/language",
"default": "",
"customizationOptionsDisabled": true
},
"type": {
"type": "enum",
"options": ["Article"]
},
"portals": {
"type": "linkMultiple",
"tooltip": true
},
"publishDate": {
"type": "date"
},
"expirationDate": {
"type": "date",
"after": "publishDate"
},
"order": {
"type": "int",
"disableFormatting": true,
"textFilterDisabled": true
},
"description": {
"type": "text"
},
"createdAt": {
"type": "datetime",
"readOnly": true
},
"modifiedAt": {
"type": "datetime",
"readOnly": true
},
"createdBy": {
"type": "link",
"readOnly": true
},
"modifiedBy": {
"type": "link",
"readOnly": true
},
"assignedUser": {
"type": "link",
"view": "views/fields/assigned-user"
},
"teams": {
"type": "linkMultiple",
"view": "views/fields/teams"
},
"categories": {
"type": "linkMultiple",
"view": "views/fields/link-multiple-category-tree"
},
"attachments": {
"type": "attachmentMultiple"
},
"body": {
"type": "wysiwyg"
}
},
"links": {
"cases": {
"type": "hasMany",
"entity": "Case",
"foreign": "articles"
},
"portals": {
"type": "hasMany",
"entity": "Portal",
"foreign": "articles"
},
"createdBy": {
"type": "belongsTo",
"entity": "User"
},
"modifiedBy": {
"type": "belongsTo",
"entity": "User"
},
"assignedUser": {
"type": "belongsTo",
"entity": "User"
},
"teams": {
"type": "hasMany",
"entity": "Team",
"relationName": "entityTeam",
"layoutRelationshipsDisabled": true
},
"categories": {
"type": "hasMany",
"foreign": "articles",
"entity": "KnowledgeBaseCategory"
}
},
"collection": {
"orderBy": "order",
"order": "asc"
}
}