diff --git a/services/client/common/models/account.json b/services/client/common/models/account.json index f84e260ed..f94328103 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" + } } } }