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

1159 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 `statement` 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 statement
*
*/
export type statementModel = runtime.Types.Result.DefaultSelection<Prisma.$statementPayload>
export type AggregateStatement = {
_count: StatementCountAggregateOutputType | null
_avg: StatementAvgAggregateOutputType | null
_sum: StatementSumAggregateOutputType | null
_min: StatementMinAggregateOutputType | null
_max: StatementMaxAggregateOutputType | null
}
export type StatementAvgAggregateOutputType = {
id: number | null
date: number | null
number: number | null
amt: number | null
paid_amt: number | null
}
export type StatementSumAggregateOutputType = {
id: bigint | null
date: bigint | null
number: bigint | null
amt: number | null
paid_amt: number | null
}
export type StatementMinAggregateOutputType = {
id: bigint | null
date: bigint | null
type: string | null
number: bigint | null
reference: string | null
amt: number | null
paid_amt: number | null
}
export type StatementMaxAggregateOutputType = {
id: bigint | null
date: bigint | null
type: string | null
number: bigint | null
reference: string | null
amt: number | null
paid_amt: number | null
}
export type StatementCountAggregateOutputType = {
id: number
date: number
type: number
number: number
reference: number
amt: number
paid_amt: number
_all: number
}
export type StatementAvgAggregateInputType = {
id?: true
date?: true
number?: true
amt?: true
paid_amt?: true
}
export type StatementSumAggregateInputType = {
id?: true
date?: true
number?: true
amt?: true
paid_amt?: true
}
export type StatementMinAggregateInputType = {
id?: true
date?: true
type?: true
number?: true
reference?: true
amt?: true
paid_amt?: true
}
export type StatementMaxAggregateInputType = {
id?: true
date?: true
type?: true
number?: true
reference?: true
amt?: true
paid_amt?: true
}
export type StatementCountAggregateInputType = {
id?: true
date?: true
type?: true
number?: true
reference?: true
amt?: true
paid_amt?: true
_all?: true
}
export type StatementAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which statement to aggregate.
*/
where?: Prisma.statementWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of statements to fetch.
*/
orderBy?: Prisma.statementOrderByWithRelationInput | Prisma.statementOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.statementWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` statements 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` statements.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned statements
**/
_count?: true | StatementCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: StatementAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: StatementSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: StatementMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: StatementMaxAggregateInputType
}
export type GetStatementAggregateType<T extends StatementAggregateArgs> = {
[P in keyof T & keyof AggregateStatement]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateStatement[P]>
: Prisma.GetScalarType<T[P], AggregateStatement[P]>
}
export type statementGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.statementWhereInput
orderBy?: Prisma.statementOrderByWithAggregationInput | Prisma.statementOrderByWithAggregationInput[]
by: Prisma.StatementScalarFieldEnum[] | Prisma.StatementScalarFieldEnum
having?: Prisma.statementScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: StatementCountAggregateInputType | true
_avg?: StatementAvgAggregateInputType
_sum?: StatementSumAggregateInputType
_min?: StatementMinAggregateInputType
_max?: StatementMaxAggregateInputType
}
export type StatementGroupByOutputType = {
id: bigint
date: bigint | null
type: string | null
number: bigint | null
reference: string | null
amt: number | null
paid_amt: number | null
_count: StatementCountAggregateOutputType | null
_avg: StatementAvgAggregateOutputType | null
_sum: StatementSumAggregateOutputType | null
_min: StatementMinAggregateOutputType | null
_max: StatementMaxAggregateOutputType | null
}
type GetStatementGroupByPayload<T extends statementGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<StatementGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof StatementGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], StatementGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], StatementGroupByOutputType[P]>
}
>
>
export type statementWhereInput = {
AND?: Prisma.statementWhereInput | Prisma.statementWhereInput[]
OR?: Prisma.statementWhereInput[]
NOT?: Prisma.statementWhereInput | Prisma.statementWhereInput[]
id?: Prisma.BigIntFilter<"statement"> | bigint | number
date?: Prisma.BigIntNullableFilter<"statement"> | bigint | number | null
type?: Prisma.StringNullableFilter<"statement"> | string | null
number?: Prisma.BigIntNullableFilter<"statement"> | bigint | number | null
reference?: Prisma.StringNullableFilter<"statement"> | string | null
amt?: Prisma.FloatNullableFilter<"statement"> | number | null
paid_amt?: Prisma.FloatNullableFilter<"statement"> | number | null
}
export type statementOrderByWithRelationInput = {
id?: Prisma.SortOrder
date?: Prisma.SortOrderInput | Prisma.SortOrder
type?: Prisma.SortOrderInput | Prisma.SortOrder
number?: Prisma.SortOrderInput | Prisma.SortOrder
reference?: Prisma.SortOrderInput | Prisma.SortOrder
amt?: Prisma.SortOrderInput | Prisma.SortOrder
paid_amt?: Prisma.SortOrderInput | Prisma.SortOrder
_relevance?: Prisma.statementOrderByRelevanceInput
}
export type statementWhereUniqueInput = Prisma.AtLeast<{
id?: bigint | number
AND?: Prisma.statementWhereInput | Prisma.statementWhereInput[]
OR?: Prisma.statementWhereInput[]
NOT?: Prisma.statementWhereInput | Prisma.statementWhereInput[]
date?: Prisma.BigIntNullableFilter<"statement"> | bigint | number | null
type?: Prisma.StringNullableFilter<"statement"> | string | null
number?: Prisma.BigIntNullableFilter<"statement"> | bigint | number | null
reference?: Prisma.StringNullableFilter<"statement"> | string | null
amt?: Prisma.FloatNullableFilter<"statement"> | number | null
paid_amt?: Prisma.FloatNullableFilter<"statement"> | number | null
}, "id">
export type statementOrderByWithAggregationInput = {
id?: Prisma.SortOrder
date?: Prisma.SortOrderInput | Prisma.SortOrder
type?: Prisma.SortOrderInput | Prisma.SortOrder
number?: Prisma.SortOrderInput | Prisma.SortOrder
reference?: Prisma.SortOrderInput | Prisma.SortOrder
amt?: Prisma.SortOrderInput | Prisma.SortOrder
paid_amt?: Prisma.SortOrderInput | Prisma.SortOrder
_count?: Prisma.statementCountOrderByAggregateInput
_avg?: Prisma.statementAvgOrderByAggregateInput
_max?: Prisma.statementMaxOrderByAggregateInput
_min?: Prisma.statementMinOrderByAggregateInput
_sum?: Prisma.statementSumOrderByAggregateInput
}
export type statementScalarWhereWithAggregatesInput = {
AND?: Prisma.statementScalarWhereWithAggregatesInput | Prisma.statementScalarWhereWithAggregatesInput[]
OR?: Prisma.statementScalarWhereWithAggregatesInput[]
NOT?: Prisma.statementScalarWhereWithAggregatesInput | Prisma.statementScalarWhereWithAggregatesInput[]
id?: Prisma.BigIntWithAggregatesFilter<"statement"> | bigint | number
date?: Prisma.BigIntNullableWithAggregatesFilter<"statement"> | bigint | number | null
type?: Prisma.StringNullableWithAggregatesFilter<"statement"> | string | null
number?: Prisma.BigIntNullableWithAggregatesFilter<"statement"> | bigint | number | null
reference?: Prisma.StringNullableWithAggregatesFilter<"statement"> | string | null
amt?: Prisma.FloatNullableWithAggregatesFilter<"statement"> | number | null
paid_amt?: Prisma.FloatNullableWithAggregatesFilter<"statement"> | number | null
}
export type statementCreateInput = {
id?: bigint | number
date?: bigint | number | null
type?: string | null
number?: bigint | number | null
reference?: string | null
amt?: number | null
paid_amt?: number | null
}
export type statementUncheckedCreateInput = {
id?: bigint | number
date?: bigint | number | null
type?: string | null
number?: bigint | number | null
reference?: string | null
amt?: number | null
paid_amt?: number | null
}
export type statementUpdateInput = {
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
date?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
number?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
reference?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
amt?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
paid_amt?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
}
export type statementUncheckedUpdateInput = {
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
date?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
number?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
reference?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
amt?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
paid_amt?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
}
export type statementCreateManyInput = {
id?: bigint | number
date?: bigint | number | null
type?: string | null
number?: bigint | number | null
reference?: string | null
amt?: number | null
paid_amt?: number | null
}
export type statementUpdateManyMutationInput = {
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
date?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
number?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
reference?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
amt?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
paid_amt?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
}
export type statementUncheckedUpdateManyInput = {
id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
date?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
number?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
reference?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
amt?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
paid_amt?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
}
export type statementOrderByRelevanceInput = {
fields: Prisma.statementOrderByRelevanceFieldEnum | Prisma.statementOrderByRelevanceFieldEnum[]
sort: Prisma.SortOrder
search: string
}
export type statementCountOrderByAggregateInput = {
id?: Prisma.SortOrder
date?: Prisma.SortOrder
type?: Prisma.SortOrder
number?: Prisma.SortOrder
reference?: Prisma.SortOrder
amt?: Prisma.SortOrder
paid_amt?: Prisma.SortOrder
}
export type statementAvgOrderByAggregateInput = {
id?: Prisma.SortOrder
date?: Prisma.SortOrder
number?: Prisma.SortOrder
amt?: Prisma.SortOrder
paid_amt?: Prisma.SortOrder
}
export type statementMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
date?: Prisma.SortOrder
type?: Prisma.SortOrder
number?: Prisma.SortOrder
reference?: Prisma.SortOrder
amt?: Prisma.SortOrder
paid_amt?: Prisma.SortOrder
}
export type statementMinOrderByAggregateInput = {
id?: Prisma.SortOrder
date?: Prisma.SortOrder
type?: Prisma.SortOrder
number?: Prisma.SortOrder
reference?: Prisma.SortOrder
amt?: Prisma.SortOrder
paid_amt?: Prisma.SortOrder
}
export type statementSumOrderByAggregateInput = {
id?: Prisma.SortOrder
date?: Prisma.SortOrder
number?: Prisma.SortOrder
amt?: Prisma.SortOrder
paid_amt?: Prisma.SortOrder
}
export type statementSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
date?: boolean
type?: boolean
number?: boolean
reference?: boolean
amt?: boolean
paid_amt?: boolean
}, ExtArgs["result"]["statement"]>
export type statementSelectScalar = {
id?: boolean
date?: boolean
type?: boolean
number?: boolean
reference?: boolean
amt?: boolean
paid_amt?: boolean
}
export type statementOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "date" | "type" | "number" | "reference" | "amt" | "paid_amt", ExtArgs["result"]["statement"]>
export type $statementPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "statement"
objects: {}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: bigint
date: bigint | null
type: string | null
number: bigint | null
reference: string | null
amt: number | null
paid_amt: number | null
}, ExtArgs["result"]["statement"]>
composites: {}
}
export type statementGetPayload<S extends boolean | null | undefined | statementDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$statementPayload, S>
export type statementCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<statementFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: StatementCountAggregateInputType | true
}
export interface statementDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['statement'], meta: { name: 'statement' } }
/**
* Find zero or one Statement that matches the filter.
* @param {statementFindUniqueArgs} args - Arguments to find a Statement
* @example
* // Get one Statement
* const statement = await prisma.statement.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends statementFindUniqueArgs>(args: Prisma.SelectSubset<T, statementFindUniqueArgs<ExtArgs>>): Prisma.Prisma__statementClient<runtime.Types.Result.GetResult<Prisma.$statementPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one Statement that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {statementFindUniqueOrThrowArgs} args - Arguments to find a Statement
* @example
* // Get one Statement
* const statement = await prisma.statement.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends statementFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, statementFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__statementClient<runtime.Types.Result.GetResult<Prisma.$statementPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first Statement 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 {statementFindFirstArgs} args - Arguments to find a Statement
* @example
* // Get one Statement
* const statement = await prisma.statement.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends statementFindFirstArgs>(args?: Prisma.SelectSubset<T, statementFindFirstArgs<ExtArgs>>): Prisma.Prisma__statementClient<runtime.Types.Result.GetResult<Prisma.$statementPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first Statement 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 {statementFindFirstOrThrowArgs} args - Arguments to find a Statement
* @example
* // Get one Statement
* const statement = await prisma.statement.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends statementFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, statementFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__statementClient<runtime.Types.Result.GetResult<Prisma.$statementPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more Statements 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 {statementFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Statements
* const statements = await prisma.statement.findMany()
*
* // Get first 10 Statements
* const statements = await prisma.statement.findMany({ take: 10 })
*
* // Only select the `id`
* const statementWithIdOnly = await prisma.statement.findMany({ select: { id: true } })
*
*/
findMany<T extends statementFindManyArgs>(args?: Prisma.SelectSubset<T, statementFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$statementPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a Statement.
* @param {statementCreateArgs} args - Arguments to create a Statement.
* @example
* // Create one Statement
* const Statement = await prisma.statement.create({
* data: {
* // ... data to create a Statement
* }
* })
*
*/
create<T extends statementCreateArgs>(args: Prisma.SelectSubset<T, statementCreateArgs<ExtArgs>>): Prisma.Prisma__statementClient<runtime.Types.Result.GetResult<Prisma.$statementPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many Statements.
* @param {statementCreateManyArgs} args - Arguments to create many Statements.
* @example
* // Create many Statements
* const statement = await prisma.statement.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends statementCreateManyArgs>(args?: Prisma.SelectSubset<T, statementCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Delete a Statement.
* @param {statementDeleteArgs} args - Arguments to delete one Statement.
* @example
* // Delete one Statement
* const Statement = await prisma.statement.delete({
* where: {
* // ... filter to delete one Statement
* }
* })
*
*/
delete<T extends statementDeleteArgs>(args: Prisma.SelectSubset<T, statementDeleteArgs<ExtArgs>>): Prisma.Prisma__statementClient<runtime.Types.Result.GetResult<Prisma.$statementPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one Statement.
* @param {statementUpdateArgs} args - Arguments to update one Statement.
* @example
* // Update one Statement
* const statement = await prisma.statement.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends statementUpdateArgs>(args: Prisma.SelectSubset<T, statementUpdateArgs<ExtArgs>>): Prisma.Prisma__statementClient<runtime.Types.Result.GetResult<Prisma.$statementPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more Statements.
* @param {statementDeleteManyArgs} args - Arguments to filter Statements to delete.
* @example
* // Delete a few Statements
* const { count } = await prisma.statement.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends statementDeleteManyArgs>(args?: Prisma.SelectSubset<T, statementDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more Statements.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {statementUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Statements
* const statement = await prisma.statement.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends statementUpdateManyArgs>(args: Prisma.SelectSubset<T, statementUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create or update one Statement.
* @param {statementUpsertArgs} args - Arguments to update or create a Statement.
* @example
* // Update or create a Statement
* const statement = await prisma.statement.upsert({
* create: {
* // ... data to create a Statement
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the Statement we want to update
* }
* })
*/
upsert<T extends statementUpsertArgs>(args: Prisma.SelectSubset<T, statementUpsertArgs<ExtArgs>>): Prisma.Prisma__statementClient<runtime.Types.Result.GetResult<Prisma.$statementPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of Statements.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {statementCountArgs} args - Arguments to filter Statements to count.
* @example
* // Count the number of Statements
* const count = await prisma.statement.count({
* where: {
* // ... the filter for the Statements we want to count
* }
* })
**/
count<T extends statementCountArgs>(
args?: Prisma.Subset<T, statementCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], StatementCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a Statement.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {StatementAggregateArgs} 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 StatementAggregateArgs>(args: Prisma.Subset<T, StatementAggregateArgs>): Prisma.PrismaPromise<GetStatementAggregateType<T>>
/**
* Group by Statement.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {statementGroupByArgs} 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 statementGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: statementGroupByArgs['orderBy'] }
: { orderBy?: statementGroupByArgs['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, statementGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetStatementGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the statement model
*/
readonly fields: statementFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for statement.
* 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__statementClient<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 statement model
*/
export interface statementFieldRefs {
readonly id: Prisma.FieldRef<"statement", 'BigInt'>
readonly date: Prisma.FieldRef<"statement", 'BigInt'>
readonly type: Prisma.FieldRef<"statement", 'String'>
readonly number: Prisma.FieldRef<"statement", 'BigInt'>
readonly reference: Prisma.FieldRef<"statement", 'String'>
readonly amt: Prisma.FieldRef<"statement", 'Float'>
readonly paid_amt: Prisma.FieldRef<"statement", 'Float'>
}
// Custom InputTypes
/**
* statement findUnique
*/
export type statementFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the statement
*/
select?: Prisma.statementSelect<ExtArgs> | null
/**
* Omit specific fields from the statement
*/
omit?: Prisma.statementOmit<ExtArgs> | null
/**
* Filter, which statement to fetch.
*/
where: Prisma.statementWhereUniqueInput
}
/**
* statement findUniqueOrThrow
*/
export type statementFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the statement
*/
select?: Prisma.statementSelect<ExtArgs> | null
/**
* Omit specific fields from the statement
*/
omit?: Prisma.statementOmit<ExtArgs> | null
/**
* Filter, which statement to fetch.
*/
where: Prisma.statementWhereUniqueInput
}
/**
* statement findFirst
*/
export type statementFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the statement
*/
select?: Prisma.statementSelect<ExtArgs> | null
/**
* Omit specific fields from the statement
*/
omit?: Prisma.statementOmit<ExtArgs> | null
/**
* Filter, which statement to fetch.
*/
where?: Prisma.statementWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of statements to fetch.
*/
orderBy?: Prisma.statementOrderByWithRelationInput | Prisma.statementOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for statements.
*/
cursor?: Prisma.statementWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` statements 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` statements.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of statements.
*/
distinct?: Prisma.StatementScalarFieldEnum | Prisma.StatementScalarFieldEnum[]
}
/**
* statement findFirstOrThrow
*/
export type statementFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the statement
*/
select?: Prisma.statementSelect<ExtArgs> | null
/**
* Omit specific fields from the statement
*/
omit?: Prisma.statementOmit<ExtArgs> | null
/**
* Filter, which statement to fetch.
*/
where?: Prisma.statementWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of statements to fetch.
*/
orderBy?: Prisma.statementOrderByWithRelationInput | Prisma.statementOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for statements.
*/
cursor?: Prisma.statementWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` statements 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` statements.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of statements.
*/
distinct?: Prisma.StatementScalarFieldEnum | Prisma.StatementScalarFieldEnum[]
}
/**
* statement findMany
*/
export type statementFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the statement
*/
select?: Prisma.statementSelect<ExtArgs> | null
/**
* Omit specific fields from the statement
*/
omit?: Prisma.statementOmit<ExtArgs> | null
/**
* Filter, which statements to fetch.
*/
where?: Prisma.statementWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of statements to fetch.
*/
orderBy?: Prisma.statementOrderByWithRelationInput | Prisma.statementOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing statements.
*/
cursor?: Prisma.statementWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` statements 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` statements.
*/
skip?: number
distinct?: Prisma.StatementScalarFieldEnum | Prisma.StatementScalarFieldEnum[]
}
/**
* statement create
*/
export type statementCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the statement
*/
select?: Prisma.statementSelect<ExtArgs> | null
/**
* Omit specific fields from the statement
*/
omit?: Prisma.statementOmit<ExtArgs> | null
/**
* The data needed to create a statement.
*/
data?: Prisma.XOR<Prisma.statementCreateInput, Prisma.statementUncheckedCreateInput>
}
/**
* statement createMany
*/
export type statementCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many statements.
*/
data: Prisma.statementCreateManyInput | Prisma.statementCreateManyInput[]
skipDuplicates?: boolean
}
/**
* statement update
*/
export type statementUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the statement
*/
select?: Prisma.statementSelect<ExtArgs> | null
/**
* Omit specific fields from the statement
*/
omit?: Prisma.statementOmit<ExtArgs> | null
/**
* The data needed to update a statement.
*/
data: Prisma.XOR<Prisma.statementUpdateInput, Prisma.statementUncheckedUpdateInput>
/**
* Choose, which statement to update.
*/
where: Prisma.statementWhereUniqueInput
}
/**
* statement updateMany
*/
export type statementUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update statements.
*/
data: Prisma.XOR<Prisma.statementUpdateManyMutationInput, Prisma.statementUncheckedUpdateManyInput>
/**
* Filter which statements to update
*/
where?: Prisma.statementWhereInput
/**
* Limit how many statements to update.
*/
limit?: number
}
/**
* statement upsert
*/
export type statementUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the statement
*/
select?: Prisma.statementSelect<ExtArgs> | null
/**
* Omit specific fields from the statement
*/
omit?: Prisma.statementOmit<ExtArgs> | null
/**
* The filter to search for the statement to update in case it exists.
*/
where: Prisma.statementWhereUniqueInput
/**
* In case the statement found by the `where` argument doesn't exist, create a new statement with this data.
*/
create: Prisma.XOR<Prisma.statementCreateInput, Prisma.statementUncheckedCreateInput>
/**
* In case the statement was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.statementUpdateInput, Prisma.statementUncheckedUpdateInput>
}
/**
* statement delete
*/
export type statementDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the statement
*/
select?: Prisma.statementSelect<ExtArgs> | null
/**
* Omit specific fields from the statement
*/
omit?: Prisma.statementOmit<ExtArgs> | null
/**
* Filter which statement to delete.
*/
where: Prisma.statementWhereUniqueInput
}
/**
* statement deleteMany
*/
export type statementDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which statements to delete
*/
where?: Prisma.statementWhereInput
/**
* Limit how many statements to delete.
*/
limit?: number
}
/**
* statement without action
*/
export type statementDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the statement
*/
select?: Prisma.statementSelect<ExtArgs> | null
/**
* Omit specific fields from the statement
*/
omit?: Prisma.statementOmit<ExtArgs> | null
}