103 lines
2.2 KiB
JSON
103 lines
2.2 KiB
JSON
{
|
|
"fields": {
|
|
"post": {
|
|
"type": "text"
|
|
},
|
|
"data": {
|
|
"type": "jsonObject"
|
|
},
|
|
"type": {
|
|
"type": "varchar"
|
|
},
|
|
"parent": {
|
|
"type": "linkParent"
|
|
},
|
|
"attachments": {
|
|
"type": "linkMultiple",
|
|
"view": "Stream.Fields.AttachmentMultiple"
|
|
},
|
|
"number": {
|
|
"type": "autoincrement",
|
|
"index": true
|
|
},
|
|
"createdAt": {
|
|
"type": "datetime",
|
|
"readOnly": true
|
|
},
|
|
"modifiedAt": {
|
|
"type": "datetime",
|
|
"readOnly": true
|
|
},
|
|
"createdBy": {
|
|
"type": "link",
|
|
"readOnly": true
|
|
},
|
|
"modifiedBy": {
|
|
"type": "link",
|
|
"readOnly": true
|
|
}
|
|
},
|
|
"links": {
|
|
"createdBy": {
|
|
"type": "belongsTo",
|
|
"entity": "User"
|
|
},
|
|
"modifiedBy": {
|
|
"type": "belongsTo",
|
|
"entity": "User"
|
|
},
|
|
"attachments": {
|
|
"type": "hasChildren",
|
|
"entity": "Attachment",
|
|
"relationName": "Attachments",
|
|
"foreign": "parent"
|
|
},
|
|
"parent": {
|
|
"type": "belongsToParent",
|
|
"foreign": "notes"
|
|
}
|
|
},
|
|
"collection": {
|
|
"sortBy": "number",
|
|
"asc": false
|
|
},
|
|
"streamRelated": {
|
|
"Account": [
|
|
"meetings",
|
|
"calls",
|
|
"tasks",
|
|
"opportunities"
|
|
],
|
|
"Contact": [
|
|
"meetings",
|
|
"calls",
|
|
"tasks"
|
|
],
|
|
"Lead": [
|
|
"meetings",
|
|
"calls",
|
|
"tasks"
|
|
],
|
|
"Opportunity": [
|
|
"meetings",
|
|
"calls",
|
|
"tasks"
|
|
],
|
|
"Case": [
|
|
"meetings",
|
|
"calls",
|
|
"tasks"
|
|
]
|
|
},
|
|
"indexes": {
|
|
"createdAt": {
|
|
"type": "index",
|
|
"columns": ["createdAt"]
|
|
},
|
|
"parent": {
|
|
"type": "index",
|
|
"columns": ["parentId", "parentType"]
|
|
}
|
|
}
|
|
}
|