Add RegToken schema

This commit is contained in:
Jordan Bancino 2023-11-07 00:27:59 -05:00
parent 5d1cdc0026
commit a1bcbcf454

63
Schema/RegToken.json Normal file
View file

@ -0,0 +1,63 @@
{
"header": "Schema\/RegToken.h",
"include": [
"Cytoplasm\/Db.h"
],
"types": {
"RegTokenAdminRequest": {
"fields": {
"name": {
"type": "string"
},
"max_uses": {
"type": "integer"
},
"lifetime": {
"type": "integer"
}
},
"type": "struct"
},
"Db *": {
"type": "extern"
},
"DbRef *": {
"type": "extern"
},
"RegTokenInfo": {
"fields": {
"db": {
"type": "Db *",
"ignore": true
},
"ref": {
"type": "DbRef *",
"ignore": true
},
"name": {
"type": "string"
},
"created_by": {
"type": "string"
},
"created_on": {
"type": "integer"
},
"expires_on": {
"type": "integer"
},
"used": {
"type": "integer"
},
"uses": {
"type": "integer"
},
"grants": {
"type": "[string]"
}
},
"type": "struct"
}
},
"guard": "TELODENDRIA_ADMINTOKEN_H"
}