110 lines
1.9 KiB
JSON
110 lines
1.9 KiB
JSON
|
{
|
||
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||
|
"$id": "nationchains/schema/tribes",
|
||
|
"title": "Tribes",
|
||
|
"description": "A tribe belonging to a town",
|
||
|
"type": "object",
|
||
|
"properties": {
|
||
|
"tribeId": {
|
||
|
"type": "string",
|
||
|
"pattern": "^[a-z0-9]*$"
|
||
|
},
|
||
|
"townId": {
|
||
|
"type": "string",
|
||
|
"options": {
|
||
|
"$ref": "adminapi/objects/towns/idx/lst_towns.json"
|
||
|
}
|
||
|
},
|
||
|
"nationId": {
|
||
|
"type": "string",
|
||
|
"options": {
|
||
|
"$ref": "adminapi/objects/nations/idx/lst_nations.json"
|
||
|
}
|
||
|
},
|
||
|
"owner": {
|
||
|
"type": "string",
|
||
|
"options": {
|
||
|
"$ref": "adminapi/objects/nations/idx/lst_alias.json"
|
||
|
}
|
||
|
},
|
||
|
"dns": {
|
||
|
"type": "array",
|
||
|
"items": {
|
||
|
"type": "string"
|
||
|
}
|
||
|
},
|
||
|
"context": {
|
||
|
"type": "object",
|
||
|
"comments": "Check if necessary generate by apxtri.js detail route model available"
|
||
|
}
|
||
|
},
|
||
|
"required": [
|
||
|
"townId",
|
||
|
"status",
|
||
|
"nationId",
|
||
|
"dns"
|
||
|
],
|
||
|
"apxid": "tribeId",
|
||
|
"apxuniquekey": [
|
||
|
"tribeId"
|
||
|
],
|
||
|
"apxidx": [
|
||
|
{
|
||
|
"name": "lst_tribeId",
|
||
|
"keyval": "tribeId",
|
||
|
"type": "array"
|
||
|
},
|
||
|
{
|
||
|
"name": "tribes",
|
||
|
"keyval": "tribeId",
|
||
|
"type": "view",
|
||
|
"objkey": [],
|
||
|
"filter": ""
|
||
|
},
|
||
|
{
|
||
|
"name": "owner_tribeId",
|
||
|
"type": "distribution",
|
||
|
"keyval": "owner",
|
||
|
"objkey": [
|
||
|
"tribeId"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "dns_tribeId",
|
||
|
"type": "distribution",
|
||
|
"keyval": "dns",
|
||
|
"objkey": [
|
||
|
"tribeId"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "tribes_dns",
|
||
|
"keyval": "tribeId",
|
||
|
"type": "view",
|
||
|
"objkey": [
|
||
|
"dns"
|
||
|
],
|
||
|
"filter": ""
|
||
|
}
|
||
|
],
|
||
|
"apxacceesrights": {
|
||
|
"owner": {
|
||
|
"D": [],
|
||
|
"U": [
|
||
|
"owner",
|
||
|
"dns"
|
||
|
]
|
||
|
},
|
||
|
"druid": {
|
||
|
"R": [],
|
||
|
"U": []
|
||
|
},
|
||
|
"mayor": {
|
||
|
"C": [],
|
||
|
"R": []
|
||
|
},
|
||
|
"pagan": {
|
||
|
"R": []
|
||
|
}
|
||
|
}
|
||
|
}
|