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

50 lines
996 B
JSON
Raw Permalink Normal View History

{
"name": "Component",
"base": "VnModel",
"options": {
"mysql": {
"table": "component"
}
},
"properties": {
"id": {
"id": true,
2022-05-12 07:47:47 +00:00
"type": "number",
"description": "Identifier"
},
"name": {
2022-05-12 07:47:47 +00:00
"type": "string"
},
"classRate": {
2022-05-12 07:47:47 +00:00
"type": "number"
},
"tax": {
2022-05-12 07:47:47 +00:00
"type": "number"
},
"isRenewable": {
2022-05-12 07:47:47 +00:00
"type": "number"
},
"typeFk": {
2022-05-12 07:47:47 +00:00
"type": "number"
},
"code": {
2022-05-12 07:47:47 +00:00
"type": "string"
}
},
"relations": {
"componentType": {
"type": "belongsTo",
"model": "ComponentType",
"foreignKey": "typeFk"
}
},
"acls": [
{
"accessType": "READ",
"principalType": "ROLE",
"principalId": "$everyone",
"permission": "ALLOW"
}
]
}