import type * as runtime from "@prisma/client/runtime/client";
import type * as Prisma from "../internal/prismaNamespace";
/**
 * Model videos_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 videos_departmentsModel = runtime.Types.Result.DefaultSelection<Prisma.$videos_departmentsPayload>;
export type AggregateVideos_departments = {
    _count: Videos_departmentsCountAggregateOutputType | null;
    _avg: Videos_departmentsAvgAggregateOutputType | null;
    _sum: Videos_departmentsSumAggregateOutputType | null;
    _min: Videos_departmentsMinAggregateOutputType | null;
    _max: Videos_departmentsMaxAggregateOutputType | null;
};
export type Videos_departmentsAvgAggregateOutputType = {
    id: number | null;
    videos_id: number | null;
    departments_id: number | null;
};
export type Videos_departmentsSumAggregateOutputType = {
    id: number | null;
    videos_id: number | null;
    departments_id: number | null;
};
export type Videos_departmentsMinAggregateOutputType = {
    id: number | null;
    videos_id: number | null;
    departments_id: number | null;
};
export type Videos_departmentsMaxAggregateOutputType = {
    id: number | null;
    videos_id: number | null;
    departments_id: number | null;
};
export type Videos_departmentsCountAggregateOutputType = {
    id: number;
    videos_id: number;
    departments_id: number;
    _all: number;
};
export type Videos_departmentsAvgAggregateInputType = {
    id?: true;
    videos_id?: true;
    departments_id?: true;
};
export type Videos_departmentsSumAggregateInputType = {
    id?: true;
    videos_id?: true;
    departments_id?: true;
};
export type Videos_departmentsMinAggregateInputType = {
    id?: true;
    videos_id?: true;
    departments_id?: true;
};
export type Videos_departmentsMaxAggregateInputType = {
    id?: true;
    videos_id?: true;
    departments_id?: true;
};
export type Videos_departmentsCountAggregateInputType = {
    id?: true;
    videos_id?: true;
    departments_id?: true;
    _all?: true;
};
export type Videos_departmentsAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Filter which videos_departments to aggregate.
     */
    where?: Prisma.videos_departmentsWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of videos_departments to fetch.
     */
    orderBy?: Prisma.videos_departmentsOrderByWithRelationInput | Prisma.videos_departmentsOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the start position
     */
    cursor?: Prisma.videos_departmentsWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` videos_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` videos_departments.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Count returned videos_departments
    **/
    _count?: true | Videos_departmentsCountAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to average
    **/
    _avg?: Videos_departmentsAvgAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to sum
    **/
    _sum?: Videos_departmentsSumAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to find the minimum value
    **/
    _min?: Videos_departmentsMinAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to find the maximum value
    **/
    _max?: Videos_departmentsMaxAggregateInputType;
};
export type GetVideos_departmentsAggregateType<T extends Videos_departmentsAggregateArgs> = {
    [P in keyof T & keyof AggregateVideos_departments]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateVideos_departments[P]> : Prisma.GetScalarType<T[P], AggregateVideos_departments[P]>;
};
export type videos_departmentsGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    where?: Prisma.videos_departmentsWhereInput;
    orderBy?: Prisma.videos_departmentsOrderByWithAggregationInput | Prisma.videos_departmentsOrderByWithAggregationInput[];
    by: Prisma.Videos_departmentsScalarFieldEnum[] | Prisma.Videos_departmentsScalarFieldEnum;
    having?: Prisma.videos_departmentsScalarWhereWithAggregatesInput;
    take?: number;
    skip?: number;
    _count?: Videos_departmentsCountAggregateInputType | true;
    _avg?: Videos_departmentsAvgAggregateInputType;
    _sum?: Videos_departmentsSumAggregateInputType;
    _min?: Videos_departmentsMinAggregateInputType;
    _max?: Videos_departmentsMaxAggregateInputType;
};
export type Videos_departmentsGroupByOutputType = {
    id: number;
    videos_id: number | null;
    departments_id: number | null;
    _count: Videos_departmentsCountAggregateOutputType | null;
    _avg: Videos_departmentsAvgAggregateOutputType | null;
    _sum: Videos_departmentsSumAggregateOutputType | null;
    _min: Videos_departmentsMinAggregateOutputType | null;
    _max: Videos_departmentsMaxAggregateOutputType | null;
};
type GetVideos_departmentsGroupByPayload<T extends videos_departmentsGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<Videos_departmentsGroupByOutputType, T['by']> & {
    [P in ((keyof T) & (keyof Videos_departmentsGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], Videos_departmentsGroupByOutputType[P]> : Prisma.GetScalarType<T[P], Videos_departmentsGroupByOutputType[P]>;
}>>;
export type videos_departmentsWhereInput = {
    AND?: Prisma.videos_departmentsWhereInput | Prisma.videos_departmentsWhereInput[];
    OR?: Prisma.videos_departmentsWhereInput[];
    NOT?: Prisma.videos_departmentsWhereInput | Prisma.videos_departmentsWhereInput[];
    id?: Prisma.IntFilter<"videos_departments"> | number;
    videos_id?: Prisma.IntNullableFilter<"videos_departments"> | number | null;
    departments_id?: Prisma.IntNullableFilter<"videos_departments"> | number | null;
    departments?: Prisma.XOR<Prisma.DepartmentsNullableScalarRelationFilter, Prisma.departmentsWhereInput> | null;
    videos?: Prisma.XOR<Prisma.VideosNullableScalarRelationFilter, Prisma.videosWhereInput> | null;
};
export type videos_departmentsOrderByWithRelationInput = {
    id?: Prisma.SortOrder;
    videos_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    departments_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    departments?: Prisma.departmentsOrderByWithRelationInput;
    videos?: Prisma.videosOrderByWithRelationInput;
};
export type videos_departmentsWhereUniqueInput = Prisma.AtLeast<{
    id?: number;
    AND?: Prisma.videos_departmentsWhereInput | Prisma.videos_departmentsWhereInput[];
    OR?: Prisma.videos_departmentsWhereInput[];
    NOT?: Prisma.videos_departmentsWhereInput | Prisma.videos_departmentsWhereInput[];
    videos_id?: Prisma.IntNullableFilter<"videos_departments"> | number | null;
    departments_id?: Prisma.IntNullableFilter<"videos_departments"> | number | null;
    departments?: Prisma.XOR<Prisma.DepartmentsNullableScalarRelationFilter, Prisma.departmentsWhereInput> | null;
    videos?: Prisma.XOR<Prisma.VideosNullableScalarRelationFilter, Prisma.videosWhereInput> | null;
}, "id">;
export type videos_departmentsOrderByWithAggregationInput = {
    id?: Prisma.SortOrder;
    videos_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    departments_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    _count?: Prisma.videos_departmentsCountOrderByAggregateInput;
    _avg?: Prisma.videos_departmentsAvgOrderByAggregateInput;
    _max?: Prisma.videos_departmentsMaxOrderByAggregateInput;
    _min?: Prisma.videos_departmentsMinOrderByAggregateInput;
    _sum?: Prisma.videos_departmentsSumOrderByAggregateInput;
};
export type videos_departmentsScalarWhereWithAggregatesInput = {
    AND?: Prisma.videos_departmentsScalarWhereWithAggregatesInput | Prisma.videos_departmentsScalarWhereWithAggregatesInput[];
    OR?: Prisma.videos_departmentsScalarWhereWithAggregatesInput[];
    NOT?: Prisma.videos_departmentsScalarWhereWithAggregatesInput | Prisma.videos_departmentsScalarWhereWithAggregatesInput[];
    id?: Prisma.IntWithAggregatesFilter<"videos_departments"> | number;
    videos_id?: Prisma.IntNullableWithAggregatesFilter<"videos_departments"> | number | null;
    departments_id?: Prisma.IntNullableWithAggregatesFilter<"videos_departments"> | number | null;
};
export type videos_departmentsCreateInput = {
    departments?: Prisma.departmentsCreateNestedOneWithoutVideos_departmentsInput;
    videos?: Prisma.videosCreateNestedOneWithoutVideos_departmentsInput;
};
export type videos_departmentsUncheckedCreateInput = {
    id?: number;
    videos_id?: number | null;
    departments_id?: number | null;
};
export type videos_departmentsUpdateInput = {
    departments?: Prisma.departmentsUpdateOneWithoutVideos_departmentsNestedInput;
    videos?: Prisma.videosUpdateOneWithoutVideos_departmentsNestedInput;
};
export type videos_departmentsUncheckedUpdateInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    videos_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
    departments_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type videos_departmentsCreateManyInput = {
    id?: number;
    videos_id?: number | null;
    departments_id?: number | null;
};
export type videos_departmentsUpdateManyMutationInput = {};
export type videos_departmentsUncheckedUpdateManyInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    videos_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
    departments_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type Videos_departmentsListRelationFilter = {
    every?: Prisma.videos_departmentsWhereInput;
    some?: Prisma.videos_departmentsWhereInput;
    none?: Prisma.videos_departmentsWhereInput;
};
export type videos_departmentsOrderByRelationAggregateInput = {
    _count?: Prisma.SortOrder;
};
export type videos_departmentsCountOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    videos_id?: Prisma.SortOrder;
    departments_id?: Prisma.SortOrder;
};
export type videos_departmentsAvgOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    videos_id?: Prisma.SortOrder;
    departments_id?: Prisma.SortOrder;
};
export type videos_departmentsMaxOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    videos_id?: Prisma.SortOrder;
    departments_id?: Prisma.SortOrder;
};
export type videos_departmentsMinOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    videos_id?: Prisma.SortOrder;
    departments_id?: Prisma.SortOrder;
};
export type videos_departmentsSumOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    videos_id?: Prisma.SortOrder;
    departments_id?: Prisma.SortOrder;
};
export type videos_departmentsCreateNestedManyWithoutDepartmentsInput = {
    create?: Prisma.XOR<Prisma.videos_departmentsCreateWithoutDepartmentsInput, Prisma.videos_departmentsUncheckedCreateWithoutDepartmentsInput> | Prisma.videos_departmentsCreateWithoutDepartmentsInput[] | Prisma.videos_departmentsUncheckedCreateWithoutDepartmentsInput[];
    connectOrCreate?: Prisma.videos_departmentsCreateOrConnectWithoutDepartmentsInput | Prisma.videos_departmentsCreateOrConnectWithoutDepartmentsInput[];
    createMany?: Prisma.videos_departmentsCreateManyDepartmentsInputEnvelope;
    connect?: Prisma.videos_departmentsWhereUniqueInput | Prisma.videos_departmentsWhereUniqueInput[];
};
export type videos_departmentsUncheckedCreateNestedManyWithoutDepartmentsInput = {
    create?: Prisma.XOR<Prisma.videos_departmentsCreateWithoutDepartmentsInput, Prisma.videos_departmentsUncheckedCreateWithoutDepartmentsInput> | Prisma.videos_departmentsCreateWithoutDepartmentsInput[] | Prisma.videos_departmentsUncheckedCreateWithoutDepartmentsInput[];
    connectOrCreate?: Prisma.videos_departmentsCreateOrConnectWithoutDepartmentsInput | Prisma.videos_departmentsCreateOrConnectWithoutDepartmentsInput[];
    createMany?: Prisma.videos_departmentsCreateManyDepartmentsInputEnvelope;
    connect?: Prisma.videos_departmentsWhereUniqueInput | Prisma.videos_departmentsWhereUniqueInput[];
};
export type videos_departmentsUpdateManyWithoutDepartmentsNestedInput = {
    create?: Prisma.XOR<Prisma.videos_departmentsCreateWithoutDepartmentsInput, Prisma.videos_departmentsUncheckedCreateWithoutDepartmentsInput> | Prisma.videos_departmentsCreateWithoutDepartmentsInput[] | Prisma.videos_departmentsUncheckedCreateWithoutDepartmentsInput[];
    connectOrCreate?: Prisma.videos_departmentsCreateOrConnectWithoutDepartmentsInput | Prisma.videos_departmentsCreateOrConnectWithoutDepartmentsInput[];
    upsert?: Prisma.videos_departmentsUpsertWithWhereUniqueWithoutDepartmentsInput | Prisma.videos_departmentsUpsertWithWhereUniqueWithoutDepartmentsInput[];
    createMany?: Prisma.videos_departmentsCreateManyDepartmentsInputEnvelope;
    set?: Prisma.videos_departmentsWhereUniqueInput | Prisma.videos_departmentsWhereUniqueInput[];
    disconnect?: Prisma.videos_departmentsWhereUniqueInput | Prisma.videos_departmentsWhereUniqueInput[];
    delete?: Prisma.videos_departmentsWhereUniqueInput | Prisma.videos_departmentsWhereUniqueInput[];
    connect?: Prisma.videos_departmentsWhereUniqueInput | Prisma.videos_departmentsWhereUniqueInput[];
    update?: Prisma.videos_departmentsUpdateWithWhereUniqueWithoutDepartmentsInput | Prisma.videos_departmentsUpdateWithWhereUniqueWithoutDepartmentsInput[];
    updateMany?: Prisma.videos_departmentsUpdateManyWithWhereWithoutDepartmentsInput | Prisma.videos_departmentsUpdateManyWithWhereWithoutDepartmentsInput[];
    deleteMany?: Prisma.videos_departmentsScalarWhereInput | Prisma.videos_departmentsScalarWhereInput[];
};
export type videos_departmentsUncheckedUpdateManyWithoutDepartmentsNestedInput = {
    create?: Prisma.XOR<Prisma.videos_departmentsCreateWithoutDepartmentsInput, Prisma.videos_departmentsUncheckedCreateWithoutDepartmentsInput> | Prisma.videos_departmentsCreateWithoutDepartmentsInput[] | Prisma.videos_departmentsUncheckedCreateWithoutDepartmentsInput[];
    connectOrCreate?: Prisma.videos_departmentsCreateOrConnectWithoutDepartmentsInput | Prisma.videos_departmentsCreateOrConnectWithoutDepartmentsInput[];
    upsert?: Prisma.videos_departmentsUpsertWithWhereUniqueWithoutDepartmentsInput | Prisma.videos_departmentsUpsertWithWhereUniqueWithoutDepartmentsInput[];
    createMany?: Prisma.videos_departmentsCreateManyDepartmentsInputEnvelope;
    set?: Prisma.videos_departmentsWhereUniqueInput | Prisma.videos_departmentsWhereUniqueInput[];
    disconnect?: Prisma.videos_departmentsWhereUniqueInput | Prisma.videos_departmentsWhereUniqueInput[];
    delete?: Prisma.videos_departmentsWhereUniqueInput | Prisma.videos_departmentsWhereUniqueInput[];
    connect?: Prisma.videos_departmentsWhereUniqueInput | Prisma.videos_departmentsWhereUniqueInput[];
    update?: Prisma.videos_departmentsUpdateWithWhereUniqueWithoutDepartmentsInput | Prisma.videos_departmentsUpdateWithWhereUniqueWithoutDepartmentsInput[];
    updateMany?: Prisma.videos_departmentsUpdateManyWithWhereWithoutDepartmentsInput | Prisma.videos_departmentsUpdateManyWithWhereWithoutDepartmentsInput[];
    deleteMany?: Prisma.videos_departmentsScalarWhereInput | Prisma.videos_departmentsScalarWhereInput[];
};
export type videos_departmentsCreateNestedManyWithoutVideosInput = {
    create?: Prisma.XOR<Prisma.videos_departmentsCreateWithoutVideosInput, Prisma.videos_departmentsUncheckedCreateWithoutVideosInput> | Prisma.videos_departmentsCreateWithoutVideosInput[] | Prisma.videos_departmentsUncheckedCreateWithoutVideosInput[];
    connectOrCreate?: Prisma.videos_departmentsCreateOrConnectWithoutVideosInput | Prisma.videos_departmentsCreateOrConnectWithoutVideosInput[];
    createMany?: Prisma.videos_departmentsCreateManyVideosInputEnvelope;
    connect?: Prisma.videos_departmentsWhereUniqueInput | Prisma.videos_departmentsWhereUniqueInput[];
};
export type videos_departmentsUncheckedCreateNestedManyWithoutVideosInput = {
    create?: Prisma.XOR<Prisma.videos_departmentsCreateWithoutVideosInput, Prisma.videos_departmentsUncheckedCreateWithoutVideosInput> | Prisma.videos_departmentsCreateWithoutVideosInput[] | Prisma.videos_departmentsUncheckedCreateWithoutVideosInput[];
    connectOrCreate?: Prisma.videos_departmentsCreateOrConnectWithoutVideosInput | Prisma.videos_departmentsCreateOrConnectWithoutVideosInput[];
    createMany?: Prisma.videos_departmentsCreateManyVideosInputEnvelope;
    connect?: Prisma.videos_departmentsWhereUniqueInput | Prisma.videos_departmentsWhereUniqueInput[];
};
export type videos_departmentsUpdateManyWithoutVideosNestedInput = {
    create?: Prisma.XOR<Prisma.videos_departmentsCreateWithoutVideosInput, Prisma.videos_departmentsUncheckedCreateWithoutVideosInput> | Prisma.videos_departmentsCreateWithoutVideosInput[] | Prisma.videos_departmentsUncheckedCreateWithoutVideosInput[];
    connectOrCreate?: Prisma.videos_departmentsCreateOrConnectWithoutVideosInput | Prisma.videos_departmentsCreateOrConnectWithoutVideosInput[];
    upsert?: Prisma.videos_departmentsUpsertWithWhereUniqueWithoutVideosInput | Prisma.videos_departmentsUpsertWithWhereUniqueWithoutVideosInput[];
    createMany?: Prisma.videos_departmentsCreateManyVideosInputEnvelope;
    set?: Prisma.videos_departmentsWhereUniqueInput | Prisma.videos_departmentsWhereUniqueInput[];
    disconnect?: Prisma.videos_departmentsWhereUniqueInput | Prisma.videos_departmentsWhereUniqueInput[];
    delete?: Prisma.videos_departmentsWhereUniqueInput | Prisma.videos_departmentsWhereUniqueInput[];
    connect?: Prisma.videos_departmentsWhereUniqueInput | Prisma.videos_departmentsWhereUniqueInput[];
    update?: Prisma.videos_departmentsUpdateWithWhereUniqueWithoutVideosInput | Prisma.videos_departmentsUpdateWithWhereUniqueWithoutVideosInput[];
    updateMany?: Prisma.videos_departmentsUpdateManyWithWhereWithoutVideosInput | Prisma.videos_departmentsUpdateManyWithWhereWithoutVideosInput[];
    deleteMany?: Prisma.videos_departmentsScalarWhereInput | Prisma.videos_departmentsScalarWhereInput[];
};
export type videos_departmentsUncheckedUpdateManyWithoutVideosNestedInput = {
    create?: Prisma.XOR<Prisma.videos_departmentsCreateWithoutVideosInput, Prisma.videos_departmentsUncheckedCreateWithoutVideosInput> | Prisma.videos_departmentsCreateWithoutVideosInput[] | Prisma.videos_departmentsUncheckedCreateWithoutVideosInput[];
    connectOrCreate?: Prisma.videos_departmentsCreateOrConnectWithoutVideosInput | Prisma.videos_departmentsCreateOrConnectWithoutVideosInput[];
    upsert?: Prisma.videos_departmentsUpsertWithWhereUniqueWithoutVideosInput | Prisma.videos_departmentsUpsertWithWhereUniqueWithoutVideosInput[];
    createMany?: Prisma.videos_departmentsCreateManyVideosInputEnvelope;
    set?: Prisma.videos_departmentsWhereUniqueInput | Prisma.videos_departmentsWhereUniqueInput[];
    disconnect?: Prisma.videos_departmentsWhereUniqueInput | Prisma.videos_departmentsWhereUniqueInput[];
    delete?: Prisma.videos_departmentsWhereUniqueInput | Prisma.videos_departmentsWhereUniqueInput[];
    connect?: Prisma.videos_departmentsWhereUniqueInput | Prisma.videos_departmentsWhereUniqueInput[];
    update?: Prisma.videos_departmentsUpdateWithWhereUniqueWithoutVideosInput | Prisma.videos_departmentsUpdateWithWhereUniqueWithoutVideosInput[];
    updateMany?: Prisma.videos_departmentsUpdateManyWithWhereWithoutVideosInput | Prisma.videos_departmentsUpdateManyWithWhereWithoutVideosInput[];
    deleteMany?: Prisma.videos_departmentsScalarWhereInput | Prisma.videos_departmentsScalarWhereInput[];
};
export type videos_departmentsCreateWithoutDepartmentsInput = {
    videos?: Prisma.videosCreateNestedOneWithoutVideos_departmentsInput;
};
export type videos_departmentsUncheckedCreateWithoutDepartmentsInput = {
    id?: number;
    videos_id?: number | null;
};
export type videos_departmentsCreateOrConnectWithoutDepartmentsInput = {
    where: Prisma.videos_departmentsWhereUniqueInput;
    create: Prisma.XOR<Prisma.videos_departmentsCreateWithoutDepartmentsInput, Prisma.videos_departmentsUncheckedCreateWithoutDepartmentsInput>;
};
export type videos_departmentsCreateManyDepartmentsInputEnvelope = {
    data: Prisma.videos_departmentsCreateManyDepartmentsInput | Prisma.videos_departmentsCreateManyDepartmentsInput[];
    skipDuplicates?: boolean;
};
export type videos_departmentsUpsertWithWhereUniqueWithoutDepartmentsInput = {
    where: Prisma.videos_departmentsWhereUniqueInput;
    update: Prisma.XOR<Prisma.videos_departmentsUpdateWithoutDepartmentsInput, Prisma.videos_departmentsUncheckedUpdateWithoutDepartmentsInput>;
    create: Prisma.XOR<Prisma.videos_departmentsCreateWithoutDepartmentsInput, Prisma.videos_departmentsUncheckedCreateWithoutDepartmentsInput>;
};
export type videos_departmentsUpdateWithWhereUniqueWithoutDepartmentsInput = {
    where: Prisma.videos_departmentsWhereUniqueInput;
    data: Prisma.XOR<Prisma.videos_departmentsUpdateWithoutDepartmentsInput, Prisma.videos_departmentsUncheckedUpdateWithoutDepartmentsInput>;
};
export type videos_departmentsUpdateManyWithWhereWithoutDepartmentsInput = {
    where: Prisma.videos_departmentsScalarWhereInput;
    data: Prisma.XOR<Prisma.videos_departmentsUpdateManyMutationInput, Prisma.videos_departmentsUncheckedUpdateManyWithoutDepartmentsInput>;
};
export type videos_departmentsScalarWhereInput = {
    AND?: Prisma.videos_departmentsScalarWhereInput | Prisma.videos_departmentsScalarWhereInput[];
    OR?: Prisma.videos_departmentsScalarWhereInput[];
    NOT?: Prisma.videos_departmentsScalarWhereInput | Prisma.videos_departmentsScalarWhereInput[];
    id?: Prisma.IntFilter<"videos_departments"> | number;
    videos_id?: Prisma.IntNullableFilter<"videos_departments"> | number | null;
    departments_id?: Prisma.IntNullableFilter<"videos_departments"> | number | null;
};
export type videos_departmentsCreateWithoutVideosInput = {
    departments?: Prisma.departmentsCreateNestedOneWithoutVideos_departmentsInput;
};
export type videos_departmentsUncheckedCreateWithoutVideosInput = {
    id?: number;
    departments_id?: number | null;
};
export type videos_departmentsCreateOrConnectWithoutVideosInput = {
    where: Prisma.videos_departmentsWhereUniqueInput;
    create: Prisma.XOR<Prisma.videos_departmentsCreateWithoutVideosInput, Prisma.videos_departmentsUncheckedCreateWithoutVideosInput>;
};
export type videos_departmentsCreateManyVideosInputEnvelope = {
    data: Prisma.videos_departmentsCreateManyVideosInput | Prisma.videos_departmentsCreateManyVideosInput[];
    skipDuplicates?: boolean;
};
export type videos_departmentsUpsertWithWhereUniqueWithoutVideosInput = {
    where: Prisma.videos_departmentsWhereUniqueInput;
    update: Prisma.XOR<Prisma.videos_departmentsUpdateWithoutVideosInput, Prisma.videos_departmentsUncheckedUpdateWithoutVideosInput>;
    create: Prisma.XOR<Prisma.videos_departmentsCreateWithoutVideosInput, Prisma.videos_departmentsUncheckedCreateWithoutVideosInput>;
};
export type videos_departmentsUpdateWithWhereUniqueWithoutVideosInput = {
    where: Prisma.videos_departmentsWhereUniqueInput;
    data: Prisma.XOR<Prisma.videos_departmentsUpdateWithoutVideosInput, Prisma.videos_departmentsUncheckedUpdateWithoutVideosInput>;
};
export type videos_departmentsUpdateManyWithWhereWithoutVideosInput = {
    where: Prisma.videos_departmentsScalarWhereInput;
    data: Prisma.XOR<Prisma.videos_departmentsUpdateManyMutationInput, Prisma.videos_departmentsUncheckedUpdateManyWithoutVideosInput>;
};
export type videos_departmentsCreateManyDepartmentsInput = {
    id?: number;
    videos_id?: number | null;
};
export type videos_departmentsUpdateWithoutDepartmentsInput = {
    videos?: Prisma.videosUpdateOneWithoutVideos_departmentsNestedInput;
};
export type videos_departmentsUncheckedUpdateWithoutDepartmentsInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    videos_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type videos_departmentsUncheckedUpdateManyWithoutDepartmentsInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    videos_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type videos_departmentsCreateManyVideosInput = {
    id?: number;
    departments_id?: number | null;
};
export type videos_departmentsUpdateWithoutVideosInput = {
    departments?: Prisma.departmentsUpdateOneWithoutVideos_departmentsNestedInput;
};
export type videos_departmentsUncheckedUpdateWithoutVideosInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    departments_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type videos_departmentsUncheckedUpdateManyWithoutVideosInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    departments_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type videos_departmentsSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    videos_id?: boolean;
    departments_id?: boolean;
    departments?: boolean | Prisma.videos_departments$departmentsArgs<ExtArgs>;
    videos?: boolean | Prisma.videos_departments$videosArgs<ExtArgs>;
}, ExtArgs["result"]["videos_departments"]>;
export type videos_departmentsSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    videos_id?: boolean;
    departments_id?: boolean;
    departments?: boolean | Prisma.videos_departments$departmentsArgs<ExtArgs>;
    videos?: boolean | Prisma.videos_departments$videosArgs<ExtArgs>;
}, ExtArgs["result"]["videos_departments"]>;
export type videos_departmentsSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    videos_id?: boolean;
    departments_id?: boolean;
    departments?: boolean | Prisma.videos_departments$departmentsArgs<ExtArgs>;
    videos?: boolean | Prisma.videos_departments$videosArgs<ExtArgs>;
}, ExtArgs["result"]["videos_departments"]>;
export type videos_departmentsSelectScalar = {
    id?: boolean;
    videos_id?: boolean;
    departments_id?: boolean;
};
export type videos_departmentsOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "videos_id" | "departments_id", ExtArgs["result"]["videos_departments"]>;
export type videos_departmentsInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    departments?: boolean | Prisma.videos_departments$departmentsArgs<ExtArgs>;
    videos?: boolean | Prisma.videos_departments$videosArgs<ExtArgs>;
};
export type videos_departmentsIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    departments?: boolean | Prisma.videos_departments$departmentsArgs<ExtArgs>;
    videos?: boolean | Prisma.videos_departments$videosArgs<ExtArgs>;
};
export type videos_departmentsIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    departments?: boolean | Prisma.videos_departments$departmentsArgs<ExtArgs>;
    videos?: boolean | Prisma.videos_departments$videosArgs<ExtArgs>;
};
export type $videos_departmentsPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    name: "videos_departments";
    objects: {
        departments: Prisma.$departmentsPayload<ExtArgs> | null;
        videos: Prisma.$videosPayload<ExtArgs> | null;
    };
    scalars: runtime.Types.Extensions.GetPayloadResult<{
        id: number;
        videos_id: number | null;
        departments_id: number | null;
    }, ExtArgs["result"]["videos_departments"]>;
    composites: {};
};
export type videos_departmentsGetPayload<S extends boolean | null | undefined | videos_departmentsDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$videos_departmentsPayload, S>;
export type videos_departmentsCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<videos_departmentsFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
    select?: Videos_departmentsCountAggregateInputType | true;
};
export interface videos_departmentsDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
    [K: symbol]: {
        types: Prisma.TypeMap<ExtArgs>['model']['videos_departments'];
        meta: {
            name: 'videos_departments';
        };
    };
    /**
     * Find zero or one Videos_departments that matches the filter.
     * @param {videos_departmentsFindUniqueArgs} args - Arguments to find a Videos_departments
     * @example
     * // Get one Videos_departments
     * const videos_departments = await prisma.videos_departments.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends videos_departmentsFindUniqueArgs>(args: Prisma.SelectSubset<T, videos_departmentsFindUniqueArgs<ExtArgs>>): Prisma.Prisma__videos_departmentsClient<runtime.Types.Result.GetResult<Prisma.$videos_departmentsPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    /**
     * Find one Videos_departments that matches the filter or throw an error with `error.code='P2025'`
     * if no matches were found.
     * @param {videos_departmentsFindUniqueOrThrowArgs} args - Arguments to find a Videos_departments
     * @example
     * // Get one Videos_departments
     * const videos_departments = await prisma.videos_departments.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends videos_departmentsFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, videos_departmentsFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__videos_departmentsClient<runtime.Types.Result.GetResult<Prisma.$videos_departmentsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Find the first Videos_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 {videos_departmentsFindFirstArgs} args - Arguments to find a Videos_departments
     * @example
     * // Get one Videos_departments
     * const videos_departments = await prisma.videos_departments.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends videos_departmentsFindFirstArgs>(args?: Prisma.SelectSubset<T, videos_departmentsFindFirstArgs<ExtArgs>>): Prisma.Prisma__videos_departmentsClient<runtime.Types.Result.GetResult<Prisma.$videos_departmentsPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    /**
     * Find the first Videos_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 {videos_departmentsFindFirstOrThrowArgs} args - Arguments to find a Videos_departments
     * @example
     * // Get one Videos_departments
     * const videos_departments = await prisma.videos_departments.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends videos_departmentsFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, videos_departmentsFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__videos_departmentsClient<runtime.Types.Result.GetResult<Prisma.$videos_departmentsPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Find zero or more Videos_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 {videos_departmentsFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all Videos_departments
     * const videos_departments = await prisma.videos_departments.findMany()
     *
     * // Get first 10 Videos_departments
     * const videos_departments = await prisma.videos_departments.findMany({ take: 10 })
     *
     * // Only select the `id`
     * const videos_departmentsWithIdOnly = await prisma.videos_departments.findMany({ select: { id: true } })
     *
     */
    findMany<T extends videos_departmentsFindManyArgs>(args?: Prisma.SelectSubset<T, videos_departmentsFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$videos_departmentsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
    /**
     * Create a Videos_departments.
     * @param {videos_departmentsCreateArgs} args - Arguments to create a Videos_departments.
     * @example
     * // Create one Videos_departments
     * const Videos_departments = await prisma.videos_departments.create({
     *   data: {
     *     // ... data to create a Videos_departments
     *   }
     * })
     *
     */
    create<T extends videos_departmentsCreateArgs>(args: Prisma.SelectSubset<T, videos_departmentsCreateArgs<ExtArgs>>): Prisma.Prisma__videos_departmentsClient<runtime.Types.Result.GetResult<Prisma.$videos_departmentsPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Create many Videos_departments.
     * @param {videos_departmentsCreateManyArgs} args - Arguments to create many Videos_departments.
     * @example
     * // Create many Videos_departments
     * const videos_departments = await prisma.videos_departments.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     */
    createMany<T extends videos_departmentsCreateManyArgs>(args?: Prisma.SelectSubset<T, videos_departmentsCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Create many Videos_departments and returns the data saved in the database.
     * @param {videos_departmentsCreateManyAndReturnArgs} args - Arguments to create many Videos_departments.
     * @example
     * // Create many Videos_departments
     * const videos_departments = await prisma.videos_departments.createManyAndReturn({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     * // Create many Videos_departments and only return the `id`
     * const videos_departmentsWithIdOnly = await prisma.videos_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 videos_departmentsCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, videos_departmentsCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$videos_departmentsPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
    /**
     * Delete a Videos_departments.
     * @param {videos_departmentsDeleteArgs} args - Arguments to delete one Videos_departments.
     * @example
     * // Delete one Videos_departments
     * const Videos_departments = await prisma.videos_departments.delete({
     *   where: {
     *     // ... filter to delete one Videos_departments
     *   }
     * })
     *
     */
    delete<T extends videos_departmentsDeleteArgs>(args: Prisma.SelectSubset<T, videos_departmentsDeleteArgs<ExtArgs>>): Prisma.Prisma__videos_departmentsClient<runtime.Types.Result.GetResult<Prisma.$videos_departmentsPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Update one Videos_departments.
     * @param {videos_departmentsUpdateArgs} args - Arguments to update one Videos_departments.
     * @example
     * // Update one Videos_departments
     * const videos_departments = await prisma.videos_departments.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     *
     */
    update<T extends videos_departmentsUpdateArgs>(args: Prisma.SelectSubset<T, videos_departmentsUpdateArgs<ExtArgs>>): Prisma.Prisma__videos_departmentsClient<runtime.Types.Result.GetResult<Prisma.$videos_departmentsPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Delete zero or more Videos_departments.
     * @param {videos_departmentsDeleteManyArgs} args - Arguments to filter Videos_departments to delete.
     * @example
     * // Delete a few Videos_departments
     * const { count } = await prisma.videos_departments.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     *
     */
    deleteMany<T extends videos_departmentsDeleteManyArgs>(args?: Prisma.SelectSubset<T, videos_departmentsDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Update zero or more Videos_departments.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {videos_departmentsUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many Videos_departments
     * const videos_departments = await prisma.videos_departments.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     *
     */
    updateMany<T extends videos_departmentsUpdateManyArgs>(args: Prisma.SelectSubset<T, videos_departmentsUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Update zero or more Videos_departments and returns the data updated in the database.
     * @param {videos_departmentsUpdateManyAndReturnArgs} args - Arguments to update many Videos_departments.
     * @example
     * // Update many Videos_departments
     * const videos_departments = await prisma.videos_departments.updateManyAndReturn({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     * // Update zero or more Videos_departments and only return the `id`
     * const videos_departmentsWithIdOnly = await prisma.videos_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 videos_departmentsUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, videos_departmentsUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$videos_departmentsPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
    /**
     * Create or update one Videos_departments.
     * @param {videos_departmentsUpsertArgs} args - Arguments to update or create a Videos_departments.
     * @example
     * // Update or create a Videos_departments
     * const videos_departments = await prisma.videos_departments.upsert({
     *   create: {
     *     // ... data to create a Videos_departments
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the Videos_departments we want to update
     *   }
     * })
     */
    upsert<T extends videos_departmentsUpsertArgs>(args: Prisma.SelectSubset<T, videos_departmentsUpsertArgs<ExtArgs>>): Prisma.Prisma__videos_departmentsClient<runtime.Types.Result.GetResult<Prisma.$videos_departmentsPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Count the number of Videos_departments.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {videos_departmentsCountArgs} args - Arguments to filter Videos_departments to count.
     * @example
     * // Count the number of Videos_departments
     * const count = await prisma.videos_departments.count({
     *   where: {
     *     // ... the filter for the Videos_departments we want to count
     *   }
     * })
    **/
    count<T extends videos_departmentsCountArgs>(args?: Prisma.Subset<T, videos_departmentsCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], Videos_departmentsCountAggregateOutputType> : number>;
    /**
     * Allows you to perform aggregations operations on a Videos_departments.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {Videos_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 Videos_departmentsAggregateArgs>(args: Prisma.Subset<T, Videos_departmentsAggregateArgs>): Prisma.PrismaPromise<GetVideos_departmentsAggregateType<T>>;
    /**
     * Group by Videos_departments.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {videos_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 videos_departmentsGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
        orderBy: videos_departmentsGroupByArgs['orderBy'];
    } : {
        orderBy?: videos_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, videos_departmentsGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetVideos_departmentsGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
    /**
     * Fields of the videos_departments model
     */
    readonly fields: videos_departmentsFieldRefs;
}
/**
 * The delegate class that acts as a "Promise-like" for videos_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__videos_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.videos_departments$departmentsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.videos_departments$departmentsArgs<ExtArgs>>): Prisma.Prisma__departmentsClient<runtime.Types.Result.GetResult<Prisma.$departmentsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    videos<T extends Prisma.videos_departments$videosArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.videos_departments$videosArgs<ExtArgs>>): Prisma.Prisma__videosClient<runtime.Types.Result.GetResult<Prisma.$videosPayload<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 videos_departments model
 */
export interface videos_departmentsFieldRefs {
    readonly id: Prisma.FieldRef<"videos_departments", 'Int'>;
    readonly videos_id: Prisma.FieldRef<"videos_departments", 'Int'>;
    readonly departments_id: Prisma.FieldRef<"videos_departments", 'Int'>;
}
/**
 * videos_departments findUnique
 */
export type videos_departmentsFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the videos_departments
     */
    select?: Prisma.videos_departmentsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the videos_departments
     */
    omit?: Prisma.videos_departmentsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.videos_departmentsInclude<ExtArgs> | null;
    /**
     * Filter, which videos_departments to fetch.
     */
    where: Prisma.videos_departmentsWhereUniqueInput;
};
/**
 * videos_departments findUniqueOrThrow
 */
export type videos_departmentsFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the videos_departments
     */
    select?: Prisma.videos_departmentsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the videos_departments
     */
    omit?: Prisma.videos_departmentsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.videos_departmentsInclude<ExtArgs> | null;
    /**
     * Filter, which videos_departments to fetch.
     */
    where: Prisma.videos_departmentsWhereUniqueInput;
};
/**
 * videos_departments findFirst
 */
export type videos_departmentsFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the videos_departments
     */
    select?: Prisma.videos_departmentsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the videos_departments
     */
    omit?: Prisma.videos_departmentsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.videos_departmentsInclude<ExtArgs> | null;
    /**
     * Filter, which videos_departments to fetch.
     */
    where?: Prisma.videos_departmentsWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of videos_departments to fetch.
     */
    orderBy?: Prisma.videos_departmentsOrderByWithRelationInput | Prisma.videos_departmentsOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for searching for videos_departments.
     */
    cursor?: Prisma.videos_departmentsWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` videos_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` videos_departments.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     *
     * Filter by unique combinations of videos_departments.
     */
    distinct?: Prisma.Videos_departmentsScalarFieldEnum | Prisma.Videos_departmentsScalarFieldEnum[];
};
/**
 * videos_departments findFirstOrThrow
 */
export type videos_departmentsFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the videos_departments
     */
    select?: Prisma.videos_departmentsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the videos_departments
     */
    omit?: Prisma.videos_departmentsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.videos_departmentsInclude<ExtArgs> | null;
    /**
     * Filter, which videos_departments to fetch.
     */
    where?: Prisma.videos_departmentsWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of videos_departments to fetch.
     */
    orderBy?: Prisma.videos_departmentsOrderByWithRelationInput | Prisma.videos_departmentsOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for searching for videos_departments.
     */
    cursor?: Prisma.videos_departmentsWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` videos_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` videos_departments.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     *
     * Filter by unique combinations of videos_departments.
     */
    distinct?: Prisma.Videos_departmentsScalarFieldEnum | Prisma.Videos_departmentsScalarFieldEnum[];
};
/**
 * videos_departments findMany
 */
export type videos_departmentsFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the videos_departments
     */
    select?: Prisma.videos_departmentsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the videos_departments
     */
    omit?: Prisma.videos_departmentsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.videos_departmentsInclude<ExtArgs> | null;
    /**
     * Filter, which videos_departments to fetch.
     */
    where?: Prisma.videos_departmentsWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of videos_departments to fetch.
     */
    orderBy?: Prisma.videos_departmentsOrderByWithRelationInput | Prisma.videos_departmentsOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for listing videos_departments.
     */
    cursor?: Prisma.videos_departmentsWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` videos_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` videos_departments.
     */
    skip?: number;
    distinct?: Prisma.Videos_departmentsScalarFieldEnum | Prisma.Videos_departmentsScalarFieldEnum[];
};
/**
 * videos_departments create
 */
export type videos_departmentsCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the videos_departments
     */
    select?: Prisma.videos_departmentsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the videos_departments
     */
    omit?: Prisma.videos_departmentsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.videos_departmentsInclude<ExtArgs> | null;
    /**
     * The data needed to create a videos_departments.
     */
    data?: Prisma.XOR<Prisma.videos_departmentsCreateInput, Prisma.videos_departmentsUncheckedCreateInput>;
};
/**
 * videos_departments createMany
 */
export type videos_departmentsCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * The data used to create many videos_departments.
     */
    data: Prisma.videos_departmentsCreateManyInput | Prisma.videos_departmentsCreateManyInput[];
    skipDuplicates?: boolean;
};
/**
 * videos_departments createManyAndReturn
 */
export type videos_departmentsCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the videos_departments
     */
    select?: Prisma.videos_departmentsSelectCreateManyAndReturn<ExtArgs> | null;
    /**
     * Omit specific fields from the videos_departments
     */
    omit?: Prisma.videos_departmentsOmit<ExtArgs> | null;
    /**
     * The data used to create many videos_departments.
     */
    data: Prisma.videos_departmentsCreateManyInput | Prisma.videos_departmentsCreateManyInput[];
    skipDuplicates?: boolean;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.videos_departmentsIncludeCreateManyAndReturn<ExtArgs> | null;
};
/**
 * videos_departments update
 */
