interface MemoryTenantDataStoreOptions

Options passed to the MemoryTenantDataStore constructor.

Properties

optional
generateId: () => string

Generate a unique identifier for new records when data.id is not a string or number. Defaults to a monotonic counter ('1', '2', …).

Usage

import { type MemoryTenantDataStoreOptions } from "multi-tenancy-plugin/src/index.ts";