import type * as runtime from "@prisma/client/runtime/client"; import type * as Prisma from "../internal/prismaNamespace.js"; /** * Model Region * */ export type RegionModel = runtime.Types.Result.DefaultSelection; export type AggregateRegion = { _count: RegionCountAggregateOutputType | null; _min: RegionMinAggregateOutputType | null; _max: RegionMaxAggregateOutputType | null; }; export type RegionMinAggregateOutputType = { createdAt: Date | null; updatedAt: Date | null; regionName: string | null; }; export type RegionMaxAggregateOutputType = { createdAt: Date | null; updatedAt: Date | null; regionName: string | null; }; export type RegionCountAggregateOutputType = { createdAt: number; updatedAt: number; regionName: number; _all: number; }; export type RegionMinAggregateInputType = { createdAt?: true | runtime.Types.Skip; updatedAt?: true | runtime.Types.Skip; regionName?: true | runtime.Types.Skip; }; export type RegionMaxAggregateInputType = { createdAt?: true | runtime.Types.Skip; updatedAt?: true | runtime.Types.Skip; regionName?: true | runtime.Types.Skip; }; export type RegionCountAggregateInputType = { createdAt?: true | runtime.Types.Skip; updatedAt?: true | runtime.Types.Skip; regionName?: true | runtime.Types.Skip; _all?: true | runtime.Types.Skip; }; export type RegionAggregateArgs = { /** * Filter which Region to aggregate. */ where?: Prisma.RegionWhereInput | runtime.Types.Skip; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Regions to fetch. */ orderBy?: Prisma.RegionOrderByWithRelationInput | Prisma.RegionOrderByWithRelationInput[] | runtime.Types.Skip; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.RegionWhereUniqueInput | runtime.Types.Skip; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Regions from the position of the cursor. */ take?: number | runtime.Types.Skip; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Regions. */ skip?: number | runtime.Types.Skip; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Regions **/ _count?: true | RegionCountAggregateInputType; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: RegionMinAggregateInputType; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: RegionMaxAggregateInputType; }; export type GetRegionAggregateType = { [P in keyof T & keyof AggregateRegion]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType; }; export type RegionGroupByArgs = { where?: Prisma.RegionWhereInput | runtime.Types.Skip; orderBy?: Prisma.RegionOrderByWithAggregationInput | Prisma.RegionOrderByWithAggregationInput[] | runtime.Types.Skip; by: Prisma.RegionScalarFieldEnum[] | Prisma.RegionScalarFieldEnum; having?: Prisma.RegionScalarWhereWithAggregatesInput | runtime.Types.Skip; take?: number | runtime.Types.Skip; skip?: number | runtime.Types.Skip; _count?: RegionCountAggregateInputType | true; _min?: RegionMinAggregateInputType; _max?: RegionMaxAggregateInputType; }; export type RegionGroupByOutputType = { createdAt: Date; updatedAt: Date; regionName: string; _count: RegionCountAggregateOutputType | null; _min: RegionMinAggregateOutputType | null; _max: RegionMaxAggregateOutputType | null; }; export type GetRegionGroupByPayload = Prisma.PrismaPromise & { [P in ((keyof T) & (keyof RegionGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType; }>>; export type RegionWhereInput = { AND?: Prisma.RegionWhereInput | Prisma.RegionWhereInput[] | runtime.Types.Skip; OR?: Prisma.RegionWhereInput[] | runtime.Types.Skip; NOT?: Prisma.RegionWhereInput | Prisma.RegionWhereInput[] | runtime.Types.Skip; createdAt?: Prisma.DateTimeFilter<"Region"> | Date | string | runtime.Types.Skip; updatedAt?: Prisma.DateTimeFilter<"Region"> | Date | string | runtime.Types.Skip; regionName?: Prisma.StringFilter<"Region"> | string | runtime.Types.Skip; users?: Prisma.UserListRelationFilter | runtime.Types.Skip; }; export type RegionOrderByWithRelationInput = { createdAt?: Prisma.SortOrder | runtime.Types.Skip; updatedAt?: Prisma.SortOrder | runtime.Types.Skip; regionName?: Prisma.SortOrder | runtime.Types.Skip; users?: Prisma.UserOrderByRelationAggregateInput | runtime.Types.Skip; }; export type RegionWhereUniqueInput = Prisma.AtLeast<{ regionName?: string | runtime.Types.Skip; AND?: Prisma.RegionWhereInput | Prisma.RegionWhereInput[] | runtime.Types.Skip; OR?: Prisma.RegionWhereInput[] | runtime.Types.Skip; NOT?: Prisma.RegionWhereInput | Prisma.RegionWhereInput[] | runtime.Types.Skip; createdAt?: Prisma.DateTimeFilter<"Region"> | Date | string | runtime.Types.Skip; updatedAt?: Prisma.DateTimeFilter<"Region"> | Date | string | runtime.Types.Skip; users?: Prisma.UserListRelationFilter | runtime.Types.Skip; }, "regionName">; export type RegionOrderByWithAggregationInput = { createdAt?: Prisma.SortOrder | runtime.Types.Skip; updatedAt?: Prisma.SortOrder | runtime.Types.Skip; regionName?: Prisma.SortOrder | runtime.Types.Skip; _count?: Prisma.RegionCountOrderByAggregateInput | runtime.Types.Skip; _max?: Prisma.RegionMaxOrderByAggregateInput | runtime.Types.Skip; _min?: Prisma.RegionMinOrderByAggregateInput | runtime.Types.Skip; }; export type RegionScalarWhereWithAggregatesInput = { AND?: Prisma.RegionScalarWhereWithAggregatesInput | Prisma.RegionScalarWhereWithAggregatesInput[] | runtime.Types.Skip; OR?: Prisma.RegionScalarWhereWithAggregatesInput[] | runtime.Types.Skip; NOT?: Prisma.RegionScalarWhereWithAggregatesInput | Prisma.RegionScalarWhereWithAggregatesInput[] | runtime.Types.Skip; createdAt?: Prisma.DateTimeWithAggregatesFilter<"Region"> | Date | string | runtime.Types.Skip; updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Region"> | Date | string | runtime.Types.Skip; regionName?: Prisma.StringWithAggregatesFilter<"Region"> | string | runtime.Types.Skip; }; export type RegionCreateInput = { createdAt?: Date | string | runtime.Types.Skip; updatedAt?: Date | string | runtime.Types.Skip; regionName: string; users?: Prisma.UserCreateNestedManyWithoutRegionsInput | runtime.Types.Skip; }; export type RegionUncheckedCreateInput = { createdAt?: Date | string | runtime.Types.Skip; updatedAt?: Date | string | runtime.Types.Skip; regionName: string; users?: Prisma.UserUncheckedCreateNestedManyWithoutRegionsInput | runtime.Types.Skip; }; export type RegionUpdateInput = { createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string | runtime.Types.Skip; updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string | runtime.Types.Skip; regionName?: Prisma.StringFieldUpdateOperationsInput | string | runtime.Types.Skip; users?: Prisma.UserUpdateManyWithoutRegionsNestedInput | runtime.Types.Skip; }; export type RegionUncheckedUpdateInput = { createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string | runtime.Types.Skip; updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string | runtime.Types.Skip; regionName?: Prisma.StringFieldUpdateOperationsInput | string | runtime.Types.Skip; users?: Prisma.UserUncheckedUpdateManyWithoutRegionsNestedInput | runtime.Types.Skip; }; export type RegionCreateManyInput = { createdAt?: Date | string | runtime.Types.Skip; updatedAt?: Date | string | runtime.Types.Skip; regionName: string; }; export type RegionUpdateManyMutationInput = { createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string | runtime.Types.Skip; updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string | runtime.Types.Skip; regionName?: Prisma.StringFieldUpdateOperationsInput | string | runtime.Types.Skip; }; export type RegionUncheckedUpdateManyInput = { createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string | runtime.Types.Skip; updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string | runtime.Types.Skip; regionName?: Prisma.StringFieldUpdateOperationsInput | string | runtime.Types.Skip; }; export type RegionListRelationFilter = { every?: Prisma.RegionWhereInput | runtime.Types.Skip; some?: Prisma.RegionWhereInput | runtime.Types.Skip; none?: Prisma.RegionWhereInput | runtime.Types.Skip; }; export type RegionOrderByRelationAggregateInput = { _count?: Prisma.SortOrder | runtime.Types.Skip; }; export type RegionCountOrderByAggregateInput = { createdAt?: Prisma.SortOrder | runtime.Types.Skip; updatedAt?: Prisma.SortOrder | runtime.Types.Skip; regionName?: Prisma.SortOrder | runtime.Types.Skip; }; export type RegionMaxOrderByAggregateInput = { createdAt?: Prisma.SortOrder | runtime.Types.Skip; updatedAt?: Prisma.SortOrder | runtime.Types.Skip; regionName?: Prisma.SortOrder | runtime.Types.Skip; }; export type RegionMinOrderByAggregateInput = { createdAt?: Prisma.SortOrder | runtime.Types.Skip; updatedAt?: Prisma.SortOrder | runtime.Types.Skip; regionName?: Prisma.SortOrder | runtime.Types.Skip; }; export type RegionCreateNestedManyWithoutUsersInput = { create?: Prisma.XOR | Prisma.RegionCreateWithoutUsersInput[] | Prisma.RegionUncheckedCreateWithoutUsersInput[] | runtime.Types.Skip; connectOrCreate?: Prisma.RegionCreateOrConnectWithoutUsersInput | Prisma.RegionCreateOrConnectWithoutUsersInput[] | runtime.Types.Skip; connect?: Prisma.RegionWhereUniqueInput | Prisma.RegionWhereUniqueInput[] | runtime.Types.Skip; }; export type RegionUncheckedCreateNestedManyWithoutUsersInput = { create?: Prisma.XOR | Prisma.RegionCreateWithoutUsersInput[] | Prisma.RegionUncheckedCreateWithoutUsersInput[] | runtime.Types.Skip; connectOrCreate?: Prisma.RegionCreateOrConnectWithoutUsersInput | Prisma.RegionCreateOrConnectWithoutUsersInput[] | runtime.Types.Skip; connect?: Prisma.RegionWhereUniqueInput | Prisma.RegionWhereUniqueInput[] | runtime.Types.Skip; }; export type RegionUpdateManyWithoutUsersNestedInput = { create?: Prisma.XOR | Prisma.RegionCreateWithoutUsersInput[] | Prisma.RegionUncheckedCreateWithoutUsersInput[] | runtime.Types.Skip; connectOrCreate?: Prisma.RegionCreateOrConnectWithoutUsersInput | Prisma.RegionCreateOrConnectWithoutUsersInput[] | runtime.Types.Skip; upsert?: Prisma.RegionUpsertWithWhereUniqueWithoutUsersInput | Prisma.RegionUpsertWithWhereUniqueWithoutUsersInput[] | runtime.Types.Skip; set?: Prisma.RegionWhereUniqueInput | Prisma.RegionWhereUniqueInput[] | runtime.Types.Skip; disconnect?: Prisma.RegionWhereUniqueInput | Prisma.RegionWhereUniqueInput[] | runtime.Types.Skip; delete?: Prisma.RegionWhereUniqueInput | Prisma.RegionWhereUniqueInput[] | runtime.Types.Skip; connect?: Prisma.RegionWhereUniqueInput | Prisma.RegionWhereUniqueInput[] | runtime.Types.Skip; update?: Prisma.RegionUpdateWithWhereUniqueWithoutUsersInput | Prisma.RegionUpdateWithWhereUniqueWithoutUsersInput[] | runtime.Types.Skip; updateMany?: Prisma.RegionUpdateManyWithWhereWithoutUsersInput | Prisma.RegionUpdateManyWithWhereWithoutUsersInput[] | runtime.Types.Skip; deleteMany?: Prisma.RegionScalarWhereInput | Prisma.RegionScalarWhereInput[] | runtime.Types.Skip; }; export type RegionUncheckedUpdateManyWithoutUsersNestedInput = { create?: Prisma.XOR | Prisma.RegionCreateWithoutUsersInput[] | Prisma.RegionUncheckedCreateWithoutUsersInput[] | runtime.Types.Skip; connectOrCreate?: Prisma.RegionCreateOrConnectWithoutUsersInput | Prisma.RegionCreateOrConnectWithoutUsersInput[] | runtime.Types.Skip; upsert?: Prisma.RegionUpsertWithWhereUniqueWithoutUsersInput | Prisma.RegionUpsertWithWhereUniqueWithoutUsersInput[] | runtime.Types.Skip; set?: Prisma.RegionWhereUniqueInput | Prisma.RegionWhereUniqueInput[] | runtime.Types.Skip; disconnect?: Prisma.RegionWhereUniqueInput | Prisma.RegionWhereUniqueInput[] | runtime.Types.Skip; delete?: Prisma.RegionWhereUniqueInput | Prisma.RegionWhereUniqueInput[] | runtime.Types.Skip; connect?: Prisma.RegionWhereUniqueInput | Prisma.RegionWhereUniqueInput[] | runtime.Types.Skip; update?: Prisma.RegionUpdateWithWhereUniqueWithoutUsersInput | Prisma.RegionUpdateWithWhereUniqueWithoutUsersInput[] | runtime.Types.Skip; updateMany?: Prisma.RegionUpdateManyWithWhereWithoutUsersInput | Prisma.RegionUpdateManyWithWhereWithoutUsersInput[] | runtime.Types.Skip; deleteMany?: Prisma.RegionScalarWhereInput | Prisma.RegionScalarWhereInput[] | runtime.Types.Skip; }; export type RegionCreateWithoutUsersInput = { createdAt?: Date | string | runtime.Types.Skip; updatedAt?: Date | string | runtime.Types.Skip; regionName: string; }; export type RegionUncheckedCreateWithoutUsersInput = { createdAt?: Date | string | runtime.Types.Skip; updatedAt?: Date | string | runtime.Types.Skip; regionName: string; }; export type RegionCreateOrConnectWithoutUsersInput = { where: Prisma.RegionWhereUniqueInput; create: Prisma.XOR; }; export type RegionUpsertWithWhereUniqueWithoutUsersInput = { where: Prisma.RegionWhereUniqueInput; update: Prisma.XOR; create: Prisma.XOR; }; export type RegionUpdateWithWhereUniqueWithoutUsersInput = { where: Prisma.RegionWhereUniqueInput; data: Prisma.XOR; }; export type RegionUpdateManyWithWhereWithoutUsersInput = { where: Prisma.RegionScalarWhereInput; data: Prisma.XOR; }; export type RegionScalarWhereInput = { AND?: Prisma.RegionScalarWhereInput | Prisma.RegionScalarWhereInput[] | runtime.Types.Skip; OR?: Prisma.RegionScalarWhereInput[] | runtime.Types.Skip; NOT?: Prisma.RegionScalarWhereInput | Prisma.RegionScalarWhereInput[] | runtime.Types.Skip; createdAt?: Prisma.DateTimeFilter<"Region"> | Date | string | runtime.Types.Skip; updatedAt?: Prisma.DateTimeFilter<"Region"> | Date | string | runtime.Types.Skip; regionName?: Prisma.StringFilter<"Region"> | string | runtime.Types.Skip; }; export type RegionUpdateWithoutUsersInput = { createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string | runtime.Types.Skip; updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string | runtime.Types.Skip; regionName?: Prisma.StringFieldUpdateOperationsInput | string | runtime.Types.Skip; }; export type RegionUncheckedUpdateWithoutUsersInput = { createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string | runtime.Types.Skip; updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string | runtime.Types.Skip; regionName?: Prisma.StringFieldUpdateOperationsInput | string | runtime.Types.Skip; }; export type RegionUncheckedUpdateManyWithoutUsersInput = { createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string | runtime.Types.Skip; updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string | runtime.Types.Skip; regionName?: Prisma.StringFieldUpdateOperationsInput | string | runtime.Types.Skip; }; /** * Count Type RegionCountOutputType */ export type RegionCountOutputType = { users: number; }; export type RegionCountOutputTypeSelect = { users?: boolean | RegionCountOutputTypeCountUsersArgs; }; /** * RegionCountOutputType without action */ export type RegionCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the RegionCountOutputType */ select?: Prisma.RegionCountOutputTypeSelect | null; }; /** * RegionCountOutputType without action */ export type RegionCountOutputTypeCountUsersArgs = { where?: Prisma.UserWhereInput | runtime.Types.Skip; }; export type RegionSelect = runtime.Types.Extensions.GetSelect<{ createdAt?: boolean | runtime.Types.Skip; updatedAt?: boolean | runtime.Types.Skip; regionName?: boolean | runtime.Types.Skip; users?: boolean | Prisma.Region$usersArgs | runtime.Types.Skip; _count?: boolean | Prisma.RegionCountOutputTypeDefaultArgs | runtime.Types.Skip; }, ExtArgs["result"]["region"]>; export type RegionSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ createdAt?: boolean | runtime.Types.Skip; updatedAt?: boolean | runtime.Types.Skip; regionName?: boolean | runtime.Types.Skip; }, ExtArgs["result"]["region"]>; export type RegionSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ createdAt?: boolean | runtime.Types.Skip; updatedAt?: boolean | runtime.Types.Skip; regionName?: boolean | runtime.Types.Skip; }, ExtArgs["result"]["region"]>; export type RegionSelectScalar = { createdAt?: boolean | runtime.Types.Skip; updatedAt?: boolean | runtime.Types.Skip; regionName?: boolean | runtime.Types.Skip; }; export type RegionOmit = runtime.Types.Extensions.GetOmit<"createdAt" | "updatedAt" | "regionName", ExtArgs["result"]["region"], runtime.Types.Skip>; export type RegionInclude = { users?: boolean | Prisma.Region$usersArgs | runtime.Types.Skip; _count?: boolean | Prisma.RegionCountOutputTypeDefaultArgs | runtime.Types.Skip; }; export type RegionIncludeCreateManyAndReturn = {}; export type RegionIncludeUpdateManyAndReturn = {}; export type $RegionPayload = { name: "Region"; objects: { users: Prisma.$UserPayload[]; }; scalars: runtime.Types.Extensions.GetPayloadResult<{ createdAt: Date; updatedAt: Date; regionName: string; }, ExtArgs["result"]["region"]>; composites: {}; }; export type RegionGetPayload = runtime.Types.Result.GetResult; export type RegionCountArgs = Omit & { select?: RegionCountAggregateInputType | true; }; export interface RegionDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Region']; meta: { name: 'Region'; }; }; /** * Find zero or one Region that matches the filter. * @param {RegionFindUniqueArgs} args - Arguments to find a Region * @example * // Get one Region * const region = await prisma.region.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__RegionClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>; /** * Find one Region that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {RegionFindUniqueOrThrowArgs} args - Arguments to find a Region * @example * // Get one Region * const region = await prisma.region.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__RegionClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>; /** * Find the first Region 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 {RegionFindFirstArgs} args - Arguments to find a Region * @example * // Get one Region * const region = await prisma.region.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__RegionClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>; /** * Find the first Region 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 {RegionFindFirstOrThrowArgs} args - Arguments to find a Region * @example * // Get one Region * const region = await prisma.region.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__RegionClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>; /** * Find zero or more Regions 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 {RegionFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Regions * const regions = await prisma.region.findMany() * * // Get first 10 Regions * const regions = await prisma.region.findMany({ take: 10 }) * * // Only select the `createdAt` * const regionWithCreatedAtOnly = await prisma.region.findMany({ select: { createdAt: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>>; /** * Create a Region. * @param {RegionCreateArgs} args - Arguments to create a Region. * @example * // Create one Region * const Region = await prisma.region.create({ * data: { * // ... data to create a Region * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__RegionClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>; /** * Create many Regions. * @param {RegionCreateManyArgs} args - Arguments to create many Regions. * @example * // Create many Regions * const region = await prisma.region.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise; /** * Create many Regions and returns the data saved in the database. * @param {RegionCreateManyAndReturnArgs} args - Arguments to create many Regions. * @example * // Create many Regions * const region = await prisma.region.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Regions and only return the `createdAt` * const regionWithCreatedAtOnly = await prisma.region.createManyAndReturn({ * select: { createdAt: 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 Region. * @param {RegionDeleteArgs} args - Arguments to delete one Region. * @example * // Delete one Region * const Region = await prisma.region.delete({ * where: { * // ... filter to delete one Region * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__RegionClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>; /** * Update one Region. * @param {RegionUpdateArgs} args - Arguments to update one Region. * @example * // Update one Region * const region = await prisma.region.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__RegionClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>; /** * Delete zero or more Regions. * @param {RegionDeleteManyArgs} args - Arguments to filter Regions to delete. * @example * // Delete a few Regions * const { count } = await prisma.region.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise; /** * Update zero or more Regions. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {RegionUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Regions * const region = await prisma.region.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise; /** * Update zero or more Regions and returns the data updated in the database. * @param {RegionUpdateManyAndReturnArgs} args - Arguments to update many Regions. * @example * // Update many Regions * const region = await prisma.region.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Regions and only return the `createdAt` * const regionWithCreatedAtOnly = await prisma.region.updateManyAndReturn({ * select: { createdAt: 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 Region. * @param {RegionUpsertArgs} args - Arguments to update or create a Region. * @example * // Update or create a Region * const region = await prisma.region.upsert({ * create: { * // ... data to create a Region * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Region we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__RegionClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>; /** * Count the number of Regions. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {RegionCountArgs} args - Arguments to filter Regions to count. * @example * // Count the number of Regions * const count = await prisma.region.count({ * where: { * // ... the filter for the Regions we want to count * } * }) **/ count(args?: Prisma.Subset): Prisma.PrismaPromise ? T['select'] extends true ? number : Prisma.GetScalarType : number>; /** * Allows you to perform aggregations operations on a Region. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {RegionAggregateArgs} 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 Region. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {RegionGroupByArgs} 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>, Prisma.Extends<'take', Prisma.Keys>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: RegionGroupByArgs['orderBy']; } : { orderBy?: RegionGroupByArgs['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 ? GetRegionGroupByPayload : Prisma.PrismaPromise; /** * Fields of the Region model */ readonly fields: RegionFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Region. * 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__RegionClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise"; users = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null>; /** * 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 Region model */ export interface RegionFieldRefs { readonly createdAt: Prisma.FieldRef<"Region", 'DateTime'>; readonly updatedAt: Prisma.FieldRef<"Region", 'DateTime'>; readonly regionName: Prisma.FieldRef<"Region", 'String'>; } /** * Region findUnique */ export type RegionFindUniqueArgs = { /** * Select specific fields to fetch from the Region */ select?: Prisma.RegionSelect | null; /** * Omit specific fields from the Region */ omit?: Prisma.RegionOmit | null; /** * Choose, which related nodes to fetch as well */ include?: Prisma.RegionInclude | null; /** * Filter, which Region to fetch. */ where: Prisma.RegionWhereUniqueInput; relationLoadStrategy?: Prisma.RelationLoadStrategy | runtime.Types.Skip; }; /** * Region findUniqueOrThrow */ export type RegionFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Region */ select?: Prisma.RegionSelect | null; /** * Omit specific fields from the Region */ omit?: Prisma.RegionOmit | null; /** * Choose, which related nodes to fetch as well */ include?: Prisma.RegionInclude | null; /** * Filter, which Region to fetch. */ where: Prisma.RegionWhereUniqueInput; relationLoadStrategy?: Prisma.RelationLoadStrategy | runtime.Types.Skip; }; /** * Region findFirst */ export type RegionFindFirstArgs = { /** * Select specific fields to fetch from the Region */ select?: Prisma.RegionSelect | null; /** * Omit specific fields from the Region */ omit?: Prisma.RegionOmit | null; /** * Choose, which related nodes to fetch as well */ include?: Prisma.RegionInclude | null; /** * Filter, which Region to fetch. */ where?: Prisma.RegionWhereInput | runtime.Types.Skip; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Regions to fetch. */ orderBy?: Prisma.RegionOrderByWithRelationInput | Prisma.RegionOrderByWithRelationInput[] | runtime.Types.Skip; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Regions. */ cursor?: Prisma.RegionWhereUniqueInput | runtime.Types.Skip; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Regions from the position of the cursor. */ take?: number | runtime.Types.Skip; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Regions. */ skip?: number | runtime.Types.Skip; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Regions. */ distinct?: Prisma.RegionScalarFieldEnum | Prisma.RegionScalarFieldEnum[] | runtime.Types.Skip; relationLoadStrategy?: Prisma.RelationLoadStrategy | runtime.Types.Skip; }; /** * Region findFirstOrThrow */ export type RegionFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Region */ select?: Prisma.RegionSelect | null; /** * Omit specific fields from the Region */ omit?: Prisma.RegionOmit | null; /** * Choose, which related nodes to fetch as well */ include?: Prisma.RegionInclude | null; /** * Filter, which Region to fetch. */ where?: Prisma.RegionWhereInput | runtime.Types.Skip; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Regions to fetch. */ orderBy?: Prisma.RegionOrderByWithRelationInput | Prisma.RegionOrderByWithRelationInput[] | runtime.Types.Skip; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Regions. */ cursor?: Prisma.RegionWhereUniqueInput | runtime.Types.Skip; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Regions from the position of the cursor. */ take?: number | runtime.Types.Skip; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Regions. */ skip?: number | runtime.Types.Skip; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Regions. */ distinct?: Prisma.RegionScalarFieldEnum | Prisma.RegionScalarFieldEnum[] | runtime.Types.Skip; relationLoadStrategy?: Prisma.RelationLoadStrategy | runtime.Types.Skip; }; /** * Region findMany */ export type RegionFindManyArgs = { /** * Select specific fields to fetch from the Region */ select?: Prisma.RegionSelect | null; /** * Omit specific fields from the Region */ omit?: Prisma.RegionOmit | null; /** * Choose, which related nodes to fetch as well */ include?: Prisma.RegionInclude | null; /** * Filter, which Regions to fetch. */ where?: Prisma.RegionWhereInput | runtime.Types.Skip; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Regions to fetch. */ orderBy?: Prisma.RegionOrderByWithRelationInput | Prisma.RegionOrderByWithRelationInput[] | runtime.Types.Skip; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Regions. */ cursor?: Prisma.RegionWhereUniqueInput | runtime.Types.Skip; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Regions from the position of the cursor. */ take?: number | runtime.Types.Skip; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Regions. */ skip?: number | runtime.Types.Skip; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Regions. */ distinct?: Prisma.RegionScalarFieldEnum | Prisma.RegionScalarFieldEnum[] | runtime.Types.Skip; relationLoadStrategy?: Prisma.RelationLoadStrategy | runtime.Types.Skip; }; /** * Region create */ export type RegionCreateArgs = { /** * Select specific fields to fetch from the Region */ select?: Prisma.RegionSelect | null; /** * Omit specific fields from the Region */ omit?: Prisma.RegionOmit | null; /** * Choose, which related nodes to fetch as well */ include?: Prisma.RegionInclude | null; /** * The data needed to create a Region. */ data: Prisma.XOR; relationLoadStrategy?: Prisma.RelationLoadStrategy | runtime.Types.Skip; }; /** * Region createMany */ export type RegionCreateManyArgs = { /** * The data used to create many Regions. */ data: Prisma.RegionCreateManyInput | Prisma.RegionCreateManyInput[]; skipDuplicates?: boolean | runtime.Types.Skip; }; /** * Region createManyAndReturn */ export type RegionCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Region */ select?: Prisma.RegionSelectCreateManyAndReturn | null; /** * Omit specific fields from the Region */ omit?: Prisma.RegionOmit | null; /** * The data used to create many Regions. */ data: Prisma.RegionCreateManyInput | Prisma.RegionCreateManyInput[]; skipDuplicates?: boolean | runtime.Types.Skip; }; /** * Region update */ export type RegionUpdateArgs = { /** * Select specific fields to fetch from the Region */ select?: Prisma.RegionSelect | null; /** * Omit specific fields from the Region */ omit?: Prisma.RegionOmit | null; /** * Choose, which related nodes to fetch as well */ include?: Prisma.RegionInclude | null; /** * The data needed to update a Region. */ data: Prisma.XOR; /** * Choose, which Region to update. */ where: Prisma.RegionWhereUniqueInput; relationLoadStrategy?: Prisma.RelationLoadStrategy | runtime.Types.Skip; }; /** * Region updateMany */ export type RegionUpdateManyArgs = { /** * The data used to update Regions. */ data: Prisma.XOR; /** * Filter which Regions to update */ where?: Prisma.RegionWhereInput | runtime.Types.Skip; /** * Limit how many Regions to update. */ limit?: number | runtime.Types.Skip; }; /** * Region updateManyAndReturn */ export type RegionUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Region */ select?: Prisma.RegionSelectUpdateManyAndReturn | null; /** * Omit specific fields from the Region */ omit?: Prisma.RegionOmit | null; /** * The data used to update Regions. */ data: Prisma.XOR; /** * Filter which Regions to update */ where?: Prisma.RegionWhereInput | runtime.Types.Skip; /** * Limit how many Regions to update. */ limit?: number | runtime.Types.Skip; }; /** * Region upsert */ export type RegionUpsertArgs = { /** * Select specific fields to fetch from the Region */ select?: Prisma.RegionSelect | null; /** * Omit specific fields from the Region */ omit?: Prisma.RegionOmit | null; /** * Choose, which related nodes to fetch as well */ include?: Prisma.RegionInclude | null; /** * The filter to search for the Region to update in case it exists. */ where: Prisma.RegionWhereUniqueInput; /** * In case the Region found by the `where` argument doesn't exist, create a new Region with this data. */ create: Prisma.XOR; /** * In case the Region was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR; relationLoadStrategy?: Prisma.RelationLoadStrategy | runtime.Types.Skip; }; /** * Region delete */ export type RegionDeleteArgs = { /** * Select specific fields to fetch from the Region */ select?: Prisma.RegionSelect | null; /** * Omit specific fields from the Region */ omit?: Prisma.RegionOmit | null; /** * Choose, which related nodes to fetch as well */ include?: Prisma.RegionInclude | null; /** * Filter which Region to delete. */ where: Prisma.RegionWhereUniqueInput; relationLoadStrategy?: Prisma.RelationLoadStrategy | runtime.Types.Skip; }; /** * Region deleteMany */ export type RegionDeleteManyArgs = { /** * Filter which Regions to delete */ where?: Prisma.RegionWhereInput | runtime.Types.Skip; /** * Limit how many Regions to delete. */ limit?: number | runtime.Types.Skip; }; /** * Region.users */ export type Region$usersArgs = { /** * Select specific fields to fetch from the User */ select?: Prisma.UserSelect | null; /** * Omit specific fields from the User */ omit?: Prisma.UserOmit | null; /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserInclude | null; where?: Prisma.UserWhereInput | runtime.Types.Skip; orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[] | runtime.Types.Skip; cursor?: Prisma.UserWhereUniqueInput | runtime.Types.Skip; take?: number | runtime.Types.Skip; skip?: number | runtime.Types.Skip; distinct?: Prisma.UserScalarFieldEnum | Prisma.UserScalarFieldEnum[] | runtime.Types.Skip; }; /** * Region without action */ export type RegionDefaultArgs = { /** * Select specific fields to fetch from the Region */ select?: Prisma.RegionSelect | null; /** * Omit specific fields from the Region */ omit?: Prisma.RegionOmit | null; /** * Choose, which related nodes to fetch as well */ include?: Prisma.RegionInclude | null; };