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": "date"
|
|
},
|
|
"dueDated": {
|
|
"type": "date"
|
|
}
|
|
},
|
|
"relations": {
|
|
"supplier": {
|
|
"type": "belongsTo",
|
|
"model": "Supplier",
|
|
"foreignKey": "supplierFk"
|
|
},
|
|
"currency": {
|
|
"type": "belongsTo",
|
|
"model": "Currency",
|
|
"foreignKey": "currencyFk"
|
|
},
|
|
"bank": {
|
|
"type": "belongsTo",
|
|
"model": "Bank",
|
|
"foreignKey": "bankFk"
|
|
},
|
|
"payMethod": {
|
|
"type": "belongsTo",
|
|
"model": "PayMethodFk",
|
|
"foreignKey": "payMethodFk"
|
|
},
|
|
"company": {
|
|
"type": "belongsTo",
|
|
"model": "Company",
|
|
"foreignKey": "companyFk"
|
|
}
|
|
}
|
|
} |