salix/modules/client/back/models/client-credit.json

36 lines
629 B
JSON
Raw Normal View History

2017-06-01 16:23:41 +00:00
{
2017-12-13 12:40:21 +00:00
"name": "ClientCredit",
"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"
},
"worker": {
2017-06-01 16:23:41 +00:00
"type": "belongsTo",
"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
}