basalt / prisma/src / RlsPolicyOptions
Interface: RlsPolicyOptions
Defined in: prisma/src/rls.ts:38
Properties
force?
> optional force?: boolean
Defined in: prisma/src/rls.ts:54
Also enforce RLS for the table owner (FORCE ROW LEVEL SECURITY). Default: true — important because apps usually connect as the table's owner, who would otherwise bypass RLS.
policyName?
> optional policyName?: string
Defined in: prisma/src/rls.ts:46
Policy name. Default: 'tenant_isolation'.
schema?
> optional schema?: string
Defined in: prisma/src/rls.ts:48
Optional schema qualifier for the tables.
setting?
> optional setting?: string
Defined in: prisma/src/rls.ts:44
Postgres setting read for the active tenant. Default: 'app.tenant_id'.
tables
> tables: string[]
Defined in: prisma/src/rls.ts:40
Tables to protect (unqualified names).
tenantColumn?
> optional tenantColumn?: string
Defined in: prisma/src/rls.ts:42
Column holding the tenant id. Default: 'tenant_id'.