2018-03-14 11:06:21 +00:00
|
|
|
{
|
2019-12-27 07:01:53 +00:00
|
|
|
"name": "Component",
|
2018-03-14 11:06:21 +00:00
|
|
|
"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,
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "number",
|
2018-04-13 14:03:43 +00:00
|
|
|
"description": "Identifier"
|
|
|
|
},
|
|
|
|
"name": {
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "string"
|
2018-04-13 14:03:43 +00:00
|
|
|
},
|
|
|
|
"classRate": {
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "number"
|
2018-04-13 14:03:43 +00:00
|
|
|
},
|
|
|
|
"tax": {
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "number"
|
2018-04-13 14:03:43 +00:00
|
|
|
},
|
|
|
|
"isRenewable": {
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "number"
|
2018-04-13 14:03:43 +00:00
|
|
|
},
|
2019-09-24 11:45:54 +00:00
|
|
|
"typeFk": {
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "number"
|
2019-05-28 09:26:54 +00:00
|
|
|
},
|
|
|
|
"code": {
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "string"
|
2018-04-13 14:03:43 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"relations": {
|
|
|
|
"componentType": {
|
|
|
|
"type": "belongsTo",
|
2019-12-27 07:01:53 +00:00
|
|
|
"model": "ComponentType",
|
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
|
|
|
}
|