- Introduced new junction entities: CAICollectionCDokumente, CAdvowareAktenCDokumente, and CPulsTeamZuordnung. - Implemented respective controllers and services for handling CRUD operations. - Added metadata definitions for new entities, including fields, links, and indexes. - Created language files for English and German translations for the new entities. - Developed a script to set ACL permissions for the new junction entities across existing roles. - Updated existing entity definitions to include new relationships and fields related to Advoware and AI Collections.
146 lines
3.6 KiB
JSON
146 lines
3.6 KiB
JSON
{
|
|
"fields": {
|
|
"name": {
|
|
"type": "varchar",
|
|
"required": true,
|
|
"pattern": "$noBadCharacters"
|
|
},
|
|
"description": {
|
|
"type": "text"
|
|
},
|
|
"createdAt": {
|
|
"type": "datetime",
|
|
"readOnly": true
|
|
},
|
|
"modifiedAt": {
|
|
"type": "datetime",
|
|
"readOnly": true
|
|
},
|
|
"createdBy": {
|
|
"type": "link",
|
|
"readOnly": true,
|
|
"view": "views/fields/user"
|
|
},
|
|
"modifiedBy": {
|
|
"type": "link",
|
|
"readOnly": true,
|
|
"view": "views/fields/user"
|
|
},
|
|
"assignedUser": {
|
|
"type": "link",
|
|
"required": false,
|
|
"view": "views/fields/assigned-user"
|
|
},
|
|
"teams": {
|
|
"type": "linkMultiple",
|
|
"view": "views/fields/teams"
|
|
}
|
|
},
|
|
"links": {
|
|
"createdBy": {
|
|
"type": "belongsTo",
|
|
"entity": "User"
|
|
},
|
|
"modifiedBy": {
|
|
"type": "belongsTo",
|
|
"entity": "User"
|
|
},
|
|
"assignedUser": {
|
|
"type": "belongsTo",
|
|
"entity": "User"
|
|
},
|
|
"teams": {
|
|
"type": "hasMany",
|
|
"entity": "Team",
|
|
"relationName": "entityTeam",
|
|
"layoutRelationshipsDisabled": true
|
|
},
|
|
"meetings": {
|
|
"type": "hasMany",
|
|
"entity": "Meeting",
|
|
"foreign": "parent"
|
|
},
|
|
"calls": {
|
|
"type": "hasMany",
|
|
"entity": "Call",
|
|
"foreign": "parent"
|
|
},
|
|
"tasks": {
|
|
"type": "hasChildren",
|
|
"entity": "Task",
|
|
"foreign": "parent"
|
|
},
|
|
"emails": {
|
|
"type": "hasChildren",
|
|
"entity": "Email",
|
|
"foreign": "parent",
|
|
"layoutRelationshipsDisabled": true
|
|
},
|
|
"cDokumente": {
|
|
"type": "hasMany",
|
|
"entity": "CDokumente",
|
|
"foreign": "cAICollections",
|
|
"relationName": "cAICollectionCDokumente",
|
|
"additionalColumns": {
|
|
"xaifileid": {
|
|
"type": "varchar",
|
|
"len": 255
|
|
},
|
|
"syncStatus": {
|
|
"type": "varchar",
|
|
"len": 50,
|
|
"default": "new"
|
|
}
|
|
},
|
|
"isCustom": true
|
|
},
|
|
"cAdvowareAkte": {
|
|
"type": "belongsTo",
|
|
"entity": "CAdvowareAkten",
|
|
"foreign": "cAICollection",
|
|
"isCustom": true
|
|
},
|
|
"cmietinkassos": {
|
|
"type": "hasMany",
|
|
"entity": "CMietinkasso",
|
|
"foreign": "cAICollection",
|
|
"isCustom": true
|
|
},
|
|
"cvmhRumungsklages": {
|
|
"type": "hasMany",
|
|
"entity": "CVmhRumungsklage",
|
|
"foreign": "cAICollection",
|
|
"isCustom": true
|
|
}
|
|
},
|
|
"collection": {
|
|
"orderBy": "createdAt",
|
|
"order": "desc"
|
|
},
|
|
"indexes": {
|
|
"name": {
|
|
"columns": [
|
|
"name",
|
|
"deleted"
|
|
]
|
|
},
|
|
"assignedUser": {
|
|
"columns": [
|
|
"assignedUserId",
|
|
"deleted"
|
|
]
|
|
},
|
|
"createdAt": {
|
|
"columns": [
|
|
"createdAt"
|
|
]
|
|
},
|
|
"createdAtId": {
|
|
"unique": true,
|
|
"columns": [
|
|
"createdAt",
|
|
"id"
|
|
]
|
|
}
|
|
}
|
|
} |