import type * as runtime from "@prisma/client/runtime/client";
import type * as Prisma from "../internal/prismaNamespace";
/**
 * Model shops_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 shops_departmentsModel = runtime.Types.Result.DefaultSelection<Prisma.$shops_departmentsPayload>;
export type AggregateShops_departments = {
    _count: Shops_departmentsCountAggregateOutputType | null;
    _avg: Shops_departmentsAvgAggregateOutputType | null;
    _sum: Shops_departmentsSumAggregateOutputType | null;
    _min: Shops_departmentsMinAggregateOutputType | null;
    _max: Shops_departmentsMaxAggregateOutputType | null;
};
export type Shops_departmentsAvgAggregateOutputType = {
    id: number | null;
    shops_id: number | null;
    departments_id: number | null;
};
export type Shops_departmentsSumAggregateOutputType = {
    id: number | null;
    shops_id: number | null;
    departments_id: number | null;
};
export type Shops_departmentsMinAggregateOutputType = {
    id: number | null;
    shops_id: number | null;
    departments_id: number | null;
};
export type Shops_departmentsMaxAggregateOutputType = {
    id: number | null;
    shops_id: number | null;
    departments_id: number | null;
};
export type Shops_departmentsCountAggregateOutputType = {
    id: number;
    shops_id: number;
    departments_id: number;
    _all: number;
};
export type Shops_departmentsAvgAggregateInputType = {
    id?: true;
    shops_id?: true;
    departments_id?: true;
};
export type Shops_departmentsSumAggregateInputType = {
    id?: true;
    shops_id?: true;
    departments_id?: true;
};
export type Shops_departmentsMinAggregateInputType = {
    id?: true;
    shops_id?: true;
    departments_id?: true;
};
export type Shops_departmentsMaxAggregateInputType = {
    id?: true;
    shops_id?: true;
    departments_id?: true;
};
export type Shops_departmentsCountAggregateInputType = {
    id?: true;
    shops_id?: true;
    departments_id?: true;
    _all?: true;
};
export type Shops_departmentsAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Filter which shops_departments to aggregate.
     */
    where?: Prisma.shops_departmentsWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of shops_departments to fetch.
     */
    orderBy?: Prisma.shops_departmentsOrderByWithRelationInput | Prisma.shops_departmentsOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the start position
     */
    cursor?: Prisma.shops_departmentsWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` shops_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` shops_departments.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Count returned shops_departments
    **/
    _count?: true | Shops_departmentsCountAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to average
    **/
    _avg?: Shops_departmentsAvgAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to sum
    **/
    _sum?: Shops_departmentsSumAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to find the minimum value
    **/
    _min?: Shops_departmentsMinAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to find the maximum value
    **/
    _max?: Shops_departmentsMaxAggregateInputType;
};
export type GetShops_departmentsAggregateType<T extends Shops_departmentsAggregateArgs> = {
    [P in keyof T & keyof AggregateShops_departments]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateShops_departments[P]> : Prisma.GetScalarType<T[P], AggregateShops_departments[P]>;
};
export type shops_departmentsGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    where?: Prisma.shops_departmentsWhereInput;
    orderBy?: Prisma.shops_departmentsOrderByWithAggregationInput | Prisma.shops_departmentsOrderByWithAggregationInput[];
    by: Prisma.Shops_departmentsScalarFieldEnum[] | Prisma.Shops_departmentsScalarFieldEnum;
    having?: Prisma.shops_departmentsScalarWhereWithAggregatesInput;
    take?: number;
    skip?: number;
    _count?: Shops_departmentsCountAggregateInputType | true;
    _avg?: Shops_departmentsAvgAggregateInputType;
    _sum?: Shops_departmentsSumAggregateInputType;
    _min?: Shops_departmentsMinAggregateInputType;
    _max?: Shops_departmentsMaxAggregateInputType;
};
export type Shops_departmentsGroupByOutputType = {
    id: number;
    shops_id: number | null;
    departments_id: number | null;
    _count: Shops_departmentsCountAggregateOutputType | null;
    _avg: Shops_departmentsAvgAggregateOutputType | null;
    _sum: Shops_departmentsSumAggregateOutputType | null;
    _min: Shops_departmentsMinAggregateOutputType | null;
    _max: Shops_departmentsMaxAggregateOutputType | null;
};
type GetShops_departmentsGroupByPayload<T extends shops_departmentsGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<Shops_departmentsGroupByOutputType, T['by']> & {
    [P in ((keyof T) & (keyof Shops_departmentsGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], Shops_departmentsGroupByOutputType[P]> : Prisma.GetScalarType<T[P], Shops_departmentsGroupByOutputType[P]>;
}>>;
export type shops_departmentsWhereInput = {
    AND?: Prisma.shops_departmentsWhereInput | Prisma.shops_departmentsWhereInput[];
    OR?: Prisma.shops_departmentsWhereInput[];
    NOT?: Prisma.shops_departmentsWhereInput | Prisma.shops_departmentsWhereInput[];
    id?: Prisma.IntFilter<"shops_departments"> | number;
    shops_id?: Prisma.IntNullableFilter<"shops_departments"> | number | null;
    departments_id?: Prisma.IntNullableFilter<"shops_departments"> | number | null;
    departments?: Prisma.XOR<Prisma.DepartmentsNullableScalarRelationFilter, Prisma.departmentsWhereInput> | null;
    shops?: Prisma.XOR<Prisma.ShopsNullableScalarRelationFilter, Prisma.shopsWhereInput> | null;
};
export type shops_departmentsOrderByWithRelationInput = {
    id?: Prisma.SortOrder;
    shops_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    departments_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    departments?: Prisma.departmentsOrderByWithRelationInput;
    shops?: Prisma.shopsOrderByWithRelationInput;
};
export type shops_departmentsWhereUniqueInput = Prisma.AtLeast<{
    id?: number;
    AND?: Prisma.shops_departmentsWhereInput | Prisma.shops_departmentsWhereInput[];
    OR?: Prisma.shops_departmentsWhereInput[];
    NOT?: Prisma.shops_departmentsWhereInput | Prisma.shops_departmentsWhereInput[];
    shops_id?: Prisma.IntNullableFilter<"shops_departments"> | number | null;
    departments_id?: Prisma.IntNullableFilter<"shops_departments"> | number | null;
    departments?: Prisma.XOR<Prisma.DepartmentsNullableScalarRelationFilter, Prisma.departmentsWhereInput> | null;
    shops?: Prisma.XOR<Prisma.ShopsNullableScalarRelationFilter, Prisma.shopsWhereInput> | null;
}, "id">;
export type shops_departmentsOrderByWithAggregationInput = {
    id?: Prisma.SortOrder;
    shops_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    departments_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    _count?: Prisma.shops_departmentsCountOrderByAggregateInput;
    _avg?: Prisma.shops_departmentsAvgOrderByAggregateInput;
    _max?: Prisma.shops_departmentsMaxOrderByAggregateInput;
    _min?: Prisma.shops_departmentsMinOrderByAggregateInput;
    _sum?: Prisma.shops_departmentsSumOrderByAggregateInput;
};
export type shops_departmentsScalarWhereWithAggregatesInput = {
    AND?: Prisma.shops_departmentsScalarWhereWithAggregatesInput | Prisma.shops_departmentsScalarWhereWithAggregatesInput[];
    OR?: Prisma.shops_departmentsScalarWhereWithAggregatesInput[];
    NOT?: Prisma.shops_departmentsScalarWhereWithAggregatesInput | Prisma.shops_departmentsScalarWhereWithAggregatesInput[];
    id?: Prisma.IntWithAggregatesFilter<"shops_departments"> | number;
    shops_id?: Prisma.IntNullableWithAggregatesFilter<"shops_departments"> | number | null;
    departments_id?: Prisma.IntNullableWithAggregatesFilter<"shops_departments"> | number | null;
};
export type shops_departmentsCreateInput = {
    departments?: Prisma.departmentsCreateNestedOneWithoutShops_departmentsInput;
    shops?: Prisma.shopsCreateNestedOneWithoutShops_departmentsInput;
};
export type shops_departmentsUncheckedCreateInput = {
    id?: number;
    shops_id?: number | null;
    departments_id?: number | null;
};
export type shops_departmentsUpdateInput = {
    departments?: Prisma.departmentsUpdateOneWithoutShops_departmentsNestedInput;
    shops?: Prisma.shopsUpdateOneWithoutShops_departmentsNestedInput;
};
export type shops_departmentsUncheckedUpdateInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    shops_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
    departments_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type shops_departmentsCreateManyInput = {
    id?: number;
    shops_id?: number | null;
    departments_id?: number | null;
};
export type shops_departmentsUpdateManyMutationInput = {};
export type shops_departmentsUncheckedUpdateManyInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    shops_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
    departments_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type Shops_departmentsListRelationFilter = {
    every?: Prisma.shops_departmentsWhereInput;
    some?: Prisma.shops_departmentsWhereInput;
    none?: Prisma.shops_departmentsWhereInput;
};
export type shops_departmentsOrderByRelationAggregateInput = {
    _count?: Prisma.SortOrder;
};
export type shops_departmentsCountOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    shops_id?: Prisma.SortOrder;
    departments_id?: Prisma.SortOrder;
};
export type shops_departmentsAvgOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    shops_id?: Prisma.SortOrder;
    departments_id?: Prisma.SortOrder;
};
export type shops_departmentsMaxOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    shops_id?: Prisma.SortOrder;
    departments_id?: Prisma.SortOrder;
};
export type shops_departmentsMinOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    shops_id?: Prisma.SortOrder;
    departments_id?: Prisma.SortOrder;
};
export type shops_departmentsSumOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    shops_id?: Prisma.SortOrder;
    departments_id?: Prisma.SortOrder;
};
export type shops_departmentsCreateNestedManyWithoutDepartmentsInput = {
    create?: Prisma.XOR<Prisma.shops_departmentsCreateWithoutDepartmentsInput, Prisma.shops_departmentsUncheckedCreateWithoutDepartmentsInput> | Prisma.shops_departmentsCreateWithoutDepartmentsInput[] | Prisma.shops_departmentsUncheckedCreateWithoutDepartmentsInput[];
    connectOrCreate?: Prisma.shops_departmentsCreateOrConnectWithoutDepartmentsInput | Prisma.shops_departmentsCreateOrConnectWithoutDepartmentsInput[];
    createMany?: Prisma.shops_departmentsCreateManyDepartmentsInputEnvelope;
    connect?: Prisma.shops_departmentsWhereUniqueInput | Prisma.shops_departmentsWhereUniqueInput[];
};
export type shops_departmentsUncheckedCreateNestedManyWithoutDepartmentsInput = {
    create?: Prisma.XOR<Prisma.shops_departmentsCreateWithoutDepartmentsInput, Prisma.shops_departmentsUncheckedCreateWithoutDepartmentsInput> | Prisma.shops_departmentsCreateWithoutDepartmentsInput[] | Prisma.shops_departmentsUncheckedCreateWithoutDepartmentsInput[];
    connectOrCreate?: Prisma.shops_departmentsCreateOrConnectWithoutDepartmentsInput | Prisma.shops_departmentsCreateOrConnectWithoutDepartmentsInput[];
    createMany?: Prisma.shops_departmentsCreateManyDepartmentsInputEnvelope;
    connect?: Prisma.shops_departmentsWhereUniqueInput | Prisma.shops_departmentsWhereUniqueInput[];
};
export type shops_departmentsUpdateManyWithoutDepartmentsNestedInput = {
    create?: Prisma.XOR<Prisma.shops_departmentsCreateWithoutDepartmentsInput, Prisma.shops_departmentsUncheckedCreateWithoutDepartmentsInput> | Prisma.shops_departmentsCreateWithoutDepartmentsInput[] | Prisma.shops_departmentsUncheckedCreateWithoutDepartmentsInput[];
    connectOrCreate?: Prisma.shops_departmentsCreateOrConnectWithoutDepartmentsInput | Prisma.shops_departmentsCreateOrConnectWithoutDepartmentsInput[];
    upsert?: Prisma.shops_departmentsUpsertWithWhereUniqueWithoutDepartmentsInput | Prisma.shops_departmentsUpsertWithWhereUniqueWithoutDepartmentsInput[];
    createMany?: Prisma.shops_departmentsCreateManyDepartmentsInputEnvelope;
    set?: Prisma.shops_departmentsWhereUniqueInput | Prisma.shops_departmentsWhereUniqueInput[];
    disconnect?: Prisma.shops_departmentsWhereUniqueInput | Prisma.shops_departmentsWhereUniqueInput[];
    delete?: Prisma.shops_departmentsWhereUniqueInput | Prisma.shops_departmentsWhereUniqueInput[];
    connect?: Prisma.shops_departmentsWhereUniqueInput | Prisma.shops_departmentsWhereUniqueInput[];
    update?: Prisma.shops_departmentsUpdateWithWhereUniqueWithoutDepartmentsInput | Prisma.shops_departmentsUpdateWithWhereUniqueWithoutDepartmentsInput[];
    updateMany?: Prisma.shops_departmentsUpdateManyWithWhereWithoutDepartmentsInput | Prisma.shops_departmentsUpdateManyWithWhereWithoutDepartmentsInput[];
    deleteMany?: Prisma.shops_departmentsScalarWhereInput | Prisma.shops_departmentsScalarWhereInput[];
};
export type shops_departmentsUncheckedUpdateManyWithoutDepartmentsNestedInput = {
    create?: Prisma.XOR<Prisma.shops_departmentsCreateWithoutDepartmentsInput, Prisma.shops_departmentsUncheckedCreateWithoutDepartmentsInput> | Prisma.shops_departmentsCreateWithoutDepartmentsInput[] | Prisma.shops_departmentsUncheckedCreateWithoutDepartmentsInput[];
    connectOrCreate?: Prisma.shops_departmentsCreateOrConnectWithoutDepartmentsInput | Prisma.shops_departmentsCreateOrConnectWithoutDepartmentsInput[];
    upsert?: Prisma.shops_departmentsUpsertWithWhereUniqueWithoutDepartmentsInput | Prisma.shops_departmentsUpsertWithWhereUniqueWithoutDepartmentsInput[];
    createMany?: Prisma.shops_departmentsCreateManyDepartmentsInputEnvelope;
    set?: Prisma.shops_departmentsWhereUniqueInput | Prisma.shops_departmentsWhereUniqueInput[];
    disconnect?: Prisma.shops_departmentsWhereUniqueInput | Prisma.shops_departmentsWhereUniqueInput[];
    delete?: Prisma.shops_departmentsWhereUniqueInput | Prisma.shops_departmentsWhereUniqueInput[];
    connect?: Prisma.shops_departmentsWhereUniqueInput | Prisma.shops_departmentsWhereUniqueInput[];
    update?: Prisma.shops_departmentsUpdateWithWhereUniqueWithoutDepartmentsInput | Prisma.shops_departmentsUpdateWithWhereUniqueWithoutDepartmentsInput[];
    updateMany?: Prisma.shops_departmentsUpdateManyWithWhereWithoutDepartmentsInput | Prisma.shops_departmentsUpdateManyWithWhereWithoutDepartmentsInput[];
    deleteMany?: Prisma.shops_departmentsScalarWhereInput | Prisma.shops_departmentsScalarWhereInput[];
};
export type shops_departmentsCreateNestedManyWithoutShopsInput = {
    create?: Prisma.XOR<Prisma.shops_departmentsCreateWithoutShopsInput, Prisma.shops_departmentsUncheckedCreateWithoutShopsInput> | Prisma.shops_departmentsCreateWithoutShopsInput[] | Prisma.shops_departmentsUncheckedCreateWithoutShopsInput[];
    connectOrCreate?: Prisma.shops_departmentsCreateOrConnectWithoutShopsInput | Prisma.shops_departmentsCreateOrConnectWithoutShopsInput[];
    createMany?: Prisma.shops_departmentsCreateManyShopsInputEnvelope;
    connect?: Prisma.shops_departmentsWhereUniqueInput | Prisma.shops_departmentsWhereUniqueInput[];
};
export type shops_departmentsUncheckedCreateNestedManyWithoutShopsInput = {
    create?: Prisma.XOR<Prisma.shops_departmentsCreateWithoutShopsInput, Prisma.shops_departmentsUncheckedCreateWithoutShopsInput> | Prisma.shops_departmentsCreateWithoutShopsInput[] | Prisma.shops_departmentsUncheckedCreateWithoutShopsInput[];
    connectOrCreate?: Prisma.shops_departmentsCreateOrConnectWithoutShopsInput | Prisma.shops_departmentsCreateOrConnectWithoutShopsInput[];
    createMany?: Prisma.shops_departmentsCreateManyShopsInputEnvelope;
    connect?: Prisma.shops_departmentsWhereUniqueInput | Prisma.shops_departmentsWhereUniqueInput[];
};
export type shops_departmentsUpdateManyWithoutShopsNestedInput = {
    create?: Prisma.XOR<Prisma.shops_departmentsCreateWithoutShopsInput, Prisma.shops_departmentsUncheckedCreateWithoutShopsInput> | Prisma.shops_departmentsCreateWithoutShopsInput[] | Prisma.shops_departmentsUncheckedCreateWithoutShopsInput[];
    connectOrCreate?: Prisma.shops_departmentsCreateOrConnectWithoutShopsInput | Prisma.shops_departmentsCreateOrConnectWithoutShopsInput[];
    upsert?: Prisma.shops_departmentsUpsertWithWhereUniqueWithoutShopsInput | Prisma.shops_departmentsUpsertWithWhereUniqueWithoutShopsInput[];
    createMany?: Prisma.shops_departmentsCreateManyShopsInputEnvelope;
    set?: Prisma.shops_departmentsWhereUniqueInput | Prisma.shops_departmentsWhereUniqueInput[];
    disconnect?: Prisma.shops_departmentsWhereUniqueInput | Prisma.shops_departmentsWhereUniqueInput[];
    delete?: Prisma.shops_departmentsWhereUniqueInput | Prisma.shops_departmentsWhereUniqueInput[];
    connect?: Prisma.shops_departmentsWhereUniqueInput | Prisma.shops_departmentsWhereUniqueInput[];
    update?: Prisma.shops_departmentsUpdateWithWhereUniqueWithoutShopsInput | Prisma.shops_departmentsUpdateWithWhereUniqueWithoutShopsInput[];
    updateMany?: Prisma.shops_departmentsUpdateManyWithWhereWithoutShopsInput | Prisma.shops_departmentsUpdateManyWithWhereWithoutShopsInput[];
    deleteMany?: Prisma.shops_departmentsScalarWhereInput | Prisma.shops_departmentsScalarWhereInput[];
};
export type shops_departmentsUncheckedUpdateManyWithoutShopsNestedInput = {
    create?: Prisma.XOR<Prisma.shops_departmentsCreateWithoutShopsInput, Prisma.shops_departmentsUncheckedCreateWithoutShopsInput> | Prisma.shops_departmentsCreateWithoutShopsInput[] | Prisma.shops_departmentsUncheckedCreateWithoutShopsInput[];
    connectOrCreate?: Prisma.shops_departmentsCreateOrConnectWithoutShopsInput | Prisma.shops_departmentsCreateOrConnectWithoutShopsInput[];
    upsert?: Prisma.shops_departmentsUpsertWithWhereUniqueWithoutShopsInput | Prisma.shops_departmentsUpsertWithWhereUniqueWithoutShopsInput[];
    createMany?: Prisma.shops_departmentsCreateManyShopsInputEnvelope;
    set?: Prisma.shops_departmentsWhereUniqueInput | Prisma.shops_departmentsWhereUniqueInput[];
    disconnect?: Prisma.shops_departmentsWhereUniqueInput | Prisma.shops_departmentsWhereUniqueInput[];
    delete?: Prisma.shops_departmentsWhereUniqueInput | Prisma.shops_departmentsWhereUniqueInput[];
    connect?: Prisma.shops_departmentsWhereUniqueInput | Prisma.shops_departmentsWhereUniqueInput[];
    update?: Prisma.shops_departmentsUpdateWithWhereUniqueWithoutShopsInput | Prisma.shops_departmentsUpdateWithWhereUniqueWithoutShopsInput[];
    updateMany?: Prisma.shops_departmentsUpdateManyWithWhereWithoutShopsInput | Prisma.shops_departmentsUpdateManyWithWhereWithoutShopsInput[];
    deleteMany?: Prisma.shops_departmentsScalarWhereInput | Prisma.shops_departmentsScalarWhereInput[];
};
export type shops_departmentsCreateWithoutDepartmentsInput = {
    shops?: Prisma.shopsCreateNestedOneWithoutShops_departmentsInput;
};
export type shops_departmentsUncheckedCreateWithoutDepartmentsInput = {
    id?: number;
    shops_id?: number | null;
};
export type shops_departmentsCreateOrConnectWithoutDepartmentsInput = {
    where: Prisma.shops_departmentsWhereUniqueInput;
    create: Prisma.XOR<Prisma.shops_departmentsCreateWithoutDepartmentsInput, Prisma.shops_departmentsUncheckedCreateWithoutDepartmentsInput>;
};
export type shops_departmentsCreateManyDepartmentsInputEnvelope = {
    data: Prisma.shops_departmentsCreateManyDepartmentsInput | Prisma.shops_departmentsCreateManyDepartmentsInput[];
    skipDuplicates?: boolean;
};
export type shops_departmentsUpsertWithWhereUniqueWithoutDepartmentsInput = {
    where: Prisma.shops_departmentsWhereUniqueInput;
    update: Prisma.XOR<Prisma.shops_departmentsUpdateWithoutDepartmentsInput, Prisma.shops_departmentsUncheckedUpdateWithoutDepartmentsInput>;
    create: Prisma.XOR<Prisma.shops_departmentsCreateWithoutDepartmentsInput, Prisma.shops_departmentsUncheckedCreateWithoutDepartmentsInput>;
};
export type shops_departmentsUpdateWithWhereUniqueWithoutDepartmentsInput = {
    where: Prisma.shops_departmentsWhereUniqueInput;
    data: Prisma.XOR<Prisma.shops_departmentsUpdateWithoutDepartmentsInput, Prisma.shops_departmentsUncheckedUpdateWithoutDepartmentsInput>;
};
export type shops_departmentsUpdateManyWithWhereWithoutDepartmentsInput = {
    where: Prisma.shops_departmentsScalarWhereInput;
    data: Prisma.XOR<Prisma.shops_departmentsUpdateManyMutationInput, Prisma.shops_departmentsUncheckedUpdateManyWithoutDepartmentsInput>;
};
export type shops_departmentsScalarWhereInput = {
    AND?: Prisma.shops_departmentsScalarWhereInput | Prisma.shops_departmentsScalarWhereInput[];
    OR?: Prisma.shops_departmentsScalarWhereInput[];
    NOT?: Prisma.shops_departmentsScalarWhereInput | Prisma.shops_departmentsScalarWhereInput[];
    id?: Prisma.IntFilter<"shops_departments"> | number;
    shops_id?: Prisma.IntNullableFilter<"shops_departments"> | number | null;
    departments_id?: Prisma.IntNullableFilter<"shops_departments"> | number | null;
};
export type shops_departmentsCreateWithoutShopsInput = {
    departments?: Prisma.departmentsCreateNestedOneWithoutShops_departmentsInput;
};
export type shops_departmentsUncheckedCreateWithoutShopsInput = {
    id?: number;
    departments_id?: number | null;
};
export type shops_departmentsCreateOrConnectWithoutShopsInput = {
    where: Prisma.shops_departmentsWhereUniqueInput;
    create: Prisma.XOR<Prisma.shops_departmentsCreateWithoutShopsInput, Prisma.shops_departmentsUncheckedCreateWithoutShopsInput>;
};
export type shops_departmentsCreateManyShopsInputEnvelope = {
    data: Prisma.shops_departmentsCreateManyShopsInput | Prisma.shops_departmentsCreateManyShopsInput[];
    skipDuplicates?: boolean;
};
export type shops_departmentsUpsertWithWhereUniqueWithoutShopsInput = {
    where: Prisma.shops_departmentsWhereUniqueInput;
    update: Prisma.XOR<Prisma.shops_departmentsUpdateWithoutShopsInput, Prisma.shops_departmentsUncheckedUpdateWithoutShopsInput>;
    create: Prisma.XOR<Prisma.shops_departmentsCreateWithoutShopsInput, Prisma.shops_departmentsUncheckedCreateWithoutShopsInput>;
};
export type shops_departmentsUpdateWithWhereUniqueWithoutShopsInput = {
    where: Prisma.shops_departmentsWhereUniqueInput;
    data: Prisma.XOR<Prisma.shops_departmentsUpdateWithoutShopsInput, Prisma.shops_departmentsUncheckedUpdateWithoutShopsInput>;
};
export type shops_departmentsUpdateManyWithWhereWithoutShopsInput = {
    where: Prisma.shops_departmentsScalarWhereInput;
    data: Prisma.XOR<Prisma.shops_departmentsUpdateManyMutationInput, Prisma.shops_departmentsUncheckedUpdateManyWithoutShopsInput>;
};
export type shops_departmentsCreateManyDepartmentsInput = {
    id?: number;
    shops_id?: number | null;
};
export type shops_departmentsUpdateWithoutDepartmentsInput = {
    shops?: Prisma.shopsUpdateOneWithoutShops_departmentsNestedInput;
};
export type shops_departmentsUncheckedUpdateWithoutDepartmentsInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    shops_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type shops_departmentsUncheckedUpdateManyWithoutDepartmentsInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    shops_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type shops_departmentsCreateManyShopsInput = {
    id?: number;
    departments_id?: number | null;
};
export type shops_departmentsUpdateWithoutShopsInput = {
    departments?: Prisma.departmentsUpdateOneWithoutShops_departmentsNestedInput;
};
export type shops_departmentsUncheckedUpdateWithoutShopsInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    departments_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type shops_departmentsUncheckedUpdateManyWithoutShopsInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    departments_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type shops_departmentsSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    shops_id?: boolean;
    departments_id?: boolean;
    departments?: boolean | Prisma.shops_departments$departmentsArgs<ExtArgs>;
    shops?: boolean | Prisma.shops_departments$shopsArgs<ExtArgs>;
}, ExtArgs["result"]["shops_departments"]>;
export type shops_departmentsSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    shops_id?: boolean;
    departments_id?: boolean;
    departments?: boolean | Prisma.shops_departments$departmentsArgs<ExtArgs>;
    shops?: boolean | Prisma.shops_departments$shopsArgs<ExtArgs>;
}, ExtArgs["result"]["shops_departments"]>;
export type shops_departmentsSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    shops_id?: boolean;
    departments_id?: boolean;
    departments?: boolean | Prisma.shops_departments$departmentsArgs<ExtArgs>;
    shops?: boolean | Prisma.shops_departments$shopsArgs<ExtArgs>;
}, ExtArgs["result"]["shops_departments"]>;
export type shops_departmentsSelectScalar = {
    id?: boolean;
    shops_id?: boolean;
    departments_id?: boolean;
};
export type shops_departmentsOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "shops_id" | "departments_id", ExtArgs["result"]["shops_departments"]>;
export type shops_departmentsInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    departments?: boolean | Prisma.shops_departments$departmentsArgs<ExtArgs>;
    shops?: boolean | Prisma.shops_departments$shopsArgs<ExtArgs>;
};
export type shops_departmentsIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    departments?: boolean | Prisma.shops_departments$departmentsArgs<ExtArgs>;
    shops?: boolean | Prisma.shops_departments$shopsArgs<ExtArgs>;
};
export type shops_departmentsIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    departments?: boolean | Prisma.shops_departments$departmentsArgs<ExtArgs>;
    shops?: boolean | Prisma.shops_departments$shopsArgs<ExtArgs>;
};
export type $shops_departmentsPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    name: "shops_departments";
    objects: {
        departments: Prisma.$departmentsPayload<ExtArgs> | null;
        shops: Prisma.$shopsPayload<ExtArgs> | null;
    };
    scalars: runtime.Types.Extensions.GetPayloadResult<{
        id: number;
        shops_id: number | null;
        departments_id: number | null;
    }, ExtArgs["result"]["shops_departments"]>;
    composites: {};
};
export type shops_departmentsGetPayload<S extends boolean | null | undefined | shops_departmentsDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$shops_departmentsPayload, S>;
export type shops_departmentsCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<shops_departmentsFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
    select?: Shops_departmentsCountAggregateInputType | true;
};
export interface shops_departmentsDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
    [K: symbol]: {
        types: Prisma.TypeMap<ExtArgs>['model']['shops_departments'];
        meta: {
            name: 'shops_departments';
        };
    };
    /**
     * Find zero or one Shops_departments that matches the filter.
     * @param {shops_departmentsFindUniqueArgs} args - Arguments to find a Shops_departments
     * @example
     * // Get one Shops_departments
     * const shops_departments = await prisma.shops_departments.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends shops_departmentsFindUniqueArgs>(args: Prisma.SelectSubset<T, shops_departmentsFindUniqueArgs<ExtArgs>>): Prisma.Prisma__shops_departmentsClient<runtime.Types.Result.GetResult<Prisma.$shops_departmentsPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    /**
     * Find one Shops_departments that matches the filter or throw an error with `error.code='P2025'`
     * if no matches were found.
     * @param {shops_departmentsFindUniqueOrThrowArgs} args - Arguments to find a Shops_departments
     * @example
     * // Get one Shops_departments
     * const shops_departments = await prisma.shops_departments.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends shops_departmentsFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, shops_departmentsFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__shops_departmentsClient<runtime.Types.Result.GetResult<Prisma.$shops_departmentsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Find the first Shops_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 {shops_departmentsFindFirstArgs} args - Arguments to find a Shops_departments
     * @example
     * // Get one Shops_departments
     * const shops_departments = await prisma.shops_departments.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends shops_departmentsFindFirstArgs>(args?: Prisma.SelectSubset<T, shops_departmentsFindFirstArgs<ExtArgs>>): Prisma.Prisma__shops_departmentsClient<runtime.Types.Result.GetResult<Prisma.$shops_departmentsPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    /**
     * Find the first Shops_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 {shops_departmentsFindFirstOrThrowArgs} args - Arguments to find a Shops_departments
     * @example
     * // Get one Shops_departments
     * const shops_departments = await prisma.shops_departments.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends shops_departmentsFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, shops_departmentsFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__shops_departmentsClient<runtime.Types.Result.GetResult<Prisma.$shops_departmentsPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Find zero or more Shops_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 {shops_departmentsFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all Shops_departments
     * const shops_departments = await prisma.shops_departments.findMany()
     *
     * // Get first 10 Shops_departments
     * const shops_departments = await prisma.shops_departments.findMany({ take: 10 })
     *
     * // Only select the `id`
     * const shops_departmentsWithIdOnly = await prisma.shops_departments.findMany({ select: { id: true } })
     *
     */
    findMany<T extends shops_departmentsFindManyArgs>(args?: Prisma.SelectSubset<T, shops_departmentsFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$shops_departmentsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
    /**
     * Create a Shops_departments.
     * @param {shops_departmentsCreateArgs} args - Arguments to create a Shops_departments.
     * @example
     * // Create one Shops_departments
     * const Shops_departments = await prisma.shops_departments.create({
     *   data: {
     *     // ... data to create a Shops_departments
     *   }
     * })
     *
     */
    create<T extends shops_departmentsCreateArgs>(args: Prisma.SelectSubset<T, shops_departmentsCreateArgs<ExtArgs>>): Prisma.Prisma__shops_departmentsClient<runtime.Types.Result.GetResult<Prisma.$shops_departmentsPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Create many Shops_departments.
     * @param {shops_departmentsCreateManyArgs} args - Arguments to create many Shops_departments.
     * @example
     * // Create many Shops_departments
     * const shops_departments = await prisma.shops_departments.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     */
    createMany<T extends shops_departmentsCreateManyArgs>(args?: Prisma.SelectSubset<T, shops_departmentsCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Create many Shops_departments and returns the data saved in the database.
     * @param {shops_departmentsCreateManyAndReturnArgs} args - Arguments to create many Shops_departments.
     * @example
     * // Create many Shops_departments
     * const shops_departments = await prisma.shops_departments.createManyAndReturn({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     * // Create many Shops_departments and only return the `id`
     * const shops_departmentsWithIdOnly = await prisma.shops_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 shops_departmentsCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, shops_departmentsCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$shops_departmentsPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
    /**
     * Delete a Shops_departments.
     * @param {shops_departmentsDeleteArgs} args - Arguments to delete one Shops_departments.
     * @example
     * // Delete one Shops_departments
     * const Shops_departments = await prisma.shops_departments.delete({
     *   where: {
     *     // ... filter to delete one Shops_departments
     *   }
     * })
     *
     */
    delete<T extends shops_departmentsDeleteArgs>(args: Prisma.SelectSubset<T, shops_departmentsDeleteArgs<ExtArgs>>): Prisma.Prisma__shops_departmentsClient<runtime.Types.Result.GetResult<Prisma.$shops_departmentsPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Update one Shops_departments.
     * @param {shops_departmentsUpdateArgs} args - Arguments to update one Shops_departments.
     * @example
     * // Update one Shops_departments
     * const shops_departments = await prisma.shops_departments.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     *
     */
    update<T extends shops_departmentsUpdateArgs>(args: Prisma.SelectSubset<T, shops_departmentsUpdateArgs<ExtArgs>>): Prisma.Prisma__shops_departmentsClient<runtime.Types.Result.GetResult<Prisma.$shops_departmentsPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Delete zero or more Shops_departments.
     * @param {shops_departmentsDeleteManyArgs} args - Arguments to filter Shops_departments to delete.
     * @example
     * // Delete a few Shops_departments
     * const { count } = await prisma.shops_departments.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     *
     */
    deleteMany<T extends shops_departmentsDeleteManyArgs>(args?: Prisma.SelectSubset<T, shops_departmentsDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Update zero or more Shops_departments.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {shops_departmentsUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many Shops_departments
     * const shops_departments = await prisma.shops_departments.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     *
     */
    updateMany<T extends shops_departmentsUpdateManyArgs>(args: Prisma.SelectSubset<T, shops_departmentsUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Update zero or more Shops_departments and returns the data updated in the database.
     * @param {shops_departmentsUpdateManyAndReturnArgs} args - Arguments to update many Shops_departments.
     * @example
     * // Update many Shops_departments
     * const shops_departments = await prisma.shops_departments.updateManyAndReturn({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     * // Update zero or more Shops_departments and only return the `id`
     * const shops_departmentsWithIdOnly = await prisma.shops_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 shops_departmentsUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, shops_departmentsUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$shops_departmentsPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
    /**
     * Create or update one Shops_departments.
     * @param {shops_departmentsUpsertArgs} args - Arguments to update or create a Shops_departments.
     * @example
     * // Update or create a Shops_departments
     * const shops_departments = await prisma.shops_departments.upsert({
     *   create: {
     *     // ... data to create a Shops_departments
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the Shops_departments we want to update
     *   }
     * })
     */
    upsert<T extends shops_departmentsUpsertArgs>(args: Prisma.SelectSubset<T, shops_departmentsUpsertArgs<ExtArgs>>): Prisma.Prisma__shops_departmentsClient<runtime.Types.Result.GetResult<Prisma.$shops_departmentsPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Count the number of Shops_departments.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {shops_departmentsCountArgs} args - Arguments to filter Shops_departments to count.
     * @example
     * // Count the number of Shops_departments
     * const count = await prisma.shops_departments.count({
     *   where: {
     *     // ... the filter for the Shops_departments we want to count
     *   }
     * })
    **/
    count<T extends shops_departmentsCountArgs>(args?: Prisma.Subset<T, shops_departmentsCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], Shops_departmentsCountAggregateOutputType> : number>;
    /**
     * Allows you to perform aggregations operations on a Shops_departments.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {Shops_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 Shops_departmentsAggregateArgs>(args: Prisma.Subset<T, Shops_departmentsAggregateArgs>): Prisma.PrismaPromise<GetShops_departmentsAggregateType<T>>;
    /**
     * Group by Shops_departments.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {shops_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 shops_departmentsGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
        orderBy: shops_departmentsGroupByArgs['orderBy'];
    } : {
        orderBy?: shops_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, shops_departmentsGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetShops_departmentsGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
    /**
     * Fields of the shops_departments model
     */
    readonly fields: shops_departmentsFieldRefs;
}
/**
 * The delegate class that acts as a "Promise-like" for shops_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__shops_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.shops_departments$departmentsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.shops_departments$departmentsArgs<ExtArgs>>): Prisma.Prisma__departmentsClient<runtime.Types.Result.GetResult<Prisma.$departmentsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    shops<T extends Prisma.shops_departments$shopsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.shops_departments$shopsArgs<ExtArgs>>): Prisma.Prisma__shopsClient<runtime.Types.Result.GetResult<Prisma.$shopsPayload<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 shops_departments model
 */
export interface shops_departmentsFieldRefs {
    readonly id: Prisma.FieldRef<"shops_departments", 'Int'>;
    readonly shops_id: Prisma.FieldRef<"shops_departments", 'Int'>;
    readonly departments_id: Prisma.FieldRef<"shops_departments", 'Int'>;
}
/**
 * shops_departments findUnique
 */
export type shops_departmentsFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the shops_departments
     */
    select?: Prisma.shops_departmentsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the shops_departments
     */
    omit?: Prisma.shops_departmentsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.shops_departmentsInclude<ExtArgs> | null;
    /**
     * Filter, which shops_departments to fetch.
     */
    where: Prisma.shops_departmentsWhereUniqueInput;
};
/**
 * shops_departments findUniqueOrThrow
 */
export type shops_departmentsFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the shops_departments
     */
    select?: Prisma.shops_departmentsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the shops_departments
     */
    omit?: Prisma.shops_departmentsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.shops_departmentsInclude<ExtArgs> | null;
    /**
     * Filter, which shops_departments to fetch.
     */
    where: Prisma.shops_departmentsWhereUniqueInput;
};
/**
 * shops_departments findFirst
 */
export type shops_departmentsFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the shops_departments
     */
    select?: Prisma.shops_departmentsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the shops_departments
     */
    omit?: Prisma.shops_departmentsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.shops_departmentsInclude<ExtArgs> | null;
    /**
     * Filter, which shops_departments to fetch.
     */
    where?: Prisma.shops_departmentsWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of shops_departments to fetch.
     */
    orderBy?: Prisma.shops_departmentsOrderByWithRelationInput | Prisma.shops_departmentsOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for searching for shops_departments.
     */
    cursor?: Prisma.shops_departmentsWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` shops_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` shops_departments.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     *
     * Filter by unique combinations of shops_departments.
     */
    distinct?: Prisma.Shops_departmentsScalarFieldEnum | Prisma.Shops_departmentsScalarFieldEnum[];
};
/**
 * shops_departments findFirstOrThrow
 */
export type shops_departmentsFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the shops_departments
     */
    select?: Prisma.shops_departmentsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the shops_departments
     */
    omit?: Prisma.shops_departmentsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.shops_departmentsInclude<ExtArgs> | null;
    /**
     * Filter, which shops_departments to fetch.
     */
    where?: Prisma.shops_departmentsWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of shops_departments to fetch.
     */
    orderBy?: Prisma.shops_departmentsOrderByWithRelationInput | Prisma.shops_departmentsOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for searching for shops_departments.
     */
    cursor?: Prisma.shops_departmentsWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` shops_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` shops_departments.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     *
     * Filter by unique combinations of shops_departments.
     */
    distinct?: Prisma.Shops_departmentsScalarFieldEnum | Prisma.Shops_departmentsScalarFieldEnum[];
};
/**
 * shops_departments findMany
 */
export type shops_departmentsFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the shops_departments
     */
    select?: Prisma.shops_departmentsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the shops_departments
     */
    omit?: Prisma.shops_departmentsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.shops_departmentsInclude<ExtArgs> | null;
    /**
     * Filter, which shops_departments to fetch.
     */
    where?: Prisma.shops_departmentsWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of shops_departments to fetch.
     */
    orderBy?: Prisma.shops_departmentsOrderByWithRelationInput | Prisma.shops_departmentsOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for listing shops_departments.
     */
    cursor?: Prisma.shops_departmentsWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` shops_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` shops_departments.
     */
    skip?: number;
    distinct?: Prisma.Shops_departmentsScalarFieldEnum | Prisma.Shops_departmentsScalarFieldEnum[];
};
/**
 * shops_departments create
 */
export type shops_departmentsCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the shops_departments
     */
    select?: Prisma.shops_departmentsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the shops_departments
     */
    omit?: Prisma.shops_departmentsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.shops_departmentsInclude<ExtArgs> | null;
    /**
     * The data needed to create a shops_departments.
     */
    data?: Prisma.XOR<Prisma.shops_departmentsCreateInput, Prisma.shops_departmentsUncheckedCreateInput>;
};
/**
 * shops_departments createMany
 */
export type shops_departmentsCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * The data used to create many shops_departments.
     */
    data: Prisma.shops_departmentsCreateManyInput | Prisma.shops_departmentsCreateManyInput[];
    skipDuplicates?: boolean;
};
/**
 * shops_departments createManyAndReturn
 */
export type shops_departmentsCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the shops_departments
     */
    select?: Prisma.shops_departmentsSelectCreateManyAndReturn<ExtArgs> | null;
    /**
     * Omit specific fields from the shops_departments
     */
    omit?: Prisma.shops_departmentsOmit<ExtArgs> | null;
    /**
     * The data used to create many shops_departments.
     */
    data: Prisma.shops_departmentsCreateManyInput | Prisma.shops_departmentsCreateManyInput[];
    skipDuplicates?: boolean;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.shops_departmentsIncludeCreateManyAndReturn<ExtArgs> | null;
};
/**
 * shops_departments update
 */
