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

1144 lines
40 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 `deposit_slip` 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 deposit_slip
*
*/
export type deposit_slipModel = runtime.Types.Result.DefaultSelection<Prisma.$deposit_slipPayload>
export type AggregateDeposit_slip = {
_count: Deposit_slipCountAggregateOutputType | null
_avg: Deposit_slipAvgAggregateOutputType | null
_sum: Deposit_slipSumAggregateOutputType | null
_min: Deposit_slipMinAggregateOutputType | null
_max: Deposit_slipMaxAggregateOutputType | null
}
export type Deposit_slipAvgAggregateOutputType = {
id: number | null
amount: number | null
date: number | null
}
export type Deposit_slipSumAggregateOutputType = {
id: number | null
amount: number | null
date: bigint | null
}
export type Deposit_slipMinAggregateOutputType = {
id: number | null
customer_id: string | null
name: string | null
amount: number | null
type: string | null
desc: string | null
date: bigint | null
}
export type Deposit_slipMaxAggregateOutputType = {
id: number | null
customer_id: string | null
name: string | null
amount: number | null
type: string | null
desc: string | null
date: bigint | null
}
export type Deposit_slipCountAggregateOutputType = {
id: number
customer_id: number
name: number
amount: number
type: number
desc: number
date: number
_all: number
}
export type Deposit_slipAvgAggregateInputType = {
id?: true
amount?: true
date?: true
}
export type Deposit_slipSumAggregateInputType = {
id?: true
amount?: true
date?: true
}
export type Deposit_slipMinAggregateInputType = {
id?: true
customer_id?: true
name?: true
amount?: true
type?: true
desc?: true
date?: true
}
export type Deposit_slipMaxAggregateInputType = {
id?: true
customer_id?: true
name?: true
amount?: true
type?: true
desc?: true
date?: true
}
export type Deposit_slipCountAggregateInputType = {
id?: true
customer_id?: true
name?: true
amount?: true
type?: true
desc?: true
date?: true
_all?: true
}
export type Deposit_slipAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which deposit_slip to aggregate.
*/
where?: Prisma.deposit_slipWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of deposit_slips to fetch.
*/
orderBy?: Prisma.deposit_slipOrderByWithRelationInput | Prisma.deposit_slipOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.deposit_slipWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` deposit_slips 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` deposit_slips.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned deposit_slips
**/
_count?: true | Deposit_slipCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: Deposit_slipAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: Deposit_slipSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: Deposit_slipMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: Deposit_slipMaxAggregateInputType
}
export type GetDeposit_slipAggregateType<T extends Deposit_slipAggregateArgs> = {
[P in keyof T & keyof AggregateDeposit_slip]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateDeposit_slip[P]>
: Prisma.GetScalarType<T[P], AggregateDeposit_slip[P]>
}
export type deposit_slipGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.deposit_slipWhereInput
orderBy?: Prisma.deposit_slipOrderByWithAggregationInput | Prisma.deposit_slipOrderByWithAggregationInput[]
by: Prisma.Deposit_slipScalarFieldEnum[] | Prisma.Deposit_slipScalarFieldEnum
having?: Prisma.deposit_slipScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: Deposit_slipCountAggregateInputType | true
_avg?: Deposit_slipAvgAggregateInputType
_sum?: Deposit_slipSumAggregateInputType
_min?: Deposit_slipMinAggregateInputType
_max?: Deposit_slipMaxAggregateInputType
}
export type Deposit_slipGroupByOutputType = {
id: number
customer_id: string | null
name: string | null
amount: number
type: string
desc: string | null
date: bigint | null
_count: Deposit_slipCountAggregateOutputType | null
_avg: Deposit_slipAvgAggregateOutputType | null
_sum: Deposit_slipSumAggregateOutputType | null
_min: Deposit_slipMinAggregateOutputType | null
_max: Deposit_slipMaxAggregateOutputType | null
}
type GetDeposit_slipGroupByPayload<T extends deposit_slipGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<Deposit_slipGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof Deposit_slipGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], Deposit_slipGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], Deposit_slipGroupByOutputType[P]>
}
>
>
export type deposit_slipWhereInput = {
AND?: Prisma.deposit_slipWhereInput | Prisma.deposit_slipWhereInput[]
OR?: Prisma.deposit_slipWhereInput[]
NOT?: Prisma.deposit_slipWhereInput | Prisma.deposit_slipWhereInput[]
id?: Prisma.IntFilter<"deposit_slip"> | number
customer_id?: Prisma.StringNullableFilter<"deposit_slip"> | string | null
name?: Prisma.StringNullableFilter<"deposit_slip"> | string | null
amount?: Prisma.FloatFilter<"deposit_slip"> | number
type?: Prisma.StringFilter<"deposit_slip"> | string
desc?: Prisma.StringNullableFilter<"deposit_slip"> | string | null
date?: Prisma.BigIntNullableFilter<"deposit_slip"> | bigint | number | null
}
export type deposit_slipOrderByWithRelationInput = {
id?: Prisma.SortOrder
customer_id?: Prisma.SortOrderInput | Prisma.SortOrder
name?: Prisma.SortOrderInput | Prisma.SortOrder
amount?: Prisma.SortOrder
type?: Prisma.SortOrder
desc?: Prisma.SortOrderInput | Prisma.SortOrder
date?: Prisma.SortOrderInput | Prisma.SortOrder
_relevance?: Prisma.deposit_slipOrderByRelevanceInput
}
export type deposit_slipWhereUniqueInput = Prisma.AtLeast<{
id?: number
AND?: Prisma.deposit_slipWhereInput | Prisma.deposit_slipWhereInput[]
OR?: Prisma.deposit_slipWhereInput[]
NOT?: Prisma.deposit_slipWhereInput | Prisma.deposit_slipWhereInput[]
customer_id?: Prisma.StringNullableFilter<"deposit_slip"> | string | null
name?: Prisma.StringNullableFilter<"deposit_slip"> | string | null
amount?: Prisma.FloatFilter<"deposit_slip"> | number
type?: Prisma.StringFilter<"deposit_slip"> | string
desc?: Prisma.StringNullableFilter<"deposit_slip"> | string | null
date?: Prisma.BigIntNullableFilter<"deposit_slip"> | bigint | number | null
}, "id">
export type deposit_slipOrderByWithAggregationInput = {
id?: Prisma.SortOrder
customer_id?: Prisma.SortOrderInput | Prisma.SortOrder
name?: Prisma.SortOrderInput | Prisma.SortOrder
amount?: Prisma.SortOrder
type?: Prisma.SortOrder
desc?: Prisma.SortOrderInput | Prisma.SortOrder
date?: Prisma.SortOrderInput | Prisma.SortOrder
_count?: Prisma.deposit_slipCountOrderByAggregateInput
_avg?: Prisma.deposit_slipAvgOrderByAggregateInput
_max?: Prisma.deposit_slipMaxOrderByAggregateInput
_min?: Prisma.deposit_slipMinOrderByAggregateInput
_sum?: Prisma.deposit_slipSumOrderByAggregateInput
}
export type deposit_slipScalarWhereWithAggregatesInput = {
AND?: Prisma.deposit_slipScalarWhereWithAggregatesInput | Prisma.deposit_slipScalarWhereWithAggregatesInput[]
OR?: Prisma.deposit_slipScalarWhereWithAggregatesInput[]
NOT?: Prisma.deposit_slipScalarWhereWithAggregatesInput | Prisma.deposit_slipScalarWhereWithAggregatesInput[]
id?: Prisma.IntWithAggregatesFilter<"deposit_slip"> | number
customer_id?: Prisma.StringNullableWithAggregatesFilter<"deposit_slip"> | string | null
name?: Prisma.StringNullableWithAggregatesFilter<"deposit_slip"> | string | null
amount?: Prisma.FloatWithAggregatesFilter<"deposit_slip"> | number
type?: Prisma.StringWithAggregatesFilter<"deposit_slip"> | string
desc?: Prisma.StringNullableWithAggregatesFilter<"deposit_slip"> | string | null
date?: Prisma.BigIntNullableWithAggregatesFilter<"deposit_slip"> | bigint | number | null
}
export type deposit_slipCreateInput = {
customer_id?: string | null
name?: string | null
amount?: number
type: string
desc?: string | null
date?: bigint | number | null
}
export type deposit_slipUncheckedCreateInput = {
id?: number
customer_id?: string | null
name?: string | null
amount?: number
type: string
desc?: string | null
date?: bigint | number | null
}
export type deposit_slipUpdateInput = {
customer_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
amount?: Prisma.FloatFieldUpdateOperationsInput | number
type?: Prisma.StringFieldUpdateOperationsInput | string
desc?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
date?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
}
export type deposit_slipUncheckedUpdateInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
customer_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
amount?: Prisma.FloatFieldUpdateOperationsInput | number
type?: Prisma.StringFieldUpdateOperationsInput | string
desc?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
date?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
}
export type deposit_slipCreateManyInput = {
id?: number
customer_id?: string | null
name?: string | null
amount?: number
type: string
desc?: string | null
date?: bigint | number | null
}
export type deposit_slipUpdateManyMutationInput = {
customer_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
amount?: Prisma.FloatFieldUpdateOperationsInput | number
type?: Prisma.StringFieldUpdateOperationsInput | string
desc?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
date?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
}
export type deposit_slipUncheckedUpdateManyInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
customer_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
amount?: Prisma.FloatFieldUpdateOperationsInput | number
type?: Prisma.StringFieldUpdateOperationsInput | string
desc?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
date?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
}
export type deposit_slipOrderByRelevanceInput = {
fields: Prisma.deposit_slipOrderByRelevanceFieldEnum | Prisma.deposit_slipOrderByRelevanceFieldEnum[]
sort: Prisma.SortOrder
search: string
}
export type deposit_slipCountOrderByAggregateInput = {
id?: Prisma.SortOrder
customer_id?: Prisma.SortOrder
name?: Prisma.SortOrder
amount?: Prisma.SortOrder
type?: Prisma.SortOrder
desc?: Prisma.SortOrder
date?: Prisma.SortOrder
}
export type deposit_slipAvgOrderByAggregateInput = {
id?: Prisma.SortOrder
amount?: Prisma.SortOrder
date?: Prisma.SortOrder
}
export type deposit_slipMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
customer_id?: Prisma.SortOrder
name?: Prisma.SortOrder
amount?: Prisma.SortOrder
type?: Prisma.SortOrder
desc?: Prisma.SortOrder
date?: Prisma.SortOrder
}
export type deposit_slipMinOrderByAggregateInput = {
id?: Prisma.SortOrder
customer_id?: Prisma.SortOrder
name?: Prisma.SortOrder
amount?: Prisma.SortOrder
type?: Prisma.SortOrder
desc?: Prisma.SortOrder
date?: Prisma.SortOrder
}
export type deposit_slipSumOrderByAggregateInput = {
id?: Prisma.SortOrder
amount?: Prisma.SortOrder
date?: Prisma.SortOrder
}
export type deposit_slipSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
customer_id?: boolean
name?: boolean
amount?: boolean
type?: boolean
desc?: boolean
date?: boolean
}, ExtArgs["result"]["deposit_slip"]>
export type deposit_slipSelectScalar = {
id?: boolean
customer_id?: boolean
name?: boolean
amount?: boolean
type?: boolean
desc?: boolean
date?: boolean
}
export type deposit_slipOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "customer_id" | "name" | "amount" | "type" | "desc" | "date", ExtArgs["result"]["deposit_slip"]>
export type $deposit_slipPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "deposit_slip"
objects: {}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: number
customer_id: string | null
name: string | null
amount: number
type: string
desc: string | null
date: bigint | null
}, ExtArgs["result"]["deposit_slip"]>
composites: {}
}
export type deposit_slipGetPayload<S extends boolean | null | undefined | deposit_slipDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$deposit_slipPayload, S>
export type deposit_slipCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<deposit_slipFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: Deposit_slipCountAggregateInputType | true
}
export interface deposit_slipDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['deposit_slip'], meta: { name: 'deposit_slip' } }
/**
* Find zero or one Deposit_slip that matches the filter.
* @param {deposit_slipFindUniqueArgs} args - Arguments to find a Deposit_slip
* @example
* // Get one Deposit_slip
* const deposit_slip = await prisma.deposit_slip.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends deposit_slipFindUniqueArgs>(args: Prisma.SelectSubset<T, deposit_slipFindUniqueArgs<ExtArgs>>): Prisma.Prisma__deposit_slipClient<runtime.Types.Result.GetResult<Prisma.$deposit_slipPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one Deposit_slip that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {deposit_slipFindUniqueOrThrowArgs} args - Arguments to find a Deposit_slip
* @example
* // Get one Deposit_slip
* const deposit_slip = await prisma.deposit_slip.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends deposit_slipFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, deposit_slipFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__deposit_slipClient<runtime.Types.Result.GetResult<Prisma.$deposit_slipPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first Deposit_slip 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 {deposit_slipFindFirstArgs} args - Arguments to find a Deposit_slip
* @example
* // Get one Deposit_slip
* const deposit_slip = await prisma.deposit_slip.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends deposit_slipFindFirstArgs>(args?: Prisma.SelectSubset<T, deposit_slipFindFirstArgs<ExtArgs>>): Prisma.Prisma__deposit_slipClient<runtime.Types.Result.GetResult<Prisma.$deposit_slipPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first Deposit_slip 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 {deposit_slipFindFirstOrThrowArgs} args - Arguments to find a Deposit_slip
* @example
* // Get one Deposit_slip
* const deposit_slip = await prisma.deposit_slip.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends deposit_slipFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, deposit_slipFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__deposit_slipClient<runtime.Types.Result.GetResult<Prisma.$deposit_slipPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more Deposit_slips 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 {deposit_slipFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Deposit_slips
* const deposit_slips = await prisma.deposit_slip.findMany()
*
* // Get first 10 Deposit_slips
* const deposit_slips = await prisma.deposit_slip.findMany({ take: 10 })
*
* // Only select the `id`
* const deposit_slipWithIdOnly = await prisma.deposit_slip.findMany({ select: { id: true } })
*
*/
findMany<T extends deposit_slipFindManyArgs>(args?: Prisma.SelectSubset<T, deposit_slipFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$deposit_slipPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a Deposit_slip.
* @param {deposit_slipCreateArgs} args - Arguments to create a Deposit_slip.
* @example
* // Create one Deposit_slip
* const Deposit_slip = await prisma.deposit_slip.create({
* data: {
* // ... data to create a Deposit_slip
* }
* })
*
*/
create<T extends deposit_slipCreateArgs>(args: Prisma.SelectSubset<T, deposit_slipCreateArgs<ExtArgs>>): Prisma.Prisma__deposit_slipClient<runtime.Types.Result.GetResult<Prisma.$deposit_slipPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many Deposit_slips.
* @param {deposit_slipCreateManyArgs} args - Arguments to create many Deposit_slips.
* @example
* // Create many Deposit_slips
* const deposit_slip = await prisma.deposit_slip.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends deposit_slipCreateManyArgs>(args?: Prisma.SelectSubset<T, deposit_slipCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Delete a Deposit_slip.
* @param {deposit_slipDeleteArgs} args - Arguments to delete one Deposit_slip.
* @example
* // Delete one Deposit_slip
* const Deposit_slip = await prisma.deposit_slip.delete({
* where: {
* // ... filter to delete one Deposit_slip
* }
* })
*
*/
delete<T extends deposit_slipDeleteArgs>(args: Prisma.SelectSubset<T, deposit_slipDeleteArgs<ExtArgs>>): Prisma.Prisma__deposit_slipClient<runtime.Types.Result.GetResult<Prisma.$deposit_slipPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one Deposit_slip.
* @param {deposit_slipUpdateArgs} args - Arguments to update one Deposit_slip.
* @example
* // Update one Deposit_slip
* const deposit_slip = await prisma.deposit_slip.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends deposit_slipUpdateArgs>(args: Prisma.SelectSubset<T, deposit_slipUpdateArgs<ExtArgs>>): Prisma.Prisma__deposit_slipClient<runtime.Types.Result.GetResult<Prisma.$deposit_slipPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more Deposit_slips.
* @param {deposit_slipDeleteManyArgs} args - Arguments to filter Deposit_slips to delete.
* @example
* // Delete a few Deposit_slips
* const { count } = await prisma.deposit_slip.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends deposit_slipDeleteManyArgs>(args?: Prisma.SelectSubset<T, deposit_slipDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more Deposit_slips.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {deposit_slipUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Deposit_slips
* const deposit_slip = await prisma.deposit_slip.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends deposit_slipUpdateManyArgs>(args: Prisma.SelectSubset<T, deposit_slipUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create or update one Deposit_slip.
* @param {deposit_slipUpsertArgs} args - Arguments to update or create a Deposit_slip.
* @example
* // Update or create a Deposit_slip
* const deposit_slip = await prisma.deposit_slip.upsert({
* create: {
* // ... data to create a Deposit_slip
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the Deposit_slip we want to update
* }
* })
*/
upsert<T extends deposit_slipUpsertArgs>(args: Prisma.SelectSubset<T, deposit_slipUpsertArgs<ExtArgs>>): Prisma.Prisma__deposit_slipClient<runtime.Types.Result.GetResult<Prisma.$deposit_slipPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of Deposit_slips.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {deposit_slipCountArgs} args - Arguments to filter Deposit_slips to count.
* @example
* // Count the number of Deposit_slips
* const count = await prisma.deposit_slip.count({
* where: {
* // ... the filter for the Deposit_slips we want to count
* }
* })
**/
count<T extends deposit_slipCountArgs>(
args?: Prisma.Subset<T, deposit_slipCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], Deposit_slipCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a Deposit_slip.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {Deposit_slipAggregateArgs} 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 Deposit_slipAggregateArgs>(args: Prisma.Subset<T, Deposit_slipAggregateArgs>): Prisma.PrismaPromise<GetDeposit_slipAggregateType<T>>
/**
* Group by Deposit_slip.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {deposit_slipGroupByArgs} 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 deposit_slipGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: deposit_slipGroupByArgs['orderBy'] }
: { orderBy?: deposit_slipGroupByArgs['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, deposit_slipGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetDeposit_slipGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the deposit_slip model
*/
readonly fields: deposit_slipFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for deposit_slip.
* 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__deposit_slipClient<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 deposit_slip model
*/
export interface deposit_slipFieldRefs {
readonly id: Prisma.FieldRef<"deposit_slip", 'Int'>
readonly customer_id: Prisma.FieldRef<"deposit_slip", 'String'>
readonly name: Prisma.FieldRef<"deposit_slip", 'String'>
readonly amount: Prisma.FieldRef<"deposit_slip", 'Float'>
readonly type: Prisma.FieldRef<"deposit_slip", 'String'>
readonly desc: Prisma.FieldRef<"deposit_slip", 'String'>
readonly date: Prisma.FieldRef<"deposit_slip", 'BigInt'>
}
// Custom InputTypes
/**
* deposit_slip findUnique
*/
export type deposit_slipFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the deposit_slip
*/
select?: Prisma.deposit_slipSelect<ExtArgs> | null
/**
* Omit specific fields from the deposit_slip
*/
omit?: Prisma.deposit_slipOmit<ExtArgs> | null
/**
* Filter, which deposit_slip to fetch.
*/
where: Prisma.deposit_slipWhereUniqueInput
}
/**
* deposit_slip findUniqueOrThrow
*/
export type deposit_slipFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the deposit_slip
*/
select?: Prisma.deposit_slipSelect<ExtArgs> | null
/**
* Omit specific fields from the deposit_slip
*/
omit?: Prisma.deposit_slipOmit<ExtArgs> | null
/**
* Filter, which deposit_slip to fetch.
*/
where: Prisma.deposit_slipWhereUniqueInput
}
/**
* deposit_slip findFirst
*/
export type deposit_slipFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the deposit_slip
*/
select?: Prisma.deposit_slipSelect<ExtArgs> | null
/**
* Omit specific fields from the deposit_slip
*/
omit?: Prisma.deposit_slipOmit<ExtArgs> | null
/**
* Filter, which deposit_slip to fetch.
*/
where?: Prisma.deposit_slipWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of deposit_slips to fetch.
*/
orderBy?: Prisma.deposit_slipOrderByWithRelationInput | Prisma.deposit_slipOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for deposit_slips.
*/
cursor?: Prisma.deposit_slipWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` deposit_slips 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` deposit_slips.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of deposit_slips.
*/
distinct?: Prisma.Deposit_slipScalarFieldEnum | Prisma.Deposit_slipScalarFieldEnum[]
}
/**
* deposit_slip findFirstOrThrow
*/
export type deposit_slipFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the deposit_slip
*/
select?: Prisma.deposit_slipSelect<ExtArgs> | null
/**
* Omit specific fields from the deposit_slip
*/
omit?: Prisma.deposit_slipOmit<ExtArgs> | null
/**
* Filter, which deposit_slip to fetch.
*/
where?: Prisma.deposit_slipWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of deposit_slips to fetch.
*/
orderBy?: Prisma.deposit_slipOrderByWithRelationInput | Prisma.deposit_slipOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for deposit_slips.
*/
cursor?: Prisma.deposit_slipWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` deposit_slips 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` deposit_slips.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of deposit_slips.
*/
distinct?: Prisma.Deposit_slipScalarFieldEnum | Prisma.Deposit_slipScalarFieldEnum[]
}
/**
* deposit_slip findMany
*/
export type deposit_slipFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the deposit_slip
*/
select?: Prisma.deposit_slipSelect<ExtArgs> | null
/**
* Omit specific fields from the deposit_slip
*/
omit?: Prisma.deposit_slipOmit<ExtArgs> | null
/**
* Filter, which deposit_slips to fetch.
*/
where?: Prisma.deposit_slipWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of deposit_slips to fetch.
*/
orderBy?: Prisma.deposit_slipOrderByWithRelationInput | Prisma.deposit_slipOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing deposit_slips.
*/
cursor?: Prisma.deposit_slipWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` deposit_slips 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` deposit_slips.
*/
skip?: number
distinct?: Prisma.Deposit_slipScalarFieldEnum | Prisma.Deposit_slipScalarFieldEnum[]
}
/**
* deposit_slip create
*/
export type deposit_slipCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the deposit_slip
*/
select?: Prisma.deposit_slipSelect<ExtArgs> | null
/**
* Omit specific fields from the deposit_slip
*/
omit?: Prisma.deposit_slipOmit<ExtArgs> | null
/**
* The data needed to create a deposit_slip.
*/
data: Prisma.XOR<Prisma.deposit_slipCreateInput, Prisma.deposit_slipUncheckedCreateInput>
}
/**
* deposit_slip createMany
*/
export type deposit_slipCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many deposit_slips.
*/
data: Prisma.deposit_slipCreateManyInput | Prisma.deposit_slipCreateManyInput[]
skipDuplicates?: boolean
}
/**
* deposit_slip update
*/
export type deposit_slipUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the deposit_slip
*/
select?: Prisma.deposit_slipSelect<ExtArgs> | null
/**
* Omit specific fields from the deposit_slip
*/
omit?: Prisma.deposit_slipOmit<ExtArgs> | null
/**
* The data needed to update a deposit_slip.
*/
data: Prisma.XOR<Prisma.deposit_slipUpdateInput, Prisma.deposit_slipUncheckedUpdateInput>
/**
* Choose, which deposit_slip to update.
*/
where: Prisma.deposit_slipWhereUniqueInput
}
/**
* deposit_slip updateMany
*/
export type deposit_slipUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update deposit_slips.
*/
data: Prisma.XOR<Prisma.deposit_slipUpdateManyMutationInput, Prisma.deposit_slipUncheckedUpdateManyInput>
/**
* Filter which deposit_slips to update
*/
where?: Prisma.deposit_slipWhereInput
/**
* Limit how many deposit_slips to update.
*/
limit?: number
}
/**
* deposit_slip upsert
*/
export type deposit_slipUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the deposit_slip
*/
select?: Prisma.deposit_slipSelect<ExtArgs> | null
/**
* Omit specific fields from the deposit_slip
*/
omit?: Prisma.deposit_slipOmit<ExtArgs> | null
/**
* The filter to search for the deposit_slip to update in case it exists.
*/
where: Prisma.deposit_slipWhereUniqueInput
/**
* In case the deposit_slip found by the `where` argument doesn't exist, create a new deposit_slip with this data.
*/
create: Prisma.XOR<Prisma.deposit_slipCreateInput, Prisma.deposit_slipUncheckedCreateInput>
/**
* In case the deposit_slip was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.deposit_slipUpdateInput, Prisma.deposit_slipUncheckedUpdateInput>
}
/**
* deposit_slip delete
*/
export type deposit_slipDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the deposit_slip
*/
select?: Prisma.deposit_slipSelect<ExtArgs> | null
/**
* Omit specific fields from the deposit_slip
*/
omit?: Prisma.deposit_slipOmit<ExtArgs> | null
/**
* Filter which deposit_slip to delete.
*/
where: Prisma.deposit_slipWhereUniqueInput
}
/**
* deposit_slip deleteMany
*/
export type deposit_slipDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which deposit_slips to delete
*/
where?: Prisma.deposit_slipWhereInput
/**
* Limit how many deposit_slips to delete.
*/
limit?: number
}
/**
* deposit_slip without action
*/
export type deposit_slipDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the deposit_slip
*/
select?: Prisma.deposit_slipSelect<ExtArgs> | null
/**
* Omit specific fields from the deposit_slip
*/
omit?: Prisma.deposit_slipOmit<ExtArgs> | null
}