salix/back/models/country.json

42 lines
885 B
JSON
Raw Normal View History

2017-10-13 14:22:45 +00:00
{
2019-03-20 09:10:36 +00:00
"name": "Country",
"description": "Worldwide countries",
"base": "VnModel",
"options": {
"mysql": {
"table": "country"
2019-03-20 09:10:36 +00:00
}
2017-10-13 14:22:45 +00:00
},
2019-03-20 09:10:36 +00:00
"properties": {
"id": {
"type": "Number",
"id": true,
"description": "Identifier"
2019-03-20 09:10:36 +00:00
},
"country": {
"type": "string",
"required": true
2019-03-20 09:10:36 +00:00
},
"code": {
"type": "string"
},
"isUeeMember": {
"type": "Boolean"
2019-03-20 09:10:36 +00:00
}
2017-10-13 14:22:45 +00:00
},
2019-03-20 09:10:36 +00:00
"relations": {
"currency": {
"type": "belongsTo",
"model": "Currency",
"foreignKey": "currencyFk"
2019-03-20 09:10:36 +00:00
}
},
"acls": [
{
"accessType": "READ",
"principalType": "ROLE",
"principalId": "$everyone",
"permission": "ALLOW"
2019-03-20 09:10:36 +00:00
}
]
2017-10-13 14:22:45 +00:00
}