def METHOD_NAME(form):
    """Get registry database schema definition for vellum to display as an external data source.
    This lists all case types and their properties for the given app.
    """
    app = form.get_app()
    module = form.get_module()
    data_registry = module.search_config.data_registry
    subsets = []
    if form.requires_case() and data_registry:
        subsets.extend(_get_case_schema_subsets(app, module.case_type, hashtag='#registry_case/'))
    return {
        "id": "registry",
        "uri": "jr://instance/remote/registry",
        "name": "registry_case",
        "path": "/results/case",
        "structure": {},
        "subsets": subsets,
    }