2026-02-04 13:49:07 +03:30
|
|
|
|
|
|
|
|
/* !!! 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<Prisma.$GoodPayload>
|
|
|
|
|
|
|
|
|
|
export type AggregateGood = {
|
|
|
|
|
_count: GoodCountAggregateOutputType | null
|
|
|
|
|
_avg: GoodAvgAggregateOutputType | null
|
|
|
|
|
_sum: GoodSumAggregateOutputType | null
|
|
|
|
|
_min: GoodMinAggregateOutputType | null
|
|
|
|
|
_max: GoodMaxAggregateOutputType | null
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type GoodAvgAggregateOutputType = {
|
2026-02-12 20:31:04 +03:30
|
|
|
base_sale_price: runtime.Decimal | null
|
2026-02-04 13:49:07 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type GoodSumAggregateOutputType = {
|
2026-02-12 20:31:04 +03:30
|
|
|
base_sale_price: runtime.Decimal | null
|
2026-02-04 13:49:07 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type GoodMinAggregateOutputType = {
|
2026-02-12 20:31:04 +03:30
|
|
|
id: string | null
|
2026-02-04 13:49:07 +03:30
|
|
|
name: string | null
|
2026-03-11 20:42:34 +03:30
|
|
|
is_default_guild_good: boolean | null
|
2026-02-04 13:49:07 +03:30
|
|
|
sku: string | null
|
2026-03-11 20:42:34 +03:30
|
|
|
unit_type: $Enums.UnitType | null
|
|
|
|
|
pricing_model: $Enums.GoodPricingModel | null
|
|
|
|
|
description: string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
local_sku: string | null
|
2026-02-04 13:49:07 +03:30
|
|
|
barcode: string | null
|
2026-03-07 11:25:11 +03:30
|
|
|
base_sale_price: runtime.Decimal | null
|
2026-02-12 20:31:04 +03:30
|
|
|
created_at: Date | null
|
|
|
|
|
updated_at: Date | null
|
|
|
|
|
deleted_at: Date | null
|
|
|
|
|
complex_id: string | null
|
2026-03-07 11:25:11 +03:30
|
|
|
category_id: string | null
|
|
|
|
|
guild_id: string | null
|
2026-02-04 13:49:07 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type GoodMaxAggregateOutputType = {
|
2026-02-12 20:31:04 +03:30
|
|
|
id: string | null
|
2026-02-04 13:49:07 +03:30
|
|
|
name: string | null
|
2026-03-11 20:42:34 +03:30
|
|
|
is_default_guild_good: boolean | null
|
2026-02-04 13:49:07 +03:30
|
|
|
sku: string | null
|
2026-03-11 20:42:34 +03:30
|
|
|
unit_type: $Enums.UnitType | null
|
|
|
|
|
pricing_model: $Enums.GoodPricingModel | null
|
|
|
|
|
description: string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
local_sku: string | null
|
2026-02-04 13:49:07 +03:30
|
|
|
barcode: string | null
|
2026-03-07 11:25:11 +03:30
|
|
|
base_sale_price: runtime.Decimal | null
|
2026-02-12 20:31:04 +03:30
|
|
|
created_at: Date | null
|
|
|
|
|
updated_at: Date | null
|
|
|
|
|
deleted_at: Date | null
|
|
|
|
|
complex_id: string | null
|
2026-03-07 11:25:11 +03:30
|
|
|
category_id: string | null
|
|
|
|
|
guild_id: string | null
|
2026-02-04 13:49:07 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type GoodCountAggregateOutputType = {
|
|
|
|
|
id: number
|
|
|
|
|
name: number
|
2026-03-11 20:42:34 +03:30
|
|
|
is_default_guild_good: number
|
2026-02-04 13:49:07 +03:30
|
|
|
sku: number
|
2026-03-11 20:42:34 +03:30
|
|
|
unit_type: number
|
|
|
|
|
pricing_model: number
|
|
|
|
|
description: number
|
2026-02-12 20:31:04 +03:30
|
|
|
local_sku: number
|
2026-02-04 13:49:07 +03:30
|
|
|
barcode: number
|
2026-03-07 11:25:11 +03:30
|
|
|
base_sale_price: number
|
2026-02-12 20:31:04 +03:30
|
|
|
created_at: number
|
|
|
|
|
updated_at: number
|
|
|
|
|
deleted_at: number
|
|
|
|
|
complex_id: number
|
2026-03-07 11:25:11 +03:30
|
|
|
category_id: number
|
|
|
|
|
guild_id: number
|
2026-02-04 13:49:07 +03:30
|
|
|
_all: number
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export type GoodAvgAggregateInputType = {
|
2026-02-12 20:31:04 +03:30
|
|
|
base_sale_price?: true
|
2026-02-04 13:49:07 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type GoodSumAggregateInputType = {
|
2026-02-12 20:31:04 +03:30
|
|
|
base_sale_price?: true
|
2026-02-04 13:49:07 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type GoodMinAggregateInputType = {
|
|
|
|
|
id?: true
|
|
|
|
|
name?: true
|
2026-03-11 20:42:34 +03:30
|
|
|
is_default_guild_good?: true
|
2026-02-04 13:49:07 +03:30
|
|
|
sku?: true
|
2026-03-11 20:42:34 +03:30
|
|
|
unit_type?: true
|
|
|
|
|
pricing_model?: true
|
|
|
|
|
description?: true
|
2026-02-12 20:31:04 +03:30
|
|
|
local_sku?: true
|
2026-02-04 13:49:07 +03:30
|
|
|
barcode?: true
|
2026-03-07 11:25:11 +03:30
|
|
|
base_sale_price?: true
|
2026-02-12 20:31:04 +03:30
|
|
|
created_at?: true
|
|
|
|
|
updated_at?: true
|
|
|
|
|
deleted_at?: true
|
|
|
|
|
complex_id?: true
|
2026-03-07 11:25:11 +03:30
|
|
|
category_id?: true
|
|
|
|
|
guild_id?: true
|
2026-02-04 13:49:07 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type GoodMaxAggregateInputType = {
|
|
|
|
|
id?: true
|
|
|
|
|
name?: true
|
2026-03-11 20:42:34 +03:30
|
|
|
is_default_guild_good?: true
|
2026-02-04 13:49:07 +03:30
|
|
|
sku?: true
|
2026-03-11 20:42:34 +03:30
|
|
|
unit_type?: true
|
|
|
|
|
pricing_model?: true
|
|
|
|
|
description?: true
|
2026-02-12 20:31:04 +03:30
|
|
|
local_sku?: true
|
2026-02-04 13:49:07 +03:30
|
|
|
barcode?: true
|
2026-03-07 11:25:11 +03:30
|
|
|
base_sale_price?: true
|
2026-02-12 20:31:04 +03:30
|
|
|
created_at?: true
|
|
|
|
|
updated_at?: true
|
|
|
|
|
deleted_at?: true
|
|
|
|
|
complex_id?: true
|
2026-03-07 11:25:11 +03:30
|
|
|
category_id?: true
|
|
|
|
|
guild_id?: true
|
2026-02-04 13:49:07 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type GoodCountAggregateInputType = {
|
|
|
|
|
id?: true
|
|
|
|
|
name?: true
|
2026-03-11 20:42:34 +03:30
|
|
|
is_default_guild_good?: true
|
2026-02-04 13:49:07 +03:30
|
|
|
sku?: true
|
2026-03-11 20:42:34 +03:30
|
|
|
unit_type?: true
|
|
|
|
|
pricing_model?: true
|
|
|
|
|
description?: true
|
2026-02-12 20:31:04 +03:30
|
|
|
local_sku?: true
|
2026-02-04 13:49:07 +03:30
|
|
|
barcode?: true
|
2026-03-07 11:25:11 +03:30
|
|
|
base_sale_price?: true
|
2026-02-12 20:31:04 +03:30
|
|
|
created_at?: true
|
|
|
|
|
updated_at?: true
|
|
|
|
|
deleted_at?: true
|
|
|
|
|
complex_id?: true
|
2026-03-07 11:25:11 +03:30
|
|
|
category_id?: true
|
|
|
|
|
guild_id?: true
|
2026-02-04 13:49:07 +03:30
|
|
|
_all?: true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type GoodAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* 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<T extends GoodAggregateArgs> = {
|
|
|
|
|
[P in keyof T & keyof AggregateGood]: P extends '_count' | 'count'
|
|
|
|
|
? T[P] extends true
|
|
|
|
|
? number
|
|
|
|
|
: Prisma.GetScalarType<T[P], AggregateGood[P]>
|
|
|
|
|
: Prisma.GetScalarType<T[P], AggregateGood[P]>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export type GoodGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
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 = {
|
2026-02-12 20:31:04 +03:30
|
|
|
id: string
|
2026-02-04 13:49:07 +03:30
|
|
|
name: string
|
2026-03-11 20:42:34 +03:30
|
|
|
is_default_guild_good: boolean
|
2026-02-04 13:49:07 +03:30
|
|
|
sku: string
|
2026-03-11 20:42:34 +03:30
|
|
|
unit_type: $Enums.UnitType
|
|
|
|
|
pricing_model: $Enums.GoodPricingModel
|
|
|
|
|
description: string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
local_sku: string | null
|
2026-02-04 13:49:07 +03:30
|
|
|
barcode: string | null
|
2026-03-07 11:25:11 +03:30
|
|
|
base_sale_price: runtime.Decimal | null
|
2026-02-12 20:31:04 +03:30
|
|
|
created_at: Date
|
|
|
|
|
updated_at: Date
|
|
|
|
|
deleted_at: Date | null
|
2026-03-07 11:25:11 +03:30
|
|
|
complex_id: string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
category_id: string | null
|
2026-03-07 11:25:11 +03:30
|
|
|
guild_id: string | null
|
2026-02-04 13:49:07 +03:30
|
|
|
_count: GoodCountAggregateOutputType | null
|
|
|
|
|
_avg: GoodAvgAggregateOutputType | null
|
|
|
|
|
_sum: GoodSumAggregateOutputType | null
|
|
|
|
|
_min: GoodMinAggregateOutputType | null
|
|
|
|
|
_max: GoodMaxAggregateOutputType | null
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type GetGoodGroupByPayload<T extends GoodGroupByArgs> = Prisma.PrismaPromise<
|
|
|
|
|
Array<
|
|
|
|
|
Prisma.PickEnumerable<GoodGroupByOutputType, T['by']> &
|
|
|
|
|
{
|
|
|
|
|
[P in ((keyof T) & (keyof GoodGroupByOutputType))]: P extends '_count'
|
|
|
|
|
? T[P] extends boolean
|
|
|
|
|
? number
|
|
|
|
|
: Prisma.GetScalarType<T[P], GoodGroupByOutputType[P]>
|
|
|
|
|
: Prisma.GetScalarType<T[P], GoodGroupByOutputType[P]>
|
|
|
|
|
}
|
|
|
|
|
>
|
|
|
|
|
>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export type GoodWhereInput = {
|
|
|
|
|
AND?: Prisma.GoodWhereInput | Prisma.GoodWhereInput[]
|
|
|
|
|
OR?: Prisma.GoodWhereInput[]
|
|
|
|
|
NOT?: Prisma.GoodWhereInput | Prisma.GoodWhereInput[]
|
2026-02-12 20:31:04 +03:30
|
|
|
id?: Prisma.StringFilter<"Good"> | string
|
2026-02-04 13:49:07 +03:30
|
|
|
name?: Prisma.StringFilter<"Good"> | string
|
2026-03-11 20:42:34 +03:30
|
|
|
is_default_guild_good?: Prisma.BoolFilter<"Good"> | boolean
|
2026-02-04 13:49:07 +03:30
|
|
|
sku?: Prisma.StringFilter<"Good"> | string
|
2026-03-11 20:42:34 +03:30
|
|
|
unit_type?: Prisma.EnumUnitTypeFilter<"Good"> | $Enums.UnitType
|
|
|
|
|
pricing_model?: Prisma.EnumGoodPricingModelFilter<"Good"> | $Enums.GoodPricingModel
|
|
|
|
|
description?: Prisma.StringNullableFilter<"Good"> | string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
local_sku?: Prisma.StringNullableFilter<"Good"> | string | null
|
2026-02-04 13:49:07 +03:30
|
|
|
barcode?: Prisma.StringNullableFilter<"Good"> | string | null
|
2026-03-07 11:25:11 +03:30
|
|
|
base_sale_price?: Prisma.DecimalNullableFilter<"Good"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
created_at?: Prisma.DateTimeFilter<"Good"> | Date | string
|
|
|
|
|
updated_at?: Prisma.DateTimeFilter<"Good"> | Date | string
|
|
|
|
|
deleted_at?: Prisma.DateTimeNullableFilter<"Good"> | Date | string | null
|
2026-03-07 11:25:11 +03:30
|
|
|
complex_id?: Prisma.StringNullableFilter<"Good"> | string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
category_id?: Prisma.StringNullableFilter<"Good"> | string | null
|
2026-03-07 11:25:11 +03:30
|
|
|
guild_id?: Prisma.StringNullableFilter<"Good"> | string | null
|
2026-02-04 13:49:07 +03:30
|
|
|
category?: Prisma.XOR<Prisma.GoodCategoryNullableScalarRelationFilter, Prisma.GoodCategoryWhereInput> | null
|
2026-03-07 11:25:11 +03:30
|
|
|
complex?: Prisma.XOR<Prisma.ComplexNullableScalarRelationFilter, Prisma.ComplexWhereInput> | null
|
|
|
|
|
guild?: Prisma.XOR<Prisma.GuildNullableScalarRelationFilter, Prisma.GuildWhereInput> | null
|
2026-02-12 20:31:04 +03:30
|
|
|
sales_invoice_items?: Prisma.SalesInvoiceItemListRelationFilter
|
2026-02-04 13:49:07 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type GoodOrderByWithRelationInput = {
|
|
|
|
|
id?: Prisma.SortOrder
|
|
|
|
|
name?: Prisma.SortOrder
|
2026-03-11 20:42:34 +03:30
|
|
|
is_default_guild_good?: Prisma.SortOrder
|
2026-02-04 13:49:07 +03:30
|
|
|
sku?: Prisma.SortOrder
|
2026-03-11 20:42:34 +03:30
|
|
|
unit_type?: Prisma.SortOrder
|
|
|
|
|
pricing_model?: Prisma.SortOrder
|
|
|
|
|
description?: Prisma.SortOrderInput | Prisma.SortOrder
|
2026-02-12 20:31:04 +03:30
|
|
|
local_sku?: Prisma.SortOrderInput | Prisma.SortOrder
|
2026-02-04 13:49:07 +03:30
|
|
|
barcode?: Prisma.SortOrderInput | Prisma.SortOrder
|
2026-03-07 11:25:11 +03:30
|
|
|
base_sale_price?: Prisma.SortOrderInput | Prisma.SortOrder
|
2026-02-12 20:31:04 +03:30
|
|
|
created_at?: Prisma.SortOrder
|
|
|
|
|
updated_at?: Prisma.SortOrder
|
|
|
|
|
deleted_at?: Prisma.SortOrderInput | Prisma.SortOrder
|
2026-03-07 11:25:11 +03:30
|
|
|
complex_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
2026-02-12 20:31:04 +03:30
|
|
|
category_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
2026-03-07 11:25:11 +03:30
|
|
|
guild_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
2026-02-04 13:49:07 +03:30
|
|
|
category?: Prisma.GoodCategoryOrderByWithRelationInput
|
2026-03-07 11:25:11 +03:30
|
|
|
complex?: Prisma.ComplexOrderByWithRelationInput
|
|
|
|
|
guild?: Prisma.GuildOrderByWithRelationInput
|
2026-02-12 20:31:04 +03:30
|
|
|
sales_invoice_items?: Prisma.SalesInvoiceItemOrderByRelationAggregateInput
|
2026-02-04 13:49:07 +03:30
|
|
|
_relevance?: Prisma.GoodOrderByRelevanceInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type GoodWhereUniqueInput = Prisma.AtLeast<{
|
2026-02-12 20:31:04 +03:30
|
|
|
id?: string
|
|
|
|
|
local_sku?: string
|
2026-02-04 13:49:07 +03:30
|
|
|
barcode?: string
|
|
|
|
|
AND?: Prisma.GoodWhereInput | Prisma.GoodWhereInput[]
|
|
|
|
|
OR?: Prisma.GoodWhereInput[]
|
|
|
|
|
NOT?: Prisma.GoodWhereInput | Prisma.GoodWhereInput[]
|
|
|
|
|
name?: Prisma.StringFilter<"Good"> | string
|
2026-03-11 20:42:34 +03:30
|
|
|
is_default_guild_good?: Prisma.BoolFilter<"Good"> | boolean
|
2026-02-04 13:49:07 +03:30
|
|
|
sku?: Prisma.StringFilter<"Good"> | string
|
2026-03-11 20:42:34 +03:30
|
|
|
unit_type?: Prisma.EnumUnitTypeFilter<"Good"> | $Enums.UnitType
|
|
|
|
|
pricing_model?: Prisma.EnumGoodPricingModelFilter<"Good"> | $Enums.GoodPricingModel
|
|
|
|
|
description?: Prisma.StringNullableFilter<"Good"> | string | null
|
2026-03-07 11:25:11 +03:30
|
|
|
base_sale_price?: Prisma.DecimalNullableFilter<"Good"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
created_at?: Prisma.DateTimeFilter<"Good"> | Date | string
|
|
|
|
|
updated_at?: Prisma.DateTimeFilter<"Good"> | Date | string
|
|
|
|
|
deleted_at?: Prisma.DateTimeNullableFilter<"Good"> | Date | string | null
|
2026-03-07 11:25:11 +03:30
|
|
|
complex_id?: Prisma.StringNullableFilter<"Good"> | string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
category_id?: Prisma.StringNullableFilter<"Good"> | string | null
|
2026-03-07 11:25:11 +03:30
|
|
|
guild_id?: Prisma.StringNullableFilter<"Good"> | string | null
|
2026-02-04 13:49:07 +03:30
|
|
|
category?: Prisma.XOR<Prisma.GoodCategoryNullableScalarRelationFilter, Prisma.GoodCategoryWhereInput> | null
|
2026-03-07 11:25:11 +03:30
|
|
|
complex?: Prisma.XOR<Prisma.ComplexNullableScalarRelationFilter, Prisma.ComplexWhereInput> | null
|
|
|
|
|
guild?: Prisma.XOR<Prisma.GuildNullableScalarRelationFilter, Prisma.GuildWhereInput> | null
|
2026-02-12 20:31:04 +03:30
|
|
|
sales_invoice_items?: Prisma.SalesInvoiceItemListRelationFilter
|
|
|
|
|
}, "id" | "local_sku" | "barcode">
|
2026-02-04 13:49:07 +03:30
|
|
|
|
|
|
|
|
export type GoodOrderByWithAggregationInput = {
|
|
|
|
|
id?: Prisma.SortOrder
|
|
|
|
|
name?: Prisma.SortOrder
|
2026-03-11 20:42:34 +03:30
|
|
|
is_default_guild_good?: Prisma.SortOrder
|
2026-02-04 13:49:07 +03:30
|
|
|
sku?: Prisma.SortOrder
|
2026-03-11 20:42:34 +03:30
|
|
|
unit_type?: Prisma.SortOrder
|
|
|
|
|
pricing_model?: Prisma.SortOrder
|
|
|
|
|
description?: Prisma.SortOrderInput | Prisma.SortOrder
|
2026-02-12 20:31:04 +03:30
|
|
|
local_sku?: Prisma.SortOrderInput | Prisma.SortOrder
|
2026-02-04 13:49:07 +03:30
|
|
|
barcode?: Prisma.SortOrderInput | Prisma.SortOrder
|
2026-03-07 11:25:11 +03:30
|
|
|
base_sale_price?: Prisma.SortOrderInput | Prisma.SortOrder
|
2026-02-12 20:31:04 +03:30
|
|
|
created_at?: Prisma.SortOrder
|
|
|
|
|
updated_at?: Prisma.SortOrder
|
|
|
|
|
deleted_at?: Prisma.SortOrderInput | Prisma.SortOrder
|
2026-03-07 11:25:11 +03:30
|
|
|
complex_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
2026-02-12 20:31:04 +03:30
|
|
|
category_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
2026-03-07 11:25:11 +03:30
|
|
|
guild_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
2026-02-04 13:49:07 +03:30
|
|
|
_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[]
|
2026-02-12 20:31:04 +03:30
|
|
|
id?: Prisma.StringWithAggregatesFilter<"Good"> | string
|
2026-02-04 13:49:07 +03:30
|
|
|
name?: Prisma.StringWithAggregatesFilter<"Good"> | string
|
2026-03-11 20:42:34 +03:30
|
|
|
is_default_guild_good?: Prisma.BoolWithAggregatesFilter<"Good"> | boolean
|
2026-02-04 13:49:07 +03:30
|
|
|
sku?: Prisma.StringWithAggregatesFilter<"Good"> | string
|
2026-03-11 20:42:34 +03:30
|
|
|
unit_type?: Prisma.EnumUnitTypeWithAggregatesFilter<"Good"> | $Enums.UnitType
|
|
|
|
|
pricing_model?: Prisma.EnumGoodPricingModelWithAggregatesFilter<"Good"> | $Enums.GoodPricingModel
|
|
|
|
|
description?: Prisma.StringNullableWithAggregatesFilter<"Good"> | string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
local_sku?: Prisma.StringNullableWithAggregatesFilter<"Good"> | string | null
|
2026-02-04 13:49:07 +03:30
|
|
|
barcode?: Prisma.StringNullableWithAggregatesFilter<"Good"> | string | null
|
2026-03-07 11:25:11 +03:30
|
|
|
base_sale_price?: Prisma.DecimalNullableWithAggregatesFilter<"Good"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
created_at?: Prisma.DateTimeWithAggregatesFilter<"Good"> | Date | string
|
|
|
|
|
updated_at?: Prisma.DateTimeWithAggregatesFilter<"Good"> | Date | string
|
|
|
|
|
deleted_at?: Prisma.DateTimeNullableWithAggregatesFilter<"Good"> | Date | string | null
|
2026-03-07 11:25:11 +03:30
|
|
|
complex_id?: Prisma.StringNullableWithAggregatesFilter<"Good"> | string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
category_id?: Prisma.StringNullableWithAggregatesFilter<"Good"> | string | null
|
2026-03-07 11:25:11 +03:30
|
|
|
guild_id?: Prisma.StringNullableWithAggregatesFilter<"Good"> | string | null
|
2026-02-04 13:49:07 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type GoodCreateInput = {
|
2026-02-12 20:31:04 +03:30
|
|
|
id?: string
|
2026-02-04 13:49:07 +03:30
|
|
|
name: string
|
2026-03-11 20:42:34 +03:30
|
|
|
is_default_guild_good?: boolean
|
2026-02-04 13:49:07 +03:30
|
|
|
sku: string
|
2026-03-11 20:42:34 +03:30
|
|
|
unit_type: $Enums.UnitType
|
|
|
|
|
pricing_model: $Enums.GoodPricingModel
|
|
|
|
|
description?: string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
local_sku?: string | null
|
2026-02-04 13:49:07 +03:30
|
|
|
barcode?: string | null
|
2026-03-07 11:25:11 +03:30
|
|
|
base_sale_price?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
created_at?: Date | string
|
|
|
|
|
updated_at?: Date | string
|
|
|
|
|
deleted_at?: Date | string | null
|
2026-02-04 13:49:07 +03:30
|
|
|
category?: Prisma.GoodCategoryCreateNestedOneWithoutGoodsInput
|
2026-03-07 11:25:11 +03:30
|
|
|
complex?: Prisma.ComplexCreateNestedOneWithoutGoodsInput
|
|
|
|
|
guild?: Prisma.GuildCreateNestedOneWithoutGoodsInput
|
2026-02-12 20:31:04 +03:30
|
|
|
sales_invoice_items?: Prisma.SalesInvoiceItemCreateNestedManyWithoutGoodInput
|
2026-02-04 13:49:07 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type GoodUncheckedCreateInput = {
|
2026-02-12 20:31:04 +03:30
|
|
|
id?: string
|
2026-02-04 13:49:07 +03:30
|
|
|
name: string
|
2026-03-11 20:42:34 +03:30
|
|
|
is_default_guild_good?: boolean
|
2026-02-04 13:49:07 +03:30
|
|
|
sku: string
|
2026-03-11 20:42:34 +03:30
|
|
|
unit_type: $Enums.UnitType
|
|
|
|
|
pricing_model: $Enums.GoodPricingModel
|
|
|
|
|
description?: string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
local_sku?: string | null
|
2026-02-04 13:49:07 +03:30
|
|
|
barcode?: string | null
|
2026-03-07 11:25:11 +03:30
|
|
|
base_sale_price?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
created_at?: Date | string
|
|
|
|
|
updated_at?: Date | string
|
|
|
|
|
deleted_at?: Date | string | null
|
2026-03-07 11:25:11 +03:30
|
|
|
complex_id?: string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
category_id?: string | null
|
2026-03-07 11:25:11 +03:30
|
|
|
guild_id?: string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
sales_invoice_items?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutGoodInput
|
2026-02-04 13:49:07 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type GoodUpdateInput = {
|
2026-02-12 20:31:04 +03:30
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-02-04 13:49:07 +03:30
|
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-03-11 20:42:34 +03:30
|
|
|
is_default_guild_good?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
2026-02-04 13:49:07 +03:30
|
|
|
sku?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-03-11 20:42:34 +03:30
|
|
|
unit_type?: Prisma.EnumUnitTypeFieldUpdateOperationsInput | $Enums.UnitType
|
|
|
|
|
pricing_model?: Prisma.EnumGoodPricingModelFieldUpdateOperationsInput | $Enums.GoodPricingModel
|
|
|
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
local_sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
2026-02-04 13:49:07 +03:30
|
|
|
barcode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
2026-03-07 11:25:11 +03:30
|
|
|
base_sale_price?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
2026-02-04 13:49:07 +03:30
|
|
|
category?: Prisma.GoodCategoryUpdateOneWithoutGoodsNestedInput
|
2026-03-07 11:25:11 +03:30
|
|
|
complex?: Prisma.ComplexUpdateOneWithoutGoodsNestedInput
|
|
|
|
|
guild?: Prisma.GuildUpdateOneWithoutGoodsNestedInput
|
2026-02-12 20:31:04 +03:30
|
|
|
sales_invoice_items?: Prisma.SalesInvoiceItemUpdateManyWithoutGoodNestedInput
|
2026-02-04 13:49:07 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type GoodUncheckedUpdateInput = {
|
2026-02-12 20:31:04 +03:30
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-02-04 13:49:07 +03:30
|
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-03-11 20:42:34 +03:30
|
|
|
is_default_guild_good?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
2026-02-04 13:49:07 +03:30
|
|
|
sku?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-03-11 20:42:34 +03:30
|
|
|
unit_type?: Prisma.EnumUnitTypeFieldUpdateOperationsInput | $Enums.UnitType
|
|
|
|
|
pricing_model?: Prisma.EnumGoodPricingModelFieldUpdateOperationsInput | $Enums.GoodPricingModel
|
|
|
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
local_sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
2026-02-04 13:49:07 +03:30
|
|
|
barcode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
2026-03-07 11:25:11 +03:30
|
|
|
base_sale_price?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
2026-03-07 11:25:11 +03:30
|
|
|
complex_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
category_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
2026-03-07 11:25:11 +03:30
|
|
|
guild_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
sales_invoice_items?: Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutGoodNestedInput
|
2026-02-04 13:49:07 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type GoodCreateManyInput = {
|
2026-02-12 20:31:04 +03:30
|
|
|
id?: string
|
2026-02-04 13:49:07 +03:30
|
|
|
name: string
|
2026-03-11 20:42:34 +03:30
|
|
|
is_default_guild_good?: boolean
|
2026-02-04 13:49:07 +03:30
|
|
|
sku: string
|
2026-03-11 20:42:34 +03:30
|
|
|
unit_type: $Enums.UnitType
|
|
|
|
|
pricing_model: $Enums.GoodPricingModel
|
|
|
|
|
description?: string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
local_sku?: string | null
|
2026-02-04 13:49:07 +03:30
|
|
|
barcode?: string | null
|
2026-03-07 11:25:11 +03:30
|
|
|
base_sale_price?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
created_at?: Date | string
|
|
|
|
|
updated_at?: Date | string
|
|
|
|
|
deleted_at?: Date | string | null
|
2026-03-07 11:25:11 +03:30
|
|
|
complex_id?: string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
category_id?: string | null
|
2026-03-07 11:25:11 +03:30
|
|
|
guild_id?: string | null
|
2026-02-04 13:49:07 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type GoodUpdateManyMutationInput = {
|
2026-02-12 20:31:04 +03:30
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-02-04 13:49:07 +03:30
|
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-03-11 20:42:34 +03:30
|
|
|
is_default_guild_good?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
2026-02-04 13:49:07 +03:30
|
|
|
sku?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-03-11 20:42:34 +03:30
|
|
|
unit_type?: Prisma.EnumUnitTypeFieldUpdateOperationsInput | $Enums.UnitType
|
|
|
|
|
pricing_model?: Prisma.EnumGoodPricingModelFieldUpdateOperationsInput | $Enums.GoodPricingModel
|
|
|
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
local_sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
2026-02-04 13:49:07 +03:30
|
|
|
barcode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
2026-03-07 11:25:11 +03:30
|
|
|
base_sale_price?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
2026-02-04 13:49:07 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type GoodUncheckedUpdateManyInput = {
|
2026-02-12 20:31:04 +03:30
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-02-04 13:49:07 +03:30
|
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-03-11 20:42:34 +03:30
|
|
|
is_default_guild_good?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
2026-02-04 13:49:07 +03:30
|
|
|
sku?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-03-11 20:42:34 +03:30
|
|
|
unit_type?: Prisma.EnumUnitTypeFieldUpdateOperationsInput | $Enums.UnitType
|
|
|
|
|
pricing_model?: Prisma.EnumGoodPricingModelFieldUpdateOperationsInput | $Enums.GoodPricingModel
|
|
|
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
local_sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
2026-02-04 13:49:07 +03:30
|
|
|
barcode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
2026-03-07 11:25:11 +03:30
|
|
|
base_sale_price?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
2026-03-07 11:25:11 +03:30
|
|
|
complex_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
category_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
2026-03-07 11:25:11 +03:30
|
|
|
guild_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type GoodListRelationFilter = {
|
|
|
|
|
every?: Prisma.GoodWhereInput
|
|
|
|
|
some?: Prisma.GoodWhereInput
|
|
|
|
|
none?: Prisma.GoodWhereInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type GoodOrderByRelationAggregateInput = {
|
|
|
|
|
_count?: Prisma.SortOrder
|
2026-02-04 13:49:07 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type GoodOrderByRelevanceInput = {
|
|
|
|
|
fields: Prisma.GoodOrderByRelevanceFieldEnum | Prisma.GoodOrderByRelevanceFieldEnum[]
|
|
|
|
|
sort: Prisma.SortOrder
|
|
|
|
|
search: string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type GoodCountOrderByAggregateInput = {
|
|
|
|
|
id?: Prisma.SortOrder
|
|
|
|
|
name?: Prisma.SortOrder
|
2026-03-11 20:42:34 +03:30
|
|
|
is_default_guild_good?: Prisma.SortOrder
|
2026-02-04 13:49:07 +03:30
|
|
|
sku?: Prisma.SortOrder
|
2026-03-11 20:42:34 +03:30
|
|
|
unit_type?: Prisma.SortOrder
|
|
|
|
|
pricing_model?: Prisma.SortOrder
|
|
|
|
|
description?: Prisma.SortOrder
|
2026-02-12 20:31:04 +03:30
|
|
|
local_sku?: Prisma.SortOrder
|
2026-02-04 13:49:07 +03:30
|
|
|
barcode?: Prisma.SortOrder
|
2026-03-07 11:25:11 +03:30
|
|
|
base_sale_price?: Prisma.SortOrder
|
2026-02-12 20:31:04 +03:30
|
|
|
created_at?: Prisma.SortOrder
|
|
|
|
|
updated_at?: Prisma.SortOrder
|
|
|
|
|
deleted_at?: Prisma.SortOrder
|
|
|
|
|
complex_id?: Prisma.SortOrder
|
2026-03-07 11:25:11 +03:30
|
|
|
category_id?: Prisma.SortOrder
|
|
|
|
|
guild_id?: Prisma.SortOrder
|
2026-02-04 13:49:07 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type GoodAvgOrderByAggregateInput = {
|
2026-02-12 20:31:04 +03:30
|
|
|
base_sale_price?: Prisma.SortOrder
|
2026-02-04 13:49:07 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type GoodMaxOrderByAggregateInput = {
|
|
|
|
|
id?: Prisma.SortOrder
|
|
|
|
|
name?: Prisma.SortOrder
|
2026-03-11 20:42:34 +03:30
|
|
|
is_default_guild_good?: Prisma.SortOrder
|
2026-02-04 13:49:07 +03:30
|
|
|
sku?: Prisma.SortOrder
|
2026-03-11 20:42:34 +03:30
|
|
|
unit_type?: Prisma.SortOrder
|
|
|
|
|
pricing_model?: Prisma.SortOrder
|
|
|
|
|
description?: Prisma.SortOrder
|
2026-02-12 20:31:04 +03:30
|
|
|
local_sku?: Prisma.SortOrder
|
2026-02-04 13:49:07 +03:30
|
|
|
barcode?: Prisma.SortOrder
|
2026-03-07 11:25:11 +03:30
|
|
|
base_sale_price?: Prisma.SortOrder
|
2026-02-12 20:31:04 +03:30
|
|
|
created_at?: Prisma.SortOrder
|
|
|
|
|
updated_at?: Prisma.SortOrder
|
|
|
|
|
deleted_at?: Prisma.SortOrder
|
|
|
|
|
complex_id?: Prisma.SortOrder
|
2026-03-07 11:25:11 +03:30
|
|
|
category_id?: Prisma.SortOrder
|
|
|
|
|
guild_id?: Prisma.SortOrder
|
2026-02-04 13:49:07 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type GoodMinOrderByAggregateInput = {
|
|
|
|
|
id?: Prisma.SortOrder
|
|
|
|
|
name?: Prisma.SortOrder
|
2026-03-11 20:42:34 +03:30
|
|
|
is_default_guild_good?: Prisma.SortOrder
|
2026-02-04 13:49:07 +03:30
|
|
|
sku?: Prisma.SortOrder
|
2026-03-11 20:42:34 +03:30
|
|
|
unit_type?: Prisma.SortOrder
|
|
|
|
|
pricing_model?: Prisma.SortOrder
|
|
|
|
|
description?: Prisma.SortOrder
|
2026-02-12 20:31:04 +03:30
|
|
|
local_sku?: Prisma.SortOrder
|
2026-02-04 13:49:07 +03:30
|
|
|
barcode?: Prisma.SortOrder
|
2026-03-07 11:25:11 +03:30
|
|
|
base_sale_price?: Prisma.SortOrder
|
2026-02-12 20:31:04 +03:30
|
|
|
created_at?: Prisma.SortOrder
|
|
|
|
|
updated_at?: Prisma.SortOrder
|
|
|
|
|
deleted_at?: Prisma.SortOrder
|
|
|
|
|
complex_id?: Prisma.SortOrder
|
2026-03-07 11:25:11 +03:30
|
|
|
category_id?: Prisma.SortOrder
|
|
|
|
|
guild_id?: Prisma.SortOrder
|
2026-02-04 13:49:07 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type GoodSumOrderByAggregateInput = {
|
2026-02-12 20:31:04 +03:30
|
|
|
base_sale_price?: Prisma.SortOrder
|
2026-02-04 13:49:07 +03:30
|
|
|
}
|
|
|
|
|
|
2026-03-07 11:25:11 +03:30
|
|
|
export type GoodNullableScalarRelationFilter = {
|
|
|
|
|
is?: Prisma.GoodWhereInput | null
|
|
|
|
|
isNot?: Prisma.GoodWhereInput | null
|
2026-02-04 13:49:07 +03:30
|
|
|
}
|
|
|
|
|
|
2026-03-07 11:25:11 +03:30
|
|
|
export type GoodCreateNestedManyWithoutGuildInput = {
|
|
|
|
|
create?: Prisma.XOR<Prisma.GoodCreateWithoutGuildInput, Prisma.GoodUncheckedCreateWithoutGuildInput> | Prisma.GoodCreateWithoutGuildInput[] | Prisma.GoodUncheckedCreateWithoutGuildInput[]
|
|
|
|
|
connectOrCreate?: Prisma.GoodCreateOrConnectWithoutGuildInput | Prisma.GoodCreateOrConnectWithoutGuildInput[]
|
|
|
|
|
createMany?: Prisma.GoodCreateManyGuildInputEnvelope
|
|
|
|
|
connect?: Prisma.GoodWhereUniqueInput | Prisma.GoodWhereUniqueInput[]
|
2026-02-04 13:49:07 +03:30
|
|
|
}
|
|
|
|
|
|
2026-03-07 11:25:11 +03:30
|
|
|
export type GoodUncheckedCreateNestedManyWithoutGuildInput = {
|
|
|
|
|
create?: Prisma.XOR<Prisma.GoodCreateWithoutGuildInput, Prisma.GoodUncheckedCreateWithoutGuildInput> | Prisma.GoodCreateWithoutGuildInput[] | Prisma.GoodUncheckedCreateWithoutGuildInput[]
|
|
|
|
|
connectOrCreate?: Prisma.GoodCreateOrConnectWithoutGuildInput | Prisma.GoodCreateOrConnectWithoutGuildInput[]
|
|
|
|
|
createMany?: Prisma.GoodCreateManyGuildInputEnvelope
|
|
|
|
|
connect?: Prisma.GoodWhereUniqueInput | Prisma.GoodWhereUniqueInput[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type GoodUpdateManyWithoutGuildNestedInput = {
|
|
|
|
|
create?: Prisma.XOR<Prisma.GoodCreateWithoutGuildInput, Prisma.GoodUncheckedCreateWithoutGuildInput> | Prisma.GoodCreateWithoutGuildInput[] | Prisma.GoodUncheckedCreateWithoutGuildInput[]
|
|
|
|
|
connectOrCreate?: Prisma.GoodCreateOrConnectWithoutGuildInput | Prisma.GoodCreateOrConnectWithoutGuildInput[]
|
|
|
|
|
upsert?: Prisma.GoodUpsertWithWhereUniqueWithoutGuildInput | Prisma.GoodUpsertWithWhereUniqueWithoutGuildInput[]
|
|
|
|
|
createMany?: Prisma.GoodCreateManyGuildInputEnvelope
|
|
|
|
|
set?: Prisma.GoodWhereUniqueInput | Prisma.GoodWhereUniqueInput[]
|
|
|
|
|
disconnect?: Prisma.GoodWhereUniqueInput | Prisma.GoodWhereUniqueInput[]
|
|
|
|
|
delete?: Prisma.GoodWhereUniqueInput | Prisma.GoodWhereUniqueInput[]
|
|
|
|
|
connect?: Prisma.GoodWhereUniqueInput | Prisma.GoodWhereUniqueInput[]
|
|
|
|
|
update?: Prisma.GoodUpdateWithWhereUniqueWithoutGuildInput | Prisma.GoodUpdateWithWhereUniqueWithoutGuildInput[]
|
|
|
|
|
updateMany?: Prisma.GoodUpdateManyWithWhereWithoutGuildInput | Prisma.GoodUpdateManyWithWhereWithoutGuildInput[]
|
|
|
|
|
deleteMany?: Prisma.GoodScalarWhereInput | Prisma.GoodScalarWhereInput[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type GoodUncheckedUpdateManyWithoutGuildNestedInput = {
|
|
|
|
|
create?: Prisma.XOR<Prisma.GoodCreateWithoutGuildInput, Prisma.GoodUncheckedCreateWithoutGuildInput> | Prisma.GoodCreateWithoutGuildInput[] | Prisma.GoodUncheckedCreateWithoutGuildInput[]
|
|
|
|
|
connectOrCreate?: Prisma.GoodCreateOrConnectWithoutGuildInput | Prisma.GoodCreateOrConnectWithoutGuildInput[]
|
|
|
|
|
upsert?: Prisma.GoodUpsertWithWhereUniqueWithoutGuildInput | Prisma.GoodUpsertWithWhereUniqueWithoutGuildInput[]
|
|
|
|
|
createMany?: Prisma.GoodCreateManyGuildInputEnvelope
|
|
|
|
|
set?: Prisma.GoodWhereUniqueInput | Prisma.GoodWhereUniqueInput[]
|
|
|
|
|
disconnect?: Prisma.GoodWhereUniqueInput | Prisma.GoodWhereUniqueInput[]
|
|
|
|
|
delete?: Prisma.GoodWhereUniqueInput | Prisma.GoodWhereUniqueInput[]
|
|
|
|
|
connect?: Prisma.GoodWhereUniqueInput | Prisma.GoodWhereUniqueInput[]
|
|
|
|
|
update?: Prisma.GoodUpdateWithWhereUniqueWithoutGuildInput | Prisma.GoodUpdateWithWhereUniqueWithoutGuildInput[]
|
|
|
|
|
updateMany?: Prisma.GoodUpdateManyWithWhereWithoutGuildInput | Prisma.GoodUpdateManyWithWhereWithoutGuildInput[]
|
|
|
|
|
deleteMany?: Prisma.GoodScalarWhereInput | Prisma.GoodScalarWhereInput[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type GoodCreateNestedManyWithoutComplexInput = {
|
|
|
|
|
create?: Prisma.XOR<Prisma.GoodCreateWithoutComplexInput, Prisma.GoodUncheckedCreateWithoutComplexInput> | 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> | Prisma.GoodCreateWithoutComplexInput[] | Prisma.GoodUncheckedCreateWithoutComplexInput[]
|
|
|
|
|
connectOrCreate?: Prisma.GoodCreateOrConnectWithoutComplexInput | Prisma.GoodCreateOrConnectWithoutComplexInput[]
|
|
|
|
|
createMany?: Prisma.GoodCreateManyComplexInputEnvelope
|
|
|
|
|
connect?: Prisma.GoodWhereUniqueInput | Prisma.GoodWhereUniqueInput[]
|
2026-02-04 13:49:07 +03:30
|
|
|
}
|
|
|
|
|
|
2026-03-07 11:25:11 +03:30
|
|
|
export type GoodUpdateManyWithoutComplexNestedInput = {
|
|
|
|
|
create?: Prisma.XOR<Prisma.GoodCreateWithoutComplexInput, Prisma.GoodUncheckedCreateWithoutComplexInput> | 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> | 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[]
|
|
|
|
|
}
|
|
|
|
|
|
2026-03-11 20:42:34 +03:30
|
|
|
export type EnumUnitTypeFieldUpdateOperationsInput = {
|
|
|
|
|
set?: $Enums.UnitType
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type EnumGoodPricingModelFieldUpdateOperationsInput = {
|
|
|
|
|
set?: $Enums.GoodPricingModel
|
|
|
|
|
}
|
|
|
|
|
|
2026-03-07 11:25:11 +03:30
|
|
|
export type NullableDecimalFieldUpdateOperationsInput = {
|
|
|
|
|
set?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
2026-02-04 13:49:07 +03:30
|
|
|
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> | 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> | 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> | 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> | 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[]
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-12 20:31:04 +03:30
|
|
|
export type GoodCreateNestedOneWithoutSales_invoice_itemsInput = {
|
|
|
|
|
create?: Prisma.XOR<Prisma.GoodCreateWithoutSales_invoice_itemsInput, Prisma.GoodUncheckedCreateWithoutSales_invoice_itemsInput>
|
|
|
|
|
connectOrCreate?: Prisma.GoodCreateOrConnectWithoutSales_invoice_itemsInput
|
2026-02-04 13:49:07 +03:30
|
|
|
connect?: Prisma.GoodWhereUniqueInput
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-12 20:31:04 +03:30
|
|
|
export type GoodUpdateOneWithoutSales_invoice_itemsNestedInput = {
|
|
|
|
|
create?: Prisma.XOR<Prisma.GoodCreateWithoutSales_invoice_itemsInput, Prisma.GoodUncheckedCreateWithoutSales_invoice_itemsInput>
|
|
|
|
|
connectOrCreate?: Prisma.GoodCreateOrConnectWithoutSales_invoice_itemsInput
|
|
|
|
|
upsert?: Prisma.GoodUpsertWithoutSales_invoice_itemsInput
|
2026-02-04 13:49:07 +03:30
|
|
|
disconnect?: Prisma.GoodWhereInput | boolean
|
|
|
|
|
delete?: Prisma.GoodWhereInput | boolean
|
|
|
|
|
connect?: Prisma.GoodWhereUniqueInput
|
2026-02-12 20:31:04 +03:30
|
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.GoodUpdateToOneWithWhereWithoutSales_invoice_itemsInput, Prisma.GoodUpdateWithoutSales_invoice_itemsInput>, Prisma.GoodUncheckedUpdateWithoutSales_invoice_itemsInput>
|
2026-02-04 13:49:07 +03:30
|
|
|
}
|
|
|
|
|
|
2026-03-07 11:25:11 +03:30
|
|
|
export type GoodCreateWithoutGuildInput = {
|
2026-02-12 20:31:04 +03:30
|
|
|
id?: string
|
2026-02-04 13:49:07 +03:30
|
|
|
name: string
|
2026-03-11 20:42:34 +03:30
|
|
|
is_default_guild_good?: boolean
|
2026-02-04 13:49:07 +03:30
|
|
|
sku: string
|
2026-03-11 20:42:34 +03:30
|
|
|
unit_type: $Enums.UnitType
|
|
|
|
|
pricing_model: $Enums.GoodPricingModel
|
|
|
|
|
description?: string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
local_sku?: string | null
|
2026-02-04 13:49:07 +03:30
|
|
|
barcode?: string | null
|
2026-03-07 11:25:11 +03:30
|
|
|
base_sale_price?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
created_at?: Date | string
|
|
|
|
|
updated_at?: Date | string
|
|
|
|
|
deleted_at?: Date | string | null
|
2026-03-07 11:25:11 +03:30
|
|
|
category?: Prisma.GoodCategoryCreateNestedOneWithoutGoodsInput
|
|
|
|
|
complex?: Prisma.ComplexCreateNestedOneWithoutGoodsInput
|
2026-02-12 20:31:04 +03:30
|
|
|
sales_invoice_items?: Prisma.SalesInvoiceItemCreateNestedManyWithoutGoodInput
|
2026-02-04 13:49:07 +03:30
|
|
|
}
|
|
|
|
|
|
2026-03-07 11:25:11 +03:30
|
|
|
export type GoodUncheckedCreateWithoutGuildInput = {
|
2026-02-12 20:31:04 +03:30
|
|
|
id?: string
|
2026-02-04 13:49:07 +03:30
|
|
|
name: string
|
2026-03-11 20:42:34 +03:30
|
|
|
is_default_guild_good?: boolean
|
2026-02-04 13:49:07 +03:30
|
|
|
sku: string
|
2026-03-11 20:42:34 +03:30
|
|
|
unit_type: $Enums.UnitType
|
|
|
|
|
pricing_model: $Enums.GoodPricingModel
|
|
|
|
|
description?: string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
local_sku?: string | null
|
2026-02-04 13:49:07 +03:30
|
|
|
barcode?: string | null
|
2026-03-07 11:25:11 +03:30
|
|
|
base_sale_price?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
created_at?: Date | string
|
|
|
|
|
updated_at?: Date | string
|
|
|
|
|
deleted_at?: Date | string | null
|
2026-03-07 11:25:11 +03:30
|
|
|
complex_id?: string | null
|
|
|
|
|
category_id?: string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
sales_invoice_items?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutGoodInput
|
2026-02-04 13:49:07 +03:30
|
|
|
}
|
|
|
|
|
|
2026-03-07 11:25:11 +03:30
|
|
|
export type GoodCreateOrConnectWithoutGuildInput = {
|
2026-02-04 13:49:07 +03:30
|
|
|
where: Prisma.GoodWhereUniqueInput
|
2026-03-07 11:25:11 +03:30
|
|
|
create: Prisma.XOR<Prisma.GoodCreateWithoutGuildInput, Prisma.GoodUncheckedCreateWithoutGuildInput>
|
2026-02-04 13:49:07 +03:30
|
|
|
}
|
|
|
|
|
|
2026-03-07 11:25:11 +03:30
|
|
|
export type GoodCreateManyGuildInputEnvelope = {
|
|
|
|
|
data: Prisma.GoodCreateManyGuildInput | Prisma.GoodCreateManyGuildInput[]
|
2026-02-04 13:49:07 +03:30
|
|
|
skipDuplicates?: boolean
|
|
|
|
|
}
|
|
|
|
|
|
2026-03-07 11:25:11 +03:30
|
|
|
export type GoodUpsertWithWhereUniqueWithoutGuildInput = {
|
2026-02-04 13:49:07 +03:30
|
|
|
where: Prisma.GoodWhereUniqueInput
|
2026-03-07 11:25:11 +03:30
|
|
|
update: Prisma.XOR<Prisma.GoodUpdateWithoutGuildInput, Prisma.GoodUncheckedUpdateWithoutGuildInput>
|
|
|
|
|
create: Prisma.XOR<Prisma.GoodCreateWithoutGuildInput, Prisma.GoodUncheckedCreateWithoutGuildInput>
|
2026-02-04 13:49:07 +03:30
|
|
|
}
|
|
|
|
|
|
2026-03-07 11:25:11 +03:30
|
|
|
export type GoodUpdateWithWhereUniqueWithoutGuildInput = {
|
2026-02-04 13:49:07 +03:30
|
|
|
where: Prisma.GoodWhereUniqueInput
|
2026-03-07 11:25:11 +03:30
|
|
|
data: Prisma.XOR<Prisma.GoodUpdateWithoutGuildInput, Prisma.GoodUncheckedUpdateWithoutGuildInput>
|
2026-02-04 13:49:07 +03:30
|
|
|
}
|
|
|
|
|
|
2026-03-07 11:25:11 +03:30
|
|
|
export type GoodUpdateManyWithWhereWithoutGuildInput = {
|
2026-02-04 13:49:07 +03:30
|
|
|
where: Prisma.GoodScalarWhereInput
|
2026-03-07 11:25:11 +03:30
|
|
|
data: Prisma.XOR<Prisma.GoodUpdateManyMutationInput, Prisma.GoodUncheckedUpdateManyWithoutGuildInput>
|
2026-02-04 13:49:07 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type GoodScalarWhereInput = {
|
|
|
|
|
AND?: Prisma.GoodScalarWhereInput | Prisma.GoodScalarWhereInput[]
|
|
|
|
|
OR?: Prisma.GoodScalarWhereInput[]
|
|
|
|
|
NOT?: Prisma.GoodScalarWhereInput | Prisma.GoodScalarWhereInput[]
|
2026-02-12 20:31:04 +03:30
|
|
|
id?: Prisma.StringFilter<"Good"> | string
|
2026-02-04 13:49:07 +03:30
|
|
|
name?: Prisma.StringFilter<"Good"> | string
|
2026-03-11 20:42:34 +03:30
|
|
|
is_default_guild_good?: Prisma.BoolFilter<"Good"> | boolean
|
2026-02-04 13:49:07 +03:30
|
|
|
sku?: Prisma.StringFilter<"Good"> | string
|
2026-03-11 20:42:34 +03:30
|
|
|
unit_type?: Prisma.EnumUnitTypeFilter<"Good"> | $Enums.UnitType
|
|
|
|
|
pricing_model?: Prisma.EnumGoodPricingModelFilter<"Good"> | $Enums.GoodPricingModel
|
|
|
|
|
description?: Prisma.StringNullableFilter<"Good"> | string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
local_sku?: Prisma.StringNullableFilter<"Good"> | string | null
|
2026-02-04 13:49:07 +03:30
|
|
|
barcode?: Prisma.StringNullableFilter<"Good"> | string | null
|
2026-03-07 11:25:11 +03:30
|
|
|
base_sale_price?: Prisma.DecimalNullableFilter<"Good"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
created_at?: Prisma.DateTimeFilter<"Good"> | Date | string
|
|
|
|
|
updated_at?: Prisma.DateTimeFilter<"Good"> | Date | string
|
|
|
|
|
deleted_at?: Prisma.DateTimeNullableFilter<"Good"> | Date | string | null
|
2026-03-07 11:25:11 +03:30
|
|
|
complex_id?: Prisma.StringNullableFilter<"Good"> | string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
category_id?: Prisma.StringNullableFilter<"Good"> | string | null
|
2026-03-07 11:25:11 +03:30
|
|
|
guild_id?: Prisma.StringNullableFilter<"Good"> | string | null
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type GoodCreateWithoutComplexInput = {
|
|
|
|
|
id?: string
|
|
|
|
|
name: string
|
2026-03-11 20:42:34 +03:30
|
|
|
is_default_guild_good?: boolean
|
2026-03-07 11:25:11 +03:30
|
|
|
sku: string
|
2026-03-11 20:42:34 +03:30
|
|
|
unit_type: $Enums.UnitType
|
|
|
|
|
pricing_model: $Enums.GoodPricingModel
|
|
|
|
|
description?: string | null
|
2026-03-07 11:25:11 +03:30
|
|
|
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
|
|
|
|
|
guild?: Prisma.GuildCreateNestedOneWithoutGoodsInput
|
|
|
|
|
sales_invoice_items?: Prisma.SalesInvoiceItemCreateNestedManyWithoutGoodInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type GoodUncheckedCreateWithoutComplexInput = {
|
|
|
|
|
id?: string
|
|
|
|
|
name: string
|
2026-03-11 20:42:34 +03:30
|
|
|
is_default_guild_good?: boolean
|
2026-03-07 11:25:11 +03:30
|
|
|
sku: string
|
2026-03-11 20:42:34 +03:30
|
|
|
unit_type: $Enums.UnitType
|
|
|
|
|
pricing_model: $Enums.GoodPricingModel
|
|
|
|
|
description?: string | null
|
2026-03-07 11:25:11 +03:30
|
|
|
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
|
|
|
|
|
guild_id?: string | null
|
|
|
|
|
sales_invoice_items?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutGoodInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type GoodCreateOrConnectWithoutComplexInput = {
|
|
|
|
|
where: Prisma.GoodWhereUniqueInput
|
|
|
|
|
create: Prisma.XOR<Prisma.GoodCreateWithoutComplexInput, Prisma.GoodUncheckedCreateWithoutComplexInput>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type GoodCreateManyComplexInputEnvelope = {
|
|
|
|
|
data: Prisma.GoodCreateManyComplexInput | Prisma.GoodCreateManyComplexInput[]
|
|
|
|
|
skipDuplicates?: boolean
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type GoodUpsertWithWhereUniqueWithoutComplexInput = {
|
|
|
|
|
where: Prisma.GoodWhereUniqueInput
|
|
|
|
|
update: Prisma.XOR<Prisma.GoodUpdateWithoutComplexInput, Prisma.GoodUncheckedUpdateWithoutComplexInput>
|
|
|
|
|
create: Prisma.XOR<Prisma.GoodCreateWithoutComplexInput, Prisma.GoodUncheckedCreateWithoutComplexInput>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type GoodUpdateWithWhereUniqueWithoutComplexInput = {
|
|
|
|
|
where: Prisma.GoodWhereUniqueInput
|
|
|
|
|
data: Prisma.XOR<Prisma.GoodUpdateWithoutComplexInput, Prisma.GoodUncheckedUpdateWithoutComplexInput>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type GoodUpdateManyWithWhereWithoutComplexInput = {
|
|
|
|
|
where: Prisma.GoodScalarWhereInput
|
|
|
|
|
data: Prisma.XOR<Prisma.GoodUpdateManyMutationInput, Prisma.GoodUncheckedUpdateManyWithoutComplexInput>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type GoodCreateWithoutCategoryInput = {
|
|
|
|
|
id?: string
|
|
|
|
|
name: string
|
2026-03-11 20:42:34 +03:30
|
|
|
is_default_guild_good?: boolean
|
2026-03-07 11:25:11 +03:30
|
|
|
sku: string
|
2026-03-11 20:42:34 +03:30
|
|
|
unit_type: $Enums.UnitType
|
|
|
|
|
pricing_model: $Enums.GoodPricingModel
|
|
|
|
|
description?: string | null
|
2026-03-07 11:25:11 +03:30
|
|
|
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
|
|
|
|
|
guild?: Prisma.GuildCreateNestedOneWithoutGoodsInput
|
|
|
|
|
sales_invoice_items?: Prisma.SalesInvoiceItemCreateNestedManyWithoutGoodInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type GoodUncheckedCreateWithoutCategoryInput = {
|
|
|
|
|
id?: string
|
|
|
|
|
name: string
|
2026-03-11 20:42:34 +03:30
|
|
|
is_default_guild_good?: boolean
|
2026-03-07 11:25:11 +03:30
|
|
|
sku: string
|
2026-03-11 20:42:34 +03:30
|
|
|
unit_type: $Enums.UnitType
|
|
|
|
|
pricing_model: $Enums.GoodPricingModel
|
|
|
|
|
description?: string | null
|
2026-03-07 11:25:11 +03:30
|
|
|
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
|
|
|
|
|
guild_id?: string | null
|
|
|
|
|
sales_invoice_items?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutGoodInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type GoodCreateOrConnectWithoutCategoryInput = {
|
|
|
|
|
where: Prisma.GoodWhereUniqueInput
|
|
|
|
|
create: Prisma.XOR<Prisma.GoodCreateWithoutCategoryInput, Prisma.GoodUncheckedCreateWithoutCategoryInput>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type GoodCreateManyCategoryInputEnvelope = {
|
|
|
|
|
data: Prisma.GoodCreateManyCategoryInput | Prisma.GoodCreateManyCategoryInput[]
|
|
|
|
|
skipDuplicates?: boolean
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type GoodUpsertWithWhereUniqueWithoutCategoryInput = {
|
|
|
|
|
where: Prisma.GoodWhereUniqueInput
|
|
|
|
|
update: Prisma.XOR<Prisma.GoodUpdateWithoutCategoryInput, Prisma.GoodUncheckedUpdateWithoutCategoryInput>
|
|
|
|
|
create: Prisma.XOR<Prisma.GoodCreateWithoutCategoryInput, Prisma.GoodUncheckedCreateWithoutCategoryInput>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type GoodUpdateWithWhereUniqueWithoutCategoryInput = {
|
|
|
|
|
where: Prisma.GoodWhereUniqueInput
|
|
|
|
|
data: Prisma.XOR<Prisma.GoodUpdateWithoutCategoryInput, Prisma.GoodUncheckedUpdateWithoutCategoryInput>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type GoodUpdateManyWithWhereWithoutCategoryInput = {
|
|
|
|
|
where: Prisma.GoodScalarWhereInput
|
|
|
|
|
data: Prisma.XOR<Prisma.GoodUpdateManyMutationInput, Prisma.GoodUncheckedUpdateManyWithoutCategoryInput>
|
2026-02-04 13:49:07 +03:30
|
|
|
}
|
|
|
|
|
|
2026-02-12 20:31:04 +03:30
|
|
|
export type GoodCreateWithoutSales_invoice_itemsInput = {
|
|
|
|
|
id?: string
|
2026-02-04 13:49:07 +03:30
|
|
|
name: string
|
2026-03-11 20:42:34 +03:30
|
|
|
is_default_guild_good?: boolean
|
2026-02-04 13:49:07 +03:30
|
|
|
sku: string
|
2026-03-11 20:42:34 +03:30
|
|
|
unit_type: $Enums.UnitType
|
|
|
|
|
pricing_model: $Enums.GoodPricingModel
|
|
|
|
|
description?: string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
local_sku?: string | null
|
2026-02-04 13:49:07 +03:30
|
|
|
barcode?: string | null
|
2026-03-07 11:25:11 +03:30
|
|
|
base_sale_price?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
created_at?: Date | string
|
|
|
|
|
updated_at?: Date | string
|
|
|
|
|
deleted_at?: Date | string | null
|
2026-02-04 13:49:07 +03:30
|
|
|
category?: Prisma.GoodCategoryCreateNestedOneWithoutGoodsInput
|
2026-03-07 11:25:11 +03:30
|
|
|
complex?: Prisma.ComplexCreateNestedOneWithoutGoodsInput
|
|
|
|
|
guild?: Prisma.GuildCreateNestedOneWithoutGoodsInput
|
2026-02-04 13:49:07 +03:30
|
|
|
}
|
|
|
|
|
|
2026-02-12 20:31:04 +03:30
|
|
|
export type GoodUncheckedCreateWithoutSales_invoice_itemsInput = {
|
|
|
|
|
id?: string
|
2026-02-04 13:49:07 +03:30
|
|
|
name: string
|
2026-03-11 20:42:34 +03:30
|
|
|
is_default_guild_good?: boolean
|
2026-02-04 13:49:07 +03:30
|
|
|
sku: string
|
2026-03-11 20:42:34 +03:30
|
|
|
unit_type: $Enums.UnitType
|
|
|
|
|
pricing_model: $Enums.GoodPricingModel
|
|
|
|
|
description?: string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
local_sku?: string | null
|
2026-02-04 13:49:07 +03:30
|
|
|
barcode?: string | null
|
2026-03-07 11:25:11 +03:30
|
|
|
base_sale_price?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
created_at?: Date | string
|
|
|
|
|
updated_at?: Date | string
|
|
|
|
|
deleted_at?: Date | string | null
|
2026-03-07 11:25:11 +03:30
|
|
|
complex_id?: string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
category_id?: string | null
|
2026-03-07 11:25:11 +03:30
|
|
|
guild_id?: string | null
|
2026-02-04 13:49:07 +03:30
|
|
|
}
|
|
|
|
|
|
2026-02-12 20:31:04 +03:30
|
|
|
export type GoodCreateOrConnectWithoutSales_invoice_itemsInput = {
|
2026-02-04 13:49:07 +03:30
|
|
|
where: Prisma.GoodWhereUniqueInput
|
2026-02-12 20:31:04 +03:30
|
|
|
create: Prisma.XOR<Prisma.GoodCreateWithoutSales_invoice_itemsInput, Prisma.GoodUncheckedCreateWithoutSales_invoice_itemsInput>
|
2026-02-04 13:49:07 +03:30
|
|
|
}
|
|
|
|
|
|
2026-02-12 20:31:04 +03:30
|
|
|
export type GoodUpsertWithoutSales_invoice_itemsInput = {
|
|
|
|
|
update: Prisma.XOR<Prisma.GoodUpdateWithoutSales_invoice_itemsInput, Prisma.GoodUncheckedUpdateWithoutSales_invoice_itemsInput>
|
|
|
|
|
create: Prisma.XOR<Prisma.GoodCreateWithoutSales_invoice_itemsInput, Prisma.GoodUncheckedCreateWithoutSales_invoice_itemsInput>
|
2026-02-04 13:49:07 +03:30
|
|
|
where?: Prisma.GoodWhereInput
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-12 20:31:04 +03:30
|
|
|
export type GoodUpdateToOneWithWhereWithoutSales_invoice_itemsInput = {
|
2026-02-04 13:49:07 +03:30
|
|
|
where?: Prisma.GoodWhereInput
|
2026-02-12 20:31:04 +03:30
|
|
|
data: Prisma.XOR<Prisma.GoodUpdateWithoutSales_invoice_itemsInput, Prisma.GoodUncheckedUpdateWithoutSales_invoice_itemsInput>
|
2026-02-04 13:49:07 +03:30
|
|
|
}
|
|
|
|
|
|
2026-02-12 20:31:04 +03:30
|
|
|
export type GoodUpdateWithoutSales_invoice_itemsInput = {
|
|
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-02-04 13:49:07 +03:30
|
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-03-11 20:42:34 +03:30
|
|
|
is_default_guild_good?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
2026-02-04 13:49:07 +03:30
|
|
|
sku?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-03-11 20:42:34 +03:30
|
|
|
unit_type?: Prisma.EnumUnitTypeFieldUpdateOperationsInput | $Enums.UnitType
|
|
|
|
|
pricing_model?: Prisma.EnumGoodPricingModelFieldUpdateOperationsInput | $Enums.GoodPricingModel
|
|
|
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
local_sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
2026-02-04 13:49:07 +03:30
|
|
|
barcode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
2026-03-07 11:25:11 +03:30
|
|
|
base_sale_price?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
2026-02-04 13:49:07 +03:30
|
|
|
category?: Prisma.GoodCategoryUpdateOneWithoutGoodsNestedInput
|
2026-03-07 11:25:11 +03:30
|
|
|
complex?: Prisma.ComplexUpdateOneWithoutGoodsNestedInput
|
|
|
|
|
guild?: Prisma.GuildUpdateOneWithoutGoodsNestedInput
|
2026-02-04 13:49:07 +03:30
|
|
|
}
|
|
|
|
|
|
2026-02-12 20:31:04 +03:30
|
|
|
export type GoodUncheckedUpdateWithoutSales_invoice_itemsInput = {
|
|
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-02-04 13:49:07 +03:30
|
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-03-11 20:42:34 +03:30
|
|
|
is_default_guild_good?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
2026-02-04 13:49:07 +03:30
|
|
|
sku?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-03-11 20:42:34 +03:30
|
|
|
unit_type?: Prisma.EnumUnitTypeFieldUpdateOperationsInput | $Enums.UnitType
|
|
|
|
|
pricing_model?: Prisma.EnumGoodPricingModelFieldUpdateOperationsInput | $Enums.GoodPricingModel
|
|
|
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
local_sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
2026-02-04 13:49:07 +03:30
|
|
|
barcode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
2026-03-07 11:25:11 +03:30
|
|
|
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
|
|
|
|
|
guild_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type GoodCreateManyGuildInput = {
|
|
|
|
|
id?: string
|
|
|
|
|
name: string
|
2026-03-11 20:42:34 +03:30
|
|
|
is_default_guild_good?: boolean
|
2026-03-07 11:25:11 +03:30
|
|
|
sku: string
|
2026-03-11 20:42:34 +03:30
|
|
|
unit_type: $Enums.UnitType
|
|
|
|
|
pricing_model: $Enums.GoodPricingModel
|
|
|
|
|
description?: string | null
|
2026-03-07 11:25:11 +03:30
|
|
|
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 GoodUpdateWithoutGuildInput = {
|
|
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-03-11 20:42:34 +03:30
|
|
|
is_default_guild_good?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
2026-03-07 11:25:11 +03:30
|
|
|
sku?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-03-11 20:42:34 +03:30
|
|
|
unit_type?: Prisma.EnumUnitTypeFieldUpdateOperationsInput | $Enums.UnitType
|
|
|
|
|
pricing_model?: Prisma.EnumGoodPricingModelFieldUpdateOperationsInput | $Enums.GoodPricingModel
|
|
|
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
2026-03-07 11:25:11 +03:30
|
|
|
local_sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
|
|
|
barcode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
|
|
|
base_sale_price?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
2026-03-07 11:25:11 +03:30
|
|
|
category?: Prisma.GoodCategoryUpdateOneWithoutGoodsNestedInput
|
|
|
|
|
complex?: Prisma.ComplexUpdateOneWithoutGoodsNestedInput
|
|
|
|
|
sales_invoice_items?: Prisma.SalesInvoiceItemUpdateManyWithoutGoodNestedInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type GoodUncheckedUpdateWithoutGuildInput = {
|
|
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-03-11 20:42:34 +03:30
|
|
|
is_default_guild_good?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
2026-03-07 11:25:11 +03:30
|
|
|
sku?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-03-11 20:42:34 +03:30
|
|
|
unit_type?: Prisma.EnumUnitTypeFieldUpdateOperationsInput | $Enums.UnitType
|
|
|
|
|
pricing_model?: Prisma.EnumGoodPricingModelFieldUpdateOperationsInput | $Enums.GoodPricingModel
|
|
|
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
2026-03-07 11:25:11 +03:30
|
|
|
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
|
2026-02-12 20:31:04 +03:30
|
|
|
category_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
2026-03-07 11:25:11 +03:30
|
|
|
sales_invoice_items?: Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutGoodNestedInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type GoodUncheckedUpdateManyWithoutGuildInput = {
|
|
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-03-11 20:42:34 +03:30
|
|
|
is_default_guild_good?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
2026-03-07 11:25:11 +03:30
|
|
|
sku?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-03-11 20:42:34 +03:30
|
|
|
unit_type?: Prisma.EnumUnitTypeFieldUpdateOperationsInput | $Enums.UnitType
|
|
|
|
|
pricing_model?: Prisma.EnumGoodPricingModelFieldUpdateOperationsInput | $Enums.GoodPricingModel
|
|
|
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
2026-03-07 11:25:11 +03:30
|
|
|
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
|
2026-03-11 20:42:34 +03:30
|
|
|
is_default_guild_good?: boolean
|
2026-03-07 11:25:11 +03:30
|
|
|
sku: string
|
2026-03-11 20:42:34 +03:30
|
|
|
unit_type: $Enums.UnitType
|
|
|
|
|
pricing_model: $Enums.GoodPricingModel
|
|
|
|
|
description?: string | null
|
2026-03-07 11:25:11 +03:30
|
|
|
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
|
|
|
|
|
guild_id?: string | null
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type GoodUpdateWithoutComplexInput = {
|
|
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-03-11 20:42:34 +03:30
|
|
|
is_default_guild_good?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
2026-03-07 11:25:11 +03:30
|
|
|
sku?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-03-11 20:42:34 +03:30
|
|
|
unit_type?: Prisma.EnumUnitTypeFieldUpdateOperationsInput | $Enums.UnitType
|
|
|
|
|
pricing_model?: Prisma.EnumGoodPricingModelFieldUpdateOperationsInput | $Enums.GoodPricingModel
|
|
|
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
2026-03-07 11:25:11 +03:30
|
|
|
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
|
|
|
|
|
guild?: Prisma.GuildUpdateOneWithoutGoodsNestedInput
|
|
|
|
|
sales_invoice_items?: Prisma.SalesInvoiceItemUpdateManyWithoutGoodNestedInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type GoodUncheckedUpdateWithoutComplexInput = {
|
|
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-03-11 20:42:34 +03:30
|
|
|
is_default_guild_good?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
2026-03-07 11:25:11 +03:30
|
|
|
sku?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-03-11 20:42:34 +03:30
|
|
|
unit_type?: Prisma.EnumUnitTypeFieldUpdateOperationsInput | $Enums.UnitType
|
|
|
|
|
pricing_model?: Prisma.EnumGoodPricingModelFieldUpdateOperationsInput | $Enums.GoodPricingModel
|
|
|
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
2026-03-07 11:25:11 +03:30
|
|
|
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
|
|
|
|
|
guild_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
|
|
|
sales_invoice_items?: Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutGoodNestedInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type GoodUncheckedUpdateManyWithoutComplexInput = {
|
|
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-03-11 20:42:34 +03:30
|
|
|
is_default_guild_good?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
2026-03-07 11:25:11 +03:30
|
|
|
sku?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-03-11 20:42:34 +03:30
|
|
|
unit_type?: Prisma.EnumUnitTypeFieldUpdateOperationsInput | $Enums.UnitType
|
|
|
|
|
pricing_model?: Prisma.EnumGoodPricingModelFieldUpdateOperationsInput | $Enums.GoodPricingModel
|
|
|
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
2026-03-07 11:25:11 +03:30
|
|
|
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
|
|
|
|
|
guild_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
2026-02-04 13:49:07 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type GoodCreateManyCategoryInput = {
|
2026-02-12 20:31:04 +03:30
|
|
|
id?: string
|
2026-02-04 13:49:07 +03:30
|
|
|
name: string
|
2026-03-11 20:42:34 +03:30
|
|
|
is_default_guild_good?: boolean
|
2026-02-04 13:49:07 +03:30
|
|
|
sku: string
|
2026-03-11 20:42:34 +03:30
|
|
|
unit_type: $Enums.UnitType
|
|
|
|
|
pricing_model: $Enums.GoodPricingModel
|
|
|
|
|
description?: string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
local_sku?: string | null
|
2026-02-04 13:49:07 +03:30
|
|
|
barcode?: string | null
|
2026-03-07 11:25:11 +03:30
|
|
|
base_sale_price?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
created_at?: Date | string
|
|
|
|
|
updated_at?: Date | string
|
|
|
|
|
deleted_at?: Date | string | null
|
2026-03-07 11:25:11 +03:30
|
|
|
complex_id?: string | null
|
|
|
|
|
guild_id?: string | null
|
2026-02-04 13:49:07 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type GoodUpdateWithoutCategoryInput = {
|
2026-02-12 20:31:04 +03:30
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-02-04 13:49:07 +03:30
|
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-03-11 20:42:34 +03:30
|
|
|
is_default_guild_good?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
2026-02-04 13:49:07 +03:30
|
|
|
sku?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-03-11 20:42:34 +03:30
|
|
|
unit_type?: Prisma.EnumUnitTypeFieldUpdateOperationsInput | $Enums.UnitType
|
|
|
|
|
pricing_model?: Prisma.EnumGoodPricingModelFieldUpdateOperationsInput | $Enums.GoodPricingModel
|
|
|
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
local_sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
2026-02-04 13:49:07 +03:30
|
|
|
barcode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
2026-03-07 11:25:11 +03:30
|
|
|
base_sale_price?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
2026-03-07 11:25:11 +03:30
|
|
|
complex?: Prisma.ComplexUpdateOneWithoutGoodsNestedInput
|
|
|
|
|
guild?: Prisma.GuildUpdateOneWithoutGoodsNestedInput
|
2026-02-12 20:31:04 +03:30
|
|
|
sales_invoice_items?: Prisma.SalesInvoiceItemUpdateManyWithoutGoodNestedInput
|
2026-02-04 13:49:07 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type GoodUncheckedUpdateWithoutCategoryInput = {
|
2026-02-12 20:31:04 +03:30
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-02-04 13:49:07 +03:30
|
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-03-11 20:42:34 +03:30
|
|
|
is_default_guild_good?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
2026-02-04 13:49:07 +03:30
|
|
|
sku?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-03-11 20:42:34 +03:30
|
|
|
unit_type?: Prisma.EnumUnitTypeFieldUpdateOperationsInput | $Enums.UnitType
|
|
|
|
|
pricing_model?: Prisma.EnumGoodPricingModelFieldUpdateOperationsInput | $Enums.GoodPricingModel
|
|
|
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
local_sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
2026-02-04 13:49:07 +03:30
|
|
|
barcode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
2026-03-07 11:25:11 +03:30
|
|
|
base_sale_price?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
2026-03-07 11:25:11 +03:30
|
|
|
complex_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
|
|
|
guild_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
sales_invoice_items?: Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutGoodNestedInput
|
2026-02-04 13:49:07 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type GoodUncheckedUpdateManyWithoutCategoryInput = {
|
2026-02-12 20:31:04 +03:30
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-02-04 13:49:07 +03:30
|
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-03-11 20:42:34 +03:30
|
|
|
is_default_guild_good?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
2026-02-04 13:49:07 +03:30
|
|
|
sku?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-03-11 20:42:34 +03:30
|
|
|
unit_type?: Prisma.EnumUnitTypeFieldUpdateOperationsInput | $Enums.UnitType
|
|
|
|
|
pricing_model?: Prisma.EnumGoodPricingModelFieldUpdateOperationsInput | $Enums.GoodPricingModel
|
|
|
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
local_sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
2026-02-04 13:49:07 +03:30
|
|
|
barcode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
2026-03-07 11:25:11 +03:30
|
|
|
base_sale_price?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
2026-03-07 11:25:11 +03:30
|
|
|
complex_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
|
|
|
guild_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
2026-02-04 13:49:07 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Count Type GoodCountOutputType
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
export type GoodCountOutputType = {
|
2026-02-12 20:31:04 +03:30
|
|
|
sales_invoice_items: number
|
2026-02-04 13:49:07 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type GoodCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
2026-02-12 20:31:04 +03:30
|
|
|
sales_invoice_items?: boolean | GoodCountOutputTypeCountSales_invoice_itemsArgs
|
2026-02-04 13:49:07 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* GoodCountOutputType without action
|
|
|
|
|
*/
|
|
|
|
|
export type GoodCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the GoodCountOutputType
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.GoodCountOutputTypeSelect<ExtArgs> | null
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* GoodCountOutputType without action
|
|
|
|
|
*/
|
2026-02-12 20:31:04 +03:30
|
|
|
export type GoodCountOutputTypeCountSales_invoice_itemsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
2026-02-04 13:49:07 +03:30
|
|
|
where?: Prisma.SalesInvoiceItemWhereInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export type GoodSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
|
|
|
id?: boolean
|
|
|
|
|
name?: boolean
|
2026-03-11 20:42:34 +03:30
|
|
|
is_default_guild_good?: boolean
|
2026-02-04 13:49:07 +03:30
|
|
|
sku?: boolean
|
2026-03-11 20:42:34 +03:30
|
|
|
unit_type?: boolean
|
|
|
|
|
pricing_model?: boolean
|
|
|
|
|
description?: boolean
|
2026-02-12 20:31:04 +03:30
|
|
|
local_sku?: boolean
|
2026-02-04 13:49:07 +03:30
|
|
|
barcode?: boolean
|
2026-03-07 11:25:11 +03:30
|
|
|
base_sale_price?: boolean
|
2026-02-12 20:31:04 +03:30
|
|
|
created_at?: boolean
|
|
|
|
|
updated_at?: boolean
|
|
|
|
|
deleted_at?: boolean
|
|
|
|
|
complex_id?: boolean
|
2026-03-07 11:25:11 +03:30
|
|
|
category_id?: boolean
|
|
|
|
|
guild_id?: boolean
|
2026-02-04 13:49:07 +03:30
|
|
|
category?: boolean | Prisma.Good$categoryArgs<ExtArgs>
|
2026-03-07 11:25:11 +03:30
|
|
|
complex?: boolean | Prisma.Good$complexArgs<ExtArgs>
|
|
|
|
|
guild?: boolean | Prisma.Good$guildArgs<ExtArgs>
|
2026-02-12 20:31:04 +03:30
|
|
|
sales_invoice_items?: boolean | Prisma.Good$sales_invoice_itemsArgs<ExtArgs>
|
2026-02-04 13:49:07 +03:30
|
|
|
_count?: boolean | Prisma.GoodCountOutputTypeDefaultArgs<ExtArgs>
|
|
|
|
|
}, ExtArgs["result"]["good"]>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export type GoodSelectScalar = {
|
|
|
|
|
id?: boolean
|
|
|
|
|
name?: boolean
|
2026-03-11 20:42:34 +03:30
|
|
|
is_default_guild_good?: boolean
|
2026-02-04 13:49:07 +03:30
|
|
|
sku?: boolean
|
2026-03-11 20:42:34 +03:30
|
|
|
unit_type?: boolean
|
|
|
|
|
pricing_model?: boolean
|
|
|
|
|
description?: boolean
|
2026-02-12 20:31:04 +03:30
|
|
|
local_sku?: boolean
|
2026-02-04 13:49:07 +03:30
|
|
|
barcode?: boolean
|
2026-03-07 11:25:11 +03:30
|
|
|
base_sale_price?: boolean
|
2026-02-12 20:31:04 +03:30
|
|
|
created_at?: boolean
|
|
|
|
|
updated_at?: boolean
|
|
|
|
|
deleted_at?: boolean
|
|
|
|
|
complex_id?: boolean
|
2026-03-07 11:25:11 +03:30
|
|
|
category_id?: boolean
|
|
|
|
|
guild_id?: boolean
|
2026-02-04 13:49:07 +03:30
|
|
|
}
|
|
|
|
|
|
2026-03-11 20:42:34 +03:30
|
|
|
export type GoodOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = 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" | "guild_id", ExtArgs["result"]["good"]>
|
2026-02-04 13:49:07 +03:30
|
|
|
export type GoodInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
category?: boolean | Prisma.Good$categoryArgs<ExtArgs>
|
2026-03-07 11:25:11 +03:30
|
|
|
complex?: boolean | Prisma.Good$complexArgs<ExtArgs>
|
|
|
|
|
guild?: boolean | Prisma.Good$guildArgs<ExtArgs>
|
2026-02-12 20:31:04 +03:30
|
|
|
sales_invoice_items?: boolean | Prisma.Good$sales_invoice_itemsArgs<ExtArgs>
|
2026-02-04 13:49:07 +03:30
|
|
|
_count?: boolean | Prisma.GoodCountOutputTypeDefaultArgs<ExtArgs>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type $GoodPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
name: "Good"
|
|
|
|
|
objects: {
|
|
|
|
|
category: Prisma.$GoodCategoryPayload<ExtArgs> | null
|
2026-03-07 11:25:11 +03:30
|
|
|
complex: Prisma.$ComplexPayload<ExtArgs> | null
|
|
|
|
|
guild: Prisma.$GuildPayload<ExtArgs> | null
|
2026-02-12 20:31:04 +03:30
|
|
|
sales_invoice_items: Prisma.$SalesInvoiceItemPayload<ExtArgs>[]
|
2026-02-04 13:49:07 +03:30
|
|
|
}
|
|
|
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
2026-02-12 20:31:04 +03:30
|
|
|
id: string
|
2026-02-04 13:49:07 +03:30
|
|
|
name: string
|
2026-03-11 20:42:34 +03:30
|
|
|
is_default_guild_good: boolean
|
2026-02-04 13:49:07 +03:30
|
|
|
sku: string
|
2026-03-11 20:42:34 +03:30
|
|
|
unit_type: $Enums.UnitType
|
|
|
|
|
pricing_model: $Enums.GoodPricingModel
|
|
|
|
|
description: string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
local_sku: string | null
|
2026-02-04 13:49:07 +03:30
|
|
|
barcode: string | null
|
2026-03-07 11:25:11 +03:30
|
|
|
base_sale_price: runtime.Decimal | null
|
2026-02-12 20:31:04 +03:30
|
|
|
created_at: Date
|
|
|
|
|
updated_at: Date
|
|
|
|
|
deleted_at: Date | null
|
2026-03-07 11:25:11 +03:30
|
|
|
complex_id: string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
category_id: string | null
|
2026-03-07 11:25:11 +03:30
|
|
|
guild_id: string | null
|
2026-02-04 13:49:07 +03:30
|
|
|
}, ExtArgs["result"]["good"]>
|
|
|
|
|
composites: {}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type GoodGetPayload<S extends boolean | null | undefined | GoodDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$GoodPayload, S>
|
|
|
|
|
|
|
|
|
|
export type GoodCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
|
|
|
Omit<GoodFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
|
|
|
select?: GoodCountAggregateInputType | true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface GoodDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
|
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['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<T extends GoodFindUniqueArgs>(args: Prisma.SelectSubset<T, GoodFindUniqueArgs<ExtArgs>>): Prisma.Prisma__GoodClient<runtime.Types.Result.GetResult<Prisma.$GoodPayload<ExtArgs>, 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<T extends GoodFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, GoodFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__GoodClient<runtime.Types.Result.GetResult<Prisma.$GoodPayload<ExtArgs>, 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<T extends GoodFindFirstArgs>(args?: Prisma.SelectSubset<T, GoodFindFirstArgs<ExtArgs>>): Prisma.Prisma__GoodClient<runtime.Types.Result.GetResult<Prisma.$GoodPayload<ExtArgs>, 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<T extends GoodFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, GoodFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__GoodClient<runtime.Types.Result.GetResult<Prisma.$GoodPayload<ExtArgs>, 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<T extends GoodFindManyArgs>(args?: Prisma.SelectSubset<T, GoodFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$GoodPayload<ExtArgs>, 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<T extends GoodCreateArgs>(args: Prisma.SelectSubset<T, GoodCreateArgs<ExtArgs>>): Prisma.Prisma__GoodClient<runtime.Types.Result.GetResult<Prisma.$GoodPayload<ExtArgs>, 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<T extends GoodCreateManyArgs>(args?: Prisma.SelectSubset<T, GoodCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 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<T extends GoodDeleteArgs>(args: Prisma.SelectSubset<T, GoodDeleteArgs<ExtArgs>>): Prisma.Prisma__GoodClient<runtime.Types.Result.GetResult<Prisma.$GoodPayload<ExtArgs>, 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<T extends GoodUpdateArgs>(args: Prisma.SelectSubset<T, GoodUpdateArgs<ExtArgs>>): Prisma.Prisma__GoodClient<runtime.Types.Result.GetResult<Prisma.$GoodPayload<ExtArgs>, 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<T extends GoodDeleteManyArgs>(args?: Prisma.SelectSubset<T, GoodDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 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<T extends GoodUpdateManyArgs>(args: Prisma.SelectSubset<T, GoodUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 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<T extends GoodUpsertArgs>(args: Prisma.SelectSubset<T, GoodUpsertArgs<ExtArgs>>): Prisma.Prisma__GoodClient<runtime.Types.Result.GetResult<Prisma.$GoodPayload<ExtArgs>, 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<T extends GoodCountArgs>(
|
|
|
|
|
args?: Prisma.Subset<T, GoodCountArgs>,
|
|
|
|
|
): Prisma.PrismaPromise<
|
|
|
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
|
|
|
? T['select'] extends true
|
|
|
|
|
? number
|
|
|
|
|
: Prisma.GetScalarType<T['select'], GoodCountAggregateOutputType>
|
|
|
|
|
: 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<T extends GoodAggregateArgs>(args: Prisma.Subset<T, GoodAggregateArgs>): Prisma.PrismaPromise<GetGoodAggregateType<T>>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 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<T>>,
|
|
|
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
|
|
|
>,
|
|
|
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
|
|
|
? { orderBy: GoodGroupByArgs['orderBy'] }
|
|
|
|
|
: { orderBy?: GoodGroupByArgs['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, GoodGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetGoodGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
|
|
|
/**
|
|
|
|
|
* 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<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
|
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
|
|
|
category<T extends Prisma.Good$categoryArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Good$categoryArgs<ExtArgs>>): Prisma.Prisma__GoodCategoryClient<runtime.Types.Result.GetResult<Prisma.$GoodCategoryPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
2026-03-07 11:25:11 +03:30
|
|
|
complex<T extends Prisma.Good$complexArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Good$complexArgs<ExtArgs>>): Prisma.Prisma__ComplexClient<runtime.Types.Result.GetResult<Prisma.$ComplexPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
guild<T extends Prisma.Good$guildArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Good$guildArgs<ExtArgs>>): Prisma.Prisma__GuildClient<runtime.Types.Result.GetResult<Prisma.$GuildPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
2026-02-12 20:31:04 +03:30
|
|
|
sales_invoice_items<T extends Prisma.Good$sales_invoice_itemsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Good$sales_invoice_itemsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SalesInvoiceItemPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
2026-02-04 13:49:07 +03:30
|
|
|
/**
|
|
|
|
|
* 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 Good model
|
|
|
|
|
*/
|
|
|
|
|
export interface GoodFieldRefs {
|
2026-02-12 20:31:04 +03:30
|
|
|
readonly id: Prisma.FieldRef<"Good", 'String'>
|
2026-02-04 13:49:07 +03:30
|
|
|
readonly name: Prisma.FieldRef<"Good", 'String'>
|
2026-03-11 20:42:34 +03:30
|
|
|
readonly is_default_guild_good: Prisma.FieldRef<"Good", 'Boolean'>
|
2026-02-04 13:49:07 +03:30
|
|
|
readonly sku: Prisma.FieldRef<"Good", 'String'>
|
2026-03-11 20:42:34 +03:30
|
|
|
readonly unit_type: Prisma.FieldRef<"Good", 'UnitType'>
|
|
|
|
|
readonly pricing_model: Prisma.FieldRef<"Good", 'GoodPricingModel'>
|
|
|
|
|
readonly description: Prisma.FieldRef<"Good", 'String'>
|
2026-02-12 20:31:04 +03:30
|
|
|
readonly local_sku: Prisma.FieldRef<"Good", 'String'>
|
2026-02-04 13:49:07 +03:30
|
|
|
readonly barcode: Prisma.FieldRef<"Good", 'String'>
|
2026-03-07 11:25:11 +03:30
|
|
|
readonly base_sale_price: Prisma.FieldRef<"Good", 'Decimal'>
|
2026-02-12 20:31:04 +03:30
|
|
|
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'>
|
2026-03-07 11:25:11 +03:30
|
|
|
readonly category_id: Prisma.FieldRef<"Good", 'String'>
|
|
|
|
|
readonly guild_id: Prisma.FieldRef<"Good", 'String'>
|
2026-02-04 13:49:07 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Custom InputTypes
|
|
|
|
|
/**
|
|
|
|
|
* Good findUnique
|
|
|
|
|
*/
|
|
|
|
|
export type GoodFindUniqueArgs<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
|
|
|
|
|
/**
|
|
|
|
|
* Filter, which Good to fetch.
|
|
|
|
|
*/
|
|
|
|
|
where: Prisma.GoodWhereUniqueInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Good findUniqueOrThrow
|
|
|
|
|
*/
|
|
|
|
|
export type GoodFindUniqueOrThrowArgs<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
|
|
|
|
|
/**
|
|
|
|
|
* Filter, which Good to fetch.
|
|
|
|
|
*/
|
|
|
|
|
where: Prisma.GoodWhereUniqueInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Good findFirst
|
|
|
|
|
*/
|
|
|
|
|
export type GoodFindFirstArgs<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
|
|
|
|
|
/**
|
|
|
|
|
* 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<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
|
|
|
|
|
/**
|
|
|
|
|
* 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<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
|
|
|
|
|
/**
|
|
|
|
|
* 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<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
|
|
|
|
|
/**
|
|
|
|
|
* The data needed to create a Good.
|
|
|
|
|
*/
|
|
|
|
|
data: Prisma.XOR<Prisma.GoodCreateInput, Prisma.GoodUncheckedCreateInput>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Good createMany
|
|
|
|
|
*/
|
|
|
|
|
export type GoodCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* The data used to create many Goods.
|
|
|
|
|
*/
|
|
|
|
|
data: Prisma.GoodCreateManyInput | Prisma.GoodCreateManyInput[]
|
|
|
|
|
skipDuplicates?: boolean
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Good update
|
|
|
|
|
*/
|
|
|
|
|
export type GoodUpdateArgs<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
|
|
|
|
|
/**
|
|
|
|
|
* The data needed to update a Good.
|
|
|
|
|
*/
|
|
|
|
|
data: Prisma.XOR<Prisma.GoodUpdateInput, Prisma.GoodUncheckedUpdateInput>
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which Good to update.
|
|
|
|
|
*/
|
|
|
|
|
where: Prisma.GoodWhereUniqueInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Good updateMany
|
|
|
|
|
*/
|
|
|
|
|
export type GoodUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* The data used to update Goods.
|
|
|
|
|
*/
|
|
|
|
|
data: Prisma.XOR<Prisma.GoodUpdateManyMutationInput, Prisma.GoodUncheckedUpdateManyInput>
|
|
|
|
|
/**
|
|
|
|
|
* Filter which Goods to update
|
|
|
|
|
*/
|
|
|
|
|
where?: Prisma.GoodWhereInput
|
|
|
|
|
/**
|
|
|
|
|
* Limit how many Goods to update.
|
|
|
|
|
*/
|
|
|
|
|
limit?: number
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Good upsert
|
|
|
|
|
*/
|
|
|
|
|
export type GoodUpsertArgs<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
|
|
|
|
|
/**
|
|
|
|
|
* 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<Prisma.GoodCreateInput, Prisma.GoodUncheckedCreateInput>
|
|
|
|
|
/**
|
|
|
|
|
* In case the Good was found with the provided `where` argument, update it with this data.
|
|
|
|
|
*/
|
|
|
|
|
update: Prisma.XOR<Prisma.GoodUpdateInput, Prisma.GoodUncheckedUpdateInput>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Good delete
|
|
|
|
|
*/
|
|
|
|
|
export type GoodDeleteArgs<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
|
|
|
|
|
/**
|
|
|
|
|
* Filter which Good to delete.
|
|
|
|
|
*/
|
|
|
|
|
where: Prisma.GoodWhereUniqueInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Good deleteMany
|
|
|
|
|
*/
|
|
|
|
|
export type GoodDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Filter which Goods to delete
|
|
|
|
|
*/
|
|
|
|
|
where?: Prisma.GoodWhereInput
|
|
|
|
|
/**
|
|
|
|
|
* Limit how many Goods to delete.
|
|
|
|
|
*/
|
|
|
|
|
limit?: number
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Good.category
|
|
|
|
|
*/
|
|
|
|
|
export type Good$categoryArgs<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
|
|
|
|
|
}
|
|
|
|
|
|
2026-03-07 11:25:11 +03:30
|
|
|
/**
|
|
|
|
|
* Good.complex
|
|
|
|
|
*/
|
|
|
|
|
export type Good$complexArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the Complex
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.ComplexSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the Complex
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.ComplexOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.ComplexInclude<ExtArgs> | null
|
|
|
|
|
where?: Prisma.ComplexWhereInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Good.guild
|
|
|
|
|
*/
|
|
|
|
|
export type Good$guildArgs<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
|
|
|
|
|
where?: Prisma.GuildWhereInput
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-04 13:49:07 +03:30
|
|
|
/**
|
2026-02-12 20:31:04 +03:30
|
|
|
* Good.sales_invoice_items
|
2026-02-04 13:49:07 +03:30
|
|
|
*/
|
2026-02-12 20:31:04 +03:30
|
|
|
export type Good$sales_invoice_itemsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
2026-02-04 13:49:07 +03:30
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the SalesInvoiceItem
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.SalesInvoiceItemSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the SalesInvoiceItem
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.SalesInvoiceItemOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.SalesInvoiceItemInclude<ExtArgs> | 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<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
|
|
|
|
|
}
|