64 lines
1.3 KiB
JSON
64 lines
1.3 KiB
JSON
{
|
|
"name": "Payment",
|
|
"base": "VnModel",
|
|
"options": {
|
|
"mysql": {
|
|
"table": "payment"
|
|
}
|
|
},
|
|
"properties": {
|
|
"id": {
|
|
"type": "number",
|
|
"id": true,
|
|
"description": "Identifier"
|
|
},
|
|
"received": {
|
|
"type": "date"
|
|
},
|
|
"amount": {
|
|
"type": "number"
|
|
},
|
|
"divisa": {
|
|
"type": "number"
|
|
},
|
|
"concept": {
|
|
"type": "string"
|
|
},
|
|
"created": {
|
|
"type": "date"
|
|
},
|
|
"isConciliated": {
|
|
"type": "boolean"
|
|
},
|
|
"dueDated": {
|
|
"type": "date"
|
|
}
|
|
},
|
|
"relations": {
|
|
"supplier": {
|
|
"type": "belongsTo",
|
|
"model": "Supplier",
|
|
"foreignKey": "supplierFk"
|
|
},
|
|
"currency": {
|
|
"type": "belongsTo",
|
|
"model": "Currency",
|
|
"foreignKey": "currencyFk"
|
|
},
|
|
"bank": {
|
|
"type": "belongsTo",
|
|
"model": "Accounting",
|
|
"foreignKey": "bankFk"
|
|
},
|
|
"payMethod": {
|
|
"type": "belongsTo",
|
|
"model": "PayMethodFk",
|
|
"foreignKey": "payMethodFk"
|
|
},
|
|
"company": {
|
|
"type": "belongsTo",
|
|
"model": "Company",
|
|
"foreignKey": "companyFk"
|
|
}
|
|
}
|
|
} |