Skip to main content

Crate alibi_schema_registry

Crate alibi_schema_registry 

Source
Expand description

Authoritative field registry for Alibi entity schemas.

Shared by the AuthEntity proc macro (for compile-time validation) and the CLI (for code generation). This is the single source of truth for which fields belong to core vs which are plugin-provided.

Structs§

ExtraEntitySchema
FieldDef
PluginSchema

Enums§

EntityRole

Constants§

POSTGRES_AUTH_SCHEMA
POSTGRES_OAUTH_SCHEMA
POSTGRES_RATE_LIMIT_SCHEMA
POSTGRES_SCIM_BINDING_SCHEMA
POSTGRES_SCIM_CANONICAL_SCHEMA
POSTGRES_SCIM_MANAGED_SCHEMA
POSTGRES_SSO_SCHEMA
SQLITE_AUTH_SCHEMA
Exact bundled SQL compiled from the pinned Better Auth TypeScript schema.
SQLITE_OAUTH_SCHEMA
SQLITE_RATE_LIMIT_SCHEMA
SQLITE_SCIM_BINDING_SCHEMA
SQLITE_SCIM_CANONICAL_SCHEMA
SQLITE_SCIM_MANAGED_SCHEMA
SQLITE_SSO_SCHEMA

Functions§

core_field_names
Core field names only (convenience for the macro).
core_fields
Core fields that are always required for a given entity role.
plugin_field_names
All plugin field names for a given role (convenience for the macro).
plugin_schemas
Plugin schemas — each plugin can add fields to user and/or session entities.