2017-06-15 09:02:50 +00:00
|
|
|
{
|
|
|
|
"name": "Employee",
|
|
|
|
"base": "MyModel",
|
|
|
|
"validateUpsert": true,
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "Number",
|
|
|
|
"id": true,
|
|
|
|
"description": "Identifier"
|
2017-06-21 10:11:38 +00:00
|
|
|
},
|
|
|
|
"name":{
|
|
|
|
"type": "String"
|
2017-06-21 11:29:01 +00:00
|
|
|
},
|
|
|
|
"surname":{
|
|
|
|
"type": "String"
|
2017-06-15 09:02:50 +00:00
|
|
|
}
|
|
|
|
},
|
2017-06-22 12:51:37 +00:00
|
|
|
"relations": {
|
|
|
|
"user": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Account",
|
|
|
|
"foreignKey": "userFk"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"acls": [],
|
|
|
|
"include":[
|
|
|
|
{
|
|
|
|
"relation": "user",
|
|
|
|
"scope": {
|
|
|
|
"fields": ["name"]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
2017-06-15 09:02:50 +00:00
|
|
|
}
|