55 lines
1.2 KiB
JSON
55 lines
1.2 KiB
JSON
{
|
|
"name": "InvoiceInTax",
|
|
"base": "VnModel",
|
|
"mixins": {
|
|
"Loggable": true
|
|
},
|
|
"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"
|
|
}
|
|
}
|
|
}
|