49 lines
1016 B
JSON
49 lines
1016 B
JSON
{
|
|
"name": "ItemTaxCountry",
|
|
"base": "VnModel",
|
|
"mixins": {
|
|
"Loggable": true
|
|
},
|
|
"options": {
|
|
"mysql": {
|
|
"table": "itemTaxCountry"
|
|
}
|
|
},
|
|
"properties": {
|
|
"id": {
|
|
"type": "number",
|
|
"id": true,
|
|
"description": "Identifier"
|
|
},
|
|
"effectived": {
|
|
"type": "boolean"
|
|
},
|
|
"itemFk": {
|
|
"type": "number"
|
|
},
|
|
"countryFk": {
|
|
"type": "number"
|
|
},
|
|
"taxClassFk": {
|
|
"type": "number"
|
|
}
|
|
},
|
|
"relations": {
|
|
"item": {
|
|
"type": "belongsTo",
|
|
"model": "Item",
|
|
"foreignKey": "itemFk"
|
|
},
|
|
"country": {
|
|
"type": "belongsTo",
|
|
"model": "Country",
|
|
"foreignKey": "countryFk"
|
|
},
|
|
"taxClass": {
|
|
"type": "belongsTo",
|
|
"model": "TaxClass",
|
|
"foreignKey": "taxClassFk"
|
|
}
|
|
}
|
|
}
|