Files
prosapp-migration/backend/src/generated/prisma/models/professions.ts
T

1066 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 `professions` 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 professions
*
*/
export type professionsModel = runtime.Types.Result.DefaultSelection<Prisma.$professionsPayload>
export type AggregateProfessions = {
_count: ProfessionsCountAggregateOutputType | null
_min: ProfessionsMinAggregateOutputType | null
_max: ProfessionsMaxAggregateOutputType | null
}
export type ProfessionsMinAggregateOutputType = {
id: string | null
name: string | null
}
export type ProfessionsMaxAggregateOutputType = {
id: string | null
name: string | null
}
export type ProfessionsCountAggregateOutputType = {
id: number
name: number
_all: number
}
export type ProfessionsMinAggregateInputType = {
id?: true
name?: true
}
export type ProfessionsMaxAggregateInputType = {
id?: true
name?: true
}
export type ProfessionsCountAggregateInputType = {
id?: true
name?: true
_all?: true
}
export type ProfessionsAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which professions to aggregate.
*/
where?: Prisma.professionsWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of professions to fetch.
*/
orderBy?: Prisma.professionsOrderByWithRelationInput | Prisma.professionsOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.professionsWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` professions 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` professions.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned professions
**/
_count?: true | ProfessionsCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: ProfessionsMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: ProfessionsMaxAggregateInputType
}
export type GetProfessionsAggregateType<T extends ProfessionsAggregateArgs> = {
[P in keyof T & keyof AggregateProfessions]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateProfessions[P]>
: Prisma.GetScalarType<T[P], AggregateProfessions[P]>
}
export type professionsGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.professionsWhereInput
orderBy?: Prisma.professionsOrderByWithAggregationInput | Prisma.professionsOrderByWithAggregationInput[]
by: Prisma.ProfessionsScalarFieldEnum[] | Prisma.ProfessionsScalarFieldEnum
having?: Prisma.professionsScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: ProfessionsCountAggregateInputType | true
_min?: ProfessionsMinAggregateInputType
_max?: ProfessionsMaxAggregateInputType
}
export type ProfessionsGroupByOutputType = {
id: string
name: string
_count: ProfessionsCountAggregateOutputType | null
_min: ProfessionsMinAggregateOutputType | null
_max: ProfessionsMaxAggregateOutputType | null
}
export type GetProfessionsGroupByPayload<T extends professionsGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<ProfessionsGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof ProfessionsGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], ProfessionsGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], ProfessionsGroupByOutputType[P]>
}
>
>
export type professionsWhereInput = {
AND?: Prisma.professionsWhereInput | Prisma.professionsWhereInput[]
OR?: Prisma.professionsWhereInput[]
NOT?: Prisma.professionsWhereInput | Prisma.professionsWhereInput[]
id?: Prisma.UuidFilter<"professions"> | string
name?: Prisma.StringFilter<"professions"> | string
}
export type professionsOrderByWithRelationInput = {
id?: Prisma.SortOrder
name?: Prisma.SortOrder
}
export type professionsWhereUniqueInput = Prisma.AtLeast<{
id?: string
name?: string
AND?: Prisma.professionsWhereInput | Prisma.professionsWhereInput[]
OR?: Prisma.professionsWhereInput[]
NOT?: Prisma.professionsWhereInput | Prisma.professionsWhereInput[]
}, "id" | "name">
export type professionsOrderByWithAggregationInput = {
id?: Prisma.SortOrder
name?: Prisma.SortOrder
_count?: Prisma.professionsCountOrderByAggregateInput
_max?: Prisma.professionsMaxOrderByAggregateInput
_min?: Prisma.professionsMinOrderByAggregateInput
}
export type professionsScalarWhereWithAggregatesInput = {
AND?: Prisma.professionsScalarWhereWithAggregatesInput | Prisma.professionsScalarWhereWithAggregatesInput[]
OR?: Prisma.professionsScalarWhereWithAggregatesInput[]
NOT?: Prisma.professionsScalarWhereWithAggregatesInput | Prisma.professionsScalarWhereWithAggregatesInput[]
id?: Prisma.UuidWithAggregatesFilter<"professions"> | string
name?: Prisma.StringWithAggregatesFilter<"professions"> | string
}
export type professionsCreateInput = {
id?: string
name: string
}
export type professionsUncheckedCreateInput = {
id?: string
name: string
}
export type professionsUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
}
export type professionsUncheckedUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
}
export type professionsCreateManyInput = {
id?: string
name: string
}
export type professionsUpdateManyMutationInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
}
export type professionsUncheckedUpdateManyInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
}
export type professionsCountOrderByAggregateInput = {
id?: Prisma.SortOrder
name?: Prisma.SortOrder
}
export type professionsMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
name?: Prisma.SortOrder
}
export type professionsMinOrderByAggregateInput = {
id?: Prisma.SortOrder
name?: Prisma.SortOrder
}
export type professionsSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
name?: boolean
}, ExtArgs["result"]["professions"]>
export type professionsSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
name?: boolean
}, ExtArgs["result"]["professions"]>
export type professionsSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
name?: boolean
}, ExtArgs["result"]["professions"]>
export type professionsSelectScalar = {
id?: boolean
name?: boolean
}
export type professionsOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name", ExtArgs["result"]["professions"]>
export type $professionsPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "professions"
objects: {}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: string
name: string
}, ExtArgs["result"]["professions"]>
composites: {}
}
export type professionsGetPayload<S extends boolean | null | undefined | professionsDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$professionsPayload, S>
export type professionsCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<professionsFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: ProfessionsCountAggregateInputType | true
}
export interface professionsDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['professions'], meta: { name: 'professions' } }
/**
* Find zero or one Professions that matches the filter.
* @param {professionsFindUniqueArgs} args - Arguments to find a Professions
* @example
* // Get one Professions
* const professions = await prisma.professions.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends professionsFindUniqueArgs>(args: Prisma.SelectSubset<T, professionsFindUniqueArgs<ExtArgs>>): Prisma.Prisma__professionsClient<runtime.Types.Result.GetResult<Prisma.$professionsPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one Professions that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {professionsFindUniqueOrThrowArgs} args - Arguments to find a Professions
* @example
* // Get one Professions
* const professions = await prisma.professions.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends professionsFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, professionsFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__professionsClient<runtime.Types.Result.GetResult<Prisma.$professionsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first Professions 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 {professionsFindFirstArgs} args - Arguments to find a Professions
* @example
* // Get one Professions
* const professions = await prisma.professions.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends professionsFindFirstArgs>(args?: Prisma.SelectSubset<T, professionsFindFirstArgs<ExtArgs>>): Prisma.Prisma__professionsClient<runtime.Types.Result.GetResult<Prisma.$professionsPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first Professions 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 {professionsFindFirstOrThrowArgs} args - Arguments to find a Professions
* @example
* // Get one Professions
* const professions = await prisma.professions.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends professionsFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, professionsFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__professionsClient<runtime.Types.Result.GetResult<Prisma.$professionsPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more Professions 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 {professionsFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Professions
* const professions = await prisma.professions.findMany()
*
* // Get first 10 Professions
* const professions = await prisma.professions.findMany({ take: 10 })
*
* // Only select the `id`
* const professionsWithIdOnly = await prisma.professions.findMany({ select: { id: true } })
*
*/
findMany<T extends professionsFindManyArgs>(args?: Prisma.SelectSubset<T, professionsFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$professionsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a Professions.
* @param {professionsCreateArgs} args - Arguments to create a Professions.
* @example
* // Create one Professions
* const Professions = await prisma.professions.create({
* data: {
* // ... data to create a Professions
* }
* })
*
*/
create<T extends professionsCreateArgs>(args: Prisma.SelectSubset<T, professionsCreateArgs<ExtArgs>>): Prisma.Prisma__professionsClient<runtime.Types.Result.GetResult<Prisma.$professionsPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many Professions.
* @param {professionsCreateManyArgs} args - Arguments to create many Professions.
* @example
* // Create many Professions
* const professions = await prisma.professions.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends professionsCreateManyArgs>(args?: Prisma.SelectSubset<T, professionsCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many Professions and returns the data saved in the database.
* @param {professionsCreateManyAndReturnArgs} args - Arguments to create many Professions.
* @example
* // Create many Professions
* const professions = await prisma.professions.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many Professions and only return the `id`
* const professionsWithIdOnly = await prisma.professions.createManyAndReturn({
* select: { id: true },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
createManyAndReturn<T extends professionsCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, professionsCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$professionsPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a Professions.
* @param {professionsDeleteArgs} args - Arguments to delete one Professions.
* @example
* // Delete one Professions
* const Professions = await prisma.professions.delete({
* where: {
* // ... filter to delete one Professions
* }
* })
*
*/
delete<T extends professionsDeleteArgs>(args: Prisma.SelectSubset<T, professionsDeleteArgs<ExtArgs>>): Prisma.Prisma__professionsClient<runtime.Types.Result.GetResult<Prisma.$professionsPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one Professions.
* @param {professionsUpdateArgs} args - Arguments to update one Professions.
* @example
* // Update one Professions
* const professions = await prisma.professions.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends professionsUpdateArgs>(args: Prisma.SelectSubset<T, professionsUpdateArgs<ExtArgs>>): Prisma.Prisma__professionsClient<runtime.Types.Result.GetResult<Prisma.$professionsPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more Professions.
* @param {professionsDeleteManyArgs} args - Arguments to filter Professions to delete.
* @example
* // Delete a few Professions
* const { count } = await prisma.professions.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends professionsDeleteManyArgs>(args?: Prisma.SelectSubset<T, professionsDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more Professions.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {professionsUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Professions
* const professions = await prisma.professions.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends professionsUpdateManyArgs>(args: Prisma.SelectSubset<T, professionsUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more Professions and returns the data updated in the database.
* @param {professionsUpdateManyAndReturnArgs} args - Arguments to update many Professions.
* @example
* // Update many Professions
* const professions = await prisma.professions.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more Professions and only return the `id`
* const professionsWithIdOnly = await prisma.professions.updateManyAndReturn({
* select: { id: true },
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
updateManyAndReturn<T extends professionsUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, professionsUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$professionsPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one Professions.
* @param {professionsUpsertArgs} args - Arguments to update or create a Professions.
* @example
* // Update or create a Professions
* const professions = await prisma.professions.upsert({
* create: {
* // ... data to create a Professions
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the Professions we want to update
* }
* })
*/
upsert<T extends professionsUpsertArgs>(args: Prisma.SelectSubset<T, professionsUpsertArgs<ExtArgs>>): Prisma.Prisma__professionsClient<runtime.Types.Result.GetResult<Prisma.$professionsPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of Professions.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {professionsCountArgs} args - Arguments to filter Professions to count.
* @example
* // Count the number of Professions
* const count = await prisma.professions.count({
* where: {
* // ... the filter for the Professions we want to count
* }
* })
**/
count<T extends professionsCountArgs>(
args?: Prisma.Subset<T, professionsCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], ProfessionsCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a Professions.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {ProfessionsAggregateArgs} 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 ProfessionsAggregateArgs>(args: Prisma.Subset<T, ProfessionsAggregateArgs>): Prisma.PrismaPromise<GetProfessionsAggregateType<T>>
/**
* Group by Professions.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {professionsGroupByArgs} 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 professionsGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: professionsGroupByArgs['orderBy'] }
: { orderBy?: professionsGroupByArgs['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, professionsGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetProfessionsGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the professions model
*/
readonly fields: professionsFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for professions.
* 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__professionsClient<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 professions model
*/
export interface professionsFieldRefs {
readonly id: Prisma.FieldRef<"professions", 'String'>
readonly name: Prisma.FieldRef<"professions", 'String'>
}
// Custom InputTypes
/**
* professions findUnique
*/
export type professionsFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the professions
*/
select?: Prisma.professionsSelect<ExtArgs> | null
/**
* Omit specific fields from the professions
*/
omit?: Prisma.professionsOmit<ExtArgs> | null
/**
* Filter, which professions to fetch.
*/
where: Prisma.professionsWhereUniqueInput
}
/**
* professions findUniqueOrThrow
*/
export type professionsFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the professions
*/
select?: Prisma.professionsSelect<ExtArgs> | null
/**
* Omit specific fields from the professions
*/
omit?: Prisma.professionsOmit<ExtArgs> | null
/**
* Filter, which professions to fetch.
*/
where: Prisma.professionsWhereUniqueInput
}
/**
* professions findFirst
*/
export type professionsFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the professions
*/
select?: Prisma.professionsSelect<ExtArgs> | null
/**
* Omit specific fields from the professions
*/
omit?: Prisma.professionsOmit<ExtArgs> | null
/**
* Filter, which professions to fetch.
*/
where?: Prisma.professionsWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of professions to fetch.
*/
orderBy?: Prisma.professionsOrderByWithRelationInput | Prisma.professionsOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for professions.
*/
cursor?: Prisma.professionsWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` professions 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` professions.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of professions.
*/
distinct?: Prisma.ProfessionsScalarFieldEnum | Prisma.ProfessionsScalarFieldEnum[]
}
/**
* professions findFirstOrThrow
*/
export type professionsFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the professions
*/
select?: Prisma.professionsSelect<ExtArgs> | null
/**
* Omit specific fields from the professions
*/
omit?: Prisma.professionsOmit<ExtArgs> | null
/**
* Filter, which professions to fetch.
*/
where?: Prisma.professionsWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of professions to fetch.
*/
orderBy?: Prisma.professionsOrderByWithRelationInput | Prisma.professionsOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for professions.
*/
cursor?: Prisma.professionsWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` professions 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` professions.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of professions.
*/
distinct?: Prisma.ProfessionsScalarFieldEnum | Prisma.ProfessionsScalarFieldEnum[]
}
/**
* professions findMany
*/
export type professionsFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the professions
*/
select?: Prisma.professionsSelect<ExtArgs> | null
/**
* Omit specific fields from the professions
*/
omit?: Prisma.professionsOmit<ExtArgs> | null
/**
* Filter, which professions to fetch.
*/
where?: Prisma.professionsWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of professions to fetch.
*/
orderBy?: Prisma.professionsOrderByWithRelationInput | Prisma.professionsOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing professions.
*/
cursor?: Prisma.professionsWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` professions 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` professions.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of professions.
*/
distinct?: Prisma.ProfessionsScalarFieldEnum | Prisma.ProfessionsScalarFieldEnum[]
}
/**
* professions create
*/
export type professionsCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the professions
*/
select?: Prisma.professionsSelect<ExtArgs> | null
/**
* Omit specific fields from the professions
*/
omit?: Prisma.professionsOmit<ExtArgs> | null
/**
* The data needed to create a professions.
*/
data: Prisma.XOR<Prisma.professionsCreateInput, Prisma.professionsUncheckedCreateInput>
}
/**
* professions createMany
*/
export type professionsCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many professions.
*/
data: Prisma.professionsCreateManyInput | Prisma.professionsCreateManyInput[]
skipDuplicates?: boolean
}
/**
* professions createManyAndReturn
*/
export type professionsCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the professions
*/
select?: Prisma.professionsSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the professions
*/
omit?: Prisma.professionsOmit<ExtArgs> | null
/**
* The data used to create many professions.
*/
data: Prisma.professionsCreateManyInput | Prisma.professionsCreateManyInput[]
skipDuplicates?: boolean
}
/**
* professions update
*/
export type professionsUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the professions
*/
select?: Prisma.professionsSelect<ExtArgs> | null
/**
* Omit specific fields from the professions
*/
omit?: Prisma.professionsOmit<ExtArgs> | null
/**
* The data needed to update a professions.
*/
data: Prisma.XOR<Prisma.professionsUpdateInput, Prisma.professionsUncheckedUpdateInput>
/**
* Choose, which professions to update.
*/
where: Prisma.professionsWhereUniqueInput
}
/**
* professions updateMany
*/
export type professionsUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update professions.
*/
data: Prisma.XOR<Prisma.professionsUpdateManyMutationInput, Prisma.professionsUncheckedUpdateManyInput>
/**
* Filter which professions to update
*/
where?: Prisma.professionsWhereInput
/**
* Limit how many professions to update.
*/
limit?: number
}
/**
* professions updateManyAndReturn
*/
export type professionsUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the professions
*/
select?: Prisma.professionsSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the professions
*/
omit?: Prisma.professionsOmit<ExtArgs> | null
/**
* The data used to update professions.
*/
data: Prisma.XOR<Prisma.professionsUpdateManyMutationInput, Prisma.professionsUncheckedUpdateManyInput>
/**
* Filter which professions to update
*/
where?: Prisma.professionsWhereInput
/**
* Limit how many professions to update.
*/
limit?: number
}
/**
* professions upsert
*/
export type professionsUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the professions
*/
select?: Prisma.professionsSelect<ExtArgs> | null
/**
* Omit specific fields from the professions
*/
omit?: Prisma.professionsOmit<ExtArgs> | null
/**
* The filter to search for the professions to update in case it exists.
*/
where: Prisma.professionsWhereUniqueInput
/**
* In case the professions found by the `where` argument doesn't exist, create a new professions with this data.
*/
create: Prisma.XOR<Prisma.professionsCreateInput, Prisma.professionsUncheckedCreateInput>
/**
* In case the professions was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.professionsUpdateInput, Prisma.professionsUncheckedUpdateInput>
}
/**
* professions delete
*/
export type professionsDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the professions
*/
select?: Prisma.professionsSelect<ExtArgs> | null
/**
* Omit specific fields from the professions
*/
omit?: Prisma.professionsOmit<ExtArgs> | null
/**
* Filter which professions to delete.
*/
where: Prisma.professionsWhereUniqueInput
}
/**
* professions deleteMany
*/
export type professionsDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which professions to delete
*/
where?: Prisma.professionsWhereInput
/**
* Limit how many professions to delete.
*/
limit?: number
}
/**
* professions without action
*/
export type professionsDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the professions
*/
select?: Prisma.professionsSelect<ExtArgs> | null
/**
* Omit specific fields from the professions
*/
omit?: Prisma.professionsOmit<ExtArgs> | null
}