147 lines
3.4 KiB
JSON
147 lines
3.4 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"
|
|
},
|
|
"superParent": {
|
|
"type": "belongsToParent"
|
|
}
|
|
},
|
|
"collection": {
|
|
"sortBy": "number",
|
|
"asc": false
|
|
},
|
|
"streamRelated": {
|
|
"Account": [
|
|
"meetings",
|
|
"calls",
|
|
"tasks"
|
|
],
|
|
"Contact": [
|
|
"meetings",
|
|
"calls",
|
|
"tasks"
|
|
],
|
|
"Lead": [
|
|
"meetings",
|
|
"calls",
|
|
"tasks"
|
|
],
|
|
"Opportunity": [
|
|
"meetings",
|
|
"calls",
|
|
"tasks"
|
|
],
|
|
"Case": [
|
|
"meetings",
|
|
"calls",
|
|
"tasks"
|
|
]
|
|
},
|
|
"statusStyles": {
|
|
"Lead": {
|
|
"field" : "status",
|
|
"style" : {
|
|
"New" : "primary",
|
|
"Assigned" : "primary",
|
|
"In Process" : "primary",
|
|
"Converted" : "success",
|
|
"Recycled" : "danger",
|
|
"Dead" : "danger"
|
|
}
|
|
},
|
|
"Case" : {
|
|
"field" : "status",
|
|
"style" : {
|
|
"New" : "primary",
|
|
"Assigned" : "primary",
|
|
"Pending" : "default",
|
|
"Closed" : "success",
|
|
"Rejected" : "danger",
|
|
"Duplicate" : "danger"
|
|
}
|
|
},
|
|
"Opportunity" : {
|
|
"field" : "stage",
|
|
"style" : {
|
|
"Proposal/Price Quote": "primary",
|
|
"Negotiation/Review": "primary",
|
|
"Closed Won" : "success",
|
|
"Closed Lost" : "danger"
|
|
}
|
|
}
|
|
},
|
|
"statusFields": {
|
|
"Lead": "status",
|
|
"Case": "status",
|
|
"Opportunity": "stage"
|
|
},
|
|
"indexes": {
|
|
"createdAt": {
|
|
"type": "index",
|
|
"columns": ["createdAt"]
|
|
},
|
|
"parent": {
|
|
"type": "index",
|
|
"columns": ["parentId", "parentType"]
|
|
},
|
|
"parentAndSuperParent": {
|
|
"type": "index",
|
|
"columns": ["parentId", "parentType", "superParentId", "superParentType"]
|
|
}
|
|
}
|
|
}
|