import type * as runtime from "@prisma/client/runtime/client";
import type * as Prisma from "../internal/prismaNamespace";
/**
 * Model lists_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 lists_departmentsModel = runtime.Types.Result.DefaultSelection<Prisma.$lists_departmentsPayload>;
export type AggregateLists_departments = {
    _count: Lists_departmentsCountAggregateOutputType | null;
    _avg: Lists_departmentsAvgAggregateOutputType | null;
    _sum: Lists_departmentsSumAggregateOutputType | null;
    _min: Lists_departmentsMinAggregateOutputType | null;
    _max: Lists_departmentsMaxAggregateOutputType | null;
};
export type Lists_departmentsAvgAggregateOutputType = {
    id: number | null;
    lists_id: number | null;
    departments_id: number | null;
};
export type Lists_departmentsSumAggregateOutputType = {
    id: number | null;
    lists_id: number | null;
    departments_id: number | null;
};
export type Lists_departmentsMinAggregateOutputType = {
    id: number | null;
    lists_id: number | null;
    departments_id: number | null;
};
export type Lists_departmentsMaxAggregateOutputType = {
    id: number | null;
    lists_id: number | null;
    departments_id: number | null;
};
export type Lists_departmentsCountAggregateOutputType = {
    id: number;
    lists_id: number;
    departments_id: number;
    _all: number;
};
export type Lists_departmentsAvgAggregateInputType = {
    id?: true;
    lists_id?: true;
    departments_id?: true;
};
export type Lists_departmentsSumAggregateInputType = {
    id?: true;
    lists_id?: true;
    departments_id?: true;
};
export type Lists_departmentsMinAggregateInputType = {
    id?: true;
    lists_id?: true;
    departments_id?: true;
};
export type Lists_departmentsMaxAggregateInputType = {
    id?: true;
    lists_id?: true;
    departments_id?: true;
};
export type Lists_departmentsCountAggregateInputType = {
    id?: true;
    lists_id?: true;
    departments_id?: true;
    _all?: true;
};
export type Lists_departmentsAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Filter which lists_departments to aggregate.
     */
    where?: Prisma.lists_departmentsWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of lists_departments to fetch.
     */
    orderBy?: Prisma.lists_departmentsOrderByWithRelationInput | Prisma.lists_departmentsOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the start position
     */
    cursor?: Prisma.lists_departmentsWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` lists_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` lists_departments.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Count returned lists_departments
    **/
    _count?: true | Lists_departmentsCountAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to average
    **/
    _avg?: Lists_departmentsAvgAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to sum
    **/
    _sum?: Lists_departmentsSumAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to find the minimum value
    **/
    _min?: Lists_departmentsMinAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to find the maximum value
    **/
    _max?: Lists_departmentsMaxAggregateInputType;
};
export type GetLists_departmentsAggregateType<T extends Lists_departmentsAggregateArgs> = {
    [P in keyof T & keyof AggregateLists_departments]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateLists_departments[P]> : Prisma.GetScalarType<T[P], AggregateLists_departments[P]>;
};
export type lists_departmentsGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    where?: Prisma.lists_departmentsWhereInput;
    orderBy?: Prisma.lists_departmentsOrderByWithAggregationInput | Prisma.lists_departmentsOrderByWithAggregationInput[];
    by: Prisma.Lists_departmentsScalarFieldEnum[] | Prisma.Lists_departmentsScalarFieldEnum;
    having?: Prisma.lists_departmentsScalarWhereWithAggregatesInput;
    take?: number;
    skip?: number;
    _count?: Lists_departmentsCountAggregateInputType | true;
    _avg?: Lists_departmentsAvgAggregateInputType;
    _sum?: Lists_departmentsSumAggregateInputType;
    _min?: Lists_departmentsMinAggregateInputType;
    _max?: Lists_departmentsMaxAggregateInputType;
};
export type Lists_departmentsGroupByOutputType = {
    id: number;
    lists_id: number | null;
    departments_id: number | null;
    _count: Lists_departmentsCountAggregateOutputType | null;
    _avg: Lists_departmentsAvgAggregateOutputType | null;
    _sum: Lists_departmentsSumAggregateOutputType | null;
    _min: Lists_departmentsMinAggregateOutputType | null;
    _max: Lists_departmentsMaxAggregateOutputType | null;
};
type GetLists_departmentsGroupByPayload<T extends lists_departmentsGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<Lists_departmentsGroupByOutputType, T['by']> & {
    [P in ((keyof T) & (keyof Lists_departmentsGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], Lists_departmentsGroupByOutputType[P]> : Prisma.GetScalarType<T[P], Lists_departmentsGroupByOutputType[P]>;
}>>;
export type lists_departmentsWhereInput = {
    AND?: Prisma.lists_departmentsWhereInput | Prisma.lists_departmentsWhereInput[];
    OR?: Prisma.lists_departmentsWhereInput[];
    NOT?: Prisma.lists_departmentsWhereInput | Prisma.lists_departmentsWhereInput[];
    id?: Prisma.IntFilter<"lists_departments"> | number;
    lists_id?: Prisma.IntNullableFilter<"lists_departments"> | number | null;
    departments_id?: Prisma.IntNullableFilter<"lists_departments"> | number | null;
    departments?: Prisma.XOR<Prisma.DepartmentsNullableScalarRelationFilter, Prisma.departmentsWhereInput> | null;
    lists?: Prisma.XOR<Prisma.ListsNullableScalarRelationFilter, Prisma.listsWhereInput> | null;
};
export type lists_departmentsOrderByWithRelationInput = {
    id?: Prisma.SortOrder;
    lists_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    departments_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    departments?: Prisma.departmentsOrderByWithRelationInput;
    lists?: Prisma.listsOrderByWithRelationInput;
};
export type lists_departmentsWhereUniqueInput = Prisma.AtLeast<{
    id?: number;
    AND?: Prisma.lists_departmentsWhereInput | Prisma.lists_departmentsWhereInput[];
    OR?: Prisma.lists_departmentsWhereInput[];
    NOT?: Prisma.lists_departmentsWhereInput | Prisma.lists_departmentsWhereInput[];
    lists_id?: Prisma.IntNullableFilter<"lists_departments"> | number | null;
    departments_id?: Prisma.IntNullableFilter<"lists_departments"> | number | null;
    departments?: Prisma.XOR<Prisma.DepartmentsNullableScalarRelationFilter, Prisma.departmentsWhereInput> | null;
    lists?: Prisma.XOR<Prisma.ListsNullableScalarRelationFilter, Prisma.listsWhereInput> | null;
}, "id">;
export type lists_departmentsOrderByWithAggregationInput = {
    id?: Prisma.SortOrder;
    lists_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    departments_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    _count?: Prisma.lists_departmentsCountOrderByAggregateInput;
    _avg?: Prisma.lists_departmentsAvgOrderByAggregateInput;
    _max?: Prisma.lists_departmentsMaxOrderByAggregateInput;
    _min?: Prisma.lists_departmentsMinOrderByAggregateInput;
    _sum?: Prisma.lists_departmentsSumOrderByAggregateInput;
};
export type lists_departmentsScalarWhereWithAggregatesInput = {
    AND?: Prisma.lists_departmentsScalarWhereWithAggregatesInput | Prisma.lists_departmentsScalarWhereWithAggregatesInput[];
    OR?: Prisma.lists_departmentsScalarWhereWithAggregatesInput[];
    NOT?: Prisma.lists_departmentsScalarWhereWithAggregatesInput | Prisma.lists_departmentsScalarWhereWithAggregatesInput[];
    id?: Prisma.IntWithAggregatesFilter<"lists_departments"> | number;
    lists_id?: Prisma.IntNullableWithAggregatesFilter<"lists_departments"> | number | null;
    departments_id?: Prisma.IntNullableWithAggregatesFilter<"lists_departments"> | number | null;
};
export type lists_departmentsCreateInput = {
    departments?: Prisma.departmentsCreateNestedOneWithoutLists_departmentsInput;
    lists?: Prisma.listsCreateNestedOneWithoutLists_departmentsInput;
};
export type lists_departmentsUncheckedCreateInput = {
    id?: number;
    lists_id?: number | null;
    departments_id?: number | null;
};
export type lists_departmentsUpdateInput = {
    departments?: Prisma.departmentsUpdateOneWithoutLists_departmentsNestedInput;
    lists?: Prisma.listsUpdateOneWithoutLists_departmentsNestedInput;
};
export type lists_departmentsUncheckedUpdateInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    lists_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
    departments_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type lists_departmentsCreateManyInput = {
    id?: number;
    lists_id?: number | null;
    departments_id?: number | null;
};
export type lists_departmentsUpdateManyMutationInput = {};
export type lists_departmentsUncheckedUpdateManyInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    lists_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
    departments_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type Lists_departmentsListRelationFilter = {
    every?: Prisma.lists_departmentsWhereInput;
    some?: Prisma.lists_departmentsWhereInput;
    none?: Prisma.lists_departmentsWhereInput;
};
export type lists_departmentsOrderByRelationAggregateInput = {
    _count?: Prisma.SortOrder;
};
export type lists_departmentsCountOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    lists_id?: Prisma.SortOrder;
    departments_id?: Prisma.SortOrder;
};
export type lists_departmentsAvgOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    lists_id?: Prisma.SortOrder;
    departments_id?: Prisma.SortOrder;
};
export type lists_departmentsMaxOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    lists_id?: Prisma.SortOrder;
    departments_id?: Prisma.SortOrder;
};
export type lists_departmentsMinOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    lists_id?: Prisma.SortOrder;
    departments_id?: Prisma.SortOrder;
};
export type lists_departmentsSumOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    lists_id?: Prisma.SortOrder;
    departments_id?: Prisma.SortOrder;
};
export type lists_departmentsCreateNestedManyWithoutDepartmentsInput = {
    create?: Prisma.XOR<Prisma.lists_departmentsCreateWithoutDepartmentsInput, Prisma.lists_departmentsUncheckedCreateWithoutDepartmentsInput> | Prisma.lists_departmentsCreateWithoutDepartmentsInput[] | Prisma.lists_departmentsUncheckedCreateWithoutDepartmentsInput[];
    connectOrCreate?: Prisma.lists_departmentsCreateOrConnectWithoutDepartmentsInput | Prisma.lists_departmentsCreateOrConnectWithoutDepartmentsInput[];
    createMany?: Prisma.lists_departmentsCreateManyDepartmentsInputEnvelope;
    connect?: Prisma.lists_departmentsWhereUniqueInput | Prisma.lists_departmentsWhereUniqueInput[];
};
export type lists_departmentsUncheckedCreateNestedManyWithoutDepartmentsInput = {
    create?: Prisma.XOR<Prisma.lists_departmentsCreateWithoutDepartmentsInput, Prisma.lists_departmentsUncheckedCreateWithoutDepartmentsInput> | Prisma.lists_departmentsCreateWithoutDepartmentsInput[] | Prisma.lists_departmentsUncheckedCreateWithoutDepartmentsInput[];
    connectOrCreate?: Prisma.lists_departmentsCreateOrConnectWithoutDepartmentsInput | Prisma.lists_departmentsCreateOrConnectWithoutDepartmentsInput[];
    createMany?: Prisma.lists_departmentsCreateManyDepartmentsInputEnvelope;
    connect?: Prisma.lists_departmentsWhereUniqueInput | Prisma.lists_departmentsWhereUniqueInput[];
};
export type lists_departmentsUpdateManyWithoutDepartmentsNestedInput = {
    create?: Prisma.XOR<Prisma.lists_departmentsCreateWithoutDepartmentsInput, Prisma.lists_departmentsUncheckedCreateWithoutDepartmentsInput> | Prisma.lists_departmentsCreateWithoutDepartmentsInput[] | Prisma.lists_departmentsUncheckedCreateWithoutDepartmentsInput[];
    connectOrCreate?: Prisma.lists_departmentsCreateOrConnectWithoutDepartmentsInput | Prisma.lists_departmentsCreateOrConnectWithoutDepartmentsInput[];
    upsert?: Prisma.lists_departmentsUpsertWithWhereUniqueWithoutDepartmentsInput | Prisma.lists_departmentsUpsertWithWhereUniqueWithoutDepartmentsInput[];
    createMany?: Prisma.lists_departmentsCreateManyDepartmentsInputEnvelope;
    set?: Prisma.lists_departmentsWhereUniqueInput | Prisma.lists_departmentsWhereUniqueInput[];
    disconnect?: Prisma.lists_departmentsWhereUniqueInput | Prisma.lists_departmentsWhereUniqueInput[];
    delete?: Prisma.lists_departmentsWhereUniqueInput | Prisma.lists_departmentsWhereUniqueInput[];
    connect?: Prisma.lists_departmentsWhereUniqueInput | Prisma.lists_departmentsWhereUniqueInput[];
    update?: Prisma.lists_departmentsUpdateWithWhereUniqueWithoutDepartmentsInput | Prisma.lists_departmentsUpdateWithWhereUniqueWithoutDepartmentsInput[];
    updateMany?: Prisma.lists_departmentsUpdateManyWithWhereWithoutDepartmentsInput | Prisma.lists_departmentsUpdateManyWithWhereWithoutDepartmentsInput[];
    deleteMany?: Prisma.lists_departmentsScalarWhereInput | Prisma.lists_departmentsScalarWhereInput[];
};
export type lists_departmentsUncheckedUpdateManyWithoutDepartmentsNestedInput = {
    create?: Prisma.XOR<Prisma.lists_departmentsCreateWithoutDepartmentsInput, Prisma.lists_departmentsUncheckedCreateWithoutDepartmentsInput> | Prisma.lists_departmentsCreateWithoutDepartmentsInput[] | Prisma.lists_departmentsUncheckedCreateWithoutDepartmentsInput[];
    connectOrCreate?: Prisma.lists_departmentsCreateOrConnectWithoutDepartmentsInput | Prisma.lists_departmentsCreateOrConnectWithoutDepartmentsInput[];
    upsert?: Prisma.lists_departmentsUpsertWithWhereUniqueWithoutDepartmentsInput | Prisma.lists_departmentsUpsertWithWhereUniqueWithoutDepartmentsInput[];
    createMany?: Prisma.lists_departmentsCreateManyDepartmentsInputEnvelope;
    set?: Prisma.lists_departmentsWhereUniqueInput | Prisma.lists_departmentsWhereUniqueInput[];
    disconnect?: Prisma.lists_departmentsWhereUniqueInput | Prisma.lists_departmentsWhereUniqueInput[];
    delete?: Prisma.lists_departmentsWhereUniqueInput | Prisma.lists_departmentsWhereUniqueInput[];
    connect?: Prisma.lists_departmentsWhereUniqueInput | Prisma.lists_departmentsWhereUniqueInput[];
    update?: Prisma.lists_departmentsUpdateWithWhereUniqueWithoutDepartmentsInput | Prisma.lists_departmentsUpdateWithWhereUniqueWithoutDepartmentsInput[];
    updateMany?: Prisma.lists_departmentsUpdateManyWithWhereWithoutDepartmentsInput | Prisma.lists_departmentsUpdateManyWithWhereWithoutDepartmentsInput[];
    deleteMany?: Prisma.lists_departmentsScalarWhereInput | Prisma.lists_departmentsScalarWhereInput[];
};
export type lists_departmentsCreateNestedManyWithoutListsInput = {
    create?: Prisma.XOR<Prisma.lists_departmentsCreateWithoutListsInput, Prisma.lists_departmentsUncheckedCreateWithoutListsInput> | Prisma.lists_departmentsCreateWithoutListsInput[] | Prisma.lists_departmentsUncheckedCreateWithoutListsInput[];
    connectOrCreate?: Prisma.lists_departmentsCreateOrConnectWithoutListsInput | Prisma.lists_departmentsCreateOrConnectWithoutListsInput[];
    createMany?: Prisma.lists_departmentsCreateManyListsInputEnvelope;
    connect?: Prisma.lists_departmentsWhereUniqueInput | Prisma.lists_departmentsWhereUniqueInput[];
};
export type lists_departmentsUncheckedCreateNestedManyWithoutListsInput = {
    create?: Prisma.XOR<Prisma.lists_departmentsCreateWithoutListsInput, Prisma.lists_departmentsUncheckedCreateWithoutListsInput> | Prisma.lists_departmentsCreateWithoutListsInput[] | Prisma.lists_departmentsUncheckedCreateWithoutListsInput[];
    connectOrCreate?: Prisma.lists_departmentsCreateOrConnectWithoutListsInput | Prisma.lists_departmentsCreateOrConnectWithoutListsInput[];
    createMany?: Prisma.lists_departmentsCreateManyListsInputEnvelope;
    connect?: Prisma.lists_departmentsWhereUniqueInput | Prisma.lists_departmentsWhereUniqueInput[];
};
export type lists_departmentsUpdateManyWithoutListsNestedInput = {
    create?: Prisma.XOR<Prisma.lists_departmentsCreateWithoutListsInput, Prisma.lists_departmentsUncheckedCreateWithoutListsInput> | Prisma.lists_departmentsCreateWithoutListsInput[] | Prisma.lists_departmentsUncheckedCreateWithoutListsInput[];
    connectOrCreate?: Prisma.lists_departmentsCreateOrConnectWithoutListsInput | Prisma.lists_departmentsCreateOrConnectWithoutListsInput[];
    upsert?: Prisma.lists_departmentsUpsertWithWhereUniqueWithoutListsInput | Prisma.lists_departmentsUpsertWithWhereUniqueWithoutListsInput[];
    createMany?: Prisma.lists_departmentsCreateManyListsInputEnvelope;
    set?: Prisma.lists_departmentsWhereUniqueInput | Prisma.lists_departmentsWhereUniqueInput[];
    disconnect?: Prisma.lists_departmentsWhereUniqueInput | Prisma.lists_departmentsWhereUniqueInput[];
    delete?: Prisma.lists_departmentsWhereUniqueInput | Prisma.lists_departmentsWhereUniqueInput[];
    connect?: Prisma.lists_departmentsWhereUniqueInput | Prisma.lists_departmentsWhereUniqueInput[];
    update?: Prisma.lists_departmentsUpdateWithWhereUniqueWithoutListsInput | Prisma.lists_departmentsUpdateWithWhereUniqueWithoutListsInput[];
    updateMany?: Prisma.lists_departmentsUpdateManyWithWhereWithoutListsInput | Prisma.lists_departmentsUpdateManyWithWhereWithoutListsInput[];
    deleteMany?: Prisma.lists_departmentsScalarWhereInput | Prisma.lists_departmentsScalarWhereInput[];
};
export type lists_departmentsUncheckedUpdateManyWithoutListsNestedInput = {
    create?: Prisma.XOR<Prisma.lists_departmentsCreateWithoutListsInput, Prisma.lists_departmentsUncheckedCreateWithoutListsInput> | Prisma.lists_departmentsCreateWithoutListsInput[] | Prisma.lists_departmentsUncheckedCreateWithoutListsInput[];
    connectOrCreate?: Prisma.lists_departmentsCreateOrConnectWithoutListsInput | Prisma.lists_departmentsCreateOrConnectWithoutListsInput[];
    upsert?: Prisma.lists_departmentsUpsertWithWhereUniqueWithoutListsInput | Prisma.lists_departmentsUpsertWithWhereUniqueWithoutListsInput[];
    createMany?: Prisma.lists_departmentsCreateManyListsInputEnvelope;
    set?: Prisma.lists_departmentsWhereUniqueInput | Prisma.lists_departmentsWhereUniqueInput[];
    disconnect?: Prisma.lists_departmentsWhereUniqueInput | Prisma.lists_departmentsWhereUniqueInput[];
    delete?: Prisma.lists_departmentsWhereUniqueInput | Prisma.lists_departmentsWhereUniqueInput[];
    connect?: Prisma.lists_departmentsWhereUniqueInput | Prisma.lists_departmentsWhereUniqueInput[];
    update?: Prisma.lists_departmentsUpdateWithWhereUniqueWithoutListsInput | Prisma.lists_departmentsUpdateWithWhereUniqueWithoutListsInput[];
    updateMany?: Prisma.lists_departmentsUpdateManyWithWhereWithoutListsInput | Prisma.lists_departmentsUpdateManyWithWhereWithoutListsInput[];
    deleteMany?: Prisma.lists_departmentsScalarWhereInput | Prisma.lists_departmentsScalarWhereInput[];
};
export type lists_departmentsCreateWithoutDepartmentsInput = {
    lists?: Prisma.listsCreateNestedOneWithoutLists_departmentsInput;
};
export type lists_departmentsUncheckedCreateWithoutDepartmentsInput = {
    id?: number;
    lists_id?: number | null;
};
export type lists_departmentsCreateOrConnectWithoutDepartmentsInput = {
    where: Prisma.lists_departmentsWhereUniqueInput;
    create: Prisma.XOR<Prisma.lists_departmentsCreateWithoutDepartmentsInput, Prisma.lists_departmentsUncheckedCreateWithoutDepartmentsInput>;
};
export type lists_departmentsCreateManyDepartmentsInputEnvelope = {
    data: Prisma.lists_departmentsCreateManyDepartmentsInput | Prisma.lists_departmentsCreateManyDepartmentsInput[];
    skipDuplicates?: boolean;
};
export type lists_departmentsUpsertWithWhereUniqueWithoutDepartmentsInput = {
    where: Prisma.lists_departmentsWhereUniqueInput;
    update: Prisma.XOR<Prisma.lists_departmentsUpdateWithoutDepartmentsInput, Prisma.lists_departmentsUncheckedUpdateWithoutDepartmentsInput>;
    create: Prisma.XOR<Prisma.lists_departmentsCreateWithoutDepartmentsInput, Prisma.lists_departmentsUncheckedCreateWithoutDepartmentsInput>;
};
export type lists_departmentsUpdateWithWhereUniqueWithoutDepartmentsInput = {
    where: Prisma.lists_departmentsWhereUniqueInput;
    data: Prisma.XOR<Prisma.lists_departmentsUpdateWithoutDepartmentsInput, Prisma.lists_departmentsUncheckedUpdateWithoutDepartmentsInput>;
};
export type lists_departmentsUpdateManyWithWhereWithoutDepartmentsInput = {
    where: Prisma.lists_departmentsScalarWhereInput;
    data: Prisma.XOR<Prisma.lists_departmentsUpdateManyMutationInput, Prisma.lists_departmentsUncheckedUpdateManyWithoutDepartmentsInput>;
};
export type lists_departmentsScalarWhereInput = {
    AND?: Prisma.lists_departmentsScalarWhereInput | Prisma.lists_departmentsScalarWhereInput[];
    OR?: Prisma.lists_departmentsScalarWhereInput[];
    NOT?: Prisma.lists_departmentsScalarWhereInput | Prisma.lists_departmentsScalarWhereInput[];
    id?: Prisma.IntFilter<"lists_departments"> | number;
    lists_id?: Prisma.IntNullableFilter<"lists_departments"> | number | null;
    departments_id?: Prisma.IntNullableFilter<"lists_departments"> | number | null;
};
export type lists_departmentsCreateWithoutListsInput = {
    departments?: Prisma.departmentsCreateNestedOneWithoutLists_departmentsInput;
};
export type lists_departmentsUncheckedCreateWithoutListsInput = {
    id?: number;
    departments_id?: number | null;
};
export type lists_departmentsCreateOrConnectWithoutListsInput = {
    where: Prisma.lists_departmentsWhereUniqueInput;
    create: Prisma.XOR<Prisma.lists_departmentsCreateWithoutListsInput, Prisma.lists_departmentsUncheckedCreateWithoutListsInput>;
};
export type lists_departmentsCreateManyListsInputEnvelope = {
    data: Prisma.lists_departmentsCreateManyListsInput | Prisma.lists_departmentsCreateManyListsInput[];
    skipDuplicates?: boolean;
};
export type lists_departmentsUpsertWithWhereUniqueWithoutListsInput = {
    where: Prisma.lists_departmentsWhereUniqueInput;
    update: Prisma.XOR<Prisma.lists_departmentsUpdateWithoutListsInput, Prisma.lists_departmentsUncheckedUpdateWithoutListsInput>;
    create: Prisma.XOR<Prisma.lists_departmentsCreateWithoutListsInput, Prisma.lists_departmentsUncheckedCreateWithoutListsInput>;
};
export type lists_departmentsUpdateWithWhereUniqueWithoutListsInput = {
    where: Prisma.lists_departmentsWhereUniqueInput;
    data: Prisma.XOR<Prisma.lists_departmentsUpdateWithoutListsInput, Prisma.lists_departmentsUncheckedUpdateWithoutListsInput>;
};
export type lists_departmentsUpdateManyWithWhereWithoutListsInput = {
    where: Prisma.lists_departmentsScalarWhereInput;
    data: Prisma.XOR<Prisma.lists_departmentsUpdateManyMutationInput, Prisma.lists_departmentsUncheckedUpdateManyWithoutListsInput>;
};
export type lists_departmentsCreateManyDepartmentsInput = {
    id?: number;
    lists_id?: number | null;
};
export type lists_departmentsUpdateWithoutDepartmentsInput = {
    lists?: Prisma.listsUpdateOneWithoutLists_departmentsNestedInput;
};
export type lists_departmentsUncheckedUpdateWithoutDepartmentsInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    lists_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type lists_departmentsUncheckedUpdateManyWithoutDepartmentsInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    lists_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type lists_departmentsCreateManyListsInput = {
    id?: number;
    departments_id?: number | null;
};
export type lists_departmentsUpdateWithoutListsInput = {
    departments?: Prisma.departmentsUpdateOneWithoutLists_departmentsNestedInput;
};
export type lists_departmentsUncheckedUpdateWithoutListsInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    departments_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type lists_departmentsUncheckedUpdateManyWithoutListsInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    departments_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type lists_departmentsSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    lists_id?: boolean;
    departments_id?: boolean;
    departments?: boolean | Prisma.lists_departments$departmentsArgs<ExtArgs>;
    lists?: boolean | Prisma.lists_departments$listsArgs<ExtArgs>;
}, ExtArgs["result"]["lists_departments"]>;
export type lists_departmentsSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    lists_id?: boolean;
    departments_id?: boolean;
    departments?: boolean | Prisma.lists_departments$departmentsArgs<ExtArgs>;
    lists?: boolean | Prisma.lists_departments$listsArgs<ExtArgs>;
}, ExtArgs["result"]["lists_departments"]>;
export type lists_departmentsSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    lists_id?: boolean;
    departments_id?: boolean;
    departments?: boolean | Prisma.lists_departments$departmentsArgs<ExtArgs>;
    lists?: boolean | Prisma.lists_departments$listsArgs<ExtArgs>;
}, ExtArgs["result"]["lists_departments"]>;
export type lists_departmentsSelectScalar = {
    id?: boolean;
    lists_id?: boolean;
    departments_id?: boolean;
};
export type lists_departmentsOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "lists_id" | "departments_id", ExtArgs["result"]["lists_departments"]>;
export type lists_departmentsInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    departments?: boolean | Prisma.lists_departments$departmentsArgs<ExtArgs>;
    lists?: boolean | Prisma.lists_departments$listsArgs<ExtArgs>;
};
export type lists_departmentsIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    departments?: boolean | Prisma.lists_departments$departmentsArgs<ExtArgs>;
    lists?: boolean | Prisma.lists_departments$listsArgs<ExtArgs>;
};
export type lists_departmentsIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    departments?: boolean | Prisma.lists_departments$departmentsArgs<ExtArgs>;
    lists?: boolean | Prisma.lists_departments$listsArgs<ExtArgs>;
};
export type $lists_departmentsPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    name: "lists_departments";
    objects: {
        departments: Prisma.$departmentsPayload<ExtArgs> | null;
        lists: Prisma.$listsPayload<ExtArgs> | null;
    };
    scalars: runtime.Types.Extensions.GetPayloadResult<{
        id: number;
        lists_id: number | null;
        departments_id: number | null;
    }, ExtArgs["result"]["lists_departments"]>;
    composites: {};
};
export type lists_departmentsGetPayload<S extends boolean | null | undefined | lists_departmentsDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$lists_departmentsPayload, S>;
export type lists_departmentsCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<lists_departmentsFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
    select?: Lists_departmentsCountAggregateInputType | true;
};
export interface lists_departmentsDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
    [K: symbol]: {
        types: Prisma.TypeMap<ExtArgs>['model']['lists_departments'];
        meta: {
            name: 'lists_departments';
        };
    };
    /**
     * Find zero or one Lists_departments that matches the filter.
     * @param {lists_departmentsFindUniqueArgs} args - Arguments to find a Lists_departments
     * @example
     * // Get one Lists_departments
     * const lists_departments = await prisma.lists_departments.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends lists_departmentsFindUniqueArgs>(args: Prisma.SelectSubset<T, lists_departmentsFindUniqueArgs<ExtArgs>>): Prisma.Prisma__lists_departmentsClient<runtime.Types.Result.GetResult<Prisma.$lists_departmentsPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    /**
     * Find one Lists_departments that matches the filter or throw an error with `error.code='P2025'`
     * if no matches were found.
     * @param {lists_departmentsFindUniqueOrThrowArgs} args - Arguments to find a Lists_departments
     * @example
     * // Get one Lists_departments
     * const lists_departments = await prisma.lists_departments.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends lists_departmentsFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, lists_departmentsFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__lists_departmentsClient<runtime.Types.Result.GetResult<Prisma.$lists_departmentsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Find the first Lists_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 {lists_departmentsFindFirstArgs} args - Arguments to find a Lists_departments
     * @example
     * // Get one Lists_departments
     * const lists_departments = await prisma.lists_departments.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends lists_departmentsFindFirstArgs>(args?: Prisma.SelectSubset<T, lists_departmentsFindFirstArgs<ExtArgs>>): Prisma.Prisma__lists_departmentsClient<runtime.Types.Result.GetResult<Prisma.$lists_departmentsPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    /**
     * Find the first Lists_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 {lists_departmentsFindFirstOrThrowArgs} args - Arguments to find a Lists_departments
     * @example
     * // Get one Lists_departments
     * const lists_departments = await prisma.lists_departments.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends lists_departmentsFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, lists_departmentsFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__lists_departmentsClient<runtime.Types.Result.GetResult<Prisma.$lists_departmentsPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Find zero or more Lists_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 {lists_departmentsFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all Lists_departments
     * const lists_departments = await prisma.lists_departments.findMany()
     *
     * // Get first 10 Lists_departments
     * const lists_departments = await prisma.lists_departments.findMany({ take: 10 })
     *
     * // Only select the `id`
     * const lists_departmentsWithIdOnly = await prisma.lists_departments.findMany({ select: { id: true } })
     *
     */
    findMany<T extends lists_departmentsFindManyArgs>(args?: Prisma.SelectSubset<T, lists_departmentsFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$lists_departmentsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
    /**
     * Create a Lists_departments.
     * @param {lists_departmentsCreateArgs} args - Arguments to create a Lists_departments.
     * @example
     * // Create one Lists_departments
     * const Lists_departments = await prisma.lists_departments.create({
     *   data: {
     *     // ... data to create a Lists_departments
     *   }
     * })
     *
     */
    create<T extends lists_departmentsCreateArgs>(args: Prisma.SelectSubset<T, lists_departmentsCreateArgs<ExtArgs>>): Prisma.Prisma__lists_departmentsClient<runtime.Types.Result.GetResult<Prisma.$lists_departmentsPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Create many Lists_departments.
     * @param {lists_departmentsCreateManyArgs} args - Arguments to create many Lists_departments.
     * @example
     * // Create many Lists_departments
     * const lists_departments = await prisma.lists_departments.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     */
    createMany<T extends lists_departmentsCreateManyArgs>(args?: Prisma.SelectSubset<T, lists_departmentsCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Create many Lists_departments and returns the data saved in the database.
     * @param {lists_departmentsCreateManyAndReturnArgs} args - Arguments to create many Lists_departments.
     * @example
     * // Create many Lists_departments
     * const lists_departments = await prisma.lists_departments.createManyAndReturn({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     * // Create many Lists_departments and only return the `id`
     * const lists_departmentsWithIdOnly = await prisma.lists_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 lists_departmentsCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, lists_departmentsCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$lists_departmentsPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
    /**
     * Delete a Lists_departments.
     * @param {lists_departmentsDeleteArgs} args - Arguments to delete one Lists_departments.
     * @example
     * // Delete one Lists_departments
     * const Lists_departments = await prisma.lists_departments.delete({
     *   where: {
     *     // ... filter to delete one Lists_departments
     *   }
     * })
     *
     */
    delete<T extends lists_departmentsDeleteArgs>(args: Prisma.SelectSubset<T, lists_departmentsDeleteArgs<ExtArgs>>): Prisma.Prisma__lists_departmentsClient<runtime.Types.Result.GetResult<Prisma.$lists_departmentsPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Update one Lists_departments.
     * @param {lists_departmentsUpdateArgs} args - Arguments to update one Lists_departments.
     * @example
     * // Update one Lists_departments
     * const lists_departments = await prisma.lists_departments.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     *
     */
    update<T extends lists_departmentsUpdateArgs>(args: Prisma.SelectSubset<T, lists_departmentsUpdateArgs<ExtArgs>>): Prisma.Prisma__lists_departmentsClient<runtime.Types.Result.GetResult<Prisma.$lists_departmentsPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Delete zero or more Lists_departments.
     * @param {lists_departmentsDeleteManyArgs} args - Arguments to filter Lists_departments to delete.
     * @example
     * // Delete a few Lists_departments
     * const { count } = await prisma.lists_departments.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     *
     */
    deleteMany<T extends lists_departmentsDeleteManyArgs>(args?: Prisma.SelectSubset<T, lists_departmentsDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Update zero or more Lists_departments.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {lists_departmentsUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many Lists_departments
     * const lists_departments = await prisma.lists_departments.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     *
     */
    updateMany<T extends lists_departmentsUpdateManyArgs>(args: Prisma.SelectSubset<T, lists_departmentsUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Update zero or more Lists_departments and returns the data updated in the database.
     * @param {lists_departmentsUpdateManyAndReturnArgs} args - Arguments to update many Lists_departments.
     * @example
     * // Update many Lists_departments
     * const lists_departments = await prisma.lists_departments.updateManyAndReturn({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     * // Update zero or more Lists_departments and only return the `id`
     * const lists_departmentsWithIdOnly = await prisma.lists_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 lists_departmentsUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, lists_departmentsUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$lists_departmentsPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
    /**
     * Create or update one Lists_departments.
     * @param {lists_departmentsUpsertArgs} args - Arguments to update or create a Lists_departments.
     * @example
     * // Update or create a Lists_departments
     * const lists_departments = await prisma.lists_departments.upsert({
     *   create: {
     *     // ... data to create a Lists_departments
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the Lists_departments we want to update
     *   }
     * })
     */
    upsert<T extends lists_departmentsUpsertArgs>(args: Prisma.SelectSubset<T, lists_departmentsUpsertArgs<ExtArgs>>): Prisma.Prisma__lists_departmentsClient<runtime.Types.Result.GetResult<Prisma.$lists_departmentsPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Count the number of Lists_departments.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {lists_departmentsCountArgs} args - Arguments to filter Lists_departments to count.
     * @example
     * // Count the number of Lists_departments
     * const count = await prisma.lists_departments.count({
     *   where: {
     *     // ... the filter for the Lists_departments we want to count
     *   }
     * })
    **/
    count<T extends lists_departmentsCountArgs>(args?: Prisma.Subset<T, lists_departmentsCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], Lists_departmentsCountAggregateOutputType> : number>;
    /**
     * Allows you to perform aggregations operations on a Lists_departments.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {Lists_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 Lists_departmentsAggregateArgs>(args: Prisma.Subset<T, Lists_departmentsAggregateArgs>): Prisma.PrismaPromise<GetLists_departmentsAggregateType<T>>;
    /**
     * Group by Lists_departments.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {lists_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 lists_departmentsGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
        orderBy: lists_departmentsGroupByArgs['orderBy'];
    } : {
        orderBy?: lists_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, lists_departmentsGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetLists_departmentsGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
    /**
     * Fields of the lists_departments model
     */
    readonly fields: lists_departmentsFieldRefs;
}
/**
 * The delegate class that acts as a "Promise-like" for lists_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__lists_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.lists_departments$departmentsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.lists_departments$departmentsArgs<ExtArgs>>): Prisma.Prisma__departmentsClient<runtime.Types.Result.GetResult<Prisma.$departmentsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    lists<T extends Prisma.lists_departments$listsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.lists_departments$listsArgs<ExtArgs>>): Prisma.Prisma__listsClient<runtime.Types.Result.GetResult<Prisma.$listsPayload<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 lists_departments model
 */
export interface lists_departmentsFieldRefs {
    readonly id: Prisma.FieldRef<"lists_departments", 'Int'>;
    readonly lists_id: Prisma.FieldRef<"lists_departments", 'Int'>;
    readonly departments_id: Prisma.FieldRef<"lists_departments", 'Int'>;
}
/**
 * lists_departments findUnique
 */
export type lists_departmentsFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the lists_departments
     */
    select?: Prisma.lists_departmentsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the lists_departments
     */
    omit?: Prisma.lists_departmentsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.lists_departmentsInclude<ExtArgs> | null;
    /**
     * Filter, which lists_departments to fetch.
     */
    where: Prisma.lists_departmentsWhereUniqueInput;
};
/**
 * lists_departments findUniqueOrThrow
 */
export type lists_departmentsFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the lists_departments
     */
    select?: Prisma.lists_departmentsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the lists_departments
     */
    omit?: Prisma.lists_departmentsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.lists_departmentsInclude<ExtArgs> | null;
    /**
     * Filter, which lists_departments to fetch.
     */
    where: Prisma.lists_departmentsWhereUniqueInput;
};
/**
 * lists_departments findFirst
 */
export type lists_departmentsFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the lists_departments
     */
    select?: Prisma.lists_departmentsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the lists_departments
     */
    omit?: Prisma.lists_departmentsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.lists_departmentsInclude<ExtArgs> | null;
    /**
     * Filter, which lists_departments to fetch.
     */
    where?: Prisma.lists_departmentsWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of lists_departments to fetch.
     */
    orderBy?: Prisma.lists_departmentsOrderByWithRelationInput | Prisma.lists_departmentsOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for searching for lists_departments.
     */
    cursor?: Prisma.lists_departmentsWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` lists_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` lists_departments.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     *
     * Filter by unique combinations of lists_departments.
     */
    distinct?: Prisma.Lists_departmentsScalarFieldEnum | Prisma.Lists_departmentsScalarFieldEnum[];
};
/**
 * lists_departments findFirstOrThrow
 */
export type lists_departmentsFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the lists_departments
     */
    select?: Prisma.lists_departmentsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the lists_departments
     */
    omit?: Prisma.lists_departmentsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.lists_departmentsInclude<ExtArgs> | null;
    /**
     * Filter, which lists_departments to fetch.
     */
    where?: Prisma.lists_departmentsWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of lists_departments to fetch.
     */
    orderBy?: Prisma.lists_departmentsOrderByWithRelationInput | Prisma.lists_departmentsOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for searching for lists_departments.
     */
    cursor?: Prisma.lists_departmentsWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` lists_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` lists_departments.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     *
     * Filter by unique combinations of lists_departments.
     */
    distinct?: Prisma.Lists_departmentsScalarFieldEnum | Prisma.Lists_departmentsScalarFieldEnum[];
};
/**
 * lists_departments findMany
 */
export type lists_departmentsFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the lists_departments
     */
    select?: Prisma.lists_departmentsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the lists_departments
     */
    omit?: Prisma.lists_departmentsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.lists_departmentsInclude<ExtArgs> | null;
    /**
     * Filter, which lists_departments to fetch.
     */
    where?: Prisma.lists_departmentsWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of lists_departments to fetch.
     */
    orderBy?: Prisma.lists_departmentsOrderByWithRelationInput | Prisma.lists_departmentsOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for listing lists_departments.
     */
    cursor?: Prisma.lists_departmentsWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` lists_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` lists_departments.
     */
    skip?: number;
    distinct?: Prisma.Lists_departmentsScalarFieldEnum | Prisma.Lists_departmentsScalarFieldEnum[];
};
/**
 * lists_departments create
 */
export type lists_departmentsCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the lists_departments
     */
    select?: Prisma.lists_departmentsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the lists_departments
     */
    omit?: Prisma.lists_departmentsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.lists_departmentsInclude<ExtArgs> | null;
    /**
     * The data needed to create a lists_departments.
     */
    data?: Prisma.XOR<Prisma.lists_departmentsCreateInput, Prisma.lists_departmentsUncheckedCreateInput>;
};
/**
 * lists_departments createMany
 */
export type lists_departmentsCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * The data used to create many lists_departments.
     */
    data: Prisma.lists_departmentsCreateManyInput | Prisma.lists_departmentsCreateManyInput[];
    skipDuplicates?: boolean;
};
/**
 * lists_departments createManyAndReturn
 */
export type lists_departmentsCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the lists_departments
     */
    select?: Prisma.lists_departmentsSelectCreateManyAndReturn<ExtArgs> | null;
    /**
     * Omit specific fields from the lists_departments
     */
    omit?: Prisma.lists_departmentsOmit<ExtArgs> | null;
    /**
     * The data used to create many lists_departments.
     */
    data: Prisma.lists_departmentsCreateManyInput | Prisma.lists_departmentsCreateManyInput[];
    skipDuplicates?: boolean;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.lists_departmentsIncludeCreateManyAndReturn<ExtArgs> | null;
};
/**
 * lists_departments update
 */
