/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `Good` 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 Good * */ export type GoodModel = runtime.Types.Result.DefaultSelection export type AggregateGood = { _count: GoodCountAggregateOutputType | null _avg: GoodAvgAggregateOutputType | null _sum: GoodSumAggregateOutputType | null _min: GoodMinAggregateOutputType | null _max: GoodMaxAggregateOutputType | null } export type GoodAvgAggregateOutputType = { base_sale_price: runtime.Decimal | null } export type GoodSumAggregateOutputType = { base_sale_price: runtime.Decimal | null } export type GoodMinAggregateOutputType = { id: string | null name: string | null is_default_guild_good: boolean | null sku: string | null unit_type: $Enums.UnitType | null pricing_model: $Enums.GoodPricingModel | null description: string | null local_sku: string | null barcode: string | null base_sale_price: runtime.Decimal | null created_at: Date | null updated_at: Date | null deleted_at: Date | null complex_id: string | null category_id: string | null } export type GoodMaxAggregateOutputType = { id: string | null name: string | null is_default_guild_good: boolean | null sku: string | null unit_type: $Enums.UnitType | null pricing_model: $Enums.GoodPricingModel | null description: string | null local_sku: string | null barcode: string | null base_sale_price: runtime.Decimal | null created_at: Date | null updated_at: Date | null deleted_at: Date | null complex_id: string | null category_id: string | null } export type GoodCountAggregateOutputType = { id: number name: number is_default_guild_good: number sku: number unit_type: number pricing_model: number description: number local_sku: number barcode: number base_sale_price: number created_at: number updated_at: number deleted_at: number complex_id: number category_id: number _all: number } export type GoodAvgAggregateInputType = { base_sale_price?: true } export type GoodSumAggregateInputType = { base_sale_price?: true } export type GoodMinAggregateInputType = { id?: true name?: true is_default_guild_good?: true sku?: true unit_type?: true pricing_model?: true description?: true local_sku?: true barcode?: true base_sale_price?: true created_at?: true updated_at?: true deleted_at?: true complex_id?: true category_id?: true } export type GoodMaxAggregateInputType = { id?: true name?: true is_default_guild_good?: true sku?: true unit_type?: true pricing_model?: true description?: true local_sku?: true barcode?: true base_sale_price?: true created_at?: true updated_at?: true deleted_at?: true complex_id?: true category_id?: true } export type GoodCountAggregateInputType = { id?: true name?: true is_default_guild_good?: true sku?: true unit_type?: true pricing_model?: true description?: true local_sku?: true barcode?: true base_sale_price?: true created_at?: true updated_at?: true deleted_at?: true complex_id?: true category_id?: true _all?: true } export type GoodAggregateArgs = { /** * Filter which Good to aggregate. */ where?: Prisma.GoodWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Goods to fetch. */ orderBy?: Prisma.GoodOrderByWithRelationInput | Prisma.GoodOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.GoodWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Goods 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` Goods. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Goods **/ _count?: true | GoodCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: GoodAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: GoodSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: GoodMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: GoodMaxAggregateInputType } export type GetGoodAggregateType = { [P in keyof T & keyof AggregateGood]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type GoodGroupByArgs = { where?: Prisma.GoodWhereInput orderBy?: Prisma.GoodOrderByWithAggregationInput | Prisma.GoodOrderByWithAggregationInput[] by: Prisma.GoodScalarFieldEnum[] | Prisma.GoodScalarFieldEnum having?: Prisma.GoodScalarWhereWithAggregatesInput take?: number skip?: number _count?: GoodCountAggregateInputType | true _avg?: GoodAvgAggregateInputType _sum?: GoodSumAggregateInputType _min?: GoodMinAggregateInputType _max?: GoodMaxAggregateInputType } export type GoodGroupByOutputType = { id: string name: string is_default_guild_good: boolean sku: string unit_type: $Enums.UnitType pricing_model: $Enums.GoodPricingModel description: string | null local_sku: string | null barcode: string | null base_sale_price: runtime.Decimal | null created_at: Date updated_at: Date deleted_at: Date | null complex_id: string | null category_id: string | null _count: GoodCountAggregateOutputType | null _avg: GoodAvgAggregateOutputType | null _sum: GoodSumAggregateOutputType | null _min: GoodMinAggregateOutputType | null _max: GoodMaxAggregateOutputType | null } type GetGoodGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof GoodGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type GoodWhereInput = { AND?: Prisma.GoodWhereInput | Prisma.GoodWhereInput[] OR?: Prisma.GoodWhereInput[] NOT?: Prisma.GoodWhereInput | Prisma.GoodWhereInput[] id?: Prisma.StringFilter<"Good"> | string name?: Prisma.StringFilter<"Good"> | string is_default_guild_good?: Prisma.BoolFilter<"Good"> | boolean sku?: Prisma.StringFilter<"Good"> | string unit_type?: Prisma.EnumUnitTypeFilter<"Good"> | $Enums.UnitType pricing_model?: Prisma.EnumGoodPricingModelFilter<"Good"> | $Enums.GoodPricingModel description?: Prisma.StringNullableFilter<"Good"> | string | null local_sku?: Prisma.StringNullableFilter<"Good"> | string | null barcode?: Prisma.StringNullableFilter<"Good"> | string | null base_sale_price?: Prisma.DecimalNullableFilter<"Good"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null created_at?: Prisma.DateTimeFilter<"Good"> | Date | string updated_at?: Prisma.DateTimeFilter<"Good"> | Date | string deleted_at?: Prisma.DateTimeNullableFilter<"Good"> | Date | string | null complex_id?: Prisma.StringNullableFilter<"Good"> | string | null category_id?: Prisma.StringNullableFilter<"Good"> | string | null category?: Prisma.XOR | null complex?: Prisma.XOR | null sales_invoice_items?: Prisma.SalesInvoiceItemListRelationFilter } export type GoodOrderByWithRelationInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder is_default_guild_good?: Prisma.SortOrder sku?: Prisma.SortOrder unit_type?: Prisma.SortOrder pricing_model?: Prisma.SortOrder description?: Prisma.SortOrderInput | Prisma.SortOrder local_sku?: Prisma.SortOrderInput | Prisma.SortOrder barcode?: Prisma.SortOrderInput | Prisma.SortOrder base_sale_price?: Prisma.SortOrderInput | Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder deleted_at?: Prisma.SortOrderInput | Prisma.SortOrder complex_id?: Prisma.SortOrderInput | Prisma.SortOrder category_id?: Prisma.SortOrderInput | Prisma.SortOrder category?: Prisma.GoodCategoryOrderByWithRelationInput complex?: Prisma.ComplexOrderByWithRelationInput sales_invoice_items?: Prisma.SalesInvoiceItemOrderByRelationAggregateInput _relevance?: Prisma.GoodOrderByRelevanceInput } export type GoodWhereUniqueInput = Prisma.AtLeast<{ id?: string local_sku?: string barcode?: string AND?: Prisma.GoodWhereInput | Prisma.GoodWhereInput[] OR?: Prisma.GoodWhereInput[] NOT?: Prisma.GoodWhereInput | Prisma.GoodWhereInput[] name?: Prisma.StringFilter<"Good"> | string is_default_guild_good?: Prisma.BoolFilter<"Good"> | boolean sku?: Prisma.StringFilter<"Good"> | string unit_type?: Prisma.EnumUnitTypeFilter<"Good"> | $Enums.UnitType pricing_model?: Prisma.EnumGoodPricingModelFilter<"Good"> | $Enums.GoodPricingModel description?: Prisma.StringNullableFilter<"Good"> | string | null base_sale_price?: Prisma.DecimalNullableFilter<"Good"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null created_at?: Prisma.DateTimeFilter<"Good"> | Date | string updated_at?: Prisma.DateTimeFilter<"Good"> | Date | string deleted_at?: Prisma.DateTimeNullableFilter<"Good"> | Date | string | null complex_id?: Prisma.StringNullableFilter<"Good"> | string | null category_id?: Prisma.StringNullableFilter<"Good"> | string | null category?: Prisma.XOR | null complex?: Prisma.XOR | null sales_invoice_items?: Prisma.SalesInvoiceItemListRelationFilter }, "id" | "local_sku" | "barcode"> export type GoodOrderByWithAggregationInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder is_default_guild_good?: Prisma.SortOrder sku?: Prisma.SortOrder unit_type?: Prisma.SortOrder pricing_model?: Prisma.SortOrder description?: Prisma.SortOrderInput | Prisma.SortOrder local_sku?: Prisma.SortOrderInput | Prisma.SortOrder barcode?: Prisma.SortOrderInput | Prisma.SortOrder base_sale_price?: Prisma.SortOrderInput | Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder deleted_at?: Prisma.SortOrderInput | Prisma.SortOrder complex_id?: Prisma.SortOrderInput | Prisma.SortOrder category_id?: Prisma.SortOrderInput | Prisma.SortOrder _count?: Prisma.GoodCountOrderByAggregateInput _avg?: Prisma.GoodAvgOrderByAggregateInput _max?: Prisma.GoodMaxOrderByAggregateInput _min?: Prisma.GoodMinOrderByAggregateInput _sum?: Prisma.GoodSumOrderByAggregateInput } export type GoodScalarWhereWithAggregatesInput = { AND?: Prisma.GoodScalarWhereWithAggregatesInput | Prisma.GoodScalarWhereWithAggregatesInput[] OR?: Prisma.GoodScalarWhereWithAggregatesInput[] NOT?: Prisma.GoodScalarWhereWithAggregatesInput | Prisma.GoodScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"Good"> | string name?: Prisma.StringWithAggregatesFilter<"Good"> | string is_default_guild_good?: Prisma.BoolWithAggregatesFilter<"Good"> | boolean sku?: Prisma.StringWithAggregatesFilter<"Good"> | string unit_type?: Prisma.EnumUnitTypeWithAggregatesFilter<"Good"> | $Enums.UnitType pricing_model?: Prisma.EnumGoodPricingModelWithAggregatesFilter<"Good"> | $Enums.GoodPricingModel description?: Prisma.StringNullableWithAggregatesFilter<"Good"> | string | null local_sku?: Prisma.StringNullableWithAggregatesFilter<"Good"> | string | null barcode?: Prisma.StringNullableWithAggregatesFilter<"Good"> | string | null base_sale_price?: Prisma.DecimalNullableWithAggregatesFilter<"Good"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null created_at?: Prisma.DateTimeWithAggregatesFilter<"Good"> | Date | string updated_at?: Prisma.DateTimeWithAggregatesFilter<"Good"> | Date | string deleted_at?: Prisma.DateTimeNullableWithAggregatesFilter<"Good"> | Date | string | null complex_id?: Prisma.StringNullableWithAggregatesFilter<"Good"> | string | null category_id?: Prisma.StringNullableWithAggregatesFilter<"Good"> | string | null } export type GoodCreateInput = { id?: string name: string is_default_guild_good?: boolean sku: string unit_type: $Enums.UnitType pricing_model: $Enums.GoodPricingModel description?: string | null local_sku?: string | null barcode?: string | null base_sale_price?: runtime.Decimal | runtime.DecimalJsLike | number | string | null created_at?: Date | string updated_at?: Date | string deleted_at?: Date | string | null category?: Prisma.GoodCategoryCreateNestedOneWithoutGoodsInput complex?: Prisma.ComplexCreateNestedOneWithoutGoodsInput sales_invoice_items?: Prisma.SalesInvoiceItemCreateNestedManyWithoutGoodInput } export type GoodUncheckedCreateInput = { id?: string name: string is_default_guild_good?: boolean sku: string unit_type: $Enums.UnitType pricing_model: $Enums.GoodPricingModel description?: string | null local_sku?: string | null barcode?: string | null base_sale_price?: runtime.Decimal | runtime.DecimalJsLike | number | string | null created_at?: Date | string updated_at?: Date | string deleted_at?: Date | string | null complex_id?: string | null category_id?: string | null sales_invoice_items?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutGoodInput } export type GoodUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string is_default_guild_good?: Prisma.BoolFieldUpdateOperationsInput | boolean sku?: Prisma.StringFieldUpdateOperationsInput | string unit_type?: Prisma.EnumUnitTypeFieldUpdateOperationsInput | $Enums.UnitType pricing_model?: Prisma.EnumGoodPricingModelFieldUpdateOperationsInput | $Enums.GoodPricingModel description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null local_sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null barcode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null base_sale_price?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null category?: Prisma.GoodCategoryUpdateOneWithoutGoodsNestedInput complex?: Prisma.ComplexUpdateOneWithoutGoodsNestedInput sales_invoice_items?: Prisma.SalesInvoiceItemUpdateManyWithoutGoodNestedInput } export type GoodUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string is_default_guild_good?: Prisma.BoolFieldUpdateOperationsInput | boolean sku?: Prisma.StringFieldUpdateOperationsInput | string unit_type?: Prisma.EnumUnitTypeFieldUpdateOperationsInput | $Enums.UnitType pricing_model?: Prisma.EnumGoodPricingModelFieldUpdateOperationsInput | $Enums.GoodPricingModel description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null local_sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null barcode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null base_sale_price?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null complex_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null category_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null sales_invoice_items?: Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutGoodNestedInput } export type GoodCreateManyInput = { id?: string name: string is_default_guild_good?: boolean sku: string unit_type: $Enums.UnitType pricing_model: $Enums.GoodPricingModel description?: string | null local_sku?: string | null barcode?: string | null base_sale_price?: runtime.Decimal | runtime.DecimalJsLike | number | string | null created_at?: Date | string updated_at?: Date | string deleted_at?: Date | string | null complex_id?: string | null category_id?: string | null } export type GoodUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string is_default_guild_good?: Prisma.BoolFieldUpdateOperationsInput | boolean sku?: Prisma.StringFieldUpdateOperationsInput | string unit_type?: Prisma.EnumUnitTypeFieldUpdateOperationsInput | $Enums.UnitType pricing_model?: Prisma.EnumGoodPricingModelFieldUpdateOperationsInput | $Enums.GoodPricingModel description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null local_sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null barcode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null base_sale_price?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type GoodUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string is_default_guild_good?: Prisma.BoolFieldUpdateOperationsInput | boolean sku?: Prisma.StringFieldUpdateOperationsInput | string unit_type?: Prisma.EnumUnitTypeFieldUpdateOperationsInput | $Enums.UnitType pricing_model?: Prisma.EnumGoodPricingModelFieldUpdateOperationsInput | $Enums.GoodPricingModel description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null local_sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null barcode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null base_sale_price?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null complex_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null category_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type GoodListRelationFilter = { every?: Prisma.GoodWhereInput some?: Prisma.GoodWhereInput none?: Prisma.GoodWhereInput } export type GoodOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type GoodOrderByRelevanceInput = { fields: Prisma.GoodOrderByRelevanceFieldEnum | Prisma.GoodOrderByRelevanceFieldEnum[] sort: Prisma.SortOrder search: string } export type GoodCountOrderByAggregateInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder is_default_guild_good?: Prisma.SortOrder sku?: Prisma.SortOrder unit_type?: Prisma.SortOrder pricing_model?: Prisma.SortOrder description?: Prisma.SortOrder local_sku?: Prisma.SortOrder barcode?: Prisma.SortOrder base_sale_price?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder deleted_at?: Prisma.SortOrder complex_id?: Prisma.SortOrder category_id?: Prisma.SortOrder } export type GoodAvgOrderByAggregateInput = { base_sale_price?: Prisma.SortOrder } export type GoodMaxOrderByAggregateInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder is_default_guild_good?: Prisma.SortOrder sku?: Prisma.SortOrder unit_type?: Prisma.SortOrder pricing_model?: Prisma.SortOrder description?: Prisma.SortOrder local_sku?: Prisma.SortOrder barcode?: Prisma.SortOrder base_sale_price?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder deleted_at?: Prisma.SortOrder complex_id?: Prisma.SortOrder category_id?: Prisma.SortOrder } export type GoodMinOrderByAggregateInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder is_default_guild_good?: Prisma.SortOrder sku?: Prisma.SortOrder unit_type?: Prisma.SortOrder pricing_model?: Prisma.SortOrder description?: Prisma.SortOrder local_sku?: Prisma.SortOrder barcode?: Prisma.SortOrder base_sale_price?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder deleted_at?: Prisma.SortOrder complex_id?: Prisma.SortOrder category_id?: Prisma.SortOrder } export type GoodSumOrderByAggregateInput = { base_sale_price?: Prisma.SortOrder } export type GoodNullableScalarRelationFilter = { is?: Prisma.GoodWhereInput | null isNot?: Prisma.GoodWhereInput | null } export type GoodCreateNestedManyWithoutComplexInput = { create?: Prisma.XOR | Prisma.GoodCreateWithoutComplexInput[] | Prisma.GoodUncheckedCreateWithoutComplexInput[] connectOrCreate?: Prisma.GoodCreateOrConnectWithoutComplexInput | Prisma.GoodCreateOrConnectWithoutComplexInput[] createMany?: Prisma.GoodCreateManyComplexInputEnvelope connect?: Prisma.GoodWhereUniqueInput | Prisma.GoodWhereUniqueInput[] } export type GoodUncheckedCreateNestedManyWithoutComplexInput = { create?: Prisma.XOR | Prisma.GoodCreateWithoutComplexInput[] | Prisma.GoodUncheckedCreateWithoutComplexInput[] connectOrCreate?: Prisma.GoodCreateOrConnectWithoutComplexInput | Prisma.GoodCreateOrConnectWithoutComplexInput[] createMany?: Prisma.GoodCreateManyComplexInputEnvelope connect?: Prisma.GoodWhereUniqueInput | Prisma.GoodWhereUniqueInput[] } export type GoodUpdateManyWithoutComplexNestedInput = { create?: Prisma.XOR | Prisma.GoodCreateWithoutComplexInput[] | Prisma.GoodUncheckedCreateWithoutComplexInput[] connectOrCreate?: Prisma.GoodCreateOrConnectWithoutComplexInput | Prisma.GoodCreateOrConnectWithoutComplexInput[] upsert?: Prisma.GoodUpsertWithWhereUniqueWithoutComplexInput | Prisma.GoodUpsertWithWhereUniqueWithoutComplexInput[] createMany?: Prisma.GoodCreateManyComplexInputEnvelope set?: Prisma.GoodWhereUniqueInput | Prisma.GoodWhereUniqueInput[] disconnect?: Prisma.GoodWhereUniqueInput | Prisma.GoodWhereUniqueInput[] delete?: Prisma.GoodWhereUniqueInput | Prisma.GoodWhereUniqueInput[] connect?: Prisma.GoodWhereUniqueInput | Prisma.GoodWhereUniqueInput[] update?: Prisma.GoodUpdateWithWhereUniqueWithoutComplexInput | Prisma.GoodUpdateWithWhereUniqueWithoutComplexInput[] updateMany?: Prisma.GoodUpdateManyWithWhereWithoutComplexInput | Prisma.GoodUpdateManyWithWhereWithoutComplexInput[] deleteMany?: Prisma.GoodScalarWhereInput | Prisma.GoodScalarWhereInput[] } export type GoodUncheckedUpdateManyWithoutComplexNestedInput = { create?: Prisma.XOR | Prisma.GoodCreateWithoutComplexInput[] | Prisma.GoodUncheckedCreateWithoutComplexInput[] connectOrCreate?: Prisma.GoodCreateOrConnectWithoutComplexInput | Prisma.GoodCreateOrConnectWithoutComplexInput[] upsert?: Prisma.GoodUpsertWithWhereUniqueWithoutComplexInput | Prisma.GoodUpsertWithWhereUniqueWithoutComplexInput[] createMany?: Prisma.GoodCreateManyComplexInputEnvelope set?: Prisma.GoodWhereUniqueInput | Prisma.GoodWhereUniqueInput[] disconnect?: Prisma.GoodWhereUniqueInput | Prisma.GoodWhereUniqueInput[] delete?: Prisma.GoodWhereUniqueInput | Prisma.GoodWhereUniqueInput[] connect?: Prisma.GoodWhereUniqueInput | Prisma.GoodWhereUniqueInput[] update?: Prisma.GoodUpdateWithWhereUniqueWithoutComplexInput | Prisma.GoodUpdateWithWhereUniqueWithoutComplexInput[] updateMany?: Prisma.GoodUpdateManyWithWhereWithoutComplexInput | Prisma.GoodUpdateManyWithWhereWithoutComplexInput[] deleteMany?: Prisma.GoodScalarWhereInput | Prisma.GoodScalarWhereInput[] } export type BoolFieldUpdateOperationsInput = { set?: boolean } export type EnumUnitTypeFieldUpdateOperationsInput = { set?: $Enums.UnitType } export type EnumGoodPricingModelFieldUpdateOperationsInput = { set?: $Enums.GoodPricingModel } export type NullableDecimalFieldUpdateOperationsInput = { set?: runtime.Decimal | runtime.DecimalJsLike | number | string | null increment?: runtime.Decimal | runtime.DecimalJsLike | number | string decrement?: runtime.Decimal | runtime.DecimalJsLike | number | string multiply?: runtime.Decimal | runtime.DecimalJsLike | number | string divide?: runtime.Decimal | runtime.DecimalJsLike | number | string } export type GoodCreateNestedManyWithoutCategoryInput = { create?: Prisma.XOR | Prisma.GoodCreateWithoutCategoryInput[] | Prisma.GoodUncheckedCreateWithoutCategoryInput[] connectOrCreate?: Prisma.GoodCreateOrConnectWithoutCategoryInput | Prisma.GoodCreateOrConnectWithoutCategoryInput[] createMany?: Prisma.GoodCreateManyCategoryInputEnvelope connect?: Prisma.GoodWhereUniqueInput | Prisma.GoodWhereUniqueInput[] } export type GoodUncheckedCreateNestedManyWithoutCategoryInput = { create?: Prisma.XOR | Prisma.GoodCreateWithoutCategoryInput[] | Prisma.GoodUncheckedCreateWithoutCategoryInput[] connectOrCreate?: Prisma.GoodCreateOrConnectWithoutCategoryInput | Prisma.GoodCreateOrConnectWithoutCategoryInput[] createMany?: Prisma.GoodCreateManyCategoryInputEnvelope connect?: Prisma.GoodWhereUniqueInput | Prisma.GoodWhereUniqueInput[] } export type GoodUpdateManyWithoutCategoryNestedInput = { create?: Prisma.XOR | Prisma.GoodCreateWithoutCategoryInput[] | Prisma.GoodUncheckedCreateWithoutCategoryInput[] connectOrCreate?: Prisma.GoodCreateOrConnectWithoutCategoryInput | Prisma.GoodCreateOrConnectWithoutCategoryInput[] upsert?: Prisma.GoodUpsertWithWhereUniqueWithoutCategoryInput | Prisma.GoodUpsertWithWhereUniqueWithoutCategoryInput[] createMany?: Prisma.GoodCreateManyCategoryInputEnvelope set?: Prisma.GoodWhereUniqueInput | Prisma.GoodWhereUniqueInput[] disconnect?: Prisma.GoodWhereUniqueInput | Prisma.GoodWhereUniqueInput[] delete?: Prisma.GoodWhereUniqueInput | Prisma.GoodWhereUniqueInput[] connect?: Prisma.GoodWhereUniqueInput | Prisma.GoodWhereUniqueInput[] update?: Prisma.GoodUpdateWithWhereUniqueWithoutCategoryInput | Prisma.GoodUpdateWithWhereUniqueWithoutCategoryInput[] updateMany?: Prisma.GoodUpdateManyWithWhereWithoutCategoryInput | Prisma.GoodUpdateManyWithWhereWithoutCategoryInput[] deleteMany?: Prisma.GoodScalarWhereInput | Prisma.GoodScalarWhereInput[] } export type GoodUncheckedUpdateManyWithoutCategoryNestedInput = { create?: Prisma.XOR | Prisma.GoodCreateWithoutCategoryInput[] | Prisma.GoodUncheckedCreateWithoutCategoryInput[] connectOrCreate?: Prisma.GoodCreateOrConnectWithoutCategoryInput | Prisma.GoodCreateOrConnectWithoutCategoryInput[] upsert?: Prisma.GoodUpsertWithWhereUniqueWithoutCategoryInput | Prisma.GoodUpsertWithWhereUniqueWithoutCategoryInput[] createMany?: Prisma.GoodCreateManyCategoryInputEnvelope set?: Prisma.GoodWhereUniqueInput | Prisma.GoodWhereUniqueInput[] disconnect?: Prisma.GoodWhereUniqueInput | Prisma.GoodWhereUniqueInput[] delete?: Prisma.GoodWhereUniqueInput | Prisma.GoodWhereUniqueInput[] connect?: Prisma.GoodWhereUniqueInput | Prisma.GoodWhereUniqueInput[] update?: Prisma.GoodUpdateWithWhereUniqueWithoutCategoryInput | Prisma.GoodUpdateWithWhereUniqueWithoutCategoryInput[] updateMany?: Prisma.GoodUpdateManyWithWhereWithoutCategoryInput | Prisma.GoodUpdateManyWithWhereWithoutCategoryInput[] deleteMany?: Prisma.GoodScalarWhereInput | Prisma.GoodScalarWhereInput[] } export type GoodCreateNestedOneWithoutSales_invoice_itemsInput = { create?: Prisma.XOR connectOrCreate?: Prisma.GoodCreateOrConnectWithoutSales_invoice_itemsInput connect?: Prisma.GoodWhereUniqueInput } export type GoodUpdateOneWithoutSales_invoice_itemsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.GoodCreateOrConnectWithoutSales_invoice_itemsInput upsert?: Prisma.GoodUpsertWithoutSales_invoice_itemsInput disconnect?: Prisma.GoodWhereInput | boolean delete?: Prisma.GoodWhereInput | boolean connect?: Prisma.GoodWhereUniqueInput update?: Prisma.XOR, Prisma.GoodUncheckedUpdateWithoutSales_invoice_itemsInput> } export type GoodCreateWithoutComplexInput = { id?: string name: string is_default_guild_good?: boolean sku: string unit_type: $Enums.UnitType pricing_model: $Enums.GoodPricingModel description?: string | null local_sku?: string | null barcode?: string | null base_sale_price?: runtime.Decimal | runtime.DecimalJsLike | number | string | null created_at?: Date | string updated_at?: Date | string deleted_at?: Date | string | null category?: Prisma.GoodCategoryCreateNestedOneWithoutGoodsInput sales_invoice_items?: Prisma.SalesInvoiceItemCreateNestedManyWithoutGoodInput } export type GoodUncheckedCreateWithoutComplexInput = { id?: string name: string is_default_guild_good?: boolean sku: string unit_type: $Enums.UnitType pricing_model: $Enums.GoodPricingModel description?: string | null local_sku?: string | null barcode?: string | null base_sale_price?: runtime.Decimal | runtime.DecimalJsLike | number | string | null created_at?: Date | string updated_at?: Date | string deleted_at?: Date | string | null category_id?: string | null sales_invoice_items?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutGoodInput } export type GoodCreateOrConnectWithoutComplexInput = { where: Prisma.GoodWhereUniqueInput create: Prisma.XOR } export type GoodCreateManyComplexInputEnvelope = { data: Prisma.GoodCreateManyComplexInput | Prisma.GoodCreateManyComplexInput[] skipDuplicates?: boolean } export type GoodUpsertWithWhereUniqueWithoutComplexInput = { where: Prisma.GoodWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type GoodUpdateWithWhereUniqueWithoutComplexInput = { where: Prisma.GoodWhereUniqueInput data: Prisma.XOR } export type GoodUpdateManyWithWhereWithoutComplexInput = { where: Prisma.GoodScalarWhereInput data: Prisma.XOR } export type GoodScalarWhereInput = { AND?: Prisma.GoodScalarWhereInput | Prisma.GoodScalarWhereInput[] OR?: Prisma.GoodScalarWhereInput[] NOT?: Prisma.GoodScalarWhereInput | Prisma.GoodScalarWhereInput[] id?: Prisma.StringFilter<"Good"> | string name?: Prisma.StringFilter<"Good"> | string is_default_guild_good?: Prisma.BoolFilter<"Good"> | boolean sku?: Prisma.StringFilter<"Good"> | string unit_type?: Prisma.EnumUnitTypeFilter<"Good"> | $Enums.UnitType pricing_model?: Prisma.EnumGoodPricingModelFilter<"Good"> | $Enums.GoodPricingModel description?: Prisma.StringNullableFilter<"Good"> | string | null local_sku?: Prisma.StringNullableFilter<"Good"> | string | null barcode?: Prisma.StringNullableFilter<"Good"> | string | null base_sale_price?: Prisma.DecimalNullableFilter<"Good"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null created_at?: Prisma.DateTimeFilter<"Good"> | Date | string updated_at?: Prisma.DateTimeFilter<"Good"> | Date | string deleted_at?: Prisma.DateTimeNullableFilter<"Good"> | Date | string | null complex_id?: Prisma.StringNullableFilter<"Good"> | string | null category_id?: Prisma.StringNullableFilter<"Good"> | string | null } export type GoodCreateWithoutCategoryInput = { id?: string name: string is_default_guild_good?: boolean sku: string unit_type: $Enums.UnitType pricing_model: $Enums.GoodPricingModel description?: string | null local_sku?: string | null barcode?: string | null base_sale_price?: runtime.Decimal | runtime.DecimalJsLike | number | string | null created_at?: Date | string updated_at?: Date | string deleted_at?: Date | string | null complex?: Prisma.ComplexCreateNestedOneWithoutGoodsInput sales_invoice_items?: Prisma.SalesInvoiceItemCreateNestedManyWithoutGoodInput } export type GoodUncheckedCreateWithoutCategoryInput = { id?: string name: string is_default_guild_good?: boolean sku: string unit_type: $Enums.UnitType pricing_model: $Enums.GoodPricingModel description?: string | null local_sku?: string | null barcode?: string | null base_sale_price?: runtime.Decimal | runtime.DecimalJsLike | number | string | null created_at?: Date | string updated_at?: Date | string deleted_at?: Date | string | null complex_id?: string | null sales_invoice_items?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutGoodInput } export type GoodCreateOrConnectWithoutCategoryInput = { where: Prisma.GoodWhereUniqueInput create: Prisma.XOR } export type GoodCreateManyCategoryInputEnvelope = { data: Prisma.GoodCreateManyCategoryInput | Prisma.GoodCreateManyCategoryInput[] skipDuplicates?: boolean } export type GoodUpsertWithWhereUniqueWithoutCategoryInput = { where: Prisma.GoodWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type GoodUpdateWithWhereUniqueWithoutCategoryInput = { where: Prisma.GoodWhereUniqueInput data: Prisma.XOR } export type GoodUpdateManyWithWhereWithoutCategoryInput = { where: Prisma.GoodScalarWhereInput data: Prisma.XOR } export type GoodCreateWithoutSales_invoice_itemsInput = { id?: string name: string is_default_guild_good?: boolean sku: string unit_type: $Enums.UnitType pricing_model: $Enums.GoodPricingModel description?: string | null local_sku?: string | null barcode?: string | null base_sale_price?: runtime.Decimal | runtime.DecimalJsLike | number | string | null created_at?: Date | string updated_at?: Date | string deleted_at?: Date | string | null category?: Prisma.GoodCategoryCreateNestedOneWithoutGoodsInput complex?: Prisma.ComplexCreateNestedOneWithoutGoodsInput } export type GoodUncheckedCreateWithoutSales_invoice_itemsInput = { id?: string name: string is_default_guild_good?: boolean sku: string unit_type: $Enums.UnitType pricing_model: $Enums.GoodPricingModel description?: string | null local_sku?: string | null barcode?: string | null base_sale_price?: runtime.Decimal | runtime.DecimalJsLike | number | string | null created_at?: Date | string updated_at?: Date | string deleted_at?: Date | string | null complex_id?: string | null category_id?: string | null } export type GoodCreateOrConnectWithoutSales_invoice_itemsInput = { where: Prisma.GoodWhereUniqueInput create: Prisma.XOR } export type GoodUpsertWithoutSales_invoice_itemsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.GoodWhereInput } export type GoodUpdateToOneWithWhereWithoutSales_invoice_itemsInput = { where?: Prisma.GoodWhereInput data: Prisma.XOR } export type GoodUpdateWithoutSales_invoice_itemsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string is_default_guild_good?: Prisma.BoolFieldUpdateOperationsInput | boolean sku?: Prisma.StringFieldUpdateOperationsInput | string unit_type?: Prisma.EnumUnitTypeFieldUpdateOperationsInput | $Enums.UnitType pricing_model?: Prisma.EnumGoodPricingModelFieldUpdateOperationsInput | $Enums.GoodPricingModel description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null local_sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null barcode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null base_sale_price?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null category?: Prisma.GoodCategoryUpdateOneWithoutGoodsNestedInput complex?: Prisma.ComplexUpdateOneWithoutGoodsNestedInput } export type GoodUncheckedUpdateWithoutSales_invoice_itemsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string is_default_guild_good?: Prisma.BoolFieldUpdateOperationsInput | boolean sku?: Prisma.StringFieldUpdateOperationsInput | string unit_type?: Prisma.EnumUnitTypeFieldUpdateOperationsInput | $Enums.UnitType pricing_model?: Prisma.EnumGoodPricingModelFieldUpdateOperationsInput | $Enums.GoodPricingModel description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null local_sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null barcode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null base_sale_price?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null complex_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null category_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type GoodCreateManyComplexInput = { id?: string name: string is_default_guild_good?: boolean sku: string unit_type: $Enums.UnitType pricing_model: $Enums.GoodPricingModel description?: string | null local_sku?: string | null barcode?: string | null base_sale_price?: runtime.Decimal | runtime.DecimalJsLike | number | string | null created_at?: Date | string updated_at?: Date | string deleted_at?: Date | string | null category_id?: string | null } export type GoodUpdateWithoutComplexInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string is_default_guild_good?: Prisma.BoolFieldUpdateOperationsInput | boolean sku?: Prisma.StringFieldUpdateOperationsInput | string unit_type?: Prisma.EnumUnitTypeFieldUpdateOperationsInput | $Enums.UnitType pricing_model?: Prisma.EnumGoodPricingModelFieldUpdateOperationsInput | $Enums.GoodPricingModel description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null local_sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null barcode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null base_sale_price?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null category?: Prisma.GoodCategoryUpdateOneWithoutGoodsNestedInput sales_invoice_items?: Prisma.SalesInvoiceItemUpdateManyWithoutGoodNestedInput } export type GoodUncheckedUpdateWithoutComplexInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string is_default_guild_good?: Prisma.BoolFieldUpdateOperationsInput | boolean sku?: Prisma.StringFieldUpdateOperationsInput | string unit_type?: Prisma.EnumUnitTypeFieldUpdateOperationsInput | $Enums.UnitType pricing_model?: Prisma.EnumGoodPricingModelFieldUpdateOperationsInput | $Enums.GoodPricingModel description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null local_sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null barcode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null base_sale_price?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null category_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null sales_invoice_items?: Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutGoodNestedInput } export type GoodUncheckedUpdateManyWithoutComplexInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string is_default_guild_good?: Prisma.BoolFieldUpdateOperationsInput | boolean sku?: Prisma.StringFieldUpdateOperationsInput | string unit_type?: Prisma.EnumUnitTypeFieldUpdateOperationsInput | $Enums.UnitType pricing_model?: Prisma.EnumGoodPricingModelFieldUpdateOperationsInput | $Enums.GoodPricingModel description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null local_sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null barcode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null base_sale_price?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null category_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type GoodCreateManyCategoryInput = { id?: string name: string is_default_guild_good?: boolean sku: string unit_type: $Enums.UnitType pricing_model: $Enums.GoodPricingModel description?: string | null local_sku?: string | null barcode?: string | null base_sale_price?: runtime.Decimal | runtime.DecimalJsLike | number | string | null created_at?: Date | string updated_at?: Date | string deleted_at?: Date | string | null complex_id?: string | null } export type GoodUpdateWithoutCategoryInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string is_default_guild_good?: Prisma.BoolFieldUpdateOperationsInput | boolean sku?: Prisma.StringFieldUpdateOperationsInput | string unit_type?: Prisma.EnumUnitTypeFieldUpdateOperationsInput | $Enums.UnitType pricing_model?: Prisma.EnumGoodPricingModelFieldUpdateOperationsInput | $Enums.GoodPricingModel description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null local_sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null barcode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null base_sale_price?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null complex?: Prisma.ComplexUpdateOneWithoutGoodsNestedInput sales_invoice_items?: Prisma.SalesInvoiceItemUpdateManyWithoutGoodNestedInput } export type GoodUncheckedUpdateWithoutCategoryInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string is_default_guild_good?: Prisma.BoolFieldUpdateOperationsInput | boolean sku?: Prisma.StringFieldUpdateOperationsInput | string unit_type?: Prisma.EnumUnitTypeFieldUpdateOperationsInput | $Enums.UnitType pricing_model?: Prisma.EnumGoodPricingModelFieldUpdateOperationsInput | $Enums.GoodPricingModel description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null local_sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null barcode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null base_sale_price?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null complex_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null sales_invoice_items?: Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutGoodNestedInput } export type GoodUncheckedUpdateManyWithoutCategoryInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string is_default_guild_good?: Prisma.BoolFieldUpdateOperationsInput | boolean sku?: Prisma.StringFieldUpdateOperationsInput | string unit_type?: Prisma.EnumUnitTypeFieldUpdateOperationsInput | $Enums.UnitType pricing_model?: Prisma.EnumGoodPricingModelFieldUpdateOperationsInput | $Enums.GoodPricingModel description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null local_sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null barcode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null base_sale_price?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null complex_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } /** * Count Type GoodCountOutputType */ export type GoodCountOutputType = { sales_invoice_items: number } export type GoodCountOutputTypeSelect = { sales_invoice_items?: boolean | GoodCountOutputTypeCountSales_invoice_itemsArgs } /** * GoodCountOutputType without action */ export type GoodCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the GoodCountOutputType */ select?: Prisma.GoodCountOutputTypeSelect | null } /** * GoodCountOutputType without action */ export type GoodCountOutputTypeCountSales_invoice_itemsArgs = { where?: Prisma.SalesInvoiceItemWhereInput } export type GoodSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean name?: boolean is_default_guild_good?: boolean sku?: boolean unit_type?: boolean pricing_model?: boolean description?: boolean local_sku?: boolean barcode?: boolean base_sale_price?: boolean created_at?: boolean updated_at?: boolean deleted_at?: boolean complex_id?: boolean category_id?: boolean category?: boolean | Prisma.Good$categoryArgs complex?: boolean | Prisma.Good$complexArgs sales_invoice_items?: boolean | Prisma.Good$sales_invoice_itemsArgs _count?: boolean | Prisma.GoodCountOutputTypeDefaultArgs }, ExtArgs["result"]["good"]> export type GoodSelectScalar = { id?: boolean name?: boolean is_default_guild_good?: boolean sku?: boolean unit_type?: boolean pricing_model?: boolean description?: boolean local_sku?: boolean barcode?: boolean base_sale_price?: boolean created_at?: boolean updated_at?: boolean deleted_at?: boolean complex_id?: boolean category_id?: boolean } export type GoodOmit = runtime.Types.Extensions.GetOmit<"id" | "name" | "is_default_guild_good" | "sku" | "unit_type" | "pricing_model" | "description" | "local_sku" | "barcode" | "base_sale_price" | "created_at" | "updated_at" | "deleted_at" | "complex_id" | "category_id", ExtArgs["result"]["good"]> export type GoodInclude = { category?: boolean | Prisma.Good$categoryArgs complex?: boolean | Prisma.Good$complexArgs sales_invoice_items?: boolean | Prisma.Good$sales_invoice_itemsArgs _count?: boolean | Prisma.GoodCountOutputTypeDefaultArgs } export type $GoodPayload = { name: "Good" objects: { category: Prisma.$GoodCategoryPayload | null complex: Prisma.$ComplexPayload | null sales_invoice_items: Prisma.$SalesInvoiceItemPayload[] } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string name: string is_default_guild_good: boolean sku: string unit_type: $Enums.UnitType pricing_model: $Enums.GoodPricingModel description: string | null local_sku: string | null barcode: string | null base_sale_price: runtime.Decimal | null created_at: Date updated_at: Date deleted_at: Date | null complex_id: string | null category_id: string | null }, ExtArgs["result"]["good"]> composites: {} } export type GoodGetPayload = runtime.Types.Result.GetResult export type GoodCountArgs = Omit & { select?: GoodCountAggregateInputType | true } export interface GoodDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Good'], meta: { name: 'Good' } } /** * Find zero or one Good that matches the filter. * @param {GoodFindUniqueArgs} args - Arguments to find a Good * @example * // Get one Good * const good = await prisma.good.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__GoodClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Good that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {GoodFindUniqueOrThrowArgs} args - Arguments to find a Good * @example * // Get one Good * const good = await prisma.good.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__GoodClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Good 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 {GoodFindFirstArgs} args - Arguments to find a Good * @example * // Get one Good * const good = await prisma.good.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__GoodClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Good 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 {GoodFindFirstOrThrowArgs} args - Arguments to find a Good * @example * // Get one Good * const good = await prisma.good.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__GoodClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Goods 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 {GoodFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Goods * const goods = await prisma.good.findMany() * * // Get first 10 Goods * const goods = await prisma.good.findMany({ take: 10 }) * * // Only select the `id` * const goodWithIdOnly = await prisma.good.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Good. * @param {GoodCreateArgs} args - Arguments to create a Good. * @example * // Create one Good * const Good = await prisma.good.create({ * data: { * // ... data to create a Good * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__GoodClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Goods. * @param {GoodCreateManyArgs} args - Arguments to create many Goods. * @example * // Create many Goods * const good = await prisma.good.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Delete a Good. * @param {GoodDeleteArgs} args - Arguments to delete one Good. * @example * // Delete one Good * const Good = await prisma.good.delete({ * where: { * // ... filter to delete one Good * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__GoodClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Good. * @param {GoodUpdateArgs} args - Arguments to update one Good. * @example * // Update one Good * const good = await prisma.good.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__GoodClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Goods. * @param {GoodDeleteManyArgs} args - Arguments to filter Goods to delete. * @example * // Delete a few Goods * const { count } = await prisma.good.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Goods. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {GoodUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Goods * const good = await prisma.good.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create or update one Good. * @param {GoodUpsertArgs} args - Arguments to update or create a Good. * @example * // Update or create a Good * const good = await prisma.good.upsert({ * create: { * // ... data to create a Good * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Good we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__GoodClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Goods. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {GoodCountArgs} args - Arguments to filter Goods to count. * @example * // Count the number of Goods * const count = await prisma.good.count({ * where: { * // ... the filter for the Goods 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 Good. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {GoodAggregateArgs} 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 Good. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {GoodGroupByArgs} 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 GoodGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: GoodGroupByArgs['orderBy'] } : { orderBy?: GoodGroupByArgs['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 ? GetGoodGroupByPayload : Prisma.PrismaPromise /** * Fields of the Good model */ readonly fields: GoodFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Good. * 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__GoodClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" category = {}>(args?: Prisma.Subset>): Prisma.Prisma__GoodCategoryClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> complex = {}>(args?: Prisma.Subset>): Prisma.Prisma__ComplexClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> sales_invoice_items = {}>(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 Good model */ export interface GoodFieldRefs { readonly id: Prisma.FieldRef<"Good", 'String'> readonly name: Prisma.FieldRef<"Good", 'String'> readonly is_default_guild_good: Prisma.FieldRef<"Good", 'Boolean'> readonly sku: Prisma.FieldRef<"Good", 'String'> readonly unit_type: Prisma.FieldRef<"Good", 'UnitType'> readonly pricing_model: Prisma.FieldRef<"Good", 'GoodPricingModel'> readonly description: Prisma.FieldRef<"Good", 'String'> readonly local_sku: Prisma.FieldRef<"Good", 'String'> readonly barcode: Prisma.FieldRef<"Good", 'String'> readonly base_sale_price: Prisma.FieldRef<"Good", 'Decimal'> readonly created_at: Prisma.FieldRef<"Good", 'DateTime'> readonly updated_at: Prisma.FieldRef<"Good", 'DateTime'> readonly deleted_at: Prisma.FieldRef<"Good", 'DateTime'> readonly complex_id: Prisma.FieldRef<"Good", 'String'> readonly category_id: Prisma.FieldRef<"Good", 'String'> } // Custom InputTypes /** * Good findUnique */ export type GoodFindUniqueArgs = { /** * Select specific fields to fetch from the Good */ select?: Prisma.GoodSelect | null /** * Omit specific fields from the Good */ omit?: Prisma.GoodOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.GoodInclude | null /** * Filter, which Good to fetch. */ where: Prisma.GoodWhereUniqueInput } /** * Good findUniqueOrThrow */ export type GoodFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Good */ select?: Prisma.GoodSelect | null /** * Omit specific fields from the Good */ omit?: Prisma.GoodOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.GoodInclude | null /** * Filter, which Good to fetch. */ where: Prisma.GoodWhereUniqueInput } /** * Good findFirst */ export type GoodFindFirstArgs = { /** * Select specific fields to fetch from the Good */ select?: Prisma.GoodSelect | null /** * Omit specific fields from the Good */ omit?: Prisma.GoodOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.GoodInclude | null /** * Filter, which Good to fetch. */ where?: Prisma.GoodWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Goods to fetch. */ orderBy?: Prisma.GoodOrderByWithRelationInput | Prisma.GoodOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Goods. */ cursor?: Prisma.GoodWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Goods 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` Goods. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Goods. */ distinct?: Prisma.GoodScalarFieldEnum | Prisma.GoodScalarFieldEnum[] } /** * Good findFirstOrThrow */ export type GoodFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Good */ select?: Prisma.GoodSelect | null /** * Omit specific fields from the Good */ omit?: Prisma.GoodOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.GoodInclude | null /** * Filter, which Good to fetch. */ where?: Prisma.GoodWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Goods to fetch. */ orderBy?: Prisma.GoodOrderByWithRelationInput | Prisma.GoodOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Goods. */ cursor?: Prisma.GoodWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Goods 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` Goods. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Goods. */ distinct?: Prisma.GoodScalarFieldEnum | Prisma.GoodScalarFieldEnum[] } /** * Good findMany */ export type GoodFindManyArgs = { /** * Select specific fields to fetch from the Good */ select?: Prisma.GoodSelect | null /** * Omit specific fields from the Good */ omit?: Prisma.GoodOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.GoodInclude | null /** * Filter, which Goods to fetch. */ where?: Prisma.GoodWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Goods to fetch. */ orderBy?: Prisma.GoodOrderByWithRelationInput | Prisma.GoodOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Goods. */ cursor?: Prisma.GoodWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Goods 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` Goods. */ skip?: number distinct?: Prisma.GoodScalarFieldEnum | Prisma.GoodScalarFieldEnum[] } /** * Good create */ export type GoodCreateArgs = { /** * Select specific fields to fetch from the Good */ select?: Prisma.GoodSelect | null /** * Omit specific fields from the Good */ omit?: Prisma.GoodOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.GoodInclude | null /** * The data needed to create a Good. */ data: Prisma.XOR } /** * Good createMany */ export type GoodCreateManyArgs = { /** * The data used to create many Goods. */ data: Prisma.GoodCreateManyInput | Prisma.GoodCreateManyInput[] skipDuplicates?: boolean } /** * Good update */ export type GoodUpdateArgs = { /** * Select specific fields to fetch from the Good */ select?: Prisma.GoodSelect | null /** * Omit specific fields from the Good */ omit?: Prisma.GoodOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.GoodInclude | null /** * The data needed to update a Good. */ data: Prisma.XOR /** * Choose, which Good to update. */ where: Prisma.GoodWhereUniqueInput } /** * Good updateMany */ export type GoodUpdateManyArgs = { /** * The data used to update Goods. */ data: Prisma.XOR /** * Filter which Goods to update */ where?: Prisma.GoodWhereInput /** * Limit how many Goods to update. */ limit?: number } /** * Good upsert */ export type GoodUpsertArgs = { /** * Select specific fields to fetch from the Good */ select?: Prisma.GoodSelect | null /** * Omit specific fields from the Good */ omit?: Prisma.GoodOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.GoodInclude | null /** * The filter to search for the Good to update in case it exists. */ where: Prisma.GoodWhereUniqueInput /** * In case the Good found by the `where` argument doesn't exist, create a new Good with this data. */ create: Prisma.XOR /** * In case the Good was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * Good delete */ export type GoodDeleteArgs = { /** * Select specific fields to fetch from the Good */ select?: Prisma.GoodSelect | null /** * Omit specific fields from the Good */ omit?: Prisma.GoodOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.GoodInclude | null /** * Filter which Good to delete. */ where: Prisma.GoodWhereUniqueInput } /** * Good deleteMany */ export type GoodDeleteManyArgs = { /** * Filter which Goods to delete */ where?: Prisma.GoodWhereInput /** * Limit how many Goods to delete. */ limit?: number } /** * Good.category */ export type Good$categoryArgs = { /** * 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 } /** * Good.complex */ export type Good$complexArgs = { /** * Select specific fields to fetch from the Complex */ select?: Prisma.ComplexSelect | null /** * Omit specific fields from the Complex */ omit?: Prisma.ComplexOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.ComplexInclude | null where?: Prisma.ComplexWhereInput } /** * Good.sales_invoice_items */ export type Good$sales_invoice_itemsArgs = { /** * Select specific fields to fetch from the SalesInvoiceItem */ select?: Prisma.SalesInvoiceItemSelect | null /** * Omit specific fields from the SalesInvoiceItem */ omit?: Prisma.SalesInvoiceItemOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.SalesInvoiceItemInclude | null where?: Prisma.SalesInvoiceItemWhereInput orderBy?: Prisma.SalesInvoiceItemOrderByWithRelationInput | Prisma.SalesInvoiceItemOrderByWithRelationInput[] cursor?: Prisma.SalesInvoiceItemWhereUniqueInput take?: number skip?: number distinct?: Prisma.SalesInvoiceItemScalarFieldEnum | Prisma.SalesInvoiceItemScalarFieldEnum[] } /** * Good without action */ export type GoodDefaultArgs = { /** * Select specific fields to fetch from the Good */ select?: Prisma.GoodSelect | null /** * Omit specific fields from the Good */ omit?: Prisma.GoodOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.GoodInclude | null }