salix/modules/item/models/item-tax-country.json

36 lines
780 B
JSON

{
"name": "ItemTaxCountry",
"base": "VnModel",
"options": {
"mysql": {
"table": "itemTaxCountry"
}
},
"properties": {
"id": {
"type": "Number",
"id": true,
"description": "Identifier"
},
"effectived": {
"type": "Boolean"
}
},
"relations": {
"item": {
"type": "belongsTo",
"model": "Item",
"foreignKey": "itemFk"
},
"country": {
"type": "belongsTo",
"model": "Country",
"foreignKey": "countryFk"
},
"taxClass": {
"type": "belongsTo",
"model": "TaxClass",
"foreignKey": "taxClassFk"
}
}
}