From 89f397da2ca708e5018e372533734ab04fa480d5 Mon Sep 17 00:00:00 2001 From: nelo Date: Fri, 12 May 2017 11:20:32 +0200 Subject: [PATCH] Arreglado ClientObservation --- .../common/models/ClientObservation.json | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/services/client/common/models/ClientObservation.json b/services/client/common/models/ClientObservation.json index 0acabaa6b..373eeb821 100644 --- a/services/client/common/models/ClientObservation.json +++ b/services/client/common/models/ClientObservation.json @@ -16,24 +16,21 @@ "type": "string", "description": "Text" }, - "employeeFk": { - "type": "Number" - }, "creationTime": { "type": "date", "description": "Creation date and time" } }, "relations": { + "employeeFk": { + "type": "belongsTo", + "model": "Employee", + "foreignKey": "employeeFk" + }, "clientFk": { "type": "hasOne", "model": "Client", "foreignKey": "id" - }, - "employeeFk": { - "type": "hasOne", - "model": "Employee", - "foreignKey": "id" } }, "acls": [ @@ -43,5 +40,8 @@ "principalId": "$everyone", "permission": "ALLOW" } - ] + ], + "scope": { + "include": "employeeFk" + } }