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": {
|
2020-01-24 08:47:24 +00:00
|
|
|
"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": {
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "number",
|
2020-01-24 08:47:24 +00:00
|
|
|
"id": true,
|
|
|
|
"description": "Identifier"
|
2019-03-20 09:10:36 +00:00
|
|
|
},
|
2024-04-25 10:35:21 +00:00
|
|
|
"name": {
|
2020-01-24 08:47:24 +00:00
|
|
|
"type": "string",
|
|
|
|
"required": true
|
2019-03-20 09:10:36 +00:00
|
|
|
},
|
|
|
|
"code": {
|
2020-01-24 08:47:24 +00:00
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"isUeeMember": {
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "boolean"
|
2023-07-14 09:30:13 +00:00
|
|
|
},
|
|
|
|
"isSocialNameUnique": {
|
|
|
|
"type": "boolean"
|
2024-05-23 07:22:19 +00:00
|
|
|
},
|
|
|
|
"continentFk": {
|
|
|
|
"type": "number"
|
2024-10-16 06:32:10 +00:00
|
|
|
},
|
|
|
|
"hasDailyInvoice": {
|
|
|
|
"type": "boolean",
|
|
|
|
"description": "Indicates if the autonomy has daily invoice enabled"
|
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": {
|
2020-01-24 08:47:24 +00:00
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Currency",
|
|
|
|
"foreignKey": "currencyFk"
|
2024-05-23 07:22:19 +00:00
|
|
|
},
|
|
|
|
"continent": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Continent",
|
|
|
|
"foreignKey": "continentFk"
|
2024-11-08 10:51:00 +00:00
|
|
|
},
|
|
|
|
"saySimpleCountry": {
|
|
|
|
"type": "hasOne",
|
|
|
|
"model": "SaySimpleCountry",
|
|
|
|
"foreignKey": "countryFk"
|
2019-03-20 09:10:36 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"acls": [
|
|
|
|
{
|
2020-01-24 08:47:24 +00:00
|
|
|
"accessType": "READ",
|
|
|
|
"principalType": "ROLE",
|
|
|
|
"principalId": "$everyone",
|
|
|
|
"permission": "ALLOW"
|
2019-03-20 09:10:36 +00:00
|
|
|
}
|
|
|
|
]
|
2024-11-08 10:51:00 +00:00
|
|
|
}
|