{ "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" ] }, "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" } } }, "indexes": { "createdAt": { "type": "index", "columns": ["createdAt"] }, "parent": { "type": "index", "columns": ["parentId", "parentType"] } } }