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"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"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
|
|
|
"invoice": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "InvoiceOut",
|
|
|
|
"foreignKey": "invoiceFk"
|
2019-01-15 11:04:34 +00:00
|
|
|
}
|
2018-10-19 06:40:32 +00:00
|
|
|
}
|
2018-10-16 12:44:48 +00:00
|
|
|
}
|