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

1234 lines
41 KiB
TypeScript

/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck
/*
* This file exports the `voicemeup` 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 voicemeup
*
*/
export type voicemeupModel = runtime.Types.Result.DefaultSelection<Prisma.$voicemeupPayload>
export type AggregateVoicemeup = {
_count: VoicemeupCountAggregateOutputType | null
_avg: VoicemeupAvgAggregateOutputType | null
_sum: VoicemeupSumAggregateOutputType | null
_min: VoicemeupMinAggregateOutputType | null
_max: VoicemeupMaxAggregateOutputType | null
}
export type VoicemeupAvgAggregateOutputType = {
id: number | null
account_id: number | null
date: number | null
duration: number | null
amount: number | null
}
export type VoicemeupSumAggregateOutputType = {
id: number | null
account_id: number | null
date: bigint | null
duration: number | null
amount: number | null
}
export type VoicemeupMinAggregateOutputType = {
id: number | null
account_id: number | null
date: bigint | null
duration: number | null
destination: string | null
country: string | null
state: string | null
district: string | null
amount: number | null
uuid: string | null
}
export type VoicemeupMaxAggregateOutputType = {
id: number | null
account_id: number | null
date: bigint | null
duration: number | null
destination: string | null
country: string | null
state: string | null
district: string | null
amount: number | null
uuid: string | null
}
export type VoicemeupCountAggregateOutputType = {
id: number
account_id: number
date: number
duration: number
destination: number
country: number
state: number
district: number
amount: number
uuid: number
_all: number
}
export type VoicemeupAvgAggregateInputType = {
id?: true
account_id?: true
date?: true
duration?: true
amount?: true
}
export type VoicemeupSumAggregateInputType = {
id?: true
account_id?: true
date?: true
duration?: true
amount?: true
}
export type VoicemeupMinAggregateInputType = {
id?: true
account_id?: true
date?: true
duration?: true
destination?: true
country?: true
state?: true
district?: true
amount?: true
uuid?: true
}
export type VoicemeupMaxAggregateInputType = {
id?: true
account_id?: true
date?: true
duration?: true
destination?: true
country?: true
state?: true
district?: true
amount?: true
uuid?: true
}
export type VoicemeupCountAggregateInputType = {
id?: true
account_id?: true
date?: true
duration?: true
destination?: true
country?: true
state?: true
district?: true
amount?: true
uuid?: true
_all?: true
}
export type VoicemeupAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which voicemeup to aggregate.
*/
where?: Prisma.voicemeupWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of voicemeups to fetch.
*/
orderBy?: Prisma.voicemeupOrderByWithRelationInput | Prisma.voicemeupOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.voicemeupWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` voicemeups 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` voicemeups.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned voicemeups
**/
_count?: true | VoicemeupCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: VoicemeupAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: VoicemeupSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: VoicemeupMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: VoicemeupMaxAggregateInputType
}
export type GetVoicemeupAggregateType<T extends VoicemeupAggregateArgs> = {
[P in keyof T & keyof AggregateVoicemeup]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateVoicemeup[P]>
: Prisma.GetScalarType<T[P], AggregateVoicemeup[P]>
}
export type voicemeupGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.voicemeupWhereInput
orderBy?: Prisma.voicemeupOrderByWithAggregationInput | Prisma.voicemeupOrderByWithAggregationInput[]
by: Prisma.VoicemeupScalarFieldEnum[] | Prisma.VoicemeupScalarFieldEnum
having?: Prisma.voicemeupScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: VoicemeupCountAggregateInputType | true
_avg?: VoicemeupAvgAggregateInputType
_sum?: VoicemeupSumAggregateInputType
_min?: VoicemeupMinAggregateInputType
_max?: VoicemeupMaxAggregateInputType
}
export type VoicemeupGroupByOutputType = {
id: number
account_id: number
date: bigint
duration: number
destination: string
country: string
state: string | null
district: string | null
amount: number
uuid: string | null
_count: VoicemeupCountAggregateOutputType | null
_avg: VoicemeupAvgAggregateOutputType | null
_sum: VoicemeupSumAggregateOutputType | null
_min: VoicemeupMinAggregateOutputType | null
_max: VoicemeupMaxAggregateOutputType | null
}
type GetVoicemeupGroupByPayload<T extends voicemeupGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<VoicemeupGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof VoicemeupGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], VoicemeupGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], VoicemeupGroupByOutputType[P]>
}
>
>
export type voicemeupWhereInput = {
AND?: Prisma.voicemeupWhereInput | Prisma.voicemeupWhereInput[]
OR?: Prisma.voicemeupWhereInput[]
NOT?: Prisma.voicemeupWhereInput | Prisma.voicemeupWhereInput[]
id?: Prisma.IntFilter<"voicemeup"> | number
account_id?: Prisma.IntFilter<"voicemeup"> | number
date?: Prisma.BigIntFilter<"voicemeup"> | bigint | number
duration?: Prisma.IntFilter<"voicemeup"> | number
destination?: Prisma.StringFilter<"voicemeup"> | string
country?: Prisma.StringFilter<"voicemeup"> | string
state?: Prisma.StringNullableFilter<"voicemeup"> | string | null
district?: Prisma.StringNullableFilter<"voicemeup"> | string | null
amount?: Prisma.FloatFilter<"voicemeup"> | number
uuid?: Prisma.StringNullableFilter<"voicemeup"> | string | null
}
export type voicemeupOrderByWithRelationInput = {
id?: Prisma.SortOrder
account_id?: Prisma.SortOrder
date?: Prisma.SortOrder
duration?: Prisma.SortOrder
destination?: Prisma.SortOrder
country?: Prisma.SortOrder
state?: Prisma.SortOrderInput | Prisma.SortOrder
district?: Prisma.SortOrderInput | Prisma.SortOrder
amount?: Prisma.SortOrder
uuid?: Prisma.SortOrderInput | Prisma.SortOrder
_relevance?: Prisma.voicemeupOrderByRelevanceInput
}
export type voicemeupWhereUniqueInput = Prisma.AtLeast<{
id?: number
AND?: Prisma.voicemeupWhereInput | Prisma.voicemeupWhereInput[]
OR?: Prisma.voicemeupWhereInput[]
NOT?: Prisma.voicemeupWhereInput | Prisma.voicemeupWhereInput[]
account_id?: Prisma.IntFilter<"voicemeup"> | number
date?: Prisma.BigIntFilter<"voicemeup"> | bigint | number
duration?: Prisma.IntFilter<"voicemeup"> | number
destination?: Prisma.StringFilter<"voicemeup"> | string
country?: Prisma.StringFilter<"voicemeup"> | string
state?: Prisma.StringNullableFilter<"voicemeup"> | string | null
district?: Prisma.StringNullableFilter<"voicemeup"> | string | null
amount?: Prisma.FloatFilter<"voicemeup"> | number
uuid?: Prisma.StringNullableFilter<"voicemeup"> | string | null
}, "id">
export type voicemeupOrderByWithAggregationInput = {
id?: Prisma.SortOrder
account_id?: Prisma.SortOrder
date?: Prisma.SortOrder
duration?: Prisma.SortOrder
destination?: Prisma.SortOrder
country?: Prisma.SortOrder
state?: Prisma.SortOrderInput | Prisma.SortOrder
district?: Prisma.SortOrderInput | Prisma.SortOrder
amount?: Prisma.SortOrder
uuid?: Prisma.SortOrderInput | Prisma.SortOrder
_count?: Prisma.voicemeupCountOrderByAggregateInput
_avg?: Prisma.voicemeupAvgOrderByAggregateInput
_max?: Prisma.voicemeupMaxOrderByAggregateInput
_min?: Prisma.voicemeupMinOrderByAggregateInput
_sum?: Prisma.voicemeupSumOrderByAggregateInput
}
export type voicemeupScalarWhereWithAggregatesInput = {
AND?: Prisma.voicemeupScalarWhereWithAggregatesInput | Prisma.voicemeupScalarWhereWithAggregatesInput[]
OR?: Prisma.voicemeupScalarWhereWithAggregatesInput[]
NOT?: Prisma.voicemeupScalarWhereWithAggregatesInput | Prisma.voicemeupScalarWhereWithAggregatesInput[]
id?: Prisma.IntWithAggregatesFilter<"voicemeup"> | number
account_id?: Prisma.IntWithAggregatesFilter<"voicemeup"> | number
date?: Prisma.BigIntWithAggregatesFilter<"voicemeup"> | bigint | number
duration?: Prisma.IntWithAggregatesFilter<"voicemeup"> | number
destination?: Prisma.StringWithAggregatesFilter<"voicemeup"> | string
country?: Prisma.StringWithAggregatesFilter<"voicemeup"> | string
state?: Prisma.StringNullableWithAggregatesFilter<"voicemeup"> | string | null
district?: Prisma.StringNullableWithAggregatesFilter<"voicemeup"> | string | null
amount?: Prisma.FloatWithAggregatesFilter<"voicemeup"> | number
uuid?: Prisma.StringNullableWithAggregatesFilter<"voicemeup"> | string | null
}
export type voicemeupCreateInput = {
account_id: number
date: bigint | number
duration: number
destination: string
country: string
state?: string | null
district?: string | null
amount: number
uuid?: string | null
}
export type voicemeupUncheckedCreateInput = {
id?: number
account_id: number
date: bigint | number
duration: number
destination: string
country: string
state?: string | null
district?: string | null
amount: number
uuid?: string | null
}
export type voicemeupUpdateInput = {
account_id?: Prisma.IntFieldUpdateOperationsInput | number
date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
duration?: Prisma.IntFieldUpdateOperationsInput | number
destination?: Prisma.StringFieldUpdateOperationsInput | string
country?: Prisma.StringFieldUpdateOperationsInput | string
state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
district?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
amount?: Prisma.FloatFieldUpdateOperationsInput | number
uuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type voicemeupUncheckedUpdateInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
account_id?: Prisma.IntFieldUpdateOperationsInput | number
date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
duration?: Prisma.IntFieldUpdateOperationsInput | number
destination?: Prisma.StringFieldUpdateOperationsInput | string
country?: Prisma.StringFieldUpdateOperationsInput | string
state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
district?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
amount?: Prisma.FloatFieldUpdateOperationsInput | number
uuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type voicemeupCreateManyInput = {
id?: number
account_id: number
date: bigint | number
duration: number
destination: string
country: string
state?: string | null
district?: string | null
amount: number
uuid?: string | null
}
export type voicemeupUpdateManyMutationInput = {
account_id?: Prisma.IntFieldUpdateOperationsInput | number
date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
duration?: Prisma.IntFieldUpdateOperationsInput | number
destination?: Prisma.StringFieldUpdateOperationsInput | string
country?: Prisma.StringFieldUpdateOperationsInput | string
state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
district?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
amount?: Prisma.FloatFieldUpdateOperationsInput | number
uuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type voicemeupUncheckedUpdateManyInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
account_id?: Prisma.IntFieldUpdateOperationsInput | number
date?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
duration?: Prisma.IntFieldUpdateOperationsInput | number
destination?: Prisma.StringFieldUpdateOperationsInput | string
country?: Prisma.StringFieldUpdateOperationsInput | string
state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
district?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
amount?: Prisma.FloatFieldUpdateOperationsInput | number
uuid?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type voicemeupOrderByRelevanceInput = {
fields: Prisma.voicemeupOrderByRelevanceFieldEnum | Prisma.voicemeupOrderByRelevanceFieldEnum[]
sort: Prisma.SortOrder
search: string
}
export type voicemeupCountOrderByAggregateInput = {
id?: Prisma.SortOrder
account_id?: Prisma.SortOrder
date?: Prisma.SortOrder
duration?: Prisma.SortOrder
destination?: Prisma.SortOrder
country?: Prisma.SortOrder
state?: Prisma.SortOrder
district?: Prisma.SortOrder
amount?: Prisma.SortOrder
uuid?: Prisma.SortOrder
}
export type voicemeupAvgOrderByAggregateInput = {
id?: Prisma.SortOrder
account_id?: Prisma.SortOrder
date?: Prisma.SortOrder
duration?: Prisma.SortOrder
amount?: Prisma.SortOrder
}
export type voicemeupMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
account_id?: Prisma.SortOrder
date?: Prisma.SortOrder
duration?: Prisma.SortOrder
destination?: Prisma.SortOrder
country?: Prisma.SortOrder
state?: Prisma.SortOrder
district?: Prisma.SortOrder
amount?: Prisma.SortOrder
uuid?: Prisma.SortOrder
}
export type voicemeupMinOrderByAggregateInput = {
id?: Prisma.SortOrder
account_id?: Prisma.SortOrder
date?: Prisma.SortOrder
duration?: Prisma.SortOrder
destination?: Prisma.SortOrder
country?: Prisma.SortOrder
state?: Prisma.SortOrder
district?: Prisma.SortOrder
amount?: Prisma.SortOrder
uuid?: Prisma.SortOrder
}
export type voicemeupSumOrderByAggregateInput = {
id?: Prisma.SortOrder
account_id?: Prisma.SortOrder
date?: Prisma.SortOrder
duration?: Prisma.SortOrder
amount?: Prisma.SortOrder
}
export type voicemeupSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
account_id?: boolean
date?: boolean
duration?: boolean
destination?: boolean
country?: boolean
state?: boolean
district?: boolean
amount?: boolean
uuid?: boolean
}, ExtArgs["result"]["voicemeup"]>
export type voicemeupSelectScalar = {
id?: boolean
account_id?: boolean
date?: boolean
duration?: boolean
destination?: boolean
country?: boolean
state?: boolean
district?: boolean
amount?: boolean
uuid?: boolean
}
export type voicemeupOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "account_id" | "date" | "duration" | "destination" | "country" | "state" | "district" | "amount" | "uuid", ExtArgs["result"]["voicemeup"]>
export type $voicemeupPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "voicemeup"
objects: {}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: number
account_id: number
date: bigint
duration: number
destination: string
country: string
state: string | null
district: string | null
amount: number
uuid: string | null
}, ExtArgs["result"]["voicemeup"]>
composites: {}
}
export type voicemeupGetPayload<S extends boolean | null | undefined | voicemeupDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$voicemeupPayload, S>
export type voicemeupCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<voicemeupFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: VoicemeupCountAggregateInputType | true
}
export interface voicemeupDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['voicemeup'], meta: { name: 'voicemeup' } }
/**
* Find zero or one Voicemeup that matches the filter.
* @param {voicemeupFindUniqueArgs} args - Arguments to find a Voicemeup
* @example
* // Get one Voicemeup
* const voicemeup = await prisma.voicemeup.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends voicemeupFindUniqueArgs>(args: Prisma.SelectSubset<T, voicemeupFindUniqueArgs<ExtArgs>>): Prisma.Prisma__voicemeupClient<runtime.Types.Result.GetResult<Prisma.$voicemeupPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one Voicemeup that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {voicemeupFindUniqueOrThrowArgs} args - Arguments to find a Voicemeup
* @example
* // Get one Voicemeup
* const voicemeup = await prisma.voicemeup.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends voicemeupFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, voicemeupFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__voicemeupClient<runtime.Types.Result.GetResult<Prisma.$voicemeupPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first Voicemeup 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 {voicemeupFindFirstArgs} args - Arguments to find a Voicemeup
* @example
* // Get one Voicemeup
* const voicemeup = await prisma.voicemeup.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends voicemeupFindFirstArgs>(args?: Prisma.SelectSubset<T, voicemeupFindFirstArgs<ExtArgs>>): Prisma.Prisma__voicemeupClient<runtime.Types.Result.GetResult<Prisma.$voicemeupPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first Voicemeup 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 {voicemeupFindFirstOrThrowArgs} args - Arguments to find a Voicemeup
* @example
* // Get one Voicemeup
* const voicemeup = await prisma.voicemeup.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends voicemeupFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, voicemeupFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__voicemeupClient<runtime.Types.Result.GetResult<Prisma.$voicemeupPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more Voicemeups 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 {voicemeupFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Voicemeups
* const voicemeups = await prisma.voicemeup.findMany()
*
* // Get first 10 Voicemeups
* const voicemeups = await prisma.voicemeup.findMany({ take: 10 })
*
* // Only select the `id`
* const voicemeupWithIdOnly = await prisma.voicemeup.findMany({ select: { id: true } })
*
*/
findMany<T extends voicemeupFindManyArgs>(args?: Prisma.SelectSubset<T, voicemeupFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$voicemeupPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a Voicemeup.
* @param {voicemeupCreateArgs} args - Arguments to create a Voicemeup.
* @example
* // Create one Voicemeup
* const Voicemeup = await prisma.voicemeup.create({
* data: {
* // ... data to create a Voicemeup
* }
* })
*
*/
create<T extends voicemeupCreateArgs>(args: Prisma.SelectSubset<T, voicemeupCreateArgs<ExtArgs>>): Prisma.Prisma__voicemeupClient<runtime.Types.Result.GetResult<Prisma.$voicemeupPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many Voicemeups.
* @param {voicemeupCreateManyArgs} args - Arguments to create many Voicemeups.
* @example
* // Create many Voicemeups
* const voicemeup = await prisma.voicemeup.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends voicemeupCreateManyArgs>(args?: Prisma.SelectSubset<T, voicemeupCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Delete a Voicemeup.
* @param {voicemeupDeleteArgs} args - Arguments to delete one Voicemeup.
* @example
* // Delete one Voicemeup
* const Voicemeup = await prisma.voicemeup.delete({
* where: {
* // ... filter to delete one Voicemeup
* }
* })
*
*/
delete<T extends voicemeupDeleteArgs>(args: Prisma.SelectSubset<T, voicemeupDeleteArgs<ExtArgs>>): Prisma.Prisma__voicemeupClient<runtime.Types.Result.GetResult<Prisma.$voicemeupPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one Voicemeup.
* @param {voicemeupUpdateArgs} args - Arguments to update one Voicemeup.
* @example
* // Update one Voicemeup
* const voicemeup = await prisma.voicemeup.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends voicemeupUpdateArgs>(args: Prisma.SelectSubset<T, voicemeupUpdateArgs<ExtArgs>>): Prisma.Prisma__voicemeupClient<runtime.Types.Result.GetResult<Prisma.$voicemeupPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more Voicemeups.
* @param {voicemeupDeleteManyArgs} args - Arguments to filter Voicemeups to delete.
* @example
* // Delete a few Voicemeups
* const { count } = await prisma.voicemeup.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends voicemeupDeleteManyArgs>(args?: Prisma.SelectSubset<T, voicemeupDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more Voicemeups.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {voicemeupUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Voicemeups
* const voicemeup = await prisma.voicemeup.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends voicemeupUpdateManyArgs>(args: Prisma.SelectSubset<T, voicemeupUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create or update one Voicemeup.
* @param {voicemeupUpsertArgs} args - Arguments to update or create a Voicemeup.
* @example
* // Update or create a Voicemeup
* const voicemeup = await prisma.voicemeup.upsert({
* create: {
* // ... data to create a Voicemeup
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the Voicemeup we want to update
* }
* })
*/
upsert<T extends voicemeupUpsertArgs>(args: Prisma.SelectSubset<T, voicemeupUpsertArgs<ExtArgs>>): Prisma.Prisma__voicemeupClient<runtime.Types.Result.GetResult<Prisma.$voicemeupPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of Voicemeups.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {voicemeupCountArgs} args - Arguments to filter Voicemeups to count.
* @example
* // Count the number of Voicemeups
* const count = await prisma.voicemeup.count({
* where: {
* // ... the filter for the Voicemeups we want to count
* }
* })
**/
count<T extends voicemeupCountArgs>(
args?: Prisma.Subset<T, voicemeupCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], VoicemeupCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a Voicemeup.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {VoicemeupAggregateArgs} 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 VoicemeupAggregateArgs>(args: Prisma.Subset<T, VoicemeupAggregateArgs>): Prisma.PrismaPromise<GetVoicemeupAggregateType<T>>
/**
* Group by Voicemeup.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {voicemeupGroupByArgs} 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 voicemeupGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: voicemeupGroupByArgs['orderBy'] }
: { orderBy?: voicemeupGroupByArgs['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, voicemeupGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetVoicemeupGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the voicemeup model
*/
readonly fields: voicemeupFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for voicemeup.
* 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__voicemeupClient<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 voicemeup model
*/
export interface voicemeupFieldRefs {
readonly id: Prisma.FieldRef<"voicemeup", 'Int'>
readonly account_id: Prisma.FieldRef<"voicemeup", 'Int'>
readonly date: Prisma.FieldRef<"voicemeup", 'BigInt'>
readonly duration: Prisma.FieldRef<"voicemeup", 'Int'>
readonly destination: Prisma.FieldRef<"voicemeup", 'String'>
readonly country: Prisma.FieldRef<"voicemeup", 'String'>
readonly state: Prisma.FieldRef<"voicemeup", 'String'>
readonly district: Prisma.FieldRef<"voicemeup", 'String'>
readonly amount: Prisma.FieldRef<"voicemeup", 'Float'>
readonly uuid: Prisma.FieldRef<"voicemeup", 'String'>
}
// Custom InputTypes
/**
* voicemeup findUnique
*/
export type voicemeupFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the voicemeup
*/
select?: Prisma.voicemeupSelect<ExtArgs> | null
/**
* Omit specific fields from the voicemeup
*/
omit?: Prisma.voicemeupOmit<ExtArgs> | null
/**
* Filter, which voicemeup to fetch.
*/
where: Prisma.voicemeupWhereUniqueInput
}
/**
* voicemeup findUniqueOrThrow
*/
export type voicemeupFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the voicemeup
*/
select?: Prisma.voicemeupSelect<ExtArgs> | null
/**
* Omit specific fields from the voicemeup
*/
omit?: Prisma.voicemeupOmit<ExtArgs> | null
/**
* Filter, which voicemeup to fetch.
*/
where: Prisma.voicemeupWhereUniqueInput
}
/**
* voicemeup findFirst
*/
export type voicemeupFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the voicemeup
*/
select?: Prisma.voicemeupSelect<ExtArgs> | null
/**
* Omit specific fields from the voicemeup
*/
omit?: Prisma.voicemeupOmit<ExtArgs> | null
/**
* Filter, which voicemeup to fetch.
*/
where?: Prisma.voicemeupWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of voicemeups to fetch.
*/
orderBy?: Prisma.voicemeupOrderByWithRelationInput | Prisma.voicemeupOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for voicemeups.
*/
cursor?: Prisma.voicemeupWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` voicemeups 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` voicemeups.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of voicemeups.
*/
distinct?: Prisma.VoicemeupScalarFieldEnum | Prisma.VoicemeupScalarFieldEnum[]
}
/**
* voicemeup findFirstOrThrow
*/
export type voicemeupFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the voicemeup
*/
select?: Prisma.voicemeupSelect<ExtArgs> | null
/**
* Omit specific fields from the voicemeup
*/
omit?: Prisma.voicemeupOmit<ExtArgs> | null
/**
* Filter, which voicemeup to fetch.
*/
where?: Prisma.voicemeupWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of voicemeups to fetch.
*/
orderBy?: Prisma.voicemeupOrderByWithRelationInput | Prisma.voicemeupOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for voicemeups.
*/
cursor?: Prisma.voicemeupWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` voicemeups 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` voicemeups.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of voicemeups.
*/
distinct?: Prisma.VoicemeupScalarFieldEnum | Prisma.VoicemeupScalarFieldEnum[]
}
/**
* voicemeup findMany
*/
export type voicemeupFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the voicemeup
*/
select?: Prisma.voicemeupSelect<ExtArgs> | null
/**
* Omit specific fields from the voicemeup
*/
omit?: Prisma.voicemeupOmit<ExtArgs> | null
/**
* Filter, which voicemeups to fetch.
*/
where?: Prisma.voicemeupWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of voicemeups to fetch.
*/
orderBy?: Prisma.voicemeupOrderByWithRelationInput | Prisma.voicemeupOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing voicemeups.
*/
cursor?: Prisma.voicemeupWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` voicemeups 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` voicemeups.
*/
skip?: number
distinct?: Prisma.VoicemeupScalarFieldEnum | Prisma.VoicemeupScalarFieldEnum[]
}
/**
* voicemeup create
*/
export type voicemeupCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the voicemeup
*/
select?: Prisma.voicemeupSelect<ExtArgs> | null
/**
* Omit specific fields from the voicemeup
*/
omit?: Prisma.voicemeupOmit<ExtArgs> | null
/**
* The data needed to create a voicemeup.
*/
data: Prisma.XOR<Prisma.voicemeupCreateInput, Prisma.voicemeupUncheckedCreateInput>
}
/**
* voicemeup createMany
*/
export type voicemeupCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many voicemeups.
*/
data: Prisma.voicemeupCreateManyInput | Prisma.voicemeupCreateManyInput[]
skipDuplicates?: boolean
}
/**
* voicemeup update
*/
export type voicemeupUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the voicemeup
*/
select?: Prisma.voicemeupSelect<ExtArgs> | null
/**
* Omit specific fields from the voicemeup
*/
omit?: Prisma.voicemeupOmit<ExtArgs> | null
/**
* The data needed to update a voicemeup.
*/
data: Prisma.XOR<Prisma.voicemeupUpdateInput, Prisma.voicemeupUncheckedUpdateInput>
/**
* Choose, which voicemeup to update.
*/
where: Prisma.voicemeupWhereUniqueInput
}
/**
* voicemeup updateMany
*/
export type voicemeupUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update voicemeups.
*/
data: Prisma.XOR<Prisma.voicemeupUpdateManyMutationInput, Prisma.voicemeupUncheckedUpdateManyInput>
/**
* Filter which voicemeups to update
*/
where?: Prisma.voicemeupWhereInput
/**
* Limit how many voicemeups to update.
*/
limit?: number
}
/**
* voicemeup upsert
*/
export type voicemeupUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the voicemeup
*/
select?: Prisma.voicemeupSelect<ExtArgs> | null
/**
* Omit specific fields from the voicemeup
*/
omit?: Prisma.voicemeupOmit<ExtArgs> | null
/**
* The filter to search for the voicemeup to update in case it exists.
*/
where: Prisma.voicemeupWhereUniqueInput
/**
* In case the voicemeup found by the `where` argument doesn't exist, create a new voicemeup with this data.
*/
create: Prisma.XOR<Prisma.voicemeupCreateInput, Prisma.voicemeupUncheckedCreateInput>
/**
* In case the voicemeup was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.voicemeupUpdateInput, Prisma.voicemeupUncheckedUpdateInput>
}
/**
* voicemeup delete
*/
export type voicemeupDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the voicemeup
*/
select?: Prisma.voicemeupSelect<ExtArgs> | null
/**
* Omit specific fields from the voicemeup
*/
omit?: Prisma.voicemeupOmit<ExtArgs> | null
/**
* Filter which voicemeup to delete.
*/
where: Prisma.voicemeupWhereUniqueInput
}
/**
* voicemeup deleteMany
*/
export type voicemeupDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which voicemeups to delete
*/
where?: Prisma.voicemeupWhereInput
/**
* Limit how many voicemeups to delete.
*/
limit?: number
}
/**
* voicemeup without action
*/
export type voicemeupDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the voicemeup
*/
select?: Prisma.voicemeupSelect<ExtArgs> | null
/**
* Omit specific fields from the voicemeup
*/
omit?: Prisma.voicemeupOmit<ExtArgs> | null
}