salix/services/client/common/models/client-credit.json

30 lines
522 B
JSON
Raw Normal View History

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
}