Skip to content

basalt / tenancy-prisma/src / PrismaTenantSourceOptions

Interface: PrismaTenantSourceOptions ​

Defined in: tenancy-prisma/src/index.ts:24

Properties ​

columnLimits? ​

> optional columnLimits?: "mysql" | ColumnLimits<{ Tenant: "id"; TenantDomain: "tenantId" | "domain"; }>

Defined in: tenancy-prisma/src/index.ts:33

Refuse (throw ColumnLengthError) a tenant id or domain longer than its column instead of letting the database truncate it — on MySQL outside strict mode two long domains cut to the same prefix collide, and a cut domain resolves nobody. 'mysql' uses the limits of the bundled schema.mysql.prisma; pass an object for a schema of your own. Default: unchecked (PostgreSQL and SQLite store any length).

Released under the MIT License.