add acl to idx management in Odmdb

This commit is contained in:
2026-10-31 12:34:44 +01:00
parent 151afd73a1
commit 599eef627d
14 changed files with 766 additions and 372 deletions
+51 -22
View File
@@ -1,39 +1,68 @@
{
"$schema":"http://json-schema.org/schema#",
"$id":"adminapi/schema/nations",
"$schema": "http://json-schema.org/schema#",
"$id": "adminapi/schema/nations",
"title": "Nation definition",
"description": "A nation from apxtri world",
"$comment":"see ./lg/nations_lg.json for description in your languange lg",
"$comment": "see ./lg/nations_lg.json for description in your languange lg",
"type": "object",
"properties": {
"nationId": {
"title":"Unique nation name",
"description":"A unique string that define a nation a-z and 0-9 onlyin a social world",
"title": "Unique nation name",
"description": "A unique string that define a nation a-z and 0-9 onlyin a social world",
"type": "string",
"pattern":"^[a-z0-9]*$"
"pattern": "^[a-z0-9]*$"
},
"dtcreate": {
"title":"Creation date",
"description":"Nation date of creation",
"title": "Creation date",
"description": "Nation date of creation",
"type": "string",
"format":"date-time"
"format": "date-time"
},
"contracts":{
"title":"Social contract of the nation",
"description":"A uri of the signed js contract that rules this nation",
"contracts": {
"title": "Social contract of the nation",
"description": "A uri of the signed js contract that rules this nation",
"type": "string",
"format":"uri"
"format": "uri"
}
},
"required": ["nationId", "dtcreate","contracts"],
"additionalProperties":false,
"apxid":"nationId",
"apxuniquekey":["nationId"],
"apxidx": [
{ "name":"lst_nationId","type":"array","keyval": "nationId"},
{ "name":"nations","type":"view","keyval":"nationId","objkey":[],"filter":""}
"required": [
"nationId",
"dtcreate",
"contracts"
],
"apxaccessrights":{
"pagan":{"C":[],"R":[]}
"additionalProperties": false,
"apxid": "nationId",
"apxuniquekey": [
"nationId"
],
"apxidx": [
{
"name": "lst_nationId",
"type": "array",
"keyval": "nationId",
"apxaccess": {
"R": [
"*"
]
}
},
{
"name": "nations",
"type": "view",
"keyval": "nationId",
"objkey": [],
"filter": "",
"apxaccess": {
"R": [
"*"
]
}
}
],
"apxaccessrights": {
"pagan": {
"C": [],
"R": []
}
}
}