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

1170 lines
40 KiB
TypeScript

/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck
/*
* This file exports the `conference` 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 conference
* This model or at least one of its fields has comments in the database, and requires an additional setup for migrations: Read more: https://pris.ly/d/database-comments
*/
export type conferenceModel = runtime.Types.Result.DefaultSelection<Prisma.$conferencePayload>
export type AggregateConference = {
_count: ConferenceCountAggregateOutputType | null
_avg: ConferenceAvgAggregateOutputType | null
_sum: ConferenceSumAggregateOutputType | null
_min: ConferenceMinAggregateOutputType | null
_max: ConferenceMaxAggregateOutputType | null
}
export type ConferenceAvgAggregateOutputType = {
id: number | null
room_id: number | null
host: number | null
}
export type ConferenceSumAggregateOutputType = {
id: number | null
room_id: number | null
host: number | null
}
export type ConferenceMinAggregateOutputType = {
id: number | null
room_id: number | null
time_start: string | null
time_end: string | null
name: string | null
description: string | null
host: number | null
participant: string | null
}
export type ConferenceMaxAggregateOutputType = {
id: number | null
room_id: number | null
time_start: string | null
time_end: string | null
name: string | null
description: string | null
host: number | null
participant: string | null
}
export type ConferenceCountAggregateOutputType = {
id: number
room_id: number
time_start: number
time_end: number
name: number
description: number
host: number
participant: number
_all: number
}
export type ConferenceAvgAggregateInputType = {
id?: true
room_id?: true
host?: true
}
export type ConferenceSumAggregateInputType = {
id?: true
room_id?: true
host?: true
}
export type ConferenceMinAggregateInputType = {
id?: true
room_id?: true
time_start?: true
time_end?: true
name?: true
description?: true
host?: true
participant?: true
}
export type ConferenceMaxAggregateInputType = {
id?: true
room_id?: true
time_start?: true
time_end?: true
name?: true
description?: true
host?: true
participant?: true
}
export type ConferenceCountAggregateInputType = {
id?: true
room_id?: true
time_start?: true
time_end?: true
name?: true
description?: true
host?: true
participant?: true
_all?: true
}
export type ConferenceAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which conference to aggregate.
*/
where?: Prisma.conferenceWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of conferences to fetch.
*/
orderBy?: Prisma.conferenceOrderByWithRelationInput | Prisma.conferenceOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.conferenceWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` conferences 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` conferences.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned conferences
**/
_count?: true | ConferenceCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: ConferenceAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: ConferenceSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: ConferenceMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: ConferenceMaxAggregateInputType
}
export type GetConferenceAggregateType<T extends ConferenceAggregateArgs> = {
[P in keyof T & keyof AggregateConference]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateConference[P]>
: Prisma.GetScalarType<T[P], AggregateConference[P]>
}
export type conferenceGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.conferenceWhereInput
orderBy?: Prisma.conferenceOrderByWithAggregationInput | Prisma.conferenceOrderByWithAggregationInput[]
by: Prisma.ConferenceScalarFieldEnum[] | Prisma.ConferenceScalarFieldEnum
having?: Prisma.conferenceScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: ConferenceCountAggregateInputType | true
_avg?: ConferenceAvgAggregateInputType
_sum?: ConferenceSumAggregateInputType
_min?: ConferenceMinAggregateInputType
_max?: ConferenceMaxAggregateInputType
}
export type ConferenceGroupByOutputType = {
id: number
room_id: number
time_start: string
time_end: string
name: string
description: string | null
host: number
participant: string
_count: ConferenceCountAggregateOutputType | null
_avg: ConferenceAvgAggregateOutputType | null
_sum: ConferenceSumAggregateOutputType | null
_min: ConferenceMinAggregateOutputType | null
_max: ConferenceMaxAggregateOutputType | null
}
type GetConferenceGroupByPayload<T extends conferenceGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<ConferenceGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof ConferenceGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], ConferenceGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], ConferenceGroupByOutputType[P]>
}
>
>
export type conferenceWhereInput = {
AND?: Prisma.conferenceWhereInput | Prisma.conferenceWhereInput[]
OR?: Prisma.conferenceWhereInput[]
NOT?: Prisma.conferenceWhereInput | Prisma.conferenceWhereInput[]
id?: Prisma.IntFilter<"conference"> | number
room_id?: Prisma.IntFilter<"conference"> | number
time_start?: Prisma.StringFilter<"conference"> | string
time_end?: Prisma.StringFilter<"conference"> | string
name?: Prisma.StringFilter<"conference"> | string
description?: Prisma.StringNullableFilter<"conference"> | string | null
host?: Prisma.IntFilter<"conference"> | number
participant?: Prisma.StringFilter<"conference"> | string
}
export type conferenceOrderByWithRelationInput = {
id?: Prisma.SortOrder
room_id?: Prisma.SortOrder
time_start?: Prisma.SortOrder
time_end?: Prisma.SortOrder
name?: Prisma.SortOrder
description?: Prisma.SortOrderInput | Prisma.SortOrder
host?: Prisma.SortOrder
participant?: Prisma.SortOrder
_relevance?: Prisma.conferenceOrderByRelevanceInput
}
export type conferenceWhereUniqueInput = Prisma.AtLeast<{
id?: number
AND?: Prisma.conferenceWhereInput | Prisma.conferenceWhereInput[]
OR?: Prisma.conferenceWhereInput[]
NOT?: Prisma.conferenceWhereInput | Prisma.conferenceWhereInput[]
room_id?: Prisma.IntFilter<"conference"> | number
time_start?: Prisma.StringFilter<"conference"> | string
time_end?: Prisma.StringFilter<"conference"> | string
name?: Prisma.StringFilter<"conference"> | string
description?: Prisma.StringNullableFilter<"conference"> | string | null
host?: Prisma.IntFilter<"conference"> | number
participant?: Prisma.StringFilter<"conference"> | string
}, "id">
export type conferenceOrderByWithAggregationInput = {
id?: Prisma.SortOrder
room_id?: Prisma.SortOrder
time_start?: Prisma.SortOrder
time_end?: Prisma.SortOrder
name?: Prisma.SortOrder
description?: Prisma.SortOrderInput | Prisma.SortOrder
host?: Prisma.SortOrder
participant?: Prisma.SortOrder
_count?: Prisma.conferenceCountOrderByAggregateInput
_avg?: Prisma.conferenceAvgOrderByAggregateInput
_max?: Prisma.conferenceMaxOrderByAggregateInput
_min?: Prisma.conferenceMinOrderByAggregateInput
_sum?: Prisma.conferenceSumOrderByAggregateInput
}
export type conferenceScalarWhereWithAggregatesInput = {
AND?: Prisma.conferenceScalarWhereWithAggregatesInput | Prisma.conferenceScalarWhereWithAggregatesInput[]
OR?: Prisma.conferenceScalarWhereWithAggregatesInput[]
NOT?: Prisma.conferenceScalarWhereWithAggregatesInput | Prisma.conferenceScalarWhereWithAggregatesInput[]
id?: Prisma.IntWithAggregatesFilter<"conference"> | number
room_id?: Prisma.IntWithAggregatesFilter<"conference"> | number
time_start?: Prisma.StringWithAggregatesFilter<"conference"> | string
time_end?: Prisma.StringWithAggregatesFilter<"conference"> | string
name?: Prisma.StringWithAggregatesFilter<"conference"> | string
description?: Prisma.StringNullableWithAggregatesFilter<"conference"> | string | null
host?: Prisma.IntWithAggregatesFilter<"conference"> | number
participant?: Prisma.StringWithAggregatesFilter<"conference"> | string
}
export type conferenceCreateInput = {
room_id: number
time_start: string
time_end: string
name: string
description?: string | null
host: number
participant: string
}
export type conferenceUncheckedCreateInput = {
id?: number
room_id: number
time_start: string
time_end: string
name: string
description?: string | null
host: number
participant: string
}
export type conferenceUpdateInput = {
room_id?: Prisma.IntFieldUpdateOperationsInput | number
time_start?: Prisma.StringFieldUpdateOperationsInput | string
time_end?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
host?: Prisma.IntFieldUpdateOperationsInput | number
participant?: Prisma.StringFieldUpdateOperationsInput | string
}
export type conferenceUncheckedUpdateInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
room_id?: Prisma.IntFieldUpdateOperationsInput | number
time_start?: Prisma.StringFieldUpdateOperationsInput | string
time_end?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
host?: Prisma.IntFieldUpdateOperationsInput | number
participant?: Prisma.StringFieldUpdateOperationsInput | string
}
export type conferenceCreateManyInput = {
id?: number
room_id: number
time_start: string
time_end: string
name: string
description?: string | null
host: number
participant: string
}
export type conferenceUpdateManyMutationInput = {
room_id?: Prisma.IntFieldUpdateOperationsInput | number
time_start?: Prisma.StringFieldUpdateOperationsInput | string
time_end?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
host?: Prisma.IntFieldUpdateOperationsInput | number
participant?: Prisma.StringFieldUpdateOperationsInput | string
}
export type conferenceUncheckedUpdateManyInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
room_id?: Prisma.IntFieldUpdateOperationsInput | number
time_start?: Prisma.StringFieldUpdateOperationsInput | string
time_end?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
host?: Prisma.IntFieldUpdateOperationsInput | number
participant?: Prisma.StringFieldUpdateOperationsInput | string
}
export type conferenceOrderByRelevanceInput = {
fields: Prisma.conferenceOrderByRelevanceFieldEnum | Prisma.conferenceOrderByRelevanceFieldEnum[]
sort: Prisma.SortOrder
search: string
}
export type conferenceCountOrderByAggregateInput = {
id?: Prisma.SortOrder
room_id?: Prisma.SortOrder
time_start?: Prisma.SortOrder
time_end?: Prisma.SortOrder
name?: Prisma.SortOrder
description?: Prisma.SortOrder
host?: Prisma.SortOrder
participant?: Prisma.SortOrder
}
export type conferenceAvgOrderByAggregateInput = {
id?: Prisma.SortOrder
room_id?: Prisma.SortOrder
host?: Prisma.SortOrder
}
export type conferenceMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
room_id?: Prisma.SortOrder
time_start?: Prisma.SortOrder
time_end?: Prisma.SortOrder
name?: Prisma.SortOrder
description?: Prisma.SortOrder
host?: Prisma.SortOrder
participant?: Prisma.SortOrder
}
export type conferenceMinOrderByAggregateInput = {
id?: Prisma.SortOrder
room_id?: Prisma.SortOrder
time_start?: Prisma.SortOrder
time_end?: Prisma.SortOrder
name?: Prisma.SortOrder
description?: Prisma.SortOrder
host?: Prisma.SortOrder
participant?: Prisma.SortOrder
}
export type conferenceSumOrderByAggregateInput = {
id?: Prisma.SortOrder
room_id?: Prisma.SortOrder
host?: Prisma.SortOrder
}
export type conferenceSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
room_id?: boolean
time_start?: boolean
time_end?: boolean
name?: boolean
description?: boolean
host?: boolean
participant?: boolean
}, ExtArgs["result"]["conference"]>
export type conferenceSelectScalar = {
id?: boolean
room_id?: boolean
time_start?: boolean
time_end?: boolean
name?: boolean
description?: boolean
host?: boolean
participant?: boolean
}
export type conferenceOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "room_id" | "time_start" | "time_end" | "name" | "description" | "host" | "participant", ExtArgs["result"]["conference"]>
export type $conferencePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "conference"
objects: {}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: number
room_id: number
time_start: string
time_end: string
name: string
description: string | null
host: number
participant: string
}, ExtArgs["result"]["conference"]>
composites: {}
}
export type conferenceGetPayload<S extends boolean | null | undefined | conferenceDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$conferencePayload, S>
export type conferenceCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<conferenceFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: ConferenceCountAggregateInputType | true
}
export interface conferenceDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['conference'], meta: { name: 'conference' } }
/**
* Find zero or one Conference that matches the filter.
* @param {conferenceFindUniqueArgs} args - Arguments to find a Conference
* @example
* // Get one Conference
* const conference = await prisma.conference.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends conferenceFindUniqueArgs>(args: Prisma.SelectSubset<T, conferenceFindUniqueArgs<ExtArgs>>): Prisma.Prisma__conferenceClient<runtime.Types.Result.GetResult<Prisma.$conferencePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one Conference that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {conferenceFindUniqueOrThrowArgs} args - Arguments to find a Conference
* @example
* // Get one Conference
* const conference = await prisma.conference.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends conferenceFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, conferenceFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__conferenceClient<runtime.Types.Result.GetResult<Prisma.$conferencePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first Conference 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 {conferenceFindFirstArgs} args - Arguments to find a Conference
* @example
* // Get one Conference
* const conference = await prisma.conference.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends conferenceFindFirstArgs>(args?: Prisma.SelectSubset<T, conferenceFindFirstArgs<ExtArgs>>): Prisma.Prisma__conferenceClient<runtime.Types.Result.GetResult<Prisma.$conferencePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first Conference 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 {conferenceFindFirstOrThrowArgs} args - Arguments to find a Conference
* @example
* // Get one Conference
* const conference = await prisma.conference.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends conferenceFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, conferenceFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__conferenceClient<runtime.Types.Result.GetResult<Prisma.$conferencePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more Conferences 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 {conferenceFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Conferences
* const conferences = await prisma.conference.findMany()
*
* // Get first 10 Conferences
* const conferences = await prisma.conference.findMany({ take: 10 })
*
* // Only select the `id`
* const conferenceWithIdOnly = await prisma.conference.findMany({ select: { id: true } })
*
*/
findMany<T extends conferenceFindManyArgs>(args?: Prisma.SelectSubset<T, conferenceFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$conferencePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a Conference.
* @param {conferenceCreateArgs} args - Arguments to create a Conference.
* @example
* // Create one Conference
* const Conference = await prisma.conference.create({
* data: {
* // ... data to create a Conference
* }
* })
*
*/
create<T extends conferenceCreateArgs>(args: Prisma.SelectSubset<T, conferenceCreateArgs<ExtArgs>>): Prisma.Prisma__conferenceClient<runtime.Types.Result.GetResult<Prisma.$conferencePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many Conferences.
* @param {conferenceCreateManyArgs} args - Arguments to create many Conferences.
* @example
* // Create many Conferences
* const conference = await prisma.conference.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends conferenceCreateManyArgs>(args?: Prisma.SelectSubset<T, conferenceCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Delete a Conference.
* @param {conferenceDeleteArgs} args - Arguments to delete one Conference.
* @example
* // Delete one Conference
* const Conference = await prisma.conference.delete({
* where: {
* // ... filter to delete one Conference
* }
* })
*
*/
delete<T extends conferenceDeleteArgs>(args: Prisma.SelectSubset<T, conferenceDeleteArgs<ExtArgs>>): Prisma.Prisma__conferenceClient<runtime.Types.Result.GetResult<Prisma.$conferencePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one Conference.
* @param {conferenceUpdateArgs} args - Arguments to update one Conference.
* @example
* // Update one Conference
* const conference = await prisma.conference.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends conferenceUpdateArgs>(args: Prisma.SelectSubset<T, conferenceUpdateArgs<ExtArgs>>): Prisma.Prisma__conferenceClient<runtime.Types.Result.GetResult<Prisma.$conferencePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more Conferences.
* @param {conferenceDeleteManyArgs} args - Arguments to filter Conferences to delete.
* @example
* // Delete a few Conferences
* const { count } = await prisma.conference.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends conferenceDeleteManyArgs>(args?: Prisma.SelectSubset<T, conferenceDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more Conferences.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {conferenceUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Conferences
* const conference = await prisma.conference.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends conferenceUpdateManyArgs>(args: Prisma.SelectSubset<T, conferenceUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create or update one Conference.
* @param {conferenceUpsertArgs} args - Arguments to update or create a Conference.
* @example
* // Update or create a Conference
* const conference = await prisma.conference.upsert({
* create: {
* // ... data to create a Conference
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the Conference we want to update
* }
* })
*/
upsert<T extends conferenceUpsertArgs>(args: Prisma.SelectSubset<T, conferenceUpsertArgs<ExtArgs>>): Prisma.Prisma__conferenceClient<runtime.Types.Result.GetResult<Prisma.$conferencePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of Conferences.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {conferenceCountArgs} args - Arguments to filter Conferences to count.
* @example
* // Count the number of Conferences
* const count = await prisma.conference.count({
* where: {
* // ... the filter for the Conferences we want to count
* }
* })
**/
count<T extends conferenceCountArgs>(
args?: Prisma.Subset<T, conferenceCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], ConferenceCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a Conference.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {ConferenceAggregateArgs} 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 ConferenceAggregateArgs>(args: Prisma.Subset<T, ConferenceAggregateArgs>): Prisma.PrismaPromise<GetConferenceAggregateType<T>>
/**
* Group by Conference.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {conferenceGroupByArgs} 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 conferenceGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: conferenceGroupByArgs['orderBy'] }
: { orderBy?: conferenceGroupByArgs['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, conferenceGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetConferenceGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the conference model
*/
readonly fields: conferenceFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for conference.
* 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__conferenceClient<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 conference model
*/
export interface conferenceFieldRefs {
readonly id: Prisma.FieldRef<"conference", 'Int'>
readonly room_id: Prisma.FieldRef<"conference", 'Int'>
readonly time_start: Prisma.FieldRef<"conference", 'String'>
readonly time_end: Prisma.FieldRef<"conference", 'String'>
readonly name: Prisma.FieldRef<"conference", 'String'>
readonly description: Prisma.FieldRef<"conference", 'String'>
readonly host: Prisma.FieldRef<"conference", 'Int'>
readonly participant: Prisma.FieldRef<"conference", 'String'>
}
// Custom InputTypes
/**
* conference findUnique
*/
export type conferenceFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the conference
*/
select?: Prisma.conferenceSelect<ExtArgs> | null
/**
* Omit specific fields from the conference
*/
omit?: Prisma.conferenceOmit<ExtArgs> | null
/**
* Filter, which conference to fetch.
*/
where: Prisma.conferenceWhereUniqueInput
}
/**
* conference findUniqueOrThrow
*/
export type conferenceFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the conference
*/
select?: Prisma.conferenceSelect<ExtArgs> | null
/**
* Omit specific fields from the conference
*/
omit?: Prisma.conferenceOmit<ExtArgs> | null
/**
* Filter, which conference to fetch.
*/
where: Prisma.conferenceWhereUniqueInput
}
/**
* conference findFirst
*/
export type conferenceFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the conference
*/
select?: Prisma.conferenceSelect<ExtArgs> | null
/**
* Omit specific fields from the conference
*/
omit?: Prisma.conferenceOmit<ExtArgs> | null
/**
* Filter, which conference to fetch.
*/
where?: Prisma.conferenceWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of conferences to fetch.
*/
orderBy?: Prisma.conferenceOrderByWithRelationInput | Prisma.conferenceOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for conferences.
*/
cursor?: Prisma.conferenceWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` conferences 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` conferences.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of conferences.
*/
distinct?: Prisma.ConferenceScalarFieldEnum | Prisma.ConferenceScalarFieldEnum[]
}
/**
* conference findFirstOrThrow
*/
export type conferenceFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the conference
*/
select?: Prisma.conferenceSelect<ExtArgs> | null
/**
* Omit specific fields from the conference
*/
omit?: Prisma.conferenceOmit<ExtArgs> | null
/**
* Filter, which conference to fetch.
*/
where?: Prisma.conferenceWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of conferences to fetch.
*/
orderBy?: Prisma.conferenceOrderByWithRelationInput | Prisma.conferenceOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for conferences.
*/
cursor?: Prisma.conferenceWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` conferences 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` conferences.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of conferences.
*/
distinct?: Prisma.ConferenceScalarFieldEnum | Prisma.ConferenceScalarFieldEnum[]
}
/**
* conference findMany
*/
export type conferenceFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the conference
*/
select?: Prisma.conferenceSelect<ExtArgs> | null
/**
* Omit specific fields from the conference
*/
omit?: Prisma.conferenceOmit<ExtArgs> | null
/**
* Filter, which conferences to fetch.
*/
where?: Prisma.conferenceWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of conferences to fetch.
*/
orderBy?: Prisma.conferenceOrderByWithRelationInput | Prisma.conferenceOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing conferences.
*/
cursor?: Prisma.conferenceWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` conferences 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` conferences.
*/
skip?: number
distinct?: Prisma.ConferenceScalarFieldEnum | Prisma.ConferenceScalarFieldEnum[]
}
/**
* conference create
*/
export type conferenceCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the conference
*/
select?: Prisma.conferenceSelect<ExtArgs> | null
/**
* Omit specific fields from the conference
*/
omit?: Prisma.conferenceOmit<ExtArgs> | null
/**
* The data needed to create a conference.
*/
data: Prisma.XOR<Prisma.conferenceCreateInput, Prisma.conferenceUncheckedCreateInput>
}
/**
* conference createMany
*/
export type conferenceCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many conferences.
*/
data: Prisma.conferenceCreateManyInput | Prisma.conferenceCreateManyInput[]
skipDuplicates?: boolean
}
/**
* conference update
*/
export type conferenceUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the conference
*/
select?: Prisma.conferenceSelect<ExtArgs> | null
/**
* Omit specific fields from the conference
*/
omit?: Prisma.conferenceOmit<ExtArgs> | null
/**
* The data needed to update a conference.
*/
data: Prisma.XOR<Prisma.conferenceUpdateInput, Prisma.conferenceUncheckedUpdateInput>
/**
* Choose, which conference to update.
*/
where: Prisma.conferenceWhereUniqueInput
}
/**
* conference updateMany
*/
export type conferenceUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update conferences.
*/
data: Prisma.XOR<Prisma.conferenceUpdateManyMutationInput, Prisma.conferenceUncheckedUpdateManyInput>
/**
* Filter which conferences to update
*/
where?: Prisma.conferenceWhereInput
/**
* Limit how many conferences to update.
*/
limit?: number
}
/**
* conference upsert
*/
export type conferenceUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the conference
*/
select?: Prisma.conferenceSelect<ExtArgs> | null
/**
* Omit specific fields from the conference
*/
omit?: Prisma.conferenceOmit<ExtArgs> | null
/**
* The filter to search for the conference to update in case it exists.
*/
where: Prisma.conferenceWhereUniqueInput
/**
* In case the conference found by the `where` argument doesn't exist, create a new conference with this data.
*/
create: Prisma.XOR<Prisma.conferenceCreateInput, Prisma.conferenceUncheckedCreateInput>
/**
* In case the conference was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.conferenceUpdateInput, Prisma.conferenceUncheckedUpdateInput>
}
/**
* conference delete
*/
export type conferenceDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the conference
*/
select?: Prisma.conferenceSelect<ExtArgs> | null
/**
* Omit specific fields from the conference
*/
omit?: Prisma.conferenceOmit<ExtArgs> | null
/**
* Filter which conference to delete.
*/
where: Prisma.conferenceWhereUniqueInput
}
/**
* conference deleteMany
*/
export type conferenceDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which conferences to delete
*/
where?: Prisma.conferenceWhereInput
/**
* Limit how many conferences to delete.
*/
limit?: number
}
/**
* conference without action
*/
export type conferenceDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the conference
*/
select?: Prisma.conferenceSelect<ExtArgs> | null
/**
* Omit specific fields from the conference
*/
omit?: Prisma.conferenceOmit<ExtArgs> | null
}