/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `BlogPost` 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.js" import type * as Prisma from "../internal/prismaNamespace.js" /** * Model BlogPost * */ export type BlogPostModel = runtime.Types.Result.DefaultSelection export type AggregateBlogPost = { _count: BlogPostCountAggregateOutputType | null _min: BlogPostMinAggregateOutputType | null _max: BlogPostMaxAggregateOutputType | null } export type BlogPostMinAggregateOutputType = { id: string | null slug: string | null title: string | null publishedAt: Date | null preview: string | null } export type BlogPostMaxAggregateOutputType = { id: string | null slug: string | null title: string | null publishedAt: Date | null preview: string | null } export type BlogPostCountAggregateOutputType = { id: number slug: number title: number publishedAt: number preview: number _all: number } export type BlogPostMinAggregateInputType = { id?: true slug?: true title?: true publishedAt?: true preview?: true } export type BlogPostMaxAggregateInputType = { id?: true slug?: true title?: true publishedAt?: true preview?: true } export type BlogPostCountAggregateInputType = { id?: true slug?: true title?: true publishedAt?: true preview?: true _all?: true } export type BlogPostAggregateArgs = { /** * Filter which BlogPost to aggregate. */ where?: Prisma.BlogPostWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of BlogPosts to fetch. */ orderBy?: Prisma.BlogPostOrderByWithRelationInput | Prisma.BlogPostOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.BlogPostWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` BlogPosts 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` BlogPosts. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned BlogPosts **/ _count?: true | BlogPostCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: BlogPostMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: BlogPostMaxAggregateInputType } export type GetBlogPostAggregateType = { [P in keyof T & keyof AggregateBlogPost]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type BlogPostGroupByArgs = { where?: Prisma.BlogPostWhereInput orderBy?: Prisma.BlogPostOrderByWithAggregationInput | Prisma.BlogPostOrderByWithAggregationInput[] by: Prisma.BlogPostScalarFieldEnum[] | Prisma.BlogPostScalarFieldEnum having?: Prisma.BlogPostScalarWhereWithAggregatesInput take?: number skip?: number _count?: BlogPostCountAggregateInputType | true _min?: BlogPostMinAggregateInputType _max?: BlogPostMaxAggregateInputType } export type BlogPostGroupByOutputType = { id: string slug: string title: string publishedAt: Date preview: string _count: BlogPostCountAggregateOutputType | null _min: BlogPostMinAggregateOutputType | null _max: BlogPostMaxAggregateOutputType | null } export type GetBlogPostGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof BlogPostGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type BlogPostWhereInput = { AND?: Prisma.BlogPostWhereInput | Prisma.BlogPostWhereInput[] OR?: Prisma.BlogPostWhereInput[] NOT?: Prisma.BlogPostWhereInput | Prisma.BlogPostWhereInput[] id?: Prisma.StringFilter<"BlogPost"> | string slug?: Prisma.StringFilter<"BlogPost"> | string title?: Prisma.StringFilter<"BlogPost"> | string publishedAt?: Prisma.DateTimeFilter<"BlogPost"> | Date | string preview?: Prisma.StringFilter<"BlogPost"> | string } export type BlogPostOrderByWithRelationInput = { id?: Prisma.SortOrder slug?: Prisma.SortOrder title?: Prisma.SortOrder publishedAt?: Prisma.SortOrder preview?: Prisma.SortOrder } export type BlogPostWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: Prisma.BlogPostWhereInput | Prisma.BlogPostWhereInput[] OR?: Prisma.BlogPostWhereInput[] NOT?: Prisma.BlogPostWhereInput | Prisma.BlogPostWhereInput[] slug?: Prisma.StringFilter<"BlogPost"> | string title?: Prisma.StringFilter<"BlogPost"> | string publishedAt?: Prisma.DateTimeFilter<"BlogPost"> | Date | string preview?: Prisma.StringFilter<"BlogPost"> | string }, "id"> export type BlogPostOrderByWithAggregationInput = { id?: Prisma.SortOrder slug?: Prisma.SortOrder title?: Prisma.SortOrder publishedAt?: Prisma.SortOrder preview?: Prisma.SortOrder _count?: Prisma.BlogPostCountOrderByAggregateInput _max?: Prisma.BlogPostMaxOrderByAggregateInput _min?: Prisma.BlogPostMinOrderByAggregateInput } export type BlogPostScalarWhereWithAggregatesInput = { AND?: Prisma.BlogPostScalarWhereWithAggregatesInput | Prisma.BlogPostScalarWhereWithAggregatesInput[] OR?: Prisma.BlogPostScalarWhereWithAggregatesInput[] NOT?: Prisma.BlogPostScalarWhereWithAggregatesInput | Prisma.BlogPostScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"BlogPost"> | string slug?: Prisma.StringWithAggregatesFilter<"BlogPost"> | string title?: Prisma.StringWithAggregatesFilter<"BlogPost"> | string publishedAt?: Prisma.DateTimeWithAggregatesFilter<"BlogPost"> | Date | string preview?: Prisma.StringWithAggregatesFilter<"BlogPost"> | string } export type BlogPostCreateInput = { id?: string slug: string title: string publishedAt: Date | string preview: string } export type BlogPostUncheckedCreateInput = { id?: string slug: string title: string publishedAt: Date | string preview: string } export type BlogPostUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string slug?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string publishedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string preview?: Prisma.StringFieldUpdateOperationsInput | string } export type BlogPostUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string slug?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string publishedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string preview?: Prisma.StringFieldUpdateOperationsInput | string } export type BlogPostCreateManyInput = { id?: string slug: string title: string publishedAt: Date | string preview: string } export type BlogPostUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string slug?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string publishedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string preview?: Prisma.StringFieldUpdateOperationsInput | string } export type BlogPostUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string slug?: Prisma.StringFieldUpdateOperationsInput | string title?: Prisma.StringFieldUpdateOperationsInput | string publishedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string preview?: Prisma.StringFieldUpdateOperationsInput | string } export type BlogPostCountOrderByAggregateInput = { id?: Prisma.SortOrder slug?: Prisma.SortOrder title?: Prisma.SortOrder publishedAt?: Prisma.SortOrder preview?: Prisma.SortOrder } export type BlogPostMaxOrderByAggregateInput = { id?: Prisma.SortOrder slug?: Prisma.SortOrder title?: Prisma.SortOrder publishedAt?: Prisma.SortOrder preview?: Prisma.SortOrder } export type BlogPostMinOrderByAggregateInput = { id?: Prisma.SortOrder slug?: Prisma.SortOrder title?: Prisma.SortOrder publishedAt?: Prisma.SortOrder preview?: Prisma.SortOrder } export type StringFieldUpdateOperationsInput = { set?: string } export type DateTimeFieldUpdateOperationsInput = { set?: Date | string } export type BlogPostSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean slug?: boolean title?: boolean publishedAt?: boolean preview?: boolean }, ExtArgs["result"]["blogPost"]> export type BlogPostSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean slug?: boolean title?: boolean publishedAt?: boolean preview?: boolean }, ExtArgs["result"]["blogPost"]> export type BlogPostSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean slug?: boolean title?: boolean publishedAt?: boolean preview?: boolean }, ExtArgs["result"]["blogPost"]> export type BlogPostSelectScalar = { id?: boolean slug?: boolean title?: boolean publishedAt?: boolean preview?: boolean } export type BlogPostOmit = runtime.Types.Extensions.GetOmit<"id" | "slug" | "title" | "publishedAt" | "preview", ExtArgs["result"]["blogPost"]> export type $BlogPostPayload = { name: "BlogPost" objects: {} scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string slug: string title: string publishedAt: Date preview: string }, ExtArgs["result"]["blogPost"]> composites: {} } export type BlogPostGetPayload = runtime.Types.Result.GetResult export type BlogPostCountArgs = Omit & { select?: BlogPostCountAggregateInputType | true } export interface BlogPostDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['BlogPost'], meta: { name: 'BlogPost' } } /** * Find zero or one BlogPost that matches the filter. * @param {BlogPostFindUniqueArgs} args - Arguments to find a BlogPost * @example * // Get one BlogPost * const blogPost = await prisma.blogPost.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__BlogPostClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one BlogPost that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {BlogPostFindUniqueOrThrowArgs} args - Arguments to find a BlogPost * @example * // Get one BlogPost * const blogPost = await prisma.blogPost.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__BlogPostClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first BlogPost 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 {BlogPostFindFirstArgs} args - Arguments to find a BlogPost * @example * // Get one BlogPost * const blogPost = await prisma.blogPost.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__BlogPostClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first BlogPost 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 {BlogPostFindFirstOrThrowArgs} args - Arguments to find a BlogPost * @example * // Get one BlogPost * const blogPost = await prisma.blogPost.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__BlogPostClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more BlogPosts 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 {BlogPostFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all BlogPosts * const blogPosts = await prisma.blogPost.findMany() * * // Get first 10 BlogPosts * const blogPosts = await prisma.blogPost.findMany({ take: 10 }) * * // Only select the `id` * const blogPostWithIdOnly = await prisma.blogPost.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a BlogPost. * @param {BlogPostCreateArgs} args - Arguments to create a BlogPost. * @example * // Create one BlogPost * const BlogPost = await prisma.blogPost.create({ * data: { * // ... data to create a BlogPost * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__BlogPostClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many BlogPosts. * @param {BlogPostCreateManyArgs} args - Arguments to create many BlogPosts. * @example * // Create many BlogPosts * const blogPost = await prisma.blogPost.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many BlogPosts and returns the data saved in the database. * @param {BlogPostCreateManyAndReturnArgs} args - Arguments to create many BlogPosts. * @example * // Create many BlogPosts * const blogPost = await prisma.blogPost.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many BlogPosts and only return the `id` * const blogPostWithIdOnly = await prisma.blogPost.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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a BlogPost. * @param {BlogPostDeleteArgs} args - Arguments to delete one BlogPost. * @example * // Delete one BlogPost * const BlogPost = await prisma.blogPost.delete({ * where: { * // ... filter to delete one BlogPost * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__BlogPostClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one BlogPost. * @param {BlogPostUpdateArgs} args - Arguments to update one BlogPost. * @example * // Update one BlogPost * const blogPost = await prisma.blogPost.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__BlogPostClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more BlogPosts. * @param {BlogPostDeleteManyArgs} args - Arguments to filter BlogPosts to delete. * @example * // Delete a few BlogPosts * const { count } = await prisma.blogPost.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more BlogPosts. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {BlogPostUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many BlogPosts * const blogPost = await prisma.blogPost.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more BlogPosts and returns the data updated in the database. * @param {BlogPostUpdateManyAndReturnArgs} args - Arguments to update many BlogPosts. * @example * // Update many BlogPosts * const blogPost = await prisma.blogPost.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more BlogPosts and only return the `id` * const blogPostWithIdOnly = await prisma.blogPost.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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one BlogPost. * @param {BlogPostUpsertArgs} args - Arguments to update or create a BlogPost. * @example * // Update or create a BlogPost * const blogPost = await prisma.blogPost.upsert({ * create: { * // ... data to create a BlogPost * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the BlogPost we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__BlogPostClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of BlogPosts. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {BlogPostCountArgs} args - Arguments to filter BlogPosts to count. * @example * // Count the number of BlogPosts * const count = await prisma.blogPost.count({ * where: { * // ... the filter for the BlogPosts 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 BlogPost. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {BlogPostAggregateArgs} 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 BlogPost. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {BlogPostGroupByArgs} 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 BlogPostGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: BlogPostGroupByArgs['orderBy'] } : { orderBy?: BlogPostGroupByArgs['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 ? GetBlogPostGroupByPayload : Prisma.PrismaPromise /** * Fields of the BlogPost model */ readonly fields: BlogPostFieldRefs; } /** * The delegate class that acts as a "Promise-like" for BlogPost. * 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__BlogPostClient 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 BlogPost model */ export interface BlogPostFieldRefs { readonly id: Prisma.FieldRef<"BlogPost", 'String'> readonly slug: Prisma.FieldRef<"BlogPost", 'String'> readonly title: Prisma.FieldRef<"BlogPost", 'String'> readonly publishedAt: Prisma.FieldRef<"BlogPost", 'DateTime'> readonly preview: Prisma.FieldRef<"BlogPost", 'String'> } // Custom InputTypes /** * BlogPost findUnique */ export type BlogPostFindUniqueArgs = { /** * Select specific fields to fetch from the BlogPost */ select?: Prisma.BlogPostSelect | null /** * Omit specific fields from the BlogPost */ omit?: Prisma.BlogPostOmit | null /** * Filter, which BlogPost to fetch. */ where: Prisma.BlogPostWhereUniqueInput } /** * BlogPost findUniqueOrThrow */ export type BlogPostFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the BlogPost */ select?: Prisma.BlogPostSelect | null /** * Omit specific fields from the BlogPost */ omit?: Prisma.BlogPostOmit | null /** * Filter, which BlogPost to fetch. */ where: Prisma.BlogPostWhereUniqueInput } /** * BlogPost findFirst */ export type BlogPostFindFirstArgs = { /** * Select specific fields to fetch from the BlogPost */ select?: Prisma.BlogPostSelect | null /** * Omit specific fields from the BlogPost */ omit?: Prisma.BlogPostOmit | null /** * Filter, which BlogPost to fetch. */ where?: Prisma.BlogPostWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of BlogPosts to fetch. */ orderBy?: Prisma.BlogPostOrderByWithRelationInput | Prisma.BlogPostOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for BlogPosts. */ cursor?: Prisma.BlogPostWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` BlogPosts 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` BlogPosts. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of BlogPosts. */ distinct?: Prisma.BlogPostScalarFieldEnum | Prisma.BlogPostScalarFieldEnum[] } /** * BlogPost findFirstOrThrow */ export type BlogPostFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the BlogPost */ select?: Prisma.BlogPostSelect | null /** * Omit specific fields from the BlogPost */ omit?: Prisma.BlogPostOmit | null /** * Filter, which BlogPost to fetch. */ where?: Prisma.BlogPostWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of BlogPosts to fetch. */ orderBy?: Prisma.BlogPostOrderByWithRelationInput | Prisma.BlogPostOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for BlogPosts. */ cursor?: Prisma.BlogPostWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` BlogPosts 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` BlogPosts. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of BlogPosts. */ distinct?: Prisma.BlogPostScalarFieldEnum | Prisma.BlogPostScalarFieldEnum[] } /** * BlogPost findMany */ export type BlogPostFindManyArgs = { /** * Select specific fields to fetch from the BlogPost */ select?: Prisma.BlogPostSelect | null /** * Omit specific fields from the BlogPost */ omit?: Prisma.BlogPostOmit | null /** * Filter, which BlogPosts to fetch. */ where?: Prisma.BlogPostWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of BlogPosts to fetch. */ orderBy?: Prisma.BlogPostOrderByWithRelationInput | Prisma.BlogPostOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing BlogPosts. */ cursor?: Prisma.BlogPostWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` BlogPosts 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` BlogPosts. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of BlogPosts. */ distinct?: Prisma.BlogPostScalarFieldEnum | Prisma.BlogPostScalarFieldEnum[] } /** * BlogPost create */ export type BlogPostCreateArgs = { /** * Select specific fields to fetch from the BlogPost */ select?: Prisma.BlogPostSelect | null /** * Omit specific fields from the BlogPost */ omit?: Prisma.BlogPostOmit | null /** * The data needed to create a BlogPost. */ data: Prisma.XOR } /** * BlogPost createMany */ export type BlogPostCreateManyArgs = { /** * The data used to create many BlogPosts. */ data: Prisma.BlogPostCreateManyInput | Prisma.BlogPostCreateManyInput[] } /** * BlogPost createManyAndReturn */ export type BlogPostCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the BlogPost */ select?: Prisma.BlogPostSelectCreateManyAndReturn | null /** * Omit specific fields from the BlogPost */ omit?: Prisma.BlogPostOmit | null /** * The data used to create many BlogPosts. */ data: Prisma.BlogPostCreateManyInput | Prisma.BlogPostCreateManyInput[] } /** * BlogPost update */ export type BlogPostUpdateArgs = { /** * Select specific fields to fetch from the BlogPost */ select?: Prisma.BlogPostSelect | null /** * Omit specific fields from the BlogPost */ omit?: Prisma.BlogPostOmit | null /** * The data needed to update a BlogPost. */ data: Prisma.XOR /** * Choose, which BlogPost to update. */ where: Prisma.BlogPostWhereUniqueInput } /** * BlogPost updateMany */ export type BlogPostUpdateManyArgs = { /** * The data used to update BlogPosts. */ data: Prisma.XOR /** * Filter which BlogPosts to update */ where?: Prisma.BlogPostWhereInput /** * Limit how many BlogPosts to update. */ limit?: number } /** * BlogPost updateManyAndReturn */ export type BlogPostUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the BlogPost */ select?: Prisma.BlogPostSelectUpdateManyAndReturn | null /** * Omit specific fields from the BlogPost */ omit?: Prisma.BlogPostOmit | null /** * The data used to update BlogPosts. */ data: Prisma.XOR /** * Filter which BlogPosts to update */ where?: Prisma.BlogPostWhereInput /** * Limit how many BlogPosts to update. */ limit?: number } /** * BlogPost upsert */ export type BlogPostUpsertArgs = { /** * Select specific fields to fetch from the BlogPost */ select?: Prisma.BlogPostSelect | null /** * Omit specific fields from the BlogPost */ omit?: Prisma.BlogPostOmit | null /** * The filter to search for the BlogPost to update in case it exists. */ where: Prisma.BlogPostWhereUniqueInput /** * In case the BlogPost found by the `where` argument doesn't exist, create a new BlogPost with this data. */ create: Prisma.XOR /** * In case the BlogPost was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * BlogPost delete */ export type BlogPostDeleteArgs = { /** * Select specific fields to fetch from the BlogPost */ select?: Prisma.BlogPostSelect | null /** * Omit specific fields from the BlogPost */ omit?: Prisma.BlogPostOmit | null /** * Filter which BlogPost to delete. */ where: Prisma.BlogPostWhereUniqueInput } /** * BlogPost deleteMany */ export type BlogPostDeleteManyArgs = { /** * Filter which BlogPosts to delete */ where?: Prisma.BlogPostWhereInput /** * Limit how many BlogPosts to delete. */ limit?: number } /** * BlogPost without action */ export type BlogPostDefaultArgs = { /** * Select specific fields to fetch from the BlogPost */ select?: Prisma.BlogPostSelect | null /** * Omit specific fields from the BlogPost */ omit?: Prisma.BlogPostOmit | null }