2023-03-27 05:52:21 +00:00
|
|
|
{
|
|
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
2023-05-31 13:19:21 +00:00
|
|
|
"$id": "schema/towns",
|
2023-03-27 05:52:21 +00:00
|
|
|
"title": "Town",
|
|
|
|
"description": "A town belonging to a nation from apXtrib world",
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"townId": {
|
|
|
|
"type": "string",
|
2023-05-31 13:19:21 +00:00
|
|
|
"pattern": "^[a-z0-9]*$"
|
2023-03-27 05:52:21 +00:00
|
|
|
},
|
|
|
|
"nationId": {
|
2023-05-31 13:19:21 +00:00
|
|
|
"type": "string",
|
2023-11-05 11:03:25 +00:00
|
|
|
"$apxenumkey": "nationchains/nations/idx/lst_nationd.json"
|
|
|
|
},
|
|
|
|
"owner":{
|
|
|
|
"type": "string",
|
|
|
|
"$apxenumkey": "nationchains/pagans/idx/lst_alias.json"
|
2023-05-31 13:19:21 +00:00
|
|
|
},
|
|
|
|
"mayorId": {
|
2023-11-05 11:03:25 +00:00
|
|
|
"comment":"todo, to be remove by ower in models",
|
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
|
|
|
},
|
|
|
|
"status": {
|
|
|
|
"default": "active",
|
|
|
|
"type": "string",
|
2023-05-31 13:19:21 +00:00
|
|
|
"enum":["chain","unchain","tochain"]
|
2023-03-27 05:52:21 +00:00
|
|
|
},
|
2023-05-31 13:19:21 +00:00
|
|
|
"dns": {
|
2023-06-28 13:23:17 +00:00
|
|
|
"type": "string"
|
2023-03-27 05:52:21 +00:00
|
|
|
}
|
|
|
|
},
|
2023-05-31 13:19:21 +00:00
|
|
|
"required": ["townId", "status", "nationId", "dns"],
|
2023-11-05 11:03:25 +00:00
|
|
|
"apxid":"townId",
|
|
|
|
"apxuniquekey": ["townId","dns"],
|
|
|
|
"apxidx": [
|
|
|
|
{ "name":"lst_townId", "keyval": "townId" },
|
|
|
|
{ "name":"all_townId", "keyval": "townId" },
|
|
|
|
{ "name":"dns_townId", "keyval": "dns","objkey":["townId"] },
|
|
|
|
{ "name":"mayorId_townId", "keyval": "mayorId","objkey":["townId"] }
|
|
|
|
],
|
|
|
|
"apxaccessrights":{
|
|
|
|
"pagan":{"C":[],"R":[]},
|
|
|
|
"owner":{"D":[], "U":["owner","status"]}
|
|
|
|
}
|
2023-06-28 13:23:17 +00:00
|
|
|
}
|