Files
upstream-mirror 7cc7e6b4f3
Some checks failed
Test / Test on PHP 8.3 (push) Failing after 5s
Test / Test on PHP 8.4 (push) Failing after 4s
Test / Test on PHP 8.5 (push) Failing after 3s
TypeScript static analysis / TypeScript check (push) Failing after 14s
Test Integration on MySQL / Test on PHP 8.3 (push) Failing after 1s
Test Integration on MySQL / Test on PHP 8.5 (push) Failing after 1s
Test Integration on PostgreSQL / Test on PHP 8.4 fix (push) Failing after 1s
Test Integration on PostgreSQL / Test on PHP 8.4 master (push) Failing after 1s
snapshot of https://github.com/espocrm/espocrm.git (master, 2026-09-18; blobs > 131072B omitted)
2026-09-18 04:19:15 +05:00

178 lines
4.7 KiB
JSON

{
"fields": {
"name": {
"type": "varchar",
"required": true,
"view": "crm:views/document/fields/name",
"pattern": "$noBadCharacters"
},
"file": {
"type": "file",
"required": true,
"view": "crm:views/document/fields/file",
"accept": [
".pdf",
".odt",
".ods",
".odp",
".docx",
".xlsx",
".pptx",
".doc",
".xls",
".ppt",
".rtf",
".csv",
".md",
".txt"
],
"audited": true
},
"status": {
"type": "enum",
"options": [
"Draft",
"Active",
"Canceled",
"Expired"
],
"style": {
"Active": "primary",
"Canceled": "info",
"Expired": "danger"
},
"displayAsLabel": true,
"labelType": "state",
"default": "Active",
"audited": true,
"fieldManagerAdditionalParamList": [
{
"name": "activeOptions",
"view": "views/admin/field-manager/fields/not-actual-options"
}
],
"activeOptions": ["Active"],
"customizationOptionsReferenceDisabled": true
},
"type": {
"type": "enum",
"options": ["", "Contract", "NDA", "EULA", "License Agreement"],
"customizationOptionsReferenceDisabled": true,
"audited": true
},
"publishDate": {
"type": "date",
"required": true,
"default": "javascript: return this.dateTime.getToday();",
"audited": true
},
"expirationDate": {
"type": "date",
"after": "publishDate",
"audited": true
},
"description": {
"type": "text"
},
"createdAt": {
"type": "datetime",
"readOnly": true,
"fieldManagerParamList": [
"useNumericFormat"
]
},
"modifiedAt": {
"type": "datetime",
"readOnly": true,
"fieldManagerParamList": [
"useNumericFormat"
]
},
"createdBy": {
"type": "link",
"readOnly": true,
"view": "views/fields/user",
"fieldManagerParamList": []
},
"modifiedBy": {
"type": "link",
"readOnly": true,
"view": "views/fields/user",
"fieldManagerParamList": []
},
"assignedUser": {
"type": "link",
"view": "views/fields/assigned-user",
"audited": true
},
"teams": {
"type": "linkMultiple",
"view": "views/fields/teams"
},
"accounts": {
"type": "linkMultiple",
"importDisabled": true,
"exportDisabled": true,
"noLoad": true,
"directUpdateDisabled": true,
"layoutAvailabilityList": [
"filters"
]
},
"folder": {
"type": "link",
"view": "views/fields/link-category-tree",
"audited": true
}
},
"links": {
"accounts": {
"type": "hasMany",
"entity": "Account",
"foreign": "documents"
},
"opportunities": {
"type": "hasMany",
"entity": "Opportunity",
"foreign": "documents"
},
"leads": {
"type": "hasMany",
"entity": "Lead",
"foreign": "documents"
},
"contacts": {
"type": "hasMany",
"entity": "Contact",
"foreign": "documents"
},
"createdBy": {
"type": "belongsTo",
"entity": "User"
},
"modifiedBy": {
"type": "belongsTo",
"entity": "User"
},
"assignedUser": {
"type": "belongsTo",
"entity": "User"
},
"teams": {
"type": "hasMany",
"entity": "Team",
"relationName": "entityTeam",
"layoutRelationshipsDisabled": true
},
"folder": {
"type": "belongsTo",
"foreign": "documents",
"entity": "DocumentFolder"
}
},
"collection": {
"orderBy": "createdAt",
"order": "desc"
}
}