/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `Article` model and its related types. * * 🟢 You can import this file directly. */ import type * as runtime from "@prisma/client/runtime/client" import type * as $Enums from "../enums.ts" import type * as Prisma from "../internal/prismaNamespace.ts" /** * Model Article * */ export type ArticleModel = runtime.Types.Result.DefaultSelection export type AggregateArticle = { _count: ArticleCountAggregateOutputType | null _avg: ArticleAvgAggregateOutputType | null _sum: ArticleSumAggregateOutputType | null _min: ArticleMinAggregateOutputType | null _max: ArticleMaxAggregateOutputType | null } export type ArticleAvgAggregateOutputType = { id: number | null } export type ArticleSumAggregateOutputType = { id: number | null } export type ArticleMinAggregateOutputType = { id: number | null title: string | null slug: string | null content: string | null date: string | null createdAt: Date | null updatedAt: Date | null } export type ArticleMaxAggregateOutputType = { id: number | null title: string | null slug: string | null content: string | null date: string | null createdAt: Date | null updatedAt: Date | null } export type ArticleCountAggregateOutputType = { id: number title: number slug: number content: number date: number createdAt: number updatedAt: number _all: number } export type ArticleAvgAggregateInputType = { id?: true } export type ArticleSumAggregateInputType = { id?: true } export type ArticleMinAggregateInputType = { id?: true title?: true slug?: true content?: true date?: true createdAt?: true updatedAt?: true } export type ArticleMaxAggregateInputType = { id?: true title?: true slug?: true content?: true date?: true createdAt?: true updatedAt?: true } export type ArticleCountAggregateInputType = { id?: true title?: true slug?: true content?: true date?: true createdAt?: true updatedAt?: true _all?: true } export type ArticleAggregateArgs = { /** * Filter which Article to aggregate. */ where?: Prisma.ArticleWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Articles to fetch. */ orderBy?: Prisma.ArticleOrderByWithRelationInput | Prisma.ArticleOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.ArticleWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Articles 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` Articles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Articles **/ _count?: true | ArticleCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: ArticleAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: ArticleSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: ArticleMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: ArticleMaxAggregateInputType } export type GetArticleAggregateType = { [P in keyof T & keyof AggregateArticle]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type ArticleGroupByArgs = { where?: Prisma.ArticleWhereInput orderBy?: Prisma.ArticleOrderByWithAggregationInput | Prisma.ArticleOrderByWithAggregationInput[] by: Prisma.ArticleScalarFieldEnum[] | Prisma.ArticleScalarFieldEnum having?: Prisma.ArticleScalarWhereWithAggregatesInput take?: number skip?: number _count?: ArticleCountAggregateInputType | true _avg?: ArticleAvgAggregateInputType _sum?: ArticleSumAggregateInputType _min?: ArticleMinAggregateInputType _max?: ArticleMaxAggregateInputType } export type ArticleGroupByOutputType = { id: number title: string slug: string content: string date: string createdAt: Date updatedAt: Date _count: ArticleCountAggregateOutputType | null _avg: ArticleAvgAggregateOutputType | null _sum: ArticleSumAggregateOutputType | null _min: ArticleMinAggregateOutputType | null _max: ArticleMaxAggregateOutputType | null } export type GetArticleGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof ArticleGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type ArticleWhereInput = { AND?: Prisma.ArticleWhereInput | Prisma.ArticleWhereInput[] OR?: Prisma.ArticleWhereInput[] NOT?: Prisma.ArticleWhereInput | Prisma.ArticleWhereInput[] id?: Prisma.IntFilter<"Article"> | number title?: Prisma.StringFilter<"Article"> | string slug?: Prisma.StringFilter<"Article"> | string content?: Prisma.StringFilter<"Article"> | string date?: Prisma.StringFilter<"Article"> | string createdAt?: Prisma.DateTimeFilter<"Article"> | Date | string updatedAt?: Prisma.DateTimeFilter<"Article"> | Date | string } export type ArticleOrderByWithRelationInput = { id?: Prisma.SortOrder title?: Prisma.SortOrder slug?: Prisma.SortOrder content?: Prisma.SortOrder date?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder _relevance?: Prisma.ArticleOrderByRelevanceInput } export type ArticleWhereUniqueInput = Prisma.AtLeast<{ id?: number slug?: string AND?: Prisma.ArticleWhereInput | Prisma.ArticleWhereInput[] OR?: Prisma.ArticleWhereInput[] NOT?: Prisma.ArticleWhereInput | Prisma.ArticleWhereInput[] title?: Prisma.StringFilter<"Article"> | string content?: Prisma.StringFilter<"Article"> | string date?: Prisma.StringFilter<"Article"> | string createdAt?: Prisma.DateTimeFilter<"Article"> | Date | string updatedAt?: Prisma.DateTimeFilter<"Article"> | Date | string }, "id" | "slug"> export type ArticleOrderByWithAggregationInput = { id?: Prisma.SortOrder title?: Prisma.SortOrder slug?: Prisma.SortOrder content?: Prisma.SortOrder date?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder _count?: Prisma.ArticleCountOrderByAggregateInput _avg?: Prisma.ArticleAvgOrderByAggregateInput _max?: Prisma.ArticleMaxOrderByAggregateInput _min?: Prisma.ArticleMinOrderByAggregateInput _sum?: Prisma.ArticleSumOrderByAggregateInput } export type ArticleScalarWhereWithAggregatesInput = { AND?: Prisma.ArticleScalarWhereWithAggregatesInput | Prisma.ArticleScalarWhereWithAggregatesInput[] OR?: Prisma.ArticleScalarWhereWithAggregatesInput[] NOT?: Prisma.ArticleScalarWhereWithAggregatesInput | Prisma.ArticleScalarWhereWithAggregatesInput[] id?: Prisma.IntWithAggregatesFilter<"Article"> | number title?: Prisma.StringWithAggregatesFilter<"Article"> | string slug?: Prisma.StringWithAggregatesFilter<"Article"> | string content?: Prisma.StringWithAggregatesFilter<"Article"> | string date?: Prisma.StringWithAggregatesFilter<"Article"> | string createdAt?: Prisma.DateTimeWithAggregatesFilter<"Article"> | Date | string updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Article"> | Date | string } export type ArticleCreateInput = { title: string slug: string content: string date: string createdAt?: Date | string updatedAt?: Date | string } export type ArticleUncheckedCreateInput = { id?: number title: string slug: string content: string date: string createdAt?: Date | string updatedAt?: Date | string } export type ArticleUpdateInput = { title?: Prisma.StringFieldUpdateOperationsInput | string slug?: Prisma.StringFieldUpdateOperationsInput | string content?: Prisma.StringFieldUpdateOperationsInput | string date?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type ArticleUncheckedUpdateInput = { id?: Prisma.IntFieldUpdateOperationsInput | number title?: Prisma.StringFieldUpdateOperationsInput | string slug?: Prisma.StringFieldUpdateOperationsInput | string content?: Prisma.StringFieldUpdateOperationsInput | string date?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type ArticleCreateManyInput = { id?: number title: string slug: string content: string date: string createdAt?: Date | string updatedAt?: Date | string } export type ArticleUpdateManyMutationInput = { title?: Prisma.StringFieldUpdateOperationsInput | string slug?: Prisma.StringFieldUpdateOperationsInput | string content?: Prisma.StringFieldUpdateOperationsInput | string date?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type ArticleUncheckedUpdateManyInput = { id?: Prisma.IntFieldUpdateOperationsInput | number title?: Prisma.StringFieldUpdateOperationsInput | string slug?: Prisma.StringFieldUpdateOperationsInput | string content?: Prisma.StringFieldUpdateOperationsInput | string date?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type ArticleOrderByRelevanceInput = { fields: Prisma.ArticleOrderByRelevanceFieldEnum | Prisma.ArticleOrderByRelevanceFieldEnum[] sort: Prisma.SortOrder search: string } export type ArticleCountOrderByAggregateInput = { id?: Prisma.SortOrder title?: Prisma.SortOrder slug?: Prisma.SortOrder content?: Prisma.SortOrder date?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type ArticleAvgOrderByAggregateInput = { id?: Prisma.SortOrder } export type ArticleMaxOrderByAggregateInput = { id?: Prisma.SortOrder title?: Prisma.SortOrder slug?: Prisma.SortOrder content?: Prisma.SortOrder date?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type ArticleMinOrderByAggregateInput = { id?: Prisma.SortOrder title?: Prisma.SortOrder slug?: Prisma.SortOrder content?: Prisma.SortOrder date?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type ArticleSumOrderByAggregateInput = { id?: Prisma.SortOrder } export type ArticleSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean title?: boolean slug?: boolean content?: boolean date?: boolean createdAt?: boolean updatedAt?: boolean }, ExtArgs["result"]["article"]> export type ArticleSelectScalar = { id?: boolean title?: boolean slug?: boolean content?: boolean date?: boolean createdAt?: boolean updatedAt?: boolean } export type ArticleOmit = runtime.Types.Extensions.GetOmit<"id" | "title" | "slug" | "content" | "date" | "createdAt" | "updatedAt", ExtArgs["result"]["article"]> export type $ArticlePayload = { name: "Article" objects: {} scalars: runtime.Types.Extensions.GetPayloadResult<{ id: number title: string slug: string content: string date: string createdAt: Date updatedAt: Date }, ExtArgs["result"]["article"]> composites: {} } export type ArticleGetPayload = runtime.Types.Result.GetResult export type ArticleCountArgs = Omit & { select?: ArticleCountAggregateInputType | true } export interface ArticleDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Article'], meta: { name: 'Article' } } /** * Find zero or one Article that matches the filter. * @param {ArticleFindUniqueArgs} args - Arguments to find a Article * @example * // Get one Article * const article = await prisma.article.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__ArticleClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Article that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {ArticleFindUniqueOrThrowArgs} args - Arguments to find a Article * @example * // Get one Article * const article = await prisma.article.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__ArticleClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Article 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 {ArticleFindFirstArgs} args - Arguments to find a Article * @example * // Get one Article * const article = await prisma.article.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__ArticleClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Article 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 {ArticleFindFirstOrThrowArgs} args - Arguments to find a Article * @example * // Get one Article * const article = await prisma.article.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__ArticleClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Articles 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 {ArticleFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Articles * const articles = await prisma.article.findMany() * * // Get first 10 Articles * const articles = await prisma.article.findMany({ take: 10 }) * * // Only select the `id` * const articleWithIdOnly = await prisma.article.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Article. * @param {ArticleCreateArgs} args - Arguments to create a Article. * @example * // Create one Article * const Article = await prisma.article.create({ * data: { * // ... data to create a Article * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__ArticleClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Articles. * @param {ArticleCreateManyArgs} args - Arguments to create many Articles. * @example * // Create many Articles * const article = await prisma.article.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Delete a Article. * @param {ArticleDeleteArgs} args - Arguments to delete one Article. * @example * // Delete one Article * const Article = await prisma.article.delete({ * where: { * // ... filter to delete one Article * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__ArticleClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Article. * @param {ArticleUpdateArgs} args - Arguments to update one Article. * @example * // Update one Article * const article = await prisma.article.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__ArticleClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Articles. * @param {ArticleDeleteManyArgs} args - Arguments to filter Articles to delete. * @example * // Delete a few Articles * const { count } = await prisma.article.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Articles. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ArticleUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Articles * const article = await prisma.article.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create or update one Article. * @param {ArticleUpsertArgs} args - Arguments to update or create a Article. * @example * // Update or create a Article * const article = await prisma.article.upsert({ * create: { * // ... data to create a Article * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Article we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__ArticleClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Articles. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ArticleCountArgs} args - Arguments to filter Articles to count. * @example * // Count the number of Articles * const count = await prisma.article.count({ * where: { * // ... the filter for the Articles we want to count * } * }) **/ count( args?: Prisma.Subset, ): Prisma.PrismaPromise< T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType : number > /** * Allows you to perform aggregations operations on a Article. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ArticleAggregateArgs} 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(args: Prisma.Subset): Prisma.PrismaPromise> /** * Group by Article. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ArticleGroupByArgs} 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 ArticleGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: ArticleGroupByArgs['orderBy'] } : { orderBy?: ArticleGroupByArgs['orderBy'] }, OrderFields extends Prisma.ExcludeUnderscoreKeys>>, ByFields extends Prisma.MaybeTupleToUnion, ByValid extends Prisma.Has, HavingFields extends Prisma.GetHavingFields, HavingValid extends Prisma.Has, 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 ? 'orderBy' extends Prisma.Keys ? 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 ? 'orderBy' extends Prisma.Keys ? 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 & InputErrors): {} extends InputErrors ? GetArticleGroupByPayload : Prisma.PrismaPromise /** * Fields of the Article model */ readonly fields: ArticleFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Article. * 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__ArticleClient extends Prisma.PrismaPromise { 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * 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 } /** * Fields of the Article model */ export interface ArticleFieldRefs { readonly id: Prisma.FieldRef<"Article", 'Int'> readonly title: Prisma.FieldRef<"Article", 'String'> readonly slug: Prisma.FieldRef<"Article", 'String'> readonly content: Prisma.FieldRef<"Article", 'String'> readonly date: Prisma.FieldRef<"Article", 'String'> readonly createdAt: Prisma.FieldRef<"Article", 'DateTime'> readonly updatedAt: Prisma.FieldRef<"Article", 'DateTime'> } // Custom InputTypes /** * Article findUnique */ export type ArticleFindUniqueArgs = { /** * Select specific fields to fetch from the Article */ select?: Prisma.ArticleSelect | null /** * Omit specific fields from the Article */ omit?: Prisma.ArticleOmit | null /** * Filter, which Article to fetch. */ where: Prisma.ArticleWhereUniqueInput } /** * Article findUniqueOrThrow */ export type ArticleFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Article */ select?: Prisma.ArticleSelect | null /** * Omit specific fields from the Article */ omit?: Prisma.ArticleOmit | null /** * Filter, which Article to fetch. */ where: Prisma.ArticleWhereUniqueInput } /** * Article findFirst */ export type ArticleFindFirstArgs = { /** * Select specific fields to fetch from the Article */ select?: Prisma.ArticleSelect | null /** * Omit specific fields from the Article */ omit?: Prisma.ArticleOmit | null /** * Filter, which Article to fetch. */ where?: Prisma.ArticleWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Articles to fetch. */ orderBy?: Prisma.ArticleOrderByWithRelationInput | Prisma.ArticleOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Articles. */ cursor?: Prisma.ArticleWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Articles 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` Articles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Articles. */ distinct?: Prisma.ArticleScalarFieldEnum | Prisma.ArticleScalarFieldEnum[] } /** * Article findFirstOrThrow */ export type ArticleFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Article */ select?: Prisma.ArticleSelect | null /** * Omit specific fields from the Article */ omit?: Prisma.ArticleOmit | null /** * Filter, which Article to fetch. */ where?: Prisma.ArticleWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Articles to fetch. */ orderBy?: Prisma.ArticleOrderByWithRelationInput | Prisma.ArticleOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Articles. */ cursor?: Prisma.ArticleWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Articles 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` Articles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Articles. */ distinct?: Prisma.ArticleScalarFieldEnum | Prisma.ArticleScalarFieldEnum[] } /** * Article findMany */ export type ArticleFindManyArgs = { /** * Select specific fields to fetch from the Article */ select?: Prisma.ArticleSelect | null /** * Omit specific fields from the Article */ omit?: Prisma.ArticleOmit | null /** * Filter, which Articles to fetch. */ where?: Prisma.ArticleWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Articles to fetch. */ orderBy?: Prisma.ArticleOrderByWithRelationInput | Prisma.ArticleOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Articles. */ cursor?: Prisma.ArticleWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Articles 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` Articles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Articles. */ distinct?: Prisma.ArticleScalarFieldEnum | Prisma.ArticleScalarFieldEnum[] } /** * Article create */ export type ArticleCreateArgs = { /** * Select specific fields to fetch from the Article */ select?: Prisma.ArticleSelect | null /** * Omit specific fields from the Article */ omit?: Prisma.ArticleOmit | null /** * The data needed to create a Article. */ data: Prisma.XOR } /** * Article createMany */ export type ArticleCreateManyArgs = { /** * The data used to create many Articles. */ data: Prisma.ArticleCreateManyInput | Prisma.ArticleCreateManyInput[] skipDuplicates?: boolean } /** * Article update */ export type ArticleUpdateArgs = { /** * Select specific fields to fetch from the Article */ select?: Prisma.ArticleSelect | null /** * Omit specific fields from the Article */ omit?: Prisma.ArticleOmit | null /** * The data needed to update a Article. */ data: Prisma.XOR /** * Choose, which Article to update. */ where: Prisma.ArticleWhereUniqueInput } /** * Article updateMany */ export type ArticleUpdateManyArgs = { /** * The data used to update Articles. */ data: Prisma.XOR /** * Filter which Articles to update */ where?: Prisma.ArticleWhereInput /** * Limit how many Articles to update. */ limit?: number } /** * Article upsert */ export type ArticleUpsertArgs = { /** * Select specific fields to fetch from the Article */ select?: Prisma.ArticleSelect | null /** * Omit specific fields from the Article */ omit?: Prisma.ArticleOmit | null /** * The filter to search for the Article to update in case it exists. */ where: Prisma.ArticleWhereUniqueInput /** * In case the Article found by the `where` argument doesn't exist, create a new Article with this data. */ create: Prisma.XOR /** * In case the Article was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * Article delete */ export type ArticleDeleteArgs = { /** * Select specific fields to fetch from the Article */ select?: Prisma.ArticleSelect | null /** * Omit specific fields from the Article */ omit?: Prisma.ArticleOmit | null /** * Filter which Article to delete. */ where: Prisma.ArticleWhereUniqueInput } /** * Article deleteMany */ export type ArticleDeleteManyArgs = { /** * Filter which Articles to delete */ where?: Prisma.ArticleWhereInput /** * Limit how many Articles to delete. */ limit?: number } /** * Article without action */ export type ArticleDefaultArgs = { /** * Select specific fields to fetch from the Article */ select?: Prisma.ArticleSelect | null /** * Omit specific fields from the Article */ omit?: Prisma.ArticleOmit | null }