1388 lines
49 KiB
TypeScript
1388 lines
49 KiB
TypeScript
|
|
|
||
|
|
/* !!! 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<Prisma.$GuildPayload>
|
||
|
|
|
||
|
|
export type AggregateGuild = {
|
||
|
|
_count: GuildCountAggregateOutputType | null
|
||
|
|
_min: GuildMinAggregateOutputType | null
|
||
|
|
_max: GuildMaxAggregateOutputType | null
|
||
|
|
}
|
||
|
|
|
||
|
|
export type GuildMinAggregateOutputType = {
|
||
|
|
id: string | null
|
||
|
|
name: string | null
|
||
|
|
code: string | null
|
||
|
|
}
|
||
|
|
|
||
|
|
export type GuildMaxAggregateOutputType = {
|
||
|
|
id: string | null
|
||
|
|
name: string | null
|
||
|
|
code: string | null
|
||
|
|
}
|
||
|
|
|
||
|
|
export type GuildCountAggregateOutputType = {
|
||
|
|
id: number
|
||
|
|
name: number
|
||
|
|
code: number
|
||
|
|
_all: number
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
export type GuildMinAggregateInputType = {
|
||
|
|
id?: true
|
||
|
|
name?: true
|
||
|
|
code?: true
|
||
|
|
}
|
||
|
|
|
||
|
|
export type GuildMaxAggregateInputType = {
|
||
|
|
id?: true
|
||
|
|
name?: true
|
||
|
|
code?: true
|
||
|
|
}
|
||
|
|
|
||
|
|
export type GuildCountAggregateInputType = {
|
||
|
|
id?: true
|
||
|
|
name?: true
|
||
|
|
code?: true
|
||
|
|
_all?: true
|
||
|
|
}
|
||
|
|
|
||
|
|
export type GuildAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||
|
|
/**
|
||
|
|
* 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<T extends GuildAggregateArgs> = {
|
||
|
|
[P in keyof T & keyof AggregateGuild]: P extends '_count' | 'count'
|
||
|
|
? T[P] extends true
|
||
|
|
? number
|
||
|
|
: Prisma.GetScalarType<T[P], AggregateGuild[P]>
|
||
|
|
: Prisma.GetScalarType<T[P], AggregateGuild[P]>
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
export type GuildGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||
|
|
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
|
||
|
|
_count: GuildCountAggregateOutputType | null
|
||
|
|
_min: GuildMinAggregateOutputType | null
|
||
|
|
_max: GuildMaxAggregateOutputType | null
|
||
|
|
}
|
||
|
|
|
||
|
|
type GetGuildGroupByPayload<T extends GuildGroupByArgs> = Prisma.PrismaPromise<
|
||
|
|
Array<
|
||
|
|
Prisma.PickEnumerable<GuildGroupByOutputType, T['by']> &
|
||
|
|
{
|
||
|
|
[P in ((keyof T) & (keyof GuildGroupByOutputType))]: P extends '_count'
|
||
|
|
? T[P] extends boolean
|
||
|
|
? number
|
||
|
|
: Prisma.GetScalarType<T[P], GuildGroupByOutputType[P]>
|
||
|
|
: Prisma.GetScalarType<T[P], GuildGroupByOutputType[P]>
|
||
|
|
}
|
||
|
|
>
|
||
|
|
>
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
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
|
||
|
|
business_activities?: Prisma.BusinessActivityListRelationFilter
|
||
|
|
goods?: Prisma.GoodListRelationFilter
|
||
|
|
good_categories?: Prisma.GoodCategoryListRelationFilter
|
||
|
|
}
|
||
|
|
|
||
|
|
export type GuildOrderByWithRelationInput = {
|
||
|
|
id?: Prisma.SortOrder
|
||
|
|
name?: Prisma.SortOrder
|
||
|
|
code?: Prisma.SortOrderInput | Prisma.SortOrder
|
||
|
|
business_activities?: Prisma.BusinessActivityOrderByRelationAggregateInput
|
||
|
|
goods?: Prisma.GoodOrderByRelationAggregateInput
|
||
|
|
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
|
||
|
|
business_activities?: Prisma.BusinessActivityListRelationFilter
|
||
|
|
goods?: Prisma.GoodListRelationFilter
|
||
|
|
good_categories?: Prisma.GoodCategoryListRelationFilter
|
||
|
|
}, "id">
|
||
|
|
|
||
|
|
export type GuildOrderByWithAggregationInput = {
|
||
|
|
id?: Prisma.SortOrder
|
||
|
|
name?: Prisma.SortOrder
|
||
|
|
code?: Prisma.SortOrderInput | 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
|
||
|
|
}
|
||
|
|
|
||
|
|
export type GuildCreateInput = {
|
||
|
|
id?: string
|
||
|
|
name: string
|
||
|
|
code?: string | null
|
||
|
|
business_activities?: Prisma.BusinessActivityCreateNestedManyWithoutGuildInput
|
||
|
|
goods?: Prisma.GoodCreateNestedManyWithoutGuildInput
|
||
|
|
good_categories?: Prisma.GoodCategoryCreateNestedManyWithoutGuildInput
|
||
|
|
}
|
||
|
|
|
||
|
|
export type GuildUncheckedCreateInput = {
|
||
|
|
id?: string
|
||
|
|
name: string
|
||
|
|
code?: string | null
|
||
|
|
business_activities?: Prisma.BusinessActivityUncheckedCreateNestedManyWithoutGuildInput
|
||
|
|
goods?: Prisma.GoodUncheckedCreateNestedManyWithoutGuildInput
|
||
|
|
good_categories?: Prisma.GoodCategoryUncheckedCreateNestedManyWithoutGuildInput
|
||
|
|
}
|
||
|
|
|
||
|
|
export type GuildUpdateInput = {
|
||
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
business_activities?: Prisma.BusinessActivityUpdateManyWithoutGuildNestedInput
|
||
|
|
goods?: Prisma.GoodUpdateManyWithoutGuildNestedInput
|
||
|
|
good_categories?: Prisma.GoodCategoryUpdateManyWithoutGuildNestedInput
|
||
|
|
}
|
||
|
|
|
||
|
|
export type GuildUncheckedUpdateInput = {
|
||
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
business_activities?: Prisma.BusinessActivityUncheckedUpdateManyWithoutGuildNestedInput
|
||
|
|
goods?: Prisma.GoodUncheckedUpdateManyWithoutGuildNestedInput
|
||
|
|
good_categories?: Prisma.GoodCategoryUncheckedUpdateManyWithoutGuildNestedInput
|
||
|
|
}
|
||
|
|
|
||
|
|
export type GuildCreateManyInput = {
|
||
|
|
id?: string
|
||
|
|
name: string
|
||
|
|
code?: string | null
|
||
|
|
}
|
||
|
|
|
||
|
|
export type GuildUpdateManyMutationInput = {
|
||
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
}
|
||
|
|
|
||
|
|
export type GuildUncheckedUpdateManyInput = {
|
||
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
code?: Prisma.NullableStringFieldUpdateOperationsInput | string | 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
|
||
|
|
}
|
||
|
|
|
||
|
|
export type GuildMaxOrderByAggregateInput = {
|
||
|
|
id?: Prisma.SortOrder
|
||
|
|
name?: Prisma.SortOrder
|
||
|
|
code?: Prisma.SortOrder
|
||
|
|
}
|
||
|
|
|
||
|
|
export type GuildMinOrderByAggregateInput = {
|
||
|
|
id?: Prisma.SortOrder
|
||
|
|
name?: Prisma.SortOrder
|
||
|
|
code?: Prisma.SortOrder
|
||
|
|
}
|
||
|
|
|
||
|
|
export type GuildScalarRelationFilter = {
|
||
|
|
is?: Prisma.GuildWhereInput
|
||
|
|
isNot?: Prisma.GuildWhereInput
|
||
|
|
}
|
||
|
|
|
||
|
|
export type GuildNullableScalarRelationFilter = {
|
||
|
|
is?: Prisma.GuildWhereInput | null
|
||
|
|
isNot?: Prisma.GuildWhereInput | null
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NullableStringFieldUpdateOperationsInput = {
|
||
|
|
set?: string | null
|
||
|
|
}
|
||
|
|
|
||
|
|
export type GuildCreateNestedOneWithoutBusiness_activitiesInput = {
|
||
|
|
create?: Prisma.XOR<Prisma.GuildCreateWithoutBusiness_activitiesInput, Prisma.GuildUncheckedCreateWithoutBusiness_activitiesInput>
|
||
|
|
connectOrCreate?: Prisma.GuildCreateOrConnectWithoutBusiness_activitiesInput
|
||
|
|
connect?: Prisma.GuildWhereUniqueInput
|
||
|
|
}
|
||
|
|
|
||
|
|
export type GuildUpdateOneRequiredWithoutBusiness_activitiesNestedInput = {
|
||
|
|
create?: Prisma.XOR<Prisma.GuildCreateWithoutBusiness_activitiesInput, Prisma.GuildUncheckedCreateWithoutBusiness_activitiesInput>
|
||
|
|
connectOrCreate?: Prisma.GuildCreateOrConnectWithoutBusiness_activitiesInput
|
||
|
|
upsert?: Prisma.GuildUpsertWithoutBusiness_activitiesInput
|
||
|
|
connect?: Prisma.GuildWhereUniqueInput
|
||
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.GuildUpdateToOneWithWhereWithoutBusiness_activitiesInput, Prisma.GuildUpdateWithoutBusiness_activitiesInput>, Prisma.GuildUncheckedUpdateWithoutBusiness_activitiesInput>
|
||
|
|
}
|
||
|
|
|
||
|
|
export type GuildCreateNestedOneWithoutGoodsInput = {
|
||
|
|
create?: Prisma.XOR<Prisma.GuildCreateWithoutGoodsInput, Prisma.GuildUncheckedCreateWithoutGoodsInput>
|
||
|
|
connectOrCreate?: Prisma.GuildCreateOrConnectWithoutGoodsInput
|
||
|
|
connect?: Prisma.GuildWhereUniqueInput
|
||
|
|
}
|
||
|
|
|
||
|
|
export type GuildUpdateOneWithoutGoodsNestedInput = {
|
||
|
|
create?: Prisma.XOR<Prisma.GuildCreateWithoutGoodsInput, Prisma.GuildUncheckedCreateWithoutGoodsInput>
|
||
|
|
connectOrCreate?: Prisma.GuildCreateOrConnectWithoutGoodsInput
|
||
|
|
upsert?: Prisma.GuildUpsertWithoutGoodsInput
|
||
|
|
disconnect?: Prisma.GuildWhereInput | boolean
|
||
|
|
delete?: Prisma.GuildWhereInput | boolean
|
||
|
|
connect?: Prisma.GuildWhereUniqueInput
|
||
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.GuildUpdateToOneWithWhereWithoutGoodsInput, Prisma.GuildUpdateWithoutGoodsInput>, Prisma.GuildUncheckedUpdateWithoutGoodsInput>
|
||
|
|
}
|
||
|
|
|
||
|
|
export type GuildCreateNestedOneWithoutGood_categoriesInput = {
|
||
|
|
create?: Prisma.XOR<Prisma.GuildCreateWithoutGood_categoriesInput, Prisma.GuildUncheckedCreateWithoutGood_categoriesInput>
|
||
|
|
connectOrCreate?: Prisma.GuildCreateOrConnectWithoutGood_categoriesInput
|
||
|
|
connect?: Prisma.GuildWhereUniqueInput
|
||
|
|
}
|
||
|
|
|
||
|
|
export type GuildUpdateOneWithoutGood_categoriesNestedInput = {
|
||
|
|
create?: Prisma.XOR<Prisma.GuildCreateWithoutGood_categoriesInput, Prisma.GuildUncheckedCreateWithoutGood_categoriesInput>
|
||
|
|
connectOrCreate?: Prisma.GuildCreateOrConnectWithoutGood_categoriesInput
|
||
|
|
upsert?: Prisma.GuildUpsertWithoutGood_categoriesInput
|
||
|
|
disconnect?: Prisma.GuildWhereInput | boolean
|
||
|
|
delete?: Prisma.GuildWhereInput | boolean
|
||
|
|
connect?: Prisma.GuildWhereUniqueInput
|
||
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.GuildUpdateToOneWithWhereWithoutGood_categoriesInput, Prisma.GuildUpdateWithoutGood_categoriesInput>, Prisma.GuildUncheckedUpdateWithoutGood_categoriesInput>
|
||
|
|
}
|
||
|
|
|
||
|
|
export type GuildCreateWithoutBusiness_activitiesInput = {
|
||
|
|
id?: string
|
||
|
|
name: string
|
||
|
|
code?: string | null
|
||
|
|
goods?: Prisma.GoodCreateNestedManyWithoutGuildInput
|
||
|
|
good_categories?: Prisma.GoodCategoryCreateNestedManyWithoutGuildInput
|
||
|
|
}
|
||
|
|
|
||
|
|
export type GuildUncheckedCreateWithoutBusiness_activitiesInput = {
|
||
|
|
id?: string
|
||
|
|
name: string
|
||
|
|
code?: string | null
|
||
|
|
goods?: Prisma.GoodUncheckedCreateNestedManyWithoutGuildInput
|
||
|
|
good_categories?: Prisma.GoodCategoryUncheckedCreateNestedManyWithoutGuildInput
|
||
|
|
}
|
||
|
|
|
||
|
|
export type GuildCreateOrConnectWithoutBusiness_activitiesInput = {
|
||
|
|
where: Prisma.GuildWhereUniqueInput
|
||
|
|
create: Prisma.XOR<Prisma.GuildCreateWithoutBusiness_activitiesInput, Prisma.GuildUncheckedCreateWithoutBusiness_activitiesInput>
|
||
|
|
}
|
||
|
|
|
||
|
|
export type GuildUpsertWithoutBusiness_activitiesInput = {
|
||
|
|
update: Prisma.XOR<Prisma.GuildUpdateWithoutBusiness_activitiesInput, Prisma.GuildUncheckedUpdateWithoutBusiness_activitiesInput>
|
||
|
|
create: Prisma.XOR<Prisma.GuildCreateWithoutBusiness_activitiesInput, Prisma.GuildUncheckedCreateWithoutBusiness_activitiesInput>
|
||
|
|
where?: Prisma.GuildWhereInput
|
||
|
|
}
|
||
|
|
|
||
|
|
export type GuildUpdateToOneWithWhereWithoutBusiness_activitiesInput = {
|
||
|
|
where?: Prisma.GuildWhereInput
|
||
|
|
data: Prisma.XOR<Prisma.GuildUpdateWithoutBusiness_activitiesInput, Prisma.GuildUncheckedUpdateWithoutBusiness_activitiesInput>
|
||
|
|
}
|
||
|
|
|
||
|
|
export type GuildUpdateWithoutBusiness_activitiesInput = {
|
||
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
goods?: Prisma.GoodUpdateManyWithoutGuildNestedInput
|
||
|
|
good_categories?: Prisma.GoodCategoryUpdateManyWithoutGuildNestedInput
|
||
|
|
}
|
||
|
|
|
||
|
|
export type GuildUncheckedUpdateWithoutBusiness_activitiesInput = {
|
||
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
goods?: Prisma.GoodUncheckedUpdateManyWithoutGuildNestedInput
|
||
|
|
good_categories?: Prisma.GoodCategoryUncheckedUpdateManyWithoutGuildNestedInput
|
||
|
|
}
|
||
|
|
|
||
|
|
export type GuildCreateWithoutGoodsInput = {
|
||
|
|
id?: string
|
||
|
|
name: string
|
||
|
|
code?: string | null
|
||
|
|
business_activities?: Prisma.BusinessActivityCreateNestedManyWithoutGuildInput
|
||
|
|
good_categories?: Prisma.GoodCategoryCreateNestedManyWithoutGuildInput
|
||
|
|
}
|
||
|
|
|
||
|
|
export type GuildUncheckedCreateWithoutGoodsInput = {
|
||
|
|
id?: string
|
||
|
|
name: string
|
||
|
|
code?: string | null
|
||
|
|
business_activities?: Prisma.BusinessActivityUncheckedCreateNestedManyWithoutGuildInput
|
||
|
|
good_categories?: Prisma.GoodCategoryUncheckedCreateNestedManyWithoutGuildInput
|
||
|
|
}
|
||
|
|
|
||
|
|
export type GuildCreateOrConnectWithoutGoodsInput = {
|
||
|
|
where: Prisma.GuildWhereUniqueInput
|
||
|
|
create: Prisma.XOR<Prisma.GuildCreateWithoutGoodsInput, Prisma.GuildUncheckedCreateWithoutGoodsInput>
|
||
|
|
}
|
||
|
|
|
||
|
|
export type GuildUpsertWithoutGoodsInput = {
|
||
|
|
update: Prisma.XOR<Prisma.GuildUpdateWithoutGoodsInput, Prisma.GuildUncheckedUpdateWithoutGoodsInput>
|
||
|
|
create: Prisma.XOR<Prisma.GuildCreateWithoutGoodsInput, Prisma.GuildUncheckedCreateWithoutGoodsInput>
|
||
|
|
where?: Prisma.GuildWhereInput
|
||
|
|
}
|
||
|
|
|
||
|
|
export type GuildUpdateToOneWithWhereWithoutGoodsInput = {
|
||
|
|
where?: Prisma.GuildWhereInput
|
||
|
|
data: Prisma.XOR<Prisma.GuildUpdateWithoutGoodsInput, Prisma.GuildUncheckedUpdateWithoutGoodsInput>
|
||
|
|
}
|
||
|
|
|
||
|
|
export type GuildUpdateWithoutGoodsInput = {
|
||
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
business_activities?: Prisma.BusinessActivityUpdateManyWithoutGuildNestedInput
|
||
|
|
good_categories?: Prisma.GoodCategoryUpdateManyWithoutGuildNestedInput
|
||
|
|
}
|
||
|
|
|
||
|
|
export type GuildUncheckedUpdateWithoutGoodsInput = {
|
||
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
business_activities?: Prisma.BusinessActivityUncheckedUpdateManyWithoutGuildNestedInput
|
||
|
|
good_categories?: Prisma.GoodCategoryUncheckedUpdateManyWithoutGuildNestedInput
|
||
|
|
}
|
||
|
|
|
||
|
|
export type GuildCreateWithoutGood_categoriesInput = {
|
||
|
|
id?: string
|
||
|
|
name: string
|
||
|
|
code?: string | null
|
||
|
|
business_activities?: Prisma.BusinessActivityCreateNestedManyWithoutGuildInput
|
||
|
|
goods?: Prisma.GoodCreateNestedManyWithoutGuildInput
|
||
|
|
}
|
||
|
|
|
||
|
|
export type GuildUncheckedCreateWithoutGood_categoriesInput = {
|
||
|
|
id?: string
|
||
|
|
name: string
|
||
|
|
code?: string | null
|
||
|
|
business_activities?: Prisma.BusinessActivityUncheckedCreateNestedManyWithoutGuildInput
|
||
|
|
goods?: Prisma.GoodUncheckedCreateNestedManyWithoutGuildInput
|
||
|
|
}
|
||
|
|
|
||
|
|
export type GuildCreateOrConnectWithoutGood_categoriesInput = {
|
||
|
|
where: Prisma.GuildWhereUniqueInput
|
||
|
|
create: Prisma.XOR<Prisma.GuildCreateWithoutGood_categoriesInput, Prisma.GuildUncheckedCreateWithoutGood_categoriesInput>
|
||
|
|
}
|
||
|
|
|
||
|
|
export type GuildUpsertWithoutGood_categoriesInput = {
|
||
|
|
update: Prisma.XOR<Prisma.GuildUpdateWithoutGood_categoriesInput, Prisma.GuildUncheckedUpdateWithoutGood_categoriesInput>
|
||
|
|
create: Prisma.XOR<Prisma.GuildCreateWithoutGood_categoriesInput, Prisma.GuildUncheckedCreateWithoutGood_categoriesInput>
|
||
|
|
where?: Prisma.GuildWhereInput
|
||
|
|
}
|
||
|
|
|
||
|
|
export type GuildUpdateToOneWithWhereWithoutGood_categoriesInput = {
|
||
|
|
where?: Prisma.GuildWhereInput
|
||
|
|
data: Prisma.XOR<Prisma.GuildUpdateWithoutGood_categoriesInput, Prisma.GuildUncheckedUpdateWithoutGood_categoriesInput>
|
||
|
|
}
|
||
|
|
|
||
|
|
export type GuildUpdateWithoutGood_categoriesInput = {
|
||
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
business_activities?: Prisma.BusinessActivityUpdateManyWithoutGuildNestedInput
|
||
|
|
goods?: Prisma.GoodUpdateManyWithoutGuildNestedInput
|
||
|
|
}
|
||
|
|
|
||
|
|
export type GuildUncheckedUpdateWithoutGood_categoriesInput = {
|
||
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
business_activities?: Prisma.BusinessActivityUncheckedUpdateManyWithoutGuildNestedInput
|
||
|
|
goods?: Prisma.GoodUncheckedUpdateManyWithoutGuildNestedInput
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Count Type GuildCountOutputType
|
||
|
|
*/
|
||
|
|
|
||
|
|
export type GuildCountOutputType = {
|
||
|
|
business_activities: number
|
||
|
|
goods: number
|
||
|
|
good_categories: number
|
||
|
|
}
|
||
|
|
|
||
|
|
export type GuildCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||
|
|
business_activities?: boolean | GuildCountOutputTypeCountBusiness_activitiesArgs
|
||
|
|
goods?: boolean | GuildCountOutputTypeCountGoodsArgs
|
||
|
|
good_categories?: boolean | GuildCountOutputTypeCountGood_categoriesArgs
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* GuildCountOutputType without action
|
||
|
|
*/
|
||
|
|
export type GuildCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||
|
|
/**
|
||
|
|
* Select specific fields to fetch from the GuildCountOutputType
|
||
|
|
*/
|
||
|
|
select?: Prisma.GuildCountOutputTypeSelect<ExtArgs> | null
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* GuildCountOutputType without action
|
||
|
|
*/
|
||
|
|
export type GuildCountOutputTypeCountBusiness_activitiesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||
|
|
where?: Prisma.BusinessActivityWhereInput
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* GuildCountOutputType without action
|
||
|
|
*/
|
||
|
|
export type GuildCountOutputTypeCountGoodsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||
|
|
where?: Prisma.GoodWhereInput
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* GuildCountOutputType without action
|
||
|
|
*/
|
||
|
|
export type GuildCountOutputTypeCountGood_categoriesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||
|
|
where?: Prisma.GoodCategoryWhereInput
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
export type GuildSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||
|
|
id?: boolean
|
||
|
|
name?: boolean
|
||
|
|
code?: boolean
|
||
|
|
business_activities?: boolean | Prisma.Guild$business_activitiesArgs<ExtArgs>
|
||
|
|
goods?: boolean | Prisma.Guild$goodsArgs<ExtArgs>
|
||
|
|
good_categories?: boolean | Prisma.Guild$good_categoriesArgs<ExtArgs>
|
||
|
|
_count?: boolean | Prisma.GuildCountOutputTypeDefaultArgs<ExtArgs>
|
||
|
|
}, ExtArgs["result"]["guild"]>
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
export type GuildSelectScalar = {
|
||
|
|
id?: boolean
|
||
|
|
name?: boolean
|
||
|
|
code?: boolean
|
||
|
|
}
|
||
|
|
|
||
|
|
export type GuildOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "code", ExtArgs["result"]["guild"]>
|
||
|
|
export type GuildInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||
|
|
business_activities?: boolean | Prisma.Guild$business_activitiesArgs<ExtArgs>
|
||
|
|
goods?: boolean | Prisma.Guild$goodsArgs<ExtArgs>
|
||
|
|
good_categories?: boolean | Prisma.Guild$good_categoriesArgs<ExtArgs>
|
||
|
|
_count?: boolean | Prisma.GuildCountOutputTypeDefaultArgs<ExtArgs>
|
||
|
|
}
|
||
|
|
|
||
|
|
export type $GuildPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||
|
|
name: "Guild"
|
||
|
|
objects: {
|
||
|
|
business_activities: Prisma.$BusinessActivityPayload<ExtArgs>[]
|
||
|
|
goods: Prisma.$GoodPayload<ExtArgs>[]
|
||
|
|
good_categories: Prisma.$GoodCategoryPayload<ExtArgs>[]
|
||
|
|
}
|
||
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||
|
|
id: string
|
||
|
|
name: string
|
||
|
|
code: string | null
|
||
|
|
}, ExtArgs["result"]["guild"]>
|
||
|
|
composites: {}
|
||
|
|
}
|
||
|
|
|
||
|
|
export type GuildGetPayload<S extends boolean | null | undefined | GuildDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$GuildPayload, S>
|
||
|
|
|
||
|
|
export type GuildCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
||
|
|
Omit<GuildFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
||
|
|
select?: GuildCountAggregateInputType | true
|
||
|
|
}
|
||
|
|
|
||
|
|
export interface GuildDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
||
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['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<T extends GuildFindUniqueArgs>(args: Prisma.SelectSubset<T, GuildFindUniqueArgs<ExtArgs>>): Prisma.Prisma__GuildClient<runtime.Types.Result.GetResult<Prisma.$GuildPayload<ExtArgs>, 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<T extends GuildFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, GuildFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__GuildClient<runtime.Types.Result.GetResult<Prisma.$GuildPayload<ExtArgs>, 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<T extends GuildFindFirstArgs>(args?: Prisma.SelectSubset<T, GuildFindFirstArgs<ExtArgs>>): Prisma.Prisma__GuildClient<runtime.Types.Result.GetResult<Prisma.$GuildPayload<ExtArgs>, 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<T extends GuildFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, GuildFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__GuildClient<runtime.Types.Result.GetResult<Prisma.$GuildPayload<ExtArgs>, 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<T extends GuildFindManyArgs>(args?: Prisma.SelectSubset<T, GuildFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$GuildPayload<ExtArgs>, 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<T extends GuildCreateArgs>(args: Prisma.SelectSubset<T, GuildCreateArgs<ExtArgs>>): Prisma.Prisma__GuildClient<runtime.Types.Result.GetResult<Prisma.$GuildPayload<ExtArgs>, 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<T extends GuildCreateManyArgs>(args?: Prisma.SelectSubset<T, GuildCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 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<T extends GuildDeleteArgs>(args: Prisma.SelectSubset<T, GuildDeleteArgs<ExtArgs>>): Prisma.Prisma__GuildClient<runtime.Types.Result.GetResult<Prisma.$GuildPayload<ExtArgs>, 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<T extends GuildUpdateArgs>(args: Prisma.SelectSubset<T, GuildUpdateArgs<ExtArgs>>): Prisma.Prisma__GuildClient<runtime.Types.Result.GetResult<Prisma.$GuildPayload<ExtArgs>, 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<T extends GuildDeleteManyArgs>(args?: Prisma.SelectSubset<T, GuildDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 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<T extends GuildUpdateManyArgs>(args: Prisma.SelectSubset<T, GuildUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 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<T extends GuildUpsertArgs>(args: Prisma.SelectSubset<T, GuildUpsertArgs<ExtArgs>>): Prisma.Prisma__GuildClient<runtime.Types.Result.GetResult<Prisma.$GuildPayload<ExtArgs>, 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<T extends GuildCountArgs>(
|
||
|
|
args?: Prisma.Subset<T, GuildCountArgs>,
|
||
|
|
): Prisma.PrismaPromise<
|
||
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
||
|
|
? T['select'] extends true
|
||
|
|
? number
|
||
|
|
: Prisma.GetScalarType<T['select'], GuildCountAggregateOutputType>
|
||
|
|
: 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<T extends GuildAggregateArgs>(args: Prisma.Subset<T, GuildAggregateArgs>): Prisma.PrismaPromise<GetGuildAggregateType<T>>
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 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<T>>,
|
||
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
||
|
|
>,
|
||
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
||
|
|
? { orderBy: GuildGroupByArgs['orderBy'] }
|
||
|
|
: { orderBy?: GuildGroupByArgs['orderBy'] },
|
||
|
|
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
|
||
|
|
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
|
||
|
|
ByValid extends Prisma.Has<ByFields, OrderFields>,
|
||
|
|
HavingFields extends Prisma.GetHavingFields<T['having']>,
|
||
|
|
HavingValid extends Prisma.Has<ByFields, HavingFields>,
|
||
|
|
ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
|
||
|
|
InputErrors extends ByEmpty extends Prisma.True
|
||
|
|
? `Error: "by" must not be empty.`
|
||
|
|
: HavingValid extends Prisma.False
|
||
|
|
? {
|
||
|
|
[P in HavingFields]: P extends ByFields
|
||
|
|
? never
|
||
|
|
: P extends string
|
||
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
||
|
|
: [
|
||
|
|
Error,
|
||
|
|
'Field ',
|
||
|
|
P,
|
||
|
|
` in "having" needs to be provided in "by"`,
|
||
|
|
]
|
||
|
|
}[HavingFields]
|
||
|
|
: 'take' extends Prisma.Keys<T>
|
||
|
|
? 'orderBy' extends Prisma.Keys<T>
|
||
|
|
? ByValid extends Prisma.True
|
||
|
|
? {}
|
||
|
|
: {
|
||
|
|
[P in OrderFields]: P extends ByFields
|
||
|
|
? never
|
||
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
||
|
|
}[OrderFields]
|
||
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
||
|
|
: 'skip' extends Prisma.Keys<T>
|
||
|
|
? 'orderBy' extends Prisma.Keys<T>
|
||
|
|
? ByValid extends Prisma.True
|
||
|
|
? {}
|
||
|
|
: {
|
||
|
|
[P in OrderFields]: P extends ByFields
|
||
|
|
? never
|
||
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
||
|
|
}[OrderFields]
|
||
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
||
|
|
: ByValid extends Prisma.True
|
||
|
|
? {}
|
||
|
|
: {
|
||
|
|
[P in OrderFields]: P extends ByFields
|
||
|
|
? never
|
||
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
||
|
|
}[OrderFields]
|
||
|
|
>(args: Prisma.SubsetIntersection<T, GuildGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetGuildGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
||
|
|
/**
|
||
|
|
* 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<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
||
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
||
|
|
business_activities<T extends Prisma.Guild$business_activitiesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Guild$business_activitiesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$BusinessActivityPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||
|
|
goods<T extends Prisma.Guild$goodsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Guild$goodsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$GoodPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||
|
|
good_categories<T extends Prisma.Guild$good_categoriesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Guild$good_categoriesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$GoodCategoryPayload<ExtArgs>, 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<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
|
||
|
|
/**
|
||
|
|
* Attaches a callback for only the rejection of the Promise.
|
||
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
||
|
|
* @returns A Promise for the completion of the callback.
|
||
|
|
*/
|
||
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
||
|
|
/**
|
||
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
||
|
|
* resolved value cannot be modified from the callback.
|
||
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
||
|
|
* @returns A Promise for the completion of the callback.
|
||
|
|
*/
|
||
|
|
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Fields of the Guild model
|
||
|
|
*/
|
||
|
|
export interface GuildFieldRefs {
|
||
|
|
readonly id: Prisma.FieldRef<"Guild", 'String'>
|
||
|
|
readonly name: Prisma.FieldRef<"Guild", 'String'>
|
||
|
|
readonly code: Prisma.FieldRef<"Guild", 'String'>
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
// Custom InputTypes
|
||
|
|
/**
|
||
|
|
* Guild findUnique
|
||
|
|
*/
|
||
|
|
export type GuildFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||
|
|
/**
|
||
|
|
* Select specific fields to fetch from the Guild
|
||
|
|
*/
|
||
|
|
select?: Prisma.GuildSelect<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Omit specific fields from the Guild
|
||
|
|
*/
|
||
|
|
omit?: Prisma.GuildOmit<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Choose, which related nodes to fetch as well
|
||
|
|
*/
|
||
|
|
include?: Prisma.GuildInclude<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Filter, which Guild to fetch.
|
||
|
|
*/
|
||
|
|
where: Prisma.GuildWhereUniqueInput
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Guild findUniqueOrThrow
|
||
|
|
*/
|
||
|
|
export type GuildFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||
|
|
/**
|
||
|
|
* Select specific fields to fetch from the Guild
|
||
|
|
*/
|
||
|
|
select?: Prisma.GuildSelect<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Omit specific fields from the Guild
|
||
|
|
*/
|
||
|
|
omit?: Prisma.GuildOmit<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Choose, which related nodes to fetch as well
|
||
|
|
*/
|
||
|
|
include?: Prisma.GuildInclude<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Filter, which Guild to fetch.
|
||
|
|
*/
|
||
|
|
where: Prisma.GuildWhereUniqueInput
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Guild findFirst
|
||
|
|
*/
|
||
|
|
export type GuildFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||
|
|
/**
|
||
|
|
* Select specific fields to fetch from the Guild
|
||
|
|
*/
|
||
|
|
select?: Prisma.GuildSelect<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Omit specific fields from the Guild
|
||
|
|
*/
|
||
|
|
omit?: Prisma.GuildOmit<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Choose, which related nodes to fetch as well
|
||
|
|
*/
|
||
|
|
include?: Prisma.GuildInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||
|
|
/**
|
||
|
|
* Select specific fields to fetch from the Guild
|
||
|
|
*/
|
||
|
|
select?: Prisma.GuildSelect<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Omit specific fields from the Guild
|
||
|
|
*/
|
||
|
|
omit?: Prisma.GuildOmit<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Choose, which related nodes to fetch as well
|
||
|
|
*/
|
||
|
|
include?: Prisma.GuildInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||
|
|
/**
|
||
|
|
* Select specific fields to fetch from the Guild
|
||
|
|
*/
|
||
|
|
select?: Prisma.GuildSelect<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Omit specific fields from the Guild
|
||
|
|
*/
|
||
|
|
omit?: Prisma.GuildOmit<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Choose, which related nodes to fetch as well
|
||
|
|
*/
|
||
|
|
include?: Prisma.GuildInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||
|
|
/**
|
||
|
|
* Select specific fields to fetch from the Guild
|
||
|
|
*/
|
||
|
|
select?: Prisma.GuildSelect<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Omit specific fields from the Guild
|
||
|
|
*/
|
||
|
|
omit?: Prisma.GuildOmit<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Choose, which related nodes to fetch as well
|
||
|
|
*/
|
||
|
|
include?: Prisma.GuildInclude<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* The data needed to create a Guild.
|
||
|
|
*/
|
||
|
|
data: Prisma.XOR<Prisma.GuildCreateInput, Prisma.GuildUncheckedCreateInput>
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Guild createMany
|
||
|
|
*/
|
||
|
|
export type GuildCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||
|
|
/**
|
||
|
|
* The data used to create many Guilds.
|
||
|
|
*/
|
||
|
|
data: Prisma.GuildCreateManyInput | Prisma.GuildCreateManyInput[]
|
||
|
|
skipDuplicates?: boolean
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Guild update
|
||
|
|
*/
|
||
|
|
export type GuildUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||
|
|
/**
|
||
|
|
* Select specific fields to fetch from the Guild
|
||
|
|
*/
|
||
|
|
select?: Prisma.GuildSelect<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Omit specific fields from the Guild
|
||
|
|
*/
|
||
|
|
omit?: Prisma.GuildOmit<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Choose, which related nodes to fetch as well
|
||
|
|
*/
|
||
|
|
include?: Prisma.GuildInclude<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* The data needed to update a Guild.
|
||
|
|
*/
|
||
|
|
data: Prisma.XOR<Prisma.GuildUpdateInput, Prisma.GuildUncheckedUpdateInput>
|
||
|
|
/**
|
||
|
|
* Choose, which Guild to update.
|
||
|
|
*/
|
||
|
|
where: Prisma.GuildWhereUniqueInput
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Guild updateMany
|
||
|
|
*/
|
||
|
|
export type GuildUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||
|
|
/**
|
||
|
|
* The data used to update Guilds.
|
||
|
|
*/
|
||
|
|
data: Prisma.XOR<Prisma.GuildUpdateManyMutationInput, Prisma.GuildUncheckedUpdateManyInput>
|
||
|
|
/**
|
||
|
|
* Filter which Guilds to update
|
||
|
|
*/
|
||
|
|
where?: Prisma.GuildWhereInput
|
||
|
|
/**
|
||
|
|
* Limit how many Guilds to update.
|
||
|
|
*/
|
||
|
|
limit?: number
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Guild upsert
|
||
|
|
*/
|
||
|
|
export type GuildUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||
|
|
/**
|
||
|
|
* Select specific fields to fetch from the Guild
|
||
|
|
*/
|
||
|
|
select?: Prisma.GuildSelect<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Omit specific fields from the Guild
|
||
|
|
*/
|
||
|
|
omit?: Prisma.GuildOmit<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Choose, which related nodes to fetch as well
|
||
|
|
*/
|
||
|
|
include?: Prisma.GuildInclude<ExtArgs> | 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<Prisma.GuildCreateInput, Prisma.GuildUncheckedCreateInput>
|
||
|
|
/**
|
||
|
|
* In case the Guild was found with the provided `where` argument, update it with this data.
|
||
|
|
*/
|
||
|
|
update: Prisma.XOR<Prisma.GuildUpdateInput, Prisma.GuildUncheckedUpdateInput>
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Guild delete
|
||
|
|
*/
|
||
|
|
export type GuildDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||
|
|
/**
|
||
|
|
* Select specific fields to fetch from the Guild
|
||
|
|
*/
|
||
|
|
select?: Prisma.GuildSelect<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Omit specific fields from the Guild
|
||
|
|
*/
|
||
|
|
omit?: Prisma.GuildOmit<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Choose, which related nodes to fetch as well
|
||
|
|
*/
|
||
|
|
include?: Prisma.GuildInclude<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Filter which Guild to delete.
|
||
|
|
*/
|
||
|
|
where: Prisma.GuildWhereUniqueInput
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Guild deleteMany
|
||
|
|
*/
|
||
|
|
export type GuildDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||
|
|
/**
|
||
|
|
* Filter which Guilds to delete
|
||
|
|
*/
|
||
|
|
where?: Prisma.GuildWhereInput
|
||
|
|
/**
|
||
|
|
* Limit how many Guilds to delete.
|
||
|
|
*/
|
||
|
|
limit?: number
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Guild.business_activities
|
||
|
|
*/
|
||
|
|
export type Guild$business_activitiesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||
|
|
/**
|
||
|
|
* Select specific fields to fetch from the BusinessActivity
|
||
|
|
*/
|
||
|
|
select?: Prisma.BusinessActivitySelect<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Omit specific fields from the BusinessActivity
|
||
|
|
*/
|
||
|
|
omit?: Prisma.BusinessActivityOmit<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Choose, which related nodes to fetch as well
|
||
|
|
*/
|
||
|
|
include?: Prisma.BusinessActivityInclude<ExtArgs> | null
|
||
|
|
where?: Prisma.BusinessActivityWhereInput
|
||
|
|
orderBy?: Prisma.BusinessActivityOrderByWithRelationInput | Prisma.BusinessActivityOrderByWithRelationInput[]
|
||
|
|
cursor?: Prisma.BusinessActivityWhereUniqueInput
|
||
|
|
take?: number
|
||
|
|
skip?: number
|
||
|
|
distinct?: Prisma.BusinessActivityScalarFieldEnum | Prisma.BusinessActivityScalarFieldEnum[]
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Guild.goods
|
||
|
|
*/
|
||
|
|
export type Guild$goodsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||
|
|
/**
|
||
|
|
* Select specific fields to fetch from the Good
|
||
|
|
*/
|
||
|
|
select?: Prisma.GoodSelect<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Omit specific fields from the Good
|
||
|
|
*/
|
||
|
|
omit?: Prisma.GoodOmit<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Choose, which related nodes to fetch as well
|
||
|
|
*/
|
||
|
|
include?: Prisma.GoodInclude<ExtArgs> | null
|
||
|
|
where?: Prisma.GoodWhereInput
|
||
|
|
orderBy?: Prisma.GoodOrderByWithRelationInput | Prisma.GoodOrderByWithRelationInput[]
|
||
|
|
cursor?: Prisma.GoodWhereUniqueInput
|
||
|
|
take?: number
|
||
|
|
skip?: number
|
||
|
|
distinct?: Prisma.GoodScalarFieldEnum | Prisma.GoodScalarFieldEnum[]
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Guild.good_categories
|
||
|
|
*/
|
||
|
|
export type Guild$good_categoriesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||
|
|
/**
|
||
|
|
* Select specific fields to fetch from the GoodCategory
|
||
|
|
*/
|
||
|
|
select?: Prisma.GoodCategorySelect<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Omit specific fields from the GoodCategory
|
||
|
|
*/
|
||
|
|
omit?: Prisma.GoodCategoryOmit<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Choose, which related nodes to fetch as well
|
||
|
|
*/
|
||
|
|
include?: Prisma.GoodCategoryInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||
|
|
/**
|
||
|
|
* Select specific fields to fetch from the Guild
|
||
|
|
*/
|
||
|
|
select?: Prisma.GuildSelect<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Omit specific fields from the Guild
|
||
|
|
*/
|
||
|
|
omit?: Prisma.GuildOmit<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Choose, which related nodes to fetch as well
|
||
|
|
*/
|
||
|
|
include?: Prisma.GuildInclude<ExtArgs> | null
|
||
|
|
}
|