2023-03-27 05:52:21 +00:00
|
|
|
{
|
|
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
2023-04-13 05:46:35 +00:00
|
|
|
"$id": "nationchains/schema/tribes",
|
|
|
|
"title": "Tribes",
|
|
|
|
"description": "A tribe belonging to a town",
|
2023-03-27 05:52:21 +00:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
2023-04-27 04:17:20 +00:00
|
|
|
"tribeId":{
|
|
|
|
"type":"string",
|
|
|
|
"pattern":"^[a-z0-9]*$"
|
|
|
|
},
|
2023-03-27 05:52:21 +00:00
|
|
|
"townId": {
|
|
|
|
"type": "string",
|
2023-11-05 11:03:25 +00:00
|
|
|
"$apxenumkey": "nationchains/towns/idx/lst_townId.json"
|
2023-03-27 05:52:21 +00:00
|
|
|
},
|
|
|
|
"nationId": {
|
|
|
|
"type": "string",
|
2023-11-05 11:03:25 +00:00
|
|
|
"$apxenumkey": "nationchains/nations/idx/lst_nationId.json"
|
2023-03-27 05:52:21 +00:00
|
|
|
},
|
2023-11-05 11:03:25 +00:00
|
|
|
"owner": {
|
2023-03-27 05:52:21 +00:00
|
|
|
"type": "string",
|
2023-11-05 11:03:25 +00:00
|
|
|
"$apxenumkey": "nationchains/pagans/idx/lst_alias.json"
|
2023-03-27 05:52:21 +00:00
|
|
|
},
|
2023-04-27 04:17:20 +00:00
|
|
|
"dns": {
|
|
|
|
"type": "array",
|
2023-11-05 11:03:25 +00:00
|
|
|
"items":{"type":"string"}
|
2023-03-27 05:52:21 +00:00
|
|
|
}
|
|
|
|
},
|
2023-04-27 04:17:20 +00:00
|
|
|
"required": ["townId", "status", "nationId", "dns"],
|
2023-11-05 11:03:25 +00:00
|
|
|
"apxid":"tribeId",
|
|
|
|
"apxuniquekey": ["tribeId"],
|
|
|
|
"apxidx": [
|
|
|
|
{ "name":"lst_tribeId", "keyval": "tribeId" },
|
|
|
|
{ "name":"all_tribeId", "keyval": "tribeId" },
|
|
|
|
{ "name":"druidId_tribeId", "keyval": "druidId","objkey":["tribeId"] },
|
|
|
|
{ "name":"dns_tribeId", "keyval": "dns","objkey":["tribeId"] }
|
|
|
|
],
|
|
|
|
"apxacceesrights":{
|
|
|
|
"owner":{"D":[],"U":["owner","dns"]},
|
|
|
|
"mayor":{"C":[],"R":[]},
|
|
|
|
"pagan":{"R":[]}
|
|
|
|
}
|
2023-03-27 05:52:21 +00:00
|
|
|
}
|