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

36 lines
769 B
JSON

{
"name": "ClientCredit",
"description": "Log of credit changes",
"base": "VnModel",
"options": {
"mysql": {
"table": "clientCredit"
}
},
"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": {
"type": "belongsTo",
"model": "Worker",
"foreignKey": "workerFk"
}
}
}