salix/back/models/autonomy.json

48 lines
1.0 KiB
JSON
Raw Normal View History

{
"name": "Autonomy",
"description": "Autonomies of every country",
"base": "VnModel",
"options": {
"mysql": {
"table": "autonomy"
}
},
"properties": {
"id": {
2022-05-12 07:47:47 +00:00
"type": "number",
"id": true,
"description": "Identifier"
},
"name": {
"type": "string",
"required": true
},
"hasDailyInvoice": {
"type": "boolean",
"description": "Indicates if the autonomy has daily invoice enabled"
}
},
"relations": {
"country": {
"type": "belongsTo",
"model": "Country",
"foreignKey": "countryFk"
}
},
"scopes": {
"location": {
"include": {
"relation": "country"
}
}
},
"acls": [
{
"accessType": "READ",
"principalType": "ROLE",
"principalId": "$everyone",
"permission": "ALLOW"
}
]
}