103 lines
1.9 KiB
JSON
103 lines
1.9 KiB
JSON
{
|
|
"fields": {
|
|
"name": {
|
|
"type": "varchar",
|
|
"notStorable": true,
|
|
"select": {
|
|
"select": "CONCAT:(team.name, ' - ', puls.name)",
|
|
"leftJoins": ["team", "puls"]
|
|
},
|
|
"orderBy": {
|
|
"order": [
|
|
["team.name", "{direction}"]
|
|
],
|
|
"leftJoins": ["team"]
|
|
}
|
|
},
|
|
"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"]
|
|
}
|
|
}
|
|
}
|