import type * as runtime from "@prisma/client/runtime/client";
import type * as Prisma from "../internal/prismaNamespace";
/**
 * Model integrations_departments
 * This model contains row level security and requires additional setup for migrations. Visit https://pris.ly/d/row-level-security for more info.
 */
export type integrations_departmentsModel = runtime.Types.Result.DefaultSelection<Prisma.$integrations_departmentsPayload>;
export type AggregateIntegrations_departments = {
    _count: Integrations_departmentsCountAggregateOutputType | null;
    _avg: Integrations_departmentsAvgAggregateOutputType | null;
    _sum: Integrations_departmentsSumAggregateOutputType | null;
    _min: Integrations_departmentsMinAggregateOutputType | null;
    _max: Integrations_departmentsMaxAggregateOutputType | null;
};
export type Integrations_departmentsAvgAggregateOutputType = {
    id: number | null;
    integrations_id: number | null;
    departments_id: number | null;
};
export type Integrations_departmentsSumAggregateOutputType = {
    id: number | null;
    integrations_id: number | null;
    departments_id: number | null;
};
export type Integrations_departmentsMinAggregateOutputType = {
    id: number | null;
    integrations_id: number | null;
    departments_id: number | null;
};
export type Integrations_departmentsMaxAggregateOutputType = {
    id: number | null;
    integrations_id: number | null;
    departments_id: number | null;
};
export type Integrations_departmentsCountAggregateOutputType = {
    id: number;
    integrations_id: number;
    departments_id: number;
    _all: number;
};
export type Integrations_departmentsAvgAggregateInputType = {
    id?: true;
    integrations_id?: true;
    departments_id?: true;
};
export type Integrations_departmentsSumAggregateInputType = {
    id?: true;
    integrations_id?: true;
    departments_id?: true;
};
export type Integrations_departmentsMinAggregateInputType = {
    id?: true;
    integrations_id?: true;
    departments_id?: true;
};
export type Integrations_departmentsMaxAggregateInputType = {
    id?: true;
    integrations_id?: true;
    departments_id?: true;
};
export type Integrations_departmentsCountAggregateInputType = {
    id?: true;
    integrations_id?: true;
    departments_id?: true;
    _all?: true;
};
export type Integrations_departmentsAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Filter which integrations_departments to aggregate.
     */
    where?: Prisma.integrations_departmentsWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of integrations_departments to fetch.
     */
    orderBy?: Prisma.integrations_departmentsOrderByWithRelationInput | Prisma.integrations_departmentsOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the start position
     */
    cursor?: Prisma.integrations_departmentsWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` integrations_departments 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` integrations_departments.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Count returned integrations_departments
    **/
    _count?: true | Integrations_departmentsCountAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to average
    **/
    _avg?: Integrations_departmentsAvgAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to sum
    **/
    _sum?: Integrations_departmentsSumAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to find the minimum value
    **/
    _min?: Integrations_departmentsMinAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to find the maximum value
    **/
    _max?: Integrations_departmentsMaxAggregateInputType;
};
export type GetIntegrations_departmentsAggregateType<T extends Integrations_departmentsAggregateArgs> = {
    [P in keyof T & keyof AggregateIntegrations_departments]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateIntegrations_departments[P]> : Prisma.GetScalarType<T[P], AggregateIntegrations_departments[P]>;
};
export type integrations_departmentsGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    where?: Prisma.integrations_departmentsWhereInput;
    orderBy?: Prisma.integrations_departmentsOrderByWithAggregationInput | Prisma.integrations_departmentsOrderByWithAggregationInput[];
    by: Prisma.Integrations_departmentsScalarFieldEnum[] | Prisma.Integrations_departmentsScalarFieldEnum;
    having?: Prisma.integrations_departmentsScalarWhereWithAggregatesInput;
    take?: number;
    skip?: number;
    _count?: Integrations_departmentsCountAggregateInputType | true;
    _avg?: Integrations_departmentsAvgAggregateInputType;
    _sum?: Integrations_departmentsSumAggregateInputType;
    _min?: Integrations_departmentsMinAggregateInputType;
    _max?: Integrations_departmentsMaxAggregateInputType;
};
export type Integrations_departmentsGroupByOutputType = {
    id: number;
    integrations_id: number | null;
    departments_id: number | null;
    _count: Integrations_departmentsCountAggregateOutputType | null;
    _avg: Integrations_departmentsAvgAggregateOutputType | null;
    _sum: Integrations_departmentsSumAggregateOutputType | null;
    _min: Integrations_departmentsMinAggregateOutputType | null;
    _max: Integrations_departmentsMaxAggregateOutputType | null;
};
type GetIntegrations_departmentsGroupByPayload<T extends integrations_departmentsGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<Integrations_departmentsGroupByOutputType, T['by']> & {
    [P in ((keyof T) & (keyof Integrations_departmentsGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], Integrations_departmentsGroupByOutputType[P]> : Prisma.GetScalarType<T[P], Integrations_departmentsGroupByOutputType[P]>;
}>>;
export type integrations_departmentsWhereInput = {
    AND?: Prisma.integrations_departmentsWhereInput | Prisma.integrations_departmentsWhereInput[];
    OR?: Prisma.integrations_departmentsWhereInput[];
    NOT?: Prisma.integrations_departmentsWhereInput | Prisma.integrations_departmentsWhereInput[];
    id?: Prisma.IntFilter<"integrations_departments"> | number;
    integrations_id?: Prisma.IntNullableFilter<"integrations_departments"> | number | null;
    departments_id?: Prisma.IntNullableFilter<"integrations_departments"> | number | null;
    departments?: Prisma.XOR<Prisma.DepartmentsNullableScalarRelationFilter, Prisma.departmentsWhereInput> | null;
    integrations?: Prisma.XOR<Prisma.IntegrationsNullableScalarRelationFilter, Prisma.integrationsWhereInput> | null;
};
export type integrations_departmentsOrderByWithRelationInput = {
    id?: Prisma.SortOrder;
    integrations_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    departments_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    departments?: Prisma.departmentsOrderByWithRelationInput;
    integrations?: Prisma.integrationsOrderByWithRelationInput;
};
export type integrations_departmentsWhereUniqueInput = Prisma.AtLeast<{
    id?: number;
    AND?: Prisma.integrations_departmentsWhereInput | Prisma.integrations_departmentsWhereInput[];
    OR?: Prisma.integrations_departmentsWhereInput[];
    NOT?: Prisma.integrations_departmentsWhereInput | Prisma.integrations_departmentsWhereInput[];
    integrations_id?: Prisma.IntNullableFilter<"integrations_departments"> | number | null;
    departments_id?: Prisma.IntNullableFilter<"integrations_departments"> | number | null;
    departments?: Prisma.XOR<Prisma.DepartmentsNullableScalarRelationFilter, Prisma.departmentsWhereInput> | null;
    integrations?: Prisma.XOR<Prisma.IntegrationsNullableScalarRelationFilter, Prisma.integrationsWhereInput> | null;
}, "id">;
export type integrations_departmentsOrderByWithAggregationInput = {
    id?: Prisma.SortOrder;
    integrations_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    departments_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    _count?: Prisma.integrations_departmentsCountOrderByAggregateInput;
    _avg?: Prisma.integrations_departmentsAvgOrderByAggregateInput;
    _max?: Prisma.integrations_departmentsMaxOrderByAggregateInput;
    _min?: Prisma.integrations_departmentsMinOrderByAggregateInput;
    _sum?: Prisma.integrations_departmentsSumOrderByAggregateInput;
};
export type integrations_departmentsScalarWhereWithAggregatesInput = {
    AND?: Prisma.integrations_departmentsScalarWhereWithAggregatesInput | Prisma.integrations_departmentsScalarWhereWithAggregatesInput[];
    OR?: Prisma.integrations_departmentsScalarWhereWithAggregatesInput[];
    NOT?: Prisma.integrations_departmentsScalarWhereWithAggregatesInput | Prisma.integrations_departmentsScalarWhereWithAggregatesInput[];
    id?: Prisma.IntWithAggregatesFilter<"integrations_departments"> | number;
    integrations_id?: Prisma.IntNullableWithAggregatesFilter<"integrations_departments"> | number | null;
    departments_id?: Prisma.IntNullableWithAggregatesFilter<"integrations_departments"> | number | null;
};
export type integrations_departmentsCreateInput = {
    departments?: Prisma.departmentsCreateNestedOneWithoutIntegrations_departmentsInput;
    integrations?: Prisma.integrationsCreateNestedOneWithoutIntegrations_departmentsInput;
};
export type integrations_departmentsUncheckedCreateInput = {
    id?: number;
    integrations_id?: number | null;
    departments_id?: number | null;
};
export type integrations_departmentsUpdateInput = {
    departments?: Prisma.departmentsUpdateOneWithoutIntegrations_departmentsNestedInput;
    integrations?: Prisma.integrationsUpdateOneWithoutIntegrations_departmentsNestedInput;
};
export type integrations_departmentsUncheckedUpdateInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    integrations_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
    departments_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type integrations_departmentsCreateManyInput = {
    id?: number;
    integrations_id?: number | null;
    departments_id?: number | null;
};
export type integrations_departmentsUpdateManyMutationInput = {};
export type integrations_departmentsUncheckedUpdateManyInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    integrations_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
    departments_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type Integrations_departmentsListRelationFilter = {
    every?: Prisma.integrations_departmentsWhereInput;
    some?: Prisma.integrations_departmentsWhereInput;
    none?: Prisma.integrations_departmentsWhereInput;
};
export type integrations_departmentsOrderByRelationAggregateInput = {
    _count?: Prisma.SortOrder;
};
export type integrations_departmentsCountOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    integrations_id?: Prisma.SortOrder;
    departments_id?: Prisma.SortOrder;
};
export type integrations_departmentsAvgOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    integrations_id?: Prisma.SortOrder;
    departments_id?: Prisma.SortOrder;
};
export type integrations_departmentsMaxOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    integrations_id?: Prisma.SortOrder;
    departments_id?: Prisma.SortOrder;
};
export type integrations_departmentsMinOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    integrations_id?: Prisma.SortOrder;
    departments_id?: Prisma.SortOrder;
};
export type integrations_departmentsSumOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    integrations_id?: Prisma.SortOrder;
    departments_id?: Prisma.SortOrder;
};
export type integrations_departmentsCreateNestedManyWithoutDepartmentsInput = {
    create?: Prisma.XOR<Prisma.integrations_departmentsCreateWithoutDepartmentsInput, Prisma.integrations_departmentsUncheckedCreateWithoutDepartmentsInput> | Prisma.integrations_departmentsCreateWithoutDepartmentsInput[] | Prisma.integrations_departmentsUncheckedCreateWithoutDepartmentsInput[];
    connectOrCreate?: Prisma.integrations_departmentsCreateOrConnectWithoutDepartmentsInput | Prisma.integrations_departmentsCreateOrConnectWithoutDepartmentsInput[];
    createMany?: Prisma.integrations_departmentsCreateManyDepartmentsInputEnvelope;
    connect?: Prisma.integrations_departmentsWhereUniqueInput | Prisma.integrations_departmentsWhereUniqueInput[];
};
export type integrations_departmentsUncheckedCreateNestedManyWithoutDepartmentsInput = {
    create?: Prisma.XOR<Prisma.integrations_departmentsCreateWithoutDepartmentsInput, Prisma.integrations_departmentsUncheckedCreateWithoutDepartmentsInput> | Prisma.integrations_departmentsCreateWithoutDepartmentsInput[] | Prisma.integrations_departmentsUncheckedCreateWithoutDepartmentsInput[];
    connectOrCreate?: Prisma.integrations_departmentsCreateOrConnectWithoutDepartmentsInput | Prisma.integrations_departmentsCreateOrConnectWithoutDepartmentsInput[];
    createMany?: Prisma.integrations_departmentsCreateManyDepartmentsInputEnvelope;
    connect?: Prisma.integrations_departmentsWhereUniqueInput | Prisma.integrations_departmentsWhereUniqueInput[];
};
export type integrations_departmentsUpdateManyWithoutDepartmentsNestedInput = {
    create?: Prisma.XOR<Prisma.integrations_departmentsCreateWithoutDepartmentsInput, Prisma.integrations_departmentsUncheckedCreateWithoutDepartmentsInput> | Prisma.integrations_departmentsCreateWithoutDepartmentsInput[] | Prisma.integrations_departmentsUncheckedCreateWithoutDepartmentsInput[];
    connectOrCreate?: Prisma.integrations_departmentsCreateOrConnectWithoutDepartmentsInput | Prisma.integrations_departmentsCreateOrConnectWithoutDepartmentsInput[];
    upsert?: Prisma.integrations_departmentsUpsertWithWhereUniqueWithoutDepartmentsInput | Prisma.integrations_departmentsUpsertWithWhereUniqueWithoutDepartmentsInput[];
    createMany?: Prisma.integrations_departmentsCreateManyDepartmentsInputEnvelope;
    set?: Prisma.integrations_departmentsWhereUniqueInput | Prisma.integrations_departmentsWhereUniqueInput[];
    disconnect?: Prisma.integrations_departmentsWhereUniqueInput | Prisma.integrations_departmentsWhereUniqueInput[];
    delete?: Prisma.integrations_departmentsWhereUniqueInput | Prisma.integrations_departmentsWhereUniqueInput[];
    connect?: Prisma.integrations_departmentsWhereUniqueInput | Prisma.integrations_departmentsWhereUniqueInput[];
    update?: Prisma.integrations_departmentsUpdateWithWhereUniqueWithoutDepartmentsInput | Prisma.integrations_departmentsUpdateWithWhereUniqueWithoutDepartmentsInput[];
    updateMany?: Prisma.integrations_departmentsUpdateManyWithWhereWithoutDepartmentsInput | Prisma.integrations_departmentsUpdateManyWithWhereWithoutDepartmentsInput[];
    deleteMany?: Prisma.integrations_departmentsScalarWhereInput | Prisma.integrations_departmentsScalarWhereInput[];
};
export type integrations_departmentsUncheckedUpdateManyWithoutDepartmentsNestedInput = {
    create?: Prisma.XOR<Prisma.integrations_departmentsCreateWithoutDepartmentsInput, Prisma.integrations_departmentsUncheckedCreateWithoutDepartmentsInput> | Prisma.integrations_departmentsCreateWithoutDepartmentsInput[] | Prisma.integrations_departmentsUncheckedCreateWithoutDepartmentsInput[];
    connectOrCreate?: Prisma.integrations_departmentsCreateOrConnectWithoutDepartmentsInput | Prisma.integrations_departmentsCreateOrConnectWithoutDepartmentsInput[];
    upsert?: Prisma.integrations_departmentsUpsertWithWhereUniqueWithoutDepartmentsInput | Prisma.integrations_departmentsUpsertWithWhereUniqueWithoutDepartmentsInput[];
    createMany?: Prisma.integrations_departmentsCreateManyDepartmentsInputEnvelope;
    set?: Prisma.integrations_departmentsWhereUniqueInput | Prisma.integrations_departmentsWhereUniqueInput[];
    disconnect?: Prisma.integrations_departmentsWhereUniqueInput | Prisma.integrations_departmentsWhereUniqueInput[];
    delete?: Prisma.integrations_departmentsWhereUniqueInput | Prisma.integrations_departmentsWhereUniqueInput[];
    connect?: Prisma.integrations_departmentsWhereUniqueInput | Prisma.integrations_departmentsWhereUniqueInput[];
    update?: Prisma.integrations_departmentsUpdateWithWhereUniqueWithoutDepartmentsInput | Prisma.integrations_departmentsUpdateWithWhereUniqueWithoutDepartmentsInput[];
    updateMany?: Prisma.integrations_departmentsUpdateManyWithWhereWithoutDepartmentsInput | Prisma.integrations_departmentsUpdateManyWithWhereWithoutDepartmentsInput[];
    deleteMany?: Prisma.integrations_departmentsScalarWhereInput | Prisma.integrations_departmentsScalarWhereInput[];
};
export type integrations_departmentsCreateNestedManyWithoutIntegrationsInput = {
    create?: Prisma.XOR<Prisma.integrations_departmentsCreateWithoutIntegrationsInput, Prisma.integrations_departmentsUncheckedCreateWithoutIntegrationsInput> | Prisma.integrations_departmentsCreateWithoutIntegrationsInput[] | Prisma.integrations_departmentsUncheckedCreateWithoutIntegrationsInput[];
    connectOrCreate?: Prisma.integrations_departmentsCreateOrConnectWithoutIntegrationsInput | Prisma.integrations_departmentsCreateOrConnectWithoutIntegrationsInput[];
    createMany?: Prisma.integrations_departmentsCreateManyIntegrationsInputEnvelope;
    connect?: Prisma.integrations_departmentsWhereUniqueInput | Prisma.integrations_departmentsWhereUniqueInput[];
};
export type integrations_departmentsUncheckedCreateNestedManyWithoutIntegrationsInput = {
    create?: Prisma.XOR<Prisma.integrations_departmentsCreateWithoutIntegrationsInput, Prisma.integrations_departmentsUncheckedCreateWithoutIntegrationsInput> | Prisma.integrations_departmentsCreateWithoutIntegrationsInput[] | Prisma.integrations_departmentsUncheckedCreateWithoutIntegrationsInput[];
    connectOrCreate?: Prisma.integrations_departmentsCreateOrConnectWithoutIntegrationsInput | Prisma.integrations_departmentsCreateOrConnectWithoutIntegrationsInput[];
    createMany?: Prisma.integrations_departmentsCreateManyIntegrationsInputEnvelope;
    connect?: Prisma.integrations_departmentsWhereUniqueInput | Prisma.integrations_departmentsWhereUniqueInput[];
};
export type integrations_departmentsUpdateManyWithoutIntegrationsNestedInput = {
    create?: Prisma.XOR<Prisma.integrations_departmentsCreateWithoutIntegrationsInput, Prisma.integrations_departmentsUncheckedCreateWithoutIntegrationsInput> | Prisma.integrations_departmentsCreateWithoutIntegrationsInput[] | Prisma.integrations_departmentsUncheckedCreateWithoutIntegrationsInput[];
    connectOrCreate?: Prisma.integrations_departmentsCreateOrConnectWithoutIntegrationsInput | Prisma.integrations_departmentsCreateOrConnectWithoutIntegrationsInput[];
    upsert?: Prisma.integrations_departmentsUpsertWithWhereUniqueWithoutIntegrationsInput | Prisma.integrations_departmentsUpsertWithWhereUniqueWithoutIntegrationsInput[];
    createMany?: Prisma.integrations_departmentsCreateManyIntegrationsInputEnvelope;
    set?: Prisma.integrations_departmentsWhereUniqueInput | Prisma.integrations_departmentsWhereUniqueInput[];
    disconnect?: Prisma.integrations_departmentsWhereUniqueInput | Prisma.integrations_departmentsWhereUniqueInput[];
    delete?: Prisma.integrations_departmentsWhereUniqueInput | Prisma.integrations_departmentsWhereUniqueInput[];
    connect?: Prisma.integrations_departmentsWhereUniqueInput | Prisma.integrations_departmentsWhereUniqueInput[];
    update?: Prisma.integrations_departmentsUpdateWithWhereUniqueWithoutIntegrationsInput | Prisma.integrations_departmentsUpdateWithWhereUniqueWithoutIntegrationsInput[];
    updateMany?: Prisma.integrations_departmentsUpdateManyWithWhereWithoutIntegrationsInput | Prisma.integrations_departmentsUpdateManyWithWhereWithoutIntegrationsInput[];
    deleteMany?: Prisma.integrations_departmentsScalarWhereInput | Prisma.integrations_departmentsScalarWhereInput[];
};
export type integrations_departmentsUncheckedUpdateManyWithoutIntegrationsNestedInput = {
    create?: Prisma.XOR<Prisma.integrations_departmentsCreateWithoutIntegrationsInput, Prisma.integrations_departmentsUncheckedCreateWithoutIntegrationsInput> | Prisma.integrations_departmentsCreateWithoutIntegrationsInput[] | Prisma.integrations_departmentsUncheckedCreateWithoutIntegrationsInput[];
    connectOrCreate?: Prisma.integrations_departmentsCreateOrConnectWithoutIntegrationsInput | Prisma.integrations_departmentsCreateOrConnectWithoutIntegrationsInput[];
    upsert?: Prisma.integrations_departmentsUpsertWithWhereUniqueWithoutIntegrationsInput | Prisma.integrations_departmentsUpsertWithWhereUniqueWithoutIntegrationsInput[];
    createMany?: Prisma.integrations_departmentsCreateManyIntegrationsInputEnvelope;
    set?: Prisma.integrations_departmentsWhereUniqueInput | Prisma.integrations_departmentsWhereUniqueInput[];
    disconnect?: Prisma.integrations_departmentsWhereUniqueInput | Prisma.integrations_departmentsWhereUniqueInput[];
    delete?: Prisma.integrations_departmentsWhereUniqueInput | Prisma.integrations_departmentsWhereUniqueInput[];
    connect?: Prisma.integrations_departmentsWhereUniqueInput | Prisma.integrations_departmentsWhereUniqueInput[];
    update?: Prisma.integrations_departmentsUpdateWithWhereUniqueWithoutIntegrationsInput | Prisma.integrations_departmentsUpdateWithWhereUniqueWithoutIntegrationsInput[];
    updateMany?: Prisma.integrations_departmentsUpdateManyWithWhereWithoutIntegrationsInput | Prisma.integrations_departmentsUpdateManyWithWhereWithoutIntegrationsInput[];
    deleteMany?: Prisma.integrations_departmentsScalarWhereInput | Prisma.integrations_departmentsScalarWhereInput[];
};
export type integrations_departmentsCreateWithoutDepartmentsInput = {
    integrations?: Prisma.integrationsCreateNestedOneWithoutIntegrations_departmentsInput;
};
export type integrations_departmentsUncheckedCreateWithoutDepartmentsInput = {
    id?: number;
    integrations_id?: number | null;
};
export type integrations_departmentsCreateOrConnectWithoutDepartmentsInput = {
    where: Prisma.integrations_departmentsWhereUniqueInput;
    create: Prisma.XOR<Prisma.integrations_departmentsCreateWithoutDepartmentsInput, Prisma.integrations_departmentsUncheckedCreateWithoutDepartmentsInput>;
};
export type integrations_departmentsCreateManyDepartmentsInputEnvelope = {
    data: Prisma.integrations_departmentsCreateManyDepartmentsInput | Prisma.integrations_departmentsCreateManyDepartmentsInput[];
    skipDuplicates?: boolean;
};
export type integrations_departmentsUpsertWithWhereUniqueWithoutDepartmentsInput = {
    where: Prisma.integrations_departmentsWhereUniqueInput;
    update: Prisma.XOR<Prisma.integrations_departmentsUpdateWithoutDepartmentsInput, Prisma.integrations_departmentsUncheckedUpdateWithoutDepartmentsInput>;
    create: Prisma.XOR<Prisma.integrations_departmentsCreateWithoutDepartmentsInput, Prisma.integrations_departmentsUncheckedCreateWithoutDepartmentsInput>;
};
export type integrations_departmentsUpdateWithWhereUniqueWithoutDepartmentsInput = {
    where: Prisma.integrations_departmentsWhereUniqueInput;
    data: Prisma.XOR<Prisma.integrations_departmentsUpdateWithoutDepartmentsInput, Prisma.integrations_departmentsUncheckedUpdateWithoutDepartmentsInput>;
};
export type integrations_departmentsUpdateManyWithWhereWithoutDepartmentsInput = {
    where: Prisma.integrations_departmentsScalarWhereInput;
    data: Prisma.XOR<Prisma.integrations_departmentsUpdateManyMutationInput, Prisma.integrations_departmentsUncheckedUpdateManyWithoutDepartmentsInput>;
};
export type integrations_departmentsScalarWhereInput = {
    AND?: Prisma.integrations_departmentsScalarWhereInput | Prisma.integrations_departmentsScalarWhereInput[];
    OR?: Prisma.integrations_departmentsScalarWhereInput[];
    NOT?: Prisma.integrations_departmentsScalarWhereInput | Prisma.integrations_departmentsScalarWhereInput[];
    id?: Prisma.IntFilter<"integrations_departments"> | number;
    integrations_id?: Prisma.IntNullableFilter<"integrations_departments"> | number | null;
    departments_id?: Prisma.IntNullableFilter<"integrations_departments"> | number | null;
};
export type integrations_departmentsCreateWithoutIntegrationsInput = {
    departments?: Prisma.departmentsCreateNestedOneWithoutIntegrations_departmentsInput;
};
export type integrations_departmentsUncheckedCreateWithoutIntegrationsInput = {
    id?: number;
    departments_id?: number | null;
};
export type integrations_departmentsCreateOrConnectWithoutIntegrationsInput = {
    where: Prisma.integrations_departmentsWhereUniqueInput;
    create: Prisma.XOR<Prisma.integrations_departmentsCreateWithoutIntegrationsInput, Prisma.integrations_departmentsUncheckedCreateWithoutIntegrationsInput>;
};
export type integrations_departmentsCreateManyIntegrationsInputEnvelope = {
    data: Prisma.integrations_departmentsCreateManyIntegrationsInput | Prisma.integrations_departmentsCreateManyIntegrationsInput[];
    skipDuplicates?: boolean;
};
export type integrations_departmentsUpsertWithWhereUniqueWithoutIntegrationsInput = {
    where: Prisma.integrations_departmentsWhereUniqueInput;
    update: Prisma.XOR<Prisma.integrations_departmentsUpdateWithoutIntegrationsInput, Prisma.integrations_departmentsUncheckedUpdateWithoutIntegrationsInput>;
    create: Prisma.XOR<Prisma.integrations_departmentsCreateWithoutIntegrationsInput, Prisma.integrations_departmentsUncheckedCreateWithoutIntegrationsInput>;
};
export type integrations_departmentsUpdateWithWhereUniqueWithoutIntegrationsInput = {
    where: Prisma.integrations_departmentsWhereUniqueInput;
    data: Prisma.XOR<Prisma.integrations_departmentsUpdateWithoutIntegrationsInput, Prisma.integrations_departmentsUncheckedUpdateWithoutIntegrationsInput>;
};
export type integrations_departmentsUpdateManyWithWhereWithoutIntegrationsInput = {
    where: Prisma.integrations_departmentsScalarWhereInput;
    data: Prisma.XOR<Prisma.integrations_departmentsUpdateManyMutationInput, Prisma.integrations_departmentsUncheckedUpdateManyWithoutIntegrationsInput>;
};
export type integrations_departmentsCreateManyDepartmentsInput = {
    id?: number;
    integrations_id?: number | null;
};
export type integrations_departmentsUpdateWithoutDepartmentsInput = {
    integrations?: Prisma.integrationsUpdateOneWithoutIntegrations_departmentsNestedInput;
};
export type integrations_departmentsUncheckedUpdateWithoutDepartmentsInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    integrations_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type integrations_departmentsUncheckedUpdateManyWithoutDepartmentsInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    integrations_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type integrations_departmentsCreateManyIntegrationsInput = {
    id?: number;
    departments_id?: number | null;
};
export type integrations_departmentsUpdateWithoutIntegrationsInput = {
    departments?: Prisma.departmentsUpdateOneWithoutIntegrations_departmentsNestedInput;
};
export type integrations_departmentsUncheckedUpdateWithoutIntegrationsInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    departments_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type integrations_departmentsUncheckedUpdateManyWithoutIntegrationsInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    departments_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type integrations_departmentsSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    integrations_id?: boolean;
    departments_id?: boolean;
    departments?: boolean | Prisma.integrations_departments$departmentsArgs<ExtArgs>;
    integrations?: boolean | Prisma.integrations_departments$integrationsArgs<ExtArgs>;
}, ExtArgs["result"]["integrations_departments"]>;
export type integrations_departmentsSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    integrations_id?: boolean;
    departments_id?: boolean;
    departments?: boolean | Prisma.integrations_departments$departmentsArgs<ExtArgs>;
    integrations?: boolean | Prisma.integrations_departments$integrationsArgs<ExtArgs>;
}, ExtArgs["result"]["integrations_departments"]>;
export type integrations_departmentsSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    integrations_id?: boolean;
    departments_id?: boolean;
    departments?: boolean | Prisma.integrations_departments$departmentsArgs<ExtArgs>;
    integrations?: boolean | Prisma.integrations_departments$integrationsArgs<ExtArgs>;
}, ExtArgs["result"]["integrations_departments"]>;
export type integrations_departmentsSelectScalar = {
    id?: boolean;
    integrations_id?: boolean;
    departments_id?: boolean;
};
export type integrations_departmentsOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "integrations_id" | "departments_id", ExtArgs["result"]["integrations_departments"]>;
export type integrations_departmentsInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    departments?: boolean | Prisma.integrations_departments$departmentsArgs<ExtArgs>;
    integrations?: boolean | Prisma.integrations_departments$integrationsArgs<ExtArgs>;
};
export type integrations_departmentsIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    departments?: boolean | Prisma.integrations_departments$departmentsArgs<ExtArgs>;
    integrations?: boolean | Prisma.integrations_departments$integrationsArgs<ExtArgs>;
};
export type integrations_departmentsIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    departments?: boolean | Prisma.integrations_departments$departmentsArgs<ExtArgs>;
    integrations?: boolean | Prisma.integrations_departments$integrationsArgs<ExtArgs>;
};
export type $integrations_departmentsPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    name: "integrations_departments";
    objects: {
        departments: Prisma.$departmentsPayload<ExtArgs> | null;
        integrations: Prisma.$integrationsPayload<ExtArgs> | null;
    };
    scalars: runtime.Types.Extensions.GetPayloadResult<{
        id: number;
        integrations_id: number | null;
        departments_id: number | null;
    }, ExtArgs["result"]["integrations_departments"]>;
    composites: {};
};
export type integrations_departmentsGetPayload<S extends boolean | null | undefined | integrations_departmentsDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$integrations_departmentsPayload, S>;
export type integrations_departmentsCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<integrations_departmentsFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
    select?: Integrations_departmentsCountAggregateInputType | true;
};
export interface integrations_departmentsDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
    [K: symbol]: {
        types: Prisma.TypeMap<ExtArgs>['model']['integrations_departments'];
        meta: {
            name: 'integrations_departments';
        };
    };
    /**
     * Find zero or one Integrations_departments that matches the filter.
     * @param {integrations_departmentsFindUniqueArgs} args - Arguments to find a Integrations_departments
     * @example
     * // Get one Integrations_departments
     * const integrations_departments = await prisma.integrations_departments.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends integrations_departmentsFindUniqueArgs>(args: Prisma.SelectSubset<T, integrations_departmentsFindUniqueArgs<ExtArgs>>): Prisma.Prisma__integrations_departmentsClient<runtime.Types.Result.GetResult<Prisma.$integrations_departmentsPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    /**
     * Find one Integrations_departments that matches the filter or throw an error with `error.code='P2025'`
     * if no matches were found.
     * @param {integrations_departmentsFindUniqueOrThrowArgs} args - Arguments to find a Integrations_departments
     * @example
     * // Get one Integrations_departments
     * const integrations_departments = await prisma.integrations_departments.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends integrations_departmentsFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, integrations_departmentsFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__integrations_departmentsClient<runtime.Types.Result.GetResult<Prisma.$integrations_departmentsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Find the first Integrations_departments 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 {integrations_departmentsFindFirstArgs} args - Arguments to find a Integrations_departments
     * @example
     * // Get one Integrations_departments
     * const integrations_departments = await prisma.integrations_departments.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends integrations_departmentsFindFirstArgs>(args?: Prisma.SelectSubset<T, integrations_departmentsFindFirstArgs<ExtArgs>>): Prisma.Prisma__integrations_departmentsClient<runtime.Types.Result.GetResult<Prisma.$integrations_departmentsPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    /**
     * Find the first Integrations_departments 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 {integrations_departmentsFindFirstOrThrowArgs} args - Arguments to find a Integrations_departments
     * @example
     * // Get one Integrations_departments
     * const integrations_departments = await prisma.integrations_departments.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends integrations_departmentsFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, integrations_departmentsFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__integrations_departmentsClient<runtime.Types.Result.GetResult<Prisma.$integrations_departmentsPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Find zero or more Integrations_departments 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 {integrations_departmentsFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all Integrations_departments
     * const integrations_departments = await prisma.integrations_departments.findMany()
     *
     * // Get first 10 Integrations_departments
     * const integrations_departments = await prisma.integrations_departments.findMany({ take: 10 })
     *
     * // Only select the `id`
     * const integrations_departmentsWithIdOnly = await prisma.integrations_departments.findMany({ select: { id: true } })
     *
     */
    findMany<T extends integrations_departmentsFindManyArgs>(args?: Prisma.SelectSubset<T, integrations_departmentsFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$integrations_departmentsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
    /**
     * Create a Integrations_departments.
     * @param {integrations_departmentsCreateArgs} args - Arguments to create a Integrations_departments.
     * @example
     * // Create one Integrations_departments
     * const Integrations_departments = await prisma.integrations_departments.create({
     *   data: {
     *     // ... data to create a Integrations_departments
     *   }
     * })
     *
     */
    create<T extends integrations_departmentsCreateArgs>(args: Prisma.SelectSubset<T, integrations_departmentsCreateArgs<ExtArgs>>): Prisma.Prisma__integrations_departmentsClient<runtime.Types.Result.GetResult<Prisma.$integrations_departmentsPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Create many Integrations_departments.
     * @param {integrations_departmentsCreateManyArgs} args - Arguments to create many Integrations_departments.
     * @example
     * // Create many Integrations_departments
     * const integrations_departments = await prisma.integrations_departments.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     */
    createMany<T extends integrations_departmentsCreateManyArgs>(args?: Prisma.SelectSubset<T, integrations_departmentsCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Create many Integrations_departments and returns the data saved in the database.
     * @param {integrations_departmentsCreateManyAndReturnArgs} args - Arguments to create many Integrations_departments.
     * @example
     * // Create many Integrations_departments
     * const integrations_departments = await prisma.integrations_departments.createManyAndReturn({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     * // Create many Integrations_departments and only return the `id`
     * const integrations_departmentsWithIdOnly = await prisma.integrations_departments.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 integrations_departmentsCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, integrations_departmentsCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$integrations_departmentsPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
    /**
     * Delete a Integrations_departments.
     * @param {integrations_departmentsDeleteArgs} args - Arguments to delete one Integrations_departments.
     * @example
     * // Delete one Integrations_departments
     * const Integrations_departments = await prisma.integrations_departments.delete({
     *   where: {
     *     // ... filter to delete one Integrations_departments
     *   }
     * })
     *
     */
    delete<T extends integrations_departmentsDeleteArgs>(args: Prisma.SelectSubset<T, integrations_departmentsDeleteArgs<ExtArgs>>): Prisma.Prisma__integrations_departmentsClient<runtime.Types.Result.GetResult<Prisma.$integrations_departmentsPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Update one Integrations_departments.
     * @param {integrations_departmentsUpdateArgs} args - Arguments to update one Integrations_departments.
     * @example
     * // Update one Integrations_departments
     * const integrations_departments = await prisma.integrations_departments.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     *
     */
    update<T extends integrations_departmentsUpdateArgs>(args: Prisma.SelectSubset<T, integrations_departmentsUpdateArgs<ExtArgs>>): Prisma.Prisma__integrations_departmentsClient<runtime.Types.Result.GetResult<Prisma.$integrations_departmentsPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Delete zero or more Integrations_departments.
     * @param {integrations_departmentsDeleteManyArgs} args - Arguments to filter Integrations_departments to delete.
     * @example
     * // Delete a few Integrations_departments
     * const { count } = await prisma.integrations_departments.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     *
     */
    deleteMany<T extends integrations_departmentsDeleteManyArgs>(args?: Prisma.SelectSubset<T, integrations_departmentsDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Update zero or more Integrations_departments.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {integrations_departmentsUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many Integrations_departments
     * const integrations_departments = await prisma.integrations_departments.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     *
     */
    updateMany<T extends integrations_departmentsUpdateManyArgs>(args: Prisma.SelectSubset<T, integrations_departmentsUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Update zero or more Integrations_departments and returns the data updated in the database.
     * @param {integrations_departmentsUpdateManyAndReturnArgs} args - Arguments to update many Integrations_departments.
     * @example
     * // Update many Integrations_departments
     * const integrations_departments = await prisma.integrations_departments.updateManyAndReturn({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     * // Update zero or more Integrations_departments and only return the `id`
     * const integrations_departmentsWithIdOnly = await prisma.integrations_departments.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 integrations_departmentsUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, integrations_departmentsUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$integrations_departmentsPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
    /**
     * Create or update one Integrations_departments.
     * @param {integrations_departmentsUpsertArgs} args - Arguments to update or create a Integrations_departments.
     * @example
     * // Update or create a Integrations_departments
     * const integrations_departments = await prisma.integrations_departments.upsert({
     *   create: {
     *     // ... data to create a Integrations_departments
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the Integrations_departments we want to update
     *   }
     * })
     */
    upsert<T extends integrations_departmentsUpsertArgs>(args: Prisma.SelectSubset<T, integrations_departmentsUpsertArgs<ExtArgs>>): Prisma.Prisma__integrations_departmentsClient<runtime.Types.Result.GetResult<Prisma.$integrations_departmentsPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Count the number of Integrations_departments.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {integrations_departmentsCountArgs} args - Arguments to filter Integrations_departments to count.
     * @example
     * // Count the number of Integrations_departments
     * const count = await prisma.integrations_departments.count({
     *   where: {
     *     // ... the filter for the Integrations_departments we want to count
     *   }
     * })
    **/
    count<T extends integrations_departmentsCountArgs>(args?: Prisma.Subset<T, integrations_departmentsCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], Integrations_departmentsCountAggregateOutputType> : number>;
    /**
     * Allows you to perform aggregations operations on a Integrations_departments.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {Integrations_departmentsAggregateArgs} 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 Integrations_departmentsAggregateArgs>(args: Prisma.Subset<T, Integrations_departmentsAggregateArgs>): Prisma.PrismaPromise<GetIntegrations_departmentsAggregateType<T>>;
    /**
     * Group by Integrations_departments.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {integrations_departmentsGroupByArgs} 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 integrations_departmentsGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
        orderBy: integrations_departmentsGroupByArgs['orderBy'];
    } : {
        orderBy?: integrations_departmentsGroupByArgs['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, integrations_departmentsGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetIntegrations_departmentsGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
    /**
     * Fields of the integrations_departments model
     */
    readonly fields: integrations_departmentsFieldRefs;
}
/**
 * The delegate class that acts as a "Promise-like" for integrations_departments.
 * 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__integrations_departmentsClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
    readonly [Symbol.toStringTag]: "PrismaPromise";
    departments<T extends Prisma.integrations_departments$departmentsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.integrations_departments$departmentsArgs<ExtArgs>>): Prisma.Prisma__departmentsClient<runtime.Types.Result.GetResult<Prisma.$departmentsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    integrations<T extends Prisma.integrations_departments$integrationsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.integrations_departments$integrationsArgs<ExtArgs>>): Prisma.Prisma__integrationsClient<runtime.Types.Result.GetResult<Prisma.$integrationsPayload<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 integrations_departments model
 */
export interface integrations_departmentsFieldRefs {
    readonly id: Prisma.FieldRef<"integrations_departments", 'Int'>;
    readonly integrations_id: Prisma.FieldRef<"integrations_departments", 'Int'>;
    readonly departments_id: Prisma.FieldRef<"integrations_departments", 'Int'>;
}
/**
 * integrations_departments findUnique
 */
export type integrations_departmentsFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the integrations_departments
     */
    select?: Prisma.integrations_departmentsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the integrations_departments
     */
    omit?: Prisma.integrations_departmentsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.integrations_departmentsInclude<ExtArgs> | null;
    /**
     * Filter, which integrations_departments to fetch.
     */
    where: Prisma.integrations_departmentsWhereUniqueInput;
};
/**
 * integrations_departments findUniqueOrThrow
 */
export type integrations_departmentsFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the integrations_departments
     */
    select?: Prisma.integrations_departmentsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the integrations_departments
     */
    omit?: Prisma.integrations_departmentsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.integrations_departmentsInclude<ExtArgs> | null;
    /**
     * Filter, which integrations_departments to fetch.
     */
    where: Prisma.integrations_departmentsWhereUniqueInput;
};
/**
 * integrations_departments findFirst
 */
export type integrations_departmentsFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the integrations_departments
     */
    select?: Prisma.integrations_departmentsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the integrations_departments
     */
    omit?: Prisma.integrations_departmentsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.integrations_departmentsInclude<ExtArgs> | null;
    /**
     * Filter, which integrations_departments to fetch.
     */
    where?: Prisma.integrations_departmentsWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of integrations_departments to fetch.
     */
    orderBy?: Prisma.integrations_departmentsOrderByWithRelationInput | Prisma.integrations_departmentsOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for searching for integrations_departments.
     */
    cursor?: Prisma.integrations_departmentsWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` integrations_departments 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` integrations_departments.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     *
     * Filter by unique combinations of integrations_departments.
     */
    distinct?: Prisma.Integrations_departmentsScalarFieldEnum | Prisma.Integrations_departmentsScalarFieldEnum[];
};
/**
 * integrations_departments findFirstOrThrow
 */
export type integrations_departmentsFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the integrations_departments
     */
    select?: Prisma.integrations_departmentsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the integrations_departments
     */
    omit?: Prisma.integrations_departmentsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.integrations_departmentsInclude<ExtArgs> | null;
    /**
     * Filter, which integrations_departments to fetch.
     */
    where?: Prisma.integrations_departmentsWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of integrations_departments to fetch.
     */
    orderBy?: Prisma.integrations_departmentsOrderByWithRelationInput | Prisma.integrations_departmentsOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for searching for integrations_departments.
     */
    cursor?: Prisma.integrations_departmentsWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` integrations_departments 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` integrations_departments.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     *
     * Filter by unique combinations of integrations_departments.
     */
    distinct?: Prisma.Integrations_departmentsScalarFieldEnum | Prisma.Integrations_departmentsScalarFieldEnum[];
};
/**
 * integrations_departments findMany
 */
export type integrations_departmentsFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the integrations_departments
     */
    select?: Prisma.integrations_departmentsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the integrations_departments
     */
    omit?: Prisma.integrations_departmentsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.integrations_departmentsInclude<ExtArgs> | null;
    /**
     * Filter, which integrations_departments to fetch.
     */
    where?: Prisma.integrations_departmentsWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of integrations_departments to fetch.
     */
    orderBy?: Prisma.integrations_departmentsOrderByWithRelationInput | Prisma.integrations_departmentsOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for listing integrations_departments.
     */
    cursor?: Prisma.integrations_departmentsWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` integrations_departments 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` integrations_departments.
     */
    skip?: number;
    distinct?: Prisma.Integrations_departmentsScalarFieldEnum | Prisma.Integrations_departmentsScalarFieldEnum[];
};
/**
 * integrations_departments create
 */
export type integrations_departmentsCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the integrations_departments
     */
    select?: Prisma.integrations_departmentsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the integrations_departments
     */
    omit?: Prisma.integrations_departmentsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.integrations_departmentsInclude<ExtArgs> | null;
    /**
     * The data needed to create a integrations_departments.
     */
    data?: Prisma.XOR<Prisma.integrations_departmentsCreateInput, Prisma.integrations_departmentsUncheckedCreateInput>;
};
/**
 * integrations_departments createMany
 */
export type integrations_departmentsCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * The data used to create many integrations_departments.
     */
    data: Prisma.integrations_departmentsCreateManyInput | Prisma.integrations_departmentsCreateManyInput[];
    skipDuplicates?: boolean;
};
/**
 * integrations_departments createManyAndReturn
 */
export type integrations_departmentsCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the integrations_departments
     */
    select?: Prisma.integrations_departmentsSelectCreateManyAndReturn<ExtArgs> | null;
    /**
     * Omit specific fields from the integrations_departments
     */
    omit?: Prisma.integrations_departmentsOmit<ExtArgs> | null;
    /**
     * The data used to create many integrations_departments.
     */
    data: Prisma.integrations_departmentsCreateManyInput | Prisma.integrations_departmentsCreateManyInput[];
    skipDuplicates?: boolean;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.integrations_departmentsIncludeCreateManyAndReturn<ExtArgs> | null;
};
/**
 * integrations_departments update
 */
