1882 lines
82 KiB
TypeScript
1882 lines
82 KiB
TypeScript
|
|
|
||
|
|
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
||
|
|
/* eslint-disable */
|
||
|
|
// biome-ignore-all lint: generated file
|
||
|
|
// @ts-nocheck
|
||
|
|
/*
|
||
|
|
* This file exports the `ProductCharge` 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 ProductCharge
|
||
|
|
*
|
||
|
|
*/
|
||
|
|
export type ProductChargeModel = runtime.Types.Result.DefaultSelection<Prisma.$ProductChargePayload>
|
||
|
|
|
||
|
|
export type AggregateProductCharge = {
|
||
|
|
_count: ProductChargeCountAggregateOutputType | null
|
||
|
|
_avg: ProductChargeAvgAggregateOutputType | null
|
||
|
|
_sum: ProductChargeSumAggregateOutputType | null
|
||
|
|
_min: ProductChargeMinAggregateOutputType | null
|
||
|
|
_max: ProductChargeMaxAggregateOutputType | null
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeAvgAggregateOutputType = {
|
||
|
|
id: number | null
|
||
|
|
count: runtime.Decimal | null
|
||
|
|
fee: runtime.Decimal | null
|
||
|
|
totalAmount: runtime.Decimal | null
|
||
|
|
productId: number | null
|
||
|
|
inventoryId: number | null
|
||
|
|
supplierId: number | null
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeSumAggregateOutputType = {
|
||
|
|
id: number | null
|
||
|
|
count: runtime.Decimal | null
|
||
|
|
fee: runtime.Decimal | null
|
||
|
|
totalAmount: runtime.Decimal | null
|
||
|
|
productId: number | null
|
||
|
|
inventoryId: number | null
|
||
|
|
supplierId: number | null
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeMinAggregateOutputType = {
|
||
|
|
id: number | null
|
||
|
|
count: runtime.Decimal | null
|
||
|
|
fee: runtime.Decimal | null
|
||
|
|
totalAmount: runtime.Decimal | null
|
||
|
|
isSettled: boolean | null
|
||
|
|
buyAt: Date | null
|
||
|
|
description: string | null
|
||
|
|
createdAt: Date | null
|
||
|
|
updatedAt: Date | null
|
||
|
|
deletedAt: Date | null
|
||
|
|
productId: number | null
|
||
|
|
inventoryId: number | null
|
||
|
|
supplierId: number | null
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeMaxAggregateOutputType = {
|
||
|
|
id: number | null
|
||
|
|
count: runtime.Decimal | null
|
||
|
|
fee: runtime.Decimal | null
|
||
|
|
totalAmount: runtime.Decimal | null
|
||
|
|
isSettled: boolean | null
|
||
|
|
buyAt: Date | null
|
||
|
|
description: string | null
|
||
|
|
createdAt: Date | null
|
||
|
|
updatedAt: Date | null
|
||
|
|
deletedAt: Date | null
|
||
|
|
productId: number | null
|
||
|
|
inventoryId: number | null
|
||
|
|
supplierId: number | null
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeCountAggregateOutputType = {
|
||
|
|
id: number
|
||
|
|
count: number
|
||
|
|
fee: number
|
||
|
|
totalAmount: number
|
||
|
|
isSettled: number
|
||
|
|
buyAt: number
|
||
|
|
description: number
|
||
|
|
createdAt: number
|
||
|
|
updatedAt: number
|
||
|
|
deletedAt: number
|
||
|
|
productId: number
|
||
|
|
inventoryId: number
|
||
|
|
supplierId: number
|
||
|
|
_all: number
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
export type ProductChargeAvgAggregateInputType = {
|
||
|
|
id?: true
|
||
|
|
count?: true
|
||
|
|
fee?: true
|
||
|
|
totalAmount?: true
|
||
|
|
productId?: true
|
||
|
|
inventoryId?: true
|
||
|
|
supplierId?: true
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeSumAggregateInputType = {
|
||
|
|
id?: true
|
||
|
|
count?: true
|
||
|
|
fee?: true
|
||
|
|
totalAmount?: true
|
||
|
|
productId?: true
|
||
|
|
inventoryId?: true
|
||
|
|
supplierId?: true
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeMinAggregateInputType = {
|
||
|
|
id?: true
|
||
|
|
count?: true
|
||
|
|
fee?: true
|
||
|
|
totalAmount?: true
|
||
|
|
isSettled?: true
|
||
|
|
buyAt?: true
|
||
|
|
description?: true
|
||
|
|
createdAt?: true
|
||
|
|
updatedAt?: true
|
||
|
|
deletedAt?: true
|
||
|
|
productId?: true
|
||
|
|
inventoryId?: true
|
||
|
|
supplierId?: true
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeMaxAggregateInputType = {
|
||
|
|
id?: true
|
||
|
|
count?: true
|
||
|
|
fee?: true
|
||
|
|
totalAmount?: true
|
||
|
|
isSettled?: true
|
||
|
|
buyAt?: true
|
||
|
|
description?: true
|
||
|
|
createdAt?: true
|
||
|
|
updatedAt?: true
|
||
|
|
deletedAt?: true
|
||
|
|
productId?: true
|
||
|
|
inventoryId?: true
|
||
|
|
supplierId?: true
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeCountAggregateInputType = {
|
||
|
|
id?: true
|
||
|
|
count?: true
|
||
|
|
fee?: true
|
||
|
|
totalAmount?: true
|
||
|
|
isSettled?: true
|
||
|
|
buyAt?: true
|
||
|
|
description?: true
|
||
|
|
createdAt?: true
|
||
|
|
updatedAt?: true
|
||
|
|
deletedAt?: true
|
||
|
|
productId?: true
|
||
|
|
inventoryId?: true
|
||
|
|
supplierId?: true
|
||
|
|
_all?: true
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||
|
|
/**
|
||
|
|
* Filter which ProductCharge to aggregate.
|
||
|
|
*/
|
||
|
|
where?: Prisma.ProductChargeWhereInput
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
||
|
|
*
|
||
|
|
* Determine the order of ProductCharges to fetch.
|
||
|
|
*/
|
||
|
|
orderBy?: Prisma.ProductChargeOrderByWithRelationInput | Prisma.ProductChargeOrderByWithRelationInput[]
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
||
|
|
*
|
||
|
|
* Sets the start position
|
||
|
|
*/
|
||
|
|
cursor?: Prisma.ProductChargeWhereUniqueInput
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
||
|
|
*
|
||
|
|
* Take `±n` ProductCharges 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` ProductCharges.
|
||
|
|
*/
|
||
|
|
skip?: number
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
||
|
|
*
|
||
|
|
* Count returned ProductCharges
|
||
|
|
**/
|
||
|
|
_count?: true | ProductChargeCountAggregateInputType
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
||
|
|
*
|
||
|
|
* Select which fields to average
|
||
|
|
**/
|
||
|
|
_avg?: ProductChargeAvgAggregateInputType
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
||
|
|
*
|
||
|
|
* Select which fields to sum
|
||
|
|
**/
|
||
|
|
_sum?: ProductChargeSumAggregateInputType
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
||
|
|
*
|
||
|
|
* Select which fields to find the minimum value
|
||
|
|
**/
|
||
|
|
_min?: ProductChargeMinAggregateInputType
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
||
|
|
*
|
||
|
|
* Select which fields to find the maximum value
|
||
|
|
**/
|
||
|
|
_max?: ProductChargeMaxAggregateInputType
|
||
|
|
}
|
||
|
|
|
||
|
|
export type GetProductChargeAggregateType<T extends ProductChargeAggregateArgs> = {
|
||
|
|
[P in keyof T & keyof AggregateProductCharge]: P extends '_count' | 'count'
|
||
|
|
? T[P] extends true
|
||
|
|
? number
|
||
|
|
: Prisma.GetScalarType<T[P], AggregateProductCharge[P]>
|
||
|
|
: Prisma.GetScalarType<T[P], AggregateProductCharge[P]>
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
export type ProductChargeGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||
|
|
where?: Prisma.ProductChargeWhereInput
|
||
|
|
orderBy?: Prisma.ProductChargeOrderByWithAggregationInput | Prisma.ProductChargeOrderByWithAggregationInput[]
|
||
|
|
by: Prisma.ProductChargeScalarFieldEnum[] | Prisma.ProductChargeScalarFieldEnum
|
||
|
|
having?: Prisma.ProductChargeScalarWhereWithAggregatesInput
|
||
|
|
take?: number
|
||
|
|
skip?: number
|
||
|
|
_count?: ProductChargeCountAggregateInputType | true
|
||
|
|
_avg?: ProductChargeAvgAggregateInputType
|
||
|
|
_sum?: ProductChargeSumAggregateInputType
|
||
|
|
_min?: ProductChargeMinAggregateInputType
|
||
|
|
_max?: ProductChargeMaxAggregateInputType
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeGroupByOutputType = {
|
||
|
|
id: number
|
||
|
|
count: runtime.Decimal
|
||
|
|
fee: runtime.Decimal
|
||
|
|
totalAmount: runtime.Decimal
|
||
|
|
isSettled: boolean
|
||
|
|
buyAt: Date | null
|
||
|
|
description: string | null
|
||
|
|
createdAt: Date
|
||
|
|
updatedAt: Date
|
||
|
|
deletedAt: Date | null
|
||
|
|
productId: number
|
||
|
|
inventoryId: number
|
||
|
|
supplierId: number
|
||
|
|
_count: ProductChargeCountAggregateOutputType | null
|
||
|
|
_avg: ProductChargeAvgAggregateOutputType | null
|
||
|
|
_sum: ProductChargeSumAggregateOutputType | null
|
||
|
|
_min: ProductChargeMinAggregateOutputType | null
|
||
|
|
_max: ProductChargeMaxAggregateOutputType | null
|
||
|
|
}
|
||
|
|
|
||
|
|
type GetProductChargeGroupByPayload<T extends ProductChargeGroupByArgs> = Prisma.PrismaPromise<
|
||
|
|
Array<
|
||
|
|
Prisma.PickEnumerable<ProductChargeGroupByOutputType, T['by']> &
|
||
|
|
{
|
||
|
|
[P in ((keyof T) & (keyof ProductChargeGroupByOutputType))]: P extends '_count'
|
||
|
|
? T[P] extends boolean
|
||
|
|
? number
|
||
|
|
: Prisma.GetScalarType<T[P], ProductChargeGroupByOutputType[P]>
|
||
|
|
: Prisma.GetScalarType<T[P], ProductChargeGroupByOutputType[P]>
|
||
|
|
}
|
||
|
|
>
|
||
|
|
>
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
export type ProductChargeWhereInput = {
|
||
|
|
AND?: Prisma.ProductChargeWhereInput | Prisma.ProductChargeWhereInput[]
|
||
|
|
OR?: Prisma.ProductChargeWhereInput[]
|
||
|
|
NOT?: Prisma.ProductChargeWhereInput | Prisma.ProductChargeWhereInput[]
|
||
|
|
id?: Prisma.IntFilter<"ProductCharge"> | number
|
||
|
|
count?: Prisma.DecimalFilter<"ProductCharge"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
fee?: Prisma.DecimalFilter<"ProductCharge"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
totalAmount?: Prisma.DecimalFilter<"ProductCharge"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
isSettled?: Prisma.BoolFilter<"ProductCharge"> | boolean
|
||
|
|
buyAt?: Prisma.DateTimeNullableFilter<"ProductCharge"> | Date | string | null
|
||
|
|
description?: Prisma.StringNullableFilter<"ProductCharge"> | string | null
|
||
|
|
createdAt?: Prisma.DateTimeFilter<"ProductCharge"> | Date | string
|
||
|
|
updatedAt?: Prisma.DateTimeFilter<"ProductCharge"> | Date | string
|
||
|
|
deletedAt?: Prisma.DateTimeNullableFilter<"ProductCharge"> | Date | string | null
|
||
|
|
productId?: Prisma.IntFilter<"ProductCharge"> | number
|
||
|
|
inventoryId?: Prisma.IntFilter<"ProductCharge"> | number
|
||
|
|
supplierId?: Prisma.IntFilter<"ProductCharge"> | number
|
||
|
|
inventory?: Prisma.XOR<Prisma.InventoryScalarRelationFilter, Prisma.InventoryWhereInput>
|
||
|
|
product?: Prisma.XOR<Prisma.ProductScalarRelationFilter, Prisma.ProductWhereInput>
|
||
|
|
supplier?: Prisma.XOR<Prisma.SupplierScalarRelationFilter, Prisma.SupplierWhereInput>
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeOrderByWithRelationInput = {
|
||
|
|
id?: Prisma.SortOrder
|
||
|
|
count?: Prisma.SortOrder
|
||
|
|
fee?: Prisma.SortOrder
|
||
|
|
totalAmount?: Prisma.SortOrder
|
||
|
|
isSettled?: Prisma.SortOrder
|
||
|
|
buyAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
||
|
|
description?: Prisma.SortOrderInput | Prisma.SortOrder
|
||
|
|
createdAt?: Prisma.SortOrder
|
||
|
|
updatedAt?: Prisma.SortOrder
|
||
|
|
deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
||
|
|
productId?: Prisma.SortOrder
|
||
|
|
inventoryId?: Prisma.SortOrder
|
||
|
|
supplierId?: Prisma.SortOrder
|
||
|
|
inventory?: Prisma.InventoryOrderByWithRelationInput
|
||
|
|
product?: Prisma.ProductOrderByWithRelationInput
|
||
|
|
supplier?: Prisma.SupplierOrderByWithRelationInput
|
||
|
|
_relevance?: Prisma.ProductChargeOrderByRelevanceInput
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeWhereUniqueInput = Prisma.AtLeast<{
|
||
|
|
id?: number
|
||
|
|
AND?: Prisma.ProductChargeWhereInput | Prisma.ProductChargeWhereInput[]
|
||
|
|
OR?: Prisma.ProductChargeWhereInput[]
|
||
|
|
NOT?: Prisma.ProductChargeWhereInput | Prisma.ProductChargeWhereInput[]
|
||
|
|
count?: Prisma.DecimalFilter<"ProductCharge"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
fee?: Prisma.DecimalFilter<"ProductCharge"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
totalAmount?: Prisma.DecimalFilter<"ProductCharge"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
isSettled?: Prisma.BoolFilter<"ProductCharge"> | boolean
|
||
|
|
buyAt?: Prisma.DateTimeNullableFilter<"ProductCharge"> | Date | string | null
|
||
|
|
description?: Prisma.StringNullableFilter<"ProductCharge"> | string | null
|
||
|
|
createdAt?: Prisma.DateTimeFilter<"ProductCharge"> | Date | string
|
||
|
|
updatedAt?: Prisma.DateTimeFilter<"ProductCharge"> | Date | string
|
||
|
|
deletedAt?: Prisma.DateTimeNullableFilter<"ProductCharge"> | Date | string | null
|
||
|
|
productId?: Prisma.IntFilter<"ProductCharge"> | number
|
||
|
|
inventoryId?: Prisma.IntFilter<"ProductCharge"> | number
|
||
|
|
supplierId?: Prisma.IntFilter<"ProductCharge"> | number
|
||
|
|
inventory?: Prisma.XOR<Prisma.InventoryScalarRelationFilter, Prisma.InventoryWhereInput>
|
||
|
|
product?: Prisma.XOR<Prisma.ProductScalarRelationFilter, Prisma.ProductWhereInput>
|
||
|
|
supplier?: Prisma.XOR<Prisma.SupplierScalarRelationFilter, Prisma.SupplierWhereInput>
|
||
|
|
}, "id">
|
||
|
|
|
||
|
|
export type ProductChargeOrderByWithAggregationInput = {
|
||
|
|
id?: Prisma.SortOrder
|
||
|
|
count?: Prisma.SortOrder
|
||
|
|
fee?: Prisma.SortOrder
|
||
|
|
totalAmount?: Prisma.SortOrder
|
||
|
|
isSettled?: Prisma.SortOrder
|
||
|
|
buyAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
||
|
|
description?: Prisma.SortOrderInput | Prisma.SortOrder
|
||
|
|
createdAt?: Prisma.SortOrder
|
||
|
|
updatedAt?: Prisma.SortOrder
|
||
|
|
deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
||
|
|
productId?: Prisma.SortOrder
|
||
|
|
inventoryId?: Prisma.SortOrder
|
||
|
|
supplierId?: Prisma.SortOrder
|
||
|
|
_count?: Prisma.ProductChargeCountOrderByAggregateInput
|
||
|
|
_avg?: Prisma.ProductChargeAvgOrderByAggregateInput
|
||
|
|
_max?: Prisma.ProductChargeMaxOrderByAggregateInput
|
||
|
|
_min?: Prisma.ProductChargeMinOrderByAggregateInput
|
||
|
|
_sum?: Prisma.ProductChargeSumOrderByAggregateInput
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeScalarWhereWithAggregatesInput = {
|
||
|
|
AND?: Prisma.ProductChargeScalarWhereWithAggregatesInput | Prisma.ProductChargeScalarWhereWithAggregatesInput[]
|
||
|
|
OR?: Prisma.ProductChargeScalarWhereWithAggregatesInput[]
|
||
|
|
NOT?: Prisma.ProductChargeScalarWhereWithAggregatesInput | Prisma.ProductChargeScalarWhereWithAggregatesInput[]
|
||
|
|
id?: Prisma.IntWithAggregatesFilter<"ProductCharge"> | number
|
||
|
|
count?: Prisma.DecimalWithAggregatesFilter<"ProductCharge"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
fee?: Prisma.DecimalWithAggregatesFilter<"ProductCharge"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
totalAmount?: Prisma.DecimalWithAggregatesFilter<"ProductCharge"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
isSettled?: Prisma.BoolWithAggregatesFilter<"ProductCharge"> | boolean
|
||
|
|
buyAt?: Prisma.DateTimeNullableWithAggregatesFilter<"ProductCharge"> | Date | string | null
|
||
|
|
description?: Prisma.StringNullableWithAggregatesFilter<"ProductCharge"> | string | null
|
||
|
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"ProductCharge"> | Date | string
|
||
|
|
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"ProductCharge"> | Date | string
|
||
|
|
deletedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"ProductCharge"> | Date | string | null
|
||
|
|
productId?: Prisma.IntWithAggregatesFilter<"ProductCharge"> | number
|
||
|
|
inventoryId?: Prisma.IntWithAggregatesFilter<"ProductCharge"> | number
|
||
|
|
supplierId?: Prisma.IntWithAggregatesFilter<"ProductCharge"> | number
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeCreateInput = {
|
||
|
|
count: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
fee: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
isSettled?: boolean
|
||
|
|
buyAt?: Date | string | null
|
||
|
|
description?: string | null
|
||
|
|
createdAt?: Date | string
|
||
|
|
updatedAt?: Date | string
|
||
|
|
deletedAt?: Date | string | null
|
||
|
|
inventory: Prisma.InventoryCreateNestedOneWithoutProductChargesInput
|
||
|
|
product: Prisma.ProductCreateNestedOneWithoutProductChargesInput
|
||
|
|
supplier: Prisma.SupplierCreateNestedOneWithoutProductChargesInput
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeUncheckedCreateInput = {
|
||
|
|
id?: number
|
||
|
|
count: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
fee: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
isSettled?: boolean
|
||
|
|
buyAt?: Date | string | null
|
||
|
|
description?: string | null
|
||
|
|
createdAt?: Date | string
|
||
|
|
updatedAt?: Date | string
|
||
|
|
deletedAt?: Date | string | null
|
||
|
|
productId: number
|
||
|
|
inventoryId: number
|
||
|
|
supplierId: number
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeUpdateInput = {
|
||
|
|
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
isSettled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||
|
|
buyAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||
|
|
inventory?: Prisma.InventoryUpdateOneRequiredWithoutProductChargesNestedInput
|
||
|
|
product?: Prisma.ProductUpdateOneRequiredWithoutProductChargesNestedInput
|
||
|
|
supplier?: Prisma.SupplierUpdateOneRequiredWithoutProductChargesNestedInput
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeUncheckedUpdateInput = {
|
||
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||
|
|
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
isSettled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||
|
|
buyAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||
|
|
productId?: Prisma.IntFieldUpdateOperationsInput | number
|
||
|
|
inventoryId?: Prisma.IntFieldUpdateOperationsInput | number
|
||
|
|
supplierId?: Prisma.IntFieldUpdateOperationsInput | number
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeCreateManyInput = {
|
||
|
|
id?: number
|
||
|
|
count: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
fee: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
isSettled?: boolean
|
||
|
|
buyAt?: Date | string | null
|
||
|
|
description?: string | null
|
||
|
|
createdAt?: Date | string
|
||
|
|
updatedAt?: Date | string
|
||
|
|
deletedAt?: Date | string | null
|
||
|
|
productId: number
|
||
|
|
inventoryId: number
|
||
|
|
supplierId: number
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeUpdateManyMutationInput = {
|
||
|
|
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
isSettled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||
|
|
buyAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeUncheckedUpdateManyInput = {
|
||
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||
|
|
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
isSettled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||
|
|
buyAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||
|
|
productId?: Prisma.IntFieldUpdateOperationsInput | number
|
||
|
|
inventoryId?: Prisma.IntFieldUpdateOperationsInput | number
|
||
|
|
supplierId?: Prisma.IntFieldUpdateOperationsInput | number
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeListRelationFilter = {
|
||
|
|
every?: Prisma.ProductChargeWhereInput
|
||
|
|
some?: Prisma.ProductChargeWhereInput
|
||
|
|
none?: Prisma.ProductChargeWhereInput
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeOrderByRelationAggregateInput = {
|
||
|
|
_count?: Prisma.SortOrder
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeOrderByRelevanceInput = {
|
||
|
|
fields: Prisma.ProductChargeOrderByRelevanceFieldEnum | Prisma.ProductChargeOrderByRelevanceFieldEnum[]
|
||
|
|
sort: Prisma.SortOrder
|
||
|
|
search: string
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeCountOrderByAggregateInput = {
|
||
|
|
id?: Prisma.SortOrder
|
||
|
|
count?: Prisma.SortOrder
|
||
|
|
fee?: Prisma.SortOrder
|
||
|
|
totalAmount?: Prisma.SortOrder
|
||
|
|
isSettled?: Prisma.SortOrder
|
||
|
|
buyAt?: Prisma.SortOrder
|
||
|
|
description?: Prisma.SortOrder
|
||
|
|
createdAt?: Prisma.SortOrder
|
||
|
|
updatedAt?: Prisma.SortOrder
|
||
|
|
deletedAt?: Prisma.SortOrder
|
||
|
|
productId?: Prisma.SortOrder
|
||
|
|
inventoryId?: Prisma.SortOrder
|
||
|
|
supplierId?: Prisma.SortOrder
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeAvgOrderByAggregateInput = {
|
||
|
|
id?: Prisma.SortOrder
|
||
|
|
count?: Prisma.SortOrder
|
||
|
|
fee?: Prisma.SortOrder
|
||
|
|
totalAmount?: Prisma.SortOrder
|
||
|
|
productId?: Prisma.SortOrder
|
||
|
|
inventoryId?: Prisma.SortOrder
|
||
|
|
supplierId?: Prisma.SortOrder
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeMaxOrderByAggregateInput = {
|
||
|
|
id?: Prisma.SortOrder
|
||
|
|
count?: Prisma.SortOrder
|
||
|
|
fee?: Prisma.SortOrder
|
||
|
|
totalAmount?: Prisma.SortOrder
|
||
|
|
isSettled?: Prisma.SortOrder
|
||
|
|
buyAt?: Prisma.SortOrder
|
||
|
|
description?: Prisma.SortOrder
|
||
|
|
createdAt?: Prisma.SortOrder
|
||
|
|
updatedAt?: Prisma.SortOrder
|
||
|
|
deletedAt?: Prisma.SortOrder
|
||
|
|
productId?: Prisma.SortOrder
|
||
|
|
inventoryId?: Prisma.SortOrder
|
||
|
|
supplierId?: Prisma.SortOrder
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeMinOrderByAggregateInput = {
|
||
|
|
id?: Prisma.SortOrder
|
||
|
|
count?: Prisma.SortOrder
|
||
|
|
fee?: Prisma.SortOrder
|
||
|
|
totalAmount?: Prisma.SortOrder
|
||
|
|
isSettled?: Prisma.SortOrder
|
||
|
|
buyAt?: Prisma.SortOrder
|
||
|
|
description?: Prisma.SortOrder
|
||
|
|
createdAt?: Prisma.SortOrder
|
||
|
|
updatedAt?: Prisma.SortOrder
|
||
|
|
deletedAt?: Prisma.SortOrder
|
||
|
|
productId?: Prisma.SortOrder
|
||
|
|
inventoryId?: Prisma.SortOrder
|
||
|
|
supplierId?: Prisma.SortOrder
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeSumOrderByAggregateInput = {
|
||
|
|
id?: Prisma.SortOrder
|
||
|
|
count?: Prisma.SortOrder
|
||
|
|
fee?: Prisma.SortOrder
|
||
|
|
totalAmount?: Prisma.SortOrder
|
||
|
|
productId?: Prisma.SortOrder
|
||
|
|
inventoryId?: Prisma.SortOrder
|
||
|
|
supplierId?: Prisma.SortOrder
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeCreateNestedManyWithoutProductInput = {
|
||
|
|
create?: Prisma.XOR<Prisma.ProductChargeCreateWithoutProductInput, Prisma.ProductChargeUncheckedCreateWithoutProductInput> | Prisma.ProductChargeCreateWithoutProductInput[] | Prisma.ProductChargeUncheckedCreateWithoutProductInput[]
|
||
|
|
connectOrCreate?: Prisma.ProductChargeCreateOrConnectWithoutProductInput | Prisma.ProductChargeCreateOrConnectWithoutProductInput[]
|
||
|
|
createMany?: Prisma.ProductChargeCreateManyProductInputEnvelope
|
||
|
|
connect?: Prisma.ProductChargeWhereUniqueInput | Prisma.ProductChargeWhereUniqueInput[]
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeUncheckedCreateNestedManyWithoutProductInput = {
|
||
|
|
create?: Prisma.XOR<Prisma.ProductChargeCreateWithoutProductInput, Prisma.ProductChargeUncheckedCreateWithoutProductInput> | Prisma.ProductChargeCreateWithoutProductInput[] | Prisma.ProductChargeUncheckedCreateWithoutProductInput[]
|
||
|
|
connectOrCreate?: Prisma.ProductChargeCreateOrConnectWithoutProductInput | Prisma.ProductChargeCreateOrConnectWithoutProductInput[]
|
||
|
|
createMany?: Prisma.ProductChargeCreateManyProductInputEnvelope
|
||
|
|
connect?: Prisma.ProductChargeWhereUniqueInput | Prisma.ProductChargeWhereUniqueInput[]
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeUpdateManyWithoutProductNestedInput = {
|
||
|
|
create?: Prisma.XOR<Prisma.ProductChargeCreateWithoutProductInput, Prisma.ProductChargeUncheckedCreateWithoutProductInput> | Prisma.ProductChargeCreateWithoutProductInput[] | Prisma.ProductChargeUncheckedCreateWithoutProductInput[]
|
||
|
|
connectOrCreate?: Prisma.ProductChargeCreateOrConnectWithoutProductInput | Prisma.ProductChargeCreateOrConnectWithoutProductInput[]
|
||
|
|
upsert?: Prisma.ProductChargeUpsertWithWhereUniqueWithoutProductInput | Prisma.ProductChargeUpsertWithWhereUniqueWithoutProductInput[]
|
||
|
|
createMany?: Prisma.ProductChargeCreateManyProductInputEnvelope
|
||
|
|
set?: Prisma.ProductChargeWhereUniqueInput | Prisma.ProductChargeWhereUniqueInput[]
|
||
|
|
disconnect?: Prisma.ProductChargeWhereUniqueInput | Prisma.ProductChargeWhereUniqueInput[]
|
||
|
|
delete?: Prisma.ProductChargeWhereUniqueInput | Prisma.ProductChargeWhereUniqueInput[]
|
||
|
|
connect?: Prisma.ProductChargeWhereUniqueInput | Prisma.ProductChargeWhereUniqueInput[]
|
||
|
|
update?: Prisma.ProductChargeUpdateWithWhereUniqueWithoutProductInput | Prisma.ProductChargeUpdateWithWhereUniqueWithoutProductInput[]
|
||
|
|
updateMany?: Prisma.ProductChargeUpdateManyWithWhereWithoutProductInput | Prisma.ProductChargeUpdateManyWithWhereWithoutProductInput[]
|
||
|
|
deleteMany?: Prisma.ProductChargeScalarWhereInput | Prisma.ProductChargeScalarWhereInput[]
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeUncheckedUpdateManyWithoutProductNestedInput = {
|
||
|
|
create?: Prisma.XOR<Prisma.ProductChargeCreateWithoutProductInput, Prisma.ProductChargeUncheckedCreateWithoutProductInput> | Prisma.ProductChargeCreateWithoutProductInput[] | Prisma.ProductChargeUncheckedCreateWithoutProductInput[]
|
||
|
|
connectOrCreate?: Prisma.ProductChargeCreateOrConnectWithoutProductInput | Prisma.ProductChargeCreateOrConnectWithoutProductInput[]
|
||
|
|
upsert?: Prisma.ProductChargeUpsertWithWhereUniqueWithoutProductInput | Prisma.ProductChargeUpsertWithWhereUniqueWithoutProductInput[]
|
||
|
|
createMany?: Prisma.ProductChargeCreateManyProductInputEnvelope
|
||
|
|
set?: Prisma.ProductChargeWhereUniqueInput | Prisma.ProductChargeWhereUniqueInput[]
|
||
|
|
disconnect?: Prisma.ProductChargeWhereUniqueInput | Prisma.ProductChargeWhereUniqueInput[]
|
||
|
|
delete?: Prisma.ProductChargeWhereUniqueInput | Prisma.ProductChargeWhereUniqueInput[]
|
||
|
|
connect?: Prisma.ProductChargeWhereUniqueInput | Prisma.ProductChargeWhereUniqueInput[]
|
||
|
|
update?: Prisma.ProductChargeUpdateWithWhereUniqueWithoutProductInput | Prisma.ProductChargeUpdateWithWhereUniqueWithoutProductInput[]
|
||
|
|
updateMany?: Prisma.ProductChargeUpdateManyWithWhereWithoutProductInput | Prisma.ProductChargeUpdateManyWithWhereWithoutProductInput[]
|
||
|
|
deleteMany?: Prisma.ProductChargeScalarWhereInput | Prisma.ProductChargeScalarWhereInput[]
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeCreateNestedManyWithoutSupplierInput = {
|
||
|
|
create?: Prisma.XOR<Prisma.ProductChargeCreateWithoutSupplierInput, Prisma.ProductChargeUncheckedCreateWithoutSupplierInput> | Prisma.ProductChargeCreateWithoutSupplierInput[] | Prisma.ProductChargeUncheckedCreateWithoutSupplierInput[]
|
||
|
|
connectOrCreate?: Prisma.ProductChargeCreateOrConnectWithoutSupplierInput | Prisma.ProductChargeCreateOrConnectWithoutSupplierInput[]
|
||
|
|
createMany?: Prisma.ProductChargeCreateManySupplierInputEnvelope
|
||
|
|
connect?: Prisma.ProductChargeWhereUniqueInput | Prisma.ProductChargeWhereUniqueInput[]
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeUncheckedCreateNestedManyWithoutSupplierInput = {
|
||
|
|
create?: Prisma.XOR<Prisma.ProductChargeCreateWithoutSupplierInput, Prisma.ProductChargeUncheckedCreateWithoutSupplierInput> | Prisma.ProductChargeCreateWithoutSupplierInput[] | Prisma.ProductChargeUncheckedCreateWithoutSupplierInput[]
|
||
|
|
connectOrCreate?: Prisma.ProductChargeCreateOrConnectWithoutSupplierInput | Prisma.ProductChargeCreateOrConnectWithoutSupplierInput[]
|
||
|
|
createMany?: Prisma.ProductChargeCreateManySupplierInputEnvelope
|
||
|
|
connect?: Prisma.ProductChargeWhereUniqueInput | Prisma.ProductChargeWhereUniqueInput[]
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeUpdateManyWithoutSupplierNestedInput = {
|
||
|
|
create?: Prisma.XOR<Prisma.ProductChargeCreateWithoutSupplierInput, Prisma.ProductChargeUncheckedCreateWithoutSupplierInput> | Prisma.ProductChargeCreateWithoutSupplierInput[] | Prisma.ProductChargeUncheckedCreateWithoutSupplierInput[]
|
||
|
|
connectOrCreate?: Prisma.ProductChargeCreateOrConnectWithoutSupplierInput | Prisma.ProductChargeCreateOrConnectWithoutSupplierInput[]
|
||
|
|
upsert?: Prisma.ProductChargeUpsertWithWhereUniqueWithoutSupplierInput | Prisma.ProductChargeUpsertWithWhereUniqueWithoutSupplierInput[]
|
||
|
|
createMany?: Prisma.ProductChargeCreateManySupplierInputEnvelope
|
||
|
|
set?: Prisma.ProductChargeWhereUniqueInput | Prisma.ProductChargeWhereUniqueInput[]
|
||
|
|
disconnect?: Prisma.ProductChargeWhereUniqueInput | Prisma.ProductChargeWhereUniqueInput[]
|
||
|
|
delete?: Prisma.ProductChargeWhereUniqueInput | Prisma.ProductChargeWhereUniqueInput[]
|
||
|
|
connect?: Prisma.ProductChargeWhereUniqueInput | Prisma.ProductChargeWhereUniqueInput[]
|
||
|
|
update?: Prisma.ProductChargeUpdateWithWhereUniqueWithoutSupplierInput | Prisma.ProductChargeUpdateWithWhereUniqueWithoutSupplierInput[]
|
||
|
|
updateMany?: Prisma.ProductChargeUpdateManyWithWhereWithoutSupplierInput | Prisma.ProductChargeUpdateManyWithWhereWithoutSupplierInput[]
|
||
|
|
deleteMany?: Prisma.ProductChargeScalarWhereInput | Prisma.ProductChargeScalarWhereInput[]
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeUncheckedUpdateManyWithoutSupplierNestedInput = {
|
||
|
|
create?: Prisma.XOR<Prisma.ProductChargeCreateWithoutSupplierInput, Prisma.ProductChargeUncheckedCreateWithoutSupplierInput> | Prisma.ProductChargeCreateWithoutSupplierInput[] | Prisma.ProductChargeUncheckedCreateWithoutSupplierInput[]
|
||
|
|
connectOrCreate?: Prisma.ProductChargeCreateOrConnectWithoutSupplierInput | Prisma.ProductChargeCreateOrConnectWithoutSupplierInput[]
|
||
|
|
upsert?: Prisma.ProductChargeUpsertWithWhereUniqueWithoutSupplierInput | Prisma.ProductChargeUpsertWithWhereUniqueWithoutSupplierInput[]
|
||
|
|
createMany?: Prisma.ProductChargeCreateManySupplierInputEnvelope
|
||
|
|
set?: Prisma.ProductChargeWhereUniqueInput | Prisma.ProductChargeWhereUniqueInput[]
|
||
|
|
disconnect?: Prisma.ProductChargeWhereUniqueInput | Prisma.ProductChargeWhereUniqueInput[]
|
||
|
|
delete?: Prisma.ProductChargeWhereUniqueInput | Prisma.ProductChargeWhereUniqueInput[]
|
||
|
|
connect?: Prisma.ProductChargeWhereUniqueInput | Prisma.ProductChargeWhereUniqueInput[]
|
||
|
|
update?: Prisma.ProductChargeUpdateWithWhereUniqueWithoutSupplierInput | Prisma.ProductChargeUpdateWithWhereUniqueWithoutSupplierInput[]
|
||
|
|
updateMany?: Prisma.ProductChargeUpdateManyWithWhereWithoutSupplierInput | Prisma.ProductChargeUpdateManyWithWhereWithoutSupplierInput[]
|
||
|
|
deleteMany?: Prisma.ProductChargeScalarWhereInput | Prisma.ProductChargeScalarWhereInput[]
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeCreateNestedManyWithoutInventoryInput = {
|
||
|
|
create?: Prisma.XOR<Prisma.ProductChargeCreateWithoutInventoryInput, Prisma.ProductChargeUncheckedCreateWithoutInventoryInput> | Prisma.ProductChargeCreateWithoutInventoryInput[] | Prisma.ProductChargeUncheckedCreateWithoutInventoryInput[]
|
||
|
|
connectOrCreate?: Prisma.ProductChargeCreateOrConnectWithoutInventoryInput | Prisma.ProductChargeCreateOrConnectWithoutInventoryInput[]
|
||
|
|
createMany?: Prisma.ProductChargeCreateManyInventoryInputEnvelope
|
||
|
|
connect?: Prisma.ProductChargeWhereUniqueInput | Prisma.ProductChargeWhereUniqueInput[]
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeUncheckedCreateNestedManyWithoutInventoryInput = {
|
||
|
|
create?: Prisma.XOR<Prisma.ProductChargeCreateWithoutInventoryInput, Prisma.ProductChargeUncheckedCreateWithoutInventoryInput> | Prisma.ProductChargeCreateWithoutInventoryInput[] | Prisma.ProductChargeUncheckedCreateWithoutInventoryInput[]
|
||
|
|
connectOrCreate?: Prisma.ProductChargeCreateOrConnectWithoutInventoryInput | Prisma.ProductChargeCreateOrConnectWithoutInventoryInput[]
|
||
|
|
createMany?: Prisma.ProductChargeCreateManyInventoryInputEnvelope
|
||
|
|
connect?: Prisma.ProductChargeWhereUniqueInput | Prisma.ProductChargeWhereUniqueInput[]
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeUpdateManyWithoutInventoryNestedInput = {
|
||
|
|
create?: Prisma.XOR<Prisma.ProductChargeCreateWithoutInventoryInput, Prisma.ProductChargeUncheckedCreateWithoutInventoryInput> | Prisma.ProductChargeCreateWithoutInventoryInput[] | Prisma.ProductChargeUncheckedCreateWithoutInventoryInput[]
|
||
|
|
connectOrCreate?: Prisma.ProductChargeCreateOrConnectWithoutInventoryInput | Prisma.ProductChargeCreateOrConnectWithoutInventoryInput[]
|
||
|
|
upsert?: Prisma.ProductChargeUpsertWithWhereUniqueWithoutInventoryInput | Prisma.ProductChargeUpsertWithWhereUniqueWithoutInventoryInput[]
|
||
|
|
createMany?: Prisma.ProductChargeCreateManyInventoryInputEnvelope
|
||
|
|
set?: Prisma.ProductChargeWhereUniqueInput | Prisma.ProductChargeWhereUniqueInput[]
|
||
|
|
disconnect?: Prisma.ProductChargeWhereUniqueInput | Prisma.ProductChargeWhereUniqueInput[]
|
||
|
|
delete?: Prisma.ProductChargeWhereUniqueInput | Prisma.ProductChargeWhereUniqueInput[]
|
||
|
|
connect?: Prisma.ProductChargeWhereUniqueInput | Prisma.ProductChargeWhereUniqueInput[]
|
||
|
|
update?: Prisma.ProductChargeUpdateWithWhereUniqueWithoutInventoryInput | Prisma.ProductChargeUpdateWithWhereUniqueWithoutInventoryInput[]
|
||
|
|
updateMany?: Prisma.ProductChargeUpdateManyWithWhereWithoutInventoryInput | Prisma.ProductChargeUpdateManyWithWhereWithoutInventoryInput[]
|
||
|
|
deleteMany?: Prisma.ProductChargeScalarWhereInput | Prisma.ProductChargeScalarWhereInput[]
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeUncheckedUpdateManyWithoutInventoryNestedInput = {
|
||
|
|
create?: Prisma.XOR<Prisma.ProductChargeCreateWithoutInventoryInput, Prisma.ProductChargeUncheckedCreateWithoutInventoryInput> | Prisma.ProductChargeCreateWithoutInventoryInput[] | Prisma.ProductChargeUncheckedCreateWithoutInventoryInput[]
|
||
|
|
connectOrCreate?: Prisma.ProductChargeCreateOrConnectWithoutInventoryInput | Prisma.ProductChargeCreateOrConnectWithoutInventoryInput[]
|
||
|
|
upsert?: Prisma.ProductChargeUpsertWithWhereUniqueWithoutInventoryInput | Prisma.ProductChargeUpsertWithWhereUniqueWithoutInventoryInput[]
|
||
|
|
createMany?: Prisma.ProductChargeCreateManyInventoryInputEnvelope
|
||
|
|
set?: Prisma.ProductChargeWhereUniqueInput | Prisma.ProductChargeWhereUniqueInput[]
|
||
|
|
disconnect?: Prisma.ProductChargeWhereUniqueInput | Prisma.ProductChargeWhereUniqueInput[]
|
||
|
|
delete?: Prisma.ProductChargeWhereUniqueInput | Prisma.ProductChargeWhereUniqueInput[]
|
||
|
|
connect?: Prisma.ProductChargeWhereUniqueInput | Prisma.ProductChargeWhereUniqueInput[]
|
||
|
|
update?: Prisma.ProductChargeUpdateWithWhereUniqueWithoutInventoryInput | Prisma.ProductChargeUpdateWithWhereUniqueWithoutInventoryInput[]
|
||
|
|
updateMany?: Prisma.ProductChargeUpdateManyWithWhereWithoutInventoryInput | Prisma.ProductChargeUpdateManyWithWhereWithoutInventoryInput[]
|
||
|
|
deleteMany?: Prisma.ProductChargeScalarWhereInput | Prisma.ProductChargeScalarWhereInput[]
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeCreateWithoutProductInput = {
|
||
|
|
count: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
fee: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
isSettled?: boolean
|
||
|
|
buyAt?: Date | string | null
|
||
|
|
description?: string | null
|
||
|
|
createdAt?: Date | string
|
||
|
|
updatedAt?: Date | string
|
||
|
|
deletedAt?: Date | string | null
|
||
|
|
inventory: Prisma.InventoryCreateNestedOneWithoutProductChargesInput
|
||
|
|
supplier: Prisma.SupplierCreateNestedOneWithoutProductChargesInput
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeUncheckedCreateWithoutProductInput = {
|
||
|
|
id?: number
|
||
|
|
count: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
fee: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
isSettled?: boolean
|
||
|
|
buyAt?: Date | string | null
|
||
|
|
description?: string | null
|
||
|
|
createdAt?: Date | string
|
||
|
|
updatedAt?: Date | string
|
||
|
|
deletedAt?: Date | string | null
|
||
|
|
inventoryId: number
|
||
|
|
supplierId: number
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeCreateOrConnectWithoutProductInput = {
|
||
|
|
where: Prisma.ProductChargeWhereUniqueInput
|
||
|
|
create: Prisma.XOR<Prisma.ProductChargeCreateWithoutProductInput, Prisma.ProductChargeUncheckedCreateWithoutProductInput>
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeCreateManyProductInputEnvelope = {
|
||
|
|
data: Prisma.ProductChargeCreateManyProductInput | Prisma.ProductChargeCreateManyProductInput[]
|
||
|
|
skipDuplicates?: boolean
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeUpsertWithWhereUniqueWithoutProductInput = {
|
||
|
|
where: Prisma.ProductChargeWhereUniqueInput
|
||
|
|
update: Prisma.XOR<Prisma.ProductChargeUpdateWithoutProductInput, Prisma.ProductChargeUncheckedUpdateWithoutProductInput>
|
||
|
|
create: Prisma.XOR<Prisma.ProductChargeCreateWithoutProductInput, Prisma.ProductChargeUncheckedCreateWithoutProductInput>
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeUpdateWithWhereUniqueWithoutProductInput = {
|
||
|
|
where: Prisma.ProductChargeWhereUniqueInput
|
||
|
|
data: Prisma.XOR<Prisma.ProductChargeUpdateWithoutProductInput, Prisma.ProductChargeUncheckedUpdateWithoutProductInput>
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeUpdateManyWithWhereWithoutProductInput = {
|
||
|
|
where: Prisma.ProductChargeScalarWhereInput
|
||
|
|
data: Prisma.XOR<Prisma.ProductChargeUpdateManyMutationInput, Prisma.ProductChargeUncheckedUpdateManyWithoutProductInput>
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeScalarWhereInput = {
|
||
|
|
AND?: Prisma.ProductChargeScalarWhereInput | Prisma.ProductChargeScalarWhereInput[]
|
||
|
|
OR?: Prisma.ProductChargeScalarWhereInput[]
|
||
|
|
NOT?: Prisma.ProductChargeScalarWhereInput | Prisma.ProductChargeScalarWhereInput[]
|
||
|
|
id?: Prisma.IntFilter<"ProductCharge"> | number
|
||
|
|
count?: Prisma.DecimalFilter<"ProductCharge"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
fee?: Prisma.DecimalFilter<"ProductCharge"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
totalAmount?: Prisma.DecimalFilter<"ProductCharge"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
isSettled?: Prisma.BoolFilter<"ProductCharge"> | boolean
|
||
|
|
buyAt?: Prisma.DateTimeNullableFilter<"ProductCharge"> | Date | string | null
|
||
|
|
description?: Prisma.StringNullableFilter<"ProductCharge"> | string | null
|
||
|
|
createdAt?: Prisma.DateTimeFilter<"ProductCharge"> | Date | string
|
||
|
|
updatedAt?: Prisma.DateTimeFilter<"ProductCharge"> | Date | string
|
||
|
|
deletedAt?: Prisma.DateTimeNullableFilter<"ProductCharge"> | Date | string | null
|
||
|
|
productId?: Prisma.IntFilter<"ProductCharge"> | number
|
||
|
|
inventoryId?: Prisma.IntFilter<"ProductCharge"> | number
|
||
|
|
supplierId?: Prisma.IntFilter<"ProductCharge"> | number
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeCreateWithoutSupplierInput = {
|
||
|
|
count: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
fee: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
isSettled?: boolean
|
||
|
|
buyAt?: Date | string | null
|
||
|
|
description?: string | null
|
||
|
|
createdAt?: Date | string
|
||
|
|
updatedAt?: Date | string
|
||
|
|
deletedAt?: Date | string | null
|
||
|
|
inventory: Prisma.InventoryCreateNestedOneWithoutProductChargesInput
|
||
|
|
product: Prisma.ProductCreateNestedOneWithoutProductChargesInput
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeUncheckedCreateWithoutSupplierInput = {
|
||
|
|
id?: number
|
||
|
|
count: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
fee: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
isSettled?: boolean
|
||
|
|
buyAt?: Date | string | null
|
||
|
|
description?: string | null
|
||
|
|
createdAt?: Date | string
|
||
|
|
updatedAt?: Date | string
|
||
|
|
deletedAt?: Date | string | null
|
||
|
|
productId: number
|
||
|
|
inventoryId: number
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeCreateOrConnectWithoutSupplierInput = {
|
||
|
|
where: Prisma.ProductChargeWhereUniqueInput
|
||
|
|
create: Prisma.XOR<Prisma.ProductChargeCreateWithoutSupplierInput, Prisma.ProductChargeUncheckedCreateWithoutSupplierInput>
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeCreateManySupplierInputEnvelope = {
|
||
|
|
data: Prisma.ProductChargeCreateManySupplierInput | Prisma.ProductChargeCreateManySupplierInput[]
|
||
|
|
skipDuplicates?: boolean
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeUpsertWithWhereUniqueWithoutSupplierInput = {
|
||
|
|
where: Prisma.ProductChargeWhereUniqueInput
|
||
|
|
update: Prisma.XOR<Prisma.ProductChargeUpdateWithoutSupplierInput, Prisma.ProductChargeUncheckedUpdateWithoutSupplierInput>
|
||
|
|
create: Prisma.XOR<Prisma.ProductChargeCreateWithoutSupplierInput, Prisma.ProductChargeUncheckedCreateWithoutSupplierInput>
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeUpdateWithWhereUniqueWithoutSupplierInput = {
|
||
|
|
where: Prisma.ProductChargeWhereUniqueInput
|
||
|
|
data: Prisma.XOR<Prisma.ProductChargeUpdateWithoutSupplierInput, Prisma.ProductChargeUncheckedUpdateWithoutSupplierInput>
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeUpdateManyWithWhereWithoutSupplierInput = {
|
||
|
|
where: Prisma.ProductChargeScalarWhereInput
|
||
|
|
data: Prisma.XOR<Prisma.ProductChargeUpdateManyMutationInput, Prisma.ProductChargeUncheckedUpdateManyWithoutSupplierInput>
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeCreateWithoutInventoryInput = {
|
||
|
|
count: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
fee: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
isSettled?: boolean
|
||
|
|
buyAt?: Date | string | null
|
||
|
|
description?: string | null
|
||
|
|
createdAt?: Date | string
|
||
|
|
updatedAt?: Date | string
|
||
|
|
deletedAt?: Date | string | null
|
||
|
|
product: Prisma.ProductCreateNestedOneWithoutProductChargesInput
|
||
|
|
supplier: Prisma.SupplierCreateNestedOneWithoutProductChargesInput
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeUncheckedCreateWithoutInventoryInput = {
|
||
|
|
id?: number
|
||
|
|
count: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
fee: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
isSettled?: boolean
|
||
|
|
buyAt?: Date | string | null
|
||
|
|
description?: string | null
|
||
|
|
createdAt?: Date | string
|
||
|
|
updatedAt?: Date | string
|
||
|
|
deletedAt?: Date | string | null
|
||
|
|
productId: number
|
||
|
|
supplierId: number
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeCreateOrConnectWithoutInventoryInput = {
|
||
|
|
where: Prisma.ProductChargeWhereUniqueInput
|
||
|
|
create: Prisma.XOR<Prisma.ProductChargeCreateWithoutInventoryInput, Prisma.ProductChargeUncheckedCreateWithoutInventoryInput>
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeCreateManyInventoryInputEnvelope = {
|
||
|
|
data: Prisma.ProductChargeCreateManyInventoryInput | Prisma.ProductChargeCreateManyInventoryInput[]
|
||
|
|
skipDuplicates?: boolean
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeUpsertWithWhereUniqueWithoutInventoryInput = {
|
||
|
|
where: Prisma.ProductChargeWhereUniqueInput
|
||
|
|
update: Prisma.XOR<Prisma.ProductChargeUpdateWithoutInventoryInput, Prisma.ProductChargeUncheckedUpdateWithoutInventoryInput>
|
||
|
|
create: Prisma.XOR<Prisma.ProductChargeCreateWithoutInventoryInput, Prisma.ProductChargeUncheckedCreateWithoutInventoryInput>
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeUpdateWithWhereUniqueWithoutInventoryInput = {
|
||
|
|
where: Prisma.ProductChargeWhereUniqueInput
|
||
|
|
data: Prisma.XOR<Prisma.ProductChargeUpdateWithoutInventoryInput, Prisma.ProductChargeUncheckedUpdateWithoutInventoryInput>
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeUpdateManyWithWhereWithoutInventoryInput = {
|
||
|
|
where: Prisma.ProductChargeScalarWhereInput
|
||
|
|
data: Prisma.XOR<Prisma.ProductChargeUpdateManyMutationInput, Prisma.ProductChargeUncheckedUpdateManyWithoutInventoryInput>
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeCreateManyProductInput = {
|
||
|
|
id?: number
|
||
|
|
count: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
fee: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
isSettled?: boolean
|
||
|
|
buyAt?: Date | string | null
|
||
|
|
description?: string | null
|
||
|
|
createdAt?: Date | string
|
||
|
|
updatedAt?: Date | string
|
||
|
|
deletedAt?: Date | string | null
|
||
|
|
inventoryId: number
|
||
|
|
supplierId: number
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeUpdateWithoutProductInput = {
|
||
|
|
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
isSettled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||
|
|
buyAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||
|
|
inventory?: Prisma.InventoryUpdateOneRequiredWithoutProductChargesNestedInput
|
||
|
|
supplier?: Prisma.SupplierUpdateOneRequiredWithoutProductChargesNestedInput
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeUncheckedUpdateWithoutProductInput = {
|
||
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||
|
|
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
isSettled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||
|
|
buyAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||
|
|
inventoryId?: Prisma.IntFieldUpdateOperationsInput | number
|
||
|
|
supplierId?: Prisma.IntFieldUpdateOperationsInput | number
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeUncheckedUpdateManyWithoutProductInput = {
|
||
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||
|
|
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
isSettled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||
|
|
buyAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||
|
|
inventoryId?: Prisma.IntFieldUpdateOperationsInput | number
|
||
|
|
supplierId?: Prisma.IntFieldUpdateOperationsInput | number
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeCreateManySupplierInput = {
|
||
|
|
id?: number
|
||
|
|
count: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
fee: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
isSettled?: boolean
|
||
|
|
buyAt?: Date | string | null
|
||
|
|
description?: string | null
|
||
|
|
createdAt?: Date | string
|
||
|
|
updatedAt?: Date | string
|
||
|
|
deletedAt?: Date | string | null
|
||
|
|
productId: number
|
||
|
|
inventoryId: number
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeUpdateWithoutSupplierInput = {
|
||
|
|
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
isSettled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||
|
|
buyAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||
|
|
inventory?: Prisma.InventoryUpdateOneRequiredWithoutProductChargesNestedInput
|
||
|
|
product?: Prisma.ProductUpdateOneRequiredWithoutProductChargesNestedInput
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeUncheckedUpdateWithoutSupplierInput = {
|
||
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||
|
|
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
isSettled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||
|
|
buyAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||
|
|
productId?: Prisma.IntFieldUpdateOperationsInput | number
|
||
|
|
inventoryId?: Prisma.IntFieldUpdateOperationsInput | number
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeUncheckedUpdateManyWithoutSupplierInput = {
|
||
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||
|
|
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
isSettled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||
|
|
buyAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||
|
|
productId?: Prisma.IntFieldUpdateOperationsInput | number
|
||
|
|
inventoryId?: Prisma.IntFieldUpdateOperationsInput | number
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeCreateManyInventoryInput = {
|
||
|
|
id?: number
|
||
|
|
count: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
fee: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
isSettled?: boolean
|
||
|
|
buyAt?: Date | string | null
|
||
|
|
description?: string | null
|
||
|
|
createdAt?: Date | string
|
||
|
|
updatedAt?: Date | string
|
||
|
|
deletedAt?: Date | string | null
|
||
|
|
productId: number
|
||
|
|
supplierId: number
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeUpdateWithoutInventoryInput = {
|
||
|
|
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
isSettled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||
|
|
buyAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||
|
|
product?: Prisma.ProductUpdateOneRequiredWithoutProductChargesNestedInput
|
||
|
|
supplier?: Prisma.SupplierUpdateOneRequiredWithoutProductChargesNestedInput
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeUncheckedUpdateWithoutInventoryInput = {
|
||
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||
|
|
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
isSettled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||
|
|
buyAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||
|
|
productId?: Prisma.IntFieldUpdateOperationsInput | number
|
||
|
|
supplierId?: Prisma.IntFieldUpdateOperationsInput | number
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeUncheckedUpdateManyWithoutInventoryInput = {
|
||
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||
|
|
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||
|
|
isSettled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||
|
|
buyAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||
|
|
productId?: Prisma.IntFieldUpdateOperationsInput | number
|
||
|
|
supplierId?: Prisma.IntFieldUpdateOperationsInput | number
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
export type ProductChargeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||
|
|
id?: boolean
|
||
|
|
count?: boolean
|
||
|
|
fee?: boolean
|
||
|
|
totalAmount?: boolean
|
||
|
|
isSettled?: boolean
|
||
|
|
buyAt?: boolean
|
||
|
|
description?: boolean
|
||
|
|
createdAt?: boolean
|
||
|
|
updatedAt?: boolean
|
||
|
|
deletedAt?: boolean
|
||
|
|
productId?: boolean
|
||
|
|
inventoryId?: boolean
|
||
|
|
supplierId?: boolean
|
||
|
|
inventory?: boolean | Prisma.InventoryDefaultArgs<ExtArgs>
|
||
|
|
product?: boolean | Prisma.ProductDefaultArgs<ExtArgs>
|
||
|
|
supplier?: boolean | Prisma.SupplierDefaultArgs<ExtArgs>
|
||
|
|
}, ExtArgs["result"]["productCharge"]>
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
export type ProductChargeSelectScalar = {
|
||
|
|
id?: boolean
|
||
|
|
count?: boolean
|
||
|
|
fee?: boolean
|
||
|
|
totalAmount?: boolean
|
||
|
|
isSettled?: boolean
|
||
|
|
buyAt?: boolean
|
||
|
|
description?: boolean
|
||
|
|
createdAt?: boolean
|
||
|
|
updatedAt?: boolean
|
||
|
|
deletedAt?: boolean
|
||
|
|
productId?: boolean
|
||
|
|
inventoryId?: boolean
|
||
|
|
supplierId?: boolean
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "count" | "fee" | "totalAmount" | "isSettled" | "buyAt" | "description" | "createdAt" | "updatedAt" | "deletedAt" | "productId" | "inventoryId" | "supplierId", ExtArgs["result"]["productCharge"]>
|
||
|
|
export type ProductChargeInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||
|
|
inventory?: boolean | Prisma.InventoryDefaultArgs<ExtArgs>
|
||
|
|
product?: boolean | Prisma.ProductDefaultArgs<ExtArgs>
|
||
|
|
supplier?: boolean | Prisma.SupplierDefaultArgs<ExtArgs>
|
||
|
|
}
|
||
|
|
|
||
|
|
export type $ProductChargePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||
|
|
name: "ProductCharge"
|
||
|
|
objects: {
|
||
|
|
inventory: Prisma.$InventoryPayload<ExtArgs>
|
||
|
|
product: Prisma.$ProductPayload<ExtArgs>
|
||
|
|
supplier: Prisma.$SupplierPayload<ExtArgs>
|
||
|
|
}
|
||
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||
|
|
id: number
|
||
|
|
count: runtime.Decimal
|
||
|
|
fee: runtime.Decimal
|
||
|
|
totalAmount: runtime.Decimal
|
||
|
|
isSettled: boolean
|
||
|
|
buyAt: Date | null
|
||
|
|
description: string | null
|
||
|
|
createdAt: Date
|
||
|
|
updatedAt: Date
|
||
|
|
deletedAt: Date | null
|
||
|
|
productId: number
|
||
|
|
inventoryId: number
|
||
|
|
supplierId: number
|
||
|
|
}, ExtArgs["result"]["productCharge"]>
|
||
|
|
composites: {}
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ProductChargeGetPayload<S extends boolean | null | undefined | ProductChargeDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ProductChargePayload, S>
|
||
|
|
|
||
|
|
export type ProductChargeCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
||
|
|
Omit<ProductChargeFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
||
|
|
select?: ProductChargeCountAggregateInputType | true
|
||
|
|
}
|
||
|
|
|
||
|
|
export interface ProductChargeDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
||
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['ProductCharge'], meta: { name: 'ProductCharge' } }
|
||
|
|
/**
|
||
|
|
* Find zero or one ProductCharge that matches the filter.
|
||
|
|
* @param {ProductChargeFindUniqueArgs} args - Arguments to find a ProductCharge
|
||
|
|
* @example
|
||
|
|
* // Get one ProductCharge
|
||
|
|
* const productCharge = await prisma.productCharge.findUnique({
|
||
|
|
* where: {
|
||
|
|
* // ... provide filter here
|
||
|
|
* }
|
||
|
|
* })
|
||
|
|
*/
|
||
|
|
findUnique<T extends ProductChargeFindUniqueArgs>(args: Prisma.SelectSubset<T, ProductChargeFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ProductChargeClient<runtime.Types.Result.GetResult<Prisma.$ProductChargePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Find one ProductCharge that matches the filter or throw an error with `error.code='P2025'`
|
||
|
|
* if no matches were found.
|
||
|
|
* @param {ProductChargeFindUniqueOrThrowArgs} args - Arguments to find a ProductCharge
|
||
|
|
* @example
|
||
|
|
* // Get one ProductCharge
|
||
|
|
* const productCharge = await prisma.productCharge.findUniqueOrThrow({
|
||
|
|
* where: {
|
||
|
|
* // ... provide filter here
|
||
|
|
* }
|
||
|
|
* })
|
||
|
|
*/
|
||
|
|
findUniqueOrThrow<T extends ProductChargeFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ProductChargeFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ProductChargeClient<runtime.Types.Result.GetResult<Prisma.$ProductChargePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Find the first ProductCharge 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 {ProductChargeFindFirstArgs} args - Arguments to find a ProductCharge
|
||
|
|
* @example
|
||
|
|
* // Get one ProductCharge
|
||
|
|
* const productCharge = await prisma.productCharge.findFirst({
|
||
|
|
* where: {
|
||
|
|
* // ... provide filter here
|
||
|
|
* }
|
||
|
|
* })
|
||
|
|
*/
|
||
|
|
findFirst<T extends ProductChargeFindFirstArgs>(args?: Prisma.SelectSubset<T, ProductChargeFindFirstArgs<ExtArgs>>): Prisma.Prisma__ProductChargeClient<runtime.Types.Result.GetResult<Prisma.$ProductChargePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Find the first ProductCharge 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 {ProductChargeFindFirstOrThrowArgs} args - Arguments to find a ProductCharge
|
||
|
|
* @example
|
||
|
|
* // Get one ProductCharge
|
||
|
|
* const productCharge = await prisma.productCharge.findFirstOrThrow({
|
||
|
|
* where: {
|
||
|
|
* // ... provide filter here
|
||
|
|
* }
|
||
|
|
* })
|
||
|
|
*/
|
||
|
|
findFirstOrThrow<T extends ProductChargeFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ProductChargeFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ProductChargeClient<runtime.Types.Result.GetResult<Prisma.$ProductChargePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Find zero or more ProductCharges 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 {ProductChargeFindManyArgs} args - Arguments to filter and select certain fields only.
|
||
|
|
* @example
|
||
|
|
* // Get all ProductCharges
|
||
|
|
* const productCharges = await prisma.productCharge.findMany()
|
||
|
|
*
|
||
|
|
* // Get first 10 ProductCharges
|
||
|
|
* const productCharges = await prisma.productCharge.findMany({ take: 10 })
|
||
|
|
*
|
||
|
|
* // Only select the `id`
|
||
|
|
* const productChargeWithIdOnly = await prisma.productCharge.findMany({ select: { id: true } })
|
||
|
|
*
|
||
|
|
*/
|
||
|
|
findMany<T extends ProductChargeFindManyArgs>(args?: Prisma.SelectSubset<T, ProductChargeFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProductChargePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Create a ProductCharge.
|
||
|
|
* @param {ProductChargeCreateArgs} args - Arguments to create a ProductCharge.
|
||
|
|
* @example
|
||
|
|
* // Create one ProductCharge
|
||
|
|
* const ProductCharge = await prisma.productCharge.create({
|
||
|
|
* data: {
|
||
|
|
* // ... data to create a ProductCharge
|
||
|
|
* }
|
||
|
|
* })
|
||
|
|
*
|
||
|
|
*/
|
||
|
|
create<T extends ProductChargeCreateArgs>(args: Prisma.SelectSubset<T, ProductChargeCreateArgs<ExtArgs>>): Prisma.Prisma__ProductChargeClient<runtime.Types.Result.GetResult<Prisma.$ProductChargePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Create many ProductCharges.
|
||
|
|
* @param {ProductChargeCreateManyArgs} args - Arguments to create many ProductCharges.
|
||
|
|
* @example
|
||
|
|
* // Create many ProductCharges
|
||
|
|
* const productCharge = await prisma.productCharge.createMany({
|
||
|
|
* data: [
|
||
|
|
* // ... provide data here
|
||
|
|
* ]
|
||
|
|
* })
|
||
|
|
*
|
||
|
|
*/
|
||
|
|
createMany<T extends ProductChargeCreateManyArgs>(args?: Prisma.SelectSubset<T, ProductChargeCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Delete a ProductCharge.
|
||
|
|
* @param {ProductChargeDeleteArgs} args - Arguments to delete one ProductCharge.
|
||
|
|
* @example
|
||
|
|
* // Delete one ProductCharge
|
||
|
|
* const ProductCharge = await prisma.productCharge.delete({
|
||
|
|
* where: {
|
||
|
|
* // ... filter to delete one ProductCharge
|
||
|
|
* }
|
||
|
|
* })
|
||
|
|
*
|
||
|
|
*/
|
||
|
|
delete<T extends ProductChargeDeleteArgs>(args: Prisma.SelectSubset<T, ProductChargeDeleteArgs<ExtArgs>>): Prisma.Prisma__ProductChargeClient<runtime.Types.Result.GetResult<Prisma.$ProductChargePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Update one ProductCharge.
|
||
|
|
* @param {ProductChargeUpdateArgs} args - Arguments to update one ProductCharge.
|
||
|
|
* @example
|
||
|
|
* // Update one ProductCharge
|
||
|
|
* const productCharge = await prisma.productCharge.update({
|
||
|
|
* where: {
|
||
|
|
* // ... provide filter here
|
||
|
|
* },
|
||
|
|
* data: {
|
||
|
|
* // ... provide data here
|
||
|
|
* }
|
||
|
|
* })
|
||
|
|
*
|
||
|
|
*/
|
||
|
|
update<T extends ProductChargeUpdateArgs>(args: Prisma.SelectSubset<T, ProductChargeUpdateArgs<ExtArgs>>): Prisma.Prisma__ProductChargeClient<runtime.Types.Result.GetResult<Prisma.$ProductChargePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Delete zero or more ProductCharges.
|
||
|
|
* @param {ProductChargeDeleteManyArgs} args - Arguments to filter ProductCharges to delete.
|
||
|
|
* @example
|
||
|
|
* // Delete a few ProductCharges
|
||
|
|
* const { count } = await prisma.productCharge.deleteMany({
|
||
|
|
* where: {
|
||
|
|
* // ... provide filter here
|
||
|
|
* }
|
||
|
|
* })
|
||
|
|
*
|
||
|
|
*/
|
||
|
|
deleteMany<T extends ProductChargeDeleteManyArgs>(args?: Prisma.SelectSubset<T, ProductChargeDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Update zero or more ProductCharges.
|
||
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
||
|
|
* Read more here: https://pris.ly/d/null-undefined
|
||
|
|
* @param {ProductChargeUpdateManyArgs} args - Arguments to update one or more rows.
|
||
|
|
* @example
|
||
|
|
* // Update many ProductCharges
|
||
|
|
* const productCharge = await prisma.productCharge.updateMany({
|
||
|
|
* where: {
|
||
|
|
* // ... provide filter here
|
||
|
|
* },
|
||
|
|
* data: {
|
||
|
|
* // ... provide data here
|
||
|
|
* }
|
||
|
|
* })
|
||
|
|
*
|
||
|
|
*/
|
||
|
|
updateMany<T extends ProductChargeUpdateManyArgs>(args: Prisma.SelectSubset<T, ProductChargeUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Create or update one ProductCharge.
|
||
|
|
* @param {ProductChargeUpsertArgs} args - Arguments to update or create a ProductCharge.
|
||
|
|
* @example
|
||
|
|
* // Update or create a ProductCharge
|
||
|
|
* const productCharge = await prisma.productCharge.upsert({
|
||
|
|
* create: {
|
||
|
|
* // ... data to create a ProductCharge
|
||
|
|
* },
|
||
|
|
* update: {
|
||
|
|
* // ... in case it already exists, update
|
||
|
|
* },
|
||
|
|
* where: {
|
||
|
|
* // ... the filter for the ProductCharge we want to update
|
||
|
|
* }
|
||
|
|
* })
|
||
|
|
*/
|
||
|
|
upsert<T extends ProductChargeUpsertArgs>(args: Prisma.SelectSubset<T, ProductChargeUpsertArgs<ExtArgs>>): Prisma.Prisma__ProductChargeClient<runtime.Types.Result.GetResult<Prisma.$ProductChargePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
||
|
|
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Count the number of ProductCharges.
|
||
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
||
|
|
* Read more here: https://pris.ly/d/null-undefined
|
||
|
|
* @param {ProductChargeCountArgs} args - Arguments to filter ProductCharges to count.
|
||
|
|
* @example
|
||
|
|
* // Count the number of ProductCharges
|
||
|
|
* const count = await prisma.productCharge.count({
|
||
|
|
* where: {
|
||
|
|
* // ... the filter for the ProductCharges we want to count
|
||
|
|
* }
|
||
|
|
* })
|
||
|
|
**/
|
||
|
|
count<T extends ProductChargeCountArgs>(
|
||
|
|
args?: Prisma.Subset<T, ProductChargeCountArgs>,
|
||
|
|
): Prisma.PrismaPromise<
|
||
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
||
|
|
? T['select'] extends true
|
||
|
|
? number
|
||
|
|
: Prisma.GetScalarType<T['select'], ProductChargeCountAggregateOutputType>
|
||
|
|
: number
|
||
|
|
>
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Allows you to perform aggregations operations on a ProductCharge.
|
||
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
||
|
|
* Read more here: https://pris.ly/d/null-undefined
|
||
|
|
* @param {ProductChargeAggregateArgs} 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 ProductChargeAggregateArgs>(args: Prisma.Subset<T, ProductChargeAggregateArgs>): Prisma.PrismaPromise<GetProductChargeAggregateType<T>>
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Group by ProductCharge.
|
||
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
||
|
|
* Read more here: https://pris.ly/d/null-undefined
|
||
|
|
* @param {ProductChargeGroupByArgs} 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 ProductChargeGroupByArgs,
|
||
|
|
HasSelectOrTake extends Prisma.Or<
|
||
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
||
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
||
|
|
>,
|
||
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
||
|
|
? { orderBy: ProductChargeGroupByArgs['orderBy'] }
|
||
|
|
: { orderBy?: ProductChargeGroupByArgs['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, ProductChargeGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetProductChargeGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
||
|
|
/**
|
||
|
|
* Fields of the ProductCharge model
|
||
|
|
*/
|
||
|
|
readonly fields: ProductChargeFieldRefs;
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* The delegate class that acts as a "Promise-like" for ProductCharge.
|
||
|
|
* 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__ProductChargeClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
||
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
||
|
|
inventory<T extends Prisma.InventoryDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.InventoryDefaultArgs<ExtArgs>>): Prisma.Prisma__InventoryClient<runtime.Types.Result.GetResult<Prisma.$InventoryPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
||
|
|
product<T extends Prisma.ProductDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ProductDefaultArgs<ExtArgs>>): Prisma.Prisma__ProductClient<runtime.Types.Result.GetResult<Prisma.$ProductPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
||
|
|
supplier<T extends Prisma.SupplierDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.SupplierDefaultArgs<ExtArgs>>): Prisma.Prisma__SupplierClient<runtime.Types.Result.GetResult<Prisma.$SupplierPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
||
|
|
/**
|
||
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
||
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
||
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
||
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
||
|
|
*/
|
||
|
|
then<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 ProductCharge model
|
||
|
|
*/
|
||
|
|
export interface ProductChargeFieldRefs {
|
||
|
|
readonly id: Prisma.FieldRef<"ProductCharge", 'Int'>
|
||
|
|
readonly count: Prisma.FieldRef<"ProductCharge", 'Decimal'>
|
||
|
|
readonly fee: Prisma.FieldRef<"ProductCharge", 'Decimal'>
|
||
|
|
readonly totalAmount: Prisma.FieldRef<"ProductCharge", 'Decimal'>
|
||
|
|
readonly isSettled: Prisma.FieldRef<"ProductCharge", 'Boolean'>
|
||
|
|
readonly buyAt: Prisma.FieldRef<"ProductCharge", 'DateTime'>
|
||
|
|
readonly description: Prisma.FieldRef<"ProductCharge", 'String'>
|
||
|
|
readonly createdAt: Prisma.FieldRef<"ProductCharge", 'DateTime'>
|
||
|
|
readonly updatedAt: Prisma.FieldRef<"ProductCharge", 'DateTime'>
|
||
|
|
readonly deletedAt: Prisma.FieldRef<"ProductCharge", 'DateTime'>
|
||
|
|
readonly productId: Prisma.FieldRef<"ProductCharge", 'Int'>
|
||
|
|
readonly inventoryId: Prisma.FieldRef<"ProductCharge", 'Int'>
|
||
|
|
readonly supplierId: Prisma.FieldRef<"ProductCharge", 'Int'>
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
// Custom InputTypes
|
||
|
|
/**
|
||
|
|
* ProductCharge findUnique
|
||
|
|
*/
|
||
|
|
export type ProductChargeFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||
|
|
/**
|
||
|
|
* Select specific fields to fetch from the ProductCharge
|
||
|
|
*/
|
||
|
|
select?: Prisma.ProductChargeSelect<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Omit specific fields from the ProductCharge
|
||
|
|
*/
|
||
|
|
omit?: Prisma.ProductChargeOmit<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Choose, which related nodes to fetch as well
|
||
|
|
*/
|
||
|
|
include?: Prisma.ProductChargeInclude<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Filter, which ProductCharge to fetch.
|
||
|
|
*/
|
||
|
|
where: Prisma.ProductChargeWhereUniqueInput
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* ProductCharge findUniqueOrThrow
|
||
|
|
*/
|
||
|
|
export type ProductChargeFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||
|
|
/**
|
||
|
|
* Select specific fields to fetch from the ProductCharge
|
||
|
|
*/
|
||
|
|
select?: Prisma.ProductChargeSelect<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Omit specific fields from the ProductCharge
|
||
|
|
*/
|
||
|
|
omit?: Prisma.ProductChargeOmit<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Choose, which related nodes to fetch as well
|
||
|
|
*/
|
||
|
|
include?: Prisma.ProductChargeInclude<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Filter, which ProductCharge to fetch.
|
||
|
|
*/
|
||
|
|
where: Prisma.ProductChargeWhereUniqueInput
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* ProductCharge findFirst
|
||
|
|
*/
|
||
|
|
export type ProductChargeFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||
|
|
/**
|
||
|
|
* Select specific fields to fetch from the ProductCharge
|
||
|
|
*/
|
||
|
|
select?: Prisma.ProductChargeSelect<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Omit specific fields from the ProductCharge
|
||
|
|
*/
|
||
|
|
omit?: Prisma.ProductChargeOmit<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Choose, which related nodes to fetch as well
|
||
|
|
*/
|
||
|
|
include?: Prisma.ProductChargeInclude<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Filter, which ProductCharge to fetch.
|
||
|
|
*/
|
||
|
|
where?: Prisma.ProductChargeWhereInput
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
||
|
|
*
|
||
|
|
* Determine the order of ProductCharges to fetch.
|
||
|
|
*/
|
||
|
|
orderBy?: Prisma.ProductChargeOrderByWithRelationInput | Prisma.ProductChargeOrderByWithRelationInput[]
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
||
|
|
*
|
||
|
|
* Sets the position for searching for ProductCharges.
|
||
|
|
*/
|
||
|
|
cursor?: Prisma.ProductChargeWhereUniqueInput
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
||
|
|
*
|
||
|
|
* Take `±n` ProductCharges 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` ProductCharges.
|
||
|
|
*/
|
||
|
|
skip?: number
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
||
|
|
*
|
||
|
|
* Filter by unique combinations of ProductCharges.
|
||
|
|
*/
|
||
|
|
distinct?: Prisma.ProductChargeScalarFieldEnum | Prisma.ProductChargeScalarFieldEnum[]
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* ProductCharge findFirstOrThrow
|
||
|
|
*/
|
||
|
|
export type ProductChargeFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||
|
|
/**
|
||
|
|
* Select specific fields to fetch from the ProductCharge
|
||
|
|
*/
|
||
|
|
select?: Prisma.ProductChargeSelect<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Omit specific fields from the ProductCharge
|
||
|
|
*/
|
||
|
|
omit?: Prisma.ProductChargeOmit<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Choose, which related nodes to fetch as well
|
||
|
|
*/
|
||
|
|
include?: Prisma.ProductChargeInclude<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Filter, which ProductCharge to fetch.
|
||
|
|
*/
|
||
|
|
where?: Prisma.ProductChargeWhereInput
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
||
|
|
*
|
||
|
|
* Determine the order of ProductCharges to fetch.
|
||
|
|
*/
|
||
|
|
orderBy?: Prisma.ProductChargeOrderByWithRelationInput | Prisma.ProductChargeOrderByWithRelationInput[]
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
||
|
|
*
|
||
|
|
* Sets the position for searching for ProductCharges.
|
||
|
|
*/
|
||
|
|
cursor?: Prisma.ProductChargeWhereUniqueInput
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
||
|
|
*
|
||
|
|
* Take `±n` ProductCharges 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` ProductCharges.
|
||
|
|
*/
|
||
|
|
skip?: number
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
||
|
|
*
|
||
|
|
* Filter by unique combinations of ProductCharges.
|
||
|
|
*/
|
||
|
|
distinct?: Prisma.ProductChargeScalarFieldEnum | Prisma.ProductChargeScalarFieldEnum[]
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* ProductCharge findMany
|
||
|
|
*/
|
||
|
|
export type ProductChargeFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||
|
|
/**
|
||
|
|
* Select specific fields to fetch from the ProductCharge
|
||
|
|
*/
|
||
|
|
select?: Prisma.ProductChargeSelect<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Omit specific fields from the ProductCharge
|
||
|
|
*/
|
||
|
|
omit?: Prisma.ProductChargeOmit<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Choose, which related nodes to fetch as well
|
||
|
|
*/
|
||
|
|
include?: Prisma.ProductChargeInclude<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Filter, which ProductCharges to fetch.
|
||
|
|
*/
|
||
|
|
where?: Prisma.ProductChargeWhereInput
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
||
|
|
*
|
||
|
|
* Determine the order of ProductCharges to fetch.
|
||
|
|
*/
|
||
|
|
orderBy?: Prisma.ProductChargeOrderByWithRelationInput | Prisma.ProductChargeOrderByWithRelationInput[]
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
||
|
|
*
|
||
|
|
* Sets the position for listing ProductCharges.
|
||
|
|
*/
|
||
|
|
cursor?: Prisma.ProductChargeWhereUniqueInput
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
||
|
|
*
|
||
|
|
* Take `±n` ProductCharges 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` ProductCharges.
|
||
|
|
*/
|
||
|
|
skip?: number
|
||
|
|
distinct?: Prisma.ProductChargeScalarFieldEnum | Prisma.ProductChargeScalarFieldEnum[]
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* ProductCharge create
|
||
|
|
*/
|
||
|
|
export type ProductChargeCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||
|
|
/**
|
||
|
|
* Select specific fields to fetch from the ProductCharge
|
||
|
|
*/
|
||
|
|
select?: Prisma.ProductChargeSelect<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Omit specific fields from the ProductCharge
|
||
|
|
*/
|
||
|
|
omit?: Prisma.ProductChargeOmit<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Choose, which related nodes to fetch as well
|
||
|
|
*/
|
||
|
|
include?: Prisma.ProductChargeInclude<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* The data needed to create a ProductCharge.
|
||
|
|
*/
|
||
|
|
data: Prisma.XOR<Prisma.ProductChargeCreateInput, Prisma.ProductChargeUncheckedCreateInput>
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* ProductCharge createMany
|
||
|
|
*/
|
||
|
|
export type ProductChargeCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||
|
|
/**
|
||
|
|
* The data used to create many ProductCharges.
|
||
|
|
*/
|
||
|
|
data: Prisma.ProductChargeCreateManyInput | Prisma.ProductChargeCreateManyInput[]
|
||
|
|
skipDuplicates?: boolean
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* ProductCharge update
|
||
|
|
*/
|
||
|
|
export type ProductChargeUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||
|
|
/**
|
||
|
|
* Select specific fields to fetch from the ProductCharge
|
||
|
|
*/
|
||
|
|
select?: Prisma.ProductChargeSelect<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Omit specific fields from the ProductCharge
|
||
|
|
*/
|
||
|
|
omit?: Prisma.ProductChargeOmit<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Choose, which related nodes to fetch as well
|
||
|
|
*/
|
||
|
|
include?: Prisma.ProductChargeInclude<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* The data needed to update a ProductCharge.
|
||
|
|
*/
|
||
|
|
data: Prisma.XOR<Prisma.ProductChargeUpdateInput, Prisma.ProductChargeUncheckedUpdateInput>
|
||
|
|
/**
|
||
|
|
* Choose, which ProductCharge to update.
|
||
|
|
*/
|
||
|
|
where: Prisma.ProductChargeWhereUniqueInput
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* ProductCharge updateMany
|
||
|
|
*/
|
||
|
|
export type ProductChargeUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||
|
|
/**
|
||
|
|
* The data used to update ProductCharges.
|
||
|
|
*/
|
||
|
|
data: Prisma.XOR<Prisma.ProductChargeUpdateManyMutationInput, Prisma.ProductChargeUncheckedUpdateManyInput>
|
||
|
|
/**
|
||
|
|
* Filter which ProductCharges to update
|
||
|
|
*/
|
||
|
|
where?: Prisma.ProductChargeWhereInput
|
||
|
|
/**
|
||
|
|
* Limit how many ProductCharges to update.
|
||
|
|
*/
|
||
|
|
limit?: number
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* ProductCharge upsert
|
||
|
|
*/
|
||
|
|
export type ProductChargeUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||
|
|
/**
|
||
|
|
* Select specific fields to fetch from the ProductCharge
|
||
|
|
*/
|
||
|
|
select?: Prisma.ProductChargeSelect<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Omit specific fields from the ProductCharge
|
||
|
|
*/
|
||
|
|
omit?: Prisma.ProductChargeOmit<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Choose, which related nodes to fetch as well
|
||
|
|
*/
|
||
|
|
include?: Prisma.ProductChargeInclude<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* The filter to search for the ProductCharge to update in case it exists.
|
||
|
|
*/
|
||
|
|
where: Prisma.ProductChargeWhereUniqueInput
|
||
|
|
/**
|
||
|
|
* In case the ProductCharge found by the `where` argument doesn't exist, create a new ProductCharge with this data.
|
||
|
|
*/
|
||
|
|
create: Prisma.XOR<Prisma.ProductChargeCreateInput, Prisma.ProductChargeUncheckedCreateInput>
|
||
|
|
/**
|
||
|
|
* In case the ProductCharge was found with the provided `where` argument, update it with this data.
|
||
|
|
*/
|
||
|
|
update: Prisma.XOR<Prisma.ProductChargeUpdateInput, Prisma.ProductChargeUncheckedUpdateInput>
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* ProductCharge delete
|
||
|
|
*/
|
||
|
|
export type ProductChargeDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||
|
|
/**
|
||
|
|
* Select specific fields to fetch from the ProductCharge
|
||
|
|
*/
|
||
|
|
select?: Prisma.ProductChargeSelect<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Omit specific fields from the ProductCharge
|
||
|
|
*/
|
||
|
|
omit?: Prisma.ProductChargeOmit<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Choose, which related nodes to fetch as well
|
||
|
|
*/
|
||
|
|
include?: Prisma.ProductChargeInclude<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Filter which ProductCharge to delete.
|
||
|
|
*/
|
||
|
|
where: Prisma.ProductChargeWhereUniqueInput
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* ProductCharge deleteMany
|
||
|
|
*/
|
||
|
|
export type ProductChargeDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||
|
|
/**
|
||
|
|
* Filter which ProductCharges to delete
|
||
|
|
*/
|
||
|
|
where?: Prisma.ProductChargeWhereInput
|
||
|
|
/**
|
||
|
|
* Limit how many ProductCharges to delete.
|
||
|
|
*/
|
||
|
|
limit?: number
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* ProductCharge without action
|
||
|
|
*/
|
||
|
|
export type ProductChargeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||
|
|
/**
|
||
|
|
* Select specific fields to fetch from the ProductCharge
|
||
|
|
*/
|
||
|
|
select?: Prisma.ProductChargeSelect<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Omit specific fields from the ProductCharge
|
||
|
|
*/
|
||
|
|
omit?: Prisma.ProductChargeOmit<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Choose, which related nodes to fetch as well
|
||
|
|
*/
|
||
|
|
include?: Prisma.ProductChargeInclude<ExtArgs> | null
|
||
|
|
}
|