{ "name": "InvoiceInCorrection", "base": "VnModel", "options": { "mysql": { "table": "invoiceInCorrection" } }, "properties": { "correctingFk": { "id": true, "type": "number" } }, "relations": { "invoiceIn": { "type": "belongsTo", "model": "InvoiceIn", "foreignKey": "correctedFk" }, "cplusRectificationType": { "type": "belongsTo", "model": "CplusRectificationType", "foreignKey": "cplusRectificationTypeFk" }, "invoiceCorrectionType": { "type": "belongsTo", "model": "InvoiceCorrectionType", "foreignKey": "invoiceCorrectionTypeFk" }, "siiTypeInvoiceOut": { "type": "belongsTo", "model": "SiiTypeInvoiceOut", "foreignKey": "siiTypeInvoiceOutFk" } } }