2025-12-09 13:59:07 +03:30
|
|
|
|
|
|
|
|
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
|
|
|
/* eslint-disable */
|
|
|
|
|
// biome-ignore-all lint: generated file
|
|
|
|
|
// @ts-nocheck
|
|
|
|
|
/*
|
|
|
|
|
* This file exports the `SalesInvoiceItem` 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 SalesInvoiceItem
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
export type SalesInvoiceItemModel = runtime.Types.Result.DefaultSelection<Prisma.$SalesInvoiceItemPayload>
|
|
|
|
|
|
|
|
|
|
export type AggregateSalesInvoiceItem = {
|
|
|
|
|
_count: SalesInvoiceItemCountAggregateOutputType | null
|
|
|
|
|
_avg: SalesInvoiceItemAvgAggregateOutputType | null
|
|
|
|
|
_sum: SalesInvoiceItemSumAggregateOutputType | null
|
|
|
|
|
_min: SalesInvoiceItemMinAggregateOutputType | null
|
|
|
|
|
_max: SalesInvoiceItemMaxAggregateOutputType | null
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemAvgAggregateOutputType = {
|
|
|
|
|
id: number | null
|
|
|
|
|
count: runtime.Decimal | null
|
2026-01-04 13:45:26 +03:30
|
|
|
unitPrice: runtime.Decimal | null
|
|
|
|
|
totalAmount: runtime.Decimal | null
|
2025-12-09 13:59:07 +03:30
|
|
|
invoiceId: number | null
|
2026-02-04 13:49:07 +03:30
|
|
|
goodId: number | null
|
|
|
|
|
serviceId: number | null
|
2025-12-09 13:59:07 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemSumAggregateOutputType = {
|
|
|
|
|
id: number | null
|
|
|
|
|
count: runtime.Decimal | null
|
2026-01-04 13:45:26 +03:30
|
|
|
unitPrice: runtime.Decimal | null
|
|
|
|
|
totalAmount: runtime.Decimal | null
|
2025-12-09 13:59:07 +03:30
|
|
|
invoiceId: number | null
|
2026-02-04 13:49:07 +03:30
|
|
|
goodId: number | null
|
|
|
|
|
serviceId: number | null
|
2025-12-09 13:59:07 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemMinAggregateOutputType = {
|
|
|
|
|
id: number | null
|
|
|
|
|
count: runtime.Decimal | null
|
2026-01-04 13:45:26 +03:30
|
|
|
unitPrice: runtime.Decimal | null
|
|
|
|
|
totalAmount: runtime.Decimal | null
|
2025-12-09 13:59:07 +03:30
|
|
|
createdAt: Date | null
|
|
|
|
|
invoiceId: number | null
|
2026-02-04 13:49:07 +03:30
|
|
|
goodId: number | null
|
|
|
|
|
serviceId: number | null
|
2025-12-09 13:59:07 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemMaxAggregateOutputType = {
|
|
|
|
|
id: number | null
|
|
|
|
|
count: runtime.Decimal | null
|
2026-01-04 13:45:26 +03:30
|
|
|
unitPrice: runtime.Decimal | null
|
|
|
|
|
totalAmount: runtime.Decimal | null
|
2025-12-09 13:59:07 +03:30
|
|
|
createdAt: Date | null
|
|
|
|
|
invoiceId: number | null
|
2026-02-04 13:49:07 +03:30
|
|
|
goodId: number | null
|
|
|
|
|
serviceId: number | null
|
2025-12-09 13:59:07 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemCountAggregateOutputType = {
|
|
|
|
|
id: number
|
|
|
|
|
count: number
|
2026-01-04 13:45:26 +03:30
|
|
|
unitPrice: number
|
|
|
|
|
totalAmount: number
|
2025-12-09 13:59:07 +03:30
|
|
|
createdAt: number
|
|
|
|
|
invoiceId: number
|
2026-02-04 13:49:07 +03:30
|
|
|
goodId: number
|
|
|
|
|
serviceId: number
|
2025-12-09 13:59:07 +03:30
|
|
|
_all: number
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemAvgAggregateInputType = {
|
|
|
|
|
id?: true
|
|
|
|
|
count?: true
|
2026-01-04 13:45:26 +03:30
|
|
|
unitPrice?: true
|
|
|
|
|
totalAmount?: true
|
2025-12-09 13:59:07 +03:30
|
|
|
invoiceId?: true
|
2026-02-04 13:49:07 +03:30
|
|
|
goodId?: true
|
|
|
|
|
serviceId?: true
|
2025-12-09 13:59:07 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemSumAggregateInputType = {
|
|
|
|
|
id?: true
|
|
|
|
|
count?: true
|
2026-01-04 13:45:26 +03:30
|
|
|
unitPrice?: true
|
|
|
|
|
totalAmount?: true
|
2025-12-09 13:59:07 +03:30
|
|
|
invoiceId?: true
|
2026-02-04 13:49:07 +03:30
|
|
|
goodId?: true
|
|
|
|
|
serviceId?: true
|
2025-12-09 13:59:07 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemMinAggregateInputType = {
|
|
|
|
|
id?: true
|
|
|
|
|
count?: true
|
2026-01-04 13:45:26 +03:30
|
|
|
unitPrice?: true
|
|
|
|
|
totalAmount?: true
|
2025-12-09 13:59:07 +03:30
|
|
|
createdAt?: true
|
|
|
|
|
invoiceId?: true
|
2026-02-04 13:49:07 +03:30
|
|
|
goodId?: true
|
|
|
|
|
serviceId?: true
|
2025-12-09 13:59:07 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemMaxAggregateInputType = {
|
|
|
|
|
id?: true
|
|
|
|
|
count?: true
|
2026-01-04 13:45:26 +03:30
|
|
|
unitPrice?: true
|
|
|
|
|
totalAmount?: true
|
2025-12-09 13:59:07 +03:30
|
|
|
createdAt?: true
|
|
|
|
|
invoiceId?: true
|
2026-02-04 13:49:07 +03:30
|
|
|
goodId?: true
|
|
|
|
|
serviceId?: true
|
2025-12-09 13:59:07 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemCountAggregateInputType = {
|
|
|
|
|
id?: true
|
|
|
|
|
count?: true
|
2026-01-04 13:45:26 +03:30
|
|
|
unitPrice?: true
|
|
|
|
|
totalAmount?: true
|
2025-12-09 13:59:07 +03:30
|
|
|
createdAt?: true
|
|
|
|
|
invoiceId?: true
|
2026-02-04 13:49:07 +03:30
|
|
|
goodId?: true
|
|
|
|
|
serviceId?: true
|
2025-12-09 13:59:07 +03:30
|
|
|
_all?: true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Filter which SalesInvoiceItem to aggregate.
|
|
|
|
|
*/
|
|
|
|
|
where?: Prisma.SalesInvoiceItemWhereInput
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
|
|
|
*
|
|
|
|
|
* Determine the order of SalesInvoiceItems to fetch.
|
|
|
|
|
*/
|
|
|
|
|
orderBy?: Prisma.SalesInvoiceItemOrderByWithRelationInput | Prisma.SalesInvoiceItemOrderByWithRelationInput[]
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
|
|
|
*
|
|
|
|
|
* Sets the start position
|
|
|
|
|
*/
|
|
|
|
|
cursor?: Prisma.SalesInvoiceItemWhereUniqueInput
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
|
|
|
*
|
|
|
|
|
* Take `±n` SalesInvoiceItems 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` SalesInvoiceItems.
|
|
|
|
|
*/
|
|
|
|
|
skip?: number
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
|
|
|
*
|
|
|
|
|
* Count returned SalesInvoiceItems
|
|
|
|
|
**/
|
|
|
|
|
_count?: true | SalesInvoiceItemCountAggregateInputType
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
|
|
|
*
|
|
|
|
|
* Select which fields to average
|
|
|
|
|
**/
|
|
|
|
|
_avg?: SalesInvoiceItemAvgAggregateInputType
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
|
|
|
*
|
|
|
|
|
* Select which fields to sum
|
|
|
|
|
**/
|
|
|
|
|
_sum?: SalesInvoiceItemSumAggregateInputType
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
|
|
|
*
|
|
|
|
|
* Select which fields to find the minimum value
|
|
|
|
|
**/
|
|
|
|
|
_min?: SalesInvoiceItemMinAggregateInputType
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
|
|
|
*
|
|
|
|
|
* Select which fields to find the maximum value
|
|
|
|
|
**/
|
|
|
|
|
_max?: SalesInvoiceItemMaxAggregateInputType
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type GetSalesInvoiceItemAggregateType<T extends SalesInvoiceItemAggregateArgs> = {
|
|
|
|
|
[P in keyof T & keyof AggregateSalesInvoiceItem]: P extends '_count' | 'count'
|
|
|
|
|
? T[P] extends true
|
|
|
|
|
? number
|
|
|
|
|
: Prisma.GetScalarType<T[P], AggregateSalesInvoiceItem[P]>
|
|
|
|
|
: Prisma.GetScalarType<T[P], AggregateSalesInvoiceItem[P]>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
where?: Prisma.SalesInvoiceItemWhereInput
|
|
|
|
|
orderBy?: Prisma.SalesInvoiceItemOrderByWithAggregationInput | Prisma.SalesInvoiceItemOrderByWithAggregationInput[]
|
|
|
|
|
by: Prisma.SalesInvoiceItemScalarFieldEnum[] | Prisma.SalesInvoiceItemScalarFieldEnum
|
|
|
|
|
having?: Prisma.SalesInvoiceItemScalarWhereWithAggregatesInput
|
|
|
|
|
take?: number
|
|
|
|
|
skip?: number
|
|
|
|
|
_count?: SalesInvoiceItemCountAggregateInputType | true
|
|
|
|
|
_avg?: SalesInvoiceItemAvgAggregateInputType
|
|
|
|
|
_sum?: SalesInvoiceItemSumAggregateInputType
|
|
|
|
|
_min?: SalesInvoiceItemMinAggregateInputType
|
|
|
|
|
_max?: SalesInvoiceItemMaxAggregateInputType
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemGroupByOutputType = {
|
|
|
|
|
id: number
|
|
|
|
|
count: runtime.Decimal
|
2026-01-04 13:45:26 +03:30
|
|
|
unitPrice: runtime.Decimal
|
|
|
|
|
totalAmount: runtime.Decimal
|
2025-12-09 13:59:07 +03:30
|
|
|
createdAt: Date
|
|
|
|
|
invoiceId: number
|
2026-02-04 13:49:07 +03:30
|
|
|
goodId: number
|
|
|
|
|
serviceId: number
|
2025-12-09 13:59:07 +03:30
|
|
|
_count: SalesInvoiceItemCountAggregateOutputType | null
|
|
|
|
|
_avg: SalesInvoiceItemAvgAggregateOutputType | null
|
|
|
|
|
_sum: SalesInvoiceItemSumAggregateOutputType | null
|
|
|
|
|
_min: SalesInvoiceItemMinAggregateOutputType | null
|
|
|
|
|
_max: SalesInvoiceItemMaxAggregateOutputType | null
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type GetSalesInvoiceItemGroupByPayload<T extends SalesInvoiceItemGroupByArgs> = Prisma.PrismaPromise<
|
|
|
|
|
Array<
|
|
|
|
|
Prisma.PickEnumerable<SalesInvoiceItemGroupByOutputType, T['by']> &
|
|
|
|
|
{
|
|
|
|
|
[P in ((keyof T) & (keyof SalesInvoiceItemGroupByOutputType))]: P extends '_count'
|
|
|
|
|
? T[P] extends boolean
|
|
|
|
|
? number
|
|
|
|
|
: Prisma.GetScalarType<T[P], SalesInvoiceItemGroupByOutputType[P]>
|
|
|
|
|
: Prisma.GetScalarType<T[P], SalesInvoiceItemGroupByOutputType[P]>
|
|
|
|
|
}
|
|
|
|
|
>
|
|
|
|
|
>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemWhereInput = {
|
|
|
|
|
AND?: Prisma.SalesInvoiceItemWhereInput | Prisma.SalesInvoiceItemWhereInput[]
|
|
|
|
|
OR?: Prisma.SalesInvoiceItemWhereInput[]
|
|
|
|
|
NOT?: Prisma.SalesInvoiceItemWhereInput | Prisma.SalesInvoiceItemWhereInput[]
|
|
|
|
|
id?: Prisma.IntFilter<"SalesInvoiceItem"> | number
|
|
|
|
|
count?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
2026-01-04 13:45:26 +03:30
|
|
|
unitPrice?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
totalAmount?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
2025-12-09 13:59:07 +03:30
|
|
|
createdAt?: Prisma.DateTimeFilter<"SalesInvoiceItem"> | Date | string
|
|
|
|
|
invoiceId?: Prisma.IntFilter<"SalesInvoiceItem"> | number
|
2026-02-04 13:49:07 +03:30
|
|
|
goodId?: Prisma.IntFilter<"SalesInvoiceItem"> | number
|
|
|
|
|
serviceId?: Prisma.IntFilter<"SalesInvoiceItem"> | number
|
2025-12-09 13:59:07 +03:30
|
|
|
invoice?: Prisma.XOR<Prisma.SalesInvoiceScalarRelationFilter, Prisma.SalesInvoiceWhereInput>
|
2026-02-04 13:49:07 +03:30
|
|
|
good?: Prisma.XOR<Prisma.GoodNullableScalarRelationFilter, Prisma.GoodWhereInput> | null
|
|
|
|
|
service?: Prisma.XOR<Prisma.ServiceNullableScalarRelationFilter, Prisma.ServiceWhereInput> | null
|
2025-12-09 13:59:07 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemOrderByWithRelationInput = {
|
|
|
|
|
id?: Prisma.SortOrder
|
|
|
|
|
count?: Prisma.SortOrder
|
2026-01-04 13:45:26 +03:30
|
|
|
unitPrice?: Prisma.SortOrder
|
|
|
|
|
totalAmount?: Prisma.SortOrder
|
2025-12-09 13:59:07 +03:30
|
|
|
createdAt?: Prisma.SortOrder
|
|
|
|
|
invoiceId?: Prisma.SortOrder
|
2026-02-04 13:49:07 +03:30
|
|
|
goodId?: Prisma.SortOrder
|
|
|
|
|
serviceId?: Prisma.SortOrder
|
2025-12-09 13:59:07 +03:30
|
|
|
invoice?: Prisma.SalesInvoiceOrderByWithRelationInput
|
2026-02-04 13:49:07 +03:30
|
|
|
good?: Prisma.GoodOrderByWithRelationInput
|
|
|
|
|
service?: Prisma.ServiceOrderByWithRelationInput
|
2025-12-09 13:59:07 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemWhereUniqueInput = Prisma.AtLeast<{
|
|
|
|
|
id?: number
|
|
|
|
|
AND?: Prisma.SalesInvoiceItemWhereInput | Prisma.SalesInvoiceItemWhereInput[]
|
|
|
|
|
OR?: Prisma.SalesInvoiceItemWhereInput[]
|
|
|
|
|
NOT?: Prisma.SalesInvoiceItemWhereInput | Prisma.SalesInvoiceItemWhereInput[]
|
|
|
|
|
count?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
2026-01-04 13:45:26 +03:30
|
|
|
unitPrice?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
totalAmount?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
2025-12-09 13:59:07 +03:30
|
|
|
createdAt?: Prisma.DateTimeFilter<"SalesInvoiceItem"> | Date | string
|
|
|
|
|
invoiceId?: Prisma.IntFilter<"SalesInvoiceItem"> | number
|
2026-02-04 13:49:07 +03:30
|
|
|
goodId?: Prisma.IntFilter<"SalesInvoiceItem"> | number
|
|
|
|
|
serviceId?: Prisma.IntFilter<"SalesInvoiceItem"> | number
|
2025-12-09 13:59:07 +03:30
|
|
|
invoice?: Prisma.XOR<Prisma.SalesInvoiceScalarRelationFilter, Prisma.SalesInvoiceWhereInput>
|
2026-02-04 13:49:07 +03:30
|
|
|
good?: Prisma.XOR<Prisma.GoodNullableScalarRelationFilter, Prisma.GoodWhereInput> | null
|
|
|
|
|
service?: Prisma.XOR<Prisma.ServiceNullableScalarRelationFilter, Prisma.ServiceWhereInput> | null
|
2025-12-09 13:59:07 +03:30
|
|
|
}, "id">
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemOrderByWithAggregationInput = {
|
|
|
|
|
id?: Prisma.SortOrder
|
|
|
|
|
count?: Prisma.SortOrder
|
2026-01-04 13:45:26 +03:30
|
|
|
unitPrice?: Prisma.SortOrder
|
|
|
|
|
totalAmount?: Prisma.SortOrder
|
2025-12-09 13:59:07 +03:30
|
|
|
createdAt?: Prisma.SortOrder
|
|
|
|
|
invoiceId?: Prisma.SortOrder
|
2026-02-04 13:49:07 +03:30
|
|
|
goodId?: Prisma.SortOrder
|
|
|
|
|
serviceId?: Prisma.SortOrder
|
2025-12-09 13:59:07 +03:30
|
|
|
_count?: Prisma.SalesInvoiceItemCountOrderByAggregateInput
|
|
|
|
|
_avg?: Prisma.SalesInvoiceItemAvgOrderByAggregateInput
|
|
|
|
|
_max?: Prisma.SalesInvoiceItemMaxOrderByAggregateInput
|
|
|
|
|
_min?: Prisma.SalesInvoiceItemMinOrderByAggregateInput
|
|
|
|
|
_sum?: Prisma.SalesInvoiceItemSumOrderByAggregateInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemScalarWhereWithAggregatesInput = {
|
|
|
|
|
AND?: Prisma.SalesInvoiceItemScalarWhereWithAggregatesInput | Prisma.SalesInvoiceItemScalarWhereWithAggregatesInput[]
|
|
|
|
|
OR?: Prisma.SalesInvoiceItemScalarWhereWithAggregatesInput[]
|
|
|
|
|
NOT?: Prisma.SalesInvoiceItemScalarWhereWithAggregatesInput | Prisma.SalesInvoiceItemScalarWhereWithAggregatesInput[]
|
|
|
|
|
id?: Prisma.IntWithAggregatesFilter<"SalesInvoiceItem"> | number
|
|
|
|
|
count?: Prisma.DecimalWithAggregatesFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
2026-01-04 13:45:26 +03:30
|
|
|
unitPrice?: Prisma.DecimalWithAggregatesFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
totalAmount?: Prisma.DecimalWithAggregatesFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
2025-12-09 13:59:07 +03:30
|
|
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"SalesInvoiceItem"> | Date | string
|
|
|
|
|
invoiceId?: Prisma.IntWithAggregatesFilter<"SalesInvoiceItem"> | number
|
2026-02-04 13:49:07 +03:30
|
|
|
goodId?: Prisma.IntWithAggregatesFilter<"SalesInvoiceItem"> | number
|
|
|
|
|
serviceId?: Prisma.IntWithAggregatesFilter<"SalesInvoiceItem"> | number
|
2025-12-09 13:59:07 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemCreateInput = {
|
|
|
|
|
count: runtime.Decimal | runtime.DecimalJsLike | number | string
|
2026-01-04 13:45:26 +03:30
|
|
|
unitPrice?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
totalAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
2025-12-09 13:59:07 +03:30
|
|
|
createdAt?: Date | string
|
|
|
|
|
invoice: Prisma.SalesInvoiceCreateNestedOneWithoutItemsInput
|
2026-02-04 13:49:07 +03:30
|
|
|
good?: Prisma.GoodCreateNestedOneWithoutSalesInvoiceItemsInput
|
|
|
|
|
service?: Prisma.ServiceCreateNestedOneWithoutSalesInvoiceItemsInput
|
2025-12-09 13:59:07 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemUncheckedCreateInput = {
|
|
|
|
|
id?: number
|
|
|
|
|
count: runtime.Decimal | runtime.DecimalJsLike | number | string
|
2026-01-04 13:45:26 +03:30
|
|
|
unitPrice?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
totalAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
2025-12-09 13:59:07 +03:30
|
|
|
createdAt?: Date | string
|
|
|
|
|
invoiceId: number
|
2026-02-04 13:49:07 +03:30
|
|
|
goodId: number
|
|
|
|
|
serviceId: number
|
2025-12-09 13:59:07 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemUpdateInput = {
|
|
|
|
|
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
2026-01-04 13:45:26 +03:30
|
|
|
unitPrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
2025-12-09 13:59:07 +03:30
|
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
invoice?: Prisma.SalesInvoiceUpdateOneRequiredWithoutItemsNestedInput
|
2026-02-04 13:49:07 +03:30
|
|
|
good?: Prisma.GoodUpdateOneWithoutSalesInvoiceItemsNestedInput
|
|
|
|
|
service?: Prisma.ServiceUpdateOneWithoutSalesInvoiceItemsNestedInput
|
2025-12-09 13:59:07 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemUncheckedUpdateInput = {
|
|
|
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
|
|
|
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
2026-01-04 13:45:26 +03:30
|
|
|
unitPrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
2025-12-09 13:59:07 +03:30
|
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
invoiceId?: Prisma.IntFieldUpdateOperationsInput | number
|
2026-02-04 13:49:07 +03:30
|
|
|
goodId?: Prisma.IntFieldUpdateOperationsInput | number
|
|
|
|
|
serviceId?: Prisma.IntFieldUpdateOperationsInput | number
|
2025-12-09 13:59:07 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemCreateManyInput = {
|
|
|
|
|
id?: number
|
|
|
|
|
count: runtime.Decimal | runtime.DecimalJsLike | number | string
|
2026-01-04 13:45:26 +03:30
|
|
|
unitPrice?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
totalAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
2025-12-09 13:59:07 +03:30
|
|
|
createdAt?: Date | string
|
|
|
|
|
invoiceId: number
|
2026-02-04 13:49:07 +03:30
|
|
|
goodId: number
|
|
|
|
|
serviceId: number
|
2025-12-09 13:59:07 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemUpdateManyMutationInput = {
|
|
|
|
|
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
2026-01-04 13:45:26 +03:30
|
|
|
unitPrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
2025-12-09 13:59:07 +03:30
|
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemUncheckedUpdateManyInput = {
|
|
|
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
|
|
|
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
2026-01-04 13:45:26 +03:30
|
|
|
unitPrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
2025-12-09 13:59:07 +03:30
|
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
invoiceId?: Prisma.IntFieldUpdateOperationsInput | number
|
2026-02-04 13:49:07 +03:30
|
|
|
goodId?: Prisma.IntFieldUpdateOperationsInput | number
|
|
|
|
|
serviceId?: Prisma.IntFieldUpdateOperationsInput | number
|
2025-12-09 13:59:07 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemListRelationFilter = {
|
|
|
|
|
every?: Prisma.SalesInvoiceItemWhereInput
|
|
|
|
|
some?: Prisma.SalesInvoiceItemWhereInput
|
|
|
|
|
none?: Prisma.SalesInvoiceItemWhereInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemOrderByRelationAggregateInput = {
|
|
|
|
|
_count?: Prisma.SortOrder
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemCountOrderByAggregateInput = {
|
|
|
|
|
id?: Prisma.SortOrder
|
|
|
|
|
count?: Prisma.SortOrder
|
2026-01-04 13:45:26 +03:30
|
|
|
unitPrice?: Prisma.SortOrder
|
|
|
|
|
totalAmount?: Prisma.SortOrder
|
2025-12-09 13:59:07 +03:30
|
|
|
createdAt?: Prisma.SortOrder
|
|
|
|
|
invoiceId?: Prisma.SortOrder
|
2026-02-04 13:49:07 +03:30
|
|
|
goodId?: Prisma.SortOrder
|
|
|
|
|
serviceId?: Prisma.SortOrder
|
2025-12-09 13:59:07 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemAvgOrderByAggregateInput = {
|
|
|
|
|
id?: Prisma.SortOrder
|
|
|
|
|
count?: Prisma.SortOrder
|
2026-01-04 13:45:26 +03:30
|
|
|
unitPrice?: Prisma.SortOrder
|
|
|
|
|
totalAmount?: Prisma.SortOrder
|
2025-12-09 13:59:07 +03:30
|
|
|
invoiceId?: Prisma.SortOrder
|
2026-02-04 13:49:07 +03:30
|
|
|
goodId?: Prisma.SortOrder
|
|
|
|
|
serviceId?: Prisma.SortOrder
|
2025-12-09 13:59:07 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemMaxOrderByAggregateInput = {
|
|
|
|
|
id?: Prisma.SortOrder
|
|
|
|
|
count?: Prisma.SortOrder
|
2026-01-04 13:45:26 +03:30
|
|
|
unitPrice?: Prisma.SortOrder
|
|
|
|
|
totalAmount?: Prisma.SortOrder
|
2025-12-09 13:59:07 +03:30
|
|
|
createdAt?: Prisma.SortOrder
|
|
|
|
|
invoiceId?: Prisma.SortOrder
|
2026-02-04 13:49:07 +03:30
|
|
|
goodId?: Prisma.SortOrder
|
|
|
|
|
serviceId?: Prisma.SortOrder
|
2025-12-09 13:59:07 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemMinOrderByAggregateInput = {
|
|
|
|
|
id?: Prisma.SortOrder
|
|
|
|
|
count?: Prisma.SortOrder
|
2026-01-04 13:45:26 +03:30
|
|
|
unitPrice?: Prisma.SortOrder
|
|
|
|
|
totalAmount?: Prisma.SortOrder
|
2025-12-09 13:59:07 +03:30
|
|
|
createdAt?: Prisma.SortOrder
|
|
|
|
|
invoiceId?: Prisma.SortOrder
|
2026-02-04 13:49:07 +03:30
|
|
|
goodId?: Prisma.SortOrder
|
|
|
|
|
serviceId?: Prisma.SortOrder
|
2025-12-09 13:59:07 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemSumOrderByAggregateInput = {
|
|
|
|
|
id?: Prisma.SortOrder
|
|
|
|
|
count?: Prisma.SortOrder
|
2026-01-04 13:45:26 +03:30
|
|
|
unitPrice?: Prisma.SortOrder
|
|
|
|
|
totalAmount?: Prisma.SortOrder
|
2025-12-09 13:59:07 +03:30
|
|
|
invoiceId?: Prisma.SortOrder
|
2026-02-04 13:49:07 +03:30
|
|
|
goodId?: Prisma.SortOrder
|
|
|
|
|
serviceId?: Prisma.SortOrder
|
2025-12-09 13:59:07 +03:30
|
|
|
}
|
|
|
|
|
|
2026-02-04 13:49:07 +03:30
|
|
|
export type SalesInvoiceItemCreateNestedManyWithoutGoodInput = {
|
|
|
|
|
create?: Prisma.XOR<Prisma.SalesInvoiceItemCreateWithoutGoodInput, Prisma.SalesInvoiceItemUncheckedCreateWithoutGoodInput> | Prisma.SalesInvoiceItemCreateWithoutGoodInput[] | Prisma.SalesInvoiceItemUncheckedCreateWithoutGoodInput[]
|
|
|
|
|
connectOrCreate?: Prisma.SalesInvoiceItemCreateOrConnectWithoutGoodInput | Prisma.SalesInvoiceItemCreateOrConnectWithoutGoodInput[]
|
|
|
|
|
createMany?: Prisma.SalesInvoiceItemCreateManyGoodInputEnvelope
|
2025-12-24 21:24:59 +03:30
|
|
|
connect?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-04 13:49:07 +03:30
|
|
|
export type SalesInvoiceItemUncheckedCreateNestedManyWithoutGoodInput = {
|
|
|
|
|
create?: Prisma.XOR<Prisma.SalesInvoiceItemCreateWithoutGoodInput, Prisma.SalesInvoiceItemUncheckedCreateWithoutGoodInput> | Prisma.SalesInvoiceItemCreateWithoutGoodInput[] | Prisma.SalesInvoiceItemUncheckedCreateWithoutGoodInput[]
|
|
|
|
|
connectOrCreate?: Prisma.SalesInvoiceItemCreateOrConnectWithoutGoodInput | Prisma.SalesInvoiceItemCreateOrConnectWithoutGoodInput[]
|
|
|
|
|
createMany?: Prisma.SalesInvoiceItemCreateManyGoodInputEnvelope
|
2025-12-24 21:24:59 +03:30
|
|
|
connect?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-04 13:49:07 +03:30
|
|
|
export type SalesInvoiceItemUpdateManyWithoutGoodNestedInput = {
|
|
|
|
|
create?: Prisma.XOR<Prisma.SalesInvoiceItemCreateWithoutGoodInput, Prisma.SalesInvoiceItemUncheckedCreateWithoutGoodInput> | Prisma.SalesInvoiceItemCreateWithoutGoodInput[] | Prisma.SalesInvoiceItemUncheckedCreateWithoutGoodInput[]
|
|
|
|
|
connectOrCreate?: Prisma.SalesInvoiceItemCreateOrConnectWithoutGoodInput | Prisma.SalesInvoiceItemCreateOrConnectWithoutGoodInput[]
|
|
|
|
|
upsert?: Prisma.SalesInvoiceItemUpsertWithWhereUniqueWithoutGoodInput | Prisma.SalesInvoiceItemUpsertWithWhereUniqueWithoutGoodInput[]
|
|
|
|
|
createMany?: Prisma.SalesInvoiceItemCreateManyGoodInputEnvelope
|
2025-12-24 21:24:59 +03:30
|
|
|
set?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
|
|
|
|
|
disconnect?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
|
|
|
|
|
delete?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
|
|
|
|
|
connect?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
|
2026-02-04 13:49:07 +03:30
|
|
|
update?: Prisma.SalesInvoiceItemUpdateWithWhereUniqueWithoutGoodInput | Prisma.SalesInvoiceItemUpdateWithWhereUniqueWithoutGoodInput[]
|
|
|
|
|
updateMany?: Prisma.SalesInvoiceItemUpdateManyWithWhereWithoutGoodInput | Prisma.SalesInvoiceItemUpdateManyWithWhereWithoutGoodInput[]
|
2025-12-24 21:24:59 +03:30
|
|
|
deleteMany?: Prisma.SalesInvoiceItemScalarWhereInput | Prisma.SalesInvoiceItemScalarWhereInput[]
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-04 13:49:07 +03:30
|
|
|
export type SalesInvoiceItemUncheckedUpdateManyWithoutGoodNestedInput = {
|
|
|
|
|
create?: Prisma.XOR<Prisma.SalesInvoiceItemCreateWithoutGoodInput, Prisma.SalesInvoiceItemUncheckedCreateWithoutGoodInput> | Prisma.SalesInvoiceItemCreateWithoutGoodInput[] | Prisma.SalesInvoiceItemUncheckedCreateWithoutGoodInput[]
|
|
|
|
|
connectOrCreate?: Prisma.SalesInvoiceItemCreateOrConnectWithoutGoodInput | Prisma.SalesInvoiceItemCreateOrConnectWithoutGoodInput[]
|
|
|
|
|
upsert?: Prisma.SalesInvoiceItemUpsertWithWhereUniqueWithoutGoodInput | Prisma.SalesInvoiceItemUpsertWithWhereUniqueWithoutGoodInput[]
|
|
|
|
|
createMany?: Prisma.SalesInvoiceItemCreateManyGoodInputEnvelope
|
2025-12-24 21:24:59 +03:30
|
|
|
set?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
|
|
|
|
|
disconnect?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
|
|
|
|
|
delete?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
|
|
|
|
|
connect?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
|
2026-02-04 13:49:07 +03:30
|
|
|
update?: Prisma.SalesInvoiceItemUpdateWithWhereUniqueWithoutGoodInput | Prisma.SalesInvoiceItemUpdateWithWhereUniqueWithoutGoodInput[]
|
|
|
|
|
updateMany?: Prisma.SalesInvoiceItemUpdateManyWithWhereWithoutGoodInput | Prisma.SalesInvoiceItemUpdateManyWithWhereWithoutGoodInput[]
|
2025-12-24 21:24:59 +03:30
|
|
|
deleteMany?: Prisma.SalesInvoiceItemScalarWhereInput | Prisma.SalesInvoiceItemScalarWhereInput[]
|
|
|
|
|
}
|
|
|
|
|
|
2026-01-04 13:45:26 +03:30
|
|
|
export type SalesInvoiceItemCreateNestedManyWithoutInvoiceInput = {
|
|
|
|
|
create?: Prisma.XOR<Prisma.SalesInvoiceItemCreateWithoutInvoiceInput, Prisma.SalesInvoiceItemUncheckedCreateWithoutInvoiceInput> | Prisma.SalesInvoiceItemCreateWithoutInvoiceInput[] | Prisma.SalesInvoiceItemUncheckedCreateWithoutInvoiceInput[]
|
|
|
|
|
connectOrCreate?: Prisma.SalesInvoiceItemCreateOrConnectWithoutInvoiceInput | Prisma.SalesInvoiceItemCreateOrConnectWithoutInvoiceInput[]
|
|
|
|
|
createMany?: Prisma.SalesInvoiceItemCreateManyInvoiceInputEnvelope
|
|
|
|
|
connect?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemUncheckedCreateNestedManyWithoutInvoiceInput = {
|
|
|
|
|
create?: Prisma.XOR<Prisma.SalesInvoiceItemCreateWithoutInvoiceInput, Prisma.SalesInvoiceItemUncheckedCreateWithoutInvoiceInput> | Prisma.SalesInvoiceItemCreateWithoutInvoiceInput[] | Prisma.SalesInvoiceItemUncheckedCreateWithoutInvoiceInput[]
|
|
|
|
|
connectOrCreate?: Prisma.SalesInvoiceItemCreateOrConnectWithoutInvoiceInput | Prisma.SalesInvoiceItemCreateOrConnectWithoutInvoiceInput[]
|
|
|
|
|
createMany?: Prisma.SalesInvoiceItemCreateManyInvoiceInputEnvelope
|
|
|
|
|
connect?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemUpdateManyWithoutInvoiceNestedInput = {
|
|
|
|
|
create?: Prisma.XOR<Prisma.SalesInvoiceItemCreateWithoutInvoiceInput, Prisma.SalesInvoiceItemUncheckedCreateWithoutInvoiceInput> | Prisma.SalesInvoiceItemCreateWithoutInvoiceInput[] | Prisma.SalesInvoiceItemUncheckedCreateWithoutInvoiceInput[]
|
|
|
|
|
connectOrCreate?: Prisma.SalesInvoiceItemCreateOrConnectWithoutInvoiceInput | Prisma.SalesInvoiceItemCreateOrConnectWithoutInvoiceInput[]
|
|
|
|
|
upsert?: Prisma.SalesInvoiceItemUpsertWithWhereUniqueWithoutInvoiceInput | Prisma.SalesInvoiceItemUpsertWithWhereUniqueWithoutInvoiceInput[]
|
|
|
|
|
createMany?: Prisma.SalesInvoiceItemCreateManyInvoiceInputEnvelope
|
|
|
|
|
set?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
|
|
|
|
|
disconnect?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
|
|
|
|
|
delete?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
|
|
|
|
|
connect?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
|
|
|
|
|
update?: Prisma.SalesInvoiceItemUpdateWithWhereUniqueWithoutInvoiceInput | Prisma.SalesInvoiceItemUpdateWithWhereUniqueWithoutInvoiceInput[]
|
|
|
|
|
updateMany?: Prisma.SalesInvoiceItemUpdateManyWithWhereWithoutInvoiceInput | Prisma.SalesInvoiceItemUpdateManyWithWhereWithoutInvoiceInput[]
|
|
|
|
|
deleteMany?: Prisma.SalesInvoiceItemScalarWhereInput | Prisma.SalesInvoiceItemScalarWhereInput[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemUncheckedUpdateManyWithoutInvoiceNestedInput = {
|
|
|
|
|
create?: Prisma.XOR<Prisma.SalesInvoiceItemCreateWithoutInvoiceInput, Prisma.SalesInvoiceItemUncheckedCreateWithoutInvoiceInput> | Prisma.SalesInvoiceItemCreateWithoutInvoiceInput[] | Prisma.SalesInvoiceItemUncheckedCreateWithoutInvoiceInput[]
|
|
|
|
|
connectOrCreate?: Prisma.SalesInvoiceItemCreateOrConnectWithoutInvoiceInput | Prisma.SalesInvoiceItemCreateOrConnectWithoutInvoiceInput[]
|
|
|
|
|
upsert?: Prisma.SalesInvoiceItemUpsertWithWhereUniqueWithoutInvoiceInput | Prisma.SalesInvoiceItemUpsertWithWhereUniqueWithoutInvoiceInput[]
|
|
|
|
|
createMany?: Prisma.SalesInvoiceItemCreateManyInvoiceInputEnvelope
|
|
|
|
|
set?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
|
|
|
|
|
disconnect?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
|
|
|
|
|
delete?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
|
|
|
|
|
connect?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
|
|
|
|
|
update?: Prisma.SalesInvoiceItemUpdateWithWhereUniqueWithoutInvoiceInput | Prisma.SalesInvoiceItemUpdateWithWhereUniqueWithoutInvoiceInput[]
|
|
|
|
|
updateMany?: Prisma.SalesInvoiceItemUpdateManyWithWhereWithoutInvoiceInput | Prisma.SalesInvoiceItemUpdateManyWithWhereWithoutInvoiceInput[]
|
|
|
|
|
deleteMany?: Prisma.SalesInvoiceItemScalarWhereInput | Prisma.SalesInvoiceItemScalarWhereInput[]
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-04 13:49:07 +03:30
|
|
|
export type SalesInvoiceItemCreateNestedManyWithoutServiceInput = {
|
|
|
|
|
create?: Prisma.XOR<Prisma.SalesInvoiceItemCreateWithoutServiceInput, Prisma.SalesInvoiceItemUncheckedCreateWithoutServiceInput> | Prisma.SalesInvoiceItemCreateWithoutServiceInput[] | Prisma.SalesInvoiceItemUncheckedCreateWithoutServiceInput[]
|
|
|
|
|
connectOrCreate?: Prisma.SalesInvoiceItemCreateOrConnectWithoutServiceInput | Prisma.SalesInvoiceItemCreateOrConnectWithoutServiceInput[]
|
|
|
|
|
createMany?: Prisma.SalesInvoiceItemCreateManyServiceInputEnvelope
|
|
|
|
|
connect?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemUncheckedCreateNestedManyWithoutServiceInput = {
|
|
|
|
|
create?: Prisma.XOR<Prisma.SalesInvoiceItemCreateWithoutServiceInput, Prisma.SalesInvoiceItemUncheckedCreateWithoutServiceInput> | Prisma.SalesInvoiceItemCreateWithoutServiceInput[] | Prisma.SalesInvoiceItemUncheckedCreateWithoutServiceInput[]
|
|
|
|
|
connectOrCreate?: Prisma.SalesInvoiceItemCreateOrConnectWithoutServiceInput | Prisma.SalesInvoiceItemCreateOrConnectWithoutServiceInput[]
|
|
|
|
|
createMany?: Prisma.SalesInvoiceItemCreateManyServiceInputEnvelope
|
|
|
|
|
connect?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemUpdateManyWithoutServiceNestedInput = {
|
|
|
|
|
create?: Prisma.XOR<Prisma.SalesInvoiceItemCreateWithoutServiceInput, Prisma.SalesInvoiceItemUncheckedCreateWithoutServiceInput> | Prisma.SalesInvoiceItemCreateWithoutServiceInput[] | Prisma.SalesInvoiceItemUncheckedCreateWithoutServiceInput[]
|
|
|
|
|
connectOrCreate?: Prisma.SalesInvoiceItemCreateOrConnectWithoutServiceInput | Prisma.SalesInvoiceItemCreateOrConnectWithoutServiceInput[]
|
|
|
|
|
upsert?: Prisma.SalesInvoiceItemUpsertWithWhereUniqueWithoutServiceInput | Prisma.SalesInvoiceItemUpsertWithWhereUniqueWithoutServiceInput[]
|
|
|
|
|
createMany?: Prisma.SalesInvoiceItemCreateManyServiceInputEnvelope
|
|
|
|
|
set?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
|
|
|
|
|
disconnect?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
|
|
|
|
|
delete?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
|
|
|
|
|
connect?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
|
|
|
|
|
update?: Prisma.SalesInvoiceItemUpdateWithWhereUniqueWithoutServiceInput | Prisma.SalesInvoiceItemUpdateWithWhereUniqueWithoutServiceInput[]
|
|
|
|
|
updateMany?: Prisma.SalesInvoiceItemUpdateManyWithWhereWithoutServiceInput | Prisma.SalesInvoiceItemUpdateManyWithWhereWithoutServiceInput[]
|
|
|
|
|
deleteMany?: Prisma.SalesInvoiceItemScalarWhereInput | Prisma.SalesInvoiceItemScalarWhereInput[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemUncheckedUpdateManyWithoutServiceNestedInput = {
|
|
|
|
|
create?: Prisma.XOR<Prisma.SalesInvoiceItemCreateWithoutServiceInput, Prisma.SalesInvoiceItemUncheckedCreateWithoutServiceInput> | Prisma.SalesInvoiceItemCreateWithoutServiceInput[] | Prisma.SalesInvoiceItemUncheckedCreateWithoutServiceInput[]
|
|
|
|
|
connectOrCreate?: Prisma.SalesInvoiceItemCreateOrConnectWithoutServiceInput | Prisma.SalesInvoiceItemCreateOrConnectWithoutServiceInput[]
|
|
|
|
|
upsert?: Prisma.SalesInvoiceItemUpsertWithWhereUniqueWithoutServiceInput | Prisma.SalesInvoiceItemUpsertWithWhereUniqueWithoutServiceInput[]
|
|
|
|
|
createMany?: Prisma.SalesInvoiceItemCreateManyServiceInputEnvelope
|
|
|
|
|
set?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
|
|
|
|
|
disconnect?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
|
|
|
|
|
delete?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
|
|
|
|
|
connect?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
|
|
|
|
|
update?: Prisma.SalesInvoiceItemUpdateWithWhereUniqueWithoutServiceInput | Prisma.SalesInvoiceItemUpdateWithWhereUniqueWithoutServiceInput[]
|
|
|
|
|
updateMany?: Prisma.SalesInvoiceItemUpdateManyWithWhereWithoutServiceInput | Prisma.SalesInvoiceItemUpdateManyWithWhereWithoutServiceInput[]
|
|
|
|
|
deleteMany?: Prisma.SalesInvoiceItemScalarWhereInput | Prisma.SalesInvoiceItemScalarWhereInput[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemCreateWithoutGoodInput = {
|
2025-12-09 13:59:07 +03:30
|
|
|
count: runtime.Decimal | runtime.DecimalJsLike | number | string
|
2026-01-04 13:45:26 +03:30
|
|
|
unitPrice?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
totalAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
2025-12-09 13:59:07 +03:30
|
|
|
createdAt?: Date | string
|
2026-01-04 13:45:26 +03:30
|
|
|
invoice: Prisma.SalesInvoiceCreateNestedOneWithoutItemsInput
|
2026-02-04 13:49:07 +03:30
|
|
|
service?: Prisma.ServiceCreateNestedOneWithoutSalesInvoiceItemsInput
|
2025-12-09 13:59:07 +03:30
|
|
|
}
|
|
|
|
|
|
2026-02-04 13:49:07 +03:30
|
|
|
export type SalesInvoiceItemUncheckedCreateWithoutGoodInput = {
|
2025-12-09 13:59:07 +03:30
|
|
|
id?: number
|
|
|
|
|
count: runtime.Decimal | runtime.DecimalJsLike | number | string
|
2026-01-04 13:45:26 +03:30
|
|
|
unitPrice?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
totalAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
2025-12-09 13:59:07 +03:30
|
|
|
createdAt?: Date | string
|
2026-01-04 13:45:26 +03:30
|
|
|
invoiceId: number
|
2026-02-04 13:49:07 +03:30
|
|
|
serviceId: number
|
2025-12-09 13:59:07 +03:30
|
|
|
}
|
|
|
|
|
|
2026-02-04 13:49:07 +03:30
|
|
|
export type SalesInvoiceItemCreateOrConnectWithoutGoodInput = {
|
2025-12-09 13:59:07 +03:30
|
|
|
where: Prisma.SalesInvoiceItemWhereUniqueInput
|
2026-02-04 13:49:07 +03:30
|
|
|
create: Prisma.XOR<Prisma.SalesInvoiceItemCreateWithoutGoodInput, Prisma.SalesInvoiceItemUncheckedCreateWithoutGoodInput>
|
2025-12-09 13:59:07 +03:30
|
|
|
}
|
|
|
|
|
|
2026-02-04 13:49:07 +03:30
|
|
|
export type SalesInvoiceItemCreateManyGoodInputEnvelope = {
|
|
|
|
|
data: Prisma.SalesInvoiceItemCreateManyGoodInput | Prisma.SalesInvoiceItemCreateManyGoodInput[]
|
2025-12-09 13:59:07 +03:30
|
|
|
skipDuplicates?: boolean
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-04 13:49:07 +03:30
|
|
|
export type SalesInvoiceItemUpsertWithWhereUniqueWithoutGoodInput = {
|
2025-12-09 13:59:07 +03:30
|
|
|
where: Prisma.SalesInvoiceItemWhereUniqueInput
|
2026-02-04 13:49:07 +03:30
|
|
|
update: Prisma.XOR<Prisma.SalesInvoiceItemUpdateWithoutGoodInput, Prisma.SalesInvoiceItemUncheckedUpdateWithoutGoodInput>
|
|
|
|
|
create: Prisma.XOR<Prisma.SalesInvoiceItemCreateWithoutGoodInput, Prisma.SalesInvoiceItemUncheckedCreateWithoutGoodInput>
|
2025-12-09 13:59:07 +03:30
|
|
|
}
|
|
|
|
|
|
2026-02-04 13:49:07 +03:30
|
|
|
export type SalesInvoiceItemUpdateWithWhereUniqueWithoutGoodInput = {
|
2025-12-09 13:59:07 +03:30
|
|
|
where: Prisma.SalesInvoiceItemWhereUniqueInput
|
2026-02-04 13:49:07 +03:30
|
|
|
data: Prisma.XOR<Prisma.SalesInvoiceItemUpdateWithoutGoodInput, Prisma.SalesInvoiceItemUncheckedUpdateWithoutGoodInput>
|
2025-12-09 13:59:07 +03:30
|
|
|
}
|
|
|
|
|
|
2026-02-04 13:49:07 +03:30
|
|
|
export type SalesInvoiceItemUpdateManyWithWhereWithoutGoodInput = {
|
2025-12-09 13:59:07 +03:30
|
|
|
where: Prisma.SalesInvoiceItemScalarWhereInput
|
2026-02-04 13:49:07 +03:30
|
|
|
data: Prisma.XOR<Prisma.SalesInvoiceItemUpdateManyMutationInput, Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutGoodInput>
|
2025-12-09 13:59:07 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemScalarWhereInput = {
|
|
|
|
|
AND?: Prisma.SalesInvoiceItemScalarWhereInput | Prisma.SalesInvoiceItemScalarWhereInput[]
|
|
|
|
|
OR?: Prisma.SalesInvoiceItemScalarWhereInput[]
|
|
|
|
|
NOT?: Prisma.SalesInvoiceItemScalarWhereInput | Prisma.SalesInvoiceItemScalarWhereInput[]
|
|
|
|
|
id?: Prisma.IntFilter<"SalesInvoiceItem"> | number
|
|
|
|
|
count?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
2026-01-04 13:45:26 +03:30
|
|
|
unitPrice?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
totalAmount?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
2025-12-09 13:59:07 +03:30
|
|
|
createdAt?: Prisma.DateTimeFilter<"SalesInvoiceItem"> | Date | string
|
|
|
|
|
invoiceId?: Prisma.IntFilter<"SalesInvoiceItem"> | number
|
2026-02-04 13:49:07 +03:30
|
|
|
goodId?: Prisma.IntFilter<"SalesInvoiceItem"> | number
|
|
|
|
|
serviceId?: Prisma.IntFilter<"SalesInvoiceItem"> | number
|
2025-12-09 13:59:07 +03:30
|
|
|
}
|
|
|
|
|
|
2026-01-04 13:45:26 +03:30
|
|
|
export type SalesInvoiceItemCreateWithoutInvoiceInput = {
|
2025-12-09 13:59:07 +03:30
|
|
|
count: runtime.Decimal | runtime.DecimalJsLike | number | string
|
2026-01-04 13:45:26 +03:30
|
|
|
unitPrice?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
totalAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
2025-12-09 13:59:07 +03:30
|
|
|
createdAt?: Date | string
|
2026-02-04 13:49:07 +03:30
|
|
|
good?: Prisma.GoodCreateNestedOneWithoutSalesInvoiceItemsInput
|
|
|
|
|
service?: Prisma.ServiceCreateNestedOneWithoutSalesInvoiceItemsInput
|
2025-12-09 13:59:07 +03:30
|
|
|
}
|
|
|
|
|
|
2026-01-04 13:45:26 +03:30
|
|
|
export type SalesInvoiceItemUncheckedCreateWithoutInvoiceInput = {
|
2025-12-09 13:59:07 +03:30
|
|
|
id?: number
|
|
|
|
|
count: runtime.Decimal | runtime.DecimalJsLike | number | string
|
2026-01-04 13:45:26 +03:30
|
|
|
unitPrice?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
totalAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
2025-12-09 13:59:07 +03:30
|
|
|
createdAt?: Date | string
|
2026-02-04 13:49:07 +03:30
|
|
|
goodId: number
|
|
|
|
|
serviceId: number
|
2025-12-09 13:59:07 +03:30
|
|
|
}
|
|
|
|
|
|
2026-01-04 13:45:26 +03:30
|
|
|
export type SalesInvoiceItemCreateOrConnectWithoutInvoiceInput = {
|
2025-12-09 13:59:07 +03:30
|
|
|
where: Prisma.SalesInvoiceItemWhereUniqueInput
|
2026-01-04 13:45:26 +03:30
|
|
|
create: Prisma.XOR<Prisma.SalesInvoiceItemCreateWithoutInvoiceInput, Prisma.SalesInvoiceItemUncheckedCreateWithoutInvoiceInput>
|
2025-12-09 13:59:07 +03:30
|
|
|
}
|
|
|
|
|
|
2026-01-04 13:45:26 +03:30
|
|
|
export type SalesInvoiceItemCreateManyInvoiceInputEnvelope = {
|
|
|
|
|
data: Prisma.SalesInvoiceItemCreateManyInvoiceInput | Prisma.SalesInvoiceItemCreateManyInvoiceInput[]
|
2025-12-09 13:59:07 +03:30
|
|
|
skipDuplicates?: boolean
|
|
|
|
|
}
|
|
|
|
|
|
2026-01-04 13:45:26 +03:30
|
|
|
export type SalesInvoiceItemUpsertWithWhereUniqueWithoutInvoiceInput = {
|
2025-12-09 13:59:07 +03:30
|
|
|
where: Prisma.SalesInvoiceItemWhereUniqueInput
|
2026-01-04 13:45:26 +03:30
|
|
|
update: Prisma.XOR<Prisma.SalesInvoiceItemUpdateWithoutInvoiceInput, Prisma.SalesInvoiceItemUncheckedUpdateWithoutInvoiceInput>
|
|
|
|
|
create: Prisma.XOR<Prisma.SalesInvoiceItemCreateWithoutInvoiceInput, Prisma.SalesInvoiceItemUncheckedCreateWithoutInvoiceInput>
|
2025-12-09 13:59:07 +03:30
|
|
|
}
|
|
|
|
|
|
2026-01-04 13:45:26 +03:30
|
|
|
export type SalesInvoiceItemUpdateWithWhereUniqueWithoutInvoiceInput = {
|
2025-12-09 13:59:07 +03:30
|
|
|
where: Prisma.SalesInvoiceItemWhereUniqueInput
|
2026-01-04 13:45:26 +03:30
|
|
|
data: Prisma.XOR<Prisma.SalesInvoiceItemUpdateWithoutInvoiceInput, Prisma.SalesInvoiceItemUncheckedUpdateWithoutInvoiceInput>
|
2025-12-09 13:59:07 +03:30
|
|
|
}
|
|
|
|
|
|
2026-01-04 13:45:26 +03:30
|
|
|
export type SalesInvoiceItemUpdateManyWithWhereWithoutInvoiceInput = {
|
2025-12-09 13:59:07 +03:30
|
|
|
where: Prisma.SalesInvoiceItemScalarWhereInput
|
2026-01-04 13:45:26 +03:30
|
|
|
data: Prisma.XOR<Prisma.SalesInvoiceItemUpdateManyMutationInput, Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutInvoiceInput>
|
2025-12-09 13:59:07 +03:30
|
|
|
}
|
|
|
|
|
|
2026-02-04 13:49:07 +03:30
|
|
|
export type SalesInvoiceItemCreateWithoutServiceInput = {
|
|
|
|
|
count: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
unitPrice?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
totalAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
createdAt?: Date | string
|
|
|
|
|
invoice: Prisma.SalesInvoiceCreateNestedOneWithoutItemsInput
|
|
|
|
|
good?: Prisma.GoodCreateNestedOneWithoutSalesInvoiceItemsInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemUncheckedCreateWithoutServiceInput = {
|
|
|
|
|
id?: number
|
|
|
|
|
count: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
unitPrice?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
totalAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
createdAt?: Date | string
|
|
|
|
|
invoiceId: number
|
|
|
|
|
goodId: number
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemCreateOrConnectWithoutServiceInput = {
|
|
|
|
|
where: Prisma.SalesInvoiceItemWhereUniqueInput
|
|
|
|
|
create: Prisma.XOR<Prisma.SalesInvoiceItemCreateWithoutServiceInput, Prisma.SalesInvoiceItemUncheckedCreateWithoutServiceInput>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemCreateManyServiceInputEnvelope = {
|
|
|
|
|
data: Prisma.SalesInvoiceItemCreateManyServiceInput | Prisma.SalesInvoiceItemCreateManyServiceInput[]
|
|
|
|
|
skipDuplicates?: boolean
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemUpsertWithWhereUniqueWithoutServiceInput = {
|
|
|
|
|
where: Prisma.SalesInvoiceItemWhereUniqueInput
|
|
|
|
|
update: Prisma.XOR<Prisma.SalesInvoiceItemUpdateWithoutServiceInput, Prisma.SalesInvoiceItemUncheckedUpdateWithoutServiceInput>
|
|
|
|
|
create: Prisma.XOR<Prisma.SalesInvoiceItemCreateWithoutServiceInput, Prisma.SalesInvoiceItemUncheckedCreateWithoutServiceInput>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemUpdateWithWhereUniqueWithoutServiceInput = {
|
|
|
|
|
where: Prisma.SalesInvoiceItemWhereUniqueInput
|
|
|
|
|
data: Prisma.XOR<Prisma.SalesInvoiceItemUpdateWithoutServiceInput, Prisma.SalesInvoiceItemUncheckedUpdateWithoutServiceInput>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemUpdateManyWithWhereWithoutServiceInput = {
|
|
|
|
|
where: Prisma.SalesInvoiceItemScalarWhereInput
|
|
|
|
|
data: Prisma.XOR<Prisma.SalesInvoiceItemUpdateManyMutationInput, Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutServiceInput>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemCreateManyGoodInput = {
|
2025-12-09 13:59:07 +03:30
|
|
|
id?: number
|
|
|
|
|
count: runtime.Decimal | runtime.DecimalJsLike | number | string
|
2026-01-04 13:45:26 +03:30
|
|
|
unitPrice?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
totalAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
2025-12-09 13:59:07 +03:30
|
|
|
createdAt?: Date | string
|
2026-01-04 13:45:26 +03:30
|
|
|
invoiceId: number
|
2026-02-04 13:49:07 +03:30
|
|
|
serviceId: number
|
2025-12-09 13:59:07 +03:30
|
|
|
}
|
|
|
|
|
|
2026-02-04 13:49:07 +03:30
|
|
|
export type SalesInvoiceItemUpdateWithoutGoodInput = {
|
2025-12-09 13:59:07 +03:30
|
|
|
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
2026-01-04 13:45:26 +03:30
|
|
|
unitPrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
2025-12-09 13:59:07 +03:30
|
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
2026-01-04 13:45:26 +03:30
|
|
|
invoice?: Prisma.SalesInvoiceUpdateOneRequiredWithoutItemsNestedInput
|
2026-02-04 13:49:07 +03:30
|
|
|
service?: Prisma.ServiceUpdateOneWithoutSalesInvoiceItemsNestedInput
|
2025-12-09 13:59:07 +03:30
|
|
|
}
|
|
|
|
|
|
2026-02-04 13:49:07 +03:30
|
|
|
export type SalesInvoiceItemUncheckedUpdateWithoutGoodInput = {
|
2025-12-09 13:59:07 +03:30
|
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
|
|
|
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
2026-01-04 13:45:26 +03:30
|
|
|
unitPrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
2025-12-09 13:59:07 +03:30
|
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
2026-01-04 13:45:26 +03:30
|
|
|
invoiceId?: Prisma.IntFieldUpdateOperationsInput | number
|
2026-02-04 13:49:07 +03:30
|
|
|
serviceId?: Prisma.IntFieldUpdateOperationsInput | number
|
2025-12-09 13:59:07 +03:30
|
|
|
}
|
|
|
|
|
|
2026-02-04 13:49:07 +03:30
|
|
|
export type SalesInvoiceItemUncheckedUpdateManyWithoutGoodInput = {
|
2025-12-09 13:59:07 +03:30
|
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
|
|
|
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
2026-01-04 13:45:26 +03:30
|
|
|
unitPrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
2025-12-09 13:59:07 +03:30
|
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
2026-01-04 13:45:26 +03:30
|
|
|
invoiceId?: Prisma.IntFieldUpdateOperationsInput | number
|
2026-02-04 13:49:07 +03:30
|
|
|
serviceId?: Prisma.IntFieldUpdateOperationsInput | number
|
2025-12-09 13:59:07 +03:30
|
|
|
}
|
|
|
|
|
|
2026-01-04 13:45:26 +03:30
|
|
|
export type SalesInvoiceItemCreateManyInvoiceInput = {
|
2025-12-09 13:59:07 +03:30
|
|
|
id?: number
|
|
|
|
|
count: runtime.Decimal | runtime.DecimalJsLike | number | string
|
2026-01-04 13:45:26 +03:30
|
|
|
unitPrice?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
totalAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
2025-12-09 13:59:07 +03:30
|
|
|
createdAt?: Date | string
|
2026-02-04 13:49:07 +03:30
|
|
|
goodId: number
|
|
|
|
|
serviceId: number
|
2025-12-09 13:59:07 +03:30
|
|
|
}
|
|
|
|
|
|
2026-01-04 13:45:26 +03:30
|
|
|
export type SalesInvoiceItemUpdateWithoutInvoiceInput = {
|
2025-12-09 13:59:07 +03:30
|
|
|
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
2026-01-04 13:45:26 +03:30
|
|
|
unitPrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
2025-12-09 13:59:07 +03:30
|
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
2026-02-04 13:49:07 +03:30
|
|
|
good?: Prisma.GoodUpdateOneWithoutSalesInvoiceItemsNestedInput
|
|
|
|
|
service?: Prisma.ServiceUpdateOneWithoutSalesInvoiceItemsNestedInput
|
2025-12-09 13:59:07 +03:30
|
|
|
}
|
|
|
|
|
|
2026-01-04 13:45:26 +03:30
|
|
|
export type SalesInvoiceItemUncheckedUpdateWithoutInvoiceInput = {
|
2025-12-09 13:59:07 +03:30
|
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
|
|
|
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
2026-01-04 13:45:26 +03:30
|
|
|
unitPrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
2025-12-09 13:59:07 +03:30
|
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
2026-02-04 13:49:07 +03:30
|
|
|
goodId?: Prisma.IntFieldUpdateOperationsInput | number
|
|
|
|
|
serviceId?: Prisma.IntFieldUpdateOperationsInput | number
|
2025-12-09 13:59:07 +03:30
|
|
|
}
|
|
|
|
|
|
2026-01-04 13:45:26 +03:30
|
|
|
export type SalesInvoiceItemUncheckedUpdateManyWithoutInvoiceInput = {
|
2025-12-09 13:59:07 +03:30
|
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
|
|
|
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
2026-01-04 13:45:26 +03:30
|
|
|
unitPrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
2025-12-09 13:59:07 +03:30
|
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
2026-02-04 13:49:07 +03:30
|
|
|
goodId?: Prisma.IntFieldUpdateOperationsInput | number
|
|
|
|
|
serviceId?: Prisma.IntFieldUpdateOperationsInput | number
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemCreateManyServiceInput = {
|
|
|
|
|
id?: number
|
|
|
|
|
count: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
unitPrice?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
totalAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
createdAt?: Date | string
|
|
|
|
|
invoiceId: number
|
|
|
|
|
goodId: number
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemUpdateWithoutServiceInput = {
|
|
|
|
|
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
unitPrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
invoice?: Prisma.SalesInvoiceUpdateOneRequiredWithoutItemsNestedInput
|
|
|
|
|
good?: Prisma.GoodUpdateOneWithoutSalesInvoiceItemsNestedInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemUncheckedUpdateWithoutServiceInput = {
|
|
|
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
|
|
|
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
unitPrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
invoiceId?: Prisma.IntFieldUpdateOperationsInput | number
|
|
|
|
|
goodId?: Prisma.IntFieldUpdateOperationsInput | number
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemUncheckedUpdateManyWithoutServiceInput = {
|
|
|
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
|
|
|
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
unitPrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
invoiceId?: Prisma.IntFieldUpdateOperationsInput | number
|
|
|
|
|
goodId?: Prisma.IntFieldUpdateOperationsInput | number
|
2025-12-09 13:59:07 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
|
|
|
id?: boolean
|
|
|
|
|
count?: boolean
|
2026-01-04 13:45:26 +03:30
|
|
|
unitPrice?: boolean
|
|
|
|
|
totalAmount?: boolean
|
2025-12-09 13:59:07 +03:30
|
|
|
createdAt?: boolean
|
|
|
|
|
invoiceId?: boolean
|
2026-02-04 13:49:07 +03:30
|
|
|
goodId?: boolean
|
|
|
|
|
serviceId?: boolean
|
2025-12-09 13:59:07 +03:30
|
|
|
invoice?: boolean | Prisma.SalesInvoiceDefaultArgs<ExtArgs>
|
2026-02-04 13:49:07 +03:30
|
|
|
good?: boolean | Prisma.SalesInvoiceItem$goodArgs<ExtArgs>
|
|
|
|
|
service?: boolean | Prisma.SalesInvoiceItem$serviceArgs<ExtArgs>
|
2025-12-09 13:59:07 +03:30
|
|
|
}, ExtArgs["result"]["salesInvoiceItem"]>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemSelectScalar = {
|
|
|
|
|
id?: boolean
|
|
|
|
|
count?: boolean
|
2026-01-04 13:45:26 +03:30
|
|
|
unitPrice?: boolean
|
|
|
|
|
totalAmount?: boolean
|
2025-12-09 13:59:07 +03:30
|
|
|
createdAt?: boolean
|
|
|
|
|
invoiceId?: boolean
|
2026-02-04 13:49:07 +03:30
|
|
|
goodId?: boolean
|
|
|
|
|
serviceId?: boolean
|
2025-12-09 13:59:07 +03:30
|
|
|
}
|
|
|
|
|
|
2026-02-04 13:49:07 +03:30
|
|
|
export type SalesInvoiceItemOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "count" | "unitPrice" | "totalAmount" | "createdAt" | "invoiceId" | "goodId" | "serviceId", ExtArgs["result"]["salesInvoiceItem"]>
|
2025-12-09 13:59:07 +03:30
|
|
|
export type SalesInvoiceItemInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
invoice?: boolean | Prisma.SalesInvoiceDefaultArgs<ExtArgs>
|
2026-02-04 13:49:07 +03:30
|
|
|
good?: boolean | Prisma.SalesInvoiceItem$goodArgs<ExtArgs>
|
|
|
|
|
service?: boolean | Prisma.SalesInvoiceItem$serviceArgs<ExtArgs>
|
2025-12-09 13:59:07 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type $SalesInvoiceItemPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
name: "SalesInvoiceItem"
|
|
|
|
|
objects: {
|
|
|
|
|
invoice: Prisma.$SalesInvoicePayload<ExtArgs>
|
2026-02-04 13:49:07 +03:30
|
|
|
good: Prisma.$GoodPayload<ExtArgs> | null
|
|
|
|
|
service: Prisma.$ServicePayload<ExtArgs> | null
|
2025-12-09 13:59:07 +03:30
|
|
|
}
|
|
|
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
|
|
|
id: number
|
|
|
|
|
count: runtime.Decimal
|
2026-01-04 13:45:26 +03:30
|
|
|
unitPrice: runtime.Decimal
|
|
|
|
|
totalAmount: runtime.Decimal
|
2025-12-09 13:59:07 +03:30
|
|
|
createdAt: Date
|
|
|
|
|
invoiceId: number
|
2026-02-04 13:49:07 +03:30
|
|
|
goodId: number
|
|
|
|
|
serviceId: number
|
2025-12-09 13:59:07 +03:30
|
|
|
}, ExtArgs["result"]["salesInvoiceItem"]>
|
|
|
|
|
composites: {}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemGetPayload<S extends boolean | null | undefined | SalesInvoiceItemDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$SalesInvoiceItemPayload, S>
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
|
|
|
Omit<SalesInvoiceItemFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
|
|
|
select?: SalesInvoiceItemCountAggregateInputType | true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface SalesInvoiceItemDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
|
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['SalesInvoiceItem'], meta: { name: 'SalesInvoiceItem' } }
|
|
|
|
|
/**
|
|
|
|
|
* Find zero or one SalesInvoiceItem that matches the filter.
|
|
|
|
|
* @param {SalesInvoiceItemFindUniqueArgs} args - Arguments to find a SalesInvoiceItem
|
|
|
|
|
* @example
|
|
|
|
|
* // Get one SalesInvoiceItem
|
|
|
|
|
* const salesInvoiceItem = await prisma.salesInvoiceItem.findUnique({
|
|
|
|
|
* where: {
|
|
|
|
|
* // ... provide filter here
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
*/
|
|
|
|
|
findUnique<T extends SalesInvoiceItemFindUniqueArgs>(args: Prisma.SelectSubset<T, SalesInvoiceItemFindUniqueArgs<ExtArgs>>): Prisma.Prisma__SalesInvoiceItemClient<runtime.Types.Result.GetResult<Prisma.$SalesInvoiceItemPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Find one SalesInvoiceItem that matches the filter or throw an error with `error.code='P2025'`
|
|
|
|
|
* if no matches were found.
|
|
|
|
|
* @param {SalesInvoiceItemFindUniqueOrThrowArgs} args - Arguments to find a SalesInvoiceItem
|
|
|
|
|
* @example
|
|
|
|
|
* // Get one SalesInvoiceItem
|
|
|
|
|
* const salesInvoiceItem = await prisma.salesInvoiceItem.findUniqueOrThrow({
|
|
|
|
|
* where: {
|
|
|
|
|
* // ... provide filter here
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
*/
|
|
|
|
|
findUniqueOrThrow<T extends SalesInvoiceItemFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, SalesInvoiceItemFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__SalesInvoiceItemClient<runtime.Types.Result.GetResult<Prisma.$SalesInvoiceItemPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Find the first SalesInvoiceItem 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 {SalesInvoiceItemFindFirstArgs} args - Arguments to find a SalesInvoiceItem
|
|
|
|
|
* @example
|
|
|
|
|
* // Get one SalesInvoiceItem
|
|
|
|
|
* const salesInvoiceItem = await prisma.salesInvoiceItem.findFirst({
|
|
|
|
|
* where: {
|
|
|
|
|
* // ... provide filter here
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
*/
|
|
|
|
|
findFirst<T extends SalesInvoiceItemFindFirstArgs>(args?: Prisma.SelectSubset<T, SalesInvoiceItemFindFirstArgs<ExtArgs>>): Prisma.Prisma__SalesInvoiceItemClient<runtime.Types.Result.GetResult<Prisma.$SalesInvoiceItemPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Find the first SalesInvoiceItem 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 {SalesInvoiceItemFindFirstOrThrowArgs} args - Arguments to find a SalesInvoiceItem
|
|
|
|
|
* @example
|
|
|
|
|
* // Get one SalesInvoiceItem
|
|
|
|
|
* const salesInvoiceItem = await prisma.salesInvoiceItem.findFirstOrThrow({
|
|
|
|
|
* where: {
|
|
|
|
|
* // ... provide filter here
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
*/
|
|
|
|
|
findFirstOrThrow<T extends SalesInvoiceItemFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, SalesInvoiceItemFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__SalesInvoiceItemClient<runtime.Types.Result.GetResult<Prisma.$SalesInvoiceItemPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Find zero or more SalesInvoiceItems 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 {SalesInvoiceItemFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
|
|
|
* @example
|
|
|
|
|
* // Get all SalesInvoiceItems
|
|
|
|
|
* const salesInvoiceItems = await prisma.salesInvoiceItem.findMany()
|
|
|
|
|
*
|
|
|
|
|
* // Get first 10 SalesInvoiceItems
|
|
|
|
|
* const salesInvoiceItems = await prisma.salesInvoiceItem.findMany({ take: 10 })
|
|
|
|
|
*
|
|
|
|
|
* // Only select the `id`
|
|
|
|
|
* const salesInvoiceItemWithIdOnly = await prisma.salesInvoiceItem.findMany({ select: { id: true } })
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
findMany<T extends SalesInvoiceItemFindManyArgs>(args?: Prisma.SelectSubset<T, SalesInvoiceItemFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SalesInvoiceItemPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Create a SalesInvoiceItem.
|
|
|
|
|
* @param {SalesInvoiceItemCreateArgs} args - Arguments to create a SalesInvoiceItem.
|
|
|
|
|
* @example
|
|
|
|
|
* // Create one SalesInvoiceItem
|
|
|
|
|
* const SalesInvoiceItem = await prisma.salesInvoiceItem.create({
|
|
|
|
|
* data: {
|
|
|
|
|
* // ... data to create a SalesInvoiceItem
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
create<T extends SalesInvoiceItemCreateArgs>(args: Prisma.SelectSubset<T, SalesInvoiceItemCreateArgs<ExtArgs>>): Prisma.Prisma__SalesInvoiceItemClient<runtime.Types.Result.GetResult<Prisma.$SalesInvoiceItemPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Create many SalesInvoiceItems.
|
|
|
|
|
* @param {SalesInvoiceItemCreateManyArgs} args - Arguments to create many SalesInvoiceItems.
|
|
|
|
|
* @example
|
|
|
|
|
* // Create many SalesInvoiceItems
|
|
|
|
|
* const salesInvoiceItem = await prisma.salesInvoiceItem.createMany({
|
|
|
|
|
* data: [
|
|
|
|
|
* // ... provide data here
|
|
|
|
|
* ]
|
|
|
|
|
* })
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
createMany<T extends SalesInvoiceItemCreateManyArgs>(args?: Prisma.SelectSubset<T, SalesInvoiceItemCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Delete a SalesInvoiceItem.
|
|
|
|
|
* @param {SalesInvoiceItemDeleteArgs} args - Arguments to delete one SalesInvoiceItem.
|
|
|
|
|
* @example
|
|
|
|
|
* // Delete one SalesInvoiceItem
|
|
|
|
|
* const SalesInvoiceItem = await prisma.salesInvoiceItem.delete({
|
|
|
|
|
* where: {
|
|
|
|
|
* // ... filter to delete one SalesInvoiceItem
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
delete<T extends SalesInvoiceItemDeleteArgs>(args: Prisma.SelectSubset<T, SalesInvoiceItemDeleteArgs<ExtArgs>>): Prisma.Prisma__SalesInvoiceItemClient<runtime.Types.Result.GetResult<Prisma.$SalesInvoiceItemPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Update one SalesInvoiceItem.
|
|
|
|
|
* @param {SalesInvoiceItemUpdateArgs} args - Arguments to update one SalesInvoiceItem.
|
|
|
|
|
* @example
|
|
|
|
|
* // Update one SalesInvoiceItem
|
|
|
|
|
* const salesInvoiceItem = await prisma.salesInvoiceItem.update({
|
|
|
|
|
* where: {
|
|
|
|
|
* // ... provide filter here
|
|
|
|
|
* },
|
|
|
|
|
* data: {
|
|
|
|
|
* // ... provide data here
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
update<T extends SalesInvoiceItemUpdateArgs>(args: Prisma.SelectSubset<T, SalesInvoiceItemUpdateArgs<ExtArgs>>): Prisma.Prisma__SalesInvoiceItemClient<runtime.Types.Result.GetResult<Prisma.$SalesInvoiceItemPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Delete zero or more SalesInvoiceItems.
|
|
|
|
|
* @param {SalesInvoiceItemDeleteManyArgs} args - Arguments to filter SalesInvoiceItems to delete.
|
|
|
|
|
* @example
|
|
|
|
|
* // Delete a few SalesInvoiceItems
|
|
|
|
|
* const { count } = await prisma.salesInvoiceItem.deleteMany({
|
|
|
|
|
* where: {
|
|
|
|
|
* // ... provide filter here
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
deleteMany<T extends SalesInvoiceItemDeleteManyArgs>(args?: Prisma.SelectSubset<T, SalesInvoiceItemDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Update zero or more SalesInvoiceItems.
|
|
|
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
|
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
|
|
|
* @param {SalesInvoiceItemUpdateManyArgs} args - Arguments to update one or more rows.
|
|
|
|
|
* @example
|
|
|
|
|
* // Update many SalesInvoiceItems
|
|
|
|
|
* const salesInvoiceItem = await prisma.salesInvoiceItem.updateMany({
|
|
|
|
|
* where: {
|
|
|
|
|
* // ... provide filter here
|
|
|
|
|
* },
|
|
|
|
|
* data: {
|
|
|
|
|
* // ... provide data here
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
updateMany<T extends SalesInvoiceItemUpdateManyArgs>(args: Prisma.SelectSubset<T, SalesInvoiceItemUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Create or update one SalesInvoiceItem.
|
|
|
|
|
* @param {SalesInvoiceItemUpsertArgs} args - Arguments to update or create a SalesInvoiceItem.
|
|
|
|
|
* @example
|
|
|
|
|
* // Update or create a SalesInvoiceItem
|
|
|
|
|
* const salesInvoiceItem = await prisma.salesInvoiceItem.upsert({
|
|
|
|
|
* create: {
|
|
|
|
|
* // ... data to create a SalesInvoiceItem
|
|
|
|
|
* },
|
|
|
|
|
* update: {
|
|
|
|
|
* // ... in case it already exists, update
|
|
|
|
|
* },
|
|
|
|
|
* where: {
|
|
|
|
|
* // ... the filter for the SalesInvoiceItem we want to update
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
*/
|
|
|
|
|
upsert<T extends SalesInvoiceItemUpsertArgs>(args: Prisma.SelectSubset<T, SalesInvoiceItemUpsertArgs<ExtArgs>>): Prisma.Prisma__SalesInvoiceItemClient<runtime.Types.Result.GetResult<Prisma.$SalesInvoiceItemPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Count the number of SalesInvoiceItems.
|
|
|
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
|
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
|
|
|
* @param {SalesInvoiceItemCountArgs} args - Arguments to filter SalesInvoiceItems to count.
|
|
|
|
|
* @example
|
|
|
|
|
* // Count the number of SalesInvoiceItems
|
|
|
|
|
* const count = await prisma.salesInvoiceItem.count({
|
|
|
|
|
* where: {
|
|
|
|
|
* // ... the filter for the SalesInvoiceItems we want to count
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
**/
|
|
|
|
|
count<T extends SalesInvoiceItemCountArgs>(
|
|
|
|
|
args?: Prisma.Subset<T, SalesInvoiceItemCountArgs>,
|
|
|
|
|
): Prisma.PrismaPromise<
|
|
|
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
|
|
|
? T['select'] extends true
|
|
|
|
|
? number
|
|
|
|
|
: Prisma.GetScalarType<T['select'], SalesInvoiceItemCountAggregateOutputType>
|
|
|
|
|
: number
|
|
|
|
|
>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Allows you to perform aggregations operations on a SalesInvoiceItem.
|
|
|
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
|
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
|
|
|
* @param {SalesInvoiceItemAggregateArgs} 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 SalesInvoiceItemAggregateArgs>(args: Prisma.Subset<T, SalesInvoiceItemAggregateArgs>): Prisma.PrismaPromise<GetSalesInvoiceItemAggregateType<T>>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Group by SalesInvoiceItem.
|
|
|
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
|
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
|
|
|
* @param {SalesInvoiceItemGroupByArgs} 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 SalesInvoiceItemGroupByArgs,
|
|
|
|
|
HasSelectOrTake extends Prisma.Or<
|
|
|
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
|
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
|
|
|
>,
|
|
|
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
|
|
|
? { orderBy: SalesInvoiceItemGroupByArgs['orderBy'] }
|
|
|
|
|
: { orderBy?: SalesInvoiceItemGroupByArgs['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, SalesInvoiceItemGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetSalesInvoiceItemGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
|
|
|
/**
|
|
|
|
|
* Fields of the SalesInvoiceItem model
|
|
|
|
|
*/
|
|
|
|
|
readonly fields: SalesInvoiceItemFieldRefs;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The delegate class that acts as a "Promise-like" for SalesInvoiceItem.
|
|
|
|
|
* 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__SalesInvoiceItemClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
|
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
|
|
|
invoice<T extends Prisma.SalesInvoiceDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.SalesInvoiceDefaultArgs<ExtArgs>>): Prisma.Prisma__SalesInvoiceClient<runtime.Types.Result.GetResult<Prisma.$SalesInvoicePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
2026-02-04 13:49:07 +03:30
|
|
|
good<T extends Prisma.SalesInvoiceItem$goodArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.SalesInvoiceItem$goodArgs<ExtArgs>>): Prisma.Prisma__GoodClient<runtime.Types.Result.GetResult<Prisma.$GoodPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
service<T extends Prisma.SalesInvoiceItem$serviceArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.SalesInvoiceItem$serviceArgs<ExtArgs>>): Prisma.Prisma__ServiceClient<runtime.Types.Result.GetResult<Prisma.$ServicePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
2025-12-09 13:59:07 +03:30
|
|
|
/**
|
|
|
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
|
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
|
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
|
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
|
|
|
*/
|
|
|
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
|
|
|
|
|
/**
|
|
|
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
|
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
|
|
|
* @returns A Promise for the completion of the callback.
|
|
|
|
|
*/
|
|
|
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
|
|
|
|
/**
|
|
|
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
|
|
|
* resolved value cannot be modified from the callback.
|
|
|
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
|
|
|
* @returns A Promise for the completion of the callback.
|
|
|
|
|
*/
|
|
|
|
|
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Fields of the SalesInvoiceItem model
|
|
|
|
|
*/
|
|
|
|
|
export interface SalesInvoiceItemFieldRefs {
|
|
|
|
|
readonly id: Prisma.FieldRef<"SalesInvoiceItem", 'Int'>
|
|
|
|
|
readonly count: Prisma.FieldRef<"SalesInvoiceItem", 'Decimal'>
|
2026-01-04 13:45:26 +03:30
|
|
|
readonly unitPrice: Prisma.FieldRef<"SalesInvoiceItem", 'Decimal'>
|
|
|
|
|
readonly totalAmount: Prisma.FieldRef<"SalesInvoiceItem", 'Decimal'>
|
2025-12-09 13:59:07 +03:30
|
|
|
readonly createdAt: Prisma.FieldRef<"SalesInvoiceItem", 'DateTime'>
|
|
|
|
|
readonly invoiceId: Prisma.FieldRef<"SalesInvoiceItem", 'Int'>
|
2026-02-04 13:49:07 +03:30
|
|
|
readonly goodId: Prisma.FieldRef<"SalesInvoiceItem", 'Int'>
|
|
|
|
|
readonly serviceId: Prisma.FieldRef<"SalesInvoiceItem", 'Int'>
|
2025-12-09 13:59:07 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Custom InputTypes
|
|
|
|
|
/**
|
|
|
|
|
* SalesInvoiceItem findUnique
|
|
|
|
|
*/
|
|
|
|
|
export type SalesInvoiceItemFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the SalesInvoiceItem
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.SalesInvoiceItemSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the SalesInvoiceItem
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.SalesInvoiceItemOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.SalesInvoiceItemInclude<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Filter, which SalesInvoiceItem to fetch.
|
|
|
|
|
*/
|
|
|
|
|
where: Prisma.SalesInvoiceItemWhereUniqueInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* SalesInvoiceItem findUniqueOrThrow
|
|
|
|
|
*/
|
|
|
|
|
export type SalesInvoiceItemFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the SalesInvoiceItem
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.SalesInvoiceItemSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the SalesInvoiceItem
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.SalesInvoiceItemOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.SalesInvoiceItemInclude<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Filter, which SalesInvoiceItem to fetch.
|
|
|
|
|
*/
|
|
|
|
|
where: Prisma.SalesInvoiceItemWhereUniqueInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* SalesInvoiceItem findFirst
|
|
|
|
|
*/
|
|
|
|
|
export type SalesInvoiceItemFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the SalesInvoiceItem
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.SalesInvoiceItemSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the SalesInvoiceItem
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.SalesInvoiceItemOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.SalesInvoiceItemInclude<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Filter, which SalesInvoiceItem to fetch.
|
|
|
|
|
*/
|
|
|
|
|
where?: Prisma.SalesInvoiceItemWhereInput
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
|
|
|
*
|
|
|
|
|
* Determine the order of SalesInvoiceItems to fetch.
|
|
|
|
|
*/
|
|
|
|
|
orderBy?: Prisma.SalesInvoiceItemOrderByWithRelationInput | Prisma.SalesInvoiceItemOrderByWithRelationInput[]
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
|
|
|
*
|
|
|
|
|
* Sets the position for searching for SalesInvoiceItems.
|
|
|
|
|
*/
|
|
|
|
|
cursor?: Prisma.SalesInvoiceItemWhereUniqueInput
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
|
|
|
*
|
|
|
|
|
* Take `±n` SalesInvoiceItems 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` SalesInvoiceItems.
|
|
|
|
|
*/
|
|
|
|
|
skip?: number
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
|
|
|
*
|
|
|
|
|
* Filter by unique combinations of SalesInvoiceItems.
|
|
|
|
|
*/
|
|
|
|
|
distinct?: Prisma.SalesInvoiceItemScalarFieldEnum | Prisma.SalesInvoiceItemScalarFieldEnum[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* SalesInvoiceItem findFirstOrThrow
|
|
|
|
|
*/
|
|
|
|
|
export type SalesInvoiceItemFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the SalesInvoiceItem
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.SalesInvoiceItemSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the SalesInvoiceItem
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.SalesInvoiceItemOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.SalesInvoiceItemInclude<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Filter, which SalesInvoiceItem to fetch.
|
|
|
|
|
*/
|
|
|
|
|
where?: Prisma.SalesInvoiceItemWhereInput
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
|
|
|
*
|
|
|
|
|
* Determine the order of SalesInvoiceItems to fetch.
|
|
|
|
|
*/
|
|
|
|
|
orderBy?: Prisma.SalesInvoiceItemOrderByWithRelationInput | Prisma.SalesInvoiceItemOrderByWithRelationInput[]
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
|
|
|
*
|
|
|
|
|
* Sets the position for searching for SalesInvoiceItems.
|
|
|
|
|
*/
|
|
|
|
|
cursor?: Prisma.SalesInvoiceItemWhereUniqueInput
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
|
|
|
*
|
|
|
|
|
* Take `±n` SalesInvoiceItems 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` SalesInvoiceItems.
|
|
|
|
|
*/
|
|
|
|
|
skip?: number
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
|
|
|
*
|
|
|
|
|
* Filter by unique combinations of SalesInvoiceItems.
|
|
|
|
|
*/
|
|
|
|
|
distinct?: Prisma.SalesInvoiceItemScalarFieldEnum | Prisma.SalesInvoiceItemScalarFieldEnum[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* SalesInvoiceItem findMany
|
|
|
|
|
*/
|
|
|
|
|
export type SalesInvoiceItemFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the SalesInvoiceItem
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.SalesInvoiceItemSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the SalesInvoiceItem
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.SalesInvoiceItemOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.SalesInvoiceItemInclude<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Filter, which SalesInvoiceItems to fetch.
|
|
|
|
|
*/
|
|
|
|
|
where?: Prisma.SalesInvoiceItemWhereInput
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
|
|
|
*
|
|
|
|
|
* Determine the order of SalesInvoiceItems to fetch.
|
|
|
|
|
*/
|
|
|
|
|
orderBy?: Prisma.SalesInvoiceItemOrderByWithRelationInput | Prisma.SalesInvoiceItemOrderByWithRelationInput[]
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
|
|
|
*
|
|
|
|
|
* Sets the position for listing SalesInvoiceItems.
|
|
|
|
|
*/
|
|
|
|
|
cursor?: Prisma.SalesInvoiceItemWhereUniqueInput
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
|
|
|
*
|
|
|
|
|
* Take `±n` SalesInvoiceItems 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` SalesInvoiceItems.
|
|
|
|
|
*/
|
|
|
|
|
skip?: number
|
|
|
|
|
distinct?: Prisma.SalesInvoiceItemScalarFieldEnum | Prisma.SalesInvoiceItemScalarFieldEnum[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* SalesInvoiceItem create
|
|
|
|
|
*/
|
|
|
|
|
export type SalesInvoiceItemCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the SalesInvoiceItem
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.SalesInvoiceItemSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the SalesInvoiceItem
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.SalesInvoiceItemOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.SalesInvoiceItemInclude<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* The data needed to create a SalesInvoiceItem.
|
|
|
|
|
*/
|
|
|
|
|
data: Prisma.XOR<Prisma.SalesInvoiceItemCreateInput, Prisma.SalesInvoiceItemUncheckedCreateInput>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* SalesInvoiceItem createMany
|
|
|
|
|
*/
|
|
|
|
|
export type SalesInvoiceItemCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* The data used to create many SalesInvoiceItems.
|
|
|
|
|
*/
|
|
|
|
|
data: Prisma.SalesInvoiceItemCreateManyInput | Prisma.SalesInvoiceItemCreateManyInput[]
|
|
|
|
|
skipDuplicates?: boolean
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* SalesInvoiceItem update
|
|
|
|
|
*/
|
|
|
|
|
export type SalesInvoiceItemUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the SalesInvoiceItem
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.SalesInvoiceItemSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the SalesInvoiceItem
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.SalesInvoiceItemOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.SalesInvoiceItemInclude<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* The data needed to update a SalesInvoiceItem.
|
|
|
|
|
*/
|
|
|
|
|
data: Prisma.XOR<Prisma.SalesInvoiceItemUpdateInput, Prisma.SalesInvoiceItemUncheckedUpdateInput>
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which SalesInvoiceItem to update.
|
|
|
|
|
*/
|
|
|
|
|
where: Prisma.SalesInvoiceItemWhereUniqueInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* SalesInvoiceItem updateMany
|
|
|
|
|
*/
|
|
|
|
|
export type SalesInvoiceItemUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* The data used to update SalesInvoiceItems.
|
|
|
|
|
*/
|
|
|
|
|
data: Prisma.XOR<Prisma.SalesInvoiceItemUpdateManyMutationInput, Prisma.SalesInvoiceItemUncheckedUpdateManyInput>
|
|
|
|
|
/**
|
|
|
|
|
* Filter which SalesInvoiceItems to update
|
|
|
|
|
*/
|
|
|
|
|
where?: Prisma.SalesInvoiceItemWhereInput
|
|
|
|
|
/**
|
|
|
|
|
* Limit how many SalesInvoiceItems to update.
|
|
|
|
|
*/
|
|
|
|
|
limit?: number
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* SalesInvoiceItem upsert
|
|
|
|
|
*/
|
|
|
|
|
export type SalesInvoiceItemUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the SalesInvoiceItem
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.SalesInvoiceItemSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the SalesInvoiceItem
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.SalesInvoiceItemOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.SalesInvoiceItemInclude<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* The filter to search for the SalesInvoiceItem to update in case it exists.
|
|
|
|
|
*/
|
|
|
|
|
where: Prisma.SalesInvoiceItemWhereUniqueInput
|
|
|
|
|
/**
|
|
|
|
|
* In case the SalesInvoiceItem found by the `where` argument doesn't exist, create a new SalesInvoiceItem with this data.
|
|
|
|
|
*/
|
|
|
|
|
create: Prisma.XOR<Prisma.SalesInvoiceItemCreateInput, Prisma.SalesInvoiceItemUncheckedCreateInput>
|
|
|
|
|
/**
|
|
|
|
|
* In case the SalesInvoiceItem was found with the provided `where` argument, update it with this data.
|
|
|
|
|
*/
|
|
|
|
|
update: Prisma.XOR<Prisma.SalesInvoiceItemUpdateInput, Prisma.SalesInvoiceItemUncheckedUpdateInput>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* SalesInvoiceItem delete
|
|
|
|
|
*/
|
|
|
|
|
export type SalesInvoiceItemDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the SalesInvoiceItem
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.SalesInvoiceItemSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the SalesInvoiceItem
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.SalesInvoiceItemOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.SalesInvoiceItemInclude<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Filter which SalesInvoiceItem to delete.
|
|
|
|
|
*/
|
|
|
|
|
where: Prisma.SalesInvoiceItemWhereUniqueInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* SalesInvoiceItem deleteMany
|
|
|
|
|
*/
|
|
|
|
|
export type SalesInvoiceItemDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Filter which SalesInvoiceItems to delete
|
|
|
|
|
*/
|
|
|
|
|
where?: Prisma.SalesInvoiceItemWhereInput
|
|
|
|
|
/**
|
|
|
|
|
* Limit how many SalesInvoiceItems to delete.
|
|
|
|
|
*/
|
|
|
|
|
limit?: number
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-04 13:49:07 +03:30
|
|
|
/**
|
|
|
|
|
* SalesInvoiceItem.good
|
|
|
|
|
*/
|
|
|
|
|
export type SalesInvoiceItem$goodArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the Good
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.GoodSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the Good
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.GoodOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.GoodInclude<ExtArgs> | null
|
|
|
|
|
where?: Prisma.GoodWhereInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* SalesInvoiceItem.service
|
|
|
|
|
*/
|
|
|
|
|
export type SalesInvoiceItem$serviceArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the Service
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.ServiceSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the Service
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.ServiceOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.ServiceInclude<ExtArgs> | null
|
|
|
|
|
where?: Prisma.ServiceWhereInput
|
|
|
|
|
}
|
|
|
|
|
|
2025-12-09 13:59:07 +03:30
|
|
|
/**
|
|
|
|
|
* SalesInvoiceItem without action
|
|
|
|
|
*/
|
|
|
|
|
export type SalesInvoiceItemDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the SalesInvoiceItem
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.SalesInvoiceItemSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the SalesInvoiceItem
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.SalesInvoiceItemOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.SalesInvoiceItemInclude<ExtArgs> | null
|
|
|
|
|
}
|