export type lists_departmentsUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the lists_departments
     */
    select?: Prisma.lists_departmentsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the lists_departments
     */
    omit?: Prisma.lists_departmentsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.lists_departmentsInclude<ExtArgs> | null;
    /**
     * The data needed to update a lists_departments.
     */
    data: Prisma.XOR<Prisma.lists_departmentsUpdateInput, Prisma.lists_departmentsUncheckedUpdateInput>;
    /**
     * Choose, which lists_departments to update.
     */
    where: Prisma.lists_departmentsWhereUniqueInput;
};
/**
 * lists_departments updateMany
 */
export type lists_departmentsUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * The data used to update lists_departments.
     */
    data: Prisma.XOR<Prisma.lists_departmentsUpdateManyMutationInput, Prisma.lists_departmentsUncheckedUpdateManyInput>;
    /**
     * Filter which lists_departments to update
     */
    where?: Prisma.lists_departmentsWhereInput;
    /**
     * Limit how many lists_departments to update.
     */
    limit?: number;
};
/**
 * lists_departments updateManyAndReturn
 */
export type lists_departmentsUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the lists_departments
     */
    select?: Prisma.lists_departmentsSelectUpdateManyAndReturn<ExtArgs> | null;
    /**
     * Omit specific fields from the lists_departments
     */
    omit?: Prisma.lists_departmentsOmit<ExtArgs> | null;
    /**
     * The data used to update lists_departments.
     */
    data: Prisma.XOR<Prisma.lists_departmentsUpdateManyMutationInput, Prisma.lists_departmentsUncheckedUpdateManyInput>;
    /**
     * Filter which lists_departments to update
     */
    where?: Prisma.lists_departmentsWhereInput;
    /**
     * Limit how many lists_departments to update.
     */
    limit?: number;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.lists_departmentsIncludeUpdateManyAndReturn<ExtArgs> | null;
};
/**
 * lists_departments upsert
 */
