Skip to content

SchemaMap

SchemaMap = Record<string, DrizzleTable>

Defined in: packages/permissions/src/types.ts:28

A schema map: an object mapping JS schema keys to Drizzle table references.

Typically the result of import * as schema from "./schema". Used as the TTables generic parameter for definePermissions, can, and the curried grant callback so that string subjects (e.g. "projects" or "project_versions") are constrained to known table names at compile time.