Skip to content

basalt / tenancy-prisma/src / PrismaTenancyDelegates

Interface: PrismaTenancyDelegates ​

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

The model delegates the source uses — also what a transaction client offers.

Extended by ​

Properties ​

tenant ​

> tenant: object

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

create() ​

> create(a): Promise<PTenant>

Parameters ​
a ​

any

Returns ​

Promise<PTenant>

deleteMany() ​

> deleteMany(a): Promise<{ count: number; }>

Parameters ​
a ​

any

Returns ​

Promise<{ count: number; }>

findMany() ​

> findMany(a): Promise<PTenant[]>

Parameters ​
a ​

any

Returns ​

Promise<PTenant[]>

findUnique() ​

> findUnique(a): Promise<PTenant | null>

Parameters ​
a ​

any

Returns ​

Promise<PTenant | null>

upsert() ​

> upsert(a): Promise<PTenant>

Parameters ​
a ​

any

Returns ​

Promise<PTenant>


tenantDomain ​

> tenantDomain: object

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

createMany() ​

> createMany(a): Promise<{ count: number; }>

Parameters ​
a ​

any

Returns ​

Promise<{ count: number; }>

deleteMany() ​

> deleteMany(a): Promise<{ count: number; }>

Parameters ​
a ​

any

Returns ​

Promise<{ count: number; }>

findUnique() ​

> findUnique(a): Promise<PTenantDomain | null>

Parameters ​
a ​

any

Returns ​

Promise<PTenantDomain | null>

Released under the MIT License.