47 lines
954 B
JSON
47 lines
954 B
JSON
{
|
|
"name": "TaxCode",
|
|
"base": "VnModel",
|
|
"options": {
|
|
"mysql": {
|
|
"table": "taxCode",
|
|
"database": "vn"
|
|
}
|
|
},
|
|
"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"
|
|
}
|
|
}
|
|
} |