118 lines
2.9 KiB
JSON
Executable File
118 lines
2.9 KiB
JSON
Executable File
{
|
|
"fields": {
|
|
"name": {
|
|
"type": "varchar",
|
|
"required": true
|
|
},
|
|
"status": {
|
|
"type": "enum",
|
|
"options": ["Planned", "Held", "Not Held"]
|
|
},
|
|
"dateStart": {
|
|
"type": "datetime",
|
|
"required": true,
|
|
"default": "javascript: return this.dateTime.getNow(15);"
|
|
},
|
|
"dateEnd": {
|
|
"type": "datetime",
|
|
"required": true,
|
|
"after": "dateStart"
|
|
},
|
|
"duration": {
|
|
"type": "duration",
|
|
"start": "dateStart",
|
|
"end": "dateEnd",
|
|
"options": [0, 900, 1800, 3600, 7200, 10800, 86400],
|
|
"default": 3600
|
|
},
|
|
"description": {
|
|
"type": "text"
|
|
},
|
|
"parent": {
|
|
"type": "linkParent"
|
|
},
|
|
"users": {
|
|
"type": "linkMultiple",
|
|
"disabled": true,
|
|
"readOnly": true
|
|
},
|
|
"contacts": {
|
|
"type": "linkMultiple",
|
|
"disabled": true,
|
|
"readOnly": true
|
|
},
|
|
"leads": {
|
|
"type": "linkMultiple",
|
|
"disabled": true,
|
|
"readOnly": true
|
|
},
|
|
"createdAt": {
|
|
"type": "datetime",
|
|
"readOnly": true
|
|
},
|
|
"modifiedAt": {
|
|
"type": "datetime",
|
|
"readOnly": true
|
|
},
|
|
"createdBy": {
|
|
"type": "link",
|
|
"readOnly": true
|
|
},
|
|
"modifiedBy": {
|
|
"type": "link",
|
|
"readOnly": true
|
|
},
|
|
"assignedUser": {
|
|
"type": "link",
|
|
"required": true,
|
|
"default": "javascript: return {assignedUserId: this.getUser().id, assignedUserName: this.getUser().get(\"name\")};"
|
|
},
|
|
"teams": {
|
|
"type": "linkMultiple"
|
|
}
|
|
},
|
|
"links": {
|
|
"createdBy": {
|
|
"type": "belongsTo",
|
|
"entity": "User"
|
|
},
|
|
"modifiedBy": {
|
|
"type": "belongsTo",
|
|
"entity": "User"
|
|
},
|
|
"assignedUser": {
|
|
"type": "belongsTo",
|
|
"entity": "User"
|
|
},
|
|
"teams": {
|
|
"type": "hasMany",
|
|
"entity": "Team"
|
|
},
|
|
"users": {
|
|
"type": "hasMany",
|
|
"entity": "User",
|
|
"foreign": "meetings"
|
|
},
|
|
"contacts": {
|
|
"type": "hasMany",
|
|
"entity": "Contact",
|
|
"foreign": "meetings"
|
|
},
|
|
"leads": {
|
|
"type": "hasMany",
|
|
"entity": "Lead",
|
|
"foreign": "meetings"
|
|
},
|
|
"parent": {
|
|
"type": "belongsToParent",
|
|
"entities": ["Account", "Opportunity", "Case"],
|
|
"foreign": "meetings"
|
|
}
|
|
},
|
|
"collection": {
|
|
"sortBy": "dateStart",
|
|
"asc": false,
|
|
"boolFilters": ["onlyMy", "planned"]
|
|
}
|
|
}
|