import type * as runtime from "@prisma/client/runtime/client";
import type * as Prisma from "../internal/prismaNamespace";
/**
 * Model directus_migrations
 * 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 directus_migrationsModel = runtime.Types.Result.DefaultSelection<Prisma.$directus_migrationsPayload>;
export type AggregateDirectus_migrations = {
    _count: Directus_migrationsCountAggregateOutputType | null;
    _min: Directus_migrationsMinAggregateOutputType | null;
    _max: Directus_migrationsMaxAggregateOutputType | null;
};
export type Directus_migrationsMinAggregateOutputType = {
    version: string | null;
    name: string | null;
    timestamp: Date | null;
};
export type Directus_migrationsMaxAggregateOutputType = {
    version: string | null;
    name: string | null;
    timestamp: Date | null;
};
export type Directus_migrationsCountAggregateOutputType = {
    version: number;
    name: number;
    timestamp: number;
    _all: number;
};
export type Directus_migrationsMinAggregateInputType = {
    version?: true;
    name?: true;
    timestamp?: true;
};
export type Directus_migrationsMaxAggregateInputType = {
    version?: true;
    name?: true;
    timestamp?: true;
};
export type Directus_migrationsCountAggregateInputType = {
    version?: true;
    name?: true;
    timestamp?: true;
    _all?: true;
};
export type Directus_migrationsAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Filter which directus_migrations to aggregate.
     */
    where?: Prisma.directus_migrationsWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of directus_migrations to fetch.
     */
    orderBy?: Prisma.directus_migrationsOrderByWithRelationInput | Prisma.directus_migrationsOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the start position
     */
    cursor?: Prisma.directus_migrationsWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` directus_migrations 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` directus_migrations.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Count returned directus_migrations
    **/
    _count?: true | Directus_migrationsCountAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to find the minimum value
    **/
    _min?: Directus_migrationsMinAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to find the maximum value
    **/
    _max?: Directus_migrationsMaxAggregateInputType;
};
export type GetDirectus_migrationsAggregateType<T extends Directus_migrationsAggregateArgs> = {
    [P in keyof T & keyof AggregateDirectus_migrations]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateDirectus_migrations[P]> : Prisma.GetScalarType<T[P], AggregateDirectus_migrations[P]>;
};
export type directus_migrationsGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    where?: Prisma.directus_migrationsWhereInput;
    orderBy?: Prisma.directus_migrationsOrderByWithAggregationInput | Prisma.directus_migrationsOrderByWithAggregationInput[];
    by: Prisma.Directus_migrationsScalarFieldEnum[] | Prisma.Directus_migrationsScalarFieldEnum;
    having?: Prisma.directus_migrationsScalarWhereWithAggregatesInput;
    take?: number;
    skip?: number;
    _count?: Directus_migrationsCountAggregateInputType | true;
    _min?: Directus_migrationsMinAggregateInputType;
    _max?: Directus_migrationsMaxAggregateInputType;
};
export type Directus_migrationsGroupByOutputType = {
    version: string;
    name: string;
    timestamp: Date | null;
    _count: Directus_migrationsCountAggregateOutputType | null;
    _min: Directus_migrationsMinAggregateOutputType | null;
    _max: Directus_migrationsMaxAggregateOutputType | null;
};
type GetDirectus_migrationsGroupByPayload<T extends directus_migrationsGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<Directus_migrationsGroupByOutputType, T['by']> & {
    [P in ((keyof T) & (keyof Directus_migrationsGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], Directus_migrationsGroupByOutputType[P]> : Prisma.GetScalarType<T[P], Directus_migrationsGroupByOutputType[P]>;
}>>;
export type directus_migrationsWhereInput = {
    AND?: Prisma.directus_migrationsWhereInput | Prisma.directus_migrationsWhereInput[];
    OR?: Prisma.directus_migrationsWhereInput[];
    NOT?: Prisma.directus_migrationsWhereInput | Prisma.directus_migrationsWhereInput[];
    version?: Prisma.StringFilter<"directus_migrations"> | string;
    name?: Prisma.StringFilter<"directus_migrations"> | string;
    timestamp?: Prisma.DateTimeNullableFilter<"directus_migrations"> | Date | string | null;
};
export type directus_migrationsOrderByWithRelationInput = {
    version?: Prisma.SortOrder;
    name?: Prisma.SortOrder;
    timestamp?: Prisma.SortOrderInput | Prisma.SortOrder;
};
export type directus_migrationsWhereUniqueInput = Prisma.AtLeast<{
    version?: string;
    AND?: Prisma.directus_migrationsWhereInput | Prisma.directus_migrationsWhereInput[];
    OR?: Prisma.directus_migrationsWhereInput[];
    NOT?: Prisma.directus_migrationsWhereInput | Prisma.directus_migrationsWhereInput[];
    name?: Prisma.StringFilter<"directus_migrations"> | string;
    timestamp?: Prisma.DateTimeNullableFilter<"directus_migrations"> | Date | string | null;
}, "version">;
export type directus_migrationsOrderByWithAggregationInput = {
    version?: Prisma.SortOrder;
    name?: Prisma.SortOrder;
    timestamp?: Prisma.SortOrderInput | Prisma.SortOrder;
    _count?: Prisma.directus_migrationsCountOrderByAggregateInput;
    _max?: Prisma.directus_migrationsMaxOrderByAggregateInput;
    _min?: Prisma.directus_migrationsMinOrderByAggregateInput;
};
export type directus_migrationsScalarWhereWithAggregatesInput = {
    AND?: Prisma.directus_migrationsScalarWhereWithAggregatesInput | Prisma.directus_migrationsScalarWhereWithAggregatesInput[];
    OR?: Prisma.directus_migrationsScalarWhereWithAggregatesInput[];
    NOT?: Prisma.directus_migrationsScalarWhereWithAggregatesInput | Prisma.directus_migrationsScalarWhereWithAggregatesInput[];
    version?: Prisma.StringWithAggregatesFilter<"directus_migrations"> | string;
    name?: Prisma.StringWithAggregatesFilter<"directus_migrations"> | string;
    timestamp?: Prisma.DateTimeNullableWithAggregatesFilter<"directus_migrations"> | Date | string | null;
};
export type directus_migrationsCreateInput = {
    version: string;
    name: string;
    timestamp?: Date | string | null;
};
export type directus_migrationsUncheckedCreateInput = {
    version: string;
    name: string;
    timestamp?: Date | string | null;
};
export type directus_migrationsUpdateInput = {
    version?: Prisma.StringFieldUpdateOperationsInput | string;
    name?: Prisma.StringFieldUpdateOperationsInput | string;
    timestamp?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
};
export type directus_migrationsUncheckedUpdateInput = {
    version?: Prisma.StringFieldUpdateOperationsInput | string;
    name?: Prisma.StringFieldUpdateOperationsInput | string;
    timestamp?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
};
export type directus_migrationsCreateManyInput = {
    version: string;
    name: string;
    timestamp?: Date | string | null;
};
export type directus_migrationsUpdateManyMutationInput = {
    version?: Prisma.StringFieldUpdateOperationsInput | string;
    name?: Prisma.StringFieldUpdateOperationsInput | string;
    timestamp?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
};
export type directus_migrationsUncheckedUpdateManyInput = {
    version?: Prisma.StringFieldUpdateOperationsInput | string;
    name?: Prisma.StringFieldUpdateOperationsInput | string;
    timestamp?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
};
export type directus_migrationsCountOrderByAggregateInput = {
    version?: Prisma.SortOrder;
    name?: Prisma.SortOrder;
    timestamp?: Prisma.SortOrder;
};
export type directus_migrationsMaxOrderByAggregateInput = {
    version?: Prisma.SortOrder;
    name?: Prisma.SortOrder;
    timestamp?: Prisma.SortOrder;
};
export type directus_migrationsMinOrderByAggregateInput = {
    version?: Prisma.SortOrder;
    name?: Prisma.SortOrder;
    timestamp?: Prisma.SortOrder;
};
export type directus_migrationsSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    version?: boolean;
    name?: boolean;
    timestamp?: boolean;
}, ExtArgs["result"]["directus_migrations"]>;
export type directus_migrationsSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    version?: boolean;
    name?: boolean;
    timestamp?: boolean;
}, ExtArgs["result"]["directus_migrations"]>;
export type directus_migrationsSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    version?: boolean;
    name?: boolean;
    timestamp?: boolean;
}, ExtArgs["result"]["directus_migrations"]>;
export type directus_migrationsSelectScalar = {
    version?: boolean;
    name?: boolean;
    timestamp?: boolean;
};
export type directus_migrationsOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"version" | "name" | "timestamp", ExtArgs["result"]["directus_migrations"]>;
export type $directus_migrationsPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    name: "directus_migrations";
    objects: {};
    scalars: runtime.Types.Extensions.GetPayloadResult<{
        version: string;
        name: string;
        timestamp: Date | null;
    }, ExtArgs["result"]["directus_migrations"]>;
    composites: {};
};
export type directus_migrationsGetPayload<S extends boolean | null | undefined | directus_migrationsDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$directus_migrationsPayload, S>;
export type directus_migrationsCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<directus_migrationsFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
    select?: Directus_migrationsCountAggregateInputType | true;
};
export interface directus_migrationsDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
    [K: symbol]: {
        types: Prisma.TypeMap<ExtArgs>['model']['directus_migrations'];
        meta: {
            name: 'directus_migrations';
        };
    };
    /**
     * Find zero or one Directus_migrations that matches the filter.
     * @param {directus_migrationsFindUniqueArgs} args - Arguments to find a Directus_migrations
     * @example
     * // Get one Directus_migrations
     * const directus_migrations = await prisma.directus_migrations.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends directus_migrationsFindUniqueArgs>(args: Prisma.SelectSubset<T, directus_migrationsFindUniqueArgs<ExtArgs>>): Prisma.Prisma__directus_migrationsClient<runtime.Types.Result.GetResult<Prisma.$directus_migrationsPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    /**
     * Find one Directus_migrations that matches the filter or throw an error with `error.code='P2025'`
     * if no matches were found.
     * @param {directus_migrationsFindUniqueOrThrowArgs} args - Arguments to find a Directus_migrations
     * @example
     * // Get one Directus_migrations
     * const directus_migrations = await prisma.directus_migrations.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends directus_migrationsFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, directus_migrationsFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__directus_migrationsClient<runtime.Types.Result.GetResult<Prisma.$directus_migrationsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Find the first Directus_migrations 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 {directus_migrationsFindFirstArgs} args - Arguments to find a Directus_migrations
     * @example
     * // Get one Directus_migrations
     * const directus_migrations = await prisma.directus_migrations.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends directus_migrationsFindFirstArgs>(args?: Prisma.SelectSubset<T, directus_migrationsFindFirstArgs<ExtArgs>>): Prisma.Prisma__directus_migrationsClient<runtime.Types.Result.GetResult<Prisma.$directus_migrationsPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    /**
     * Find the first Directus_migrations 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 {directus_migrationsFindFirstOrThrowArgs} args - Arguments to find a Directus_migrations
     * @example
     * // Get one Directus_migrations
     * const directus_migrations = await prisma.directus_migrations.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends directus_migrationsFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, directus_migrationsFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__directus_migrationsClient<runtime.Types.Result.GetResult<Prisma.$directus_migrationsPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Find zero or more Directus_migrations 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 {directus_migrationsFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all Directus_migrations
     * const directus_migrations = await prisma.directus_migrations.findMany()
     *
     * // Get first 10 Directus_migrations
     * const directus_migrations = await prisma.directus_migrations.findMany({ take: 10 })
     *
     * // Only select the `version`
     * const directus_migrationsWithVersionOnly = await prisma.directus_migrations.findMany({ select: { version: true } })
     *
     */
    findMany<T extends directus_migrationsFindManyArgs>(args?: Prisma.SelectSubset<T, directus_migrationsFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$directus_migrationsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
    /**
     * Create a Directus_migrations.
     * @param {directus_migrationsCreateArgs} args - Arguments to create a Directus_migrations.
     * @example
     * // Create one Directus_migrations
     * const Directus_migrations = await prisma.directus_migrations.create({
     *   data: {
     *     // ... data to create a Directus_migrations
     *   }
     * })
     *
     */
    create<T extends directus_migrationsCreateArgs>(args: Prisma.SelectSubset<T, directus_migrationsCreateArgs<ExtArgs>>): Prisma.Prisma__directus_migrationsClient<runtime.Types.Result.GetResult<Prisma.$directus_migrationsPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Create many Directus_migrations.
     * @param {directus_migrationsCreateManyArgs} args - Arguments to create many Directus_migrations.
     * @example
     * // Create many Directus_migrations
     * const directus_migrations = await prisma.directus_migrations.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     */
    createMany<T extends directus_migrationsCreateManyArgs>(args?: Prisma.SelectSubset<T, directus_migrationsCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Create many Directus_migrations and returns the data saved in the database.
     * @param {directus_migrationsCreateManyAndReturnArgs} args - Arguments to create many Directus_migrations.
     * @example
     * // Create many Directus_migrations
     * const directus_migrations = await prisma.directus_migrations.createManyAndReturn({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     * // Create many Directus_migrations and only return the `version`
     * const directus_migrationsWithVersionOnly = await prisma.directus_migrations.createManyAndReturn({
     *   select: { version: 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 directus_migrationsCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, directus_migrationsCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$directus_migrationsPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
    /**
     * Delete a Directus_migrations.
     * @param {directus_migrationsDeleteArgs} args - Arguments to delete one Directus_migrations.
     * @example
     * // Delete one Directus_migrations
     * const Directus_migrations = await prisma.directus_migrations.delete({
     *   where: {
     *     // ... filter to delete one Directus_migrations
     *   }
     * })
     *
     */
    delete<T extends directus_migrationsDeleteArgs>(args: Prisma.SelectSubset<T, directus_migrationsDeleteArgs<ExtArgs>>): Prisma.Prisma__directus_migrationsClient<runtime.Types.Result.GetResult<Prisma.$directus_migrationsPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Update one Directus_migrations.
     * @param {directus_migrationsUpdateArgs} args - Arguments to update one Directus_migrations.
     * @example
     * // Update one Directus_migrations
     * const directus_migrations = await prisma.directus_migrations.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     *
     */
    update<T extends directus_migrationsUpdateArgs>(args: Prisma.SelectSubset<T, directus_migrationsUpdateArgs<ExtArgs>>): Prisma.Prisma__directus_migrationsClient<runtime.Types.Result.GetResult<Prisma.$directus_migrationsPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Delete zero or more Directus_migrations.
     * @param {directus_migrationsDeleteManyArgs} args - Arguments to filter Directus_migrations to delete.
     * @example
     * // Delete a few Directus_migrations
     * const { count } = await prisma.directus_migrations.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     *
     */
    deleteMany<T extends directus_migrationsDeleteManyArgs>(args?: Prisma.SelectSubset<T, directus_migrationsDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Update zero or more Directus_migrations.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {directus_migrationsUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many Directus_migrations
     * const directus_migrations = await prisma.directus_migrations.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     *
     */
    updateMany<T extends directus_migrationsUpdateManyArgs>(args: Prisma.SelectSubset<T, directus_migrationsUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Update zero or more Directus_migrations and returns the data updated in the database.
     * @param {directus_migrationsUpdateManyAndReturnArgs} args - Arguments to update many Directus_migrations.
     * @example
     * // Update many Directus_migrations
     * const directus_migrations = await prisma.directus_migrations.updateManyAndReturn({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     * // Update zero or more Directus_migrations and only return the `version`
     * const directus_migrationsWithVersionOnly = await prisma.directus_migrations.updateManyAndReturn({
     *   select: { version: 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 directus_migrationsUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, directus_migrationsUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$directus_migrationsPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
    /**
     * Create or update one Directus_migrations.
     * @param {directus_migrationsUpsertArgs} args - Arguments to update or create a Directus_migrations.
     * @example
     * // Update or create a Directus_migrations
     * const directus_migrations = await prisma.directus_migrations.upsert({
     *   create: {
     *     // ... data to create a Directus_migrations
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the Directus_migrations we want to update
     *   }
     * })
     */
    upsert<T extends directus_migrationsUpsertArgs>(args: Prisma.SelectSubset<T, directus_migrationsUpsertArgs<ExtArgs>>): Prisma.Prisma__directus_migrationsClient<runtime.Types.Result.GetResult<Prisma.$directus_migrationsPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Count the number of Directus_migrations.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {directus_migrationsCountArgs} args - Arguments to filter Directus_migrations to count.
     * @example
     * // Count the number of Directus_migrations
     * const count = await prisma.directus_migrations.count({
     *   where: {
     *     // ... the filter for the Directus_migrations we want to count
     *   }
     * })
    **/
    count<T extends directus_migrationsCountArgs>(args?: Prisma.Subset<T, directus_migrationsCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], Directus_migrationsCountAggregateOutputType> : number>;
    /**
     * Allows you to perform aggregations operations on a Directus_migrations.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {Directus_migrationsAggregateArgs} 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 Directus_migrationsAggregateArgs>(args: Prisma.Subset<T, Directus_migrationsAggregateArgs>): Prisma.PrismaPromise<GetDirectus_migrationsAggregateType<T>>;
    /**
     * Group by Directus_migrations.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {directus_migrationsGroupByArgs} 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 directus_migrationsGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
        orderBy: directus_migrationsGroupByArgs['orderBy'];
    } : {
        orderBy?: directus_migrationsGroupByArgs['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, directus_migrationsGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetDirectus_migrationsGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
    /**
     * Fields of the directus_migrations model
     */
    readonly fields: directus_migrationsFieldRefs;
}
/**
 * The delegate class that acts as a "Promise-like" for directus_migrations.
 * 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__directus_migrationsClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
    readonly [Symbol.toStringTag]: "PrismaPromise";
    /**
     * 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 directus_migrations model
 */
export interface directus_migrationsFieldRefs {
    readonly version: Prisma.FieldRef<"directus_migrations", 'String'>;
    readonly name: Prisma.FieldRef<"directus_migrations", 'String'>;
    readonly timestamp: Prisma.FieldRef<"directus_migrations", 'DateTime'>;
}
/**
 * directus_migrations findUnique
 */
export type directus_migrationsFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the directus_migrations
     */
    select?: Prisma.directus_migrationsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the directus_migrations
     */
    omit?: Prisma.directus_migrationsOmit<ExtArgs> | null;
    /**
     * Filter, which directus_migrations to fetch.
     */
    where: Prisma.directus_migrationsWhereUniqueInput;
};
/**
 * directus_migrations findUniqueOrThrow
 */
export type directus_migrationsFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the directus_migrations
     */
    select?: Prisma.directus_migrationsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the directus_migrations
     */
    omit?: Prisma.directus_migrationsOmit<ExtArgs> | null;
    /**
     * Filter, which directus_migrations to fetch.
     */
    where: Prisma.directus_migrationsWhereUniqueInput;
};
/**
 * directus_migrations findFirst
 */
export type directus_migrationsFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the directus_migrations
     */
    select?: Prisma.directus_migrationsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the directus_migrations
     */
    omit?: Prisma.directus_migrationsOmit<ExtArgs> | null;
    /**
     * Filter, which directus_migrations to fetch.
     */
    where?: Prisma.directus_migrationsWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of directus_migrations to fetch.
     */
    orderBy?: Prisma.directus_migrationsOrderByWithRelationInput | Prisma.directus_migrationsOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for searching for directus_migrations.
     */
    cursor?: Prisma.directus_migrationsWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` directus_migrations 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` directus_migrations.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     *
     * Filter by unique combinations of directus_migrations.
     */
    distinct?: Prisma.Directus_migrationsScalarFieldEnum | Prisma.Directus_migrationsScalarFieldEnum[];
};
/**
 * directus_migrations findFirstOrThrow
 */
export type directus_migrationsFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the directus_migrations
     */
    select?: Prisma.directus_migrationsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the directus_migrations
     */
    omit?: Prisma.directus_migrationsOmit<ExtArgs> | null;
    /**
     * Filter, which directus_migrations to fetch.
     */
    where?: Prisma.directus_migrationsWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of directus_migrations to fetch.
     */
    orderBy?: Prisma.directus_migrationsOrderByWithRelationInput | Prisma.directus_migrationsOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for searching for directus_migrations.
     */
    cursor?: Prisma.directus_migrationsWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` directus_migrations 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` directus_migrations.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     *
     * Filter by unique combinations of directus_migrations.
     */
    distinct?: Prisma.Directus_migrationsScalarFieldEnum | Prisma.Directus_migrationsScalarFieldEnum[];
};
/**
 * directus_migrations findMany
 */
export type directus_migrationsFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the directus_migrations
     */
    select?: Prisma.directus_migrationsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the directus_migrations
     */
    omit?: Prisma.directus_migrationsOmit<ExtArgs> | null;
    /**
     * Filter, which directus_migrations to fetch.
     */
    where?: Prisma.directus_migrationsWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of directus_migrations to fetch.
     */
    orderBy?: Prisma.directus_migrationsOrderByWithRelationInput | Prisma.directus_migrationsOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for listing directus_migrations.
     */
    cursor?: Prisma.directus_migrationsWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` directus_migrations 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` directus_migrations.
     */
    skip?: number;
    distinct?: Prisma.Directus_migrationsScalarFieldEnum | Prisma.Directus_migrationsScalarFieldEnum[];
};
/**
 * directus_migrations create
 */
export type directus_migrationsCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the directus_migrations
     */
    select?: Prisma.directus_migrationsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the directus_migrations
     */
    omit?: Prisma.directus_migrationsOmit<ExtArgs> | null;
    /**
     * The data needed to create a directus_migrations.
     */
    data: Prisma.XOR<Prisma.directus_migrationsCreateInput, Prisma.directus_migrationsUncheckedCreateInput>;
};
/**
 * directus_migrations createMany
 */
export type directus_migrationsCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * The data used to create many directus_migrations.
     */
    data: Prisma.directus_migrationsCreateManyInput | Prisma.directus_migrationsCreateManyInput[];
    skipDuplicates?: boolean;
};
/**
 * directus_migrations createManyAndReturn
 */
export type directus_migrationsCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the directus_migrations
     */
    select?: Prisma.directus_migrationsSelectCreateManyAndReturn<ExtArgs> | null;
    /**
     * Omit specific fields from the directus_migrations
     */
    omit?: Prisma.directus_migrationsOmit<ExtArgs> | null;
    /**
     * The data used to create many directus_migrations.
     */
    data: Prisma.directus_migrationsCreateManyInput | Prisma.directus_migrationsCreateManyInput[];
    skipDuplicates?: boolean;
};
/**
 * directus_migrations update
 */
export type directus_migrationsUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the directus_migrations
     */
    select?: Prisma.directus_migrationsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the directus_migrations
     */
    omit?: Prisma.directus_migrationsOmit<ExtArgs> | null;
    /**
     * The data needed to update a directus_migrations.
     */
    data: Prisma.XOR<Prisma.directus_migrationsUpdateInput, Prisma.directus_migrationsUncheckedUpdateInput>;
    /**
     * Choose, which directus_migrations to update.
     */
    where: Prisma.directus_migrationsWhereUniqueInput;
};
/**
 * directus_migrations updateMany
 */
export type directus_migrationsUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * The data used to update directus_migrations.
     */
    data: Prisma.XOR<Prisma.directus_migrationsUpdateManyMutationInput, Prisma.directus_migrationsUncheckedUpdateManyInput>;
    /**
     * Filter which directus_migrations to update
     */
    where?: Prisma.directus_migrationsWhereInput;
    /**
     * Limit how many directus_migrations to update.
     */
    limit?: number;
};
/**
 * directus_migrations updateManyAndReturn
 */
export type directus_migrationsUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the directus_migrations
     */
    select?: Prisma.directus_migrationsSelectUpdateManyAndReturn<ExtArgs> | null;
    /**
     * Omit specific fields from the directus_migrations
     */
    omit?: Prisma.directus_migrationsOmit<ExtArgs> | null;
    /**
     * The data used to update directus_migrations.
     */
    data: Prisma.XOR<Prisma.directus_migrationsUpdateManyMutationInput, Prisma.directus_migrationsUncheckedUpdateManyInput>;
    /**
     * Filter which directus_migrations to update
     */
    where?: Prisma.directus_migrationsWhereInput;
    /**
     * Limit how many directus_migrations to update.
     */
    limit?: number;
};
/**
 * directus_migrations upsert
 */
export type directus_migrationsUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the directus_migrations
     */
    select?: Prisma.directus_migrationsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the directus_migrations
     */
    omit?: Prisma.directus_migrationsOmit<ExtArgs> | null;
    /**
     * The filter to search for the directus_migrations to update in case it exists.
     */
    where: Prisma.directus_migrationsWhereUniqueInput;
    /**
     * In case the directus_migrations found by the `where` argument doesn't exist, create a new directus_migrations with this data.
     */
    create: Prisma.XOR<Prisma.directus_migrationsCreateInput, Prisma.directus_migrationsUncheckedCreateInput>;
    /**
     * In case the directus_migrations was found with the provided `where` argument, update it with this data.
     */
    update: Prisma.XOR<Prisma.directus_migrationsUpdateInput, Prisma.directus_migrationsUncheckedUpdateInput>;
};
/**
 * directus_migrations delete
 */
export type directus_migrationsDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the directus_migrations
     */
    select?: Prisma.directus_migrationsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the directus_migrations
     */
    omit?: Prisma.directus_migrationsOmit<ExtArgs> | null;
    /**
     * Filter which directus_migrations to delete.
     */
    where: Prisma.directus_migrationsWhereUniqueInput;
};
/**
 * directus_migrations deleteMany
 */
export type directus_migrationsDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Filter which directus_migrations to delete
     */
    where?: Prisma.directus_migrationsWhereInput;
    /**
     * Limit how many directus_migrations to delete.
     */
    limit?: number;
};
/**
 * directus_migrations without action
 */
export type directus_migrationsDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the directus_migrations
     */
    select?: Prisma.directus_migrationsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the directus_migrations
     */
    omit?: Prisma.directus_migrationsOmit<ExtArgs> | null;
};
export {};
