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

50 lines
996 B
JSON

{
"name": "Component",
"base": "VnModel",
"options": {
"mysql": {
"table": "component"
}
},
"properties": {
"id": {
"id": true,
"type": "Number",
"description": "Identifier"
},
"name": {
"type": "String"
},
"classRate": {
"type": "Number"
},
"tax": {
"type": "Number"
},
"isRenewable": {
"type": "Number"
},
"typeFk": {
"type": "Number"
},
"code": {
"type": "String"
}
},
"relations": {
"componentType": {
"type": "belongsTo",
"model": "ComponentType",
"foreignKey": "typeFk"
}
},
"acls": [
{
"accessType": "READ",
"principalType": "ROLE",
"principalId": "$everyone",
"permission": "ALLOW"
}
]
}