import type * as runtime from "@prisma/client/runtime/client"; import type * as Prisma from "../internal/prismaNamespace.js"; /** * Model User * */ export type UserModel = runtime.Types.Result.DefaultSelection; export type AggregateUser = { _count: UserCountAggregateOutputType | null; _min: UserMinAggregateOutputType | null; _max: UserMaxAggregateOutputType | null; }; export type UserMinAggregateOutputType = { id: string | null; createdAt: Date | null; updatedAt: Date | null; email: string | null; password: string | null; firstName: string | null; lastName: string | null; role: string | null; phoneNumber: string | null; }; export type UserMaxAggregateOutputType = { id: string | null; createdAt: Date | null; updatedAt: Date | null; email: string | null; password: string | null; firstName: string | null; lastName: string | null; role: string | null; phoneNumber: string | null; }; export type UserCountAggregateOutputType = { id: number; createdAt: number; updatedAt: number; email: number; password: number; firstName: number; lastName: number; role: number; phoneNumber: number; _all: number; }; export type UserMinAggregateInputType = { id?: true | runtime.Types.Skip; createdAt?: true | runtime.Types.Skip; updatedAt?: true | runtime.Types.Skip; email?: true | runtime.Types.Skip; password?: true | runtime.Types.Skip; firstName?: true | runtime.Types.Skip; lastName?: true | runtime.Types.Skip; role?: true | runtime.Types.Skip; phoneNumber?: true | runtime.Types.Skip; }; export type UserMaxAggregateInputType = { id?: true | runtime.Types.Skip; createdAt?: true | runtime.Types.Skip; updatedAt?: true | runtime.Types.Skip; email?: true | runtime.Types.Skip; password?: true | runtime.Types.Skip; firstName?: true | runtime.Types.Skip; lastName?: true | runtime.Types.Skip; role?: true | runtime.Types.Skip; phoneNumber?: true | runtime.Types.Skip; }; export type UserCountAggregateInputType = { id?: true | runtime.Types.Skip; createdAt?: true | runtime.Types.Skip; updatedAt?: true | runtime.Types.Skip; email?: true | runtime.Types.Skip; password?: true | runtime.Types.Skip; firstName?: true | runtime.Types.Skip; lastName?: true | runtime.Types.Skip; role?: true | runtime.Types.Skip; phoneNumber?: true | runtime.Types.Skip; _all?: true | runtime.Types.Skip; }; export type UserAggregateArgs = { /** * Filter which User to aggregate. */ where?: Prisma.UserWhereInput | runtime.Types.Skip; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Users to fetch. */ orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[] | 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.UserWhereUniqueInput | runtime.Types.Skip; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Users 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` Users. */ skip?: number | runtime.Types.Skip; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Users **/ _count?: true | UserCountAggregateInputType; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: UserMinAggregateInputType; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: UserMaxAggregateInputType; }; export type GetUserAggregateType = { [P in keyof T & keyof AggregateUser]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType; }; export type UserGroupByArgs = { where?: Prisma.UserWhereInput | runtime.Types.Skip; orderBy?: Prisma.UserOrderByWithAggregationInput | Prisma.UserOrderByWithAggregationInput[] | runtime.Types.Skip; by: Prisma.UserScalarFieldEnum[] | Prisma.UserScalarFieldEnum; having?: Prisma.UserScalarWhereWithAggregatesInput | runtime.Types.Skip; take?: number | runtime.Types.Skip; skip?: number | runtime.Types.Skip; _count?: UserCountAggregateInputType | true; _min?: UserMinAggregateInputType; _max?: UserMaxAggregateInputType; }; export type UserGroupByOutputType = { id: string; createdAt: Date; updatedAt: Date; email: string; password: string; firstName: string | null; lastName: string | null; role: string | null; phoneNumber: string | null; _count: UserCountAggregateOutputType | null; _min: UserMinAggregateOutputType | null; _max: UserMaxAggregateOutputType | null; }; export type GetUserGroupByPayload = Prisma.PrismaPromise & { [P in ((keyof T) & (keyof UserGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType; }>>; export type UserWhereInput = { AND?: Prisma.UserWhereInput | Prisma.UserWhereInput[] | runtime.Types.Skip; OR?: Prisma.UserWhereInput[] | runtime.Types.Skip; NOT?: Prisma.UserWhereInput | Prisma.UserWhereInput[] | runtime.Types.Skip; id?: Prisma.StringFilter<"User"> | string | runtime.Types.Skip; createdAt?: Prisma.DateTimeFilter<"User"> | Date | string | runtime.Types.Skip; updatedAt?: Prisma.DateTimeFilter<"User"> | Date | string | runtime.Types.Skip; email?: Prisma.StringFilter<"User"> | string | runtime.Types.Skip; password?: Prisma.StringFilter<"User"> | string | runtime.Types.Skip; firstName?: Prisma.StringNullableFilter<"User"> | string | null | runtime.Types.Skip; lastName?: Prisma.StringNullableFilter<"User"> | string | null | runtime.Types.Skip; role?: Prisma.StringNullableFilter<"User"> | string | null | runtime.Types.Skip; phoneNumber?: Prisma.StringNullableFilter<"User"> | string | null | runtime.Types.Skip; settings?: Prisma.XOR | null | runtime.Types.Skip; posts?: Prisma.UserPostListRelationFilter | runtime.Types.Skip; regions?: Prisma.RegionListRelationFilter | runtime.Types.Skip; }; export type UserOrderByWithRelationInput = { id?: Prisma.SortOrder | runtime.Types.Skip; createdAt?: Prisma.SortOrder | runtime.Types.Skip; updatedAt?: Prisma.SortOrder | runtime.Types.Skip; email?: Prisma.SortOrder | runtime.Types.Skip; password?: Prisma.SortOrder | runtime.Types.Skip; firstName?: Prisma.SortOrderInput | Prisma.SortOrder | runtime.Types.Skip; lastName?: Prisma.SortOrderInput | Prisma.SortOrder | runtime.Types.Skip; role?: Prisma.SortOrderInput | Prisma.SortOrder | runtime.Types.Skip; phoneNumber?: Prisma.SortOrderInput | Prisma.SortOrder | runtime.Types.Skip; settings?: Prisma.UserSettingsOrderByWithRelationInput | runtime.Types.Skip; posts?: Prisma.UserPostOrderByRelationAggregateInput | runtime.Types.Skip; regions?: Prisma.RegionOrderByRelationAggregateInput | runtime.Types.Skip; }; export type UserWhereUniqueInput = Prisma.AtLeast<{ id?: string | runtime.Types.Skip; AND?: Prisma.UserWhereInput | Prisma.UserWhereInput[] | runtime.Types.Skip; OR?: Prisma.UserWhereInput[] | runtime.Types.Skip; NOT?: Prisma.UserWhereInput | Prisma.UserWhereInput[] | runtime.Types.Skip; createdAt?: Prisma.DateTimeFilter<"User"> | Date | string | runtime.Types.Skip; updatedAt?: Prisma.DateTimeFilter<"User"> | Date | string | runtime.Types.Skip; email?: Prisma.StringFilter<"User"> | string | runtime.Types.Skip; password?: Prisma.StringFilter<"User"> | string | runtime.Types.Skip; firstName?: Prisma.StringNullableFilter<"User"> | string | null | runtime.Types.Skip; lastName?: Prisma.StringNullableFilter<"User"> | string | null | runtime.Types.Skip; role?: Prisma.StringNullableFilter<"User"> | string | null | runtime.Types.Skip; phoneNumber?: Prisma.StringNullableFilter<"User"> | string | null | runtime.Types.Skip; settings?: Prisma.XOR | null | runtime.Types.Skip; posts?: Prisma.UserPostListRelationFilter | runtime.Types.Skip; regions?: Prisma.RegionListRelationFilter | runtime.Types.Skip; }, "id">; export type UserOrderByWithAggregationInput = { id?: Prisma.SortOrder | runtime.Types.Skip; createdAt?: Prisma.SortOrder | runtime.Types.Skip; updatedAt?: Prisma.SortOrder | runtime.Types.Skip; email?: Prisma.SortOrder | runtime.Types.Skip; password?: Prisma.SortOrder | runtime.Types.Skip; firstName?: Prisma.SortOrderInput | Prisma.SortOrder | runtime.Types.Skip; lastName?: Prisma.SortOrderInput | Prisma.SortOrder | runtime.Types.Skip; role?: Prisma.SortOrderInput | Prisma.SortOrder | runtime.Types.Skip; phoneNumber?: Prisma.SortOrderInput | Prisma.SortOrder | runtime.Types.Skip; _count?: Prisma.UserCountOrderByAggregateInput | runtime.Types.Skip; _max?: Prisma.UserMaxOrderByAggregateInput | runtime.Types.Skip; _min?: Prisma.UserMinOrderByAggregateInput | runtime.Types.Skip; }; export type UserScalarWhereWithAggregatesInput = { AND?: Prisma.UserScalarWhereWithAggregatesInput | Prisma.UserScalarWhereWithAggregatesInput[] | runtime.Types.Skip; OR?: Prisma.UserScalarWhereWithAggregatesInput[] | runtime.Types.Skip; NOT?: Prisma.UserScalarWhereWithAggregatesInput | Prisma.UserScalarWhereWithAggregatesInput[] | runtime.Types.Skip; id?: Prisma.StringWithAggregatesFilter<"User"> | string | runtime.Types.Skip; createdAt?: Prisma.DateTimeWithAggregatesFilter<"User"> | Date | string | runtime.Types.Skip; updatedAt?: Prisma.DateTimeWithAggregatesFilter<"User"> | Date | string | runtime.Types.Skip; email?: Prisma.StringWithAggregatesFilter<"User"> | string | runtime.Types.Skip; password?: Prisma.StringWithAggregatesFilter<"User"> | string | runtime.Types.Skip; firstName?: Prisma.StringNullableWithAggregatesFilter<"User"> | string | null | runtime.Types.Skip; lastName?: Prisma.StringNullableWithAggregatesFilter<"User"> | string | null | runtime.Types.Skip; role?: Prisma.StringNullableWithAggregatesFilter<"User"> | string | null | runtime.Types.Skip; phoneNumber?: Prisma.StringNullableWithAggregatesFilter<"User"> | string | null | runtime.Types.Skip; }; export type UserCreateInput = { id?: string | runtime.Types.Skip; createdAt?: Date | string | runtime.Types.Skip; updatedAt?: Date | string | runtime.Types.Skip; email: string; password: string; firstName?: string | null | runtime.Types.Skip; lastName?: string | null | runtime.Types.Skip; role?: string | null | runtime.Types.Skip; phoneNumber?: string | null | runtime.Types.Skip; settings?: Prisma.UserSettingsCreateNestedOneWithoutUserInput | runtime.Types.Skip; posts?: Prisma.UserPostCreateNestedManyWithoutUserInput | runtime.Types.Skip; regions?: Prisma.RegionCreateNestedManyWithoutUsersInput | runtime.Types.Skip; }; export type UserUncheckedCreateInput = { id?: string | runtime.Types.Skip; createdAt?: Date | string | runtime.Types.Skip; updatedAt?: Date | string | runtime.Types.Skip; email: string; password: string; firstName?: string | null | runtime.Types.Skip; lastName?: string | null | runtime.Types.Skip; role?: string | null | runtime.Types.Skip; phoneNumber?: string | null | runtime.Types.Skip; settings?: Prisma.UserSettingsUncheckedCreateNestedOneWithoutUserInput | runtime.Types.Skip; posts?: Prisma.UserPostUncheckedCreateNestedManyWithoutUserInput | runtime.Types.Skip; regions?: Prisma.RegionUncheckedCreateNestedManyWithoutUsersInput | runtime.Types.Skip; }; export type UserUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string | runtime.Types.Skip; createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string | runtime.Types.Skip; updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string | runtime.Types.Skip; email?: Prisma.StringFieldUpdateOperationsInput | string | runtime.Types.Skip; password?: Prisma.StringFieldUpdateOperationsInput | string | runtime.Types.Skip; firstName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null | runtime.Types.Skip; lastName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null | runtime.Types.Skip; role?: Prisma.NullableStringFieldUpdateOperationsInput | string | null | runtime.Types.Skip; phoneNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null | runtime.Types.Skip; settings?: Prisma.UserSettingsUpdateOneWithoutUserNestedInput | runtime.Types.Skip; posts?: Prisma.UserPostUpdateManyWithoutUserNestedInput | runtime.Types.Skip; regions?: Prisma.RegionUpdateManyWithoutUsersNestedInput | runtime.Types.Skip; }; export type UserUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string | runtime.Types.Skip; createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string | runtime.Types.Skip; updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string | runtime.Types.Skip; email?: Prisma.StringFieldUpdateOperationsInput | string | runtime.Types.Skip; password?: Prisma.StringFieldUpdateOperationsInput | string | runtime.Types.Skip; firstName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null | runtime.Types.Skip; lastName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null | runtime.Types.Skip; role?: Prisma.NullableStringFieldUpdateOperationsInput | string | null | runtime.Types.Skip; phoneNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null | runtime.Types.Skip; settings?: Prisma.UserSettingsUncheckedUpdateOneWithoutUserNestedInput | runtime.Types.Skip; posts?: Prisma.UserPostUncheckedUpdateManyWithoutUserNestedInput | runtime.Types.Skip; regions?: Prisma.RegionUncheckedUpdateManyWithoutUsersNestedInput | runtime.Types.Skip; }; export type UserCreateManyInput = { id?: string | runtime.Types.Skip; createdAt?: Date | string | runtime.Types.Skip; updatedAt?: Date | string | runtime.Types.Skip; email: string; password: string; firstName?: string | null | runtime.Types.Skip; lastName?: string | null | runtime.Types.Skip; role?: string | null | runtime.Types.Skip; phoneNumber?: string | null | runtime.Types.Skip; }; export type UserUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string | runtime.Types.Skip; createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string | runtime.Types.Skip; updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string | runtime.Types.Skip; email?: Prisma.StringFieldUpdateOperationsInput | string | runtime.Types.Skip; password?: Prisma.StringFieldUpdateOperationsInput | string | runtime.Types.Skip; firstName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null | runtime.Types.Skip; lastName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null | runtime.Types.Skip; role?: Prisma.NullableStringFieldUpdateOperationsInput | string | null | runtime.Types.Skip; phoneNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null | runtime.Types.Skip; }; export type UserUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string | runtime.Types.Skip; createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string | runtime.Types.Skip; updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string | runtime.Types.Skip; email?: Prisma.StringFieldUpdateOperationsInput | string | runtime.Types.Skip; password?: Prisma.StringFieldUpdateOperationsInput | string | runtime.Types.Skip; firstName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null | runtime.Types.Skip; lastName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null | runtime.Types.Skip; role?: Prisma.NullableStringFieldUpdateOperationsInput | string | null | runtime.Types.Skip; phoneNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null | runtime.Types.Skip; }; export type UserCountOrderByAggregateInput = { id?: Prisma.SortOrder | runtime.Types.Skip; createdAt?: Prisma.SortOrder | runtime.Types.Skip; updatedAt?: Prisma.SortOrder | runtime.Types.Skip; email?: Prisma.SortOrder | runtime.Types.Skip; password?: Prisma.SortOrder | runtime.Types.Skip; firstName?: Prisma.SortOrder | runtime.Types.Skip; lastName?: Prisma.SortOrder | runtime.Types.Skip; role?: Prisma.SortOrder | runtime.Types.Skip; phoneNumber?: Prisma.SortOrder | runtime.Types.Skip; }; export type UserMaxOrderByAggregateInput = { id?: Prisma.SortOrder | runtime.Types.Skip; createdAt?: Prisma.SortOrder | runtime.Types.Skip; updatedAt?: Prisma.SortOrder | runtime.Types.Skip; email?: Prisma.SortOrder | runtime.Types.Skip; password?: Prisma.SortOrder | runtime.Types.Skip; firstName?: Prisma.SortOrder | runtime.Types.Skip; lastName?: Prisma.SortOrder | runtime.Types.Skip; role?: Prisma.SortOrder | runtime.Types.Skip; phoneNumber?: Prisma.SortOrder | runtime.Types.Skip; }; export type UserMinOrderByAggregateInput = { id?: Prisma.SortOrder | runtime.Types.Skip; createdAt?: Prisma.SortOrder | runtime.Types.Skip; updatedAt?: Prisma.SortOrder | runtime.Types.Skip; email?: Prisma.SortOrder | runtime.Types.Skip; password?: Prisma.SortOrder | runtime.Types.Skip; firstName?: Prisma.SortOrder | runtime.Types.Skip; lastName?: Prisma.SortOrder | runtime.Types.Skip; role?: Prisma.SortOrder | runtime.Types.Skip; phoneNumber?: Prisma.SortOrder | runtime.Types.Skip; }; export type UserListRelationFilter = { every?: Prisma.UserWhereInput | runtime.Types.Skip; some?: Prisma.UserWhereInput | runtime.Types.Skip; none?: Prisma.UserWhereInput | runtime.Types.Skip; }; export type UserOrderByRelationAggregateInput = { _count?: Prisma.SortOrder | runtime.Types.Skip; }; export type UserScalarRelationFilter = { is?: Prisma.UserWhereInput | runtime.Types.Skip; isNot?: Prisma.UserWhereInput | runtime.Types.Skip; }; export type StringFieldUpdateOperationsInput = { set?: string | runtime.Types.Skip; }; export type DateTimeFieldUpdateOperationsInput = { set?: Date | string | runtime.Types.Skip; }; export type NullableStringFieldUpdateOperationsInput = { set?: string | null | runtime.Types.Skip; }; export type UserCreateNestedManyWithoutRegionsInput = { create?: Prisma.XOR | Prisma.UserCreateWithoutRegionsInput[] | Prisma.UserUncheckedCreateWithoutRegionsInput[] | runtime.Types.Skip; connectOrCreate?: Prisma.UserCreateOrConnectWithoutRegionsInput | Prisma.UserCreateOrConnectWithoutRegionsInput[] | runtime.Types.Skip; connect?: Prisma.UserWhereUniqueInput | Prisma.UserWhereUniqueInput[] | runtime.Types.Skip; }; export type UserUncheckedCreateNestedManyWithoutRegionsInput = { create?: Prisma.XOR | Prisma.UserCreateWithoutRegionsInput[] | Prisma.UserUncheckedCreateWithoutRegionsInput[] | runtime.Types.Skip; connectOrCreate?: Prisma.UserCreateOrConnectWithoutRegionsInput | Prisma.UserCreateOrConnectWithoutRegionsInput[] | runtime.Types.Skip; connect?: Prisma.UserWhereUniqueInput | Prisma.UserWhereUniqueInput[] | runtime.Types.Skip; }; export type UserUpdateManyWithoutRegionsNestedInput = { create?: Prisma.XOR | Prisma.UserCreateWithoutRegionsInput[] | Prisma.UserUncheckedCreateWithoutRegionsInput[] | runtime.Types.Skip; connectOrCreate?: Prisma.UserCreateOrConnectWithoutRegionsInput | Prisma.UserCreateOrConnectWithoutRegionsInput[] | runtime.Types.Skip; upsert?: Prisma.UserUpsertWithWhereUniqueWithoutRegionsInput | Prisma.UserUpsertWithWhereUniqueWithoutRegionsInput[] | runtime.Types.Skip; set?: Prisma.UserWhereUniqueInput | Prisma.UserWhereUniqueInput[] | runtime.Types.Skip; disconnect?: Prisma.UserWhereUniqueInput | Prisma.UserWhereUniqueInput[] | runtime.Types.Skip; delete?: Prisma.UserWhereUniqueInput | Prisma.UserWhereUniqueInput[] | runtime.Types.Skip; connect?: Prisma.UserWhereUniqueInput | Prisma.UserWhereUniqueInput[] | runtime.Types.Skip; update?: Prisma.UserUpdateWithWhereUniqueWithoutRegionsInput | Prisma.UserUpdateWithWhereUniqueWithoutRegionsInput[] | runtime.Types.Skip; updateMany?: Prisma.UserUpdateManyWithWhereWithoutRegionsInput | Prisma.UserUpdateManyWithWhereWithoutRegionsInput[] | runtime.Types.Skip; deleteMany?: Prisma.UserScalarWhereInput | Prisma.UserScalarWhereInput[] | runtime.Types.Skip; }; export type UserUncheckedUpdateManyWithoutRegionsNestedInput = { create?: Prisma.XOR | Prisma.UserCreateWithoutRegionsInput[] | Prisma.UserUncheckedCreateWithoutRegionsInput[] | runtime.Types.Skip; connectOrCreate?: Prisma.UserCreateOrConnectWithoutRegionsInput | Prisma.UserCreateOrConnectWithoutRegionsInput[] | runtime.Types.Skip; upsert?: Prisma.UserUpsertWithWhereUniqueWithoutRegionsInput | Prisma.UserUpsertWithWhereUniqueWithoutRegionsInput[] | runtime.Types.Skip; set?: Prisma.UserWhereUniqueInput | Prisma.UserWhereUniqueInput[] | runtime.Types.Skip; disconnect?: Prisma.UserWhereUniqueInput | Prisma.UserWhereUniqueInput[] | runtime.Types.Skip; delete?: Prisma.UserWhereUniqueInput | Prisma.UserWhereUniqueInput[] | runtime.Types.Skip; connect?: Prisma.UserWhereUniqueInput | Prisma.UserWhereUniqueInput[] | runtime.Types.Skip; update?: Prisma.UserUpdateWithWhereUniqueWithoutRegionsInput | Prisma.UserUpdateWithWhereUniqueWithoutRegionsInput[] | runtime.Types.Skip; updateMany?: Prisma.UserUpdateManyWithWhereWithoutRegionsInput | Prisma.UserUpdateManyWithWhereWithoutRegionsInput[] | runtime.Types.Skip; deleteMany?: Prisma.UserScalarWhereInput | Prisma.UserScalarWhereInput[] | runtime.Types.Skip; }; export type UserCreateNestedOneWithoutPostsInput = { create?: Prisma.XOR | runtime.Types.Skip; connectOrCreate?: Prisma.UserCreateOrConnectWithoutPostsInput | runtime.Types.Skip; connect?: Prisma.UserWhereUniqueInput | runtime.Types.Skip; }; export type UserUpdateOneRequiredWithoutPostsNestedInput = { create?: Prisma.XOR | runtime.Types.Skip; connectOrCreate?: Prisma.UserCreateOrConnectWithoutPostsInput | runtime.Types.Skip; upsert?: Prisma.UserUpsertWithoutPostsInput | runtime.Types.Skip; connect?: Prisma.UserWhereUniqueInput | runtime.Types.Skip; update?: Prisma.XOR, Prisma.UserUncheckedUpdateWithoutPostsInput> | runtime.Types.Skip; }; export type UserCreateNestedOneWithoutSettingsInput = { create?: Prisma.XOR | runtime.Types.Skip; connectOrCreate?: Prisma.UserCreateOrConnectWithoutSettingsInput | runtime.Types.Skip; connect?: Prisma.UserWhereUniqueInput | runtime.Types.Skip; }; export type UserUpdateOneRequiredWithoutSettingsNestedInput = { create?: Prisma.XOR | runtime.Types.Skip; connectOrCreate?: Prisma.UserCreateOrConnectWithoutSettingsInput | runtime.Types.Skip; upsert?: Prisma.UserUpsertWithoutSettingsInput | runtime.Types.Skip; connect?: Prisma.UserWhereUniqueInput | runtime.Types.Skip; update?: Prisma.XOR, Prisma.UserUncheckedUpdateWithoutSettingsInput> | runtime.Types.Skip; }; export type UserCreateWithoutRegionsInput = { id?: string | runtime.Types.Skip; createdAt?: Date | string | runtime.Types.Skip; updatedAt?: Date | string | runtime.Types.Skip; email: string; password: string; firstName?: string | null | runtime.Types.Skip; lastName?: string | null | runtime.Types.Skip; role?: string | null | runtime.Types.Skip; phoneNumber?: string | null | runtime.Types.Skip; settings?: Prisma.UserSettingsCreateNestedOneWithoutUserInput | runtime.Types.Skip; posts?: Prisma.UserPostCreateNestedManyWithoutUserInput | runtime.Types.Skip; }; export type UserUncheckedCreateWithoutRegionsInput = { id?: string | runtime.Types.Skip; createdAt?: Date | string | runtime.Types.Skip; updatedAt?: Date | string | runtime.Types.Skip; email: string; password: string; firstName?: string | null | runtime.Types.Skip; lastName?: string | null | runtime.Types.Skip; role?: string | null | runtime.Types.Skip; phoneNumber?: string | null | runtime.Types.Skip; settings?: Prisma.UserSettingsUncheckedCreateNestedOneWithoutUserInput | runtime.Types.Skip; posts?: Prisma.UserPostUncheckedCreateNestedManyWithoutUserInput | runtime.Types.Skip; }; export type UserCreateOrConnectWithoutRegionsInput = { where: Prisma.UserWhereUniqueInput; create: Prisma.XOR; }; export type UserUpsertWithWhereUniqueWithoutRegionsInput = { where: Prisma.UserWhereUniqueInput; update: Prisma.XOR; create: Prisma.XOR; }; export type UserUpdateWithWhereUniqueWithoutRegionsInput = { where: Prisma.UserWhereUniqueInput; data: Prisma.XOR; }; export type UserUpdateManyWithWhereWithoutRegionsInput = { where: Prisma.UserScalarWhereInput; data: Prisma.XOR; }; export type UserScalarWhereInput = { AND?: Prisma.UserScalarWhereInput | Prisma.UserScalarWhereInput[] | runtime.Types.Skip; OR?: Prisma.UserScalarWhereInput[] | runtime.Types.Skip; NOT?: Prisma.UserScalarWhereInput | Prisma.UserScalarWhereInput[] | runtime.Types.Skip; id?: Prisma.StringFilter<"User"> | string | runtime.Types.Skip; createdAt?: Prisma.DateTimeFilter<"User"> | Date | string | runtime.Types.Skip; updatedAt?: Prisma.DateTimeFilter<"User"> | Date | string | runtime.Types.Skip; email?: Prisma.StringFilter<"User"> | string | runtime.Types.Skip; password?: Prisma.StringFilter<"User"> | string | runtime.Types.Skip; firstName?: Prisma.StringNullableFilter<"User"> | string | null | runtime.Types.Skip; lastName?: Prisma.StringNullableFilter<"User"> | string | null | runtime.Types.Skip; role?: Prisma.StringNullableFilter<"User"> | string | null | runtime.Types.Skip; phoneNumber?: Prisma.StringNullableFilter<"User"> | string | null | runtime.Types.Skip; }; export type UserCreateWithoutPostsInput = { id?: string | runtime.Types.Skip; createdAt?: Date | string | runtime.Types.Skip; updatedAt?: Date | string | runtime.Types.Skip; email: string; password: string; firstName?: string | null | runtime.Types.Skip; lastName?: string | null | runtime.Types.Skip; role?: string | null | runtime.Types.Skip; phoneNumber?: string | null | runtime.Types.Skip; settings?: Prisma.UserSettingsCreateNestedOneWithoutUserInput | runtime.Types.Skip; regions?: Prisma.RegionCreateNestedManyWithoutUsersInput | runtime.Types.Skip; }; export type UserUncheckedCreateWithoutPostsInput = { id?: string | runtime.Types.Skip; createdAt?: Date | string | runtime.Types.Skip; updatedAt?: Date | string | runtime.Types.Skip; email: string; password: string; firstName?: string | null | runtime.Types.Skip; lastName?: string | null | runtime.Types.Skip; role?: string | null | runtime.Types.Skip; phoneNumber?: string | null | runtime.Types.Skip; settings?: Prisma.UserSettingsUncheckedCreateNestedOneWithoutUserInput | runtime.Types.Skip; regions?: Prisma.RegionUncheckedCreateNestedManyWithoutUsersInput | runtime.Types.Skip; }; export type UserCreateOrConnectWithoutPostsInput = { where: Prisma.UserWhereUniqueInput; create: Prisma.XOR; }; export type UserUpsertWithoutPostsInput = { update: Prisma.XOR; create: Prisma.XOR; where?: Prisma.UserWhereInput | runtime.Types.Skip; }; export type UserUpdateToOneWithWhereWithoutPostsInput = { where?: Prisma.UserWhereInput | runtime.Types.Skip; data: Prisma.XOR; }; export type UserUpdateWithoutPostsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string | runtime.Types.Skip; createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string | runtime.Types.Skip; updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string | runtime.Types.Skip; email?: Prisma.StringFieldUpdateOperationsInput | string | runtime.Types.Skip; password?: Prisma.StringFieldUpdateOperationsInput | string | runtime.Types.Skip; firstName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null | runtime.Types.Skip; lastName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null | runtime.Types.Skip; role?: Prisma.NullableStringFieldUpdateOperationsInput | string | null | runtime.Types.Skip; phoneNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null | runtime.Types.Skip; settings?: Prisma.UserSettingsUpdateOneWithoutUserNestedInput | runtime.Types.Skip; regions?: Prisma.RegionUpdateManyWithoutUsersNestedInput | runtime.Types.Skip; }; export type UserUncheckedUpdateWithoutPostsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string | runtime.Types.Skip; createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string | runtime.Types.Skip; updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string | runtime.Types.Skip; email?: Prisma.StringFieldUpdateOperationsInput | string | runtime.Types.Skip; password?: Prisma.StringFieldUpdateOperationsInput | string | runtime.Types.Skip; firstName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null | runtime.Types.Skip; lastName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null | runtime.Types.Skip; role?: Prisma.NullableStringFieldUpdateOperationsInput | string | null | runtime.Types.Skip; phoneNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null | runtime.Types.Skip; settings?: Prisma.UserSettingsUncheckedUpdateOneWithoutUserNestedInput | runtime.Types.Skip; regions?: Prisma.RegionUncheckedUpdateManyWithoutUsersNestedInput | runtime.Types.Skip; }; export type UserCreateWithoutSettingsInput = { id?: string | runtime.Types.Skip; createdAt?: Date | string | runtime.Types.Skip; updatedAt?: Date | string | runtime.Types.Skip; email: string; password: string; firstName?: string | null | runtime.Types.Skip; lastName?: string | null | runtime.Types.Skip; role?: string | null | runtime.Types.Skip; phoneNumber?: string | null | runtime.Types.Skip; posts?: Prisma.UserPostCreateNestedManyWithoutUserInput | runtime.Types.Skip; regions?: Prisma.RegionCreateNestedManyWithoutUsersInput | runtime.Types.Skip; }; export type UserUncheckedCreateWithoutSettingsInput = { id?: string | runtime.Types.Skip; createdAt?: Date | string | runtime.Types.Skip; updatedAt?: Date | string | runtime.Types.Skip; email: string; password: string; firstName?: string | null | runtime.Types.Skip; lastName?: string | null | runtime.Types.Skip; role?: string | null | runtime.Types.Skip; phoneNumber?: string | null | runtime.Types.Skip; posts?: Prisma.UserPostUncheckedCreateNestedManyWithoutUserInput | runtime.Types.Skip; regions?: Prisma.RegionUncheckedCreateNestedManyWithoutUsersInput | runtime.Types.Skip; }; export type UserCreateOrConnectWithoutSettingsInput = { where: Prisma.UserWhereUniqueInput; create: Prisma.XOR; }; export type UserUpsertWithoutSettingsInput = { update: Prisma.XOR; create: Prisma.XOR; where?: Prisma.UserWhereInput | runtime.Types.Skip; }; export type UserUpdateToOneWithWhereWithoutSettingsInput = { where?: Prisma.UserWhereInput | runtime.Types.Skip; data: Prisma.XOR; }; export type UserUpdateWithoutSettingsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string | runtime.Types.Skip; createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string | runtime.Types.Skip; updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string | runtime.Types.Skip; email?: Prisma.StringFieldUpdateOperationsInput | string | runtime.Types.Skip; password?: Prisma.StringFieldUpdateOperationsInput | string | runtime.Types.Skip; firstName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null | runtime.Types.Skip; lastName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null | runtime.Types.Skip; role?: Prisma.NullableStringFieldUpdateOperationsInput | string | null | runtime.Types.Skip; phoneNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null | runtime.Types.Skip; posts?: Prisma.UserPostUpdateManyWithoutUserNestedInput | runtime.Types.Skip; regions?: Prisma.RegionUpdateManyWithoutUsersNestedInput | runtime.Types.Skip; }; export type UserUncheckedUpdateWithoutSettingsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string | runtime.Types.Skip; createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string | runtime.Types.Skip; updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string | runtime.Types.Skip; email?: Prisma.StringFieldUpdateOperationsInput | string | runtime.Types.Skip; password?: Prisma.StringFieldUpdateOperationsInput | string | runtime.Types.Skip; firstName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null | runtime.Types.Skip; lastName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null | runtime.Types.Skip; role?: Prisma.NullableStringFieldUpdateOperationsInput | string | null | runtime.Types.Skip; phoneNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null | runtime.Types.Skip; posts?: Prisma.UserPostUncheckedUpdateManyWithoutUserNestedInput | runtime.Types.Skip; regions?: Prisma.RegionUncheckedUpdateManyWithoutUsersNestedInput | runtime.Types.Skip; }; export type UserUpdateWithoutRegionsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string | runtime.Types.Skip; createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string | runtime.Types.Skip; updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string | runtime.Types.Skip; email?: Prisma.StringFieldUpdateOperationsInput | string | runtime.Types.Skip; password?: Prisma.StringFieldUpdateOperationsInput | string | runtime.Types.Skip; firstName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null | runtime.Types.Skip; lastName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null | runtime.Types.Skip; role?: Prisma.NullableStringFieldUpdateOperationsInput | string | null | runtime.Types.Skip; phoneNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null | runtime.Types.Skip; settings?: Prisma.UserSettingsUpdateOneWithoutUserNestedInput | runtime.Types.Skip; posts?: Prisma.UserPostUpdateManyWithoutUserNestedInput | runtime.Types.Skip; }; export type UserUncheckedUpdateWithoutRegionsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string | runtime.Types.Skip; createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string | runtime.Types.Skip; updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string | runtime.Types.Skip; email?: Prisma.StringFieldUpdateOperationsInput | string | runtime.Types.Skip; password?: Prisma.StringFieldUpdateOperationsInput | string | runtime.Types.Skip; firstName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null | runtime.Types.Skip; lastName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null | runtime.Types.Skip; role?: Prisma.NullableStringFieldUpdateOperationsInput | string | null | runtime.Types.Skip; phoneNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null | runtime.Types.Skip; settings?: Prisma.UserSettingsUncheckedUpdateOneWithoutUserNestedInput | runtime.Types.Skip; posts?: Prisma.UserPostUncheckedUpdateManyWithoutUserNestedInput | runtime.Types.Skip; }; export type UserUncheckedUpdateManyWithoutRegionsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string | runtime.Types.Skip; createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string | runtime.Types.Skip; updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string | runtime.Types.Skip; email?: Prisma.StringFieldUpdateOperationsInput | string | runtime.Types.Skip; password?: Prisma.StringFieldUpdateOperationsInput | string | runtime.Types.Skip; firstName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null | runtime.Types.Skip; lastName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null | runtime.Types.Skip; role?: Prisma.NullableStringFieldUpdateOperationsInput | string | null | runtime.Types.Skip; phoneNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null | runtime.Types.Skip; }; /** * Count Type UserCountOutputType */ export type UserCountOutputType = { posts: number; regions: number; }; export type UserCountOutputTypeSelect = { posts?: boolean | UserCountOutputTypeCountPostsArgs; regions?: boolean | UserCountOutputTypeCountRegionsArgs; }; /** * UserCountOutputType without action */ export type UserCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the UserCountOutputType */ select?: Prisma.UserCountOutputTypeSelect | null; }; /** * UserCountOutputType without action */ export type UserCountOutputTypeCountPostsArgs = { where?: Prisma.UserPostWhereInput | runtime.Types.Skip; }; /** * UserCountOutputType without action */ export type UserCountOutputTypeCountRegionsArgs = { where?: Prisma.RegionWhereInput | runtime.Types.Skip; }; export type UserSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean | runtime.Types.Skip; createdAt?: boolean | runtime.Types.Skip; updatedAt?: boolean | runtime.Types.Skip; email?: boolean | runtime.Types.Skip; password?: boolean | runtime.Types.Skip; firstName?: boolean | runtime.Types.Skip; lastName?: boolean | runtime.Types.Skip; role?: boolean | runtime.Types.Skip; phoneNumber?: boolean | runtime.Types.Skip; settings?: boolean | Prisma.User$settingsArgs | runtime.Types.Skip; posts?: boolean | Prisma.User$postsArgs | runtime.Types.Skip; regions?: boolean | Prisma.User$regionsArgs | runtime.Types.Skip; _count?: boolean | Prisma.UserCountOutputTypeDefaultArgs | runtime.Types.Skip; }, ExtArgs["result"]["user"]>; export type UserSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean | runtime.Types.Skip; createdAt?: boolean | runtime.Types.Skip; updatedAt?: boolean | runtime.Types.Skip; email?: boolean | runtime.Types.Skip; password?: boolean | runtime.Types.Skip; firstName?: boolean | runtime.Types.Skip; lastName?: boolean | runtime.Types.Skip; role?: boolean | runtime.Types.Skip; phoneNumber?: boolean | runtime.Types.Skip; }, ExtArgs["result"]["user"]>; export type UserSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean | runtime.Types.Skip; createdAt?: boolean | runtime.Types.Skip; updatedAt?: boolean | runtime.Types.Skip; email?: boolean | runtime.Types.Skip; password?: boolean | runtime.Types.Skip; firstName?: boolean | runtime.Types.Skip; lastName?: boolean | runtime.Types.Skip; role?: boolean | runtime.Types.Skip; phoneNumber?: boolean | runtime.Types.Skip; }, ExtArgs["result"]["user"]>; export type UserSelectScalar = { id?: boolean | runtime.Types.Skip; createdAt?: boolean | runtime.Types.Skip; updatedAt?: boolean | runtime.Types.Skip; email?: boolean | runtime.Types.Skip; password?: boolean | runtime.Types.Skip; firstName?: boolean | runtime.Types.Skip; lastName?: boolean | runtime.Types.Skip; role?: boolean | runtime.Types.Skip; phoneNumber?: boolean | runtime.Types.Skip; }; export type UserOmit = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "email" | "password" | "firstName" | "lastName" | "role" | "phoneNumber", ExtArgs["result"]["user"], runtime.Types.Skip>; export type UserInclude = { settings?: boolean | Prisma.User$settingsArgs | runtime.Types.Skip; posts?: boolean | Prisma.User$postsArgs | runtime.Types.Skip; regions?: boolean | Prisma.User$regionsArgs | runtime.Types.Skip; _count?: boolean | Prisma.UserCountOutputTypeDefaultArgs | runtime.Types.Skip; }; export type UserIncludeCreateManyAndReturn = {}; export type UserIncludeUpdateManyAndReturn = {}; export type $UserPayload = { name: "User"; objects: { settings: Prisma.$UserSettingsPayload | null; posts: Prisma.$UserPostPayload[]; regions: Prisma.$RegionPayload[]; }; scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string; createdAt: Date; updatedAt: Date; email: string; password: string; firstName: string | null; lastName: string | null; role: string | null; phoneNumber: string | null; }, ExtArgs["result"]["user"]>; composites: {}; }; export type UserGetPayload = runtime.Types.Result.GetResult; export type UserCountArgs = Omit & { select?: UserCountAggregateInputType | true; }; export interface UserDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['User']; meta: { name: 'User'; }; }; /** * Find zero or one User that matches the filter. * @param {UserFindUniqueArgs} args - Arguments to find a User * @example * // Get one User * const user = await prisma.user.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__UserClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>; /** * Find one User that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {UserFindUniqueOrThrowArgs} args - Arguments to find a User * @example * // Get one User * const user = await prisma.user.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__UserClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>; /** * Find the first User 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 {UserFindFirstArgs} args - Arguments to find a User * @example * // Get one User * const user = await prisma.user.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__UserClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>; /** * Find the first User 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 {UserFindFirstOrThrowArgs} args - Arguments to find a User * @example * // Get one User * const user = await prisma.user.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__UserClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>; /** * Find zero or more Users 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 {UserFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Users * const users = await prisma.user.findMany() * * // Get first 10 Users * const users = await prisma.user.findMany({ take: 10 }) * * // Only select the `id` * const userWithIdOnly = await prisma.user.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>>; /** * Create a User. * @param {UserCreateArgs} args - Arguments to create a User. * @example * // Create one User * const User = await prisma.user.create({ * data: { * // ... data to create a User * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__UserClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>; /** * Create many Users. * @param {UserCreateManyArgs} args - Arguments to create many Users. * @example * // Create many Users * const user = await prisma.user.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise; /** * Create many Users and returns the data saved in the database. * @param {UserCreateManyAndReturnArgs} args - Arguments to create many Users. * @example * // Create many Users * const user = await prisma.user.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Users and only return the `id` * const userWithIdOnly = await prisma.user.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 User. * @param {UserDeleteArgs} args - Arguments to delete one User. * @example * // Delete one User * const User = await prisma.user.delete({ * where: { * // ... filter to delete one User * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__UserClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>; /** * Update one User. * @param {UserUpdateArgs} args - Arguments to update one User. * @example * // Update one User * const user = await prisma.user.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__UserClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>; /** * Delete zero or more Users. * @param {UserDeleteManyArgs} args - Arguments to filter Users to delete. * @example * // Delete a few Users * const { count } = await prisma.user.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise; /** * Update zero or more Users. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Users * const user = await prisma.user.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise; /** * Update zero or more Users and returns the data updated in the database. * @param {UserUpdateManyAndReturnArgs} args - Arguments to update many Users. * @example * // Update many Users * const user = await prisma.user.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Users and only return the `id` * const userWithIdOnly = await prisma.user.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 User. * @param {UserUpsertArgs} args - Arguments to update or create a User. * @example * // Update or create a User * const user = await prisma.user.upsert({ * create: { * // ... data to create a User * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the User we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__UserClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>; /** * Count the number of Users. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserCountArgs} args - Arguments to filter Users to count. * @example * // Count the number of Users * const count = await prisma.user.count({ * where: { * // ... the filter for the Users 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 User. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserAggregateArgs} 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 User. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserGroupByArgs} 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: UserGroupByArgs['orderBy']; } : { orderBy?: UserGroupByArgs['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 ? GetUserGroupByPayload : Prisma.PrismaPromise; /** * Fields of the User model */ readonly fields: UserFieldRefs; } /** * The delegate class that acts as a "Promise-like" for User. * 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__UserClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise"; settings = {}>(args?: Prisma.Subset>): Prisma.Prisma__UserSettingsClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>; posts = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null>; regions = {}>(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 User model */ export interface UserFieldRefs { readonly id: Prisma.FieldRef<"User", 'String'>; readonly createdAt: Prisma.FieldRef<"User", 'DateTime'>; readonly updatedAt: Prisma.FieldRef<"User", 'DateTime'>; readonly email: Prisma.FieldRef<"User", 'String'>; readonly password: Prisma.FieldRef<"User", 'String'>; readonly firstName: Prisma.FieldRef<"User", 'String'>; readonly lastName: Prisma.FieldRef<"User", 'String'>; readonly role: Prisma.FieldRef<"User", 'String'>; readonly phoneNumber: Prisma.FieldRef<"User", 'String'>; } /** * User findUnique */ export type UserFindUniqueArgs = { /** * 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; /** * Filter, which User to fetch. */ where: Prisma.UserWhereUniqueInput; relationLoadStrategy?: Prisma.RelationLoadStrategy | runtime.Types.Skip; }; /** * User findUniqueOrThrow */ export type UserFindUniqueOrThrowArgs = { /** * 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; /** * Filter, which User to fetch. */ where: Prisma.UserWhereUniqueInput; relationLoadStrategy?: Prisma.RelationLoadStrategy | runtime.Types.Skip; }; /** * User findFirst */ export type UserFindFirstArgs = { /** * 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; /** * Filter, which User to fetch. */ where?: Prisma.UserWhereInput | runtime.Types.Skip; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Users to fetch. */ orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[] | 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 Users. */ cursor?: Prisma.UserWhereUniqueInput | runtime.Types.Skip; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Users 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` Users. */ skip?: number | runtime.Types.Skip; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Users. */ distinct?: Prisma.UserScalarFieldEnum | Prisma.UserScalarFieldEnum[] | runtime.Types.Skip; relationLoadStrategy?: Prisma.RelationLoadStrategy | runtime.Types.Skip; }; /** * User findFirstOrThrow */ export type UserFindFirstOrThrowArgs = { /** * 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; /** * Filter, which User to fetch. */ where?: Prisma.UserWhereInput | runtime.Types.Skip; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Users to fetch. */ orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[] | 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 Users. */ cursor?: Prisma.UserWhereUniqueInput | runtime.Types.Skip; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Users 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` Users. */ skip?: number | runtime.Types.Skip; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Users. */ distinct?: Prisma.UserScalarFieldEnum | Prisma.UserScalarFieldEnum[] | runtime.Types.Skip; relationLoadStrategy?: Prisma.RelationLoadStrategy | runtime.Types.Skip; }; /** * User findMany */ export type UserFindManyArgs = { /** * 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; /** * Filter, which Users to fetch. */ where?: Prisma.UserWhereInput | runtime.Types.Skip; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Users to fetch. */ orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[] | runtime.Types.Skip; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Users. */ cursor?: Prisma.UserWhereUniqueInput | runtime.Types.Skip; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Users 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` Users. */ skip?: number | runtime.Types.Skip; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Users. */ distinct?: Prisma.UserScalarFieldEnum | Prisma.UserScalarFieldEnum[] | runtime.Types.Skip; relationLoadStrategy?: Prisma.RelationLoadStrategy | runtime.Types.Skip; }; /** * User create */ export type UserCreateArgs = { /** * 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; /** * The data needed to create a User. */ data: Prisma.XOR; relationLoadStrategy?: Prisma.RelationLoadStrategy | runtime.Types.Skip; }; /** * User createMany */ export type UserCreateManyArgs = { /** * The data used to create many Users. */ data: Prisma.UserCreateManyInput | Prisma.UserCreateManyInput[]; skipDuplicates?: boolean | runtime.Types.Skip; }; /** * User createManyAndReturn */ export type UserCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the User */ select?: Prisma.UserSelectCreateManyAndReturn | null; /** * Omit specific fields from the User */ omit?: Prisma.UserOmit | null; /** * The data used to create many Users. */ data: Prisma.UserCreateManyInput | Prisma.UserCreateManyInput[]; skipDuplicates?: boolean | runtime.Types.Skip; }; /** * User update */ export type UserUpdateArgs = { /** * 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; /** * The data needed to update a User. */ data: Prisma.XOR; /** * Choose, which User to update. */ where: Prisma.UserWhereUniqueInput; relationLoadStrategy?: Prisma.RelationLoadStrategy | runtime.Types.Skip; }; /** * User updateMany */ export type UserUpdateManyArgs = { /** * The data used to update Users. */ data: Prisma.XOR; /** * Filter which Users to update */ where?: Prisma.UserWhereInput | runtime.Types.Skip; /** * Limit how many Users to update. */ limit?: number | runtime.Types.Skip; }; /** * User updateManyAndReturn */ export type UserUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the User */ select?: Prisma.UserSelectUpdateManyAndReturn | null; /** * Omit specific fields from the User */ omit?: Prisma.UserOmit | null; /** * The data used to update Users. */ data: Prisma.XOR; /** * Filter which Users to update */ where?: Prisma.UserWhereInput | runtime.Types.Skip; /** * Limit how many Users to update. */ limit?: number | runtime.Types.Skip; }; /** * User upsert */ export type UserUpsertArgs = { /** * 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; /** * The filter to search for the User to update in case it exists. */ where: Prisma.UserWhereUniqueInput; /** * In case the User found by the `where` argument doesn't exist, create a new User with this data. */ create: Prisma.XOR; /** * In case the User was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR; relationLoadStrategy?: Prisma.RelationLoadStrategy | runtime.Types.Skip; }; /** * User delete */ export type UserDeleteArgs = { /** * 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; /** * Filter which User to delete. */ where: Prisma.UserWhereUniqueInput; relationLoadStrategy?: Prisma.RelationLoadStrategy | runtime.Types.Skip; }; /** * User deleteMany */ export type UserDeleteManyArgs = { /** * Filter which Users to delete */ where?: Prisma.UserWhereInput | runtime.Types.Skip; /** * Limit how many Users to delete. */ limit?: number | runtime.Types.Skip; }; /** * User.settings */ export type User$settingsArgs = { /** * Select specific fields to fetch from the UserSettings */ select?: Prisma.UserSettingsSelect | null; /** * Omit specific fields from the UserSettings */ omit?: Prisma.UserSettingsOmit | null; /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserSettingsInclude | null; where?: Prisma.UserSettingsWhereInput | runtime.Types.Skip; }; /** * User.posts */ export type User$postsArgs = { /** * Select specific fields to fetch from the UserPost */ select?: Prisma.UserPostSelect | null; /** * Omit specific fields from the UserPost */ omit?: Prisma.UserPostOmit | null; /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserPostInclude | null; where?: Prisma.UserPostWhereInput | runtime.Types.Skip; orderBy?: Prisma.UserPostOrderByWithRelationInput | Prisma.UserPostOrderByWithRelationInput[] | runtime.Types.Skip; cursor?: Prisma.UserPostWhereUniqueInput | runtime.Types.Skip; take?: number | runtime.Types.Skip; skip?: number | runtime.Types.Skip; distinct?: Prisma.UserPostScalarFieldEnum | Prisma.UserPostScalarFieldEnum[] | runtime.Types.Skip; }; /** * User.regions */ export type User$regionsArgs = { /** * 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; where?: Prisma.RegionWhereInput | runtime.Types.Skip; orderBy?: Prisma.RegionOrderByWithRelationInput | Prisma.RegionOrderByWithRelationInput[] | runtime.Types.Skip; cursor?: Prisma.RegionWhereUniqueInput | runtime.Types.Skip; take?: number | runtime.Types.Skip; skip?: number | runtime.Types.Skip; distinct?: Prisma.RegionScalarFieldEnum | Prisma.RegionScalarFieldEnum[] | runtime.Types.Skip; }; /** * User without action */ export type UserDefaultArgs = { /** * 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; };