targo-backend/prisma/generated/mariadb/models/invoice_tax_bk.ts

1127 lines
41 KiB
TypeScript

/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck
/*
* This file exports the `invoice_tax_bk` 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"
import type * as Prisma from "../internal/prismaNamespace"
/**
* Model invoice_tax_bk
*
*/
export type invoice_tax_bkModel = runtime.Types.Result.DefaultSelection<Prisma.$invoice_tax_bkPayload>
export type AggregateInvoice_tax_bk = {
_count: Invoice_tax_bkCountAggregateOutputType | null
_avg: Invoice_tax_bkAvgAggregateOutputType | null
_sum: Invoice_tax_bkSumAggregateOutputType | null
_min: Invoice_tax_bkMinAggregateOutputType | null
_max: Invoice_tax_bkMaxAggregateOutputType | null
}
export type Invoice_tax_bkAvgAggregateOutputType = {
id: number | null
invoice_id: number | null
tax_rate: number | null
amount: number | null
}
export type Invoice_tax_bkSumAggregateOutputType = {
id: bigint | null
invoice_id: bigint | null
tax_rate: number | null
amount: number | null
}
export type Invoice_tax_bkMinAggregateOutputType = {
id: bigint | null
invoice_id: bigint | null
tax_name: string | null
tax_description: string | null
tax_rate: number | null
amount: number | null
}
export type Invoice_tax_bkMaxAggregateOutputType = {
id: bigint | null
invoice_id: bigint | null
tax_name: string | null
tax_description: string | null
tax_rate: number | null
amount: number | null
}
export type Invoice_tax_bkCountAggregateOutputType = {
id: number
invoice_id: number
tax_name: number
tax_description: number
tax_rate: number
amount: number
_all: number
}
export type Invoice_tax_bkAvgAggregateInputType = {
id?: true
invoice_id?: true
tax_rate?: true
amount?: true
}
export type Invoice_tax_bkSumAggregateInputType = {
id?: true
invoice_id?: true
tax_rate?: true
amount?: true
}
export type Invoice_tax_bkMinAggregateInputType = {
id?: true
invoice_id?: true
tax_name?: true
tax_description?: true
tax_rate?: true
amount?: true
}
export type Invoice_tax_bkMaxAggregateInputType = {
id?: true
invoice_id?: true
tax_name?: true
tax_description?: true
tax_rate?: true
amount?: true
}
export type Invoice_tax_bkCountAggregateInputType = {
id?: true
invoice_id?: true
tax_name?: true
tax_description?: true
tax_rate?: true
amount?: true
_all?: true
}
export type Invoice_tax_bkAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which invoice_tax_bk to aggregate.
*/
where?: Prisma.invoice_tax_bkWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of invoice_tax_bks to fetch.
*/
orderBy?: Prisma.invoice_tax_bkOrderByWithRelationInput | Prisma.invoice_tax_bkOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.invoice_tax_bkWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` invoice_tax_bks 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` invoice_tax_bks.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned invoice_tax_bks
**/
_count?: true | Invoice_tax_bkCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: Invoice_tax_bkAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: Invoice_tax_bkSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: Invoice_tax_bkMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: Invoice_tax_bkMaxAggregateInputType
}
export type GetInvoice_tax_bkAggregateType<T extends Invoice_tax_bkAggregateArgs> = {
[P in keyof T & keyof AggregateInvoice_tax_bk]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateInvoice_tax_bk[P]>
: Prisma.GetScalarType<T[P], AggregateInvoice_tax_bk[P]>
}
export type invoice_tax_bkGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.invoice_tax_bkWhereInput
orderBy?: Prisma.invoice_tax_bkOrderByWithAggregationInput | Prisma.invoice_tax_bkOrderByWithAggregationInput[]
by: Prisma.Invoice_tax_bkScalarFieldEnum[] | Prisma.Invoice_tax_bkScalarFieldEnum
having?: Prisma.invoice_tax_bkScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: Invoice_tax_bkCountAggregateInputType | true
_avg?: Invoice_tax_bkAvgAggregateInputType
_sum?: Invoice_tax_bkSumAggregateInputType
_min?: Invoice_tax_bkMinAggregateInputType
_max?: Invoice_tax_bkMaxAggregateInputType
}
export type Invoice_tax_bkGroupByOutputType = {
id: bigint
invoice_id: bigint | null
tax_name: string | null
tax_description: string | null
tax_rate: number | null
amount: number | null
_count: Invoice_tax_bkCountAggregateOutputType | null
_avg: Invoice_tax_bkAvgAggregateOutputType | null
_sum: Invoice_tax_bkSumAggregateOutputType | null
_min: Invoice_tax_bkMinAggregateOutputType | null
_max: Invoice_tax_bkMaxAggregateOutputType | null
}
type GetInvoice_tax_bkGroupByPayload<T extends invoice_tax_bkGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<Invoice_tax_bkGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof Invoice_tax_bkGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], Invoice_tax_bkGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], Invoice_tax_bkGroupByOutputType[P]>
}
>
>
export type invoice_tax_bkWhereInput = {
AND?: Prisma.invoice_tax_bkWhereInput | Prisma.invoice_tax_bkWhereInput[]
OR?: Prisma.invoice_tax_bkWhereInput[]
NOT?: Prisma.invoice_tax_bkWhereInput | Prisma.invoice_tax_bkWhereInput[]
id?: Prisma.BigIntFilter<"invoice_tax_bk"> | bigint | number
invoice_id?: Prisma.BigIntNullableFilter<"invoice_tax_bk"> | bigint | number | null
tax_name?: Prisma.StringNullableFilter<"invoice_tax_bk"> | string | null
tax_description?: Prisma.StringNullableFilter<"invoice_tax_bk"> | string | null
tax_rate?: Prisma.FloatNullableFilter<"invoice_tax_bk"> | number | null
amount?: Prisma.FloatNullableFilter<"invoice_tax_bk"> | number | null
}
export type invoice_tax_bkOrderByWithRelationInput = {
id?: Prisma.SortOrder
invoice_id?: Prisma.SortOrderInput | Prisma.SortOrder
tax_name?: Prisma.SortOrderInput | Prisma.SortOrder
tax_description?: Prisma.SortOrderInput | Prisma.SortOrder
tax_rate?: Prisma.SortOrderInput | Prisma.SortOrder
amount?: Prisma.SortOrderInput | Prisma.SortOrder
_relevance?: Prisma.invoice_tax_bkOrderByRelevanceInput
}
export type invoice_tax_bkWhereUniqueInput = Prisma.AtLeast<{
id?: bigint | number
AND?: Prisma.invoice_tax_bkWhereInput | Prisma.invoice_tax_bkWhereInput[]
OR?: Prisma.invoice_tax_bkWhereInput[]
NOT?: Prisma.invoice_tax_bkWhereInput | Prisma.invoice_tax_bkWhereInput[]
invoice_id?: Prisma.BigIntNullableFilter<"invoice_tax_bk"> | bigint | number | null
tax_name?: Prisma.StringNullableFilter<"invoice_tax_bk"> | string | null
tax_description?: Prisma.StringNullableFilter<"invoice_tax_bk"> | string | null
tax_rate?: Prisma.FloatNullableFilter<"invoice_tax_bk"> | number | null
amount?: Prisma.FloatNullableFilter<"invoice_tax_bk"> | number | null
}, "id">
export type invoice_tax_bkOrderByWithAggregationInput = {
id?: Prisma.SortOrder
invoice_id?: Prisma.SortOrderInput | Prisma.SortOrder
tax_name?: Prisma.SortOrderInput | Prisma.SortOrder
tax_description?: Prisma.SortOrderInput | Prisma.SortOrder
tax_rate?: Prisma.SortOrderInput | Prisma.SortOrder
amount?: Prisma.SortOrderInput | Prisma.SortOrder
_count?: Prisma.invoice_tax_bkCountOrderByAggregateInput
_avg?: Prisma.invoice_tax_bkAvgOrderByAggregateInput
_max?: Prisma.invoice_tax_bkMaxOrderByAggregateInput
_min?: Prisma.invoice_tax_bkMinOrderByAggregateInput
_sum?: Prisma.invoice_tax_bkSumOrderByAggregateInput
}
export type invoice_tax_bkScalarWhereWithAggregatesInput = {
AND?: Prisma.invoice_tax_bkScalarWhereWithAggregatesInput | Prisma.invoice_tax_bkScalarWhereWithAggregatesInput[]
OR?: Prisma.invoice_tax_bkScalarWhereWithAggregatesInput[]
NOT?: Prisma.invoice_tax_bkScalarWhereWithAggregatesInput | Prisma.invoice_tax_bkScalarWhereWithAggregatesInput[]
id?: Prisma.BigIntWithAggregatesFilter<"invoice_tax_bk"> | bigint | number
invoice_id?: Prisma.BigIntNullableWithAggregatesFilter<"invoice_tax_bk"> | bigint | number | null
tax_name?: Prisma.StringNullableWithAggregatesFilter<"invoice_tax_bk"> | string | null
tax_description?: Prisma.StringNullableWithAggregatesFilter<"invoice_tax_bk"> | string | null
tax_rate?: Prisma.FloatNullableWithAggregatesFilter<"invoice_tax_bk"> | number | null
amount?: Prisma.FloatNullableWithAggregatesFilter<"invoice_tax_bk"> | number | null
}
export type invoice_tax_bkCreateInput = {
id?: bigint | number
invoice_id?: bigint | number | null
tax_name?: string | null
tax_description?: string | null
tax_rate?: number | null
amount?: number | null
}
export type invoice_tax_bkUncheckedCreateInput = {
id?: bigint | number
invoice_id?: bigint | number | null
tax_name?: string | null
tax_description?: string | null
tax_rate?: number | null
amount?: number | null
}
export type invoice_tax_bkUpdateInput = {
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
invoice_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
tax_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
tax_description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
tax_rate?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
amount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
}
export type invoice_tax_bkUncheckedUpdateInput = {
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
invoice_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
tax_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
tax_description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
tax_rate?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
amount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
}
export type invoice_tax_bkCreateManyInput = {
id?: bigint | number
invoice_id?: bigint | number | null
tax_name?: string | null
tax_description?: string | null
tax_rate?: number | null
amount?: number | null
}
export type invoice_tax_bkUpdateManyMutationInput = {
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
invoice_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
tax_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
tax_description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
tax_rate?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
amount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
}
export type invoice_tax_bkUncheckedUpdateManyInput = {
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
invoice_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
tax_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
tax_description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
tax_rate?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
amount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
}
export type invoice_tax_bkOrderByRelevanceInput = {
fields: Prisma.invoice_tax_bkOrderByRelevanceFieldEnum | Prisma.invoice_tax_bkOrderByRelevanceFieldEnum[]
sort: Prisma.SortOrder
search: string
}
export type invoice_tax_bkCountOrderByAggregateInput = {
id?: Prisma.SortOrder
invoice_id?: Prisma.SortOrder
tax_name?: Prisma.SortOrder
tax_description?: Prisma.SortOrder
tax_rate?: Prisma.SortOrder
amount?: Prisma.SortOrder
}
export type invoice_tax_bkAvgOrderByAggregateInput = {
id?: Prisma.SortOrder
invoice_id?: Prisma.SortOrder
tax_rate?: Prisma.SortOrder
amount?: Prisma.SortOrder
}
export type invoice_tax_bkMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
invoice_id?: Prisma.SortOrder
tax_name?: Prisma.SortOrder
tax_description?: Prisma.SortOrder
tax_rate?: Prisma.SortOrder
amount?: Prisma.SortOrder
}
export type invoice_tax_bkMinOrderByAggregateInput = {
id?: Prisma.SortOrder
invoice_id?: Prisma.SortOrder
tax_name?: Prisma.SortOrder
tax_description?: Prisma.SortOrder
tax_rate?: Prisma.SortOrder
amount?: Prisma.SortOrder
}
export type invoice_tax_bkSumOrderByAggregateInput = {
id?: Prisma.SortOrder
invoice_id?: Prisma.SortOrder
tax_rate?: Prisma.SortOrder
amount?: Prisma.SortOrder
}
export type invoice_tax_bkSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
invoice_id?: boolean
tax_name?: boolean
tax_description?: boolean
tax_rate?: boolean
amount?: boolean
}, ExtArgs["result"]["invoice_tax_bk"]>
export type invoice_tax_bkSelectScalar = {
id?: boolean
invoice_id?: boolean
tax_name?: boolean
tax_description?: boolean
tax_rate?: boolean
amount?: boolean
}
export type invoice_tax_bkOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "invoice_id" | "tax_name" | "tax_description" | "tax_rate" | "amount", ExtArgs["result"]["invoice_tax_bk"]>
export type $invoice_tax_bkPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "invoice_tax_bk"
objects: {}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: bigint
invoice_id: bigint | null
tax_name: string | null
tax_description: string | null
tax_rate: number | null
amount: number | null
}, ExtArgs["result"]["invoice_tax_bk"]>
composites: {}
}
export type invoice_tax_bkGetPayload<S extends boolean | null | undefined | invoice_tax_bkDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$invoice_tax_bkPayload, S>
export type invoice_tax_bkCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<invoice_tax_bkFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: Invoice_tax_bkCountAggregateInputType | true
}
export interface invoice_tax_bkDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['invoice_tax_bk'], meta: { name: 'invoice_tax_bk' } }
/**
* Find zero or one Invoice_tax_bk that matches the filter.
* @param {invoice_tax_bkFindUniqueArgs} args - Arguments to find a Invoice_tax_bk
* @example
* // Get one Invoice_tax_bk
* const invoice_tax_bk = await prisma.invoice_tax_bk.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends invoice_tax_bkFindUniqueArgs>(args: Prisma.SelectSubset<T, invoice_tax_bkFindUniqueArgs<ExtArgs>>): Prisma.Prisma__invoice_tax_bkClient<runtime.Types.Result.GetResult<Prisma.$invoice_tax_bkPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one Invoice_tax_bk that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {invoice_tax_bkFindUniqueOrThrowArgs} args - Arguments to find a Invoice_tax_bk
* @example
* // Get one Invoice_tax_bk
* const invoice_tax_bk = await prisma.invoice_tax_bk.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends invoice_tax_bkFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, invoice_tax_bkFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__invoice_tax_bkClient<runtime.Types.Result.GetResult<Prisma.$invoice_tax_bkPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first Invoice_tax_bk 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 {invoice_tax_bkFindFirstArgs} args - Arguments to find a Invoice_tax_bk
* @example
* // Get one Invoice_tax_bk
* const invoice_tax_bk = await prisma.invoice_tax_bk.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends invoice_tax_bkFindFirstArgs>(args?: Prisma.SelectSubset<T, invoice_tax_bkFindFirstArgs<ExtArgs>>): Prisma.Prisma__invoice_tax_bkClient<runtime.Types.Result.GetResult<Prisma.$invoice_tax_bkPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first Invoice_tax_bk 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 {invoice_tax_bkFindFirstOrThrowArgs} args - Arguments to find a Invoice_tax_bk
* @example
* // Get one Invoice_tax_bk
* const invoice_tax_bk = await prisma.invoice_tax_bk.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends invoice_tax_bkFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, invoice_tax_bkFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__invoice_tax_bkClient<runtime.Types.Result.GetResult<Prisma.$invoice_tax_bkPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more Invoice_tax_bks 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 {invoice_tax_bkFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Invoice_tax_bks
* const invoice_tax_bks = await prisma.invoice_tax_bk.findMany()
*
* // Get first 10 Invoice_tax_bks
* const invoice_tax_bks = await prisma.invoice_tax_bk.findMany({ take: 10 })
*
* // Only select the `id`
* const invoice_tax_bkWithIdOnly = await prisma.invoice_tax_bk.findMany({ select: { id: true } })
*
*/
findMany<T extends invoice_tax_bkFindManyArgs>(args?: Prisma.SelectSubset<T, invoice_tax_bkFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$invoice_tax_bkPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a Invoice_tax_bk.
* @param {invoice_tax_bkCreateArgs} args - Arguments to create a Invoice_tax_bk.
* @example
* // Create one Invoice_tax_bk
* const Invoice_tax_bk = await prisma.invoice_tax_bk.create({
* data: {
* // ... data to create a Invoice_tax_bk
* }
* })
*
*/
create<T extends invoice_tax_bkCreateArgs>(args: Prisma.SelectSubset<T, invoice_tax_bkCreateArgs<ExtArgs>>): Prisma.Prisma__invoice_tax_bkClient<runtime.Types.Result.GetResult<Prisma.$invoice_tax_bkPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many Invoice_tax_bks.
* @param {invoice_tax_bkCreateManyArgs} args - Arguments to create many Invoice_tax_bks.
* @example
* // Create many Invoice_tax_bks
* const invoice_tax_bk = await prisma.invoice_tax_bk.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends invoice_tax_bkCreateManyArgs>(args?: Prisma.SelectSubset<T, invoice_tax_bkCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Delete a Invoice_tax_bk.
* @param {invoice_tax_bkDeleteArgs} args - Arguments to delete one Invoice_tax_bk.
* @example
* // Delete one Invoice_tax_bk
* const Invoice_tax_bk = await prisma.invoice_tax_bk.delete({
* where: {
* // ... filter to delete one Invoice_tax_bk
* }
* })
*
*/
delete<T extends invoice_tax_bkDeleteArgs>(args: Prisma.SelectSubset<T, invoice_tax_bkDeleteArgs<ExtArgs>>): Prisma.Prisma__invoice_tax_bkClient<runtime.Types.Result.GetResult<Prisma.$invoice_tax_bkPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one Invoice_tax_bk.
* @param {invoice_tax_bkUpdateArgs} args - Arguments to update one Invoice_tax_bk.
* @example
* // Update one Invoice_tax_bk
* const invoice_tax_bk = await prisma.invoice_tax_bk.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends invoice_tax_bkUpdateArgs>(args: Prisma.SelectSubset<T, invoice_tax_bkUpdateArgs<ExtArgs>>): Prisma.Prisma__invoice_tax_bkClient<runtime.Types.Result.GetResult<Prisma.$invoice_tax_bkPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more Invoice_tax_bks.
* @param {invoice_tax_bkDeleteManyArgs} args - Arguments to filter Invoice_tax_bks to delete.
* @example
* // Delete a few Invoice_tax_bks
* const { count } = await prisma.invoice_tax_bk.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends invoice_tax_bkDeleteManyArgs>(args?: Prisma.SelectSubset<T, invoice_tax_bkDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more Invoice_tax_bks.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {invoice_tax_bkUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Invoice_tax_bks
* const invoice_tax_bk = await prisma.invoice_tax_bk.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends invoice_tax_bkUpdateManyArgs>(args: Prisma.SelectSubset<T, invoice_tax_bkUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create or update one Invoice_tax_bk.
* @param {invoice_tax_bkUpsertArgs} args - Arguments to update or create a Invoice_tax_bk.
* @example
* // Update or create a Invoice_tax_bk
* const invoice_tax_bk = await prisma.invoice_tax_bk.upsert({
* create: {
* // ... data to create a Invoice_tax_bk
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the Invoice_tax_bk we want to update
* }
* })
*/
upsert<T extends invoice_tax_bkUpsertArgs>(args: Prisma.SelectSubset<T, invoice_tax_bkUpsertArgs<ExtArgs>>): Prisma.Prisma__invoice_tax_bkClient<runtime.Types.Result.GetResult<Prisma.$invoice_tax_bkPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of Invoice_tax_bks.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {invoice_tax_bkCountArgs} args - Arguments to filter Invoice_tax_bks to count.
* @example
* // Count the number of Invoice_tax_bks
* const count = await prisma.invoice_tax_bk.count({
* where: {
* // ... the filter for the Invoice_tax_bks we want to count
* }
* })
**/
count<T extends invoice_tax_bkCountArgs>(
args?: Prisma.Subset<T, invoice_tax_bkCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], Invoice_tax_bkCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a Invoice_tax_bk.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {Invoice_tax_bkAggregateArgs} 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 Invoice_tax_bkAggregateArgs>(args: Prisma.Subset<T, Invoice_tax_bkAggregateArgs>): Prisma.PrismaPromise<GetInvoice_tax_bkAggregateType<T>>
/**
* Group by Invoice_tax_bk.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {invoice_tax_bkGroupByArgs} 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 invoice_tax_bkGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: invoice_tax_bkGroupByArgs['orderBy'] }
: { orderBy?: invoice_tax_bkGroupByArgs['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, invoice_tax_bkGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetInvoice_tax_bkGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the invoice_tax_bk model
*/
readonly fields: invoice_tax_bkFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for invoice_tax_bk.
* 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__invoice_tax_bkClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
/**
* 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 invoice_tax_bk model
*/
export interface invoice_tax_bkFieldRefs {
readonly id: Prisma.FieldRef<"invoice_tax_bk", 'BigInt'>
readonly invoice_id: Prisma.FieldRef<"invoice_tax_bk", 'BigInt'>
readonly tax_name: Prisma.FieldRef<"invoice_tax_bk", 'String'>
readonly tax_description: Prisma.FieldRef<"invoice_tax_bk", 'String'>
readonly tax_rate: Prisma.FieldRef<"invoice_tax_bk", 'Float'>
readonly amount: Prisma.FieldRef<"invoice_tax_bk", 'Float'>
}
// Custom InputTypes
/**
* invoice_tax_bk findUnique
*/
export type invoice_tax_bkFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the invoice_tax_bk
*/
select?: Prisma.invoice_tax_bkSelect<ExtArgs> | null
/**
* Omit specific fields from the invoice_tax_bk
*/
omit?: Prisma.invoice_tax_bkOmit<ExtArgs> | null
/**
* Filter, which invoice_tax_bk to fetch.
*/
where: Prisma.invoice_tax_bkWhereUniqueInput
}
/**
* invoice_tax_bk findUniqueOrThrow
*/
export type invoice_tax_bkFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the invoice_tax_bk
*/
select?: Prisma.invoice_tax_bkSelect<ExtArgs> | null
/**
* Omit specific fields from the invoice_tax_bk
*/
omit?: Prisma.invoice_tax_bkOmit<ExtArgs> | null
/**
* Filter, which invoice_tax_bk to fetch.
*/
where: Prisma.invoice_tax_bkWhereUniqueInput
}
/**
* invoice_tax_bk findFirst
*/
export type invoice_tax_bkFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the invoice_tax_bk
*/
select?: Prisma.invoice_tax_bkSelect<ExtArgs> | null
/**
* Omit specific fields from the invoice_tax_bk
*/
omit?: Prisma.invoice_tax_bkOmit<ExtArgs> | null
/**
* Filter, which invoice_tax_bk to fetch.
*/
where?: Prisma.invoice_tax_bkWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of invoice_tax_bks to fetch.
*/
orderBy?: Prisma.invoice_tax_bkOrderByWithRelationInput | Prisma.invoice_tax_bkOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for invoice_tax_bks.
*/
cursor?: Prisma.invoice_tax_bkWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` invoice_tax_bks 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` invoice_tax_bks.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of invoice_tax_bks.
*/
distinct?: Prisma.Invoice_tax_bkScalarFieldEnum | Prisma.Invoice_tax_bkScalarFieldEnum[]
}
/**
* invoice_tax_bk findFirstOrThrow
*/
export type invoice_tax_bkFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the invoice_tax_bk
*/
select?: Prisma.invoice_tax_bkSelect<ExtArgs> | null
/**
* Omit specific fields from the invoice_tax_bk
*/
omit?: Prisma.invoice_tax_bkOmit<ExtArgs> | null
/**
* Filter, which invoice_tax_bk to fetch.
*/
where?: Prisma.invoice_tax_bkWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of invoice_tax_bks to fetch.
*/
orderBy?: Prisma.invoice_tax_bkOrderByWithRelationInput | Prisma.invoice_tax_bkOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for invoice_tax_bks.
*/
cursor?: Prisma.invoice_tax_bkWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` invoice_tax_bks 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` invoice_tax_bks.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of invoice_tax_bks.
*/
distinct?: Prisma.Invoice_tax_bkScalarFieldEnum | Prisma.Invoice_tax_bkScalarFieldEnum[]
}
/**
* invoice_tax_bk findMany
*/
export type invoice_tax_bkFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the invoice_tax_bk
*/
select?: Prisma.invoice_tax_bkSelect<ExtArgs> | null
/**
* Omit specific fields from the invoice_tax_bk
*/
omit?: Prisma.invoice_tax_bkOmit<ExtArgs> | null
/**
* Filter, which invoice_tax_bks to fetch.
*/
where?: Prisma.invoice_tax_bkWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of invoice_tax_bks to fetch.
*/
orderBy?: Prisma.invoice_tax_bkOrderByWithRelationInput | Prisma.invoice_tax_bkOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing invoice_tax_bks.
*/
cursor?: Prisma.invoice_tax_bkWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` invoice_tax_bks 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` invoice_tax_bks.
*/
skip?: number
distinct?: Prisma.Invoice_tax_bkScalarFieldEnum | Prisma.Invoice_tax_bkScalarFieldEnum[]
}
/**
* invoice_tax_bk create
*/
export type invoice_tax_bkCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the invoice_tax_bk
*/
select?: Prisma.invoice_tax_bkSelect<ExtArgs> | null
/**
* Omit specific fields from the invoice_tax_bk
*/
omit?: Prisma.invoice_tax_bkOmit<ExtArgs> | null
/**
* The data needed to create a invoice_tax_bk.
*/
data?: Prisma.XOR<Prisma.invoice_tax_bkCreateInput, Prisma.invoice_tax_bkUncheckedCreateInput>
}
/**
* invoice_tax_bk createMany
*/
export type invoice_tax_bkCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many invoice_tax_bks.
*/
data: Prisma.invoice_tax_bkCreateManyInput | Prisma.invoice_tax_bkCreateManyInput[]
skipDuplicates?: boolean
}
/**
* invoice_tax_bk update
*/
export type invoice_tax_bkUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the invoice_tax_bk
*/
select?: Prisma.invoice_tax_bkSelect<ExtArgs> | null
/**
* Omit specific fields from the invoice_tax_bk
*/
omit?: Prisma.invoice_tax_bkOmit<ExtArgs> | null
/**
* The data needed to update a invoice_tax_bk.
*/
data: Prisma.XOR<Prisma.invoice_tax_bkUpdateInput, Prisma.invoice_tax_bkUncheckedUpdateInput>
/**
* Choose, which invoice_tax_bk to update.
*/
where: Prisma.invoice_tax_bkWhereUniqueInput
}
/**
* invoice_tax_bk updateMany
*/
export type invoice_tax_bkUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update invoice_tax_bks.
*/
data: Prisma.XOR<Prisma.invoice_tax_bkUpdateManyMutationInput, Prisma.invoice_tax_bkUncheckedUpdateManyInput>
/**
* Filter which invoice_tax_bks to update
*/
where?: Prisma.invoice_tax_bkWhereInput
/**
* Limit how many invoice_tax_bks to update.
*/
limit?: number
}
/**
* invoice_tax_bk upsert
*/
export type invoice_tax_bkUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the invoice_tax_bk
*/
select?: Prisma.invoice_tax_bkSelect<ExtArgs> | null
/**
* Omit specific fields from the invoice_tax_bk
*/
omit?: Prisma.invoice_tax_bkOmit<ExtArgs> | null
/**
* The filter to search for the invoice_tax_bk to update in case it exists.
*/
where: Prisma.invoice_tax_bkWhereUniqueInput
/**
* In case the invoice_tax_bk found by the `where` argument doesn't exist, create a new invoice_tax_bk with this data.
*/
create: Prisma.XOR<Prisma.invoice_tax_bkCreateInput, Prisma.invoice_tax_bkUncheckedCreateInput>
/**
* In case the invoice_tax_bk was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.invoice_tax_bkUpdateInput, Prisma.invoice_tax_bkUncheckedUpdateInput>
}
/**
* invoice_tax_bk delete
*/
export type invoice_tax_bkDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the invoice_tax_bk
*/
select?: Prisma.invoice_tax_bkSelect<ExtArgs> | null
/**
* Omit specific fields from the invoice_tax_bk
*/
omit?: Prisma.invoice_tax_bkOmit<ExtArgs> | null
/**
* Filter which invoice_tax_bk to delete.
*/
where: Prisma.invoice_tax_bkWhereUniqueInput
}
/**
* invoice_tax_bk deleteMany
*/
export type invoice_tax_bkDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which invoice_tax_bks to delete
*/
where?: Prisma.invoice_tax_bkWhereInput
/**
* Limit how many invoice_tax_bks to delete.
*/
limit?: number
}
/**
* invoice_tax_bk without action
*/
export type invoice_tax_bkDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the invoice_tax_bk
*/
select?: Prisma.invoice_tax_bkSelect<ExtArgs> | null
/**
* Omit specific fields from the invoice_tax_bk
*/
omit?: Prisma.invoice_tax_bkOmit<ExtArgs> | null
}