export type integrations_departmentsUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the integrations_departments
     */
    select?: Prisma.integrations_departmentsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the integrations_departments
     */
    omit?: Prisma.integrations_departmentsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.integrations_departmentsInclude<ExtArgs> | null;
    /**
     * The data needed to update a integrations_departments.
     */
    data: Prisma.XOR<Prisma.integrations_departmentsUpdateInput, Prisma.integrations_departmentsUncheckedUpdateInput>;
    /**
     * Choose, which integrations_departments to update.
     */
    where: Prisma.integrations_departmentsWhereUniqueInput;
};
/**
 * integrations_departments updateMany
 */
export type integrations_departmentsUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * The data used to update integrations_departments.
     */
    data: Prisma.XOR<Prisma.integrations_departmentsUpdateManyMutationInput, Prisma.integrations_departmentsUncheckedUpdateManyInput>;
    /**
     * Filter which integrations_departments to update
     */
    where?: Prisma.integrations_departmentsWhereInput;
    /**
     * Limit how many integrations_departments to update.
     */
    limit?: number;
};
/**
 * integrations_departments updateManyAndReturn
 */
export type integrations_departmentsUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the integrations_departments
     */
    select?: Prisma.integrations_departmentsSelectUpdateManyAndReturn<ExtArgs> | null;
    /**
     * Omit specific fields from the integrations_departments
     */
    omit?: Prisma.integrations_departmentsOmit<ExtArgs> | null;
    /**
     * The data used to update integrations_departments.
     */
    data: Prisma.XOR<Prisma.integrations_departmentsUpdateManyMutationInput, Prisma.integrations_departmentsUncheckedUpdateManyInput>;
    /**
     * Filter which integrations_departments to update
     */
    where?: Prisma.integrations_departmentsWhereInput;
    /**
     * Limit how many integrations_departments to update.
     */
    limit?: number;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.integrations_departmentsIncludeUpdateManyAndReturn<ExtArgs> | null;
};
/**
 * integrations_departments upsert
 */