export type shops_departmentsUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the shops_departments
     */
    select?: Prisma.shops_departmentsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the shops_departments
     */
    omit?: Prisma.shops_departmentsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.shops_departmentsInclude<ExtArgs> | null;
    /**
     * The data needed to update a shops_departments.
     */
    data: Prisma.XOR<Prisma.shops_departmentsUpdateInput, Prisma.shops_departmentsUncheckedUpdateInput>;
    /**
     * Choose, which shops_departments to update.
     */
    where: Prisma.shops_departmentsWhereUniqueInput;
};
/**
 * shops_departments updateMany
 */
export type shops_departmentsUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * The data used to update shops_departments.
     */
    data: Prisma.XOR<Prisma.shops_departmentsUpdateManyMutationInput, Prisma.shops_departmentsUncheckedUpdateManyInput>;
    /**
     * Filter which shops_departments to update
     */
    where?: Prisma.shops_departmentsWhereInput;
    /**
     * Limit how many shops_departments to update.
     */
    limit?: number;
};
/**
 * shops_departments updateManyAndReturn
 */
export type shops_departmentsUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the shops_departments
     */
    select?: Prisma.shops_departmentsSelectUpdateManyAndReturn<ExtArgs> | null;
    /**
     * Omit specific fields from the shops_departments
     */
    omit?: Prisma.shops_departmentsOmit<ExtArgs> | null;
    /**
     * The data used to update shops_departments.
     */
    data: Prisma.XOR<Prisma.shops_departmentsUpdateManyMutationInput, Prisma.shops_departmentsUncheckedUpdateManyInput>;
    /**
     * Filter which shops_departments to update
     */
    where?: Prisma.shops_departmentsWhereInput;
    /**
     * Limit how many shops_departments to update.
     */
    limit?: number;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.shops_departmentsIncludeUpdateManyAndReturn<ExtArgs> | null;
};
/**
 * shops_departments upsert
 */
