salix/services/item/common/models/item-tax-country.json

36 lines
780 B
JSON
Raw Normal View History

2018-02-23 12:04:44 +00:00
{
"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"
}
}
}