salix/modules/client/back/models/receipt.json

59 lines
1.2 KiB
JSON
Raw Normal View History

2018-10-16 12:44:48 +00:00
{
"name": "Receipt",
"base": "VnModel",
"options": {
2019-01-15 11:04:34 +00:00
"mysql": {
"table": "receipt"
}
2018-10-19 06:40:32 +00:00
},
"properties": {
2019-01-15 11:04:34 +00:00
"id": {
"id": true,
"type": "Number",
"description": "Identifier"
2018-10-19 06:40:32 +00:00
},
"amountPaid": {
"type": "Number"
},
"amountUnpaid": {
"type": "Number"
},
"payed": {
"type": "date"
},
"created": {
"type": "date"
},
"isConciliate": {
"type": "date"
2019-04-25 05:57:26 +00:00
},
"description": {
"type": "string",
"mysql": {
"columnName": "invoiceFk"
}
2018-10-19 06:40:32 +00:00
}
},
"relations": {
"client": {
"type": "belongsTo",
"model": "Client",
"foreignKey": "clientFk"
},
"company": {
"type": "belongsTo",
"model": "Company",
"foreignKey": "companyFk"
},
"worker": {
"type": "belongsTo",
"model": "Worker",
"foreignKey": "workerFk"
},
"bank": {
"type": "belongsTo",
"model": "Bank",
"foreignKey": "bankFk"
2019-01-15 11:04:34 +00:00
}
2018-10-19 06:40:32 +00:00
}
2018-10-16 12:44:48 +00:00
}