export type integrations_departmentsUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the integrations_departments
     */
    select?: Prisma.integrations_departmentsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the integrations_departments
     */
    omit?: Prisma.integrations_departmentsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.integrations_departmentsInclude<ExtArgs> | null;
    /**
     * The filter to search for the integrations_departments to update in case it exists.
     */
    where: Prisma.integrations_departmentsWhereUniqueInput;
    /**
     * In case the integrations_departments found by the `where` argument doesn't exist, create a new integrations_departments with this data.
     */
    create: Prisma.XOR<Prisma.integrations_departmentsCreateInput, Prisma.integrations_departmentsUncheckedCreateInput>;
    /**
     * In case the integrations_departments was found with the provided `where` argument, update it with this data.
     */
    update: Prisma.XOR<Prisma.integrations_departmentsUpdateInput, Prisma.integrations_departmentsUncheckedUpdateInput>;
};
/**
 * integrations_departments delete
 */
export type integrations_departmentsDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the integrations_departments
     */
    select?: Prisma.integrations_departmentsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the integrations_departments
     */
    omit?: Prisma.integrations_departmentsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.integrations_departmentsInclude<ExtArgs> | null;
    /**
     * Filter which integrations_departments to delete.
     */
    where: Prisma.integrations_departmentsWhereUniqueInput;
};
/**
 * integrations_departments deleteMany
 */
export type integrations_departmentsDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Filter which integrations_departments to delete
     */
    where?: Prisma.integrations_departmentsWhereInput;
    /**
     * Limit how many integrations_departments to delete.
     */
    limit?: number;
};
/**
 * integrations_departments.departments
 */
export type integrations_departments$departmentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the departments
     */
    select?: Prisma.departmentsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the departments
     */
    omit?: Prisma.departmentsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.departmentsInclude<ExtArgs> | null;
    where?: Prisma.departmentsWhereInput;
};
/**
 * integrations_departments.integrations
 */
export type integrations_departments$integrationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the integrations
     */
    select?: Prisma.integrationsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the integrations
     */
    omit?: Prisma.integrationsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.integrationsInclude<ExtArgs> | null;
    where?: Prisma.integrationsWhereInput;
};
/**
 * integrations_departments without action
 */
export type integrations_departmentsDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the integrations_departments
     */
    select?: Prisma.integrations_departmentsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the integrations_departments
     */
    omit?: Prisma.integrations_departmentsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.integrations_departmentsInclude<ExtArgs> | null;
};
export {};