export type videos_departmentsUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the videos_departments
     */
    select?: Prisma.videos_departmentsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the videos_departments
     */
    omit?: Prisma.videos_departmentsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.videos_departmentsInclude<ExtArgs> | null;
    /**
     * The data needed to update a videos_departments.
     */
    data: Prisma.XOR<Prisma.videos_departmentsUpdateInput, Prisma.videos_departmentsUncheckedUpdateInput>;
    /**
     * Choose, which videos_departments to update.
     */
    where: Prisma.videos_departmentsWhereUniqueInput;
};
/**
 * videos_departments updateMany
 */
export type videos_departmentsUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * The data used to update videos_departments.
     */
    data: Prisma.XOR<Prisma.videos_departmentsUpdateManyMutationInput, Prisma.videos_departmentsUncheckedUpdateManyInput>;
    /**
     * Filter which videos_departments to update
     */
    where?: Prisma.videos_departmentsWhereInput;
    /**
     * Limit how many videos_departments to update.
     */
    limit?: number;
};
/**
 * videos_departments updateManyAndReturn
 */
export type videos_departmentsUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the videos_departments
     */
    select?: Prisma.videos_departmentsSelectUpdateManyAndReturn<ExtArgs> | null;
    /**
     * Omit specific fields from the videos_departments
     */
    omit?: Prisma.videos_departmentsOmit<ExtArgs> | null;
    /**
     * The data used to update videos_departments.
     */
    data: Prisma.XOR<Prisma.videos_departmentsUpdateManyMutationInput, Prisma.videos_departmentsUncheckedUpdateManyInput>;
    /**
     * Filter which videos_departments to update
     */
    where?: Prisma.videos_departmentsWhereInput;
    /**
     * Limit how many videos_departments to update.
     */
    limit?: number;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.videos_departmentsIncludeUpdateManyAndReturn<ExtArgs> | null;
};
/**
 * videos_departments upsert
 */
