2020-02-17 11:47:03 +00:00
|
|
|
{
|
|
|
|
"name": "TaxClassCode",
|
|
|
|
"base": "VnModel",
|
|
|
|
"options": {
|
|
|
|
"mysql": {
|
|
|
|
"table": "taxClassCode"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"properties": {
|
|
|
|
"taxClassFk": {
|
|
|
|
"type": "number",
|
2020-02-18 06:21:35 +00:00
|
|
|
"required": true,
|
|
|
|
"id": 1
|
2020-02-17 11:47:03 +00:00
|
|
|
},
|
|
|
|
"taxCodeFk": {
|
|
|
|
"type": "number",
|
2020-02-18 06:21:35 +00:00
|
|
|
"required": true,
|
|
|
|
"id": 2
|
|
|
|
},
|
|
|
|
"effectived": {
|
|
|
|
"type": "date",
|
|
|
|
"required": true,
|
|
|
|
"id": 3
|
2020-02-17 11:47:03 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"relations": {
|
|
|
|
"taxClass": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "TaxClass",
|
|
|
|
"foreignKey": "taxClassFk"
|
|
|
|
},
|
|
|
|
"taxCode": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "TaxCode",
|
|
|
|
"foreignKey": "taxCodeFk"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"acls": [
|
|
|
|
{
|
|
|
|
"accessType": "READ",
|
|
|
|
"principalType": "ROLE",
|
|
|
|
"principalId": "$everyone",
|
|
|
|
"permission": "ALLOW"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|