47 lines
1011 B
JSON
47 lines
1011 B
JSON
|
{
|
||
|
"name": "TaxClassCode",
|
||
|
"base": "VnModel",
|
||
|
"options": {
|
||
|
"mysql": {
|
||
|
"table": "taxClassCode"
|
||
|
}
|
||
|
},
|
||
|
"properties": {
|
||
|
"id": {
|
||
|
"type": "number",
|
||
|
"id": true
|
||
|
},
|
||
|
"effectived": {
|
||
|
"type": "date",
|
||
|
"required": true
|
||
|
},
|
||
|
"taxClassFk": {
|
||
|
"type": "number",
|
||
|
"required": true
|
||
|
},
|
||
|
"taxCodeFk": {
|
||
|
"type": "number",
|
||
|
"required": true
|
||
|
}
|
||
|
},
|
||
|
"relations": {
|
||
|
"taxClass": {
|
||
|
"type": "belongsTo",
|
||
|
"model": "TaxClass",
|
||
|
"foreignKey": "taxClassFk"
|
||
|
},
|
||
|
"taxCode": {
|
||
|
"type": "belongsTo",
|
||
|
"model": "TaxCode",
|
||
|
"foreignKey": "taxCodeFk"
|
||
|
}
|
||
|
},
|
||
|
"acls": [
|
||
|
{
|
||
|
"accessType": "READ",
|
||
|
"principalType": "ROLE",
|
||
|
"principalId": "$everyone",
|
||
|
"permission": "ALLOW"
|
||
|
}
|
||
|
]
|
||
|
}
|