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

1086 lines
39 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_room` 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_room
*
*/
export type conference_roomModel = runtime.Types.Result.DefaultSelection<Prisma.$conference_roomPayload>
export type AggregateConference_room = {
_count: Conference_roomCountAggregateOutputType | null
_avg: Conference_roomAvgAggregateOutputType | null
_sum: Conference_roomSumAggregateOutputType | null
_min: Conference_roomMinAggregateOutputType | null
_max: Conference_roomMaxAggregateOutputType | null
}
export type Conference_roomAvgAggregateOutputType = {
id: number | null
status: number | null
}
export type Conference_roomSumAggregateOutputType = {
id: number | null
status: number | null
}
export type Conference_roomMinAggregateOutputType = {
id: number | null
name: string | null
status: number | null
location: string | null
description: string | null
}
export type Conference_roomMaxAggregateOutputType = {
id: number | null
name: string | null
status: number | null
location: string | null
description: string | null
}
export type Conference_roomCountAggregateOutputType = {
id: number
name: number
status: number
location: number
description: number
_all: number
}
export type Conference_roomAvgAggregateInputType = {
id?: true
status?: true
}
export type Conference_roomSumAggregateInputType = {
id?: true
status?: true
}
export type Conference_roomMinAggregateInputType = {
id?: true
name?: true
status?: true
location?: true
description?: true
}
export type Conference_roomMaxAggregateInputType = {
id?: true
name?: true
status?: true
location?: true
description?: true
}
export type Conference_roomCountAggregateInputType = {
id?: true
name?: true
status?: true
location?: true
description?: true
_all?: true
}
export type Conference_roomAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which conference_room to aggregate.
*/
where?: Prisma.conference_roomWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of conference_rooms to fetch.
*/
orderBy?: Prisma.conference_roomOrderByWithRelationInput | Prisma.conference_roomOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.conference_roomWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` conference_rooms 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` conference_rooms.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned conference_rooms
**/
_count?: true | Conference_roomCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: Conference_roomAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: Conference_roomSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: Conference_roomMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: Conference_roomMaxAggregateInputType
}
export type GetConference_roomAggregateType<T extends Conference_roomAggregateArgs> = {
[P in keyof T & keyof AggregateConference_room]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateConference_room[P]>
: Prisma.GetScalarType<T[P], AggregateConference_room[P]>
}
export type conference_roomGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.conference_roomWhereInput
orderBy?: Prisma.conference_roomOrderByWithAggregationInput | Prisma.conference_roomOrderByWithAggregationInput[]
by: Prisma.Conference_roomScalarFieldEnum[] | Prisma.Conference_roomScalarFieldEnum
having?: Prisma.conference_roomScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: Conference_roomCountAggregateInputType | true
_avg?: Conference_roomAvgAggregateInputType
_sum?: Conference_roomSumAggregateInputType
_min?: Conference_roomMinAggregateInputType
_max?: Conference_roomMaxAggregateInputType
}
export type Conference_roomGroupByOutputType = {
id: number
name: string
status: number
location: string | null
description: string | null
_count: Conference_roomCountAggregateOutputType | null
_avg: Conference_roomAvgAggregateOutputType | null
_sum: Conference_roomSumAggregateOutputType | null
_min: Conference_roomMinAggregateOutputType | null
_max: Conference_roomMaxAggregateOutputType | null
}
type GetConference_roomGroupByPayload<T extends conference_roomGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<Conference_roomGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof Conference_roomGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], Conference_roomGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], Conference_roomGroupByOutputType[P]>
}
>
>
export type conference_roomWhereInput = {
AND?: Prisma.conference_roomWhereInput | Prisma.conference_roomWhereInput[]
OR?: Prisma.conference_roomWhereInput[]
NOT?: Prisma.conference_roomWhereInput | Prisma.conference_roomWhereInput[]
id?: Prisma.IntFilter<"conference_room"> | number
name?: Prisma.StringFilter<"conference_room"> | string
status?: Prisma.IntFilter<"conference_room"> | number
location?: Prisma.StringNullableFilter<"conference_room"> | string | null
description?: Prisma.StringNullableFilter<"conference_room"> | string | null
}
export type conference_roomOrderByWithRelationInput = {
id?: Prisma.SortOrder
name?: Prisma.SortOrder
status?: Prisma.SortOrder
location?: Prisma.SortOrderInput | Prisma.SortOrder
description?: Prisma.SortOrderInput | Prisma.SortOrder
_relevance?: Prisma.conference_roomOrderByRelevanceInput
}
export type conference_roomWhereUniqueInput = Prisma.AtLeast<{
id?: number
AND?: Prisma.conference_roomWhereInput | Prisma.conference_roomWhereInput[]
OR?: Prisma.conference_roomWhereInput[]
NOT?: Prisma.conference_roomWhereInput | Prisma.conference_roomWhereInput[]
name?: Prisma.StringFilter<"conference_room"> | string
status?: Prisma.IntFilter<"conference_room"> | number
location?: Prisma.StringNullableFilter<"conference_room"> | string | null
description?: Prisma.StringNullableFilter<"conference_room"> | string | null
}, "id">
export type conference_roomOrderByWithAggregationInput = {
id?: Prisma.SortOrder
name?: Prisma.SortOrder
status?: Prisma.SortOrder
location?: Prisma.SortOrderInput | Prisma.SortOrder
description?: Prisma.SortOrderInput | Prisma.SortOrder
_count?: Prisma.conference_roomCountOrderByAggregateInput
_avg?: Prisma.conference_roomAvgOrderByAggregateInput
_max?: Prisma.conference_roomMaxOrderByAggregateInput
_min?: Prisma.conference_roomMinOrderByAggregateInput
_sum?: Prisma.conference_roomSumOrderByAggregateInput
}
export type conference_roomScalarWhereWithAggregatesInput = {
AND?: Prisma.conference_roomScalarWhereWithAggregatesInput | Prisma.conference_roomScalarWhereWithAggregatesInput[]
OR?: Prisma.conference_roomScalarWhereWithAggregatesInput[]
NOT?: Prisma.conference_roomScalarWhereWithAggregatesInput | Prisma.conference_roomScalarWhereWithAggregatesInput[]
id?: Prisma.IntWithAggregatesFilter<"conference_room"> | number
name?: Prisma.StringWithAggregatesFilter<"conference_room"> | string
status?: Prisma.IntWithAggregatesFilter<"conference_room"> | number
location?: Prisma.StringNullableWithAggregatesFilter<"conference_room"> | string | null
description?: Prisma.StringNullableWithAggregatesFilter<"conference_room"> | string | null
}
export type conference_roomCreateInput = {
name: string
status?: number
location?: string | null
description?: string | null
}
export type conference_roomUncheckedCreateInput = {
id?: number
name: string
status?: number
location?: string | null
description?: string | null
}
export type conference_roomUpdateInput = {
name?: Prisma.StringFieldUpdateOperationsInput | string
status?: Prisma.IntFieldUpdateOperationsInput | number
location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type conference_roomUncheckedUpdateInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
name?: Prisma.StringFieldUpdateOperationsInput | string
status?: Prisma.IntFieldUpdateOperationsInput | number
location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type conference_roomCreateManyInput = {
id?: number
name: string
status?: number
location?: string | null
description?: string | null
}
export type conference_roomUpdateManyMutationInput = {
name?: Prisma.StringFieldUpdateOperationsInput | string
status?: Prisma.IntFieldUpdateOperationsInput | number
location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type conference_roomUncheckedUpdateManyInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
name?: Prisma.StringFieldUpdateOperationsInput | string
status?: Prisma.IntFieldUpdateOperationsInput | number
location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type conference_roomOrderByRelevanceInput = {
fields: Prisma.conference_roomOrderByRelevanceFieldEnum | Prisma.conference_roomOrderByRelevanceFieldEnum[]
sort: Prisma.SortOrder
search: string
}
export type conference_roomCountOrderByAggregateInput = {
id?: Prisma.SortOrder
name?: Prisma.SortOrder
status?: Prisma.SortOrder
location?: Prisma.SortOrder
description?: Prisma.SortOrder
}
export type conference_roomAvgOrderByAggregateInput = {
id?: Prisma.SortOrder
status?: Prisma.SortOrder
}
export type conference_roomMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
name?: Prisma.SortOrder
status?: Prisma.SortOrder
location?: Prisma.SortOrder
description?: Prisma.SortOrder
}
export type conference_roomMinOrderByAggregateInput = {
id?: Prisma.SortOrder
name?: Prisma.SortOrder
status?: Prisma.SortOrder
location?: Prisma.SortOrder
description?: Prisma.SortOrder
}
export type conference_roomSumOrderByAggregateInput = {
id?: Prisma.SortOrder
status?: Prisma.SortOrder
}
export type conference_roomSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
name?: boolean
status?: boolean
location?: boolean
description?: boolean
}, ExtArgs["result"]["conference_room"]>
export type conference_roomSelectScalar = {
id?: boolean
name?: boolean
status?: boolean
location?: boolean
description?: boolean
}
export type conference_roomOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "status" | "location" | "description", ExtArgs["result"]["conference_room"]>
export type $conference_roomPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "conference_room"
objects: {}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: number
name: string
status: number
location: string | null
description: string | null
}, ExtArgs["result"]["conference_room"]>
composites: {}
}
export type conference_roomGetPayload<S extends boolean | null | undefined | conference_roomDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$conference_roomPayload, S>
export type conference_roomCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<conference_roomFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: Conference_roomCountAggregateInputType | true
}
export interface conference_roomDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['conference_room'], meta: { name: 'conference_room' } }
/**
* Find zero or one Conference_room that matches the filter.
* @param {conference_roomFindUniqueArgs} args - Arguments to find a Conference_room
* @example
* // Get one Conference_room
* const conference_room = await prisma.conference_room.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends conference_roomFindUniqueArgs>(args: Prisma.SelectSubset<T, conference_roomFindUniqueArgs<ExtArgs>>): Prisma.Prisma__conference_roomClient<runtime.Types.Result.GetResult<Prisma.$conference_roomPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one Conference_room that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {conference_roomFindUniqueOrThrowArgs} args - Arguments to find a Conference_room
* @example
* // Get one Conference_room
* const conference_room = await prisma.conference_room.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends conference_roomFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, conference_roomFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__conference_roomClient<runtime.Types.Result.GetResult<Prisma.$conference_roomPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first Conference_room 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 {conference_roomFindFirstArgs} args - Arguments to find a Conference_room
* @example
* // Get one Conference_room
* const conference_room = await prisma.conference_room.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends conference_roomFindFirstArgs>(args?: Prisma.SelectSubset<T, conference_roomFindFirstArgs<ExtArgs>>): Prisma.Prisma__conference_roomClient<runtime.Types.Result.GetResult<Prisma.$conference_roomPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first Conference_room 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 {conference_roomFindFirstOrThrowArgs} args - Arguments to find a Conference_room
* @example
* // Get one Conference_room
* const conference_room = await prisma.conference_room.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends conference_roomFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, conference_roomFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__conference_roomClient<runtime.Types.Result.GetResult<Prisma.$conference_roomPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more Conference_rooms 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 {conference_roomFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Conference_rooms
* const conference_rooms = await prisma.conference_room.findMany()
*
* // Get first 10 Conference_rooms
* const conference_rooms = await prisma.conference_room.findMany({ take: 10 })
*
* // Only select the `id`
* const conference_roomWithIdOnly = await prisma.conference_room.findMany({ select: { id: true } })
*
*/
findMany<T extends conference_roomFindManyArgs>(args?: Prisma.SelectSubset<T, conference_roomFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$conference_roomPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a Conference_room.
* @param {conference_roomCreateArgs} args - Arguments to create a Conference_room.
* @example
* // Create one Conference_room
* const Conference_room = await prisma.conference_room.create({
* data: {
* // ... data to create a Conference_room
* }
* })
*
*/
create<T extends conference_roomCreateArgs>(args: Prisma.SelectSubset<T, conference_roomCreateArgs<ExtArgs>>): Prisma.Prisma__conference_roomClient<runtime.Types.Result.GetResult<Prisma.$conference_roomPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many Conference_rooms.
* @param {conference_roomCreateManyArgs} args - Arguments to create many Conference_rooms.
* @example
* // Create many Conference_rooms
* const conference_room = await prisma.conference_room.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends conference_roomCreateManyArgs>(args?: Prisma.SelectSubset<T, conference_roomCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Delete a Conference_room.
* @param {conference_roomDeleteArgs} args - Arguments to delete one Conference_room.
* @example
* // Delete one Conference_room
* const Conference_room = await prisma.conference_room.delete({
* where: {
* // ... filter to delete one Conference_room
* }
* })
*
*/
delete<T extends conference_roomDeleteArgs>(args: Prisma.SelectSubset<T, conference_roomDeleteArgs<ExtArgs>>): Prisma.Prisma__conference_roomClient<runtime.Types.Result.GetResult<Prisma.$conference_roomPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one Conference_room.
* @param {conference_roomUpdateArgs} args - Arguments to update one Conference_room.
* @example
* // Update one Conference_room
* const conference_room = await prisma.conference_room.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends conference_roomUpdateArgs>(args: Prisma.SelectSubset<T, conference_roomUpdateArgs<ExtArgs>>): Prisma.Prisma__conference_roomClient<runtime.Types.Result.GetResult<Prisma.$conference_roomPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more Conference_rooms.
* @param {conference_roomDeleteManyArgs} args - Arguments to filter Conference_rooms to delete.
* @example
* // Delete a few Conference_rooms
* const { count } = await prisma.conference_room.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends conference_roomDeleteManyArgs>(args?: Prisma.SelectSubset<T, conference_roomDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more Conference_rooms.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {conference_roomUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Conference_rooms
* const conference_room = await prisma.conference_room.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends conference_roomUpdateManyArgs>(args: Prisma.SelectSubset<T, conference_roomUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create or update one Conference_room.
* @param {conference_roomUpsertArgs} args - Arguments to update or create a Conference_room.
* @example
* // Update or create a Conference_room
* const conference_room = await prisma.conference_room.upsert({
* create: {
* // ... data to create a Conference_room
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the Conference_room we want to update
* }
* })
*/
upsert<T extends conference_roomUpsertArgs>(args: Prisma.SelectSubset<T, conference_roomUpsertArgs<ExtArgs>>): Prisma.Prisma__conference_roomClient<runtime.Types.Result.GetResult<Prisma.$conference_roomPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of Conference_rooms.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {conference_roomCountArgs} args - Arguments to filter Conference_rooms to count.
* @example
* // Count the number of Conference_rooms
* const count = await prisma.conference_room.count({
* where: {
* // ... the filter for the Conference_rooms we want to count
* }
* })
**/
count<T extends conference_roomCountArgs>(
args?: Prisma.Subset<T, conference_roomCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], Conference_roomCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a Conference_room.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {Conference_roomAggregateArgs} 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 Conference_roomAggregateArgs>(args: Prisma.Subset<T, Conference_roomAggregateArgs>): Prisma.PrismaPromise<GetConference_roomAggregateType<T>>
/**
* Group by Conference_room.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {conference_roomGroupByArgs} 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 conference_roomGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: conference_roomGroupByArgs['orderBy'] }
: { orderBy?: conference_roomGroupByArgs['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, conference_roomGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetConference_roomGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the conference_room model
*/
readonly fields: conference_roomFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for conference_room.
* 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__conference_roomClient<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_room model
*/
export interface conference_roomFieldRefs {
readonly id: Prisma.FieldRef<"conference_room", 'Int'>
readonly name: Prisma.FieldRef<"conference_room", 'String'>
readonly status: Prisma.FieldRef<"conference_room", 'Int'>
readonly location: Prisma.FieldRef<"conference_room", 'String'>
readonly description: Prisma.FieldRef<"conference_room", 'String'>
}
// Custom InputTypes
/**
* conference_room findUnique
*/
export type conference_roomFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the conference_room
*/
select?: Prisma.conference_roomSelect<ExtArgs> | null
/**
* Omit specific fields from the conference_room
*/
omit?: Prisma.conference_roomOmit<ExtArgs> | null
/**
* Filter, which conference_room to fetch.
*/
where: Prisma.conference_roomWhereUniqueInput
}
/**
* conference_room findUniqueOrThrow
*/
export type conference_roomFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the conference_room
*/
select?: Prisma.conference_roomSelect<ExtArgs> | null
/**
* Omit specific fields from the conference_room
*/
omit?: Prisma.conference_roomOmit<ExtArgs> | null
/**
* Filter, which conference_room to fetch.
*/
where: Prisma.conference_roomWhereUniqueInput
}
/**
* conference_room findFirst
*/
export type conference_roomFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the conference_room
*/
select?: Prisma.conference_roomSelect<ExtArgs> | null
/**
* Omit specific fields from the conference_room
*/
omit?: Prisma.conference_roomOmit<ExtArgs> | null
/**
* Filter, which conference_room to fetch.
*/
where?: Prisma.conference_roomWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of conference_rooms to fetch.
*/
orderBy?: Prisma.conference_roomOrderByWithRelationInput | Prisma.conference_roomOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for conference_rooms.
*/
cursor?: Prisma.conference_roomWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` conference_rooms 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` conference_rooms.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of conference_rooms.
*/
distinct?: Prisma.Conference_roomScalarFieldEnum | Prisma.Conference_roomScalarFieldEnum[]
}
/**
* conference_room findFirstOrThrow
*/
export type conference_roomFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the conference_room
*/
select?: Prisma.conference_roomSelect<ExtArgs> | null
/**
* Omit specific fields from the conference_room
*/
omit?: Prisma.conference_roomOmit<ExtArgs> | null
/**
* Filter, which conference_room to fetch.
*/
where?: Prisma.conference_roomWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of conference_rooms to fetch.
*/
orderBy?: Prisma.conference_roomOrderByWithRelationInput | Prisma.conference_roomOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for conference_rooms.
*/
cursor?: Prisma.conference_roomWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` conference_rooms 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` conference_rooms.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of conference_rooms.
*/
distinct?: Prisma.Conference_roomScalarFieldEnum | Prisma.Conference_roomScalarFieldEnum[]
}
/**
* conference_room findMany
*/
export type conference_roomFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the conference_room
*/
select?: Prisma.conference_roomSelect<ExtArgs> | null
/**
* Omit specific fields from the conference_room
*/
omit?: Prisma.conference_roomOmit<ExtArgs> | null
/**
* Filter, which conference_rooms to fetch.
*/
where?: Prisma.conference_roomWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of conference_rooms to fetch.
*/
orderBy?: Prisma.conference_roomOrderByWithRelationInput | Prisma.conference_roomOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing conference_rooms.
*/
cursor?: Prisma.conference_roomWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` conference_rooms 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` conference_rooms.
*/
skip?: number
distinct?: Prisma.Conference_roomScalarFieldEnum | Prisma.Conference_roomScalarFieldEnum[]
}
/**
* conference_room create
*/
export type conference_roomCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the conference_room
*/
select?: Prisma.conference_roomSelect<ExtArgs> | null
/**
* Omit specific fields from the conference_room
*/
omit?: Prisma.conference_roomOmit<ExtArgs> | null
/**
* The data needed to create a conference_room.
*/
data: Prisma.XOR<Prisma.conference_roomCreateInput, Prisma.conference_roomUncheckedCreateInput>
}
/**
* conference_room createMany
*/
export type conference_roomCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many conference_rooms.
*/
data: Prisma.conference_roomCreateManyInput | Prisma.conference_roomCreateManyInput[]
skipDuplicates?: boolean
}
/**
* conference_room update
*/
export type conference_roomUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the conference_room
*/
select?: Prisma.conference_roomSelect<ExtArgs> | null
/**
* Omit specific fields from the conference_room
*/
omit?: Prisma.conference_roomOmit<ExtArgs> | null
/**
* The data needed to update a conference_room.
*/
data: Prisma.XOR<Prisma.conference_roomUpdateInput, Prisma.conference_roomUncheckedUpdateInput>
/**
* Choose, which conference_room to update.
*/
where: Prisma.conference_roomWhereUniqueInput
}
/**
* conference_room updateMany
*/
export type conference_roomUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update conference_rooms.
*/
data: Prisma.XOR<Prisma.conference_roomUpdateManyMutationInput, Prisma.conference_roomUncheckedUpdateManyInput>
/**
* Filter which conference_rooms to update
*/
where?: Prisma.conference_roomWhereInput
/**
* Limit how many conference_rooms to update.
*/
limit?: number
}
/**
* conference_room upsert
*/
export type conference_roomUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the conference_room
*/
select?: Prisma.conference_roomSelect<ExtArgs> | null
/**
* Omit specific fields from the conference_room
*/
omit?: Prisma.conference_roomOmit<ExtArgs> | null
/**
* The filter to search for the conference_room to update in case it exists.
*/
where: Prisma.conference_roomWhereUniqueInput
/**
* In case the conference_room found by the `where` argument doesn't exist, create a new conference_room with this data.
*/
create: Prisma.XOR<Prisma.conference_roomCreateInput, Prisma.conference_roomUncheckedCreateInput>
/**
* In case the conference_room was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.conference_roomUpdateInput, Prisma.conference_roomUncheckedUpdateInput>
}
/**
* conference_room delete
*/
export type conference_roomDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the conference_room
*/
select?: Prisma.conference_roomSelect<ExtArgs> | null
/**
* Omit specific fields from the conference_room
*/
omit?: Prisma.conference_roomOmit<ExtArgs> | null
/**
* Filter which conference_room to delete.
*/
where: Prisma.conference_roomWhereUniqueInput
}
/**
* conference_room deleteMany
*/
export type conference_roomDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which conference_rooms to delete
*/
where?: Prisma.conference_roomWhereInput
/**
* Limit how many conference_rooms to delete.
*/
limit?: number
}
/**
* conference_room without action
*/
export type conference_roomDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the conference_room
*/
select?: Prisma.conference_roomSelect<ExtArgs> | null
/**
* Omit specific fields from the conference_room
*/
omit?: Prisma.conference_roomOmit<ExtArgs> | null
}