This repository has been archived on 2026-07-19. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
espocrm-base/application/Espo/Resources/metadata/entityDefs/Portal.json
T
2023-08-17 12:14:19 +03:00

164 lines
4.2 KiB
JSON

{
"fields": {
"name": {
"type": "varchar",
"maxLength": 100,
"pattern": "$noBadCharacters"
},
"logo": {
"type": "image"
},
"url": {
"type": "url",
"notStorable": true,
"readOnly": true
},
"customId": {
"type": "varchar",
"maxLength": 36,
"view": "views/portal/fields/custom-id",
"index": true
},
"isActive": {
"type": "bool",
"default": true
},
"isDefault": {
"type": "bool",
"default": false,
"notStorable": true
},
"portalRoles": {
"type": "linkMultiple"
},
"tabList": {
"type": "array",
"view": "views/portal/fields/tab-list",
"validationList": [
"array",
"required"
],
"suppressValidationList": [
"arrayOfString"
],
"doNotStoreArrayValues": true
},
"quickCreateList": {
"type": "array",
"translation": "Global.scopeNames",
"view": "views/portal/fields/quick-create-list"
},
"companyLogo": {
"type": "image"
},
"theme": {
"type": "enum",
"view": "views/preferences/fields/theme",
"translation": "Global.themes"
},
"themeParams": {
"type": "jsonObject"
},
"language": {
"type": "enum",
"view": "views/preferences/fields/language"
},
"timeZone": {
"type": "enum",
"view": "views/preferences/fields/time-zone"
},
"dateFormat": {
"type": "enum",
"view": "views/preferences/fields/date-format"
},
"timeFormat": {
"type": "enum",
"view": "views/preferences/fields/time-format"
},
"weekStart": {
"type": "enumInt",
"options": [0, 1, 2, 3, 4, 5, 6],
"default": -1,
"view": "views/preferences/fields/week-start"
},
"defaultCurrency": {
"type": "enum",
"view": "views/preferences/fields/default-currency"
},
"dashboardLayout": {
"type": "jsonArray",
"view": "views/settings/fields/dashboard-layout"
},
"dashletsOptions": {
"type": "jsonObject",
"utility": true
},
"customUrl": {
"type": "url"
},
"layoutSet": {
"type": "link",
"tooltip": true
},
"authenticationProvider": {
"type": "link"
},
"modifiedAt": {
"type": "datetime",
"readOnly": true
},
"modifiedBy": {
"type": "link",
"readOnly": true,
"view": "views/fields/user"
},
"createdAt": {
"type": "datetime",
"readOnly": true
},
"createdBy": {
"type": "link",
"readOnly": true,
"view": "views/fields/user"
}
},
"links": {
"createdBy": {
"type": "belongsTo",
"entity": "User"
},
"modifiedBy": {
"type": "belongsTo",
"entity": "User"
},
"users": {
"type": "hasMany",
"entity": "User",
"foreign": "portals"
},
"portalRoles": {
"type": "hasMany",
"entity": "PortalRole",
"foreign": "portals"
},
"notes": {
"type": "hasMany",
"entity": "Note",
"foreign": "portals"
},
"layoutSet": {
"type": "belongsTo",
"entity": "LayoutSet",
"foreign": "portals"
},
"authenticationProvider": {
"type": "belongsTo",
"entity": "AuthenticationProvider"
}
},
"collection": {
"orderBy": "name",
"order": "asc"
}
}