Files
2026-07-08 16:15:37 +02:00

1451 lines
60 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 `HrAnnouncementComment` 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 HrAnnouncementComment
* A single-level comment on an announcement. Soft-delete via `archivedAt`.
*/
export type HrAnnouncementCommentModel = runtime.Types.Result.DefaultSelection<Prisma.$HrAnnouncementCommentPayload>
export type AggregateHrAnnouncementComment = {
_count: HrAnnouncementCommentCountAggregateOutputType | null
_min: HrAnnouncementCommentMinAggregateOutputType | null
_max: HrAnnouncementCommentMaxAggregateOutputType | null
}
export type HrAnnouncementCommentMinAggregateOutputType = {
id: string | null
createdAt: Date | null
updatedAt: Date | null
tenantId: string | null
announcementId: string | null
userId: string | null
body: string | null
archivedAt: Date | null
}
export type HrAnnouncementCommentMaxAggregateOutputType = {
id: string | null
createdAt: Date | null
updatedAt: Date | null
tenantId: string | null
announcementId: string | null
userId: string | null
body: string | null
archivedAt: Date | null
}
export type HrAnnouncementCommentCountAggregateOutputType = {
id: number
createdAt: number
updatedAt: number
tenantId: number
announcementId: number
userId: number
body: number
archivedAt: number
_all: number
}
export type HrAnnouncementCommentMinAggregateInputType = {
id?: true
createdAt?: true
updatedAt?: true
tenantId?: true
announcementId?: true
userId?: true
body?: true
archivedAt?: true
}
export type HrAnnouncementCommentMaxAggregateInputType = {
id?: true
createdAt?: true
updatedAt?: true
tenantId?: true
announcementId?: true
userId?: true
body?: true
archivedAt?: true
}
export type HrAnnouncementCommentCountAggregateInputType = {
id?: true
createdAt?: true
updatedAt?: true
tenantId?: true
announcementId?: true
userId?: true
body?: true
archivedAt?: true
_all?: true
}
export type HrAnnouncementCommentAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which HrAnnouncementComment to aggregate.
*/
where?: Prisma.HrAnnouncementCommentWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of HrAnnouncementComments to fetch.
*/
orderBy?: Prisma.HrAnnouncementCommentOrderByWithRelationInput | Prisma.HrAnnouncementCommentOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.HrAnnouncementCommentWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` HrAnnouncementComments 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` HrAnnouncementComments.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned HrAnnouncementComments
**/
_count?: true | HrAnnouncementCommentCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: HrAnnouncementCommentMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: HrAnnouncementCommentMaxAggregateInputType
}
export type GetHrAnnouncementCommentAggregateType<T extends HrAnnouncementCommentAggregateArgs> = {
[P in keyof T & keyof AggregateHrAnnouncementComment]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateHrAnnouncementComment[P]>
: Prisma.GetScalarType<T[P], AggregateHrAnnouncementComment[P]>
}
export type HrAnnouncementCommentGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.HrAnnouncementCommentWhereInput
orderBy?: Prisma.HrAnnouncementCommentOrderByWithAggregationInput | Prisma.HrAnnouncementCommentOrderByWithAggregationInput[]
by: Prisma.HrAnnouncementCommentScalarFieldEnum[] | Prisma.HrAnnouncementCommentScalarFieldEnum
having?: Prisma.HrAnnouncementCommentScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: HrAnnouncementCommentCountAggregateInputType | true
_min?: HrAnnouncementCommentMinAggregateInputType
_max?: HrAnnouncementCommentMaxAggregateInputType
}
export type HrAnnouncementCommentGroupByOutputType = {
id: string
createdAt: Date
updatedAt: Date
tenantId: string
announcementId: string
userId: string
body: string
archivedAt: Date | null
_count: HrAnnouncementCommentCountAggregateOutputType | null
_min: HrAnnouncementCommentMinAggregateOutputType | null
_max: HrAnnouncementCommentMaxAggregateOutputType | null
}
export type GetHrAnnouncementCommentGroupByPayload<T extends HrAnnouncementCommentGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<HrAnnouncementCommentGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof HrAnnouncementCommentGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], HrAnnouncementCommentGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], HrAnnouncementCommentGroupByOutputType[P]>
}
>
>
export type HrAnnouncementCommentWhereInput = {
AND?: Prisma.HrAnnouncementCommentWhereInput | Prisma.HrAnnouncementCommentWhereInput[]
OR?: Prisma.HrAnnouncementCommentWhereInput[]
NOT?: Prisma.HrAnnouncementCommentWhereInput | Prisma.HrAnnouncementCommentWhereInput[]
id?: Prisma.StringFilter<"HrAnnouncementComment"> | string
createdAt?: Prisma.DateTimeFilter<"HrAnnouncementComment"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"HrAnnouncementComment"> | Date | string
tenantId?: Prisma.StringFilter<"HrAnnouncementComment"> | string
announcementId?: Prisma.StringFilter<"HrAnnouncementComment"> | string
userId?: Prisma.StringFilter<"HrAnnouncementComment"> | string
body?: Prisma.StringFilter<"HrAnnouncementComment"> | string
archivedAt?: Prisma.DateTimeNullableFilter<"HrAnnouncementComment"> | Date | string | null
announcement?: Prisma.XOR<Prisma.HrAnnouncementScalarRelationFilter, Prisma.HrAnnouncementWhereInput>
}
export type HrAnnouncementCommentOrderByWithRelationInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
announcementId?: Prisma.SortOrder
userId?: Prisma.SortOrder
body?: Prisma.SortOrder
archivedAt?: Prisma.SortOrderInput | Prisma.SortOrder
announcement?: Prisma.HrAnnouncementOrderByWithRelationInput
}
export type HrAnnouncementCommentWhereUniqueInput = Prisma.AtLeast<{
id?: string
AND?: Prisma.HrAnnouncementCommentWhereInput | Prisma.HrAnnouncementCommentWhereInput[]
OR?: Prisma.HrAnnouncementCommentWhereInput[]
NOT?: Prisma.HrAnnouncementCommentWhereInput | Prisma.HrAnnouncementCommentWhereInput[]
createdAt?: Prisma.DateTimeFilter<"HrAnnouncementComment"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"HrAnnouncementComment"> | Date | string
tenantId?: Prisma.StringFilter<"HrAnnouncementComment"> | string
announcementId?: Prisma.StringFilter<"HrAnnouncementComment"> | string
userId?: Prisma.StringFilter<"HrAnnouncementComment"> | string
body?: Prisma.StringFilter<"HrAnnouncementComment"> | string
archivedAt?: Prisma.DateTimeNullableFilter<"HrAnnouncementComment"> | Date | string | null
announcement?: Prisma.XOR<Prisma.HrAnnouncementScalarRelationFilter, Prisma.HrAnnouncementWhereInput>
}, "id">
export type HrAnnouncementCommentOrderByWithAggregationInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
announcementId?: Prisma.SortOrder
userId?: Prisma.SortOrder
body?: Prisma.SortOrder
archivedAt?: Prisma.SortOrderInput | Prisma.SortOrder
_count?: Prisma.HrAnnouncementCommentCountOrderByAggregateInput
_max?: Prisma.HrAnnouncementCommentMaxOrderByAggregateInput
_min?: Prisma.HrAnnouncementCommentMinOrderByAggregateInput
}
export type HrAnnouncementCommentScalarWhereWithAggregatesInput = {
AND?: Prisma.HrAnnouncementCommentScalarWhereWithAggregatesInput | Prisma.HrAnnouncementCommentScalarWhereWithAggregatesInput[]
OR?: Prisma.HrAnnouncementCommentScalarWhereWithAggregatesInput[]
NOT?: Prisma.HrAnnouncementCommentScalarWhereWithAggregatesInput | Prisma.HrAnnouncementCommentScalarWhereWithAggregatesInput[]
id?: Prisma.StringWithAggregatesFilter<"HrAnnouncementComment"> | string
createdAt?: Prisma.DateTimeWithAggregatesFilter<"HrAnnouncementComment"> | Date | string
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"HrAnnouncementComment"> | Date | string
tenantId?: Prisma.StringWithAggregatesFilter<"HrAnnouncementComment"> | string
announcementId?: Prisma.StringWithAggregatesFilter<"HrAnnouncementComment"> | string
userId?: Prisma.StringWithAggregatesFilter<"HrAnnouncementComment"> | string
body?: Prisma.StringWithAggregatesFilter<"HrAnnouncementComment"> | string
archivedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"HrAnnouncementComment"> | Date | string | null
}
export type HrAnnouncementCommentCreateInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
tenantId: string
userId: string
body: string
archivedAt?: Date | string | null
announcement: Prisma.HrAnnouncementCreateNestedOneWithoutCommentsInput
}
export type HrAnnouncementCommentUncheckedCreateInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
tenantId: string
announcementId: string
userId: string
body: string
archivedAt?: Date | string | null
}
export type HrAnnouncementCommentUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
userId?: Prisma.StringFieldUpdateOperationsInput | string
body?: Prisma.StringFieldUpdateOperationsInput | string
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
announcement?: Prisma.HrAnnouncementUpdateOneRequiredWithoutCommentsNestedInput
}
export type HrAnnouncementCommentUncheckedUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
announcementId?: Prisma.StringFieldUpdateOperationsInput | string
userId?: Prisma.StringFieldUpdateOperationsInput | string
body?: Prisma.StringFieldUpdateOperationsInput | string
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}
export type HrAnnouncementCommentCreateManyInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
tenantId: string
announcementId: string
userId: string
body: string
archivedAt?: Date | string | null
}
export type HrAnnouncementCommentUpdateManyMutationInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
userId?: Prisma.StringFieldUpdateOperationsInput | string
body?: Prisma.StringFieldUpdateOperationsInput | string
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}
export type HrAnnouncementCommentUncheckedUpdateManyInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
announcementId?: Prisma.StringFieldUpdateOperationsInput | string
userId?: Prisma.StringFieldUpdateOperationsInput | string
body?: Prisma.StringFieldUpdateOperationsInput | string
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}
export type HrAnnouncementCommentListRelationFilter = {
every?: Prisma.HrAnnouncementCommentWhereInput
some?: Prisma.HrAnnouncementCommentWhereInput
none?: Prisma.HrAnnouncementCommentWhereInput
}
export type HrAnnouncementCommentOrderByRelationAggregateInput = {
_count?: Prisma.SortOrder
}
export type HrAnnouncementCommentCountOrderByAggregateInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
announcementId?: Prisma.SortOrder
userId?: Prisma.SortOrder
body?: Prisma.SortOrder
archivedAt?: Prisma.SortOrder
}
export type HrAnnouncementCommentMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
announcementId?: Prisma.SortOrder
userId?: Prisma.SortOrder
body?: Prisma.SortOrder
archivedAt?: Prisma.SortOrder
}
export type HrAnnouncementCommentMinOrderByAggregateInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
announcementId?: Prisma.SortOrder
userId?: Prisma.SortOrder
body?: Prisma.SortOrder
archivedAt?: Prisma.SortOrder
}
export type HrAnnouncementCommentCreateNestedManyWithoutAnnouncementInput = {
create?: Prisma.XOR<Prisma.HrAnnouncementCommentCreateWithoutAnnouncementInput, Prisma.HrAnnouncementCommentUncheckedCreateWithoutAnnouncementInput> | Prisma.HrAnnouncementCommentCreateWithoutAnnouncementInput[] | Prisma.HrAnnouncementCommentUncheckedCreateWithoutAnnouncementInput[]
connectOrCreate?: Prisma.HrAnnouncementCommentCreateOrConnectWithoutAnnouncementInput | Prisma.HrAnnouncementCommentCreateOrConnectWithoutAnnouncementInput[]
createMany?: Prisma.HrAnnouncementCommentCreateManyAnnouncementInputEnvelope
connect?: Prisma.HrAnnouncementCommentWhereUniqueInput | Prisma.HrAnnouncementCommentWhereUniqueInput[]
}
export type HrAnnouncementCommentUncheckedCreateNestedManyWithoutAnnouncementInput = {
create?: Prisma.XOR<Prisma.HrAnnouncementCommentCreateWithoutAnnouncementInput, Prisma.HrAnnouncementCommentUncheckedCreateWithoutAnnouncementInput> | Prisma.HrAnnouncementCommentCreateWithoutAnnouncementInput[] | Prisma.HrAnnouncementCommentUncheckedCreateWithoutAnnouncementInput[]
connectOrCreate?: Prisma.HrAnnouncementCommentCreateOrConnectWithoutAnnouncementInput | Prisma.HrAnnouncementCommentCreateOrConnectWithoutAnnouncementInput[]
createMany?: Prisma.HrAnnouncementCommentCreateManyAnnouncementInputEnvelope
connect?: Prisma.HrAnnouncementCommentWhereUniqueInput | Prisma.HrAnnouncementCommentWhereUniqueInput[]
}
export type HrAnnouncementCommentUpdateManyWithoutAnnouncementNestedInput = {
create?: Prisma.XOR<Prisma.HrAnnouncementCommentCreateWithoutAnnouncementInput, Prisma.HrAnnouncementCommentUncheckedCreateWithoutAnnouncementInput> | Prisma.HrAnnouncementCommentCreateWithoutAnnouncementInput[] | Prisma.HrAnnouncementCommentUncheckedCreateWithoutAnnouncementInput[]
connectOrCreate?: Prisma.HrAnnouncementCommentCreateOrConnectWithoutAnnouncementInput | Prisma.HrAnnouncementCommentCreateOrConnectWithoutAnnouncementInput[]
upsert?: Prisma.HrAnnouncementCommentUpsertWithWhereUniqueWithoutAnnouncementInput | Prisma.HrAnnouncementCommentUpsertWithWhereUniqueWithoutAnnouncementInput[]
createMany?: Prisma.HrAnnouncementCommentCreateManyAnnouncementInputEnvelope
set?: Prisma.HrAnnouncementCommentWhereUniqueInput | Prisma.HrAnnouncementCommentWhereUniqueInput[]
disconnect?: Prisma.HrAnnouncementCommentWhereUniqueInput | Prisma.HrAnnouncementCommentWhereUniqueInput[]
delete?: Prisma.HrAnnouncementCommentWhereUniqueInput | Prisma.HrAnnouncementCommentWhereUniqueInput[]
connect?: Prisma.HrAnnouncementCommentWhereUniqueInput | Prisma.HrAnnouncementCommentWhereUniqueInput[]
update?: Prisma.HrAnnouncementCommentUpdateWithWhereUniqueWithoutAnnouncementInput | Prisma.HrAnnouncementCommentUpdateWithWhereUniqueWithoutAnnouncementInput[]
updateMany?: Prisma.HrAnnouncementCommentUpdateManyWithWhereWithoutAnnouncementInput | Prisma.HrAnnouncementCommentUpdateManyWithWhereWithoutAnnouncementInput[]
deleteMany?: Prisma.HrAnnouncementCommentScalarWhereInput | Prisma.HrAnnouncementCommentScalarWhereInput[]
}
export type HrAnnouncementCommentUncheckedUpdateManyWithoutAnnouncementNestedInput = {
create?: Prisma.XOR<Prisma.HrAnnouncementCommentCreateWithoutAnnouncementInput, Prisma.HrAnnouncementCommentUncheckedCreateWithoutAnnouncementInput> | Prisma.HrAnnouncementCommentCreateWithoutAnnouncementInput[] | Prisma.HrAnnouncementCommentUncheckedCreateWithoutAnnouncementInput[]
connectOrCreate?: Prisma.HrAnnouncementCommentCreateOrConnectWithoutAnnouncementInput | Prisma.HrAnnouncementCommentCreateOrConnectWithoutAnnouncementInput[]
upsert?: Prisma.HrAnnouncementCommentUpsertWithWhereUniqueWithoutAnnouncementInput | Prisma.HrAnnouncementCommentUpsertWithWhereUniqueWithoutAnnouncementInput[]
createMany?: Prisma.HrAnnouncementCommentCreateManyAnnouncementInputEnvelope
set?: Prisma.HrAnnouncementCommentWhereUniqueInput | Prisma.HrAnnouncementCommentWhereUniqueInput[]
disconnect?: Prisma.HrAnnouncementCommentWhereUniqueInput | Prisma.HrAnnouncementCommentWhereUniqueInput[]
delete?: Prisma.HrAnnouncementCommentWhereUniqueInput | Prisma.HrAnnouncementCommentWhereUniqueInput[]
connect?: Prisma.HrAnnouncementCommentWhereUniqueInput | Prisma.HrAnnouncementCommentWhereUniqueInput[]
update?: Prisma.HrAnnouncementCommentUpdateWithWhereUniqueWithoutAnnouncementInput | Prisma.HrAnnouncementCommentUpdateWithWhereUniqueWithoutAnnouncementInput[]
updateMany?: Prisma.HrAnnouncementCommentUpdateManyWithWhereWithoutAnnouncementInput | Prisma.HrAnnouncementCommentUpdateManyWithWhereWithoutAnnouncementInput[]
deleteMany?: Prisma.HrAnnouncementCommentScalarWhereInput | Prisma.HrAnnouncementCommentScalarWhereInput[]
}
export type HrAnnouncementCommentCreateWithoutAnnouncementInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
tenantId: string
userId: string
body: string
archivedAt?: Date | string | null
}
export type HrAnnouncementCommentUncheckedCreateWithoutAnnouncementInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
tenantId: string
userId: string
body: string
archivedAt?: Date | string | null
}
export type HrAnnouncementCommentCreateOrConnectWithoutAnnouncementInput = {
where: Prisma.HrAnnouncementCommentWhereUniqueInput
create: Prisma.XOR<Prisma.HrAnnouncementCommentCreateWithoutAnnouncementInput, Prisma.HrAnnouncementCommentUncheckedCreateWithoutAnnouncementInput>
}
export type HrAnnouncementCommentCreateManyAnnouncementInputEnvelope = {
data: Prisma.HrAnnouncementCommentCreateManyAnnouncementInput | Prisma.HrAnnouncementCommentCreateManyAnnouncementInput[]
skipDuplicates?: boolean
}
export type HrAnnouncementCommentUpsertWithWhereUniqueWithoutAnnouncementInput = {
where: Prisma.HrAnnouncementCommentWhereUniqueInput
update: Prisma.XOR<Prisma.HrAnnouncementCommentUpdateWithoutAnnouncementInput, Prisma.HrAnnouncementCommentUncheckedUpdateWithoutAnnouncementInput>
create: Prisma.XOR<Prisma.HrAnnouncementCommentCreateWithoutAnnouncementInput, Prisma.HrAnnouncementCommentUncheckedCreateWithoutAnnouncementInput>
}
export type HrAnnouncementCommentUpdateWithWhereUniqueWithoutAnnouncementInput = {
where: Prisma.HrAnnouncementCommentWhereUniqueInput
data: Prisma.XOR<Prisma.HrAnnouncementCommentUpdateWithoutAnnouncementInput, Prisma.HrAnnouncementCommentUncheckedUpdateWithoutAnnouncementInput>
}
export type HrAnnouncementCommentUpdateManyWithWhereWithoutAnnouncementInput = {
where: Prisma.HrAnnouncementCommentScalarWhereInput
data: Prisma.XOR<Prisma.HrAnnouncementCommentUpdateManyMutationInput, Prisma.HrAnnouncementCommentUncheckedUpdateManyWithoutAnnouncementInput>
}
export type HrAnnouncementCommentScalarWhereInput = {
AND?: Prisma.HrAnnouncementCommentScalarWhereInput | Prisma.HrAnnouncementCommentScalarWhereInput[]
OR?: Prisma.HrAnnouncementCommentScalarWhereInput[]
NOT?: Prisma.HrAnnouncementCommentScalarWhereInput | Prisma.HrAnnouncementCommentScalarWhereInput[]
id?: Prisma.StringFilter<"HrAnnouncementComment"> | string
createdAt?: Prisma.DateTimeFilter<"HrAnnouncementComment"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"HrAnnouncementComment"> | Date | string
tenantId?: Prisma.StringFilter<"HrAnnouncementComment"> | string
announcementId?: Prisma.StringFilter<"HrAnnouncementComment"> | string
userId?: Prisma.StringFilter<"HrAnnouncementComment"> | string
body?: Prisma.StringFilter<"HrAnnouncementComment"> | string
archivedAt?: Prisma.DateTimeNullableFilter<"HrAnnouncementComment"> | Date | string | null
}
export type HrAnnouncementCommentCreateManyAnnouncementInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
tenantId: string
userId: string
body: string
archivedAt?: Date | string | null
}
export type HrAnnouncementCommentUpdateWithoutAnnouncementInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
userId?: Prisma.StringFieldUpdateOperationsInput | string
body?: Prisma.StringFieldUpdateOperationsInput | string
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}
export type HrAnnouncementCommentUncheckedUpdateWithoutAnnouncementInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
userId?: Prisma.StringFieldUpdateOperationsInput | string
body?: Prisma.StringFieldUpdateOperationsInput | string
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}
export type HrAnnouncementCommentUncheckedUpdateManyWithoutAnnouncementInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
userId?: Prisma.StringFieldUpdateOperationsInput | string
body?: Prisma.StringFieldUpdateOperationsInput | string
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}
export type HrAnnouncementCommentSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
createdAt?: boolean
updatedAt?: boolean
tenantId?: boolean
announcementId?: boolean
userId?: boolean
body?: boolean
archivedAt?: boolean
announcement?: boolean | Prisma.HrAnnouncementDefaultArgs<ExtArgs>
}, ExtArgs["result"]["hrAnnouncementComment"]>
export type HrAnnouncementCommentSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
createdAt?: boolean
updatedAt?: boolean
tenantId?: boolean
announcementId?: boolean
userId?: boolean
body?: boolean
archivedAt?: boolean
announcement?: boolean | Prisma.HrAnnouncementDefaultArgs<ExtArgs>
}, ExtArgs["result"]["hrAnnouncementComment"]>
export type HrAnnouncementCommentSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
createdAt?: boolean
updatedAt?: boolean
tenantId?: boolean
announcementId?: boolean
userId?: boolean
body?: boolean
archivedAt?: boolean
announcement?: boolean | Prisma.HrAnnouncementDefaultArgs<ExtArgs>
}, ExtArgs["result"]["hrAnnouncementComment"]>
export type HrAnnouncementCommentSelectScalar = {
id?: boolean
createdAt?: boolean
updatedAt?: boolean
tenantId?: boolean
announcementId?: boolean
userId?: boolean
body?: boolean
archivedAt?: boolean
}
export type HrAnnouncementCommentOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "tenantId" | "announcementId" | "userId" | "body" | "archivedAt", ExtArgs["result"]["hrAnnouncementComment"]>
export type HrAnnouncementCommentInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
announcement?: boolean | Prisma.HrAnnouncementDefaultArgs<ExtArgs>
}
export type HrAnnouncementCommentIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
announcement?: boolean | Prisma.HrAnnouncementDefaultArgs<ExtArgs>
}
export type HrAnnouncementCommentIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
announcement?: boolean | Prisma.HrAnnouncementDefaultArgs<ExtArgs>
}
export type $HrAnnouncementCommentPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "HrAnnouncementComment"
objects: {
announcement: Prisma.$HrAnnouncementPayload<ExtArgs>
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: string
createdAt: Date
updatedAt: Date
tenantId: string
announcementId: string
userId: string
body: string
archivedAt: Date | null
}, ExtArgs["result"]["hrAnnouncementComment"]>
composites: {}
}
export type HrAnnouncementCommentGetPayload<S extends boolean | null | undefined | HrAnnouncementCommentDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$HrAnnouncementCommentPayload, S>
export type HrAnnouncementCommentCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<HrAnnouncementCommentFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: HrAnnouncementCommentCountAggregateInputType | true
}
export interface HrAnnouncementCommentDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['HrAnnouncementComment'], meta: { name: 'HrAnnouncementComment' } }
/**
* Find zero or one HrAnnouncementComment that matches the filter.
* @param {HrAnnouncementCommentFindUniqueArgs} args - Arguments to find a HrAnnouncementComment
* @example
* // Get one HrAnnouncementComment
* const hrAnnouncementComment = await prisma.hrAnnouncementComment.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends HrAnnouncementCommentFindUniqueArgs>(args: Prisma.SelectSubset<T, HrAnnouncementCommentFindUniqueArgs<ExtArgs>>): Prisma.Prisma__HrAnnouncementCommentClient<runtime.Types.Result.GetResult<Prisma.$HrAnnouncementCommentPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one HrAnnouncementComment that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {HrAnnouncementCommentFindUniqueOrThrowArgs} args - Arguments to find a HrAnnouncementComment
* @example
* // Get one HrAnnouncementComment
* const hrAnnouncementComment = await prisma.hrAnnouncementComment.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends HrAnnouncementCommentFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, HrAnnouncementCommentFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__HrAnnouncementCommentClient<runtime.Types.Result.GetResult<Prisma.$HrAnnouncementCommentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first HrAnnouncementComment 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 {HrAnnouncementCommentFindFirstArgs} args - Arguments to find a HrAnnouncementComment
* @example
* // Get one HrAnnouncementComment
* const hrAnnouncementComment = await prisma.hrAnnouncementComment.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends HrAnnouncementCommentFindFirstArgs>(args?: Prisma.SelectSubset<T, HrAnnouncementCommentFindFirstArgs<ExtArgs>>): Prisma.Prisma__HrAnnouncementCommentClient<runtime.Types.Result.GetResult<Prisma.$HrAnnouncementCommentPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first HrAnnouncementComment 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 {HrAnnouncementCommentFindFirstOrThrowArgs} args - Arguments to find a HrAnnouncementComment
* @example
* // Get one HrAnnouncementComment
* const hrAnnouncementComment = await prisma.hrAnnouncementComment.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends HrAnnouncementCommentFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, HrAnnouncementCommentFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__HrAnnouncementCommentClient<runtime.Types.Result.GetResult<Prisma.$HrAnnouncementCommentPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more HrAnnouncementComments 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 {HrAnnouncementCommentFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all HrAnnouncementComments
* const hrAnnouncementComments = await prisma.hrAnnouncementComment.findMany()
*
* // Get first 10 HrAnnouncementComments
* const hrAnnouncementComments = await prisma.hrAnnouncementComment.findMany({ take: 10 })
*
* // Only select the `id`
* const hrAnnouncementCommentWithIdOnly = await prisma.hrAnnouncementComment.findMany({ select: { id: true } })
*
*/
findMany<T extends HrAnnouncementCommentFindManyArgs>(args?: Prisma.SelectSubset<T, HrAnnouncementCommentFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$HrAnnouncementCommentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a HrAnnouncementComment.
* @param {HrAnnouncementCommentCreateArgs} args - Arguments to create a HrAnnouncementComment.
* @example
* // Create one HrAnnouncementComment
* const HrAnnouncementComment = await prisma.hrAnnouncementComment.create({
* data: {
* // ... data to create a HrAnnouncementComment
* }
* })
*
*/
create<T extends HrAnnouncementCommentCreateArgs>(args: Prisma.SelectSubset<T, HrAnnouncementCommentCreateArgs<ExtArgs>>): Prisma.Prisma__HrAnnouncementCommentClient<runtime.Types.Result.GetResult<Prisma.$HrAnnouncementCommentPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many HrAnnouncementComments.
* @param {HrAnnouncementCommentCreateManyArgs} args - Arguments to create many HrAnnouncementComments.
* @example
* // Create many HrAnnouncementComments
* const hrAnnouncementComment = await prisma.hrAnnouncementComment.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends HrAnnouncementCommentCreateManyArgs>(args?: Prisma.SelectSubset<T, HrAnnouncementCommentCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many HrAnnouncementComments and returns the data saved in the database.
* @param {HrAnnouncementCommentCreateManyAndReturnArgs} args - Arguments to create many HrAnnouncementComments.
* @example
* // Create many HrAnnouncementComments
* const hrAnnouncementComment = await prisma.hrAnnouncementComment.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many HrAnnouncementComments and only return the `id`
* const hrAnnouncementCommentWithIdOnly = await prisma.hrAnnouncementComment.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 HrAnnouncementCommentCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, HrAnnouncementCommentCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$HrAnnouncementCommentPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a HrAnnouncementComment.
* @param {HrAnnouncementCommentDeleteArgs} args - Arguments to delete one HrAnnouncementComment.
* @example
* // Delete one HrAnnouncementComment
* const HrAnnouncementComment = await prisma.hrAnnouncementComment.delete({
* where: {
* // ... filter to delete one HrAnnouncementComment
* }
* })
*
*/
delete<T extends HrAnnouncementCommentDeleteArgs>(args: Prisma.SelectSubset<T, HrAnnouncementCommentDeleteArgs<ExtArgs>>): Prisma.Prisma__HrAnnouncementCommentClient<runtime.Types.Result.GetResult<Prisma.$HrAnnouncementCommentPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one HrAnnouncementComment.
* @param {HrAnnouncementCommentUpdateArgs} args - Arguments to update one HrAnnouncementComment.
* @example
* // Update one HrAnnouncementComment
* const hrAnnouncementComment = await prisma.hrAnnouncementComment.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends HrAnnouncementCommentUpdateArgs>(args: Prisma.SelectSubset<T, HrAnnouncementCommentUpdateArgs<ExtArgs>>): Prisma.Prisma__HrAnnouncementCommentClient<runtime.Types.Result.GetResult<Prisma.$HrAnnouncementCommentPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more HrAnnouncementComments.
* @param {HrAnnouncementCommentDeleteManyArgs} args - Arguments to filter HrAnnouncementComments to delete.
* @example
* // Delete a few HrAnnouncementComments
* const { count } = await prisma.hrAnnouncementComment.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends HrAnnouncementCommentDeleteManyArgs>(args?: Prisma.SelectSubset<T, HrAnnouncementCommentDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more HrAnnouncementComments.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {HrAnnouncementCommentUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many HrAnnouncementComments
* const hrAnnouncementComment = await prisma.hrAnnouncementComment.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends HrAnnouncementCommentUpdateManyArgs>(args: Prisma.SelectSubset<T, HrAnnouncementCommentUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more HrAnnouncementComments and returns the data updated in the database.
* @param {HrAnnouncementCommentUpdateManyAndReturnArgs} args - Arguments to update many HrAnnouncementComments.
* @example
* // Update many HrAnnouncementComments
* const hrAnnouncementComment = await prisma.hrAnnouncementComment.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more HrAnnouncementComments and only return the `id`
* const hrAnnouncementCommentWithIdOnly = await prisma.hrAnnouncementComment.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 HrAnnouncementCommentUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, HrAnnouncementCommentUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$HrAnnouncementCommentPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one HrAnnouncementComment.
* @param {HrAnnouncementCommentUpsertArgs} args - Arguments to update or create a HrAnnouncementComment.
* @example
* // Update or create a HrAnnouncementComment
* const hrAnnouncementComment = await prisma.hrAnnouncementComment.upsert({
* create: {
* // ... data to create a HrAnnouncementComment
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the HrAnnouncementComment we want to update
* }
* })
*/
upsert<T extends HrAnnouncementCommentUpsertArgs>(args: Prisma.SelectSubset<T, HrAnnouncementCommentUpsertArgs<ExtArgs>>): Prisma.Prisma__HrAnnouncementCommentClient<runtime.Types.Result.GetResult<Prisma.$HrAnnouncementCommentPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of HrAnnouncementComments.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {HrAnnouncementCommentCountArgs} args - Arguments to filter HrAnnouncementComments to count.
* @example
* // Count the number of HrAnnouncementComments
* const count = await prisma.hrAnnouncementComment.count({
* where: {
* // ... the filter for the HrAnnouncementComments we want to count
* }
* })
**/
count<T extends HrAnnouncementCommentCountArgs>(
args?: Prisma.Subset<T, HrAnnouncementCommentCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], HrAnnouncementCommentCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a HrAnnouncementComment.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {HrAnnouncementCommentAggregateArgs} 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 HrAnnouncementCommentAggregateArgs>(args: Prisma.Subset<T, HrAnnouncementCommentAggregateArgs>): Prisma.PrismaPromise<GetHrAnnouncementCommentAggregateType<T>>
/**
* Group by HrAnnouncementComment.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {HrAnnouncementCommentGroupByArgs} 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 HrAnnouncementCommentGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: HrAnnouncementCommentGroupByArgs['orderBy'] }
: { orderBy?: HrAnnouncementCommentGroupByArgs['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, HrAnnouncementCommentGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetHrAnnouncementCommentGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the HrAnnouncementComment model
*/
readonly fields: HrAnnouncementCommentFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for HrAnnouncementComment.
* 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__HrAnnouncementCommentClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
announcement<T extends Prisma.HrAnnouncementDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.HrAnnouncementDefaultArgs<ExtArgs>>): Prisma.Prisma__HrAnnouncementClient<runtime.Types.Result.GetResult<Prisma.$HrAnnouncementPayload<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 HrAnnouncementComment model
*/
export interface HrAnnouncementCommentFieldRefs {
readonly id: Prisma.FieldRef<"HrAnnouncementComment", 'String'>
readonly createdAt: Prisma.FieldRef<"HrAnnouncementComment", 'DateTime'>
readonly updatedAt: Prisma.FieldRef<"HrAnnouncementComment", 'DateTime'>
readonly tenantId: Prisma.FieldRef<"HrAnnouncementComment", 'String'>
readonly announcementId: Prisma.FieldRef<"HrAnnouncementComment", 'String'>
readonly userId: Prisma.FieldRef<"HrAnnouncementComment", 'String'>
readonly body: Prisma.FieldRef<"HrAnnouncementComment", 'String'>
readonly archivedAt: Prisma.FieldRef<"HrAnnouncementComment", 'DateTime'>
}
// Custom InputTypes
/**
* HrAnnouncementComment findUnique
*/
export type HrAnnouncementCommentFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the HrAnnouncementComment
*/
select?: Prisma.HrAnnouncementCommentSelect<ExtArgs> | null
/**
* Omit specific fields from the HrAnnouncementComment
*/
omit?: Prisma.HrAnnouncementCommentOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.HrAnnouncementCommentInclude<ExtArgs> | null
/**
* Filter, which HrAnnouncementComment to fetch.
*/
where: Prisma.HrAnnouncementCommentWhereUniqueInput
}
/**
* HrAnnouncementComment findUniqueOrThrow
*/
export type HrAnnouncementCommentFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the HrAnnouncementComment
*/
select?: Prisma.HrAnnouncementCommentSelect<ExtArgs> | null
/**
* Omit specific fields from the HrAnnouncementComment
*/
omit?: Prisma.HrAnnouncementCommentOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.HrAnnouncementCommentInclude<ExtArgs> | null
/**
* Filter, which HrAnnouncementComment to fetch.
*/
where: Prisma.HrAnnouncementCommentWhereUniqueInput
}
/**
* HrAnnouncementComment findFirst
*/
export type HrAnnouncementCommentFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the HrAnnouncementComment
*/
select?: Prisma.HrAnnouncementCommentSelect<ExtArgs> | null
/**
* Omit specific fields from the HrAnnouncementComment
*/
omit?: Prisma.HrAnnouncementCommentOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.HrAnnouncementCommentInclude<ExtArgs> | null
/**
* Filter, which HrAnnouncementComment to fetch.
*/
where?: Prisma.HrAnnouncementCommentWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of HrAnnouncementComments to fetch.
*/
orderBy?: Prisma.HrAnnouncementCommentOrderByWithRelationInput | Prisma.HrAnnouncementCommentOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for HrAnnouncementComments.
*/
cursor?: Prisma.HrAnnouncementCommentWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` HrAnnouncementComments 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` HrAnnouncementComments.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of HrAnnouncementComments.
*/
distinct?: Prisma.HrAnnouncementCommentScalarFieldEnum | Prisma.HrAnnouncementCommentScalarFieldEnum[]
}
/**
* HrAnnouncementComment findFirstOrThrow
*/
export type HrAnnouncementCommentFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the HrAnnouncementComment
*/
select?: Prisma.HrAnnouncementCommentSelect<ExtArgs> | null
/**
* Omit specific fields from the HrAnnouncementComment
*/
omit?: Prisma.HrAnnouncementCommentOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.HrAnnouncementCommentInclude<ExtArgs> | null
/**
* Filter, which HrAnnouncementComment to fetch.
*/
where?: Prisma.HrAnnouncementCommentWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of HrAnnouncementComments to fetch.
*/
orderBy?: Prisma.HrAnnouncementCommentOrderByWithRelationInput | Prisma.HrAnnouncementCommentOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for HrAnnouncementComments.
*/
cursor?: Prisma.HrAnnouncementCommentWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` HrAnnouncementComments 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` HrAnnouncementComments.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of HrAnnouncementComments.
*/
distinct?: Prisma.HrAnnouncementCommentScalarFieldEnum | Prisma.HrAnnouncementCommentScalarFieldEnum[]
}
/**
* HrAnnouncementComment findMany
*/
export type HrAnnouncementCommentFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the HrAnnouncementComment
*/
select?: Prisma.HrAnnouncementCommentSelect<ExtArgs> | null
/**
* Omit specific fields from the HrAnnouncementComment
*/
omit?: Prisma.HrAnnouncementCommentOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.HrAnnouncementCommentInclude<ExtArgs> | null
/**
* Filter, which HrAnnouncementComments to fetch.
*/
where?: Prisma.HrAnnouncementCommentWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of HrAnnouncementComments to fetch.
*/
orderBy?: Prisma.HrAnnouncementCommentOrderByWithRelationInput | Prisma.HrAnnouncementCommentOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing HrAnnouncementComments.
*/
cursor?: Prisma.HrAnnouncementCommentWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` HrAnnouncementComments 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` HrAnnouncementComments.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of HrAnnouncementComments.
*/
distinct?: Prisma.HrAnnouncementCommentScalarFieldEnum | Prisma.HrAnnouncementCommentScalarFieldEnum[]
}
/**
* HrAnnouncementComment create
*/
export type HrAnnouncementCommentCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the HrAnnouncementComment
*/
select?: Prisma.HrAnnouncementCommentSelect<ExtArgs> | null
/**
* Omit specific fields from the HrAnnouncementComment
*/
omit?: Prisma.HrAnnouncementCommentOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.HrAnnouncementCommentInclude<ExtArgs> | null
/**
* The data needed to create a HrAnnouncementComment.
*/
data: Prisma.XOR<Prisma.HrAnnouncementCommentCreateInput, Prisma.HrAnnouncementCommentUncheckedCreateInput>
}
/**
* HrAnnouncementComment createMany
*/
export type HrAnnouncementCommentCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many HrAnnouncementComments.
*/
data: Prisma.HrAnnouncementCommentCreateManyInput | Prisma.HrAnnouncementCommentCreateManyInput[]
skipDuplicates?: boolean
}
/**
* HrAnnouncementComment createManyAndReturn
*/
export type HrAnnouncementCommentCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the HrAnnouncementComment
*/
select?: Prisma.HrAnnouncementCommentSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the HrAnnouncementComment
*/
omit?: Prisma.HrAnnouncementCommentOmit<ExtArgs> | null
/**
* The data used to create many HrAnnouncementComments.
*/
data: Prisma.HrAnnouncementCommentCreateManyInput | Prisma.HrAnnouncementCommentCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.HrAnnouncementCommentIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* HrAnnouncementComment update
*/
export type HrAnnouncementCommentUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the HrAnnouncementComment
*/
select?: Prisma.HrAnnouncementCommentSelect<ExtArgs> | null
/**
* Omit specific fields from the HrAnnouncementComment
*/
omit?: Prisma.HrAnnouncementCommentOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.HrAnnouncementCommentInclude<ExtArgs> | null
/**
* The data needed to update a HrAnnouncementComment.
*/
data: Prisma.XOR<Prisma.HrAnnouncementCommentUpdateInput, Prisma.HrAnnouncementCommentUncheckedUpdateInput>
/**
* Choose, which HrAnnouncementComment to update.
*/
where: Prisma.HrAnnouncementCommentWhereUniqueInput
}
/**
* HrAnnouncementComment updateMany
*/
export type HrAnnouncementCommentUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update HrAnnouncementComments.
*/
data: Prisma.XOR<Prisma.HrAnnouncementCommentUpdateManyMutationInput, Prisma.HrAnnouncementCommentUncheckedUpdateManyInput>
/**
* Filter which HrAnnouncementComments to update
*/
where?: Prisma.HrAnnouncementCommentWhereInput
/**
* Limit how many HrAnnouncementComments to update.
*/
limit?: number
}
/**
* HrAnnouncementComment updateManyAndReturn
*/
export type HrAnnouncementCommentUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the HrAnnouncementComment
*/
select?: Prisma.HrAnnouncementCommentSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the HrAnnouncementComment
*/
omit?: Prisma.HrAnnouncementCommentOmit<ExtArgs> | null
/**
* The data used to update HrAnnouncementComments.
*/
data: Prisma.XOR<Prisma.HrAnnouncementCommentUpdateManyMutationInput, Prisma.HrAnnouncementCommentUncheckedUpdateManyInput>
/**
* Filter which HrAnnouncementComments to update
*/
where?: Prisma.HrAnnouncementCommentWhereInput
/**
* Limit how many HrAnnouncementComments to update.
*/
limit?: number
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.HrAnnouncementCommentIncludeUpdateManyAndReturn<ExtArgs> | null
}
/**
* HrAnnouncementComment upsert
*/
export type HrAnnouncementCommentUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the HrAnnouncementComment
*/
select?: Prisma.HrAnnouncementCommentSelect<ExtArgs> | null
/**
* Omit specific fields from the HrAnnouncementComment
*/
omit?: Prisma.HrAnnouncementCommentOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.HrAnnouncementCommentInclude<ExtArgs> | null
/**
* The filter to search for the HrAnnouncementComment to update in case it exists.
*/
where: Prisma.HrAnnouncementCommentWhereUniqueInput
/**
* In case the HrAnnouncementComment found by the `where` argument doesn't exist, create a new HrAnnouncementComment with this data.
*/
create: Prisma.XOR<Prisma.HrAnnouncementCommentCreateInput, Prisma.HrAnnouncementCommentUncheckedCreateInput>
/**
* In case the HrAnnouncementComment was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.HrAnnouncementCommentUpdateInput, Prisma.HrAnnouncementCommentUncheckedUpdateInput>
}
/**
* HrAnnouncementComment delete
*/
export type HrAnnouncementCommentDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the HrAnnouncementComment
*/
select?: Prisma.HrAnnouncementCommentSelect<ExtArgs> | null
/**
* Omit specific fields from the HrAnnouncementComment
*/
omit?: Prisma.HrAnnouncementCommentOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.HrAnnouncementCommentInclude<ExtArgs> | null
/**
* Filter which HrAnnouncementComment to delete.
*/
where: Prisma.HrAnnouncementCommentWhereUniqueInput
}
/**
* HrAnnouncementComment deleteMany
*/
export type HrAnnouncementCommentDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which HrAnnouncementComments to delete
*/
where?: Prisma.HrAnnouncementCommentWhereInput
/**
* Limit how many HrAnnouncementComments to delete.
*/
limit?: number
}
/**
* HrAnnouncementComment without action
*/
export type HrAnnouncementCommentDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the HrAnnouncementComment
*/
select?: Prisma.HrAnnouncementCommentSelect<ExtArgs> | null
/**
* Omit specific fields from the HrAnnouncementComment
*/
omit?: Prisma.HrAnnouncementCommentOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.HrAnnouncementCommentInclude<ExtArgs> | null
}