50 lines
1.0 KiB
JSON
50 lines
1.0 KiB
JSON
{
|
|
"name": "ComponentRate",
|
|
"base": "VnModel",
|
|
"options": {
|
|
"mysql": {
|
|
"table": "componentRate"
|
|
}
|
|
},
|
|
"properties": {
|
|
"id": {
|
|
"id": true,
|
|
"type": "Number",
|
|
"description": "Identifier"
|
|
},
|
|
"name": {
|
|
"type": "String"
|
|
},
|
|
"classRate": {
|
|
"type": "Number"
|
|
},
|
|
"tax": {
|
|
"type": "Number"
|
|
},
|
|
"isRenewable": {
|
|
"type": "Number"
|
|
},
|
|
"componentTypeRate": {
|
|
"type": "Number"
|
|
},
|
|
"code": {
|
|
"type": "String"
|
|
}
|
|
},
|
|
"relations": {
|
|
"componentType": {
|
|
"type": "belongsTo",
|
|
"model": "ComponentTypeRate",
|
|
"foreignKey": "componentTypeRate"
|
|
}
|
|
},
|
|
"acls": [
|
|
{
|
|
"accessType": "READ",
|
|
"principalType": "ROLE",
|
|
"principalId": "$everyone",
|
|
"permission": "ALLOW"
|
|
}
|
|
]
|
|
}
|