export type videos_departmentsUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the videos_departments
     */
    select?: Prisma.videos_departmentsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the videos_departments
     */
    omit?: Prisma.videos_departmentsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.videos_departmentsInclude<ExtArgs> | null;
    /**
     * The filter to search for the videos_departments to update in case it exists.
     */
    where: Prisma.videos_departmentsWhereUniqueInput;
    /**
     * In case the videos_departments found by the `where` argument doesn't exist, create a new videos_departments with this data.
     */
    create: Prisma.XOR<Prisma.videos_departmentsCreateInput, Prisma.videos_departmentsUncheckedCreateInput>;
    /**
     * In case the videos_departments was found with the provided `where` argument, update it with this data.
     */
    update: Prisma.XOR<Prisma.videos_departmentsUpdateInput, Prisma.videos_departmentsUncheckedUpdateInput>;
};
/**
 * videos_departments delete
 */
export type videos_departmentsDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the videos_departments
     */
    select?: Prisma.videos_departmentsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the videos_departments
     */
    omit?: Prisma.videos_departmentsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.videos_departmentsInclude<ExtArgs> | null;
    /**
     * Filter which videos_departments to delete.
     */
    where: Prisma.videos_departmentsWhereUniqueInput;
};
/**
 * videos_departments deleteMany
 */
export type videos_departmentsDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Filter which videos_departments to delete
     */
    where?: Prisma.videos_departmentsWhereInput;
    /**
     * Limit how many videos_departments to delete.
     */
    limit?: number;
};
/**
 * videos_departments.departments
 */
export type videos_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;
};
/**
 * videos_departments.videos
 */
export type videos_departments$videosArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the videos
     */
    select?: Prisma.videosSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the videos
     */
    omit?: Prisma.videosOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.videosInclude<ExtArgs> | null;
    where?: Prisma.videosWhereInput;
};
/**
 * videos_departments without action
 */
export type videos_departmentsDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the videos_departments
     */
    select?: Prisma.videos_departmentsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the videos_departments
     */
    omit?: Prisma.videos_departmentsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.videos_departmentsInclude<ExtArgs> | null;
};
export {};
