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

49 lines
1016 B
JSON
Raw Normal View History

2018-02-23 12:04:44 +00:00
{
"name": "ItemTaxCountry",
"base": "VnModel",
"mixins": {
"Loggable": true
},
2018-02-23 12:04:44 +00:00
"options": {
"mysql": {
"table": "itemTaxCountry"
}
},
"properties": {
"id": {
2022-05-12 07:47:47 +00:00
"type": "number",
2018-02-23 12:04:44 +00:00
"id": true,
"description": "Identifier"
},
"effectived": {
2022-05-12 07:47:47 +00:00
"type": "boolean"
2019-04-02 12:36:49 +00:00
},
"itemFk": {
2022-05-12 07:47:47 +00:00
"type": "number"
2019-04-02 12:36:49 +00:00
},
"countryFk": {
2022-05-12 07:47:47 +00:00
"type": "number"
2019-04-02 12:36:49 +00:00
},
"taxClassFk": {
2022-05-12 07:47:47 +00:00
"type": "number"
2018-02-23 12:04:44 +00:00
}
},
"relations": {
"item": {
"type": "belongsTo",
"model": "Item",
"foreignKey": "itemFk"
},
"country": {
"type": "belongsTo",
"model": "Country",
"foreignKey": "countryFk"
},
"taxClass": {
"type": "belongsTo",
"model": "TaxClass",
"foreignKey": "taxClassFk"
}
}
}