2018-03-14 11:06:21 +00:00
|
|
|
{
|
|
|
|
"name": "ComponentRate",
|
|
|
|
"base": "VnModel",
|
|
|
|
"options": {
|
2018-04-13 14:03:43 +00:00
|
|
|
"mysql": {
|
2019-09-24 11:45:54 +00:00
|
|
|
"table": "component"
|
2018-04-13 14:03:43 +00:00
|
|
|
}
|
2018-03-14 11:06:21 +00:00
|
|
|
},
|
|
|
|
"properties": {
|
2018-04-13 14:03:43 +00:00
|
|
|
"id": {
|
|
|
|
"id": true,
|
|
|
|
"type": "Number",
|
|
|
|
"description": "Identifier"
|
|
|
|
},
|
|
|
|
"name": {
|
|
|
|
"type": "String"
|
|
|
|
},
|
|
|
|
"classRate": {
|
|
|
|
"type": "Number"
|
|
|
|
},
|
|
|
|
"tax": {
|
|
|
|
"type": "Number"
|
|
|
|
},
|
|
|
|
"isRenewable": {
|
|
|
|
"type": "Number"
|
|
|
|
},
|
2019-09-24 11:45:54 +00:00
|
|
|
"typeFk": {
|
2018-04-13 14:03:43 +00:00
|
|
|
"type": "Number"
|
2019-05-28 09:26:54 +00:00
|
|
|
},
|
|
|
|
"code": {
|
|
|
|
"type": "String"
|
2018-04-13 14:03:43 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"relations": {
|
|
|
|
"componentType": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "ComponentTypeRate",
|
2019-09-24 11:45:54 +00:00
|
|
|
"foreignKey": "typeFk"
|
2018-04-13 14:03:43 +00:00
|
|
|
}
|
2018-03-14 11:06:21 +00:00
|
|
|
},
|
|
|
|
"acls": [
|
2018-04-13 14:03:43 +00:00
|
|
|
{
|
|
|
|
"accessType": "READ",
|
|
|
|
"principalType": "ROLE",
|
|
|
|
"principalId": "$everyone",
|
|
|
|
"permission": "ALLOW"
|
|
|
|
}
|
2018-03-14 11:06:21 +00:00
|
|
|
]
|
2018-04-13 14:03:43 +00:00
|
|
|
}
|