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

37 lines
653 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": {
"table": "clientCredit",
"database": "vn"
}
},
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
}