/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `UserProfile` model and its related types. * * 🟢 You can import this file directly. */ import type * as runtime from "@prisma/client/runtime/client" import type * as $Enums from "../enums" import type * as Prisma from "../internal/prismaNamespace" /** * Model UserProfile * Profil sosial publik. Berisi info yang user pilih untuk dibagikan ke peserta lain * (bio, kota, minat, vibe). Tidak menyimpan data sensitif — KYC tetap di OrganizerVerification. */ export type UserProfileModel = runtime.Types.Result.DefaultSelection export type AggregateUserProfile = { _count: UserProfileCountAggregateOutputType | null _min: UserProfileMinAggregateOutputType | null _max: UserProfileMaxAggregateOutputType | null } export type UserProfileMinAggregateOutputType = { id: string | null userId: string | null bio: string | null city: string | null instagram: string | null vibe: $Enums.Vibe | null createdAt: Date | null updatedAt: Date | null } export type UserProfileMaxAggregateOutputType = { id: string | null userId: string | null bio: string | null city: string | null instagram: string | null vibe: $Enums.Vibe | null createdAt: Date | null updatedAt: Date | null } export type UserProfileCountAggregateOutputType = { id: number userId: number bio: number city: number interests: number instagram: number vibe: number createdAt: number updatedAt: number _all: number } export type UserProfileMinAggregateInputType = { id?: true userId?: true bio?: true city?: true instagram?: true vibe?: true createdAt?: true updatedAt?: true } export type UserProfileMaxAggregateInputType = { id?: true userId?: true bio?: true city?: true instagram?: true vibe?: true createdAt?: true updatedAt?: true } export type UserProfileCountAggregateInputType = { id?: true userId?: true bio?: true city?: true interests?: true instagram?: true vibe?: true createdAt?: true updatedAt?: true _all?: true } export type UserProfileAggregateArgs = { /** * Filter which UserProfile to aggregate. */ where?: Prisma.UserProfileWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of UserProfiles to fetch. */ orderBy?: Prisma.UserProfileOrderByWithRelationInput | Prisma.UserProfileOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.UserProfileWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` UserProfiles from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` UserProfiles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned UserProfiles **/ _count?: true | UserProfileCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: UserProfileMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: UserProfileMaxAggregateInputType } export type GetUserProfileAggregateType = { [P in keyof T & keyof AggregateUserProfile]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type UserProfileGroupByArgs = { where?: Prisma.UserProfileWhereInput orderBy?: Prisma.UserProfileOrderByWithAggregationInput | Prisma.UserProfileOrderByWithAggregationInput[] by: Prisma.UserProfileScalarFieldEnum[] | Prisma.UserProfileScalarFieldEnum having?: Prisma.UserProfileScalarWhereWithAggregatesInput take?: number skip?: number _count?: UserProfileCountAggregateInputType | true _min?: UserProfileMinAggregateInputType _max?: UserProfileMaxAggregateInputType } export type UserProfileGroupByOutputType = { id: string userId: string bio: string | null city: string | null interests: string[] instagram: string | null vibe: $Enums.Vibe | null createdAt: Date updatedAt: Date _count: UserProfileCountAggregateOutputType | null _min: UserProfileMinAggregateOutputType | null _max: UserProfileMaxAggregateOutputType | null } export type GetUserProfileGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof UserProfileGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type UserProfileWhereInput = { AND?: Prisma.UserProfileWhereInput | Prisma.UserProfileWhereInput[] OR?: Prisma.UserProfileWhereInput[] NOT?: Prisma.UserProfileWhereInput | Prisma.UserProfileWhereInput[] id?: Prisma.StringFilter<"UserProfile"> | string userId?: Prisma.StringFilter<"UserProfile"> | string bio?: Prisma.StringNullableFilter<"UserProfile"> | string | null city?: Prisma.StringNullableFilter<"UserProfile"> | string | null interests?: Prisma.StringNullableListFilter<"UserProfile"> instagram?: Prisma.StringNullableFilter<"UserProfile"> | string | null vibe?: Prisma.EnumVibeNullableFilter<"UserProfile"> | $Enums.Vibe | null createdAt?: Prisma.DateTimeFilter<"UserProfile"> | Date | string updatedAt?: Prisma.DateTimeFilter<"UserProfile"> | Date | string user?: Prisma.XOR } export type UserProfileOrderByWithRelationInput = { id?: Prisma.SortOrder userId?: Prisma.SortOrder bio?: Prisma.SortOrderInput | Prisma.SortOrder city?: Prisma.SortOrderInput | Prisma.SortOrder interests?: Prisma.SortOrder instagram?: Prisma.SortOrderInput | Prisma.SortOrder vibe?: Prisma.SortOrderInput | Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder user?: Prisma.UserOrderByWithRelationInput } export type UserProfileWhereUniqueInput = Prisma.AtLeast<{ id?: string userId?: string AND?: Prisma.UserProfileWhereInput | Prisma.UserProfileWhereInput[] OR?: Prisma.UserProfileWhereInput[] NOT?: Prisma.UserProfileWhereInput | Prisma.UserProfileWhereInput[] bio?: Prisma.StringNullableFilter<"UserProfile"> | string | null city?: Prisma.StringNullableFilter<"UserProfile"> | string | null interests?: Prisma.StringNullableListFilter<"UserProfile"> instagram?: Prisma.StringNullableFilter<"UserProfile"> | string | null vibe?: Prisma.EnumVibeNullableFilter<"UserProfile"> | $Enums.Vibe | null createdAt?: Prisma.DateTimeFilter<"UserProfile"> | Date | string updatedAt?: Prisma.DateTimeFilter<"UserProfile"> | Date | string user?: Prisma.XOR }, "id" | "userId"> export type UserProfileOrderByWithAggregationInput = { id?: Prisma.SortOrder userId?: Prisma.SortOrder bio?: Prisma.SortOrderInput | Prisma.SortOrder city?: Prisma.SortOrderInput | Prisma.SortOrder interests?: Prisma.SortOrder instagram?: Prisma.SortOrderInput | Prisma.SortOrder vibe?: Prisma.SortOrderInput | Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder _count?: Prisma.UserProfileCountOrderByAggregateInput _max?: Prisma.UserProfileMaxOrderByAggregateInput _min?: Prisma.UserProfileMinOrderByAggregateInput } export type UserProfileScalarWhereWithAggregatesInput = { AND?: Prisma.UserProfileScalarWhereWithAggregatesInput | Prisma.UserProfileScalarWhereWithAggregatesInput[] OR?: Prisma.UserProfileScalarWhereWithAggregatesInput[] NOT?: Prisma.UserProfileScalarWhereWithAggregatesInput | Prisma.UserProfileScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"UserProfile"> | string userId?: Prisma.StringWithAggregatesFilter<"UserProfile"> | string bio?: Prisma.StringNullableWithAggregatesFilter<"UserProfile"> | string | null city?: Prisma.StringNullableWithAggregatesFilter<"UserProfile"> | string | null interests?: Prisma.StringNullableListFilter<"UserProfile"> instagram?: Prisma.StringNullableWithAggregatesFilter<"UserProfile"> | string | null vibe?: Prisma.EnumVibeNullableWithAggregatesFilter<"UserProfile"> | $Enums.Vibe | null createdAt?: Prisma.DateTimeWithAggregatesFilter<"UserProfile"> | Date | string updatedAt?: Prisma.DateTimeWithAggregatesFilter<"UserProfile"> | Date | string } export type UserProfileCreateInput = { id?: string bio?: string | null city?: string | null interests?: Prisma.UserProfileCreateinterestsInput | string[] instagram?: string | null vibe?: $Enums.Vibe | null createdAt?: Date | string updatedAt?: Date | string user: Prisma.UserCreateNestedOneWithoutProfileInput } export type UserProfileUncheckedCreateInput = { id?: string userId: string bio?: string | null city?: string | null interests?: Prisma.UserProfileCreateinterestsInput | string[] instagram?: string | null vibe?: $Enums.Vibe | null createdAt?: Date | string updatedAt?: Date | string } export type UserProfileUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string bio?: Prisma.NullableStringFieldUpdateOperationsInput | string | null city?: Prisma.NullableStringFieldUpdateOperationsInput | string | null interests?: Prisma.UserProfileUpdateinterestsInput | string[] instagram?: Prisma.NullableStringFieldUpdateOperationsInput | string | null vibe?: Prisma.NullableEnumVibeFieldUpdateOperationsInput | $Enums.Vibe | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string user?: Prisma.UserUpdateOneRequiredWithoutProfileNestedInput } export type UserProfileUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string userId?: Prisma.StringFieldUpdateOperationsInput | string bio?: Prisma.NullableStringFieldUpdateOperationsInput | string | null city?: Prisma.NullableStringFieldUpdateOperationsInput | string | null interests?: Prisma.UserProfileUpdateinterestsInput | string[] instagram?: Prisma.NullableStringFieldUpdateOperationsInput | string | null vibe?: Prisma.NullableEnumVibeFieldUpdateOperationsInput | $Enums.Vibe | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type UserProfileCreateManyInput = { id?: string userId: string bio?: string | null city?: string | null interests?: Prisma.UserProfileCreateinterestsInput | string[] instagram?: string | null vibe?: $Enums.Vibe | null createdAt?: Date | string updatedAt?: Date | string } export type UserProfileUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string bio?: Prisma.NullableStringFieldUpdateOperationsInput | string | null city?: Prisma.NullableStringFieldUpdateOperationsInput | string | null interests?: Prisma.UserProfileUpdateinterestsInput | string[] instagram?: Prisma.NullableStringFieldUpdateOperationsInput | string | null vibe?: Prisma.NullableEnumVibeFieldUpdateOperationsInput | $Enums.Vibe | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type UserProfileUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string userId?: Prisma.StringFieldUpdateOperationsInput | string bio?: Prisma.NullableStringFieldUpdateOperationsInput | string | null city?: Prisma.NullableStringFieldUpdateOperationsInput | string | null interests?: Prisma.UserProfileUpdateinterestsInput | string[] instagram?: Prisma.NullableStringFieldUpdateOperationsInput | string | null vibe?: Prisma.NullableEnumVibeFieldUpdateOperationsInput | $Enums.Vibe | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type UserProfileNullableScalarRelationFilter = { is?: Prisma.UserProfileWhereInput | null isNot?: Prisma.UserProfileWhereInput | null } export type StringNullableListFilter<$PrismaModel = never> = { equals?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null has?: string | Prisma.StringFieldRefInput<$PrismaModel> | null hasEvery?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> hasSome?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> isEmpty?: boolean } export type UserProfileCountOrderByAggregateInput = { id?: Prisma.SortOrder userId?: Prisma.SortOrder bio?: Prisma.SortOrder city?: Prisma.SortOrder interests?: Prisma.SortOrder instagram?: Prisma.SortOrder vibe?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type UserProfileMaxOrderByAggregateInput = { id?: Prisma.SortOrder userId?: Prisma.SortOrder bio?: Prisma.SortOrder city?: Prisma.SortOrder instagram?: Prisma.SortOrder vibe?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type UserProfileMinOrderByAggregateInput = { id?: Prisma.SortOrder userId?: Prisma.SortOrder bio?: Prisma.SortOrder city?: Prisma.SortOrder instagram?: Prisma.SortOrder vibe?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type UserProfileCreateNestedOneWithoutUserInput = { create?: Prisma.XOR connectOrCreate?: Prisma.UserProfileCreateOrConnectWithoutUserInput connect?: Prisma.UserProfileWhereUniqueInput } export type UserProfileUncheckedCreateNestedOneWithoutUserInput = { create?: Prisma.XOR connectOrCreate?: Prisma.UserProfileCreateOrConnectWithoutUserInput connect?: Prisma.UserProfileWhereUniqueInput } export type UserProfileUpdateOneWithoutUserNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.UserProfileCreateOrConnectWithoutUserInput upsert?: Prisma.UserProfileUpsertWithoutUserInput disconnect?: Prisma.UserProfileWhereInput | boolean delete?: Prisma.UserProfileWhereInput | boolean connect?: Prisma.UserProfileWhereUniqueInput update?: Prisma.XOR, Prisma.UserProfileUncheckedUpdateWithoutUserInput> } export type UserProfileUncheckedUpdateOneWithoutUserNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.UserProfileCreateOrConnectWithoutUserInput upsert?: Prisma.UserProfileUpsertWithoutUserInput disconnect?: Prisma.UserProfileWhereInput | boolean delete?: Prisma.UserProfileWhereInput | boolean connect?: Prisma.UserProfileWhereUniqueInput update?: Prisma.XOR, Prisma.UserProfileUncheckedUpdateWithoutUserInput> } export type UserProfileCreateinterestsInput = { set: string[] } export type UserProfileUpdateinterestsInput = { set?: string[] push?: string | string[] } export type NullableEnumVibeFieldUpdateOperationsInput = { set?: $Enums.Vibe | null } export type UserProfileCreateWithoutUserInput = { id?: string bio?: string | null city?: string | null interests?: Prisma.UserProfileCreateinterestsInput | string[] instagram?: string | null vibe?: $Enums.Vibe | null createdAt?: Date | string updatedAt?: Date | string } export type UserProfileUncheckedCreateWithoutUserInput = { id?: string bio?: string | null city?: string | null interests?: Prisma.UserProfileCreateinterestsInput | string[] instagram?: string | null vibe?: $Enums.Vibe | null createdAt?: Date | string updatedAt?: Date | string } export type UserProfileCreateOrConnectWithoutUserInput = { where: Prisma.UserProfileWhereUniqueInput create: Prisma.XOR } export type UserProfileUpsertWithoutUserInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.UserProfileWhereInput } export type UserProfileUpdateToOneWithWhereWithoutUserInput = { where?: Prisma.UserProfileWhereInput data: Prisma.XOR } export type UserProfileUpdateWithoutUserInput = { id?: Prisma.StringFieldUpdateOperationsInput | string bio?: Prisma.NullableStringFieldUpdateOperationsInput | string | null city?: Prisma.NullableStringFieldUpdateOperationsInput | string | null interests?: Prisma.UserProfileUpdateinterestsInput | string[] instagram?: Prisma.NullableStringFieldUpdateOperationsInput | string | null vibe?: Prisma.NullableEnumVibeFieldUpdateOperationsInput | $Enums.Vibe | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type UserProfileUncheckedUpdateWithoutUserInput = { id?: Prisma.StringFieldUpdateOperationsInput | string bio?: Prisma.NullableStringFieldUpdateOperationsInput | string | null city?: Prisma.NullableStringFieldUpdateOperationsInput | string | null interests?: Prisma.UserProfileUpdateinterestsInput | string[] instagram?: Prisma.NullableStringFieldUpdateOperationsInput | string | null vibe?: Prisma.NullableEnumVibeFieldUpdateOperationsInput | $Enums.Vibe | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type UserProfileSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean userId?: boolean bio?: boolean city?: boolean interests?: boolean instagram?: boolean vibe?: boolean createdAt?: boolean updatedAt?: boolean user?: boolean | Prisma.UserDefaultArgs }, ExtArgs["result"]["userProfile"]> export type UserProfileSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean userId?: boolean bio?: boolean city?: boolean interests?: boolean instagram?: boolean vibe?: boolean createdAt?: boolean updatedAt?: boolean user?: boolean | Prisma.UserDefaultArgs }, ExtArgs["result"]["userProfile"]> export type UserProfileSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean userId?: boolean bio?: boolean city?: boolean interests?: boolean instagram?: boolean vibe?: boolean createdAt?: boolean updatedAt?: boolean user?: boolean | Prisma.UserDefaultArgs }, ExtArgs["result"]["userProfile"]> export type UserProfileSelectScalar = { id?: boolean userId?: boolean bio?: boolean city?: boolean interests?: boolean instagram?: boolean vibe?: boolean createdAt?: boolean updatedAt?: boolean } export type UserProfileOmit = runtime.Types.Extensions.GetOmit<"id" | "userId" | "bio" | "city" | "interests" | "instagram" | "vibe" | "createdAt" | "updatedAt", ExtArgs["result"]["userProfile"]> export type UserProfileInclude = { user?: boolean | Prisma.UserDefaultArgs } export type UserProfileIncludeCreateManyAndReturn = { user?: boolean | Prisma.UserDefaultArgs } export type UserProfileIncludeUpdateManyAndReturn = { user?: boolean | Prisma.UserDefaultArgs } export type $UserProfilePayload = { name: "UserProfile" objects: { user: Prisma.$UserPayload } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string userId: string /** * Bio singkat, teks bebas */ bio: string | null /** * Kota domisili (teks bebas, mis. "Bandung", "Jakarta Selatan") */ city: string | null /** * Tag minat aktivitas (mis. ["hiking", "fotografi", "yoga"]) */ interests: string[] /** * Username Instagram (tanpa @, opsional) */ instagram: string | null /** * Gaya jalan / energi user — dipakai untuk matching teman dengan ritme serupa. */ vibe: $Enums.Vibe | null createdAt: Date updatedAt: Date }, ExtArgs["result"]["userProfile"]> composites: {} } export type UserProfileGetPayload = runtime.Types.Result.GetResult export type UserProfileCountArgs = Omit & { select?: UserProfileCountAggregateInputType | true } export interface UserProfileDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['UserProfile'], meta: { name: 'UserProfile' } } /** * Find zero or one UserProfile that matches the filter. * @param {UserProfileFindUniqueArgs} args - Arguments to find a UserProfile * @example * // Get one UserProfile * const userProfile = await prisma.userProfile.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__UserProfileClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one UserProfile that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {UserProfileFindUniqueOrThrowArgs} args - Arguments to find a UserProfile * @example * // Get one UserProfile * const userProfile = await prisma.userProfile.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__UserProfileClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first UserProfile 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 {UserProfileFindFirstArgs} args - Arguments to find a UserProfile * @example * // Get one UserProfile * const userProfile = await prisma.userProfile.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__UserProfileClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first UserProfile 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 {UserProfileFindFirstOrThrowArgs} args - Arguments to find a UserProfile * @example * // Get one UserProfile * const userProfile = await prisma.userProfile.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__UserProfileClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more UserProfiles 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 {UserProfileFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all UserProfiles * const userProfiles = await prisma.userProfile.findMany() * * // Get first 10 UserProfiles * const userProfiles = await prisma.userProfile.findMany({ take: 10 }) * * // Only select the `id` * const userProfileWithIdOnly = await prisma.userProfile.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a UserProfile. * @param {UserProfileCreateArgs} args - Arguments to create a UserProfile. * @example * // Create one UserProfile * const UserProfile = await prisma.userProfile.create({ * data: { * // ... data to create a UserProfile * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__UserProfileClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many UserProfiles. * @param {UserProfileCreateManyArgs} args - Arguments to create many UserProfiles. * @example * // Create many UserProfiles * const userProfile = await prisma.userProfile.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many UserProfiles and returns the data saved in the database. * @param {UserProfileCreateManyAndReturnArgs} args - Arguments to create many UserProfiles. * @example * // Create many UserProfiles * const userProfile = await prisma.userProfile.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many UserProfiles and only return the `id` * const userProfileWithIdOnly = await prisma.userProfile.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 UserProfile. * @param {UserProfileDeleteArgs} args - Arguments to delete one UserProfile. * @example * // Delete one UserProfile * const UserProfile = await prisma.userProfile.delete({ * where: { * // ... filter to delete one UserProfile * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__UserProfileClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one UserProfile. * @param {UserProfileUpdateArgs} args - Arguments to update one UserProfile. * @example * // Update one UserProfile * const userProfile = await prisma.userProfile.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__UserProfileClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more UserProfiles. * @param {UserProfileDeleteManyArgs} args - Arguments to filter UserProfiles to delete. * @example * // Delete a few UserProfiles * const { count } = await prisma.userProfile.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more UserProfiles. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserProfileUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many UserProfiles * const userProfile = await prisma.userProfile.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more UserProfiles and returns the data updated in the database. * @param {UserProfileUpdateManyAndReturnArgs} args - Arguments to update many UserProfiles. * @example * // Update many UserProfiles * const userProfile = await prisma.userProfile.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more UserProfiles and only return the `id` * const userProfileWithIdOnly = await prisma.userProfile.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 UserProfile. * @param {UserProfileUpsertArgs} args - Arguments to update or create a UserProfile. * @example * // Update or create a UserProfile * const userProfile = await prisma.userProfile.upsert({ * create: { * // ... data to create a UserProfile * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the UserProfile we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__UserProfileClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of UserProfiles. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserProfileCountArgs} args - Arguments to filter UserProfiles to count. * @example * // Count the number of UserProfiles * const count = await prisma.userProfile.count({ * where: { * // ... the filter for the UserProfiles we want to count * } * }) **/ count( args?: Prisma.Subset, ): Prisma.PrismaPromise< T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType : number > /** * Allows you to perform aggregations operations on a UserProfile. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserProfileAggregateArgs} 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 UserProfile. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {UserProfileGroupByArgs} args - Group by arguments. * @example * // Group by city, order by createdAt, get count * const result = await prisma.user.groupBy({ * by: ['city', 'createdAt'], * orderBy: { * createdAt: true * }, * _count: { * _all: true * }, * }) * **/ groupBy< T extends UserProfileGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: UserProfileGroupByArgs['orderBy'] } : { orderBy?: UserProfileGroupByArgs['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 ? GetUserProfileGroupByPayload : Prisma.PrismaPromise /** * Fields of the UserProfile model */ readonly fields: UserProfileFieldRefs; } /** * The delegate class that acts as a "Promise-like" for UserProfile. * 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__UserProfileClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" user = {}>(args?: Prisma.Subset>): Prisma.Prisma__UserClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> /** * 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 UserProfile model */ export interface UserProfileFieldRefs { readonly id: Prisma.FieldRef<"UserProfile", 'String'> readonly userId: Prisma.FieldRef<"UserProfile", 'String'> readonly bio: Prisma.FieldRef<"UserProfile", 'String'> readonly city: Prisma.FieldRef<"UserProfile", 'String'> readonly interests: Prisma.FieldRef<"UserProfile", 'String[]'> readonly instagram: Prisma.FieldRef<"UserProfile", 'String'> readonly vibe: Prisma.FieldRef<"UserProfile", 'Vibe'> readonly createdAt: Prisma.FieldRef<"UserProfile", 'DateTime'> readonly updatedAt: Prisma.FieldRef<"UserProfile", 'DateTime'> } // Custom InputTypes /** * UserProfile findUnique */ export type UserProfileFindUniqueArgs = { /** * Select specific fields to fetch from the UserProfile */ select?: Prisma.UserProfileSelect | null /** * Omit specific fields from the UserProfile */ omit?: Prisma.UserProfileOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserProfileInclude | null /** * Filter, which UserProfile to fetch. */ where: Prisma.UserProfileWhereUniqueInput } /** * UserProfile findUniqueOrThrow */ export type UserProfileFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the UserProfile */ select?: Prisma.UserProfileSelect | null /** * Omit specific fields from the UserProfile */ omit?: Prisma.UserProfileOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserProfileInclude | null /** * Filter, which UserProfile to fetch. */ where: Prisma.UserProfileWhereUniqueInput } /** * UserProfile findFirst */ export type UserProfileFindFirstArgs = { /** * Select specific fields to fetch from the UserProfile */ select?: Prisma.UserProfileSelect | null /** * Omit specific fields from the UserProfile */ omit?: Prisma.UserProfileOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserProfileInclude | null /** * Filter, which UserProfile to fetch. */ where?: Prisma.UserProfileWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of UserProfiles to fetch. */ orderBy?: Prisma.UserProfileOrderByWithRelationInput | Prisma.UserProfileOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for UserProfiles. */ cursor?: Prisma.UserProfileWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` UserProfiles from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` UserProfiles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of UserProfiles. */ distinct?: Prisma.UserProfileScalarFieldEnum | Prisma.UserProfileScalarFieldEnum[] } /** * UserProfile findFirstOrThrow */ export type UserProfileFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the UserProfile */ select?: Prisma.UserProfileSelect | null /** * Omit specific fields from the UserProfile */ omit?: Prisma.UserProfileOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserProfileInclude | null /** * Filter, which UserProfile to fetch. */ where?: Prisma.UserProfileWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of UserProfiles to fetch. */ orderBy?: Prisma.UserProfileOrderByWithRelationInput | Prisma.UserProfileOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for UserProfiles. */ cursor?: Prisma.UserProfileWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` UserProfiles from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` UserProfiles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of UserProfiles. */ distinct?: Prisma.UserProfileScalarFieldEnum | Prisma.UserProfileScalarFieldEnum[] } /** * UserProfile findMany */ export type UserProfileFindManyArgs = { /** * Select specific fields to fetch from the UserProfile */ select?: Prisma.UserProfileSelect | null /** * Omit specific fields from the UserProfile */ omit?: Prisma.UserProfileOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserProfileInclude | null /** * Filter, which UserProfiles to fetch. */ where?: Prisma.UserProfileWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of UserProfiles to fetch. */ orderBy?: Prisma.UserProfileOrderByWithRelationInput | Prisma.UserProfileOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing UserProfiles. */ cursor?: Prisma.UserProfileWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` UserProfiles from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` UserProfiles. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of UserProfiles. */ distinct?: Prisma.UserProfileScalarFieldEnum | Prisma.UserProfileScalarFieldEnum[] } /** * UserProfile create */ export type UserProfileCreateArgs = { /** * Select specific fields to fetch from the UserProfile */ select?: Prisma.UserProfileSelect | null /** * Omit specific fields from the UserProfile */ omit?: Prisma.UserProfileOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserProfileInclude | null /** * The data needed to create a UserProfile. */ data: Prisma.XOR } /** * UserProfile createMany */ export type UserProfileCreateManyArgs = { /** * The data used to create many UserProfiles. */ data: Prisma.UserProfileCreateManyInput | Prisma.UserProfileCreateManyInput[] skipDuplicates?: boolean } /** * UserProfile createManyAndReturn */ export type UserProfileCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the UserProfile */ select?: Prisma.UserProfileSelectCreateManyAndReturn | null /** * Omit specific fields from the UserProfile */ omit?: Prisma.UserProfileOmit | null /** * The data used to create many UserProfiles. */ data: Prisma.UserProfileCreateManyInput | Prisma.UserProfileCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserProfileIncludeCreateManyAndReturn | null } /** * UserProfile update */ export type UserProfileUpdateArgs = { /** * Select specific fields to fetch from the UserProfile */ select?: Prisma.UserProfileSelect | null /** * Omit specific fields from the UserProfile */ omit?: Prisma.UserProfileOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserProfileInclude | null /** * The data needed to update a UserProfile. */ data: Prisma.XOR /** * Choose, which UserProfile to update. */ where: Prisma.UserProfileWhereUniqueInput } /** * UserProfile updateMany */ export type UserProfileUpdateManyArgs = { /** * The data used to update UserProfiles. */ data: Prisma.XOR /** * Filter which UserProfiles to update */ where?: Prisma.UserProfileWhereInput /** * Limit how many UserProfiles to update. */ limit?: number } /** * UserProfile updateManyAndReturn */ export type UserProfileUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the UserProfile */ select?: Prisma.UserProfileSelectUpdateManyAndReturn | null /** * Omit specific fields from the UserProfile */ omit?: Prisma.UserProfileOmit | null /** * The data used to update UserProfiles. */ data: Prisma.XOR /** * Filter which UserProfiles to update */ where?: Prisma.UserProfileWhereInput /** * Limit how many UserProfiles to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserProfileIncludeUpdateManyAndReturn | null } /** * UserProfile upsert */ export type UserProfileUpsertArgs = { /** * Select specific fields to fetch from the UserProfile */ select?: Prisma.UserProfileSelect | null /** * Omit specific fields from the UserProfile */ omit?: Prisma.UserProfileOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserProfileInclude | null /** * The filter to search for the UserProfile to update in case it exists. */ where: Prisma.UserProfileWhereUniqueInput /** * In case the UserProfile found by the `where` argument doesn't exist, create a new UserProfile with this data. */ create: Prisma.XOR /** * In case the UserProfile was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * UserProfile delete */ export type UserProfileDeleteArgs = { /** * Select specific fields to fetch from the UserProfile */ select?: Prisma.UserProfileSelect | null /** * Omit specific fields from the UserProfile */ omit?: Prisma.UserProfileOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserProfileInclude | null /** * Filter which UserProfile to delete. */ where: Prisma.UserProfileWhereUniqueInput } /** * UserProfile deleteMany */ export type UserProfileDeleteManyArgs = { /** * Filter which UserProfiles to delete */ where?: Prisma.UserProfileWhereInput /** * Limit how many UserProfiles to delete. */ limit?: number } /** * UserProfile without action */ export type UserProfileDefaultArgs = { /** * Select specific fields to fetch from the UserProfile */ select?: Prisma.UserProfileSelect | null /** * Omit specific fields from the UserProfile */ omit?: Prisma.UserProfileOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.UserProfileInclude | null }