2017-06-01 16:23:41 +00:00
|
|
|
{
|
|
|
|
"name": "ClientCredit",
|
2017-10-11 13:36:47 +00:00
|
|
|
"base": "VnModel",
|
2017-06-01 16:23:41 +00:00
|
|
|
"validateUpsert": true,
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "Number",
|
|
|
|
"id": true,
|
|
|
|
"description": "Identifier"
|
|
|
|
},
|
|
|
|
"amount": {
|
|
|
|
"type": "Number"
|
|
|
|
},
|
|
|
|
"created": {
|
|
|
|
"type": "date"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"relations": {
|
|
|
|
"client": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Client",
|
|
|
|
"foreignKey": "clientFk"
|
|
|
|
},
|
|
|
|
"employee": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Employee",
|
|
|
|
"foreignKey": "employeeFk"
|
|
|
|
}
|
2017-10-11 13:36:47 +00:00
|
|
|
}
|
2017-06-01 16:23:41 +00:00
|
|
|
}
|