54 lines
1.1 KiB
JSON
54 lines
1.1 KiB
JSON
{
|
|
"name": "Country",
|
|
"description": "Worldwide countries",
|
|
"base": "VnModel",
|
|
"options": {
|
|
"mysql": {
|
|
"table": "country"
|
|
}
|
|
},
|
|
"properties": {
|
|
"id": {
|
|
"type": "number",
|
|
"id": true,
|
|
"description": "Identifier"
|
|
},
|
|
"name": {
|
|
"type": "string",
|
|
"required": true
|
|
},
|
|
"code": {
|
|
"type": "string"
|
|
},
|
|
"isUeeMember": {
|
|
"type": "boolean"
|
|
},
|
|
"isSocialNameUnique": {
|
|
"type": "boolean"
|
|
},
|
|
"continentFk": {
|
|
"type": "number"
|
|
}
|
|
},
|
|
"relations": {
|
|
"currency": {
|
|
"type": "belongsTo",
|
|
"model": "Currency",
|
|
"foreignKey": "currencyFk"
|
|
},
|
|
"continent": {
|
|
"type": "belongsTo",
|
|
"model": "Continent",
|
|
"foreignKey": "continentFk"
|
|
}
|
|
},
|
|
"acls": [
|
|
{
|
|
"accessType": "READ",
|
|
"principalType": "ROLE",
|
|
"principalId": "$everyone",
|
|
"permission": "ALLOW"
|
|
}
|
|
]
|
|
}
|