salix/modules/invoiceIn/back/models/invoice-in-tax.json

57 lines
1.3 KiB
JSON

{
"name": "InvoiceInTax",
"base": "Loggable",
"log": {
"model": "InvoiceInLog"
},
"options": {
"mysql": {
"table": "invoiceInTax"
}
},
"properties": {
"id": {
"id": true,
"type": "number",
"description": "Identifier"
},
"taxableBase": {
"type": "number"
},
"foreignValue": {
"type": "number"
},
"expenseFk": {
"type": "number",
"mysql": {
"columnName": "expenceFk"
}
},
"created": {
"type": "date"
}
},
"relations": {
"invoiceIn": {
"type": "belongsTo",
"model": "InvoiceIn",
"foreignKey": "invoiceInFk"
},
"expense": {
"type": "belongsTo",
"model": "Expense",
"foreignKey": "expenseFk"
},
"taxTypeSage": {
"type": "belongsTo",
"model": "SageTaxType",
"foreignKey": "taxTypeSageFk"
},
"transactionTypeSage": {
"type": "belongsTo",
"model": "SageTransactionType",
"foreignKey": "transactionTypeSageFk"
}
}
}