crossbario / cfxdb

Database schemata for CrossbarFX and XBR, based on zLMDB
MIT License
0 stars 6 forks source link

sync #62

Closed oberstet closed 4 years ago

oberstet commented 4 years ago
(cpy382_1) oberstet@intel-nuci7:~/scm/crossbario/cfxdb$ python cfxdb/exporter.py 
{'globalschema': <cfxdb.globalschema.GlobalSchema object at 0x7fbae383c0a0>,
 'meta': <cfxdb.meta.schema.Schema object at 0x7fbae3e7dcd0>,
 'mrealmschema': <cfxdb.mrealmschema.MrealmSchema object at 0x7fbae383cd00>,
 'xbr': <cfxdb.xbr.schema.Schema object at 0x7fbae38510d0>,
 'xbrmm': <cfxdb.xbrmm.schema.Schema object at 0x7fbb0724f0a0>,
 'xbrnetwork': <cfxdb.xbrnetwork.schema.Schema object at 0x7fbae385d760>}
{'globalschema': {'activation_tokens': 'User activations.',
                  'idx_act_tokens_by_authid_pubkey': 'Index on '
                                                     'ActivationTokens: by '
                                                     '(authid, pubkey).',
                  'idx_mrealms_by_name': 'Index: pubkey -> oid.',
                  'idx_nodes_by_authid': 'Index: (mrealm_oid, authid) -> '
                                         'node_oid.',
                  'idx_nodes_by_pubkey': 'Index: pubkey -> node_oid.',
                  'idx_organizations_by_name': 'Index (by name) on '
                                               'organizations table.',
                  'idx_users_by_email': 'Index on Users: by email.',
                  'idx_users_by_pubkey': 'Index on Users: by pubkey.',
                  'mrealms': 'Table: oid -> mrealm.',
                  'nodes': 'Table: oid -> node.',
                  'organizations': 'Organizations defined in this domain '
                                   '(master node).',
                  'usage': 'Usage metering records.',
                  'users': 'Users registered in this domain (master node).',
                  'users_mrealm_roles': 'User roles on management realms.'},
 'meta': {'attributes': 'Generic meta-data attributes that can be stored on '
                        'objects in tables. Primary ke',
          'docs': '* Database table: ``doc_oid -> doc``',
          'idx_object_to_doc': '* Database index table ``(object_slot, '
                               'object_oid) -> doc_oid``'},
 'mrealmschema': {'arealm_role_associations': 'Association of a role with an '
                                              'application realm.',
                  'arealms': '* Database table: ``arealm_oid -> arealm``',
                  'credentials': '* Database table: ``credential_oid -> '
                                 'credential``',
                  'idx_arealm_by_webcluster': '* Database index table '
                                              '``(webcluster_oid, arealm_name) '
                                              '-> arealm_oid``',
                  'idx_arealms_by_name': '* Database index table ``arealm_name '
                                         '-> arealm_oid``',
                  'idx_clusterplacement_by_workername': '* Database index '
                                                        'table '
                                                        '``(workergroup_oid, '
                                                        'cluster_oid, '
                                                        'node_oid, '
                                                        'worker_name) -',
                  'idx_credentials_by_auth': '* Database index table '
                                             '``(authmethod, realm_name, '
                                             'authid) -> credential_oid``',
                  'idx_credentials_by_principal': '* Database index table '
                                                  '``(principal_oid, modified) '
                                                  '-> credential_oid``',
                  'idx_permissions_by_uri': '* Database index table '
                                            '``(role_oid, uri) -> '
                                            'permission_oid``',
                  'idx_principals_by_name': '* Database index table '
                                            '``(arealm_oid, principal_name) -> '
                                            'principal_oid``',
                  'idx_roles_by_name': '* Database index table ``role_name -> '
                                       'role_oid``',
                  'idx_routerclusters_by_name': '* Database index table '
                                                '``routercluster_name -> '
                                                'routercluster_oid``',
                  'idx_webcluster_webservices': '* Database index table '
                                                '``(webcluster_oid, '
                                                'webservice_oid) -> '
                                                'webservice_oid``',
                  'idx_webclusters_by_name': '* Database index table '
                                             '``webcluster_name -> '
                                             'webcluster_oid``',
                  'idx_webservices_by_path': '* Database index table '
                                             '``(webcluster_oid, '
                                             'webservice_name) -> '
                                             'webservice_oid``',
                  'idx_workergroup_by_cluster': '* Database index table '
                                                '``(cluster_oid, '
                                                'workergroup_name) -> '
                                                'workergroup_oid``',
                  'mnode_logs': 'Persisted managed node heartbeat log records.',
                  'mworker_logs': 'Persisted managed node worker heartbeat log '
                                  'records.',
                  'permissions': '* Database table: ``permission_oid -> '
                                 'permission``',
                  'principals': '* Database table: ``principal_oid -> '
                                'principal``',
                  'roles': '* Database table: ``role_oid -> role``',
                  'router_workergroup_placements': '* Database table: '
                                                   '``placement_oid -> '
                                                   'placement``',
                  'router_workergroups': '* Database table: ``workergroup_oid '
                                         '-> workergroup``',
                  'routercluster_node_memberships': '* Database table: '
                                                    '``(cluster_oid, node_oid) '
                                                    '-> '
                                                    'cluster_node_membership``',
                  'routerclusters': '* Database table: ``routercluster_oid -> '
                                    'routercluster``',
                  'webcluster_node_memberships': '* Database table: '
                                                 '``(webcluster_oid, node_oid) '
                                                 '-> '
                                                 'webcluster_node_membership``',
                  'webclusters': '* Database table: ``webcluster_oid -> '
                                 'webcluster``',
                  'webservices': '* Database table: ``webservice_oid -> '
                                 'webservice``'},
 'xbr': {'actors': 'Market actors table, mapping from ``(market_id|UUID, '
                   'actor_adr|bytes[20], actor_',
         'apis': 'Apis table, mapping from ``oid|UUID`` to '
                 ':class:`cfxdb.xbr.Api`',
         'blocks': 'Blockchain blocks processed.',
         'catalogs': 'Catalogs table, mapping from ``oid|UUID`` to '
                     ':class:`cfxdb.xbr.Catalog`',
         'consents': 'Consents table',
         'idx_apis_by_catalog': 'Api-by-Catalog, index with '
                                '``(catalog_oid|bytes[16], created|int) -> '
                                'api_oid|UUI',
         'idx_catalogs_by_owner': 'Catalogs-by-owner index with '
                                  '``(owner_adr|bytes[20], created|int) -> '
                                  'catalog_id|',
         'idx_consent_by_member_adr': 'Consent-by-member-address index with '
                                      '``(member_adr|bytes[20], timestamp|int) '
                                      '-> ',
         'idx_markets_by_actor': 'Markets-by-actor index with '
                                 '``(actor_adr|bytes[20], joined|int) -> '
                                 'market_id|UUI',
         'idx_markets_by_maker': 'Markets-by-maker index with '
                                 '``maker_adr|bytes[20] -> market_id|UUID`` '
                                 'mapping.',
         'idx_markets_by_owner': 'Markets-by-owner index with '
                                 '``(owner_adr|bytes[20], created|int) -> '
                                 'market_id|UU',
         'idx_offer_by_key': 'Index: key_id -> offer_id',
         'idx_paying_channel_by_delegate': 'Index: ``(delegate_adr, '
                                           'created_timestamp) -> '
                                           'channel_oid``',
         'idx_paying_channel_by_recipient': 'Index: ``(recipient_adr, '
                                            'created_timestamp) -> '
                                            'channel_oid``',
         'idx_payment_channel_by_actor': 'Index: ``(actor_adr, '
                                         'created_timestamp) -> channel_oid``',
         'idx_payment_channel_by_delegate': 'Index: ``(delegate_adr, '
                                            'created_timestamp) -> '
                                            'channel_oid``',
         'markets': 'Markets table, mapping from ``market_id|UUID`` to '
                    ':class:`cfxdb.xbr.Market`',
         'members': 'XBR members by ``member_adr``.',
         'offers': 'Persisted data encryption key offers.',
         'paying_balances': 'XBR paying channels current balances by '
                            '``channel_oid``.',
         'paying_channels': 'XBR paying channels by ``channel_oid``.',
         'payment_balances': 'XBR payment channels current balances by '
                             '``channel_oid``.',
         'payment_channels': 'XBR payment channels by ``channel_oid``.',
         'token_approvals': 'Persisted token approvals archive.',
         'token_transfers': 'Persisted token transfers archive.',
         'transactions': 'Data encryption key (off-chain) market '
                         'transactions.'},
 'xbrmm': {'consents': 'Consents table',
           'idx_consent_by_member_adr': 'Consent-by-member-address index with '
                                        '``(member_adr|bytes[20], '
                                        'timestamp|int) -> ',
           'idx_offer_by_key': 'Index: key_id -> offer_id',
           'idx_paying_channel_by_delegate': 'Index: ``(delegate_adr, '
                                             'created_timestamp) -> '
                                             'channel_oid``',
           'idx_paying_channel_by_recipient': 'Index: ``(recipient_adr, '
                                              'created_timestamp) -> '
                                              'channel_oid``',
           'idx_payment_channel_by_actor': 'Index: ``(actor_adr, '
                                           'created_timestamp) -> '
                                           'channel_oid``',
           'idx_payment_channel_by_delegate': 'Index: ``(delegate_adr, '
                                              'created_timestamp) -> '
                                              'channel_oid``',
           'idx_user_key_by_member': 'Database (index) table for (member_oid, '
                                     'created) -> userkey mapping.',
           'ipfs_files': 'Persisted IPFS files download log',
           'offers': 'Persisted data encryption key offers.',
           'paying_balances': 'XBR paying channels current balances by '
                              '``channel_oid``.',
           'paying_channels': 'XBR paying channels by ``channel_oid``.',
           'payment_balances': 'XBR payment channels current balances by '
                               '``channel_oid``.',
           'payment_channels': 'XBR payment channels by ``channel_oid``.',
           'transactions': 'Data encryption key (off-chain) market '
                           'transactions.',
           'user_keys': 'Database table for user client keys.'},
 'xbrnetwork': {'accounts': 'Database table for XBR member accounts.',
                'idx_accounts_by_email': 'Database (index) table for '
                                         '(user-)email-to-account mapping.',
                'idx_accounts_by_username': 'Database (index) table for '
                                            'username-to-account mapping.',
                'idx_accounts_by_wallet': 'Database (index) table for '
                                          '(user-)wallet-to-account mapping.',
                'idx_user_key_by_account': 'Database (index) table for '
                                           '(member_oid, created) -> userkey '
                                           'mapping.',
                'user_keys': 'Database table for user client keys.',
                'verified_actions': 'Database table for verification/verified '
                                    'actions, eg on-boarding new XBR members'}}

