2017-06-01 16:23:41 +00:00
|
|
|
{
|
2022-05-12 06:06:30 +00:00
|
|
|
"name": "ClientCredit",
|
|
|
|
"description": "Log of credit changes",
|
|
|
|
"base": "VnModel",
|
|
|
|
"options": {
|
|
|
|
"mysql": {
|
|
|
|
"table": "clientCredit"
|
|
|
|
}
|
2017-06-01 16:23:41 +00:00
|
|
|
},
|
2022-05-12 06:06:30 +00:00
|
|
|
"validateUpsert": true,
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "number",
|
2022-05-12 06:06:30 +00:00
|
|
|
"id": true,
|
|
|
|
"description": "Identifier"
|
|
|
|
},
|
|
|
|
"amount": {
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "number"
|
2022-05-12 06:06:30 +00:00
|
|
|
},
|
|
|
|
"created": {
|
|
|
|
"type": "date"
|
|
|
|
}
|
2017-06-01 16:23:41 +00:00
|
|
|
},
|
2022-05-12 06:06:30 +00:00
|
|
|
"relations": {
|
|
|
|
"client": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Client",
|
|
|
|
"foreignKey": "clientFk"
|
|
|
|
},
|
|
|
|
"worker": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Worker",
|
|
|
|
"foreignKey": "workerFk"
|
|
|
|
}
|
2017-06-01 16:23:41 +00:00
|
|
|
}
|
|
|
|
}
|