salix/modules/invoiceOut/back/models/tax-code.json

54 lines
1.1 KiB
JSON

{
"name": "TaxCode",
"base": "VnModel",
"options": {
"mysql": {
"table": "taxCode"
}
},
"properties": {
"id": {
"type": "number",
"id": true,
"description": "Identifier"
},
"dated": {
"type": "date"
},
"code": {
"type": "string"
},
"rate": {
"type": "number"
},
"equalizationTax": {
"type": "number"
},
"type": {
"type": "string"
},
"isActive": {
"type": "boolean"
}
},
"relations": {
"taxType": {
"type": "belongsTo",
"model": "TaxType",
"foreignKey": "taxTypeFk"
},
"link": {
"type": "belongsTo",
"model": "Link",
"foreignKey": "linkFk"
}
},
"acls": [
{
"accessType": "READ",
"principalType": "ROLE",
"principalId": "$everyone",
"permission": "ALLOW"
}
]
}