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

50 lines
1.0 KiB
JSON

{
"name": "InvoiceInIntrastat",
"base": "VnModel",
"options": {
"mysql": {
"table": "invoiceInIntrastat"
}
},
"properties": {
"id": {
"id": true,
"type": "number",
"description": "Identifier"
},
"invoiceInFk": {
"type": "number"
},
"net": {
"type": "number"
},
"intrastatFk": {
"type": "number"
},
"amount": {
"type": "number"
},
"stems": {
"type": "number"
},
"countryFk": {
"type": "number"
},
"statisticalValue": {
"type": "number"
}
},
"relations": {
"intrastat": {
"type": "belongsTo",
"model": "Intrastat",
"foreignKey": "intrastatFk"
},
"country": {
"type": "belongsTo",
"model": "Country",
"foreignKey": "countryFk"
}
}
}