{ "name": "InvoiceCorrection", "base": "VnModel", "options": { "mysql": { "table": "invoiceCorrection" } }, "properties": { "correctingFk": { "id": true, "type": "number", "description": "Identifier" }, "correctedFk": { "type": "number" }, "cplusRectificationTypeFk": { "type": "number", "required": true }, "siiTypeInvoiceOutFk": { "type": "number", "required": true }, "invoiceCorrectionTypeFk": { "type": "number", "required": true }, "relations": { "correcting": { "type": "belongsTo", "model": "InvoiceOut", "foreignKey": "correctingFk" }, "corrected": { "type": "belongsTo", "model": "InvoiceOut", "foreignKey": "correctedFk" }, "cplusRectificationType": { "type": "belongsTo", "model": "cplusRectificationType", "foreignKey": "cplusRectificationTypeFk" }, "siiTypeInvoiceOut": { "type": "belongsTo", "model": "siiTypeInvoiceOut", "foreignKey": "siiTypeInvoiceOutFk" }, "invoiceCorrectionType": { "type": "belongsTo", "model": "invoiceCorrectionType", "foreignKey": "invoiceCorrectionTypeFk" } } } }