Database slots [dbpath="/home/oberstet/scm/crossbario/cfxdb/.xbrnetwork"]:

   Slot 42b1ca1f-f135-4761-8d10-f96a43612178 using DB table class cfxdb.meta.attribute.Attributes: Generic meta-data attributes that can be stored on objects in tables. Primary key of this table is ``(table_oid, object_oid, attribute)``.

    Map :class:`zlmdb.MapUuidUuidStringFlatBuffers` from ``(table_oid, object_oid, attribute)`` to :class:`cfxdb.meta.Attribute`
   Slot e11680d5-e20c-40b1-97d9-380b5ace1cb3 using DB table class cfxdb.meta.schema.Docs: * Database table: ``doc_oid -> doc``
    * Table type :class:`zlmdb.MapUuidCbor`
    * Key type :class:`uuid.UUID`
    * Record type :class:`cfxdb.mrealmschema.Doc`
   Slot d1de0b8c-3b6d-488b-8778-5bac8528ab4b using DB table class cfxdb.meta.schema.IndexObjectToDoc: * Database index table ``(object_slot, object_oid) -> doc_oid``
    * Table type :class:`zlmdb.MapSlotUuidUuid`
    * Key type :class:`typing.Tuple[int, uuid.UUID]`
    * Indexed table :class:`cfxdb.mrealmschema.Docs`
   Slot ae2fe53f-f8ec-4484-8a8f-cabdf1b38358 using DB table class cfxdb.globalschema.Organizations: Organizations defined in this domain (master node).

    * Table type :class:`zlmdb.MapUuidCbor`
    * Record type :class:`cfxdb.user.Organization`.
   Slot 3fb82ab2-430d-43a1-8200-fcd6355d0410 using DB table class cfxdb.globalschema.IndexOrganizationsByName: Index (by name) on organizations table.

    * Table type :class:`zlmdb.MapStringUuid`
    * Indexed table :class:`cfxdb.globalschema.Organizations`.
   Slot fa1ed0fc-304e-4f66-8092-d901df1735e4 using DB table class cfxdb.globalschema.Users: Users registered in this domain (master node).

    * Table type :class:`zlmdb.MapUuidCbor`
    * Record type :class:`cfxdb.user.User`
   Slot 882a24e4-90cc-4823-94fe-c1d938daffe6 using DB table class cfxdb.globalschema.IndexUsersByPubkey: Index on Users: by pubkey.

    * Table type :class:`zlmdb.MapStringUuid`
    * Indexed table :class:`cfxdb.globalschema.Users`
   Slot 933447a3-dd79-4599-bd9a-e0d88d9b84cb using DB table class cfxdb.globalschema.IndexUsersByEmail: Index on Users: by email.

    * Table type :class:`zlmdb.MapStringUuid`
    * Indexed table :class:`cfxdb.globalschema.Users`
   Slot c968886e-a2e2-490c-bc2a-6b684c3130f6 using DB table class cfxdb.globalschema.ActivationTokens: User activations.

    * Table type :class:`zlmdb.MapUuidCbor`
    * Record type :class:`cfxdb.user.ActivationToken`.
   Slot 0f6a9014-2e39-4cfd-9f2b-f6ffd3d3deca using DB table class cfxdb.globalschema.IndexActivationTokensByAuthidPubkey: Index on ActivationTokens: by (authid, pubkey).

    * Table type :class:`zlmdb.MapStringUuid`
    * Indexed table :class:`cfxdb.globalschema.ActivationTokens`.
   Slot 1219e71c-a62c-415a-bd15-ddf45e3a658b using DB table class cfxdb.globalschema.ManagementRealms: Table: oid -> mrealm.

    * Table type :class:`zlmdb.MapUuidCbor`
    * Record type :class:`cfxdb.mrealm.ManagementRealm`
   Slot 1d2e8045-ea2b-4456-be4a-7a234d3622d6 using DB table class cfxdb.globalschema.IndexManagementRealmByName: Index: pubkey -> oid.

    * Table type :class:`zlmdb.MapStringUuid`
    * Indexed table :class:`cfxdb.globalschema.Nodes`
   Slot eccdfc57-5632-4ad4-9c2b-2ac11e9d389f using DB table class cfxdb.globalschema.UserMrealmRoles: User roles on management realms.

    * Table type :class:`zlmdb.MapUuidUuidCbor`
    * Record type :class:`cfxdb.user.UserMrealmRole`
   Slot ae89d956-273a-4ce3-b63d-52b07ae35742 using DB table class cfxdb.globalschema.Nodes: Table: oid -> node.

    * Table type :class:`zlmdb.MapUuidCbor`
    * Record type :class:`cfxdb.mrealm.Node`
   Slot 1336c623-5f38-4397-ad5b-2e6b716b57b0 using DB table class cfxdb.globalschema.IndexNodesByPubkey: Index: pubkey -> node_oid.

    * Table type :class:`zlmdb.MapStringUuid`
    * Indexed table :class:`cfxdb.globalschema.Nodes`
   Slot 6d071a33-0577-4f72-a2e1-11182f60ab9c using DB table class cfxdb.globalschema.IndexNodesByAuthid: Index: (mrealm_oid, authid) -> node_oid.

    * Table type :class:`zlmdb.MapUuidStringUuid`
    * Indexed table :class:`cfxdb.globalschema.Nodes`
   Slot e38f7bf1-2514-400c-8c30-a979b2138503 using DB table class cfxdb.globalschema.UsageRecords: Usage metering records.

    * Table type :class:`zlmdb.MapTimestampUuidFlatBuffers`
    * Record type :class:`cfxdb.usage.MasterNodeUsage`.
   Slot 7099565b-7b44-4891-a0c8-83c7dbb60883 using DB table class cfxdb.mrealmschema.ApplicationRealms: * Database table: ``arealm_oid -> arealm``
    * Table type :class:`zlmdb.MapUuidCbor`
    * Key type :class:`uuid.UUID`
    * Record type :class:`cfxdb.mrealmschema.ApplicationRealm`
   Slot 89f3073a-32d5-497e-887d-7e930e9c26e6 using DB table class cfxdb.mrealmschema.IndexApplicationRealmByName: * Database index table ``arealm_name -> arealm_oid``
    * Table type :class:`zlmdb.MapStringUuid`
    * Key type :class:`uuid.UUID`
    * Indexed table :class:`cfxdb.mrealmschema.ApplicationRealms`
   Slot 0275b858-890c-4879-945c-720235b093d7 using DB table class cfxdb.mrealmschema.IndexApplicationRealmByWebCluster: * Database index table ``(webcluster_oid, arealm_name) -> arealm_oid``
    * Table type :class:`zlmdb.MapUuidStringUuid`
    * Key type :class:`uuid.UUID`
    * Indexed table :class:`cfxdb.mrealmschema.ApplicationRealms`
   Slot 9808cb0b-1b55-4b3f-858e-39004cb11135 using DB table class cfxdb.mrealmschema.Principals: * Database table: ``principal_oid -> principal``
    * Table type :class:`zlmdb.MapUuidCbor`
    * Key type :class:`uuid.UUID`
    * Record type :class:`cfxdb.mrealmschema.Principal`.
   Slot 212f3455-6d4c-43ec-843d-53cd17e31974 using DB table class cfxdb.mrealmschema.IndexPrincipalByName: * Database index table ``(arealm_oid, principal_name) -> principal_oid``
    * Table type :class:`zlmdb.MapUuidStringUuid`
    * Key type :class:`uuid.UUID`
    * Indexed table :class:`cfxdb.mrealmschema.Principals`
   Slot 251c8620-425a-4eeb-ade9-4284e8670080 using DB table class cfxdb.mrealmschema.Credentials: * Database table: ``credential_oid -> credential``
    * Table type :class:`zlmdb.MapUuidCbor`
    * Key type :class:`uuid.UUID`
    * Record type :class:`cfxdb.mrealmschema.Credential`.
   Slot 45490b42-b167-4df6-ab1c-41d434390397 using DB table class cfxdb.mrealmschema.IndexCredentialsByAuth: * Database index table ``(authmethod, realm_name, authid) -> credential_oid``
    * Table type :class:`zlmdb.MapStringStringStringUuid`
    * Key type :class:`uuid.UUID`
    * Indexed table :class:`cfxdb.mrealmschema.Credentials`
   Slot ed0da771-e331-4d93-b50c-d371391cd7b9 using DB table class cfxdb.mrealmschema.IndexCredentialsByPrincipal: * Database index table ``(principal_oid, modified) -> credential_oid``
    * Table type :class:`zlmdb.MapUuidIntUuid`
    * Key type :class:`uuid.UUID`
    * Indexed table :class:`cfxdb.mrealmschema.Credentials`
   Slot 341083bb-edeb-461c-a6d4-38dddcda6ec9 using DB table class cfxdb.mrealmschema.Roles: * Database table: ``role_oid -> role``
    * Table type :class:`zlmdb.MapUuidCbor`
    * Key type :class:`uuid.UUID`
    * Record type :class:`cfxdb.mrealmschema.Role`.
   Slot 71b990d1-4525-44cd-9ef8-3569de8b4c80 using DB table class cfxdb.mrealmschema.IndexRoleByName: * Database index table ``role_name -> role_oid``
    * Table type :class:`zlmdb.MapUuidStringUuid`
    * Key type :class:`uuid.UUID`
    * Indexed table :class:`cfxdb.mrealmschema.Roles`
   Slot 5eabdb63-9c31-4c97-b514-7e8fbac7e143 using DB table class cfxdb.mrealmschema.ApplicationRealmRoleAssociations: * Database table: ``(arealm_oid, role_oid) -> arealm_role_association``
    * Table type :class:`zlmdb.MapUuidUuidCbor`
    * Key type :class:`uuid.UUID`
    * Record type :class:`cfxdb.mrealm.ApplicationRealmRoleAssociation`.
   Slot f98ed35b-f8fb-47ba-81e1-3c014101464d using DB table class cfxdb.mrealmschema.Permissions: * Database table: ``permission_oid -> permission``
    * Table type :class:`zlmdb.MapUuidCbor`
    * Key type :class:`uuid.UUID`
    * Record type :class:`cfxdb.mrealm.Permission`.
   Slot 6cdc21bf-353d-4477-8631-8eb039142ae9 using DB table class cfxdb.mrealmschema.IndexPermissionByUri: * Database index table ``(role_oid, uri) -> permission_oid``
    * Table type :class:`zlmdb.MapUuidStringUuid`
    * Key type :class:`uuid.UUID`
    * Indexed table :class:`cfxdb.mrealmschema.Permissions`
   Slot b054a230-c370-4c29-b5de-7e0148321b0a using DB table class cfxdb.mrealmschema.RouterClusters: * Database table: ``routercluster_oid -> routercluster``
    * Table type :class:`zlmdb.MapUuidCbor`
    * Key type :class:`uuid.UUID`
    * Record type :class:`cfxdb.mrealmschema.RouterCluster`.
   Slot 0c80c7a8-7536-4a74-8916-4922c0b72cb7 using DB table class cfxdb.mrealmschema.IndexRouterClusterByName: * Database index table ``routercluster_name -> routercluster_oid``
    * Table type :class:`zlmdb.MapStringUuid`
    * Key type :class:`uuid.UUID`
    * Indexed table :class:`cfxdb.mrealmschema.RouterClusters`
   Slot a091bad6-f14c-437c-8e30-e9be84380658 using DB table class cfxdb.mrealmschema.RouterClusterNodeMemberships: * Database table: ``(cluster_oid, node_oid) -> cluster_node_membership``
    * Table type :class:`zlmdb.MapUuidUuidCbor`
    * Key type :class:`uuid.UUID`
    * Record type :class:`cfxdb.mrealmschema.RouterClusterNodeMemberships`.
   Slot c019457b-d499-454f-9bf2-4f7e85079d8f using DB table class cfxdb.mrealmschema.RouterWorkerGroups: * Database table: ``workergroup_oid -> workergroup``
    * Table type :class:`zlmdb.MapUuidCbor`
    * Key type :class:`uuid.UUID`
    * Record type :class:`cfxdb.mrealmschema.RouterWorkerGroup`.
   Slot 4bb8ec14-4820-4061-8b2c-d1841e2686e1 using DB table class cfxdb.mrealmschema.IndexWorkerGroupByCluster: * Database index table ``(cluster_oid, workergroup_name) -> workergroup_oid``
    * Table type :class:`zlmdb.MapUuidStringUuid`
    * Key type :class:`uuid.UUID`
    * Indexed table :class:`cfxdb.mrealmschema.RouterWorkerGroups`
   Slot e3d326d2-6140-47a9-adf9-8e93b832717b using DB table class cfxdb.mrealmschema.RouterWorkerGroupClusterPlacements: * Database table: ``placement_oid -> placement``
    * Table type :class:`zlmdb.MapUuidCbor`
    * Key type :class:`uuid.UUID`
    * Record type :class:`cfxdb.mrealmschema.RouterWorkerGroupClusterPlacement`.
   Slot 1a18739f-7224-4459-a446-6f1fedd760a7 using DB table class cfxdb.mrealmschema.IndexClusterPlacementByWorkerName: * Database index table ``(workergroup_oid, cluster_oid, node_oid, worker_name) -> placement_oid``
    * Table type :class:`zlmdb.MapUuidUuidUuidStringUuid`
    * Key type :class:`uuid.UUID`
    * Indexed table :class:`cfxdb.mrealmschema.RouterWorkerGroupClusterPlacements`
   Slot 719d029f-e9d5-4b25-98e0-cf04d5a2648b using DB table class cfxdb.mrealmschema.WebClusters: * Database table: ``webcluster_oid -> webcluster``
    * Table type :class:`zlmdb.MapUuidCbor`
    * Key type :class:`uuid.UUID`
    * Record type :class:`cfxdb.mrealmschema.WebCluster`.
   Slot 296c7d17-4769-4e40-8cb7-e6c394b93335 using DB table class cfxdb.mrealmschema.IndexWebClusterByName: * Database index table ``webcluster_name -> webcluster_oid``
    * Table type :class:`zlmdb.MapStringUuid`
    * Key type :class:`uuid.UUID`
    * Indexed table :class:`cfxdb.mrealmschema.WebClusters`
   Slot e9801077-a629-470b-a4c9-4292a1f00d43 using DB table class cfxdb.mrealmschema.WebClusterNodeMemberships: * Database table: ``(webcluster_oid, node_oid) -> webcluster_node_membership``
    * Table type :class:`zlmdb.MapUuidUuidCbor`
    * Key type :class:`uuid.UUID`
    * Record type :class:`cfxdb.mrealmschema.WebClusterNodeMembership`.
   Slot a8803ca3-09a0-4d72-8728-2469de8d50ac using DB table class cfxdb.mrealmschema.WebServices: * Database table: ``webservice_oid -> webservice``
    * Table type :class:`zlmdb.MapUuidCbor`
    * Key type :class:`uuid.UUID`
    * Record type :class:`cfxdb.mrealmschema.WebService`.
   Slot f0b05bcf-f682-49bb-929e-ac252e9867fa using DB table class cfxdb.mrealmschema.IndexWebServiceByPath: * Database index table ``(webcluster_oid, webservice_name) -> webservice_oid``
    * Table type :class:`zlmdb.MapUuidStringUuid`
    * Key type :class:`uuid.UUID`
    * Indexed table :class:`cfxdb.mrealmschema.WebServices`
   Slot d23d4dbb-5d5c-4ccc-b72a-0ff18363169f using DB table class cfxdb.mrealmschema.IndexWebClusterWebServices: * Database index table ``(webcluster_oid, webservice_oid) -> webservice_oid``
    * Table type :class:`zlmdb.MapUuidStringUuid`
    * Key type :class:`uuid.UUID`
    * Indexed table :class:`cfxdb.mrealmschema.WebServices`
   Slot 256a071f-5aeb-47f3-8786-97cd8281bdb7 using DB table class cfxdb.log.mnode_logs.MNodeLogs: Persisted managed node heartbeat log records.

    * Table type :class:`zlmdb.MapTimestampUuidFlatBuffers`
    * Key ``(timestamp, node_id)`` type :class:`typing.Tuple[int, uuid.UUID]`
    * Record type :class:`cfxdb.log.mnode_log.MNodeLog`
   Slot 5ceaa500-4832-451c-adf4-4fc4968cece0 using DB table class cfxdb.log.mworker_logs.MWorkerLogs: Persisted managed node worker heartbeat log records.

    * Table type :class:`zlmdb.MapTimestampUuidStringFlatBuffers`
    * Key ``(timestamp, node_id, worker_id)`` type :class:`typing.Tuple[int, uuid.UUID, uuid.UUID]`
    * Record type :class:`cfxdb.log.mworker_log.MWorkerLog`
   Slot 9f87bad9-695e-439d-86ad-9e23695d3f67 using DB table class cfxdb.xbr.api.Apis: Apis table, mapping from ``oid|UUID`` to :class:`cfxdb.xbr.Api`
   Slot 57ae5d83-57b0-4214-8481-a1853f7faf87 using DB table class cfxdb.xbr.api.IndexApiByCatalog: Api-by-Catalog, index with ``(catalog_oid|bytes[16], created|int) -> api_oid|UUID`` mapping.
   Slot a4a0553e-24fa-4280-9959-5805f034d861 using DB table class cfxdb.xbr.block.Blocks: Blockchain blocks processed.

    Map :class:`zlmdb.MapBytes32FlatBuffers` from ``block_number`` to :class:`cfxdb.xbr.Block`
   Slot 60ba3189-d127-4522-bfbc-ed416bf7233c using DB table class cfxdb.xbr.catalog.Catalogs: Catalogs table, mapping from ``oid|UUID`` to :class:`cfxdb.xbr.Catalog`
   Slot 2e331469-68f8-4b1b-a1b9-904f7e29dbc5 using DB table class cfxdb.xbr.catalog.IndexCatalogsByOwner: Catalogs-by-owner index with ``(owner_adr|bytes[20], created|int) -> catalog_id|UUID`` mapping.
   Slot 8b10071b-5b2a-478f-8101-52dfbaf0760a using DB table class cfxdb.xbr.consent.Consents: Consents table
   Slot 7cdac5f2-bddf-4fda-8e3c-21938a0c3667 using DB table class cfxdb.xbr.consent.IndexConsentByMemberAddress: Consent-by-member-address index with ``(member_adr|bytes[20], timestamp|int) -> consent_oid|UUID`` mapping.
   Slot f3d1f052-7160-48a7-b36a-221035fc9373 using DB table class cfxdb.xbr.token.TokenApprovals: Persisted token approvals archive.

    Map :class:`zlmdb.MapBytes32FlatBuffers` from ``transaction_hash`` to :class:`cfxdb.xbr.TokenApproval`
   Slot 7dcfffd2-4859-45d6-b9cd-ba7930a7a107 using DB table class cfxdb.xbr.token.TokenTransfers: Persisted token transfers archive.

    Map :class:`zlmdb.MapBytes32FlatBuffers` from ``transaction_hash`` to :class:`cfxdb.xbr.TokenTransfer`
   Slot d1808139-5a3b-4a4e-abad-152dd4cd1131 using DB table class cfxdb.xbr.member.Members: XBR members by ``member_adr``.

    Map :class:`zlmdb.MapBytes20FlatBuffers` from ``member_adr`` to :class:`cfxdb.xbr.Member`
   Slot 861b0942-0c3f-4d41-bc35-d8c86af0b2c9 using DB table class cfxdb.xbr.market.Markets: Markets table, mapping from ``market_id|UUID`` to :class:`cfxdb.xbr.Market`
   Slot 7c3d67b4-35a3-449f-85a6-2695636fc63e using DB table class cfxdb.xbr.market.IndexMarketsByOwner: Markets-by-owner index with ``(owner_adr|bytes[20], created|int) -> market_id|UUID`` mapping.
   Slot 1863eb64-322a-42dd-9fce-a59c99d5b40e using DB table class cfxdb.xbr.actor.Actors: Market actors table, mapping from ``(market_id|UUID, actor_adr|bytes[20], actor_type|int)`` to :class:`cfxdb.xbr.Actor`.
   Slot 4f50a97a-4531-4eab-a91b-45cc42b3dd21 using DB table class cfxdb.xbr.market.IndexMarketsByActor: Markets-by-actor index with ``(actor_adr|bytes[20], joined|int) -> market_id|UUID`` mapping.
   Slot d511774c-0c7b-4d3f-a2de-6748c072a56f using DB table class cfxdb.xbr.market.IndexMarketsByMaker: Markets-by-maker index with ``maker_adr|bytes[20] -> market_id|UUID`` mapping.
   Slot b3d01946-85ae-49f3-ad96-b78194eb82fe using DB table class cfxdb.xbrmm.channel.PaymentChannels: XBR payment channels by ``channel_oid``.

    Map :class:`zlmdb.MapUuidFlatBuffers` from ``channel_oid`` to :class:`cfxdb.xbr.Channel`
   Slot cffd5253-72f8-41a9-8b76-5e6ff3654e67 using DB table class cfxdb.xbrmm.channel.IndexPaymentChannelByDelegate: Index: ``(delegate_adr, created_timestamp) -> channel_oid``
   Slot c78e0113-3b40-42b1-a15f-0b478ccf0de4 using DB table class cfxdb.xbrmm.channel.IndexPaymentChannelByActor: Index: ``(actor_adr, created_timestamp) -> channel_oid``
   Slot 878ac002-a830-488b-bfe9-f06371b8eecb using DB table class cfxdb.xbrmm.channel.PaymentChannelBalances: XBR payment channels current balances by ``channel_oid``.

    Map :class:`zlmdb.MapBytes20FlatBuffers` from ``channel_oid`` to :class:`cfxdb.xbr.Balance`
   Slot 4e7e7c8d-db0d-4dea-8409-ac8f21ce1e10 using DB table class cfxdb.xbrmm.channel.PayingChannels: XBR paying channels by ``channel_oid``.

    Map :class:`zlmdb.MapUuidFlatBuffers` from ``channel_oid`` to :class:`cfxdb.xbr.Channel`
   Slot cee954be-fdb2-43cc-8891-529d6c7a0c3b using DB table class cfxdb.xbrmm.channel.IndexPayingChannelByDelegate: Index: ``(delegate_adr, created_timestamp) -> channel_oid``
   Slot 655a9d5f-0bdf-4c2a-8102-208f6da4a566 using DB table class cfxdb.xbrmm.channel.IndexPayingChannelByRecipient: Index: ``(recipient_adr, created_timestamp) -> channel_oid``
   Slot c0931d5d-6d5d-4f9c-b2a3-29664a0f4c07 using DB table class cfxdb.xbrmm.channel.PayingChannelBalances: XBR paying channels current balances by ``channel_oid``.

    Map :class:`zlmdb.MapBytes20FlatBuffers` from ``channel_oid`` to :class:`cfxdb.xbr.Balance`
   Slot dc6d175b-3dd0-4b1f-a6e8-2aec7f0e3fe5 using DB table class cfxdb.xbrmm.offer.Offers: Persisted data encryption key offers.

    Map :class:`zlmdb.MapBytes32FlatBuffers` from ``offer_id`` to :class:`cfxdb.xbr.Offer`
   Slot ef5f1cdc-4871-4a03-ac1c-c60e80875b8b using DB table class cfxdb.xbrmm.offer.IndexOfferByKey: Index: key_id -> offer_id
   Slot 87cf8eac-10d8-470d-a645-23e11343e065 using DB table class cfxdb.xbrmm.transaction.Transactions: Data encryption key (off-chain) market transactions.
   Slot 62d140f6-c1f4-4f38-bfde-e450f29d0f95 using DB table class cfxdb.xbrmm.userkey.UserKeys: Database table for user client keys.
   Slot d4476238-c642-4625-8844-780137152ddd using DB table class cfxdb.xbrmm.userkey.IndexUserKeyByMember: Database (index) table for (member_oid, created) -> userkey mapping.
   Slot def3af4e-190c-4852-93da-731934deef90 using DB table class cfxdb.xbrmm.ipfs_file.IPFSFiles: Persisted IPFS files download log

    Map :class:`zlmdb.MapStringFlatBuffers` from ``file_hash`` to :class:`cfxdb.xbrmm.IPFSFile`
   Slot d155dff2-ac36-4c69-b1b0-254ce2eb237d using DB table class cfxdb.xbrnetwork.account.Accounts: Database table for XBR member accounts.
   Slot 760d42a0-110e-474b-ab85-6e2396af035d using DB table class cfxdb.xbrnetwork.account.IndexAccountsByUsername: Database (index) table for username-to-account mapping.
   Slot 76706b89-8639-491e-8989-afc5a7c8a5b4 using DB table class cfxdb.xbrnetwork.account.IndexAccountsByEmail: Database (index) table for (user-)email-to-account mapping.
   Slot 432ae4fa-a23e-45d7-b2a4-c9ae868df2b3 using DB table class cfxdb.xbrnetwork.account.IndexAccountsByWallet: Database (index) table for (user-)wallet-to-account mapping.
   Slot 84d805a7-c012-4dfa-9b95-e34760767f82 using DB table class cfxdb.xbrnetwork.vaction.VerifiedActions: Database table for verification/verified actions, eg on-boarding new XBR members.
   Slot 5b5d0ce7-33f4-4421-a6ab-ed77cafc763a using DB table class cfxdb.xbrnetwork.userkey.UserKeys: Database table for user client keys.
   Slot 68b736f8-27df-4e3e-b80f-1b855ae5596f using DB table class cfxdb.xbrnetwork.userkey.IndexUserKeyByAccount: Database (index) table for (member_oid, created) -> userkey mapping.

