2017-06-01 16:23:41 +00:00
|
|
|
{
|
2017-12-13 12:40:21 +00:00
|
|
|
"name": "ClientCredit",
|
2018-01-29 18:57:00 +00:00
|
|
|
"description": "Log of credit changes",
|
2017-10-11 13:36:47 +00:00
|
|
|
"base": "VnModel",
|
2017-12-13 12:40:21 +00:00
|
|
|
"options": {
|
|
|
|
"mysql": {
|
2018-12-17 10:28:39 +00:00
|
|
|
"table": "clientCredit"
|
2017-12-13 12:40:21 +00:00
|
|
|
}
|
|
|
|
},
|
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"
|
|
|
|
},
|
2018-01-29 11:37:54 +00:00
|
|
|
"worker": {
|
2017-06-01 16:23:41 +00:00
|
|
|
"type": "belongsTo",
|
2018-01-29 11:37:54 +00:00
|
|
|
"model": "Worker",
|
|
|
|
"foreignKey": "workerFk"
|
2017-06-01 16:23:41 +00:00
|
|
|
}
|
2017-10-11 13:36:47 +00:00
|
|
|
}
|
2017-06-01 16:23:41 +00:00
|
|
|
}
|