From 58965a968772fe57cd5b1500cbcdb50846b4c9b4 Mon Sep 17 00:00:00 2001 From: joan Date: Wed, 30 Sep 2020 07:38:43 +0200 Subject: [PATCH] Enabled loggable on calendar model --- modules/worker/back/models/calendar.json | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/modules/worker/back/models/calendar.json b/modules/worker/back/models/calendar.json index 417442571..199d81e6c 100644 --- a/modules/worker/back/models/calendar.json +++ b/modules/worker/back/models/calendar.json @@ -1,6 +1,10 @@ { "name": "Calendar", - "base": "VnModel", + "base": "Loggable", + "log": { + "model": "WorkerLog", + "relation": "labour" + }, "options": { "mysql": { "table": "calendar" @@ -23,6 +27,11 @@ "type": "belongsTo", "model": "AbsenceType", "foreignKey": "dayOffTypeFk" + }, + "labour": { + "type": "belongsTo", + "model": "WorkerLabour", + "foreignKey": "businessFk" } } }