1034 lines
37 KiB
TypeScript
1034 lines
37 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 `account_group` 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 account_group
|
|
*
|
|
*/
|
|
export type account_groupModel = runtime.Types.Result.DefaultSelection<Prisma.$account_groupPayload>
|
|
|
|
export type AggregateAccount_group = {
|
|
_count: Account_groupCountAggregateOutputType | null
|
|
_avg: Account_groupAvgAggregateOutputType | null
|
|
_sum: Account_groupSumAggregateOutputType | null
|
|
_min: Account_groupMinAggregateOutputType | null
|
|
_max: Account_groupMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type Account_groupAvgAggregateOutputType = {
|
|
id: number | null
|
|
date_orig: number | null
|
|
}
|
|
|
|
export type Account_groupSumAggregateOutputType = {
|
|
id: number | null
|
|
date_orig: bigint | null
|
|
}
|
|
|
|
export type Account_groupMinAggregateOutputType = {
|
|
id: number | null
|
|
date_orig: bigint | null
|
|
group_name: string | null
|
|
}
|
|
|
|
export type Account_groupMaxAggregateOutputType = {
|
|
id: number | null
|
|
date_orig: bigint | null
|
|
group_name: string | null
|
|
}
|
|
|
|
export type Account_groupCountAggregateOutputType = {
|
|
id: number
|
|
date_orig: number
|
|
group_name: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type Account_groupAvgAggregateInputType = {
|
|
id?: true
|
|
date_orig?: true
|
|
}
|
|
|
|
export type Account_groupSumAggregateInputType = {
|
|
id?: true
|
|
date_orig?: true
|
|
}
|
|
|
|
export type Account_groupMinAggregateInputType = {
|
|
id?: true
|
|
date_orig?: true
|
|
group_name?: true
|
|
}
|
|
|
|
export type Account_groupMaxAggregateInputType = {
|
|
id?: true
|
|
date_orig?: true
|
|
group_name?: true
|
|
}
|
|
|
|
export type Account_groupCountAggregateInputType = {
|
|
id?: true
|
|
date_orig?: true
|
|
group_name?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type Account_groupAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which account_group to aggregate.
|
|
*/
|
|
where?: Prisma.account_groupWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of account_groups to fetch.
|
|
*/
|
|
orderBy?: Prisma.account_groupOrderByWithRelationInput | Prisma.account_groupOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.account_groupWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` account_groups 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` account_groups.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned account_groups
|
|
**/
|
|
_count?: true | Account_groupCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: Account_groupAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: Account_groupSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: Account_groupMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: Account_groupMaxAggregateInputType
|
|
}
|
|
|
|
export type GetAccount_groupAggregateType<T extends Account_groupAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateAccount_group]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateAccount_group[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateAccount_group[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type account_groupGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.account_groupWhereInput
|
|
orderBy?: Prisma.account_groupOrderByWithAggregationInput | Prisma.account_groupOrderByWithAggregationInput[]
|
|
by: Prisma.Account_groupScalarFieldEnum[] | Prisma.Account_groupScalarFieldEnum
|
|
having?: Prisma.account_groupScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: Account_groupCountAggregateInputType | true
|
|
_avg?: Account_groupAvgAggregateInputType
|
|
_sum?: Account_groupSumAggregateInputType
|
|
_min?: Account_groupMinAggregateInputType
|
|
_max?: Account_groupMaxAggregateInputType
|
|
}
|
|
|
|
export type Account_groupGroupByOutputType = {
|
|
id: number
|
|
date_orig: bigint | null
|
|
group_name: string | null
|
|
_count: Account_groupCountAggregateOutputType | null
|
|
_avg: Account_groupAvgAggregateOutputType | null
|
|
_sum: Account_groupSumAggregateOutputType | null
|
|
_min: Account_groupMinAggregateOutputType | null
|
|
_max: Account_groupMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetAccount_groupGroupByPayload<T extends account_groupGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<Account_groupGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof Account_groupGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], Account_groupGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], Account_groupGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type account_groupWhereInput = {
|
|
AND?: Prisma.account_groupWhereInput | Prisma.account_groupWhereInput[]
|
|
OR?: Prisma.account_groupWhereInput[]
|
|
NOT?: Prisma.account_groupWhereInput | Prisma.account_groupWhereInput[]
|
|
id?: Prisma.IntFilter<"account_group"> | number
|
|
date_orig?: Prisma.BigIntNullableFilter<"account_group"> | bigint | number | null
|
|
group_name?: Prisma.StringNullableFilter<"account_group"> | string | null
|
|
}
|
|
|
|
export type account_groupOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
date_orig?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
group_name?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
_relevance?: Prisma.account_groupOrderByRelevanceInput
|
|
}
|
|
|
|
export type account_groupWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: number
|
|
AND?: Prisma.account_groupWhereInput | Prisma.account_groupWhereInput[]
|
|
OR?: Prisma.account_groupWhereInput[]
|
|
NOT?: Prisma.account_groupWhereInput | Prisma.account_groupWhereInput[]
|
|
date_orig?: Prisma.BigIntNullableFilter<"account_group"> | bigint | number | null
|
|
group_name?: Prisma.StringNullableFilter<"account_group"> | string | null
|
|
}, "id">
|
|
|
|
export type account_groupOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
date_orig?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
group_name?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
_count?: Prisma.account_groupCountOrderByAggregateInput
|
|
_avg?: Prisma.account_groupAvgOrderByAggregateInput
|
|
_max?: Prisma.account_groupMaxOrderByAggregateInput
|
|
_min?: Prisma.account_groupMinOrderByAggregateInput
|
|
_sum?: Prisma.account_groupSumOrderByAggregateInput
|
|
}
|
|
|
|
export type account_groupScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.account_groupScalarWhereWithAggregatesInput | Prisma.account_groupScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.account_groupScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.account_groupScalarWhereWithAggregatesInput | Prisma.account_groupScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.IntWithAggregatesFilter<"account_group"> | number
|
|
date_orig?: Prisma.BigIntNullableWithAggregatesFilter<"account_group"> | bigint | number | null
|
|
group_name?: Prisma.StringNullableWithAggregatesFilter<"account_group"> | string | null
|
|
}
|
|
|
|
export type account_groupCreateInput = {
|
|
date_orig?: bigint | number | null
|
|
group_name?: string | null
|
|
}
|
|
|
|
export type account_groupUncheckedCreateInput = {
|
|
id?: number
|
|
date_orig?: bigint | number | null
|
|
group_name?: string | null
|
|
}
|
|
|
|
export type account_groupUpdateInput = {
|
|
date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
|
group_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type account_groupUncheckedUpdateInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
|
group_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type account_groupCreateManyInput = {
|
|
id?: number
|
|
date_orig?: bigint | number | null
|
|
group_name?: string | null
|
|
}
|
|
|
|
export type account_groupUpdateManyMutationInput = {
|
|
date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
|
group_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type account_groupUncheckedUpdateManyInput = {
|
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
|
|
group_name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
}
|
|
|
|
export type account_groupOrderByRelevanceInput = {
|
|
fields: Prisma.account_groupOrderByRelevanceFieldEnum | Prisma.account_groupOrderByRelevanceFieldEnum[]
|
|
sort: Prisma.SortOrder
|
|
search: string
|
|
}
|
|
|
|
export type account_groupCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
date_orig?: Prisma.SortOrder
|
|
group_name?: Prisma.SortOrder
|
|
}
|
|
|
|
export type account_groupAvgOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
date_orig?: Prisma.SortOrder
|
|
}
|
|
|
|
export type account_groupMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
date_orig?: Prisma.SortOrder
|
|
group_name?: Prisma.SortOrder
|
|
}
|
|
|
|
export type account_groupMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
date_orig?: Prisma.SortOrder
|
|
group_name?: Prisma.SortOrder
|
|
}
|
|
|
|
export type account_groupSumOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
date_orig?: Prisma.SortOrder
|
|
}
|
|
|
|
|
|
|
|
export type account_groupSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
date_orig?: boolean
|
|
group_name?: boolean
|
|
}, ExtArgs["result"]["account_group"]>
|
|
|
|
|
|
|
|
export type account_groupSelectScalar = {
|
|
id?: boolean
|
|
date_orig?: boolean
|
|
group_name?: boolean
|
|
}
|
|
|
|
export type account_groupOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "date_orig" | "group_name", ExtArgs["result"]["account_group"]>
|
|
|
|
export type $account_groupPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "account_group"
|
|
objects: {}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: number
|
|
date_orig: bigint | null
|
|
group_name: string | null
|
|
}, ExtArgs["result"]["account_group"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type account_groupGetPayload<S extends boolean | null | undefined | account_groupDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$account_groupPayload, S>
|
|
|
|
export type account_groupCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<account_groupFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: Account_groupCountAggregateInputType | true
|
|
}
|
|
|
|
export interface account_groupDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['account_group'], meta: { name: 'account_group' } }
|
|
/**
|
|
* Find zero or one Account_group that matches the filter.
|
|
* @param {account_groupFindUniqueArgs} args - Arguments to find a Account_group
|
|
* @example
|
|
* // Get one Account_group
|
|
* const account_group = await prisma.account_group.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends account_groupFindUniqueArgs>(args: Prisma.SelectSubset<T, account_groupFindUniqueArgs<ExtArgs>>): Prisma.Prisma__account_groupClient<runtime.Types.Result.GetResult<Prisma.$account_groupPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one Account_group that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {account_groupFindUniqueOrThrowArgs} args - Arguments to find a Account_group
|
|
* @example
|
|
* // Get one Account_group
|
|
* const account_group = await prisma.account_group.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends account_groupFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, account_groupFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__account_groupClient<runtime.Types.Result.GetResult<Prisma.$account_groupPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Account_group 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 {account_groupFindFirstArgs} args - Arguments to find a Account_group
|
|
* @example
|
|
* // Get one Account_group
|
|
* const account_group = await prisma.account_group.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends account_groupFindFirstArgs>(args?: Prisma.SelectSubset<T, account_groupFindFirstArgs<ExtArgs>>): Prisma.Prisma__account_groupClient<runtime.Types.Result.GetResult<Prisma.$account_groupPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Account_group 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 {account_groupFindFirstOrThrowArgs} args - Arguments to find a Account_group
|
|
* @example
|
|
* // Get one Account_group
|
|
* const account_group = await prisma.account_group.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends account_groupFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, account_groupFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__account_groupClient<runtime.Types.Result.GetResult<Prisma.$account_groupPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more Account_groups 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 {account_groupFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all Account_groups
|
|
* const account_groups = await prisma.account_group.findMany()
|
|
*
|
|
* // Get first 10 Account_groups
|
|
* const account_groups = await prisma.account_group.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const account_groupWithIdOnly = await prisma.account_group.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends account_groupFindManyArgs>(args?: Prisma.SelectSubset<T, account_groupFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$account_groupPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a Account_group.
|
|
* @param {account_groupCreateArgs} args - Arguments to create a Account_group.
|
|
* @example
|
|
* // Create one Account_group
|
|
* const Account_group = await prisma.account_group.create({
|
|
* data: {
|
|
* // ... data to create a Account_group
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends account_groupCreateArgs>(args: Prisma.SelectSubset<T, account_groupCreateArgs<ExtArgs>>): Prisma.Prisma__account_groupClient<runtime.Types.Result.GetResult<Prisma.$account_groupPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many Account_groups.
|
|
* @param {account_groupCreateManyArgs} args - Arguments to create many Account_groups.
|
|
* @example
|
|
* // Create many Account_groups
|
|
* const account_group = await prisma.account_group.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends account_groupCreateManyArgs>(args?: Prisma.SelectSubset<T, account_groupCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Delete a Account_group.
|
|
* @param {account_groupDeleteArgs} args - Arguments to delete one Account_group.
|
|
* @example
|
|
* // Delete one Account_group
|
|
* const Account_group = await prisma.account_group.delete({
|
|
* where: {
|
|
* // ... filter to delete one Account_group
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends account_groupDeleteArgs>(args: Prisma.SelectSubset<T, account_groupDeleteArgs<ExtArgs>>): Prisma.Prisma__account_groupClient<runtime.Types.Result.GetResult<Prisma.$account_groupPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one Account_group.
|
|
* @param {account_groupUpdateArgs} args - Arguments to update one Account_group.
|
|
* @example
|
|
* // Update one Account_group
|
|
* const account_group = await prisma.account_group.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends account_groupUpdateArgs>(args: Prisma.SelectSubset<T, account_groupUpdateArgs<ExtArgs>>): Prisma.Prisma__account_groupClient<runtime.Types.Result.GetResult<Prisma.$account_groupPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more Account_groups.
|
|
* @param {account_groupDeleteManyArgs} args - Arguments to filter Account_groups to delete.
|
|
* @example
|
|
* // Delete a few Account_groups
|
|
* const { count } = await prisma.account_group.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends account_groupDeleteManyArgs>(args?: Prisma.SelectSubset<T, account_groupDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Account_groups.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {account_groupUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many Account_groups
|
|
* const account_group = await prisma.account_group.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends account_groupUpdateManyArgs>(args: Prisma.SelectSubset<T, account_groupUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create or update one Account_group.
|
|
* @param {account_groupUpsertArgs} args - Arguments to update or create a Account_group.
|
|
* @example
|
|
* // Update or create a Account_group
|
|
* const account_group = await prisma.account_group.upsert({
|
|
* create: {
|
|
* // ... data to create a Account_group
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the Account_group we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends account_groupUpsertArgs>(args: Prisma.SelectSubset<T, account_groupUpsertArgs<ExtArgs>>): Prisma.Prisma__account_groupClient<runtime.Types.Result.GetResult<Prisma.$account_groupPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of Account_groups.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {account_groupCountArgs} args - Arguments to filter Account_groups to count.
|
|
* @example
|
|
* // Count the number of Account_groups
|
|
* const count = await prisma.account_group.count({
|
|
* where: {
|
|
* // ... the filter for the Account_groups we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends account_groupCountArgs>(
|
|
args?: Prisma.Subset<T, account_groupCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], Account_groupCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a Account_group.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {Account_groupAggregateArgs} 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 Account_groupAggregateArgs>(args: Prisma.Subset<T, Account_groupAggregateArgs>): Prisma.PrismaPromise<GetAccount_groupAggregateType<T>>
|
|
|
|
/**
|
|
* Group by Account_group.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {account_groupGroupByArgs} 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 account_groupGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: account_groupGroupByArgs['orderBy'] }
|
|
: { orderBy?: account_groupGroupByArgs['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, account_groupGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAccount_groupGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the account_group model
|
|
*/
|
|
readonly fields: account_groupFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for account_group.
|
|
* 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__account_groupClient<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 account_group model
|
|
*/
|
|
export interface account_groupFieldRefs {
|
|
readonly id: Prisma.FieldRef<"account_group", 'Int'>
|
|
readonly date_orig: Prisma.FieldRef<"account_group", 'BigInt'>
|
|
readonly group_name: Prisma.FieldRef<"account_group", 'String'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* account_group findUnique
|
|
*/
|
|
export type account_groupFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the account_group
|
|
*/
|
|
select?: Prisma.account_groupSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the account_group
|
|
*/
|
|
omit?: Prisma.account_groupOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which account_group to fetch.
|
|
*/
|
|
where: Prisma.account_groupWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* account_group findUniqueOrThrow
|
|
*/
|
|
export type account_groupFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the account_group
|
|
*/
|
|
select?: Prisma.account_groupSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the account_group
|
|
*/
|
|
omit?: Prisma.account_groupOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which account_group to fetch.
|
|
*/
|
|
where: Prisma.account_groupWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* account_group findFirst
|
|
*/
|
|
export type account_groupFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the account_group
|
|
*/
|
|
select?: Prisma.account_groupSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the account_group
|
|
*/
|
|
omit?: Prisma.account_groupOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which account_group to fetch.
|
|
*/
|
|
where?: Prisma.account_groupWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of account_groups to fetch.
|
|
*/
|
|
orderBy?: Prisma.account_groupOrderByWithRelationInput | Prisma.account_groupOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for account_groups.
|
|
*/
|
|
cursor?: Prisma.account_groupWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` account_groups 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` account_groups.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of account_groups.
|
|
*/
|
|
distinct?: Prisma.Account_groupScalarFieldEnum | Prisma.Account_groupScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* account_group findFirstOrThrow
|
|
*/
|
|
export type account_groupFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the account_group
|
|
*/
|
|
select?: Prisma.account_groupSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the account_group
|
|
*/
|
|
omit?: Prisma.account_groupOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which account_group to fetch.
|
|
*/
|
|
where?: Prisma.account_groupWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of account_groups to fetch.
|
|
*/
|
|
orderBy?: Prisma.account_groupOrderByWithRelationInput | Prisma.account_groupOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for account_groups.
|
|
*/
|
|
cursor?: Prisma.account_groupWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` account_groups 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` account_groups.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of account_groups.
|
|
*/
|
|
distinct?: Prisma.Account_groupScalarFieldEnum | Prisma.Account_groupScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* account_group findMany
|
|
*/
|
|
export type account_groupFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the account_group
|
|
*/
|
|
select?: Prisma.account_groupSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the account_group
|
|
*/
|
|
omit?: Prisma.account_groupOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which account_groups to fetch.
|
|
*/
|
|
where?: Prisma.account_groupWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of account_groups to fetch.
|
|
*/
|
|
orderBy?: Prisma.account_groupOrderByWithRelationInput | Prisma.account_groupOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing account_groups.
|
|
*/
|
|
cursor?: Prisma.account_groupWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` account_groups 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` account_groups.
|
|
*/
|
|
skip?: number
|
|
distinct?: Prisma.Account_groupScalarFieldEnum | Prisma.Account_groupScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* account_group create
|
|
*/
|
|
export type account_groupCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the account_group
|
|
*/
|
|
select?: Prisma.account_groupSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the account_group
|
|
*/
|
|
omit?: Prisma.account_groupOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a account_group.
|
|
*/
|
|
data?: Prisma.XOR<Prisma.account_groupCreateInput, Prisma.account_groupUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* account_group createMany
|
|
*/
|
|
export type account_groupCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many account_groups.
|
|
*/
|
|
data: Prisma.account_groupCreateManyInput | Prisma.account_groupCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* account_group update
|
|
*/
|
|
export type account_groupUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the account_group
|
|
*/
|
|
select?: Prisma.account_groupSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the account_group
|
|
*/
|
|
omit?: Prisma.account_groupOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a account_group.
|
|
*/
|
|
data: Prisma.XOR<Prisma.account_groupUpdateInput, Prisma.account_groupUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which account_group to update.
|
|
*/
|
|
where: Prisma.account_groupWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* account_group updateMany
|
|
*/
|
|
export type account_groupUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update account_groups.
|
|
*/
|
|
data: Prisma.XOR<Prisma.account_groupUpdateManyMutationInput, Prisma.account_groupUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which account_groups to update
|
|
*/
|
|
where?: Prisma.account_groupWhereInput
|
|
/**
|
|
* Limit how many account_groups to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* account_group upsert
|
|
*/
|
|
export type account_groupUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the account_group
|
|
*/
|
|
select?: Prisma.account_groupSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the account_group
|
|
*/
|
|
omit?: Prisma.account_groupOmit<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the account_group to update in case it exists.
|
|
*/
|
|
where: Prisma.account_groupWhereUniqueInput
|
|
/**
|
|
* In case the account_group found by the `where` argument doesn't exist, create a new account_group with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.account_groupCreateInput, Prisma.account_groupUncheckedCreateInput>
|
|
/**
|
|
* In case the account_group was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.account_groupUpdateInput, Prisma.account_groupUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* account_group delete
|
|
*/
|
|
export type account_groupDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the account_group
|
|
*/
|
|
select?: Prisma.account_groupSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the account_group
|
|
*/
|
|
omit?: Prisma.account_groupOmit<ExtArgs> | null
|
|
/**
|
|
* Filter which account_group to delete.
|
|
*/
|
|
where: Prisma.account_groupWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* account_group deleteMany
|
|
*/
|
|
export type account_groupDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which account_groups to delete
|
|
*/
|
|
where?: Prisma.account_groupWhereInput
|
|
/**
|
|
* Limit how many account_groups to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* account_group without action
|
|
*/
|
|
export type account_groupDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the account_group
|
|
*/
|
|
select?: Prisma.account_groupSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the account_group
|
|
*/
|
|
omit?: Prisma.account_groupOmit<ExtArgs> | null
|
|
}
|