class ColumnPerTenant

Isolates tenants by stamping a tenant column on every row.

The default column name is 'tenant_id', configurable at construction.

Implements the 'column' arm of ITenantIsolationStrategy.

Constructors

ColumnPerTenant(columnName?: string)

Properties

readonly
kind: "column"

Methods

Return the column name used to stamp tenant ids on rows.

Usage

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