Files
HiveGrid-Wireframes/03 Quellen und Referenzen/hivegrid-cloud/packages/db/generated/prisma/client/models/AdminTenantNote.ts
T

1611 lines
65 KiB
TypeScript

/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck
/*
* This file exports the `AdminTenantNote` model and its related types.
*
* 🟢 You can import this file directly.
*/
import type * as runtime from "@prisma/client/runtime/client"
import type * as $Enums from "../enums.ts"
import type * as Prisma from "../internal/prismaNamespace.ts"
/**
* Model AdminTenantNote
* AdminTenantNote — free-form operator notes pinned to a tenant.
* ENTITY-MODEL Domäne 11: markdown note_text, category, pinned.
* Written from the admin tenant-detail screen; every write also emits
* an admin AuditEvent (tenantId=null, actorType="admin").
*/
export type AdminTenantNoteModel = runtime.Types.Result.DefaultSelection<Prisma.$AdminTenantNotePayload>
export type AggregateAdminTenantNote = {
_count: AdminTenantNoteCountAggregateOutputType | null
_min: AdminTenantNoteMinAggregateOutputType | null
_max: AdminTenantNoteMaxAggregateOutputType | null
}
export type AdminTenantNoteMinAggregateOutputType = {
id: string | null
createdAt: Date | null
updatedAt: Date | null
tenantId: string | null
authorUserId: string | null
noteText: string | null
category: string | null
pinned: boolean | null
}
export type AdminTenantNoteMaxAggregateOutputType = {
id: string | null
createdAt: Date | null
updatedAt: Date | null
tenantId: string | null
authorUserId: string | null
noteText: string | null
category: string | null
pinned: boolean | null
}
export type AdminTenantNoteCountAggregateOutputType = {
id: number
createdAt: number
updatedAt: number
tenantId: number
authorUserId: number
noteText: number
category: number
pinned: number
_all: number
}
export type AdminTenantNoteMinAggregateInputType = {
id?: true
createdAt?: true
updatedAt?: true
tenantId?: true
authorUserId?: true
noteText?: true
category?: true
pinned?: true
}
export type AdminTenantNoteMaxAggregateInputType = {
id?: true
createdAt?: true
updatedAt?: true
tenantId?: true
authorUserId?: true
noteText?: true
category?: true
pinned?: true
}
export type AdminTenantNoteCountAggregateInputType = {
id?: true
createdAt?: true
updatedAt?: true
tenantId?: true
authorUserId?: true
noteText?: true
category?: true
pinned?: true
_all?: true
}
export type AdminTenantNoteAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which AdminTenantNote to aggregate.
*/
where?: Prisma.AdminTenantNoteWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of AdminTenantNotes to fetch.
*/
orderBy?: Prisma.AdminTenantNoteOrderByWithRelationInput | Prisma.AdminTenantNoteOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.AdminTenantNoteWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` AdminTenantNotes from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` AdminTenantNotes.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned AdminTenantNotes
**/
_count?: true | AdminTenantNoteCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: AdminTenantNoteMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: AdminTenantNoteMaxAggregateInputType
}
export type GetAdminTenantNoteAggregateType<T extends AdminTenantNoteAggregateArgs> = {
[P in keyof T & keyof AggregateAdminTenantNote]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateAdminTenantNote[P]>
: Prisma.GetScalarType<T[P], AggregateAdminTenantNote[P]>
}
export type AdminTenantNoteGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.AdminTenantNoteWhereInput
orderBy?: Prisma.AdminTenantNoteOrderByWithAggregationInput | Prisma.AdminTenantNoteOrderByWithAggregationInput[]
by: Prisma.AdminTenantNoteScalarFieldEnum[] | Prisma.AdminTenantNoteScalarFieldEnum
having?: Prisma.AdminTenantNoteScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: AdminTenantNoteCountAggregateInputType | true
_min?: AdminTenantNoteMinAggregateInputType
_max?: AdminTenantNoteMaxAggregateInputType
}
export type AdminTenantNoteGroupByOutputType = {
id: string
createdAt: Date
updatedAt: Date
tenantId: string
authorUserId: string | null
noteText: string
category: string
pinned: boolean
_count: AdminTenantNoteCountAggregateOutputType | null
_min: AdminTenantNoteMinAggregateOutputType | null
_max: AdminTenantNoteMaxAggregateOutputType | null
}
export type GetAdminTenantNoteGroupByPayload<T extends AdminTenantNoteGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<AdminTenantNoteGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof AdminTenantNoteGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], AdminTenantNoteGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], AdminTenantNoteGroupByOutputType[P]>
}
>
>
export type AdminTenantNoteWhereInput = {
AND?: Prisma.AdminTenantNoteWhereInput | Prisma.AdminTenantNoteWhereInput[]
OR?: Prisma.AdminTenantNoteWhereInput[]
NOT?: Prisma.AdminTenantNoteWhereInput | Prisma.AdminTenantNoteWhereInput[]
id?: Prisma.StringFilter<"AdminTenantNote"> | string
createdAt?: Prisma.DateTimeFilter<"AdminTenantNote"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"AdminTenantNote"> | Date | string
tenantId?: Prisma.StringFilter<"AdminTenantNote"> | string
authorUserId?: Prisma.StringNullableFilter<"AdminTenantNote"> | string | null
noteText?: Prisma.StringFilter<"AdminTenantNote"> | string
category?: Prisma.StringFilter<"AdminTenantNote"> | string
pinned?: Prisma.BoolFilter<"AdminTenantNote"> | boolean
tenant?: Prisma.XOR<Prisma.TenantScalarRelationFilter, Prisma.TenantWhereInput>
author?: Prisma.XOR<Prisma.AdminUserNullableScalarRelationFilter, Prisma.AdminUserWhereInput> | null
}
export type AdminTenantNoteOrderByWithRelationInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
authorUserId?: Prisma.SortOrderInput | Prisma.SortOrder
noteText?: Prisma.SortOrder
category?: Prisma.SortOrder
pinned?: Prisma.SortOrder
tenant?: Prisma.TenantOrderByWithRelationInput
author?: Prisma.AdminUserOrderByWithRelationInput
}
export type AdminTenantNoteWhereUniqueInput = Prisma.AtLeast<{
id?: string
AND?: Prisma.AdminTenantNoteWhereInput | Prisma.AdminTenantNoteWhereInput[]
OR?: Prisma.AdminTenantNoteWhereInput[]
NOT?: Prisma.AdminTenantNoteWhereInput | Prisma.AdminTenantNoteWhereInput[]
createdAt?: Prisma.DateTimeFilter<"AdminTenantNote"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"AdminTenantNote"> | Date | string
tenantId?: Prisma.StringFilter<"AdminTenantNote"> | string
authorUserId?: Prisma.StringNullableFilter<"AdminTenantNote"> | string | null
noteText?: Prisma.StringFilter<"AdminTenantNote"> | string
category?: Prisma.StringFilter<"AdminTenantNote"> | string
pinned?: Prisma.BoolFilter<"AdminTenantNote"> | boolean
tenant?: Prisma.XOR<Prisma.TenantScalarRelationFilter, Prisma.TenantWhereInput>
author?: Prisma.XOR<Prisma.AdminUserNullableScalarRelationFilter, Prisma.AdminUserWhereInput> | null
}, "id">
export type AdminTenantNoteOrderByWithAggregationInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
authorUserId?: Prisma.SortOrderInput | Prisma.SortOrder
noteText?: Prisma.SortOrder
category?: Prisma.SortOrder
pinned?: Prisma.SortOrder
_count?: Prisma.AdminTenantNoteCountOrderByAggregateInput
_max?: Prisma.AdminTenantNoteMaxOrderByAggregateInput
_min?: Prisma.AdminTenantNoteMinOrderByAggregateInput
}
export type AdminTenantNoteScalarWhereWithAggregatesInput = {
AND?: Prisma.AdminTenantNoteScalarWhereWithAggregatesInput | Prisma.AdminTenantNoteScalarWhereWithAggregatesInput[]
OR?: Prisma.AdminTenantNoteScalarWhereWithAggregatesInput[]
NOT?: Prisma.AdminTenantNoteScalarWhereWithAggregatesInput | Prisma.AdminTenantNoteScalarWhereWithAggregatesInput[]
id?: Prisma.StringWithAggregatesFilter<"AdminTenantNote"> | string
createdAt?: Prisma.DateTimeWithAggregatesFilter<"AdminTenantNote"> | Date | string
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"AdminTenantNote"> | Date | string
tenantId?: Prisma.StringWithAggregatesFilter<"AdminTenantNote"> | string
authorUserId?: Prisma.StringNullableWithAggregatesFilter<"AdminTenantNote"> | string | null
noteText?: Prisma.StringWithAggregatesFilter<"AdminTenantNote"> | string
category?: Prisma.StringWithAggregatesFilter<"AdminTenantNote"> | string
pinned?: Prisma.BoolWithAggregatesFilter<"AdminTenantNote"> | boolean
}
export type AdminTenantNoteCreateInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
noteText: string
category?: string
pinned?: boolean
tenant: Prisma.TenantCreateNestedOneWithoutAdminTenantNotesInput
author?: Prisma.AdminUserCreateNestedOneWithoutAdminTenantNotesAuthoredInput
}
export type AdminTenantNoteUncheckedCreateInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
tenantId: string
authorUserId?: string | null
noteText: string
category?: string
pinned?: boolean
}
export type AdminTenantNoteUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
noteText?: Prisma.StringFieldUpdateOperationsInput | string
category?: Prisma.StringFieldUpdateOperationsInput | string
pinned?: Prisma.BoolFieldUpdateOperationsInput | boolean
tenant?: Prisma.TenantUpdateOneRequiredWithoutAdminTenantNotesNestedInput
author?: Prisma.AdminUserUpdateOneWithoutAdminTenantNotesAuthoredNestedInput
}
export type AdminTenantNoteUncheckedUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
authorUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
noteText?: Prisma.StringFieldUpdateOperationsInput | string
category?: Prisma.StringFieldUpdateOperationsInput | string
pinned?: Prisma.BoolFieldUpdateOperationsInput | boolean
}
export type AdminTenantNoteCreateManyInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
tenantId: string
authorUserId?: string | null
noteText: string
category?: string
pinned?: boolean
}
export type AdminTenantNoteUpdateManyMutationInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
noteText?: Prisma.StringFieldUpdateOperationsInput | string
category?: Prisma.StringFieldUpdateOperationsInput | string
pinned?: Prisma.BoolFieldUpdateOperationsInput | boolean
}
export type AdminTenantNoteUncheckedUpdateManyInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
authorUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
noteText?: Prisma.StringFieldUpdateOperationsInput | string
category?: Prisma.StringFieldUpdateOperationsInput | string
pinned?: Prisma.BoolFieldUpdateOperationsInput | boolean
}
export type AdminTenantNoteListRelationFilter = {
every?: Prisma.AdminTenantNoteWhereInput
some?: Prisma.AdminTenantNoteWhereInput
none?: Prisma.AdminTenantNoteWhereInput
}
export type AdminTenantNoteOrderByRelationAggregateInput = {
_count?: Prisma.SortOrder
}
export type AdminTenantNoteCountOrderByAggregateInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
authorUserId?: Prisma.SortOrder
noteText?: Prisma.SortOrder
category?: Prisma.SortOrder
pinned?: Prisma.SortOrder
}
export type AdminTenantNoteMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
authorUserId?: Prisma.SortOrder
noteText?: Prisma.SortOrder
category?: Prisma.SortOrder
pinned?: Prisma.SortOrder
}
export type AdminTenantNoteMinOrderByAggregateInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
authorUserId?: Prisma.SortOrder
noteText?: Prisma.SortOrder
category?: Prisma.SortOrder
pinned?: Prisma.SortOrder
}
export type AdminTenantNoteCreateNestedManyWithoutTenantInput = {
create?: Prisma.XOR<Prisma.AdminTenantNoteCreateWithoutTenantInput, Prisma.AdminTenantNoteUncheckedCreateWithoutTenantInput> | Prisma.AdminTenantNoteCreateWithoutTenantInput[] | Prisma.AdminTenantNoteUncheckedCreateWithoutTenantInput[]
connectOrCreate?: Prisma.AdminTenantNoteCreateOrConnectWithoutTenantInput | Prisma.AdminTenantNoteCreateOrConnectWithoutTenantInput[]
createMany?: Prisma.AdminTenantNoteCreateManyTenantInputEnvelope
connect?: Prisma.AdminTenantNoteWhereUniqueInput | Prisma.AdminTenantNoteWhereUniqueInput[]
}
export type AdminTenantNoteUncheckedCreateNestedManyWithoutTenantInput = {
create?: Prisma.XOR<Prisma.AdminTenantNoteCreateWithoutTenantInput, Prisma.AdminTenantNoteUncheckedCreateWithoutTenantInput> | Prisma.AdminTenantNoteCreateWithoutTenantInput[] | Prisma.AdminTenantNoteUncheckedCreateWithoutTenantInput[]
connectOrCreate?: Prisma.AdminTenantNoteCreateOrConnectWithoutTenantInput | Prisma.AdminTenantNoteCreateOrConnectWithoutTenantInput[]
createMany?: Prisma.AdminTenantNoteCreateManyTenantInputEnvelope
connect?: Prisma.AdminTenantNoteWhereUniqueInput | Prisma.AdminTenantNoteWhereUniqueInput[]
}
export type AdminTenantNoteUpdateManyWithoutTenantNestedInput = {
create?: Prisma.XOR<Prisma.AdminTenantNoteCreateWithoutTenantInput, Prisma.AdminTenantNoteUncheckedCreateWithoutTenantInput> | Prisma.AdminTenantNoteCreateWithoutTenantInput[] | Prisma.AdminTenantNoteUncheckedCreateWithoutTenantInput[]
connectOrCreate?: Prisma.AdminTenantNoteCreateOrConnectWithoutTenantInput | Prisma.AdminTenantNoteCreateOrConnectWithoutTenantInput[]
upsert?: Prisma.AdminTenantNoteUpsertWithWhereUniqueWithoutTenantInput | Prisma.AdminTenantNoteUpsertWithWhereUniqueWithoutTenantInput[]
createMany?: Prisma.AdminTenantNoteCreateManyTenantInputEnvelope
set?: Prisma.AdminTenantNoteWhereUniqueInput | Prisma.AdminTenantNoteWhereUniqueInput[]
disconnect?: Prisma.AdminTenantNoteWhereUniqueInput | Prisma.AdminTenantNoteWhereUniqueInput[]
delete?: Prisma.AdminTenantNoteWhereUniqueInput | Prisma.AdminTenantNoteWhereUniqueInput[]
connect?: Prisma.AdminTenantNoteWhereUniqueInput | Prisma.AdminTenantNoteWhereUniqueInput[]
update?: Prisma.AdminTenantNoteUpdateWithWhereUniqueWithoutTenantInput | Prisma.AdminTenantNoteUpdateWithWhereUniqueWithoutTenantInput[]
updateMany?: Prisma.AdminTenantNoteUpdateManyWithWhereWithoutTenantInput | Prisma.AdminTenantNoteUpdateManyWithWhereWithoutTenantInput[]
deleteMany?: Prisma.AdminTenantNoteScalarWhereInput | Prisma.AdminTenantNoteScalarWhereInput[]
}
export type AdminTenantNoteUncheckedUpdateManyWithoutTenantNestedInput = {
create?: Prisma.XOR<Prisma.AdminTenantNoteCreateWithoutTenantInput, Prisma.AdminTenantNoteUncheckedCreateWithoutTenantInput> | Prisma.AdminTenantNoteCreateWithoutTenantInput[] | Prisma.AdminTenantNoteUncheckedCreateWithoutTenantInput[]
connectOrCreate?: Prisma.AdminTenantNoteCreateOrConnectWithoutTenantInput | Prisma.AdminTenantNoteCreateOrConnectWithoutTenantInput[]
upsert?: Prisma.AdminTenantNoteUpsertWithWhereUniqueWithoutTenantInput | Prisma.AdminTenantNoteUpsertWithWhereUniqueWithoutTenantInput[]
createMany?: Prisma.AdminTenantNoteCreateManyTenantInputEnvelope
set?: Prisma.AdminTenantNoteWhereUniqueInput | Prisma.AdminTenantNoteWhereUniqueInput[]
disconnect?: Prisma.AdminTenantNoteWhereUniqueInput | Prisma.AdminTenantNoteWhereUniqueInput[]
delete?: Prisma.AdminTenantNoteWhereUniqueInput | Prisma.AdminTenantNoteWhereUniqueInput[]
connect?: Prisma.AdminTenantNoteWhereUniqueInput | Prisma.AdminTenantNoteWhereUniqueInput[]
update?: Prisma.AdminTenantNoteUpdateWithWhereUniqueWithoutTenantInput | Prisma.AdminTenantNoteUpdateWithWhereUniqueWithoutTenantInput[]
updateMany?: Prisma.AdminTenantNoteUpdateManyWithWhereWithoutTenantInput | Prisma.AdminTenantNoteUpdateManyWithWhereWithoutTenantInput[]
deleteMany?: Prisma.AdminTenantNoteScalarWhereInput | Prisma.AdminTenantNoteScalarWhereInput[]
}
export type AdminTenantNoteCreateNestedManyWithoutAuthorInput = {
create?: Prisma.XOR<Prisma.AdminTenantNoteCreateWithoutAuthorInput, Prisma.AdminTenantNoteUncheckedCreateWithoutAuthorInput> | Prisma.AdminTenantNoteCreateWithoutAuthorInput[] | Prisma.AdminTenantNoteUncheckedCreateWithoutAuthorInput[]
connectOrCreate?: Prisma.AdminTenantNoteCreateOrConnectWithoutAuthorInput | Prisma.AdminTenantNoteCreateOrConnectWithoutAuthorInput[]
createMany?: Prisma.AdminTenantNoteCreateManyAuthorInputEnvelope
connect?: Prisma.AdminTenantNoteWhereUniqueInput | Prisma.AdminTenantNoteWhereUniqueInput[]
}
export type AdminTenantNoteUncheckedCreateNestedManyWithoutAuthorInput = {
create?: Prisma.XOR<Prisma.AdminTenantNoteCreateWithoutAuthorInput, Prisma.AdminTenantNoteUncheckedCreateWithoutAuthorInput> | Prisma.AdminTenantNoteCreateWithoutAuthorInput[] | Prisma.AdminTenantNoteUncheckedCreateWithoutAuthorInput[]
connectOrCreate?: Prisma.AdminTenantNoteCreateOrConnectWithoutAuthorInput | Prisma.AdminTenantNoteCreateOrConnectWithoutAuthorInput[]
createMany?: Prisma.AdminTenantNoteCreateManyAuthorInputEnvelope
connect?: Prisma.AdminTenantNoteWhereUniqueInput | Prisma.AdminTenantNoteWhereUniqueInput[]
}
export type AdminTenantNoteUpdateManyWithoutAuthorNestedInput = {
create?: Prisma.XOR<Prisma.AdminTenantNoteCreateWithoutAuthorInput, Prisma.AdminTenantNoteUncheckedCreateWithoutAuthorInput> | Prisma.AdminTenantNoteCreateWithoutAuthorInput[] | Prisma.AdminTenantNoteUncheckedCreateWithoutAuthorInput[]
connectOrCreate?: Prisma.AdminTenantNoteCreateOrConnectWithoutAuthorInput | Prisma.AdminTenantNoteCreateOrConnectWithoutAuthorInput[]
upsert?: Prisma.AdminTenantNoteUpsertWithWhereUniqueWithoutAuthorInput | Prisma.AdminTenantNoteUpsertWithWhereUniqueWithoutAuthorInput[]
createMany?: Prisma.AdminTenantNoteCreateManyAuthorInputEnvelope
set?: Prisma.AdminTenantNoteWhereUniqueInput | Prisma.AdminTenantNoteWhereUniqueInput[]
disconnect?: Prisma.AdminTenantNoteWhereUniqueInput | Prisma.AdminTenantNoteWhereUniqueInput[]
delete?: Prisma.AdminTenantNoteWhereUniqueInput | Prisma.AdminTenantNoteWhereUniqueInput[]
connect?: Prisma.AdminTenantNoteWhereUniqueInput | Prisma.AdminTenantNoteWhereUniqueInput[]
update?: Prisma.AdminTenantNoteUpdateWithWhereUniqueWithoutAuthorInput | Prisma.AdminTenantNoteUpdateWithWhereUniqueWithoutAuthorInput[]
updateMany?: Prisma.AdminTenantNoteUpdateManyWithWhereWithoutAuthorInput | Prisma.AdminTenantNoteUpdateManyWithWhereWithoutAuthorInput[]
deleteMany?: Prisma.AdminTenantNoteScalarWhereInput | Prisma.AdminTenantNoteScalarWhereInput[]
}
export type AdminTenantNoteUncheckedUpdateManyWithoutAuthorNestedInput = {
create?: Prisma.XOR<Prisma.AdminTenantNoteCreateWithoutAuthorInput, Prisma.AdminTenantNoteUncheckedCreateWithoutAuthorInput> | Prisma.AdminTenantNoteCreateWithoutAuthorInput[] | Prisma.AdminTenantNoteUncheckedCreateWithoutAuthorInput[]
connectOrCreate?: Prisma.AdminTenantNoteCreateOrConnectWithoutAuthorInput | Prisma.AdminTenantNoteCreateOrConnectWithoutAuthorInput[]
upsert?: Prisma.AdminTenantNoteUpsertWithWhereUniqueWithoutAuthorInput | Prisma.AdminTenantNoteUpsertWithWhereUniqueWithoutAuthorInput[]
createMany?: Prisma.AdminTenantNoteCreateManyAuthorInputEnvelope
set?: Prisma.AdminTenantNoteWhereUniqueInput | Prisma.AdminTenantNoteWhereUniqueInput[]
disconnect?: Prisma.AdminTenantNoteWhereUniqueInput | Prisma.AdminTenantNoteWhereUniqueInput[]
delete?: Prisma.AdminTenantNoteWhereUniqueInput | Prisma.AdminTenantNoteWhereUniqueInput[]
connect?: Prisma.AdminTenantNoteWhereUniqueInput | Prisma.AdminTenantNoteWhereUniqueInput[]
update?: Prisma.AdminTenantNoteUpdateWithWhereUniqueWithoutAuthorInput | Prisma.AdminTenantNoteUpdateWithWhereUniqueWithoutAuthorInput[]
updateMany?: Prisma.AdminTenantNoteUpdateManyWithWhereWithoutAuthorInput | Prisma.AdminTenantNoteUpdateManyWithWhereWithoutAuthorInput[]
deleteMany?: Prisma.AdminTenantNoteScalarWhereInput | Prisma.AdminTenantNoteScalarWhereInput[]
}
export type AdminTenantNoteCreateWithoutTenantInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
noteText: string
category?: string
pinned?: boolean
author?: Prisma.AdminUserCreateNestedOneWithoutAdminTenantNotesAuthoredInput
}
export type AdminTenantNoteUncheckedCreateWithoutTenantInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
authorUserId?: string | null
noteText: string
category?: string
pinned?: boolean
}
export type AdminTenantNoteCreateOrConnectWithoutTenantInput = {
where: Prisma.AdminTenantNoteWhereUniqueInput
create: Prisma.XOR<Prisma.AdminTenantNoteCreateWithoutTenantInput, Prisma.AdminTenantNoteUncheckedCreateWithoutTenantInput>
}
export type AdminTenantNoteCreateManyTenantInputEnvelope = {
data: Prisma.AdminTenantNoteCreateManyTenantInput | Prisma.AdminTenantNoteCreateManyTenantInput[]
skipDuplicates?: boolean
}
export type AdminTenantNoteUpsertWithWhereUniqueWithoutTenantInput = {
where: Prisma.AdminTenantNoteWhereUniqueInput
update: Prisma.XOR<Prisma.AdminTenantNoteUpdateWithoutTenantInput, Prisma.AdminTenantNoteUncheckedUpdateWithoutTenantInput>
create: Prisma.XOR<Prisma.AdminTenantNoteCreateWithoutTenantInput, Prisma.AdminTenantNoteUncheckedCreateWithoutTenantInput>
}
export type AdminTenantNoteUpdateWithWhereUniqueWithoutTenantInput = {
where: Prisma.AdminTenantNoteWhereUniqueInput
data: Prisma.XOR<Prisma.AdminTenantNoteUpdateWithoutTenantInput, Prisma.AdminTenantNoteUncheckedUpdateWithoutTenantInput>
}
export type AdminTenantNoteUpdateManyWithWhereWithoutTenantInput = {
where: Prisma.AdminTenantNoteScalarWhereInput
data: Prisma.XOR<Prisma.AdminTenantNoteUpdateManyMutationInput, Prisma.AdminTenantNoteUncheckedUpdateManyWithoutTenantInput>
}
export type AdminTenantNoteScalarWhereInput = {
AND?: Prisma.AdminTenantNoteScalarWhereInput | Prisma.AdminTenantNoteScalarWhereInput[]
OR?: Prisma.AdminTenantNoteScalarWhereInput[]
NOT?: Prisma.AdminTenantNoteScalarWhereInput | Prisma.AdminTenantNoteScalarWhereInput[]
id?: Prisma.StringFilter<"AdminTenantNote"> | string
createdAt?: Prisma.DateTimeFilter<"AdminTenantNote"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"AdminTenantNote"> | Date | string
tenantId?: Prisma.StringFilter<"AdminTenantNote"> | string
authorUserId?: Prisma.StringNullableFilter<"AdminTenantNote"> | string | null
noteText?: Prisma.StringFilter<"AdminTenantNote"> | string
category?: Prisma.StringFilter<"AdminTenantNote"> | string
pinned?: Prisma.BoolFilter<"AdminTenantNote"> | boolean
}
export type AdminTenantNoteCreateWithoutAuthorInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
noteText: string
category?: string
pinned?: boolean
tenant: Prisma.TenantCreateNestedOneWithoutAdminTenantNotesInput
}
export type AdminTenantNoteUncheckedCreateWithoutAuthorInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
tenantId: string
noteText: string
category?: string
pinned?: boolean
}
export type AdminTenantNoteCreateOrConnectWithoutAuthorInput = {
where: Prisma.AdminTenantNoteWhereUniqueInput
create: Prisma.XOR<Prisma.AdminTenantNoteCreateWithoutAuthorInput, Prisma.AdminTenantNoteUncheckedCreateWithoutAuthorInput>
}
export type AdminTenantNoteCreateManyAuthorInputEnvelope = {
data: Prisma.AdminTenantNoteCreateManyAuthorInput | Prisma.AdminTenantNoteCreateManyAuthorInput[]
skipDuplicates?: boolean
}
export type AdminTenantNoteUpsertWithWhereUniqueWithoutAuthorInput = {
where: Prisma.AdminTenantNoteWhereUniqueInput
update: Prisma.XOR<Prisma.AdminTenantNoteUpdateWithoutAuthorInput, Prisma.AdminTenantNoteUncheckedUpdateWithoutAuthorInput>
create: Prisma.XOR<Prisma.AdminTenantNoteCreateWithoutAuthorInput, Prisma.AdminTenantNoteUncheckedCreateWithoutAuthorInput>
}
export type AdminTenantNoteUpdateWithWhereUniqueWithoutAuthorInput = {
where: Prisma.AdminTenantNoteWhereUniqueInput
data: Prisma.XOR<Prisma.AdminTenantNoteUpdateWithoutAuthorInput, Prisma.AdminTenantNoteUncheckedUpdateWithoutAuthorInput>
}
export type AdminTenantNoteUpdateManyWithWhereWithoutAuthorInput = {
where: Prisma.AdminTenantNoteScalarWhereInput
data: Prisma.XOR<Prisma.AdminTenantNoteUpdateManyMutationInput, Prisma.AdminTenantNoteUncheckedUpdateManyWithoutAuthorInput>
}
export type AdminTenantNoteCreateManyTenantInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
authorUserId?: string | null
noteText: string
category?: string
pinned?: boolean
}
export type AdminTenantNoteUpdateWithoutTenantInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
noteText?: Prisma.StringFieldUpdateOperationsInput | string
category?: Prisma.StringFieldUpdateOperationsInput | string
pinned?: Prisma.BoolFieldUpdateOperationsInput | boolean
author?: Prisma.AdminUserUpdateOneWithoutAdminTenantNotesAuthoredNestedInput
}
export type AdminTenantNoteUncheckedUpdateWithoutTenantInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
authorUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
noteText?: Prisma.StringFieldUpdateOperationsInput | string
category?: Prisma.StringFieldUpdateOperationsInput | string
pinned?: Prisma.BoolFieldUpdateOperationsInput | boolean
}
export type AdminTenantNoteUncheckedUpdateManyWithoutTenantInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
authorUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
noteText?: Prisma.StringFieldUpdateOperationsInput | string
category?: Prisma.StringFieldUpdateOperationsInput | string
pinned?: Prisma.BoolFieldUpdateOperationsInput | boolean
}
export type AdminTenantNoteCreateManyAuthorInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
tenantId: string
noteText: string
category?: string
pinned?: boolean
}
export type AdminTenantNoteUpdateWithoutAuthorInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
noteText?: Prisma.StringFieldUpdateOperationsInput | string
category?: Prisma.StringFieldUpdateOperationsInput | string
pinned?: Prisma.BoolFieldUpdateOperationsInput | boolean
tenant?: Prisma.TenantUpdateOneRequiredWithoutAdminTenantNotesNestedInput
}
export type AdminTenantNoteUncheckedUpdateWithoutAuthorInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
noteText?: Prisma.StringFieldUpdateOperationsInput | string
category?: Prisma.StringFieldUpdateOperationsInput | string
pinned?: Prisma.BoolFieldUpdateOperationsInput | boolean
}
export type AdminTenantNoteUncheckedUpdateManyWithoutAuthorInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
noteText?: Prisma.StringFieldUpdateOperationsInput | string
category?: Prisma.StringFieldUpdateOperationsInput | string
pinned?: Prisma.BoolFieldUpdateOperationsInput | boolean
}
export type AdminTenantNoteSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
createdAt?: boolean
updatedAt?: boolean
tenantId?: boolean
authorUserId?: boolean
noteText?: boolean
category?: boolean
pinned?: boolean
tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>
author?: boolean | Prisma.AdminTenantNote$authorArgs<ExtArgs>
}, ExtArgs["result"]["adminTenantNote"]>
export type AdminTenantNoteSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
createdAt?: boolean
updatedAt?: boolean
tenantId?: boolean
authorUserId?: boolean
noteText?: boolean
category?: boolean
pinned?: boolean
tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>
author?: boolean | Prisma.AdminTenantNote$authorArgs<ExtArgs>
}, ExtArgs["result"]["adminTenantNote"]>
export type AdminTenantNoteSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
createdAt?: boolean
updatedAt?: boolean
tenantId?: boolean
authorUserId?: boolean
noteText?: boolean
category?: boolean
pinned?: boolean
tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>
author?: boolean | Prisma.AdminTenantNote$authorArgs<ExtArgs>
}, ExtArgs["result"]["adminTenantNote"]>
export type AdminTenantNoteSelectScalar = {
id?: boolean
createdAt?: boolean
updatedAt?: boolean
tenantId?: boolean
authorUserId?: boolean
noteText?: boolean
category?: boolean
pinned?: boolean
}
export type AdminTenantNoteOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "tenantId" | "authorUserId" | "noteText" | "category" | "pinned", ExtArgs["result"]["adminTenantNote"]>
export type AdminTenantNoteInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>
author?: boolean | Prisma.AdminTenantNote$authorArgs<ExtArgs>
}
export type AdminTenantNoteIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>
author?: boolean | Prisma.AdminTenantNote$authorArgs<ExtArgs>
}
export type AdminTenantNoteIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>
author?: boolean | Prisma.AdminTenantNote$authorArgs<ExtArgs>
}
export type $AdminTenantNotePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "AdminTenantNote"
objects: {
tenant: Prisma.$TenantPayload<ExtArgs>
author: Prisma.$AdminUserPayload<ExtArgs> | null
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: string
createdAt: Date
updatedAt: Date
tenantId: string
authorUserId: string | null
noteText: string
category: string
pinned: boolean
}, ExtArgs["result"]["adminTenantNote"]>
composites: {}
}
export type AdminTenantNoteGetPayload<S extends boolean | null | undefined | AdminTenantNoteDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$AdminTenantNotePayload, S>
export type AdminTenantNoteCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<AdminTenantNoteFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: AdminTenantNoteCountAggregateInputType | true
}
export interface AdminTenantNoteDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['AdminTenantNote'], meta: { name: 'AdminTenantNote' } }
/**
* Find zero or one AdminTenantNote that matches the filter.
* @param {AdminTenantNoteFindUniqueArgs} args - Arguments to find a AdminTenantNote
* @example
* // Get one AdminTenantNote
* const adminTenantNote = await prisma.adminTenantNote.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends AdminTenantNoteFindUniqueArgs>(args: Prisma.SelectSubset<T, AdminTenantNoteFindUniqueArgs<ExtArgs>>): Prisma.Prisma__AdminTenantNoteClient<runtime.Types.Result.GetResult<Prisma.$AdminTenantNotePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one AdminTenantNote that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {AdminTenantNoteFindUniqueOrThrowArgs} args - Arguments to find a AdminTenantNote
* @example
* // Get one AdminTenantNote
* const adminTenantNote = await prisma.adminTenantNote.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends AdminTenantNoteFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, AdminTenantNoteFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__AdminTenantNoteClient<runtime.Types.Result.GetResult<Prisma.$AdminTenantNotePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first AdminTenantNote that matches the filter.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {AdminTenantNoteFindFirstArgs} args - Arguments to find a AdminTenantNote
* @example
* // Get one AdminTenantNote
* const adminTenantNote = await prisma.adminTenantNote.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends AdminTenantNoteFindFirstArgs>(args?: Prisma.SelectSubset<T, AdminTenantNoteFindFirstArgs<ExtArgs>>): Prisma.Prisma__AdminTenantNoteClient<runtime.Types.Result.GetResult<Prisma.$AdminTenantNotePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first AdminTenantNote that matches the filter or
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {AdminTenantNoteFindFirstOrThrowArgs} args - Arguments to find a AdminTenantNote
* @example
* // Get one AdminTenantNote
* const adminTenantNote = await prisma.adminTenantNote.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends AdminTenantNoteFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, AdminTenantNoteFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__AdminTenantNoteClient<runtime.Types.Result.GetResult<Prisma.$AdminTenantNotePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more AdminTenantNotes that matches the filter.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {AdminTenantNoteFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all AdminTenantNotes
* const adminTenantNotes = await prisma.adminTenantNote.findMany()
*
* // Get first 10 AdminTenantNotes
* const adminTenantNotes = await prisma.adminTenantNote.findMany({ take: 10 })
*
* // Only select the `id`
* const adminTenantNoteWithIdOnly = await prisma.adminTenantNote.findMany({ select: { id: true } })
*
*/
findMany<T extends AdminTenantNoteFindManyArgs>(args?: Prisma.SelectSubset<T, AdminTenantNoteFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdminTenantNotePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a AdminTenantNote.
* @param {AdminTenantNoteCreateArgs} args - Arguments to create a AdminTenantNote.
* @example
* // Create one AdminTenantNote
* const AdminTenantNote = await prisma.adminTenantNote.create({
* data: {
* // ... data to create a AdminTenantNote
* }
* })
*
*/
create<T extends AdminTenantNoteCreateArgs>(args: Prisma.SelectSubset<T, AdminTenantNoteCreateArgs<ExtArgs>>): Prisma.Prisma__AdminTenantNoteClient<runtime.Types.Result.GetResult<Prisma.$AdminTenantNotePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many AdminTenantNotes.
* @param {AdminTenantNoteCreateManyArgs} args - Arguments to create many AdminTenantNotes.
* @example
* // Create many AdminTenantNotes
* const adminTenantNote = await prisma.adminTenantNote.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends AdminTenantNoteCreateManyArgs>(args?: Prisma.SelectSubset<T, AdminTenantNoteCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many AdminTenantNotes and returns the data saved in the database.
* @param {AdminTenantNoteCreateManyAndReturnArgs} args - Arguments to create many AdminTenantNotes.
* @example
* // Create many AdminTenantNotes
* const adminTenantNote = await prisma.adminTenantNote.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many AdminTenantNotes and only return the `id`
* const adminTenantNoteWithIdOnly = await prisma.adminTenantNote.createManyAndReturn({
* select: { id: true },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
createManyAndReturn<T extends AdminTenantNoteCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, AdminTenantNoteCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdminTenantNotePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a AdminTenantNote.
* @param {AdminTenantNoteDeleteArgs} args - Arguments to delete one AdminTenantNote.
* @example
* // Delete one AdminTenantNote
* const AdminTenantNote = await prisma.adminTenantNote.delete({
* where: {
* // ... filter to delete one AdminTenantNote
* }
* })
*
*/
delete<T extends AdminTenantNoteDeleteArgs>(args: Prisma.SelectSubset<T, AdminTenantNoteDeleteArgs<ExtArgs>>): Prisma.Prisma__AdminTenantNoteClient<runtime.Types.Result.GetResult<Prisma.$AdminTenantNotePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one AdminTenantNote.
* @param {AdminTenantNoteUpdateArgs} args - Arguments to update one AdminTenantNote.
* @example
* // Update one AdminTenantNote
* const adminTenantNote = await prisma.adminTenantNote.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends AdminTenantNoteUpdateArgs>(args: Prisma.SelectSubset<T, AdminTenantNoteUpdateArgs<ExtArgs>>): Prisma.Prisma__AdminTenantNoteClient<runtime.Types.Result.GetResult<Prisma.$AdminTenantNotePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more AdminTenantNotes.
* @param {AdminTenantNoteDeleteManyArgs} args - Arguments to filter AdminTenantNotes to delete.
* @example
* // Delete a few AdminTenantNotes
* const { count } = await prisma.adminTenantNote.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends AdminTenantNoteDeleteManyArgs>(args?: Prisma.SelectSubset<T, AdminTenantNoteDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more AdminTenantNotes.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {AdminTenantNoteUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many AdminTenantNotes
* const adminTenantNote = await prisma.adminTenantNote.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends AdminTenantNoteUpdateManyArgs>(args: Prisma.SelectSubset<T, AdminTenantNoteUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more AdminTenantNotes and returns the data updated in the database.
* @param {AdminTenantNoteUpdateManyAndReturnArgs} args - Arguments to update many AdminTenantNotes.
* @example
* // Update many AdminTenantNotes
* const adminTenantNote = await prisma.adminTenantNote.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more AdminTenantNotes and only return the `id`
* const adminTenantNoteWithIdOnly = await prisma.adminTenantNote.updateManyAndReturn({
* select: { id: true },
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
updateManyAndReturn<T extends AdminTenantNoteUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, AdminTenantNoteUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdminTenantNotePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one AdminTenantNote.
* @param {AdminTenantNoteUpsertArgs} args - Arguments to update or create a AdminTenantNote.
* @example
* // Update or create a AdminTenantNote
* const adminTenantNote = await prisma.adminTenantNote.upsert({
* create: {
* // ... data to create a AdminTenantNote
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the AdminTenantNote we want to update
* }
* })
*/
upsert<T extends AdminTenantNoteUpsertArgs>(args: Prisma.SelectSubset<T, AdminTenantNoteUpsertArgs<ExtArgs>>): Prisma.Prisma__AdminTenantNoteClient<runtime.Types.Result.GetResult<Prisma.$AdminTenantNotePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of AdminTenantNotes.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {AdminTenantNoteCountArgs} args - Arguments to filter AdminTenantNotes to count.
* @example
* // Count the number of AdminTenantNotes
* const count = await prisma.adminTenantNote.count({
* where: {
* // ... the filter for the AdminTenantNotes we want to count
* }
* })
**/
count<T extends AdminTenantNoteCountArgs>(
args?: Prisma.Subset<T, AdminTenantNoteCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], AdminTenantNoteCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a AdminTenantNote.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {AdminTenantNoteAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
* @example
* // Ordered by age ascending
* // Where email contains prisma.io
* // Limited to the 10 users
* const aggregations = await prisma.user.aggregate({
* _avg: {
* age: true,
* },
* where: {
* email: {
* contains: "prisma.io",
* },
* },
* orderBy: {
* age: "asc",
* },
* take: 10,
* })
**/
aggregate<T extends AdminTenantNoteAggregateArgs>(args: Prisma.Subset<T, AdminTenantNoteAggregateArgs>): Prisma.PrismaPromise<GetAdminTenantNoteAggregateType<T>>
/**
* Group by AdminTenantNote.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {AdminTenantNoteGroupByArgs} args - Group by arguments.
* @example
* // Group by city, order by createdAt, get count
* const result = await prisma.user.groupBy({
* by: ['city', 'createdAt'],
* orderBy: {
* createdAt: true
* },
* _count: {
* _all: true
* },
* })
*
**/
groupBy<
T extends AdminTenantNoteGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: AdminTenantNoteGroupByArgs['orderBy'] }
: { orderBy?: AdminTenantNoteGroupByArgs['orderBy'] },
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
ByValid extends Prisma.Has<ByFields, OrderFields>,
HavingFields extends Prisma.GetHavingFields<T['having']>,
HavingValid extends Prisma.Has<ByFields, HavingFields>,
ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
InputErrors extends ByEmpty extends Prisma.True
? `Error: "by" must not be empty.`
: HavingValid extends Prisma.False
? {
[P in HavingFields]: P extends ByFields
? never
: P extends string
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
: [
Error,
'Field ',
P,
` in "having" needs to be provided in "by"`,
]
}[HavingFields]
: 'take' extends Prisma.Keys<T>
? 'orderBy' extends Prisma.Keys<T>
? ByValid extends Prisma.True
? {}
: {
[P in OrderFields]: P extends ByFields
? never
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
}[OrderFields]
: 'Error: If you provide "take", you also need to provide "orderBy"'
: 'skip' extends Prisma.Keys<T>
? 'orderBy' extends Prisma.Keys<T>
? ByValid extends Prisma.True
? {}
: {
[P in OrderFields]: P extends ByFields
? never
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
}[OrderFields]
: 'Error: If you provide "skip", you also need to provide "orderBy"'
: ByValid extends Prisma.True
? {}
: {
[P in OrderFields]: P extends ByFields
? never
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
}[OrderFields]
>(args: Prisma.SubsetIntersection<T, AdminTenantNoteGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAdminTenantNoteGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the AdminTenantNote model
*/
readonly fields: AdminTenantNoteFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for AdminTenantNote.
* Why is this prefixed with `Prisma__`?
* Because we want to prevent naming conflicts as mentioned in
* https://github.com/prisma/prisma-client-js/issues/707
*/
export interface Prisma__AdminTenantNoteClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
tenant<T extends Prisma.TenantDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.TenantDefaultArgs<ExtArgs>>): Prisma.Prisma__TenantClient<runtime.Types.Result.GetResult<Prisma.$TenantPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
author<T extends Prisma.AdminTenantNote$authorArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AdminTenantNote$authorArgs<ExtArgs>>): Prisma.Prisma__AdminUserClient<runtime.Types.Result.GetResult<Prisma.$AdminUserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
}
/**
* Fields of the AdminTenantNote model
*/
export interface AdminTenantNoteFieldRefs {
readonly id: Prisma.FieldRef<"AdminTenantNote", 'String'>
readonly createdAt: Prisma.FieldRef<"AdminTenantNote", 'DateTime'>
readonly updatedAt: Prisma.FieldRef<"AdminTenantNote", 'DateTime'>
readonly tenantId: Prisma.FieldRef<"AdminTenantNote", 'String'>
readonly authorUserId: Prisma.FieldRef<"AdminTenantNote", 'String'>
readonly noteText: Prisma.FieldRef<"AdminTenantNote", 'String'>
readonly category: Prisma.FieldRef<"AdminTenantNote", 'String'>
readonly pinned: Prisma.FieldRef<"AdminTenantNote", 'Boolean'>
}
// Custom InputTypes
/**
* AdminTenantNote findUnique
*/
export type AdminTenantNoteFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminTenantNote
*/
select?: Prisma.AdminTenantNoteSelect<ExtArgs> | null
/**
* Omit specific fields from the AdminTenantNote
*/
omit?: Prisma.AdminTenantNoteOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminTenantNoteInclude<ExtArgs> | null
/**
* Filter, which AdminTenantNote to fetch.
*/
where: Prisma.AdminTenantNoteWhereUniqueInput
}
/**
* AdminTenantNote findUniqueOrThrow
*/
export type AdminTenantNoteFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminTenantNote
*/
select?: Prisma.AdminTenantNoteSelect<ExtArgs> | null
/**
* Omit specific fields from the AdminTenantNote
*/
omit?: Prisma.AdminTenantNoteOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminTenantNoteInclude<ExtArgs> | null
/**
* Filter, which AdminTenantNote to fetch.
*/
where: Prisma.AdminTenantNoteWhereUniqueInput
}
/**
* AdminTenantNote findFirst
*/
export type AdminTenantNoteFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminTenantNote
*/
select?: Prisma.AdminTenantNoteSelect<ExtArgs> | null
/**
* Omit specific fields from the AdminTenantNote
*/
omit?: Prisma.AdminTenantNoteOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminTenantNoteInclude<ExtArgs> | null
/**
* Filter, which AdminTenantNote to fetch.
*/
where?: Prisma.AdminTenantNoteWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of AdminTenantNotes to fetch.
*/
orderBy?: Prisma.AdminTenantNoteOrderByWithRelationInput | Prisma.AdminTenantNoteOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for AdminTenantNotes.
*/
cursor?: Prisma.AdminTenantNoteWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` AdminTenantNotes from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` AdminTenantNotes.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of AdminTenantNotes.
*/
distinct?: Prisma.AdminTenantNoteScalarFieldEnum | Prisma.AdminTenantNoteScalarFieldEnum[]
}
/**
* AdminTenantNote findFirstOrThrow
*/
export type AdminTenantNoteFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminTenantNote
*/
select?: Prisma.AdminTenantNoteSelect<ExtArgs> | null
/**
* Omit specific fields from the AdminTenantNote
*/
omit?: Prisma.AdminTenantNoteOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminTenantNoteInclude<ExtArgs> | null
/**
* Filter, which AdminTenantNote to fetch.
*/
where?: Prisma.AdminTenantNoteWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of AdminTenantNotes to fetch.
*/
orderBy?: Prisma.AdminTenantNoteOrderByWithRelationInput | Prisma.AdminTenantNoteOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for AdminTenantNotes.
*/
cursor?: Prisma.AdminTenantNoteWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` AdminTenantNotes from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` AdminTenantNotes.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of AdminTenantNotes.
*/
distinct?: Prisma.AdminTenantNoteScalarFieldEnum | Prisma.AdminTenantNoteScalarFieldEnum[]
}
/**
* AdminTenantNote findMany
*/
export type AdminTenantNoteFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminTenantNote
*/
select?: Prisma.AdminTenantNoteSelect<ExtArgs> | null
/**
* Omit specific fields from the AdminTenantNote
*/
omit?: Prisma.AdminTenantNoteOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminTenantNoteInclude<ExtArgs> | null
/**
* Filter, which AdminTenantNotes to fetch.
*/
where?: Prisma.AdminTenantNoteWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of AdminTenantNotes to fetch.
*/
orderBy?: Prisma.AdminTenantNoteOrderByWithRelationInput | Prisma.AdminTenantNoteOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing AdminTenantNotes.
*/
cursor?: Prisma.AdminTenantNoteWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` AdminTenantNotes from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` AdminTenantNotes.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of AdminTenantNotes.
*/
distinct?: Prisma.AdminTenantNoteScalarFieldEnum | Prisma.AdminTenantNoteScalarFieldEnum[]
}
/**
* AdminTenantNote create
*/
export type AdminTenantNoteCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminTenantNote
*/
select?: Prisma.AdminTenantNoteSelect<ExtArgs> | null
/**
* Omit specific fields from the AdminTenantNote
*/
omit?: Prisma.AdminTenantNoteOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminTenantNoteInclude<ExtArgs> | null
/**
* The data needed to create a AdminTenantNote.
*/
data: Prisma.XOR<Prisma.AdminTenantNoteCreateInput, Prisma.AdminTenantNoteUncheckedCreateInput>
}
/**
* AdminTenantNote createMany
*/
export type AdminTenantNoteCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many AdminTenantNotes.
*/
data: Prisma.AdminTenantNoteCreateManyInput | Prisma.AdminTenantNoteCreateManyInput[]
skipDuplicates?: boolean
}
/**
* AdminTenantNote createManyAndReturn
*/
export type AdminTenantNoteCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminTenantNote
*/
select?: Prisma.AdminTenantNoteSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the AdminTenantNote
*/
omit?: Prisma.AdminTenantNoteOmit<ExtArgs> | null
/**
* The data used to create many AdminTenantNotes.
*/
data: Prisma.AdminTenantNoteCreateManyInput | Prisma.AdminTenantNoteCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminTenantNoteIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* AdminTenantNote update
*/
export type AdminTenantNoteUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminTenantNote
*/
select?: Prisma.AdminTenantNoteSelect<ExtArgs> | null
/**
* Omit specific fields from the AdminTenantNote
*/
omit?: Prisma.AdminTenantNoteOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminTenantNoteInclude<ExtArgs> | null
/**
* The data needed to update a AdminTenantNote.
*/
data: Prisma.XOR<Prisma.AdminTenantNoteUpdateInput, Prisma.AdminTenantNoteUncheckedUpdateInput>
/**
* Choose, which AdminTenantNote to update.
*/
where: Prisma.AdminTenantNoteWhereUniqueInput
}
/**
* AdminTenantNote updateMany
*/
export type AdminTenantNoteUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update AdminTenantNotes.
*/
data: Prisma.XOR<Prisma.AdminTenantNoteUpdateManyMutationInput, Prisma.AdminTenantNoteUncheckedUpdateManyInput>
/**
* Filter which AdminTenantNotes to update
*/
where?: Prisma.AdminTenantNoteWhereInput
/**
* Limit how many AdminTenantNotes to update.
*/
limit?: number
}
/**
* AdminTenantNote updateManyAndReturn
*/
export type AdminTenantNoteUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminTenantNote
*/
select?: Prisma.AdminTenantNoteSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the AdminTenantNote
*/
omit?: Prisma.AdminTenantNoteOmit<ExtArgs> | null
/**
* The data used to update AdminTenantNotes.
*/
data: Prisma.XOR<Prisma.AdminTenantNoteUpdateManyMutationInput, Prisma.AdminTenantNoteUncheckedUpdateManyInput>
/**
* Filter which AdminTenantNotes to update
*/
where?: Prisma.AdminTenantNoteWhereInput
/**
* Limit how many AdminTenantNotes to update.
*/
limit?: number
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminTenantNoteIncludeUpdateManyAndReturn<ExtArgs> | null
}
/**
* AdminTenantNote upsert
*/
export type AdminTenantNoteUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminTenantNote
*/
select?: Prisma.AdminTenantNoteSelect<ExtArgs> | null
/**
* Omit specific fields from the AdminTenantNote
*/
omit?: Prisma.AdminTenantNoteOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminTenantNoteInclude<ExtArgs> | null
/**
* The filter to search for the AdminTenantNote to update in case it exists.
*/
where: Prisma.AdminTenantNoteWhereUniqueInput
/**
* In case the AdminTenantNote found by the `where` argument doesn't exist, create a new AdminTenantNote with this data.
*/
create: Prisma.XOR<Prisma.AdminTenantNoteCreateInput, Prisma.AdminTenantNoteUncheckedCreateInput>
/**
* In case the AdminTenantNote was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.AdminTenantNoteUpdateInput, Prisma.AdminTenantNoteUncheckedUpdateInput>
}
/**
* AdminTenantNote delete
*/
export type AdminTenantNoteDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminTenantNote
*/
select?: Prisma.AdminTenantNoteSelect<ExtArgs> | null
/**
* Omit specific fields from the AdminTenantNote
*/
omit?: Prisma.AdminTenantNoteOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminTenantNoteInclude<ExtArgs> | null
/**
* Filter which AdminTenantNote to delete.
*/
where: Prisma.AdminTenantNoteWhereUniqueInput
}
/**
* AdminTenantNote deleteMany
*/
export type AdminTenantNoteDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which AdminTenantNotes to delete
*/
where?: Prisma.AdminTenantNoteWhereInput
/**
* Limit how many AdminTenantNotes to delete.
*/
limit?: number
}
/**
* AdminTenantNote.author
*/
export type AdminTenantNote$authorArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminUser
*/
select?: Prisma.AdminUserSelect<ExtArgs> | null
/**
* Omit specific fields from the AdminUser
*/
omit?: Prisma.AdminUserOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminUserInclude<ExtArgs> | null
where?: Prisma.AdminUserWhereInput
}
/**
* AdminTenantNote without action
*/
export type AdminTenantNoteDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminTenantNote
*/
select?: Prisma.AdminTenantNoteSelect<ExtArgs> | null
/**
* Omit specific fields from the AdminTenantNote
*/
omit?: Prisma.AdminTenantNoteOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminTenantNoteInclude<ExtArgs> | null
}