apxtrib/nationchains/schema/tribes.json

38 lines
922 B
JSON
Raw Normal View History

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-04-27 04:17:20 +00:00
"$ref": "nationchains/towns/idx/towns_uuid_uuid.json"
2023-03-27 05:52:21 +00:00
},
"nationId": {
"type": "string",
2023-04-27 04:17:20 +00:00
"$ref": "nationchains/nations/idx/nations_uuid_uuid.json"
2023-03-27 05:52:21 +00:00
},
"status": {
2023-04-27 04:17:20 +00:00
"default": "unchain",
2023-03-27 05:52:21 +00:00
"type": "string",
2023-04-27 04:17:20 +00:00
"enum": ["chain","tochain","unchain"]
2023-03-27 05:52:21 +00:00
},
2023-04-27 04:17:20 +00:00
"dns": {
"type": "array",
"items":{"type":"string", "uniqueItems":true}
2023-03-27 05:52:21 +00:00
}
},
2023-04-27 04:17:20 +00:00
"required": ["townId", "status", "nationId", "dns"],
"apxprimarykey": ["tribeId"],
2023-03-27 05:52:21 +00:00
"apxsearchindex": [
2023-04-27 04:17:20 +00:00
{ "key": "status", "value": "tribeId" },
{ "key": "tribeId", "value": [] }
2023-03-27 05:52:21 +00:00
]
}