salix/modules/ticket/back/models/component-rate.json

50 lines
1.0 KiB
JSON
Raw Normal View History

{
"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"
}
]
}