Database table statistics [dbpath="/home/oberstet/scm/crossbario/cfxdb/.xbrnetwork"]:

meta.attributes........................: 0 records
meta.docs..............................: 0 records
meta.idx_object_to_doc.................: 0 records
globalschema.nodes.....................: 0 records
globalschema.idx_nodes_by_pubkey.......: 0 records
globalschema.idx_nodes_by_authid.......: 0 records
globalschema.organizations.............: 0 records
globalschema.idx_organizations_by_name.: 0 records
globalschema.users.....................: 0 records
globalschema.idx_users_by_pubkey.......: 0 records
globalschema.idx_users_by_email........: 0 records
globalschema.activation_tokens.........: 0 records
globalschema.idx_act_tokens_by_authid_pubkey: 0 records
globalschema.mrealms...................: 0 records
globalschema.idx_mrealms_by_name.......: 0 records
globalschema.users_mrealm_roles........: 0 records
globalschema.usage.....................: 0 records
mrealmschema.principals................: 0 records
mrealmschema.idx_principals_by_name....: 0 records
mrealmschema.credentials...............: 0 records
mrealmschema.idx_credentials_by_auth...: 0 records
mrealmschema.idx_credentials_by_principal: 0 records
mrealmschema.roles.....................: 0 records
mrealmschema.idx_roles_by_name.........: 0 records
mrealmschema.permissions...............: 0 records
mrealmschema.idx_permissions_by_uri....: 0 records
mrealmschema.arealms...................: 0 records
mrealmschema.idx_arealms_by_name.......: 0 records
mrealmschema.idx_arealm_by_webcluster..: 0 records
mrealmschema.arealm_role_associations..: 0 records
mrealmschema.routerclusters............: 0 records
mrealmschema.idx_routerclusters_by_name: 0 records
mrealmschema.routercluster_node_memberships: 0 records
mrealmschema.router_workergroups.......: 0 records
mrealmschema.idx_workergroup_by_cluster: 0 records
mrealmschema.router_workergroup_placements: 0 records
mrealmschema.idx_clusterplacement_by_workername: 0 records
mrealmschema.webclusters...............: 0 records
mrealmschema.idx_webclusters_by_name...: 0 records
mrealmschema.webcluster_node_memberships: 0 records
mrealmschema.webservices...............: 0 records
mrealmschema.idx_webservices_by_path...: 0 records
mrealmschema.idx_webcluster_webservices: 0 records
mrealmschema.mnode_logs................: 0 records
mrealmschema.mworker_logs..............: 0 records
xbr.blocks.............................: 0 records
xbr.token_approvals....................: 0 records
xbr.token_transfers....................: 0 records
xbr.members............................: 0 records
xbr.catalogs...........................: 0 records
xbr.idx_catalogs_by_owner..............: 0 records
xbr.apis...............................: 0 records
xbr.idx_apis_by_catalog................: 0 records
xbr.markets............................: 0 records
xbr.idx_markets_by_owner...............: 0 records
xbr.idx_markets_by_actor...............: 0 records
xbr.idx_markets_by_maker...............: 0 records
xbr.actors.............................: 0 records
xbr.consents...........................: 0 records
xbr.idx_consent_by_member_adr..........: 0 records
xbr.payment_channels...................: 0 records
xbr.idx_payment_channel_by_delegate....: 0 records
xbr.idx_payment_channel_by_actor.......: 0 records
xbr.payment_balances...................: 0 records
xbr.paying_channels....................: 0 records
xbr.idx_paying_channel_by_delegate.....: 0 records
xbr.idx_paying_channel_by_recipient....: 0 records
xbr.paying_balances....................: 0 records
xbr.offers.............................: 0 records
xbr.idx_offer_by_key...................: 0 records
xbr.transactions.......................: 0 records
xbrmm.consents.........................: 0 records
xbrmm.idx_consent_by_member_adr........: 0 records
xbrmm.payment_channels.................: 0 records
xbrmm.idx_payment_channel_by_delegate..: 0 records
xbrmm.idx_payment_channel_by_actor.....: 0 records
xbrmm.payment_balances.................: 0 records
xbrmm.paying_channels..................: 0 records
xbrmm.idx_paying_channel_by_delegate...: 0 records
xbrmm.idx_paying_channel_by_recipient..: 0 records
xbrmm.paying_balances..................: 0 records
xbrmm.offers...........................: 0 records
xbrmm.idx_offer_by_key.................: 0 records
xbrmm.transactions.....................: 0 records
xbrmm.user_keys........................: 0 records
xbrmm.idx_user_key_by_member...........: 0 records
xbrmm.ipfs_files.......................: 0 records
xbrnetwork.accounts....................: 1 records
xbrnetwork.idx_accounts_by_username....: 1 records
xbrnetwork.idx_accounts_by_email.......: 1 records
xbrnetwork.idx_accounts_by_wallet......: 1 records
xbrnetwork.verified_actions............: 0 records
xbrnetwork.user_keys...................: 1 records
xbrnetwork.idx_user_key_by_account.....: 1 records

Exported database [dbpath="/home/oberstet/scm/crossbario/cfxdb/.xbrnetwork", filename="test.dat", filesize=611]:

(cpy382_1) oberstet@intel-nuci7:~/scm/crossbario/cfxdb$ 
(cpy382_1) oberstet@intel-nuci7:~/scm/crossbario/cfxdb$