import type * as runtime from "@prisma/client/runtime/client";
import type * as Prisma from "../internal/prismaNamespace";
/**
 * Model newsletters
 * 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 newslettersModel = runtime.Types.Result.DefaultSelection<Prisma.$newslettersPayload>;
export type AggregateNewsletters = {
    _count: NewslettersCountAggregateOutputType | null;
    _avg: NewslettersAvgAggregateOutputType | null;
    _sum: NewslettersSumAggregateOutputType | null;
    _min: NewslettersMinAggregateOutputType | null;
    _max: NewslettersMaxAggregateOutputType | null;
};
export type NewslettersAvgAggregateOutputType = {
    id: number | null;
};
export type NewslettersSumAggregateOutputType = {
    id: number | null;
};
export type NewslettersMinAggregateOutputType = {
    id: number | null;
    email: string | null;
    created_at: Date | null;
    first_name: string | null;
    last_name: string | null;
    status: string | null;
};
export type NewslettersMaxAggregateOutputType = {
    id: number | null;
    email: string | null;
    created_at: Date | null;
    first_name: string | null;
    last_name: string | null;
    status: string | null;
};
export type NewslettersCountAggregateOutputType = {
    id: number;
    email: number;
    created_at: number;
    first_name: number;
    last_name: number;
    status: number;
    _all: number;
};
export type NewslettersAvgAggregateInputType = {
    id?: true;
};
export type NewslettersSumAggregateInputType = {
    id?: true;
};
export type NewslettersMinAggregateInputType = {
    id?: true;
    email?: true;
    created_at?: true;
    first_name?: true;
    last_name?: true;
    status?: true;
};
export type NewslettersMaxAggregateInputType = {
    id?: true;
    email?: true;
    created_at?: true;
    first_name?: true;
    last_name?: true;
    status?: true;
};
export type NewslettersCountAggregateInputType = {
    id?: true;
    email?: true;
    created_at?: true;
    first_name?: true;
    last_name?: true;
    status?: true;
    _all?: true;
};
export type NewslettersAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Filter which newsletters to aggregate.
     */
    where?: Prisma.newslettersWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of newsletters to fetch.
     */
    orderBy?: Prisma.newslettersOrderByWithRelationInput | Prisma.newslettersOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the start position
     */
    cursor?: Prisma.newslettersWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` newsletters 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` newsletters.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Count returned newsletters
    **/
    _count?: true | NewslettersCountAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to average
    **/
    _avg?: NewslettersAvgAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to sum
    **/
    _sum?: NewslettersSumAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to find the minimum value
    **/
    _min?: NewslettersMinAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to find the maximum value
    **/
    _max?: NewslettersMaxAggregateInputType;
};
export type GetNewslettersAggregateType<T extends NewslettersAggregateArgs> = {
    [P in keyof T & keyof AggregateNewsletters]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateNewsletters[P]> : Prisma.GetScalarType<T[P], AggregateNewsletters[P]>;
};
export type newslettersGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    where?: Prisma.newslettersWhereInput;
    orderBy?: Prisma.newslettersOrderByWithAggregationInput | Prisma.newslettersOrderByWithAggregationInput[];
    by: Prisma.NewslettersScalarFieldEnum[] | Prisma.NewslettersScalarFieldEnum;
    having?: Prisma.newslettersScalarWhereWithAggregatesInput;
    take?: number;
    skip?: number;
    _count?: NewslettersCountAggregateInputType | true;
    _avg?: NewslettersAvgAggregateInputType;
    _sum?: NewslettersSumAggregateInputType;
    _min?: NewslettersMinAggregateInputType;
    _max?: NewslettersMaxAggregateInputType;
};
export type NewslettersGroupByOutputType = {
    id: number;
    email: string;
    created_at: Date | null;
    first_name: string | null;
    last_name: string | null;
    status: string | null;
    _count: NewslettersCountAggregateOutputType | null;
    _avg: NewslettersAvgAggregateOutputType | null;
    _sum: NewslettersSumAggregateOutputType | null;
    _min: NewslettersMinAggregateOutputType | null;
    _max: NewslettersMaxAggregateOutputType | null;
};
type GetNewslettersGroupByPayload<T extends newslettersGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<NewslettersGroupByOutputType, T['by']> & {
    [P in ((keyof T) & (keyof NewslettersGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], NewslettersGroupByOutputType[P]> : Prisma.GetScalarType<T[P], NewslettersGroupByOutputType[P]>;
}>>;
export type newslettersWhereInput = {
    AND?: Prisma.newslettersWhereInput | Prisma.newslettersWhereInput[];
    OR?: Prisma.newslettersWhereInput[];
    NOT?: Prisma.newslettersWhereInput | Prisma.newslettersWhereInput[];
    id?: Prisma.IntFilter<"newsletters"> | number;
    email?: Prisma.StringFilter<"newsletters"> | string;
    created_at?: Prisma.DateTimeNullableFilter<"newsletters"> | Date | string | null;
    first_name?: Prisma.StringNullableFilter<"newsletters"> | string | null;
    last_name?: Prisma.StringNullableFilter<"newsletters"> | string | null;
    status?: Prisma.StringNullableFilter<"newsletters"> | string | null;
};
export type newslettersOrderByWithRelationInput = {
    id?: Prisma.SortOrder;
    email?: Prisma.SortOrder;
    created_at?: Prisma.SortOrderInput | Prisma.SortOrder;
    first_name?: Prisma.SortOrderInput | Prisma.SortOrder;
    last_name?: Prisma.SortOrderInput | Prisma.SortOrder;
    status?: Prisma.SortOrderInput | Prisma.SortOrder;
};
export type newslettersWhereUniqueInput = Prisma.AtLeast<{
    id?: number;
    AND?: Prisma.newslettersWhereInput | Prisma.newslettersWhereInput[];
    OR?: Prisma.newslettersWhereInput[];
    NOT?: Prisma.newslettersWhereInput | Prisma.newslettersWhereInput[];
    email?: Prisma.StringFilter<"newsletters"> | string;
    created_at?: Prisma.DateTimeNullableFilter<"newsletters"> | Date | string | null;
    first_name?: Prisma.StringNullableFilter<"newsletters"> | string | null;
    last_name?: Prisma.StringNullableFilter<"newsletters"> | string | null;
    status?: Prisma.StringNullableFilter<"newsletters"> | string | null;
}, "id">;
export type newslettersOrderByWithAggregationInput = {
    id?: Prisma.SortOrder;
    email?: Prisma.SortOrder;
    created_at?: Prisma.SortOrderInput | Prisma.SortOrder;
    first_name?: Prisma.SortOrderInput | Prisma.SortOrder;
    last_name?: Prisma.SortOrderInput | Prisma.SortOrder;
    status?: Prisma.SortOrderInput | Prisma.SortOrder;
    _count?: Prisma.newslettersCountOrderByAggregateInput;
    _avg?: Prisma.newslettersAvgOrderByAggregateInput;
    _max?: Prisma.newslettersMaxOrderByAggregateInput;
    _min?: Prisma.newslettersMinOrderByAggregateInput;
    _sum?: Prisma.newslettersSumOrderByAggregateInput;
};
export type newslettersScalarWhereWithAggregatesInput = {
    AND?: Prisma.newslettersScalarWhereWithAggregatesInput | Prisma.newslettersScalarWhereWithAggregatesInput[];
    OR?: Prisma.newslettersScalarWhereWithAggregatesInput[];
    NOT?: Prisma.newslettersScalarWhereWithAggregatesInput | Prisma.newslettersScalarWhereWithAggregatesInput[];
    id?: Prisma.IntWithAggregatesFilter<"newsletters"> | number;
    email?: Prisma.StringWithAggregatesFilter<"newsletters"> | string;
    created_at?: Prisma.DateTimeNullableWithAggregatesFilter<"newsletters"> | Date | string | null;
    first_name?: Prisma.StringNullableWithAggregatesFilter<"newsletters"> | string | null;
    last_name?: Prisma.StringNullableWithAggregatesFilter<"newsletters"> | string | null;
    status?: Prisma.StringNullableWithAggregatesFilter<"newsletters"> | string | null;
};
export type newslettersCreateInput = {
    email: string;
    created_at?: Date | string | null;
    first_name?: string | null;
    last_name?: string | null;
    status?: string | null;
};
export type newslettersUncheckedCreateInput = {
    id?: number;
    email: string;
    created_at?: Date | string | null;
    first_name?: string | null;
    last_name?: string | null;
    status?: string | null;
};
export type newslettersUpdateInput = {
    email?: Prisma.StringFieldUpdateOperationsInput | string;
    created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
    first_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
    last_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
    status?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
};
export type newslettersUncheckedUpdateInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    email?: Prisma.StringFieldUpdateOperationsInput | string;
    created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
    first_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
    last_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
    status?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
};
export type newslettersCreateManyInput = {
    id?: number;
    email: string;
    created_at?: Date | string | null;
    first_name?: string | null;
    last_name?: string | null;
    status?: string | null;
};
export type newslettersUpdateManyMutationInput = {
    email?: Prisma.StringFieldUpdateOperationsInput | string;
    created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
    first_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
    last_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
    status?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
};
export type newslettersUncheckedUpdateManyInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    email?: Prisma.StringFieldUpdateOperationsInput | string;
    created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
    first_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
    last_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
    status?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
};
export type newslettersCountOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    email?: Prisma.SortOrder;
    created_at?: Prisma.SortOrder;
    first_name?: Prisma.SortOrder;
    last_name?: Prisma.SortOrder;
    status?: Prisma.SortOrder;
};
export type newslettersAvgOrderByAggregateInput = {
    id?: Prisma.SortOrder;
};
export type newslettersMaxOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    email?: Prisma.SortOrder;
    created_at?: Prisma.SortOrder;
    first_name?: Prisma.SortOrder;
    last_name?: Prisma.SortOrder;
    status?: Prisma.SortOrder;
};
export type newslettersMinOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    email?: Prisma.SortOrder;
    created_at?: Prisma.SortOrder;
    first_name?: Prisma.SortOrder;
    last_name?: Prisma.SortOrder;
    status?: Prisma.SortOrder;
};
export type newslettersSumOrderByAggregateInput = {
    id?: Prisma.SortOrder;
};
export type newslettersSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    email?: boolean;
    created_at?: boolean;
    first_name?: boolean;
    last_name?: boolean;
    status?: boolean;
}, ExtArgs["result"]["newsletters"]>;
export type newslettersSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    email?: boolean;
    created_at?: boolean;
    first_name?: boolean;
    last_name?: boolean;
    status?: boolean;
}, ExtArgs["result"]["newsletters"]>;
export type newslettersSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    email?: boolean;
    created_at?: boolean;
    first_name?: boolean;
    last_name?: boolean;
    status?: boolean;
}, ExtArgs["result"]["newsletters"]>;
export type newslettersSelectScalar = {
    id?: boolean;
    email?: boolean;
    created_at?: boolean;
    first_name?: boolean;
    last_name?: boolean;
    status?: boolean;
};
export type newslettersOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "email" | "created_at" | "first_name" | "last_name" | "status", ExtArgs["result"]["newsletters"]>;
export type $newslettersPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    name: "newsletters";
    objects: {};
    scalars: runtime.Types.Extensions.GetPayloadResult<{
        id: number;
        email: string;
        created_at: Date | null;
        first_name: string | null;
        last_name: string | null;
        status: string | null;
    }, ExtArgs["result"]["newsletters"]>;
    composites: {};
};
export type newslettersGetPayload<S extends boolean | null | undefined | newslettersDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$newslettersPayload, S>;
export type newslettersCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<newslettersFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
    select?: NewslettersCountAggregateInputType | true;
};
export interface newslettersDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
    [K: symbol]: {
        types: Prisma.TypeMap<ExtArgs>['model']['newsletters'];
        meta: {
            name: 'newsletters';
        };
    };
    /**
     * Find zero or one Newsletters that matches the filter.
     * @param {newslettersFindUniqueArgs} args - Arguments to find a Newsletters
     * @example
     * // Get one Newsletters
     * const newsletters = await prisma.newsletters.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends newslettersFindUniqueArgs>(args: Prisma.SelectSubset<T, newslettersFindUniqueArgs<ExtArgs>>): Prisma.Prisma__newslettersClient<runtime.Types.Result.GetResult<Prisma.$newslettersPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    /**
     * Find one Newsletters that matches the filter or throw an error with `error.code='P2025'`
     * if no matches were found.
     * @param {newslettersFindUniqueOrThrowArgs} args - Arguments to find a Newsletters
     * @example
     * // Get one Newsletters
     * const newsletters = await prisma.newsletters.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends newslettersFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, newslettersFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__newslettersClient<runtime.Types.Result.GetResult<Prisma.$newslettersPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Find the first Newsletters 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 {newslettersFindFirstArgs} args - Arguments to find a Newsletters
     * @example
     * // Get one Newsletters
     * const newsletters = await prisma.newsletters.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends newslettersFindFirstArgs>(args?: Prisma.SelectSubset<T, newslettersFindFirstArgs<ExtArgs>>): Prisma.Prisma__newslettersClient<runtime.Types.Result.GetResult<Prisma.$newslettersPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    /**
     * Find the first Newsletters 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 {newslettersFindFirstOrThrowArgs} args - Arguments to find a Newsletters
     * @example
     * // Get one Newsletters
     * const newsletters = await prisma.newsletters.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends newslettersFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, newslettersFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__newslettersClient<runtime.Types.Result.GetResult<Prisma.$newslettersPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Find zero or more Newsletters 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 {newslettersFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all Newsletters
     * const newsletters = await prisma.newsletters.findMany()
     *
     * // Get first 10 Newsletters
     * const newsletters = await prisma.newsletters.findMany({ take: 10 })
     *
     * // Only select the `id`
     * const newslettersWithIdOnly = await prisma.newsletters.findMany({ select: { id: true } })
     *
     */
    findMany<T extends newslettersFindManyArgs>(args?: Prisma.SelectSubset<T, newslettersFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$newslettersPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
    /**
     * Create a Newsletters.
     * @param {newslettersCreateArgs} args - Arguments to create a Newsletters.
     * @example
     * // Create one Newsletters
     * const Newsletters = await prisma.newsletters.create({
     *   data: {
     *     // ... data to create a Newsletters
     *   }
     * })
     *
     */
    create<T extends newslettersCreateArgs>(args: Prisma.SelectSubset<T, newslettersCreateArgs<ExtArgs>>): Prisma.Prisma__newslettersClient<runtime.Types.Result.GetResult<Prisma.$newslettersPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Create many Newsletters.
     * @param {newslettersCreateManyArgs} args - Arguments to create many Newsletters.
     * @example
     * // Create many Newsletters
     * const newsletters = await prisma.newsletters.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     */
    createMany<T extends newslettersCreateManyArgs>(args?: Prisma.SelectSubset<T, newslettersCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Create many Newsletters and returns the data saved in the database.
     * @param {newslettersCreateManyAndReturnArgs} args - Arguments to create many Newsletters.
     * @example
     * // Create many Newsletters
     * const newsletters = await prisma.newsletters.createManyAndReturn({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     * // Create many Newsletters and only return the `id`
     * const newslettersWithIdOnly = await prisma.newsletters.createManyAndReturn({
     *   select: { id: true },
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     *
     */
    createManyAndReturn<T extends newslettersCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, newslettersCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$newslettersPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
    /**
     * Delete a Newsletters.
     * @param {newslettersDeleteArgs} args - Arguments to delete one Newsletters.
     * @example
     * // Delete one Newsletters
     * const Newsletters = await prisma.newsletters.delete({
     *   where: {
     *     // ... filter to delete one Newsletters
     *   }
     * })
     *
     */
    delete<T extends newslettersDeleteArgs>(args: Prisma.SelectSubset<T, newslettersDeleteArgs<ExtArgs>>): Prisma.Prisma__newslettersClient<runtime.Types.Result.GetResult<Prisma.$newslettersPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Update one Newsletters.
     * @param {newslettersUpdateArgs} args - Arguments to update one Newsletters.
     * @example
     * // Update one Newsletters
     * const newsletters = await prisma.newsletters.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     *
     */
    update<T extends newslettersUpdateArgs>(args: Prisma.SelectSubset<T, newslettersUpdateArgs<ExtArgs>>): Prisma.Prisma__newslettersClient<runtime.Types.Result.GetResult<Prisma.$newslettersPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Delete zero or more Newsletters.
     * @param {newslettersDeleteManyArgs} args - Arguments to filter Newsletters to delete.
     * @example
     * // Delete a few Newsletters
     * const { count } = await prisma.newsletters.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     *
     */
    deleteMany<T extends newslettersDeleteManyArgs>(args?: Prisma.SelectSubset<T, newslettersDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Update zero or more Newsletters.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {newslettersUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many Newsletters
     * const newsletters = await prisma.newsletters.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     *
     */
    updateMany<T extends newslettersUpdateManyArgs>(args: Prisma.SelectSubset<T, newslettersUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Update zero or more Newsletters and returns the data updated in the database.
     * @param {newslettersUpdateManyAndReturnArgs} args - Arguments to update many Newsletters.
     * @example
     * // Update many Newsletters
     * const newsletters = await prisma.newsletters.updateManyAndReturn({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     * // Update zero or more Newsletters and only return the `id`
     * const newslettersWithIdOnly = await prisma.newsletters.updateManyAndReturn({
     *   select: { id: true },
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     *
     */
    updateManyAndReturn<T extends newslettersUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, newslettersUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$newslettersPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
    /**
     * Create or update one Newsletters.
     * @param {newslettersUpsertArgs} args - Arguments to update or create a Newsletters.
     * @example
     * // Update or create a Newsletters
     * const newsletters = await prisma.newsletters.upsert({
     *   create: {
     *     // ... data to create a Newsletters
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the Newsletters we want to update
     *   }
     * })
     */
    upsert<T extends newslettersUpsertArgs>(args: Prisma.SelectSubset<T, newslettersUpsertArgs<ExtArgs>>): Prisma.Prisma__newslettersClient<runtime.Types.Result.GetResult<Prisma.$newslettersPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Count the number of Newsletters.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {newslettersCountArgs} args - Arguments to filter Newsletters to count.
     * @example
     * // Count the number of Newsletters
     * const count = await prisma.newsletters.count({
     *   where: {
     *     // ... the filter for the Newsletters we want to count
     *   }
     * })
    **/
    count<T extends newslettersCountArgs>(args?: Prisma.Subset<T, newslettersCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], NewslettersCountAggregateOutputType> : number>;
    /**
     * Allows you to perform aggregations operations on a Newsletters.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {NewslettersAggregateArgs} 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 NewslettersAggregateArgs>(args: Prisma.Subset<T, NewslettersAggregateArgs>): Prisma.PrismaPromise<GetNewslettersAggregateType<T>>;
    /**
     * Group by Newsletters.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {newslettersGroupByArgs} 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 newslettersGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
        orderBy: newslettersGroupByArgs['orderBy'];
    } : {
        orderBy?: newslettersGroupByArgs['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, newslettersGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetNewslettersGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
    /**
     * Fields of the newsletters model
     */
    readonly fields: newslettersFieldRefs;
}
/**
 * The delegate class that acts as a "Promise-like" for newsletters.
 * 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__newslettersClient<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 newsletters model
 */
export interface newslettersFieldRefs {
    readonly id: Prisma.FieldRef<"newsletters", 'Int'>;
    readonly email: Prisma.FieldRef<"newsletters", 'String'>;
    readonly created_at: Prisma.FieldRef<"newsletters", 'DateTime'>;
    readonly first_name: Prisma.FieldRef<"newsletters", 'String'>;
    readonly last_name: Prisma.FieldRef<"newsletters", 'String'>;
    readonly status: Prisma.FieldRef<"newsletters", 'String'>;
}
/**
 * newsletters findUnique
 */
export type newslettersFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the newsletters
     */
    select?: Prisma.newslettersSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the newsletters
     */
    omit?: Prisma.newslettersOmit<ExtArgs> | null;
    /**
     * Filter, which newsletters to fetch.
     */
    where: Prisma.newslettersWhereUniqueInput;
};
/**
 * newsletters findUniqueOrThrow
 */
export type newslettersFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the newsletters
     */
    select?: Prisma.newslettersSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the newsletters
     */
    omit?: Prisma.newslettersOmit<ExtArgs> | null;
    /**
     * Filter, which newsletters to fetch.
     */
    where: Prisma.newslettersWhereUniqueInput;
};
/**
 * newsletters findFirst
 */
export type newslettersFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the newsletters
     */
    select?: Prisma.newslettersSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the newsletters
     */
    omit?: Prisma.newslettersOmit<ExtArgs> | null;
    /**
     * Filter, which newsletters to fetch.
     */
    where?: Prisma.newslettersWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of newsletters to fetch.
     */
    orderBy?: Prisma.newslettersOrderByWithRelationInput | Prisma.newslettersOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for searching for newsletters.
     */
    cursor?: Prisma.newslettersWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` newsletters 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` newsletters.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     *
     * Filter by unique combinations of newsletters.
     */
    distinct?: Prisma.NewslettersScalarFieldEnum | Prisma.NewslettersScalarFieldEnum[];
};
/**
 * newsletters findFirstOrThrow
 */
export type newslettersFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the newsletters
     */
    select?: Prisma.newslettersSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the newsletters
     */
    omit?: Prisma.newslettersOmit<ExtArgs> | null;
    /**
     * Filter, which newsletters to fetch.
     */
    where?: Prisma.newslettersWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of newsletters to fetch.
     */
    orderBy?: Prisma.newslettersOrderByWithRelationInput | Prisma.newslettersOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for searching for newsletters.
     */
    cursor?: Prisma.newslettersWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` newsletters 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` newsletters.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     *
     * Filter by unique combinations of newsletters.
     */
    distinct?: Prisma.NewslettersScalarFieldEnum | Prisma.NewslettersScalarFieldEnum[];
};
/**
 * newsletters findMany
 */
export type newslettersFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the newsletters
     */
    select?: Prisma.newslettersSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the newsletters
     */
    omit?: Prisma.newslettersOmit<ExtArgs> | null;
    /**
     * Filter, which newsletters to fetch.
     */
    where?: Prisma.newslettersWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of newsletters to fetch.
     */
    orderBy?: Prisma.newslettersOrderByWithRelationInput | Prisma.newslettersOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for listing newsletters.
     */
    cursor?: Prisma.newslettersWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` newsletters 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` newsletters.
     */
    skip?: number;
    distinct?: Prisma.NewslettersScalarFieldEnum | Prisma.NewslettersScalarFieldEnum[];
};
/**
 * newsletters create
 */
export type newslettersCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the newsletters
     */
    select?: Prisma.newslettersSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the newsletters
     */
    omit?: Prisma.newslettersOmit<ExtArgs> | null;
    /**
     * The data needed to create a newsletters.
     */
    data: Prisma.XOR<Prisma.newslettersCreateInput, Prisma.newslettersUncheckedCreateInput>;
};
/**
 * newsletters createMany
 */
export type newslettersCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * The data used to create many newsletters.
     */
    data: Prisma.newslettersCreateManyInput | Prisma.newslettersCreateManyInput[];
    skipDuplicates?: boolean;
};
/**
 * newsletters createManyAndReturn
 */
export type newslettersCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the newsletters
     */
    select?: Prisma.newslettersSelectCreateManyAndReturn<ExtArgs> | null;
    /**
     * Omit specific fields from the newsletters
     */
    omit?: Prisma.newslettersOmit<ExtArgs> | null;
    /**
     * The data used to create many newsletters.
     */
    data: Prisma.newslettersCreateManyInput | Prisma.newslettersCreateManyInput[];
    skipDuplicates?: boolean;
};
/**
 * newsletters update
 */
export type newslettersUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the newsletters
     */
    select?: Prisma.newslettersSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the newsletters
     */
    omit?: Prisma.newslettersOmit<ExtArgs> | null;
    /**
     * The data needed to update a newsletters.
     */
    data: Prisma.XOR<Prisma.newslettersUpdateInput, Prisma.newslettersUncheckedUpdateInput>;
    /**
     * Choose, which newsletters to update.
     */
    where: Prisma.newslettersWhereUniqueInput;
};
/**
 * newsletters updateMany
 */
export type newslettersUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * The data used to update newsletters.
     */
    data: Prisma.XOR<Prisma.newslettersUpdateManyMutationInput, Prisma.newslettersUncheckedUpdateManyInput>;
    /**
     * Filter which newsletters to update
     */
    where?: Prisma.newslettersWhereInput;
    /**
     * Limit how many newsletters to update.
     */
    limit?: number;
};
/**
 * newsletters updateManyAndReturn
 */
export type newslettersUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the newsletters
     */
    select?: Prisma.newslettersSelectUpdateManyAndReturn<ExtArgs> | null;
    /**
     * Omit specific fields from the newsletters
     */
    omit?: Prisma.newslettersOmit<ExtArgs> | null;
    /**
     * The data used to update newsletters.
     */
    data: Prisma.XOR<Prisma.newslettersUpdateManyMutationInput, Prisma.newslettersUncheckedUpdateManyInput>;
    /**
     * Filter which newsletters to update
     */
    where?: Prisma.newslettersWhereInput;
    /**
     * Limit how many newsletters to update.
     */
    limit?: number;
};
/**
 * newsletters upsert
 */
export type newslettersUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the newsletters
     */
    select?: Prisma.newslettersSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the newsletters
     */
    omit?: Prisma.newslettersOmit<ExtArgs> | null;
    /**
     * The filter to search for the newsletters to update in case it exists.
     */
    where: Prisma.newslettersWhereUniqueInput;
    /**
     * In case the newsletters found by the `where` argument doesn't exist, create a new newsletters with this data.
     */
    create: Prisma.XOR<Prisma.newslettersCreateInput, Prisma.newslettersUncheckedCreateInput>;
    /**
     * In case the newsletters was found with the provided `where` argument, update it with this data.
     */
    update: Prisma.XOR<Prisma.newslettersUpdateInput, Prisma.newslettersUncheckedUpdateInput>;
};
/**
 * newsletters delete
 */
export type newslettersDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the newsletters
     */
    select?: Prisma.newslettersSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the newsletters
     */
    omit?: Prisma.newslettersOmit<ExtArgs> | null;
    /**
     * Filter which newsletters to delete.
     */
    where: Prisma.newslettersWhereUniqueInput;
};
/**
 * newsletters deleteMany
 */
export type newslettersDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Filter which newsletters to delete
     */
    where?: Prisma.newslettersWhereInput;
    /**
     * Limit how many newsletters to delete.
     */
    limit?: number;
};
/**
 * newsletters without action
 */
export type newslettersDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the newsletters
     */
    select?: Prisma.newslettersSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the newsletters
     */
    omit?: Prisma.newslettersOmit<ExtArgs> | null;
};
export {};
