/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `Guild` model and its related types. * * 🟢 You can import this file directly. */ import type * as runtime from "@prisma/client/runtime/client" import type * as $Enums from "../enums.js" import type * as Prisma from "../internal/prismaNamespace.js" /** * Model Guild * */ export type GuildModel = runtime.Types.Result.DefaultSelection export type AggregateGuild = { _count: GuildCountAggregateOutputType | null _min: GuildMinAggregateOutputType | null _max: GuildMaxAggregateOutputType | null } export type GuildMinAggregateOutputType = { id: string | null name: string | null code: string | null created_at: Date | null updated_at: Date | null } export type GuildMaxAggregateOutputType = { id: string | null name: string | null code: string | null created_at: Date | null updated_at: Date | null } export type GuildCountAggregateOutputType = { id: number name: number code: number created_at: number updated_at: number _all: number } export type GuildMinAggregateInputType = { id?: true name?: true code?: true created_at?: true updated_at?: true } export type GuildMaxAggregateInputType = { id?: true name?: true code?: true created_at?: true updated_at?: true } export type GuildCountAggregateInputType = { id?: true name?: true code?: true created_at?: true updated_at?: true _all?: true } export type GuildAggregateArgs = { /** * Filter which Guild to aggregate. */ where?: Prisma.GuildWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Guilds to fetch. */ orderBy?: Prisma.GuildOrderByWithRelationInput | Prisma.GuildOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.GuildWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Guilds 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` Guilds. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Guilds **/ _count?: true | GuildCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: GuildMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: GuildMaxAggregateInputType } export type GetGuildAggregateType = { [P in keyof T & keyof AggregateGuild]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type GuildGroupByArgs = { where?: Prisma.GuildWhereInput orderBy?: Prisma.GuildOrderByWithAggregationInput | Prisma.GuildOrderByWithAggregationInput[] by: Prisma.GuildScalarFieldEnum[] | Prisma.GuildScalarFieldEnum having?: Prisma.GuildScalarWhereWithAggregatesInput take?: number skip?: number _count?: GuildCountAggregateInputType | true _min?: GuildMinAggregateInputType _max?: GuildMaxAggregateInputType } export type GuildGroupByOutputType = { id: string name: string code: string | null created_at: Date updated_at: Date _count: GuildCountAggregateOutputType | null _min: GuildMinAggregateOutputType | null _max: GuildMaxAggregateOutputType | null } type GetGuildGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof GuildGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type GuildWhereInput = { AND?: Prisma.GuildWhereInput | Prisma.GuildWhereInput[] OR?: Prisma.GuildWhereInput[] NOT?: Prisma.GuildWhereInput | Prisma.GuildWhereInput[] id?: Prisma.StringFilter<"Guild"> | string name?: Prisma.StringFilter<"Guild"> | string code?: Prisma.StringNullableFilter<"Guild"> | string | null created_at?: Prisma.DateTimeFilter<"Guild"> | Date | string updated_at?: Prisma.DateTimeFilter<"Guild"> | Date | string business_activities?: Prisma.BusinessActivityListRelationFilter good_categories?: Prisma.GoodCategoryListRelationFilter } export type GuildOrderByWithRelationInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder code?: Prisma.SortOrderInput | Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder business_activities?: Prisma.BusinessActivityOrderByRelationAggregateInput good_categories?: Prisma.GoodCategoryOrderByRelationAggregateInput _relevance?: Prisma.GuildOrderByRelevanceInput } export type GuildWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: Prisma.GuildWhereInput | Prisma.GuildWhereInput[] OR?: Prisma.GuildWhereInput[] NOT?: Prisma.GuildWhereInput | Prisma.GuildWhereInput[] name?: Prisma.StringFilter<"Guild"> | string code?: Prisma.StringNullableFilter<"Guild"> | string | null created_at?: Prisma.DateTimeFilter<"Guild"> | Date | string updated_at?: Prisma.DateTimeFilter<"Guild"> | Date | string business_activities?: Prisma.BusinessActivityListRelationFilter good_categories?: Prisma.GoodCategoryListRelationFilter }, "id"> export type GuildOrderByWithAggregationInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder code?: Prisma.SortOrderInput | Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder _count?: Prisma.GuildCountOrderByAggregateInput _max?: Prisma.GuildMaxOrderByAggregateInput _min?: Prisma.GuildMinOrderByAggregateInput } export type GuildScalarWhereWithAggregatesInput = { AND?: Prisma.GuildScalarWhereWithAggregatesInput | Prisma.GuildScalarWhereWithAggregatesInput[] OR?: Prisma.GuildScalarWhereWithAggregatesInput[] NOT?: Prisma.GuildScalarWhereWithAggregatesInput | Prisma.GuildScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"Guild"> | string name?: Prisma.StringWithAggregatesFilter<"Guild"> | string code?: Prisma.StringNullableWithAggregatesFilter<"Guild"> | string | null created_at?: Prisma.DateTimeWithAggregatesFilter<"Guild"> | Date | string updated_at?: Prisma.DateTimeWithAggregatesFilter<"Guild"> | Date | string } export type GuildCreateInput = { id?: string name: string code?: string | null created_at?: Date | string updated_at?: Date | string business_activities?: Prisma.BusinessActivityCreateNestedManyWithoutGuildInput good_categories?: Prisma.GoodCategoryCreateNestedManyWithoutGuildInput } export type GuildUncheckedCreateInput = { id?: string name: string code?: string | null created_at?: Date | string updated_at?: Date | string business_activities?: Prisma.BusinessActivityUncheckedCreateNestedManyWithoutGuildInput good_categories?: Prisma.GoodCategoryUncheckedCreateNestedManyWithoutGuildInput } export type GuildUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string business_activities?: Prisma.BusinessActivityUpdateManyWithoutGuildNestedInput good_categories?: Prisma.GoodCategoryUpdateManyWithoutGuildNestedInput } export type GuildUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string business_activities?: Prisma.BusinessActivityUncheckedUpdateManyWithoutGuildNestedInput good_categories?: Prisma.GoodCategoryUncheckedUpdateManyWithoutGuildNestedInput } export type GuildCreateManyInput = { id?: string name: string code?: string | null created_at?: Date | string updated_at?: Date | string } export type GuildUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type GuildUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type GuildScalarRelationFilter = { is?: Prisma.GuildWhereInput isNot?: Prisma.GuildWhereInput } export type GuildNullableScalarRelationFilter = { is?: Prisma.GuildWhereInput | null isNot?: Prisma.GuildWhereInput | null } export type GuildOrderByRelevanceInput = { fields: Prisma.GuildOrderByRelevanceFieldEnum | Prisma.GuildOrderByRelevanceFieldEnum[] sort: Prisma.SortOrder search: string } export type GuildCountOrderByAggregateInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder code?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder } export type GuildMaxOrderByAggregateInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder code?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder } export type GuildMinOrderByAggregateInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder code?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder } export type GuildCreateNestedOneWithoutBusiness_activitiesInput = { create?: Prisma.XOR connectOrCreate?: Prisma.GuildCreateOrConnectWithoutBusiness_activitiesInput connect?: Prisma.GuildWhereUniqueInput } export type GuildUpdateOneRequiredWithoutBusiness_activitiesNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.GuildCreateOrConnectWithoutBusiness_activitiesInput upsert?: Prisma.GuildUpsertWithoutBusiness_activitiesInput connect?: Prisma.GuildWhereUniqueInput update?: Prisma.XOR, Prisma.GuildUncheckedUpdateWithoutBusiness_activitiesInput> } export type GuildCreateNestedOneWithoutGood_categoriesInput = { create?: Prisma.XOR connectOrCreate?: Prisma.GuildCreateOrConnectWithoutGood_categoriesInput connect?: Prisma.GuildWhereUniqueInput } export type GuildUpdateOneWithoutGood_categoriesNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.GuildCreateOrConnectWithoutGood_categoriesInput upsert?: Prisma.GuildUpsertWithoutGood_categoriesInput disconnect?: Prisma.GuildWhereInput | boolean delete?: Prisma.GuildWhereInput | boolean connect?: Prisma.GuildWhereUniqueInput update?: Prisma.XOR, Prisma.GuildUncheckedUpdateWithoutGood_categoriesInput> } export type GuildCreateWithoutBusiness_activitiesInput = { id?: string name: string code?: string | null created_at?: Date | string updated_at?: Date | string good_categories?: Prisma.GoodCategoryCreateNestedManyWithoutGuildInput } export type GuildUncheckedCreateWithoutBusiness_activitiesInput = { id?: string name: string code?: string | null created_at?: Date | string updated_at?: Date | string good_categories?: Prisma.GoodCategoryUncheckedCreateNestedManyWithoutGuildInput } export type GuildCreateOrConnectWithoutBusiness_activitiesInput = { where: Prisma.GuildWhereUniqueInput create: Prisma.XOR } export type GuildUpsertWithoutBusiness_activitiesInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.GuildWhereInput } export type GuildUpdateToOneWithWhereWithoutBusiness_activitiesInput = { where?: Prisma.GuildWhereInput data: Prisma.XOR } export type GuildUpdateWithoutBusiness_activitiesInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string good_categories?: Prisma.GoodCategoryUpdateManyWithoutGuildNestedInput } export type GuildUncheckedUpdateWithoutBusiness_activitiesInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string good_categories?: Prisma.GoodCategoryUncheckedUpdateManyWithoutGuildNestedInput } export type GuildCreateWithoutGood_categoriesInput = { id?: string name: string code?: string | null created_at?: Date | string updated_at?: Date | string business_activities?: Prisma.BusinessActivityCreateNestedManyWithoutGuildInput } export type GuildUncheckedCreateWithoutGood_categoriesInput = { id?: string name: string code?: string | null created_at?: Date | string updated_at?: Date | string business_activities?: Prisma.BusinessActivityUncheckedCreateNestedManyWithoutGuildInput } export type GuildCreateOrConnectWithoutGood_categoriesInput = { where: Prisma.GuildWhereUniqueInput create: Prisma.XOR } export type GuildUpsertWithoutGood_categoriesInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.GuildWhereInput } export type GuildUpdateToOneWithWhereWithoutGood_categoriesInput = { where?: Prisma.GuildWhereInput data: Prisma.XOR } export type GuildUpdateWithoutGood_categoriesInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string business_activities?: Prisma.BusinessActivityUpdateManyWithoutGuildNestedInput } export type GuildUncheckedUpdateWithoutGood_categoriesInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string business_activities?: Prisma.BusinessActivityUncheckedUpdateManyWithoutGuildNestedInput } /** * Count Type GuildCountOutputType */ export type GuildCountOutputType = { business_activities: number good_categories: number } export type GuildCountOutputTypeSelect = { business_activities?: boolean | GuildCountOutputTypeCountBusiness_activitiesArgs good_categories?: boolean | GuildCountOutputTypeCountGood_categoriesArgs } /** * GuildCountOutputType without action */ export type GuildCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the GuildCountOutputType */ select?: Prisma.GuildCountOutputTypeSelect | null } /** * GuildCountOutputType without action */ export type GuildCountOutputTypeCountBusiness_activitiesArgs = { where?: Prisma.BusinessActivityWhereInput } /** * GuildCountOutputType without action */ export type GuildCountOutputTypeCountGood_categoriesArgs = { where?: Prisma.GoodCategoryWhereInput } export type GuildSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean name?: boolean code?: boolean created_at?: boolean updated_at?: boolean business_activities?: boolean | Prisma.Guild$business_activitiesArgs good_categories?: boolean | Prisma.Guild$good_categoriesArgs _count?: boolean | Prisma.GuildCountOutputTypeDefaultArgs }, ExtArgs["result"]["guild"]> export type GuildSelectScalar = { id?: boolean name?: boolean code?: boolean created_at?: boolean updated_at?: boolean } export type GuildOmit = runtime.Types.Extensions.GetOmit<"id" | "name" | "code" | "created_at" | "updated_at", ExtArgs["result"]["guild"]> export type GuildInclude = { business_activities?: boolean | Prisma.Guild$business_activitiesArgs good_categories?: boolean | Prisma.Guild$good_categoriesArgs _count?: boolean | Prisma.GuildCountOutputTypeDefaultArgs } export type $GuildPayload = { name: "Guild" objects: { business_activities: Prisma.$BusinessActivityPayload[] good_categories: Prisma.$GoodCategoryPayload[] } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string name: string code: string | null created_at: Date updated_at: Date }, ExtArgs["result"]["guild"]> composites: {} } export type GuildGetPayload = runtime.Types.Result.GetResult export type GuildCountArgs = Omit & { select?: GuildCountAggregateInputType | true } export interface GuildDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Guild'], meta: { name: 'Guild' } } /** * Find zero or one Guild that matches the filter. * @param {GuildFindUniqueArgs} args - Arguments to find a Guild * @example * // Get one Guild * const guild = await prisma.guild.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__GuildClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Guild that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {GuildFindUniqueOrThrowArgs} args - Arguments to find a Guild * @example * // Get one Guild * const guild = await prisma.guild.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__GuildClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Guild 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 {GuildFindFirstArgs} args - Arguments to find a Guild * @example * // Get one Guild * const guild = await prisma.guild.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__GuildClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Guild 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 {GuildFindFirstOrThrowArgs} args - Arguments to find a Guild * @example * // Get one Guild * const guild = await prisma.guild.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__GuildClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Guilds 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 {GuildFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Guilds * const guilds = await prisma.guild.findMany() * * // Get first 10 Guilds * const guilds = await prisma.guild.findMany({ take: 10 }) * * // Only select the `id` * const guildWithIdOnly = await prisma.guild.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Guild. * @param {GuildCreateArgs} args - Arguments to create a Guild. * @example * // Create one Guild * const Guild = await prisma.guild.create({ * data: { * // ... data to create a Guild * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__GuildClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Guilds. * @param {GuildCreateManyArgs} args - Arguments to create many Guilds. * @example * // Create many Guilds * const guild = await prisma.guild.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Delete a Guild. * @param {GuildDeleteArgs} args - Arguments to delete one Guild. * @example * // Delete one Guild * const Guild = await prisma.guild.delete({ * where: { * // ... filter to delete one Guild * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__GuildClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Guild. * @param {GuildUpdateArgs} args - Arguments to update one Guild. * @example * // Update one Guild * const guild = await prisma.guild.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__GuildClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Guilds. * @param {GuildDeleteManyArgs} args - Arguments to filter Guilds to delete. * @example * // Delete a few Guilds * const { count } = await prisma.guild.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Guilds. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {GuildUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Guilds * const guild = await prisma.guild.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create or update one Guild. * @param {GuildUpsertArgs} args - Arguments to update or create a Guild. * @example * // Update or create a Guild * const guild = await prisma.guild.upsert({ * create: { * // ... data to create a Guild * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Guild we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__GuildClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Guilds. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {GuildCountArgs} args - Arguments to filter Guilds to count. * @example * // Count the number of Guilds * const count = await prisma.guild.count({ * where: { * // ... the filter for the Guilds 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 Guild. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {GuildAggregateArgs} 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 Guild. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {GuildGroupByArgs} 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 GuildGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: GuildGroupByArgs['orderBy'] } : { orderBy?: GuildGroupByArgs['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 ? GetGuildGroupByPayload : Prisma.PrismaPromise /** * Fields of the Guild model */ readonly fields: GuildFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Guild. * 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__GuildClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" business_activities = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> good_categories = {}>(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 Guild model */ export interface GuildFieldRefs { readonly id: Prisma.FieldRef<"Guild", 'String'> readonly name: Prisma.FieldRef<"Guild", 'String'> readonly code: Prisma.FieldRef<"Guild", 'String'> readonly created_at: Prisma.FieldRef<"Guild", 'DateTime'> readonly updated_at: Prisma.FieldRef<"Guild", 'DateTime'> } // Custom InputTypes /** * Guild findUnique */ export type GuildFindUniqueArgs = { /** * Select specific fields to fetch from the Guild */ select?: Prisma.GuildSelect | null /** * Omit specific fields from the Guild */ omit?: Prisma.GuildOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.GuildInclude | null /** * Filter, which Guild to fetch. */ where: Prisma.GuildWhereUniqueInput } /** * Guild findUniqueOrThrow */ export type GuildFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Guild */ select?: Prisma.GuildSelect | null /** * Omit specific fields from the Guild */ omit?: Prisma.GuildOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.GuildInclude | null /** * Filter, which Guild to fetch. */ where: Prisma.GuildWhereUniqueInput } /** * Guild findFirst */ export type GuildFindFirstArgs = { /** * Select specific fields to fetch from the Guild */ select?: Prisma.GuildSelect | null /** * Omit specific fields from the Guild */ omit?: Prisma.GuildOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.GuildInclude | null /** * Filter, which Guild to fetch. */ where?: Prisma.GuildWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Guilds to fetch. */ orderBy?: Prisma.GuildOrderByWithRelationInput | Prisma.GuildOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Guilds. */ cursor?: Prisma.GuildWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Guilds 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` Guilds. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Guilds. */ distinct?: Prisma.GuildScalarFieldEnum | Prisma.GuildScalarFieldEnum[] } /** * Guild findFirstOrThrow */ export type GuildFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Guild */ select?: Prisma.GuildSelect | null /** * Omit specific fields from the Guild */ omit?: Prisma.GuildOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.GuildInclude | null /** * Filter, which Guild to fetch. */ where?: Prisma.GuildWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Guilds to fetch. */ orderBy?: Prisma.GuildOrderByWithRelationInput | Prisma.GuildOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Guilds. */ cursor?: Prisma.GuildWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Guilds 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` Guilds. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Guilds. */ distinct?: Prisma.GuildScalarFieldEnum | Prisma.GuildScalarFieldEnum[] } /** * Guild findMany */ export type GuildFindManyArgs = { /** * Select specific fields to fetch from the Guild */ select?: Prisma.GuildSelect | null /** * Omit specific fields from the Guild */ omit?: Prisma.GuildOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.GuildInclude | null /** * Filter, which Guilds to fetch. */ where?: Prisma.GuildWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Guilds to fetch. */ orderBy?: Prisma.GuildOrderByWithRelationInput | Prisma.GuildOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Guilds. */ cursor?: Prisma.GuildWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Guilds 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` Guilds. */ skip?: number distinct?: Prisma.GuildScalarFieldEnum | Prisma.GuildScalarFieldEnum[] } /** * Guild create */ export type GuildCreateArgs = { /** * Select specific fields to fetch from the Guild */ select?: Prisma.GuildSelect | null /** * Omit specific fields from the Guild */ omit?: Prisma.GuildOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.GuildInclude | null /** * The data needed to create a Guild. */ data: Prisma.XOR } /** * Guild createMany */ export type GuildCreateManyArgs = { /** * The data used to create many Guilds. */ data: Prisma.GuildCreateManyInput | Prisma.GuildCreateManyInput[] skipDuplicates?: boolean } /** * Guild update */ export type GuildUpdateArgs = { /** * Select specific fields to fetch from the Guild */ select?: Prisma.GuildSelect | null /** * Omit specific fields from the Guild */ omit?: Prisma.GuildOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.GuildInclude | null /** * The data needed to update a Guild. */ data: Prisma.XOR /** * Choose, which Guild to update. */ where: Prisma.GuildWhereUniqueInput } /** * Guild updateMany */ export type GuildUpdateManyArgs = { /** * The data used to update Guilds. */ data: Prisma.XOR /** * Filter which Guilds to update */ where?: Prisma.GuildWhereInput /** * Limit how many Guilds to update. */ limit?: number } /** * Guild upsert */ export type GuildUpsertArgs = { /** * Select specific fields to fetch from the Guild */ select?: Prisma.GuildSelect | null /** * Omit specific fields from the Guild */ omit?: Prisma.GuildOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.GuildInclude | null /** * The filter to search for the Guild to update in case it exists. */ where: Prisma.GuildWhereUniqueInput /** * In case the Guild found by the `where` argument doesn't exist, create a new Guild with this data. */ create: Prisma.XOR /** * In case the Guild was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * Guild delete */ export type GuildDeleteArgs = { /** * Select specific fields to fetch from the Guild */ select?: Prisma.GuildSelect | null /** * Omit specific fields from the Guild */ omit?: Prisma.GuildOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.GuildInclude | null /** * Filter which Guild to delete. */ where: Prisma.GuildWhereUniqueInput } /** * Guild deleteMany */ export type GuildDeleteManyArgs = { /** * Filter which Guilds to delete */ where?: Prisma.GuildWhereInput /** * Limit how many Guilds to delete. */ limit?: number } /** * Guild.business_activities */ export type Guild$business_activitiesArgs = { /** * Select specific fields to fetch from the BusinessActivity */ select?: Prisma.BusinessActivitySelect | null /** * Omit specific fields from the BusinessActivity */ omit?: Prisma.BusinessActivityOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.BusinessActivityInclude | null where?: Prisma.BusinessActivityWhereInput orderBy?: Prisma.BusinessActivityOrderByWithRelationInput | Prisma.BusinessActivityOrderByWithRelationInput[] cursor?: Prisma.BusinessActivityWhereUniqueInput take?: number skip?: number distinct?: Prisma.BusinessActivityScalarFieldEnum | Prisma.BusinessActivityScalarFieldEnum[] } /** * Guild.good_categories */ export type Guild$good_categoriesArgs = { /** * Select specific fields to fetch from the GoodCategory */ select?: Prisma.GoodCategorySelect | null /** * Omit specific fields from the GoodCategory */ omit?: Prisma.GoodCategoryOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.GoodCategoryInclude | null where?: Prisma.GoodCategoryWhereInput orderBy?: Prisma.GoodCategoryOrderByWithRelationInput | Prisma.GoodCategoryOrderByWithRelationInput[] cursor?: Prisma.GoodCategoryWhereUniqueInput take?: number skip?: number distinct?: Prisma.GoodCategoryScalarFieldEnum | Prisma.GoodCategoryScalarFieldEnum[] } /** * Guild without action */ export type GuildDefaultArgs = { /** * Select specific fields to fetch from the Guild */ select?: Prisma.GuildSelect | null /** * Omit specific fields from the Guild */ omit?: Prisma.GuildOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.GuildInclude | null }