salix/services/loopback/common/models/country.json

39 lines
665 B
JSON
Raw Normal View History

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