From a0bc7f68defe04195d5f3be595342120d4066b4d Mon Sep 17 00:00:00 2001 From: jgallego Date: Tue, 24 Jan 2017 10:15:13 +0100 Subject: [PATCH] account con relation --- services/client/common/models/account.json | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/services/client/common/models/account.json b/services/client/common/models/account.json index f84e260edb..f94328103c 100644 --- a/services/client/common/models/account.json +++ b/services/client/common/models/account.json @@ -3,17 +3,19 @@ "base": "PersistedModel", "validateUpsert": true, "properties": { - "id": { - "type": "Number", - "id": true, - "description": "Identifier" - }, "name": { "type": "string", "required": true }, "active": { "type": "boolean" + }, + "relations":{ + "id":{ + "type": "hasOne", + "model": "Client", + "foreignKey": "id" + } } } }