export type shops_departmentsUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the shops_departments
     */
    select?: Prisma.shops_departmentsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the shops_departments
     */
    omit?: Prisma.shops_departmentsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.shops_departmentsInclude<ExtArgs> | null;
    /**
     * The filter to search for the shops_departments to update in case it exists.
     */
    where: Prisma.shops_departmentsWhereUniqueInput;
    /**
     * In case the shops_departments found by the `where` argument doesn't exist, create a new shops_departments with this data.
     */
    create: Prisma.XOR<Prisma.shops_departmentsCreateInput, Prisma.shops_departmentsUncheckedCreateInput>;
    /**
     * In case the shops_departments was found with the provided `where` argument, update it with this data.
     */
    update: Prisma.XOR<Prisma.shops_departmentsUpdateInput, Prisma.shops_departmentsUncheckedUpdateInput>;
};
/**
 * shops_departments delete
 */
export type shops_departmentsDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the shops_departments
     */
    select?: Prisma.shops_departmentsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the shops_departments
     */
    omit?: Prisma.shops_departmentsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.shops_departmentsInclude<ExtArgs> | null;
    /**
     * Filter which shops_departments to delete.
     */
    where: Prisma.shops_departmentsWhereUniqueInput;
};
/**
 * shops_departments deleteMany
 */
export type shops_departmentsDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Filter which shops_departments to delete
     */
    where?: Prisma.shops_departmentsWhereInput;
    /**
     * Limit how many shops_departments to delete.
     */
    limit?: number;
};
/**
 * shops_departments.departments
 */
export type shops_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;
};
/**
 * shops_departments.shops
 */
export type shops_departments$shopsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the shops
     */
    select?: Prisma.shopsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the shops
     */
    omit?: Prisma.shopsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.shopsInclude<ExtArgs> | null;
    where?: Prisma.shopsWhereInput;
};
/**
 * shops_departments without action
 */
export type shops_departmentsDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the shops_departments
     */
    select?: Prisma.shops_departmentsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the shops_departments
     */
    omit?: Prisma.shops_departmentsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.shops_departmentsInclude<ExtArgs> | null;
};
export {};