export type lists_departmentsUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the lists_departments
     */
    select?: Prisma.lists_departmentsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the lists_departments
     */
    omit?: Prisma.lists_departmentsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.lists_departmentsInclude<ExtArgs> | null;
    /**
     * The filter to search for the lists_departments to update in case it exists.
     */
    where: Prisma.lists_departmentsWhereUniqueInput;
    /**
     * In case the lists_departments found by the `where` argument doesn't exist, create a new lists_departments with this data.
     */
    create: Prisma.XOR<Prisma.lists_departmentsCreateInput, Prisma.lists_departmentsUncheckedCreateInput>;
    /**
     * In case the lists_departments was found with the provided `where` argument, update it with this data.
     */
    update: Prisma.XOR<Prisma.lists_departmentsUpdateInput, Prisma.lists_departmentsUncheckedUpdateInput>;
};
/**
 * lists_departments delete
 */
export type lists_departmentsDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the lists_departments
     */
    select?: Prisma.lists_departmentsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the lists_departments
     */
    omit?: Prisma.lists_departmentsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.lists_departmentsInclude<ExtArgs> | null;
    /**
     * Filter which lists_departments to delete.
     */
    where: Prisma.lists_departmentsWhereUniqueInput;
};
/**
 * lists_departments deleteMany
 */
export type lists_departmentsDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Filter which lists_departments to delete
     */
    where?: Prisma.lists_departmentsWhereInput;
    /**
     * Limit how many lists_departments to delete.
     */
    limit?: number;
};
/**
 * lists_departments.departments
 */
export type lists_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;
};
/**
 * lists_departments.lists
 */
export type lists_departments$listsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the lists
     */
    select?: Prisma.listsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the lists
     */
    omit?: Prisma.listsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.listsInclude<ExtArgs> | null;
    where?: Prisma.listsWhereInput;
};
/**
 * lists_departments without action
 */
export type lists_departmentsDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the lists_departments
     */
    select?: Prisma.lists_departmentsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the lists_departments
     */
    omit?: Prisma.lists_departmentsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.lists_departmentsInclude<ExtArgs> | null;
};
export {};
