52 lines
1.1 KiB
JSON
52 lines
1.1 KiB
JSON
{
|
|
"name": "InvoiceInTax",
|
|
"base": "Loggable",
|
|
"options": {
|
|
"mysql": {
|
|
"table": "invoiceInTax"
|
|
}
|
|
},
|
|
"properties": {
|
|
"id": {
|
|
"id": true,
|
|
"type": "number",
|
|
"description": "Identifier"
|
|
},
|
|
"taxableBase": {
|
|
"type": "number"
|
|
},
|
|
"foreignValue": {
|
|
"type": "number"
|
|
},
|
|
"expenseFk": {
|
|
"type": "number"
|
|
},
|
|
"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"
|
|
}
|
|
}
|
|
}
|