account con relation

This commit is contained in:
Javi Gallego 2017-01-24 10:15:13 +01:00
parent a2ff16b9a2
commit a0bc7f68de
1 changed files with 7 additions and 5 deletions

View File

@ -3,17 +3,19 @@
"base": "PersistedModel", "base": "PersistedModel",
"validateUpsert": true, "validateUpsert": true,
"properties": { "properties": {
"id": {
"type": "Number",
"id": true,
"description": "Identifier"
},
"name": { "name": {
"type": "string", "type": "string",
"required": true "required": true
}, },
"active": { "active": {
"type": "boolean" "type": "boolean"
},
"relations":{
"id":{
"type": "hasOne",
"model": "Client",
"foreignKey": "id"
}
} }
} }
} }