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",
"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"
}
}
}
}