salix/back/models/payment.json

64 lines
1.3 KiB
JSON
Raw Normal View History

2021-01-11 15:30:14 +00:00
{
"name": "Payment",
"base": "VnModel",
"options": {
"mysql": {
"table": "payment"
}
},
"properties": {
"id": {
2021-01-21 10:02:48 +00:00
"type": "number",
2021-01-11 15:30:14 +00:00
"id": true,
"description": "Identifier"
},
"received": {
"type": "date"
},
"amount": {
"type": "number"
},
"divisa": {
"type": "number"
},
"concept": {
"type": "string"
},
"created": {
"type": "date"
},
"isConciliated": {
2021-01-21 10:02:48 +00:00
"type": "boolean"
2021-01-11 15:30:14 +00:00
},
"dueDated": {
"type": "date"
}
},
"relations": {
"supplier": {
"type": "belongsTo",
"model": "Supplier",
"foreignKey": "supplierFk"
},
"currency": {
"type": "belongsTo",
"model": "Currency",
"foreignKey": "currencyFk"
},
"bank": {
"type": "belongsTo",
2024-03-05 09:25:23 +00:00
"model": "Accounting",
2021-01-11 15:30:14 +00:00
"foreignKey": "bankFk"
},
"payMethod": {
"type": "belongsTo",
"model": "PayMethodFk",
"foreignKey": "payMethodFk"
},
"company": {
"type": "belongsTo",
"model": "Company",
"foreignKey": "companyFk"
}
}
}