feat(CPuls): Enhance CPuls entity with new fields, tooltips, and options; add localization for German and English
- Added new fields to CPuls entity including status, syncStatus, kiAnalyse, and others. - Implemented localization for CPuls in German (de_DE) and English (en_US). - Introduced new API actions for team activation and completion of CPuls. - Created hooks to update team statistics and manage document counts. - Added new entity definitions and metadata for CPulsTeamZuordnung and Team. - Implemented validation logic in formulas to prevent completion of unclean Puls. - Updated layouts for detail and list views of CPuls. - Enhanced user entity with absence tracking fields. - Added scopes for CPuls and CPulsTeamZuordnung.
This commit is contained in:
@@ -0,0 +1,100 @@
|
||||
{
|
||||
"fields": {
|
||||
"name": {
|
||||
"type": "varchar",
|
||||
"notStorable": true,
|
||||
"select": {
|
||||
"select": "CONCAT:(team.name, ' - ', puls.name)"
|
||||
},
|
||||
"orderBy": {
|
||||
"order": [
|
||||
["team.name", "{direction}"]
|
||||
]
|
||||
}
|
||||
},
|
||||
"puls": {
|
||||
"type": "link",
|
||||
"entity": "CPuls",
|
||||
"required": true,
|
||||
"isCustom": true
|
||||
},
|
||||
"team": {
|
||||
"type": "link",
|
||||
"entity": "Team",
|
||||
"required": true,
|
||||
"isCustom": true
|
||||
},
|
||||
"aktiv": {
|
||||
"type": "bool",
|
||||
"default": true,
|
||||
"isCustom": true,
|
||||
"tooltip": true
|
||||
},
|
||||
"abgeschlossen": {
|
||||
"type": "bool",
|
||||
"default": false,
|
||||
"isCustom": true
|
||||
},
|
||||
"abgeschlossenAm": {
|
||||
"type": "datetime",
|
||||
"readOnly": true,
|
||||
"isCustom": true
|
||||
},
|
||||
"abgeschlossenVon": {
|
||||
"type": "link",
|
||||
"entity": "User",
|
||||
"readOnly": true,
|
||||
"isCustom": true
|
||||
},
|
||||
"prioritaet": {
|
||||
"type": "enum",
|
||||
"options": ["Niedrig", "Normal", "Hoch"],
|
||||
"default": "Normal",
|
||||
"isCustom": true,
|
||||
"style": {
|
||||
"Niedrig": "default",
|
||||
"Normal": "primary",
|
||||
"Hoch": "danger"
|
||||
}
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"modifiedAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"puls": {
|
||||
"type": "belongsTo",
|
||||
"entity": "CPuls",
|
||||
"foreign": "teamZuordnungen"
|
||||
},
|
||||
"team": {
|
||||
"type": "belongsTo",
|
||||
"entity": "Team"
|
||||
},
|
||||
"abgeschlossenVon": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
}
|
||||
},
|
||||
"collection": {
|
||||
"orderBy": "createdAt",
|
||||
"order": "desc"
|
||||
},
|
||||
"indexes": {
|
||||
"pulsTeam": {
|
||||
"columns": ["pulsId", "teamId"],
|
||||
"unique": true
|
||||
},
|
||||
"aktiv": {
|
||||
"columns": ["aktiv"]
|
||||
},
|
||||
"abgeschlossen": {
|
||||
"columns": ["abgeschlossen"]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user