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

1034 lines
33 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 `notes` 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 notes
*
*/
export type notesModel = runtime.Types.Result.DefaultSelection<Prisma.$notesPayload>
export type AggregateNotes = {
_count: NotesCountAggregateOutputType | null
_avg: NotesAvgAggregateOutputType | null
_sum: NotesSumAggregateOutputType | null
_min: NotesMinAggregateOutputType | null
_max: NotesMaxAggregateOutputType | null
}
export type NotesAvgAggregateOutputType = {
id: number | null
account_id: number | null
}
export type NotesSumAggregateOutputType = {
id: number | null
account_id: number | null
}
export type NotesMinAggregateOutputType = {
id: number | null
account_id: number | null
notes: string | null
}
export type NotesMaxAggregateOutputType = {
id: number | null
account_id: number | null
notes: string | null
}
export type NotesCountAggregateOutputType = {
id: number
account_id: number
notes: number
_all: number
}
export type NotesAvgAggregateInputType = {
id?: true
account_id?: true
}
export type NotesSumAggregateInputType = {
id?: true
account_id?: true
}
export type NotesMinAggregateInputType = {
id?: true
account_id?: true
notes?: true
}
export type NotesMaxAggregateInputType = {
id?: true
account_id?: true
notes?: true
}
export type NotesCountAggregateInputType = {
id?: true
account_id?: true
notes?: true
_all?: true
}
export type NotesAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which notes to aggregate.
*/
where?: Prisma.notesWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of notes to fetch.
*/
orderBy?: Prisma.notesOrderByWithRelationInput | Prisma.notesOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.notesWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` notes 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` notes.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned notes
**/
_count?: true | NotesCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: NotesAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: NotesSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: NotesMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: NotesMaxAggregateInputType
}
export type GetNotesAggregateType<T extends NotesAggregateArgs> = {
[P in keyof T & keyof AggregateNotes]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateNotes[P]>
: Prisma.GetScalarType<T[P], AggregateNotes[P]>
}
export type notesGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.notesWhereInput
orderBy?: Prisma.notesOrderByWithAggregationInput | Prisma.notesOrderByWithAggregationInput[]
by: Prisma.NotesScalarFieldEnum[] | Prisma.NotesScalarFieldEnum
having?: Prisma.notesScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: NotesCountAggregateInputType | true
_avg?: NotesAvgAggregateInputType
_sum?: NotesSumAggregateInputType
_min?: NotesMinAggregateInputType
_max?: NotesMaxAggregateInputType
}
export type NotesGroupByOutputType = {
id: number
account_id: number
notes: string
_count: NotesCountAggregateOutputType | null
_avg: NotesAvgAggregateOutputType | null
_sum: NotesSumAggregateOutputType | null
_min: NotesMinAggregateOutputType | null
_max: NotesMaxAggregateOutputType | null
}
type GetNotesGroupByPayload<T extends notesGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<NotesGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof NotesGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], NotesGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], NotesGroupByOutputType[P]>
}
>
>
export type notesWhereInput = {
AND?: Prisma.notesWhereInput | Prisma.notesWhereInput[]
OR?: Prisma.notesWhereInput[]
NOT?: Prisma.notesWhereInput | Prisma.notesWhereInput[]
id?: Prisma.IntFilter<"notes"> | number
account_id?: Prisma.IntFilter<"notes"> | number
notes?: Prisma.StringFilter<"notes"> | string
}
export type notesOrderByWithRelationInput = {
id?: Prisma.SortOrder
account_id?: Prisma.SortOrder
notes?: Prisma.SortOrder
_relevance?: Prisma.notesOrderByRelevanceInput
}
export type notesWhereUniqueInput = Prisma.AtLeast<{
id?: number
AND?: Prisma.notesWhereInput | Prisma.notesWhereInput[]
OR?: Prisma.notesWhereInput[]
NOT?: Prisma.notesWhereInput | Prisma.notesWhereInput[]
account_id?: Prisma.IntFilter<"notes"> | number
notes?: Prisma.StringFilter<"notes"> | string
}, "id">
export type notesOrderByWithAggregationInput = {
id?: Prisma.SortOrder
account_id?: Prisma.SortOrder
notes?: Prisma.SortOrder
_count?: Prisma.notesCountOrderByAggregateInput
_avg?: Prisma.notesAvgOrderByAggregateInput
_max?: Prisma.notesMaxOrderByAggregateInput
_min?: Prisma.notesMinOrderByAggregateInput
_sum?: Prisma.notesSumOrderByAggregateInput
}
export type notesScalarWhereWithAggregatesInput = {
AND?: Prisma.notesScalarWhereWithAggregatesInput | Prisma.notesScalarWhereWithAggregatesInput[]
OR?: Prisma.notesScalarWhereWithAggregatesInput[]
NOT?: Prisma.notesScalarWhereWithAggregatesInput | Prisma.notesScalarWhereWithAggregatesInput[]
id?: Prisma.IntWithAggregatesFilter<"notes"> | number
account_id?: Prisma.IntWithAggregatesFilter<"notes"> | number
notes?: Prisma.StringWithAggregatesFilter<"notes"> | string
}
export type notesCreateInput = {
account_id: number
notes: string
}
export type notesUncheckedCreateInput = {
id?: number
account_id: number
notes: string
}
export type notesUpdateInput = {
account_id?: Prisma.IntFieldUpdateOperationsInput | number
notes?: Prisma.StringFieldUpdateOperationsInput | string
}
export type notesUncheckedUpdateInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
account_id?: Prisma.IntFieldUpdateOperationsInput | number
notes?: Prisma.StringFieldUpdateOperationsInput | string
}
export type notesCreateManyInput = {
id?: number
account_id: number
notes: string
}
export type notesUpdateManyMutationInput = {
account_id?: Prisma.IntFieldUpdateOperationsInput | number
notes?: Prisma.StringFieldUpdateOperationsInput | string
}
export type notesUncheckedUpdateManyInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
account_id?: Prisma.IntFieldUpdateOperationsInput | number
notes?: Prisma.StringFieldUpdateOperationsInput | string
}
export type notesOrderByRelevanceInput = {
fields: Prisma.notesOrderByRelevanceFieldEnum | Prisma.notesOrderByRelevanceFieldEnum[]
sort: Prisma.SortOrder
search: string
}
export type notesCountOrderByAggregateInput = {
id?: Prisma.SortOrder
account_id?: Prisma.SortOrder
notes?: Prisma.SortOrder
}
export type notesAvgOrderByAggregateInput = {
id?: Prisma.SortOrder
account_id?: Prisma.SortOrder
}
export type notesMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
account_id?: Prisma.SortOrder
notes?: Prisma.SortOrder
}
export type notesMinOrderByAggregateInput = {
id?: Prisma.SortOrder
account_id?: Prisma.SortOrder
notes?: Prisma.SortOrder
}
export type notesSumOrderByAggregateInput = {
id?: Prisma.SortOrder
account_id?: Prisma.SortOrder
}
export type notesSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
account_id?: boolean
notes?: boolean
}, ExtArgs["result"]["notes"]>
export type notesSelectScalar = {
id?: boolean
account_id?: boolean
notes?: boolean
}
export type notesOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "account_id" | "notes", ExtArgs["result"]["notes"]>
export type $notesPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "notes"
objects: {}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: number
account_id: number
notes: string
}, ExtArgs["result"]["notes"]>
composites: {}
}
export type notesGetPayload<S extends boolean | null | undefined | notesDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$notesPayload, S>
export type notesCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<notesFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: NotesCountAggregateInputType | true
}
export interface notesDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['notes'], meta: { name: 'notes' } }
/**
* Find zero or one Notes that matches the filter.
* @param {notesFindUniqueArgs} args - Arguments to find a Notes
* @example
* // Get one Notes
* const notes = await prisma.notes.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends notesFindUniqueArgs>(args: Prisma.SelectSubset<T, notesFindUniqueArgs<ExtArgs>>): Prisma.Prisma__notesClient<runtime.Types.Result.GetResult<Prisma.$notesPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one Notes that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {notesFindUniqueOrThrowArgs} args - Arguments to find a Notes
* @example
* // Get one Notes
* const notes = await prisma.notes.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends notesFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, notesFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__notesClient<runtime.Types.Result.GetResult<Prisma.$notesPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first Notes 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 {notesFindFirstArgs} args - Arguments to find a Notes
* @example
* // Get one Notes
* const notes = await prisma.notes.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends notesFindFirstArgs>(args?: Prisma.SelectSubset<T, notesFindFirstArgs<ExtArgs>>): Prisma.Prisma__notesClient<runtime.Types.Result.GetResult<Prisma.$notesPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first Notes 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 {notesFindFirstOrThrowArgs} args - Arguments to find a Notes
* @example
* // Get one Notes
* const notes = await prisma.notes.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends notesFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, notesFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__notesClient<runtime.Types.Result.GetResult<Prisma.$notesPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more Notes 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 {notesFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Notes
* const notes = await prisma.notes.findMany()
*
* // Get first 10 Notes
* const notes = await prisma.notes.findMany({ take: 10 })
*
* // Only select the `id`
* const notesWithIdOnly = await prisma.notes.findMany({ select: { id: true } })
*
*/
findMany<T extends notesFindManyArgs>(args?: Prisma.SelectSubset<T, notesFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$notesPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a Notes.
* @param {notesCreateArgs} args - Arguments to create a Notes.
* @example
* // Create one Notes
* const Notes = await prisma.notes.create({
* data: {
* // ... data to create a Notes
* }
* })
*
*/
create<T extends notesCreateArgs>(args: Prisma.SelectSubset<T, notesCreateArgs<ExtArgs>>): Prisma.Prisma__notesClient<runtime.Types.Result.GetResult<Prisma.$notesPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many Notes.
* @param {notesCreateManyArgs} args - Arguments to create many Notes.
* @example
* // Create many Notes
* const notes = await prisma.notes.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends notesCreateManyArgs>(args?: Prisma.SelectSubset<T, notesCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Delete a Notes.
* @param {notesDeleteArgs} args - Arguments to delete one Notes.
* @example
* // Delete one Notes
* const Notes = await prisma.notes.delete({
* where: {
* // ... filter to delete one Notes
* }
* })
*
*/
delete<T extends notesDeleteArgs>(args: Prisma.SelectSubset<T, notesDeleteArgs<ExtArgs>>): Prisma.Prisma__notesClient<runtime.Types.Result.GetResult<Prisma.$notesPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one Notes.
* @param {notesUpdateArgs} args - Arguments to update one Notes.
* @example
* // Update one Notes
* const notes = await prisma.notes.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends notesUpdateArgs>(args: Prisma.SelectSubset<T, notesUpdateArgs<ExtArgs>>): Prisma.Prisma__notesClient<runtime.Types.Result.GetResult<Prisma.$notesPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more Notes.
* @param {notesDeleteManyArgs} args - Arguments to filter Notes to delete.
* @example
* // Delete a few Notes
* const { count } = await prisma.notes.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends notesDeleteManyArgs>(args?: Prisma.SelectSubset<T, notesDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more Notes.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {notesUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Notes
* const notes = await prisma.notes.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends notesUpdateManyArgs>(args: Prisma.SelectSubset<T, notesUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create or update one Notes.
* @param {notesUpsertArgs} args - Arguments to update or create a Notes.
* @example
* // Update or create a Notes
* const notes = await prisma.notes.upsert({
* create: {
* // ... data to create a Notes
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the Notes we want to update
* }
* })
*/
upsert<T extends notesUpsertArgs>(args: Prisma.SelectSubset<T, notesUpsertArgs<ExtArgs>>): Prisma.Prisma__notesClient<runtime.Types.Result.GetResult<Prisma.$notesPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of Notes.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {notesCountArgs} args - Arguments to filter Notes to count.
* @example
* // Count the number of Notes
* const count = await prisma.notes.count({
* where: {
* // ... the filter for the Notes we want to count
* }
* })
**/
count<T extends notesCountArgs>(
args?: Prisma.Subset<T, notesCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], NotesCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a Notes.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {NotesAggregateArgs} 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 NotesAggregateArgs>(args: Prisma.Subset<T, NotesAggregateArgs>): Prisma.PrismaPromise<GetNotesAggregateType<T>>
/**
* Group by Notes.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {notesGroupByArgs} 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 notesGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: notesGroupByArgs['orderBy'] }
: { orderBy?: notesGroupByArgs['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, notesGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetNotesGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the notes model
*/
readonly fields: notesFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for notes.
* 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__notesClient<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 notes model
*/
export interface notesFieldRefs {
readonly id: Prisma.FieldRef<"notes", 'Int'>
readonly account_id: Prisma.FieldRef<"notes", 'Int'>
readonly notes: Prisma.FieldRef<"notes", 'String'>
}
// Custom InputTypes
/**
* notes findUnique
*/
export type notesFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the notes
*/
select?: Prisma.notesSelect<ExtArgs> | null
/**
* Omit specific fields from the notes
*/
omit?: Prisma.notesOmit<ExtArgs> | null
/**
* Filter, which notes to fetch.
*/
where: Prisma.notesWhereUniqueInput
}
/**
* notes findUniqueOrThrow
*/
export type notesFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the notes
*/
select?: Prisma.notesSelect<ExtArgs> | null
/**
* Omit specific fields from the notes
*/
omit?: Prisma.notesOmit<ExtArgs> | null
/**
* Filter, which notes to fetch.
*/
where: Prisma.notesWhereUniqueInput
}
/**
* notes findFirst
*/
export type notesFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the notes
*/
select?: Prisma.notesSelect<ExtArgs> | null
/**
* Omit specific fields from the notes
*/
omit?: Prisma.notesOmit<ExtArgs> | null
/**
* Filter, which notes to fetch.
*/
where?: Prisma.notesWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of notes to fetch.
*/
orderBy?: Prisma.notesOrderByWithRelationInput | Prisma.notesOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for notes.
*/
cursor?: Prisma.notesWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` notes 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` notes.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of notes.
*/
distinct?: Prisma.NotesScalarFieldEnum | Prisma.NotesScalarFieldEnum[]
}
/**
* notes findFirstOrThrow
*/
export type notesFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the notes
*/
select?: Prisma.notesSelect<ExtArgs> | null
/**
* Omit specific fields from the notes
*/
omit?: Prisma.notesOmit<ExtArgs> | null
/**
* Filter, which notes to fetch.
*/
where?: Prisma.notesWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of notes to fetch.
*/
orderBy?: Prisma.notesOrderByWithRelationInput | Prisma.notesOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for notes.
*/
cursor?: Prisma.notesWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` notes 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` notes.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of notes.
*/
distinct?: Prisma.NotesScalarFieldEnum | Prisma.NotesScalarFieldEnum[]
}
/**
* notes findMany
*/
export type notesFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the notes
*/
select?: Prisma.notesSelect<ExtArgs> | null
/**
* Omit specific fields from the notes
*/
omit?: Prisma.notesOmit<ExtArgs> | null
/**
* Filter, which notes to fetch.
*/
where?: Prisma.notesWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of notes to fetch.
*/
orderBy?: Prisma.notesOrderByWithRelationInput | Prisma.notesOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing notes.
*/
cursor?: Prisma.notesWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` notes 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` notes.
*/
skip?: number
distinct?: Prisma.NotesScalarFieldEnum | Prisma.NotesScalarFieldEnum[]
}
/**
* notes create
*/
export type notesCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the notes
*/
select?: Prisma.notesSelect<ExtArgs> | null
/**
* Omit specific fields from the notes
*/
omit?: Prisma.notesOmit<ExtArgs> | null
/**
* The data needed to create a notes.
*/
data: Prisma.XOR<Prisma.notesCreateInput, Prisma.notesUncheckedCreateInput>
}
/**
* notes createMany
*/
export type notesCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many notes.
*/
data: Prisma.notesCreateManyInput | Prisma.notesCreateManyInput[]
skipDuplicates?: boolean
}
/**
* notes update
*/
export type notesUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the notes
*/
select?: Prisma.notesSelect<ExtArgs> | null
/**
* Omit specific fields from the notes
*/
omit?: Prisma.notesOmit<ExtArgs> | null
/**
* The data needed to update a notes.
*/
data: Prisma.XOR<Prisma.notesUpdateInput, Prisma.notesUncheckedUpdateInput>
/**
* Choose, which notes to update.
*/
where: Prisma.notesWhereUniqueInput
}
/**
* notes updateMany
*/
export type notesUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update notes.
*/
data: Prisma.XOR<Prisma.notesUpdateManyMutationInput, Prisma.notesUncheckedUpdateManyInput>
/**
* Filter which notes to update
*/
where?: Prisma.notesWhereInput
/**
* Limit how many notes to update.
*/
limit?: number
}
/**
* notes upsert
*/
export type notesUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the notes
*/
select?: Prisma.notesSelect<ExtArgs> | null
/**
* Omit specific fields from the notes
*/
omit?: Prisma.notesOmit<ExtArgs> | null
/**
* The filter to search for the notes to update in case it exists.
*/
where: Prisma.notesWhereUniqueInput
/**
* In case the notes found by the `where` argument doesn't exist, create a new notes with this data.
*/
create: Prisma.XOR<Prisma.notesCreateInput, Prisma.notesUncheckedCreateInput>
/**
* In case the notes was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.notesUpdateInput, Prisma.notesUncheckedUpdateInput>
}
/**
* notes delete
*/
export type notesDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the notes
*/
select?: Prisma.notesSelect<ExtArgs> | null
/**
* Omit specific fields from the notes
*/
omit?: Prisma.notesOmit<ExtArgs> | null
/**
* Filter which notes to delete.
*/
where: Prisma.notesWhereUniqueInput
}
/**
* notes deleteMany
*/
export type notesDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which notes to delete
*/
where?: Prisma.notesWhereInput
/**
* Limit how many notes to delete.
*/
limit?: number
}
/**
* notes without action
*/
export type notesDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the notes
*/
select?: Prisma.notesSelect<ExtArgs> | null
/**
* Omit specific fields from the notes
*/
omit?: Prisma.notesOmit<ExtArgs> | null
}