/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `ticket_calendar_lock` 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 ticket_calendar_lock * */ export type ticket_calendar_lockModel = runtime.Types.Result.DefaultSelection export type AggregateTicket_calendar_lock = { _count: Ticket_calendar_lockCountAggregateOutputType | null _avg: Ticket_calendar_lockAvgAggregateOutputType | null _sum: Ticket_calendar_lockSumAggregateOutputType | null _min: Ticket_calendar_lockMinAggregateOutputType | null _max: Ticket_calendar_lockMaxAggregateOutputType | null } export type Ticket_calendar_lockAvgAggregateOutputType = { id: number | null date_lock: number | null dept_id: number | null nb_install: number | null create_by: number | null update_by: number | null } export type Ticket_calendar_lockSumAggregateOutputType = { id: number | null date_lock: bigint | null dept_id: number | null nb_install: number | null create_by: number | null update_by: number | null } export type Ticket_calendar_lockMinAggregateOutputType = { id: number | null date_lock: bigint | null dept_id: number | null nb_install: number | null create_by: number | null update_by: number | null last_update: Date | null } export type Ticket_calendar_lockMaxAggregateOutputType = { id: number | null date_lock: bigint | null dept_id: number | null nb_install: number | null create_by: number | null update_by: number | null last_update: Date | null } export type Ticket_calendar_lockCountAggregateOutputType = { id: number date_lock: number dept_id: number nb_install: number create_by: number update_by: number last_update: number _all: number } export type Ticket_calendar_lockAvgAggregateInputType = { id?: true date_lock?: true dept_id?: true nb_install?: true create_by?: true update_by?: true } export type Ticket_calendar_lockSumAggregateInputType = { id?: true date_lock?: true dept_id?: true nb_install?: true create_by?: true update_by?: true } export type Ticket_calendar_lockMinAggregateInputType = { id?: true date_lock?: true dept_id?: true nb_install?: true create_by?: true update_by?: true last_update?: true } export type Ticket_calendar_lockMaxAggregateInputType = { id?: true date_lock?: true dept_id?: true nb_install?: true create_by?: true update_by?: true last_update?: true } export type Ticket_calendar_lockCountAggregateInputType = { id?: true date_lock?: true dept_id?: true nb_install?: true create_by?: true update_by?: true last_update?: true _all?: true } export type Ticket_calendar_lockAggregateArgs = { /** * Filter which ticket_calendar_lock to aggregate. */ where?: Prisma.ticket_calendar_lockWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ticket_calendar_locks to fetch. */ orderBy?: Prisma.ticket_calendar_lockOrderByWithRelationInput | Prisma.ticket_calendar_lockOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.ticket_calendar_lockWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ticket_calendar_locks 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` ticket_calendar_locks. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned ticket_calendar_locks **/ _count?: true | Ticket_calendar_lockCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: Ticket_calendar_lockAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: Ticket_calendar_lockSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: Ticket_calendar_lockMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: Ticket_calendar_lockMaxAggregateInputType } export type GetTicket_calendar_lockAggregateType = { [P in keyof T & keyof AggregateTicket_calendar_lock]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type ticket_calendar_lockGroupByArgs = { where?: Prisma.ticket_calendar_lockWhereInput orderBy?: Prisma.ticket_calendar_lockOrderByWithAggregationInput | Prisma.ticket_calendar_lockOrderByWithAggregationInput[] by: Prisma.Ticket_calendar_lockScalarFieldEnum[] | Prisma.Ticket_calendar_lockScalarFieldEnum having?: Prisma.ticket_calendar_lockScalarWhereWithAggregatesInput take?: number skip?: number _count?: Ticket_calendar_lockCountAggregateInputType | true _avg?: Ticket_calendar_lockAvgAggregateInputType _sum?: Ticket_calendar_lockSumAggregateInputType _min?: Ticket_calendar_lockMinAggregateInputType _max?: Ticket_calendar_lockMaxAggregateInputType } export type Ticket_calendar_lockGroupByOutputType = { id: number date_lock: bigint dept_id: number nb_install: number create_by: number update_by: number last_update: Date _count: Ticket_calendar_lockCountAggregateOutputType | null _avg: Ticket_calendar_lockAvgAggregateOutputType | null _sum: Ticket_calendar_lockSumAggregateOutputType | null _min: Ticket_calendar_lockMinAggregateOutputType | null _max: Ticket_calendar_lockMaxAggregateOutputType | null } type GetTicket_calendar_lockGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof Ticket_calendar_lockGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type ticket_calendar_lockWhereInput = { AND?: Prisma.ticket_calendar_lockWhereInput | Prisma.ticket_calendar_lockWhereInput[] OR?: Prisma.ticket_calendar_lockWhereInput[] NOT?: Prisma.ticket_calendar_lockWhereInput | Prisma.ticket_calendar_lockWhereInput[] id?: Prisma.IntFilter<"ticket_calendar_lock"> | number date_lock?: Prisma.BigIntFilter<"ticket_calendar_lock"> | bigint | number dept_id?: Prisma.IntFilter<"ticket_calendar_lock"> | number nb_install?: Prisma.IntFilter<"ticket_calendar_lock"> | number create_by?: Prisma.IntFilter<"ticket_calendar_lock"> | number update_by?: Prisma.IntFilter<"ticket_calendar_lock"> | number last_update?: Prisma.DateTimeFilter<"ticket_calendar_lock"> | Date | string } export type ticket_calendar_lockOrderByWithRelationInput = { id?: Prisma.SortOrder date_lock?: Prisma.SortOrder dept_id?: Prisma.SortOrder nb_install?: Prisma.SortOrder create_by?: Prisma.SortOrder update_by?: Prisma.SortOrder last_update?: Prisma.SortOrder } export type ticket_calendar_lockWhereUniqueInput = Prisma.AtLeast<{ id?: number date_lock_dept_id?: Prisma.ticket_calendar_lockDate_lockDept_idCompoundUniqueInput AND?: Prisma.ticket_calendar_lockWhereInput | Prisma.ticket_calendar_lockWhereInput[] OR?: Prisma.ticket_calendar_lockWhereInput[] NOT?: Prisma.ticket_calendar_lockWhereInput | Prisma.ticket_calendar_lockWhereInput[] date_lock?: Prisma.BigIntFilter<"ticket_calendar_lock"> | bigint | number dept_id?: Prisma.IntFilter<"ticket_calendar_lock"> | number nb_install?: Prisma.IntFilter<"ticket_calendar_lock"> | number create_by?: Prisma.IntFilter<"ticket_calendar_lock"> | number update_by?: Prisma.IntFilter<"ticket_calendar_lock"> | number last_update?: Prisma.DateTimeFilter<"ticket_calendar_lock"> | Date | string }, "id" | "date_lock_dept_id"> export type ticket_calendar_lockOrderByWithAggregationInput = { id?: Prisma.SortOrder date_lock?: Prisma.SortOrder dept_id?: Prisma.SortOrder nb_install?: Prisma.SortOrder create_by?: Prisma.SortOrder update_by?: Prisma.SortOrder last_update?: Prisma.SortOrder _count?: Prisma.ticket_calendar_lockCountOrderByAggregateInput _avg?: Prisma.ticket_calendar_lockAvgOrderByAggregateInput _max?: Prisma.ticket_calendar_lockMaxOrderByAggregateInput _min?: Prisma.ticket_calendar_lockMinOrderByAggregateInput _sum?: Prisma.ticket_calendar_lockSumOrderByAggregateInput } export type ticket_calendar_lockScalarWhereWithAggregatesInput = { AND?: Prisma.ticket_calendar_lockScalarWhereWithAggregatesInput | Prisma.ticket_calendar_lockScalarWhereWithAggregatesInput[] OR?: Prisma.ticket_calendar_lockScalarWhereWithAggregatesInput[] NOT?: Prisma.ticket_calendar_lockScalarWhereWithAggregatesInput | Prisma.ticket_calendar_lockScalarWhereWithAggregatesInput[] id?: Prisma.IntWithAggregatesFilter<"ticket_calendar_lock"> | number date_lock?: Prisma.BigIntWithAggregatesFilter<"ticket_calendar_lock"> | bigint | number dept_id?: Prisma.IntWithAggregatesFilter<"ticket_calendar_lock"> | number nb_install?: Prisma.IntWithAggregatesFilter<"ticket_calendar_lock"> | number create_by?: Prisma.IntWithAggregatesFilter<"ticket_calendar_lock"> | number update_by?: Prisma.IntWithAggregatesFilter<"ticket_calendar_lock"> | number last_update?: Prisma.DateTimeWithAggregatesFilter<"ticket_calendar_lock"> | Date | string } export type ticket_calendar_lockCreateInput = { date_lock?: bigint | number dept_id?: number nb_install?: number create_by: number update_by: number last_update?: Date | string } export type ticket_calendar_lockUncheckedCreateInput = { id?: number date_lock?: bigint | number dept_id?: number nb_install?: number create_by: number update_by: number last_update?: Date | string } export type ticket_calendar_lockUpdateInput = { date_lock?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number dept_id?: Prisma.IntFieldUpdateOperationsInput | number nb_install?: Prisma.IntFieldUpdateOperationsInput | number create_by?: Prisma.IntFieldUpdateOperationsInput | number update_by?: Prisma.IntFieldUpdateOperationsInput | number last_update?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type ticket_calendar_lockUncheckedUpdateInput = { id?: Prisma.IntFieldUpdateOperationsInput | number date_lock?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number dept_id?: Prisma.IntFieldUpdateOperationsInput | number nb_install?: Prisma.IntFieldUpdateOperationsInput | number create_by?: Prisma.IntFieldUpdateOperationsInput | number update_by?: Prisma.IntFieldUpdateOperationsInput | number last_update?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type ticket_calendar_lockCreateManyInput = { id?: number date_lock?: bigint | number dept_id?: number nb_install?: number create_by: number update_by: number last_update?: Date | string } export type ticket_calendar_lockUpdateManyMutationInput = { date_lock?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number dept_id?: Prisma.IntFieldUpdateOperationsInput | number nb_install?: Prisma.IntFieldUpdateOperationsInput | number create_by?: Prisma.IntFieldUpdateOperationsInput | number update_by?: Prisma.IntFieldUpdateOperationsInput | number last_update?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type ticket_calendar_lockUncheckedUpdateManyInput = { id?: Prisma.IntFieldUpdateOperationsInput | number date_lock?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number dept_id?: Prisma.IntFieldUpdateOperationsInput | number nb_install?: Prisma.IntFieldUpdateOperationsInput | number create_by?: Prisma.IntFieldUpdateOperationsInput | number update_by?: Prisma.IntFieldUpdateOperationsInput | number last_update?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type ticket_calendar_lockDate_lockDept_idCompoundUniqueInput = { date_lock: bigint | number dept_id: number } export type ticket_calendar_lockCountOrderByAggregateInput = { id?: Prisma.SortOrder date_lock?: Prisma.SortOrder dept_id?: Prisma.SortOrder nb_install?: Prisma.SortOrder create_by?: Prisma.SortOrder update_by?: Prisma.SortOrder last_update?: Prisma.SortOrder } export type ticket_calendar_lockAvgOrderByAggregateInput = { id?: Prisma.SortOrder date_lock?: Prisma.SortOrder dept_id?: Prisma.SortOrder nb_install?: Prisma.SortOrder create_by?: Prisma.SortOrder update_by?: Prisma.SortOrder } export type ticket_calendar_lockMaxOrderByAggregateInput = { id?: Prisma.SortOrder date_lock?: Prisma.SortOrder dept_id?: Prisma.SortOrder nb_install?: Prisma.SortOrder create_by?: Prisma.SortOrder update_by?: Prisma.SortOrder last_update?: Prisma.SortOrder } export type ticket_calendar_lockMinOrderByAggregateInput = { id?: Prisma.SortOrder date_lock?: Prisma.SortOrder dept_id?: Prisma.SortOrder nb_install?: Prisma.SortOrder create_by?: Prisma.SortOrder update_by?: Prisma.SortOrder last_update?: Prisma.SortOrder } export type ticket_calendar_lockSumOrderByAggregateInput = { id?: Prisma.SortOrder date_lock?: Prisma.SortOrder dept_id?: Prisma.SortOrder nb_install?: Prisma.SortOrder create_by?: Prisma.SortOrder update_by?: Prisma.SortOrder } export type ticket_calendar_lockSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean date_lock?: boolean dept_id?: boolean nb_install?: boolean create_by?: boolean update_by?: boolean last_update?: boolean }, ExtArgs["result"]["ticket_calendar_lock"]> export type ticket_calendar_lockSelectScalar = { id?: boolean date_lock?: boolean dept_id?: boolean nb_install?: boolean create_by?: boolean update_by?: boolean last_update?: boolean } export type ticket_calendar_lockOmit = runtime.Types.Extensions.GetOmit<"id" | "date_lock" | "dept_id" | "nb_install" | "create_by" | "update_by" | "last_update", ExtArgs["result"]["ticket_calendar_lock"]> export type $ticket_calendar_lockPayload = { name: "ticket_calendar_lock" objects: {} scalars: runtime.Types.Extensions.GetPayloadResult<{ id: number date_lock: bigint dept_id: number nb_install: number create_by: number update_by: number last_update: Date }, ExtArgs["result"]["ticket_calendar_lock"]> composites: {} } export type ticket_calendar_lockGetPayload = runtime.Types.Result.GetResult export type ticket_calendar_lockCountArgs = Omit & { select?: Ticket_calendar_lockCountAggregateInputType | true } export interface ticket_calendar_lockDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['ticket_calendar_lock'], meta: { name: 'ticket_calendar_lock' } } /** * Find zero or one Ticket_calendar_lock that matches the filter. * @param {ticket_calendar_lockFindUniqueArgs} args - Arguments to find a Ticket_calendar_lock * @example * // Get one Ticket_calendar_lock * const ticket_calendar_lock = await prisma.ticket_calendar_lock.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__ticket_calendar_lockClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Ticket_calendar_lock that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {ticket_calendar_lockFindUniqueOrThrowArgs} args - Arguments to find a Ticket_calendar_lock * @example * // Get one Ticket_calendar_lock * const ticket_calendar_lock = await prisma.ticket_calendar_lock.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__ticket_calendar_lockClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Ticket_calendar_lock 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 {ticket_calendar_lockFindFirstArgs} args - Arguments to find a Ticket_calendar_lock * @example * // Get one Ticket_calendar_lock * const ticket_calendar_lock = await prisma.ticket_calendar_lock.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__ticket_calendar_lockClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Ticket_calendar_lock 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 {ticket_calendar_lockFindFirstOrThrowArgs} args - Arguments to find a Ticket_calendar_lock * @example * // Get one Ticket_calendar_lock * const ticket_calendar_lock = await prisma.ticket_calendar_lock.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__ticket_calendar_lockClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Ticket_calendar_locks 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 {ticket_calendar_lockFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Ticket_calendar_locks * const ticket_calendar_locks = await prisma.ticket_calendar_lock.findMany() * * // Get first 10 Ticket_calendar_locks * const ticket_calendar_locks = await prisma.ticket_calendar_lock.findMany({ take: 10 }) * * // Only select the `id` * const ticket_calendar_lockWithIdOnly = await prisma.ticket_calendar_lock.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Ticket_calendar_lock. * @param {ticket_calendar_lockCreateArgs} args - Arguments to create a Ticket_calendar_lock. * @example * // Create one Ticket_calendar_lock * const Ticket_calendar_lock = await prisma.ticket_calendar_lock.create({ * data: { * // ... data to create a Ticket_calendar_lock * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__ticket_calendar_lockClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Ticket_calendar_locks. * @param {ticket_calendar_lockCreateManyArgs} args - Arguments to create many Ticket_calendar_locks. * @example * // Create many Ticket_calendar_locks * const ticket_calendar_lock = await prisma.ticket_calendar_lock.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Delete a Ticket_calendar_lock. * @param {ticket_calendar_lockDeleteArgs} args - Arguments to delete one Ticket_calendar_lock. * @example * // Delete one Ticket_calendar_lock * const Ticket_calendar_lock = await prisma.ticket_calendar_lock.delete({ * where: { * // ... filter to delete one Ticket_calendar_lock * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__ticket_calendar_lockClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Ticket_calendar_lock. * @param {ticket_calendar_lockUpdateArgs} args - Arguments to update one Ticket_calendar_lock. * @example * // Update one Ticket_calendar_lock * const ticket_calendar_lock = await prisma.ticket_calendar_lock.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__ticket_calendar_lockClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Ticket_calendar_locks. * @param {ticket_calendar_lockDeleteManyArgs} args - Arguments to filter Ticket_calendar_locks to delete. * @example * // Delete a few Ticket_calendar_locks * const { count } = await prisma.ticket_calendar_lock.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Ticket_calendar_locks. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ticket_calendar_lockUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Ticket_calendar_locks * const ticket_calendar_lock = await prisma.ticket_calendar_lock.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create or update one Ticket_calendar_lock. * @param {ticket_calendar_lockUpsertArgs} args - Arguments to update or create a Ticket_calendar_lock. * @example * // Update or create a Ticket_calendar_lock * const ticket_calendar_lock = await prisma.ticket_calendar_lock.upsert({ * create: { * // ... data to create a Ticket_calendar_lock * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Ticket_calendar_lock we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__ticket_calendar_lockClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Ticket_calendar_locks. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ticket_calendar_lockCountArgs} args - Arguments to filter Ticket_calendar_locks to count. * @example * // Count the number of Ticket_calendar_locks * const count = await prisma.ticket_calendar_lock.count({ * where: { * // ... the filter for the Ticket_calendar_locks we want to count * } * }) **/ count( args?: Prisma.Subset, ): Prisma.PrismaPromise< T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType : number > /** * Allows you to perform aggregations operations on a Ticket_calendar_lock. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {Ticket_calendar_lockAggregateArgs} 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(args: Prisma.Subset): Prisma.PrismaPromise> /** * Group by Ticket_calendar_lock. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ticket_calendar_lockGroupByArgs} 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 ticket_calendar_lockGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: ticket_calendar_lockGroupByArgs['orderBy'] } : { orderBy?: ticket_calendar_lockGroupByArgs['orderBy'] }, OrderFields extends Prisma.ExcludeUnderscoreKeys>>, ByFields extends Prisma.MaybeTupleToUnion, ByValid extends Prisma.Has, HavingFields extends Prisma.GetHavingFields, HavingValid extends Prisma.Has, 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 ? 'orderBy' extends Prisma.Keys ? 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 ? 'orderBy' extends Prisma.Keys ? 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 & InputErrors): {} extends InputErrors ? GetTicket_calendar_lockGroupByPayload : Prisma.PrismaPromise /** * Fields of the ticket_calendar_lock model */ readonly fields: ticket_calendar_lockFieldRefs; } /** * The delegate class that acts as a "Promise-like" for ticket_calendar_lock. * 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__ticket_calendar_lockClient extends Prisma.PrismaPromise { 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * 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 } /** * Fields of the ticket_calendar_lock model */ export interface ticket_calendar_lockFieldRefs { readonly id: Prisma.FieldRef<"ticket_calendar_lock", 'Int'> readonly date_lock: Prisma.FieldRef<"ticket_calendar_lock", 'BigInt'> readonly dept_id: Prisma.FieldRef<"ticket_calendar_lock", 'Int'> readonly nb_install: Prisma.FieldRef<"ticket_calendar_lock", 'Int'> readonly create_by: Prisma.FieldRef<"ticket_calendar_lock", 'Int'> readonly update_by: Prisma.FieldRef<"ticket_calendar_lock", 'Int'> readonly last_update: Prisma.FieldRef<"ticket_calendar_lock", 'DateTime'> } // Custom InputTypes /** * ticket_calendar_lock findUnique */ export type ticket_calendar_lockFindUniqueArgs = { /** * Select specific fields to fetch from the ticket_calendar_lock */ select?: Prisma.ticket_calendar_lockSelect | null /** * Omit specific fields from the ticket_calendar_lock */ omit?: Prisma.ticket_calendar_lockOmit | null /** * Filter, which ticket_calendar_lock to fetch. */ where: Prisma.ticket_calendar_lockWhereUniqueInput } /** * ticket_calendar_lock findUniqueOrThrow */ export type ticket_calendar_lockFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the ticket_calendar_lock */ select?: Prisma.ticket_calendar_lockSelect | null /** * Omit specific fields from the ticket_calendar_lock */ omit?: Prisma.ticket_calendar_lockOmit | null /** * Filter, which ticket_calendar_lock to fetch. */ where: Prisma.ticket_calendar_lockWhereUniqueInput } /** * ticket_calendar_lock findFirst */ export type ticket_calendar_lockFindFirstArgs = { /** * Select specific fields to fetch from the ticket_calendar_lock */ select?: Prisma.ticket_calendar_lockSelect | null /** * Omit specific fields from the ticket_calendar_lock */ omit?: Prisma.ticket_calendar_lockOmit | null /** * Filter, which ticket_calendar_lock to fetch. */ where?: Prisma.ticket_calendar_lockWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ticket_calendar_locks to fetch. */ orderBy?: Prisma.ticket_calendar_lockOrderByWithRelationInput | Prisma.ticket_calendar_lockOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ticket_calendar_locks. */ cursor?: Prisma.ticket_calendar_lockWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ticket_calendar_locks 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` ticket_calendar_locks. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ticket_calendar_locks. */ distinct?: Prisma.Ticket_calendar_lockScalarFieldEnum | Prisma.Ticket_calendar_lockScalarFieldEnum[] } /** * ticket_calendar_lock findFirstOrThrow */ export type ticket_calendar_lockFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the ticket_calendar_lock */ select?: Prisma.ticket_calendar_lockSelect | null /** * Omit specific fields from the ticket_calendar_lock */ omit?: Prisma.ticket_calendar_lockOmit | null /** * Filter, which ticket_calendar_lock to fetch. */ where?: Prisma.ticket_calendar_lockWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ticket_calendar_locks to fetch. */ orderBy?: Prisma.ticket_calendar_lockOrderByWithRelationInput | Prisma.ticket_calendar_lockOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ticket_calendar_locks. */ cursor?: Prisma.ticket_calendar_lockWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ticket_calendar_locks 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` ticket_calendar_locks. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ticket_calendar_locks. */ distinct?: Prisma.Ticket_calendar_lockScalarFieldEnum | Prisma.Ticket_calendar_lockScalarFieldEnum[] } /** * ticket_calendar_lock findMany */ export type ticket_calendar_lockFindManyArgs = { /** * Select specific fields to fetch from the ticket_calendar_lock */ select?: Prisma.ticket_calendar_lockSelect | null /** * Omit specific fields from the ticket_calendar_lock */ omit?: Prisma.ticket_calendar_lockOmit | null /** * Filter, which ticket_calendar_locks to fetch. */ where?: Prisma.ticket_calendar_lockWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ticket_calendar_locks to fetch. */ orderBy?: Prisma.ticket_calendar_lockOrderByWithRelationInput | Prisma.ticket_calendar_lockOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing ticket_calendar_locks. */ cursor?: Prisma.ticket_calendar_lockWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ticket_calendar_locks 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` ticket_calendar_locks. */ skip?: number distinct?: Prisma.Ticket_calendar_lockScalarFieldEnum | Prisma.Ticket_calendar_lockScalarFieldEnum[] } /** * ticket_calendar_lock create */ export type ticket_calendar_lockCreateArgs = { /** * Select specific fields to fetch from the ticket_calendar_lock */ select?: Prisma.ticket_calendar_lockSelect | null /** * Omit specific fields from the ticket_calendar_lock */ omit?: Prisma.ticket_calendar_lockOmit | null /** * The data needed to create a ticket_calendar_lock. */ data: Prisma.XOR } /** * ticket_calendar_lock createMany */ export type ticket_calendar_lockCreateManyArgs = { /** * The data used to create many ticket_calendar_locks. */ data: Prisma.ticket_calendar_lockCreateManyInput | Prisma.ticket_calendar_lockCreateManyInput[] skipDuplicates?: boolean } /** * ticket_calendar_lock update */ export type ticket_calendar_lockUpdateArgs = { /** * Select specific fields to fetch from the ticket_calendar_lock */ select?: Prisma.ticket_calendar_lockSelect | null /** * Omit specific fields from the ticket_calendar_lock */ omit?: Prisma.ticket_calendar_lockOmit | null /** * The data needed to update a ticket_calendar_lock. */ data: Prisma.XOR /** * Choose, which ticket_calendar_lock to update. */ where: Prisma.ticket_calendar_lockWhereUniqueInput } /** * ticket_calendar_lock updateMany */ export type ticket_calendar_lockUpdateManyArgs = { /** * The data used to update ticket_calendar_locks. */ data: Prisma.XOR /** * Filter which ticket_calendar_locks to update */ where?: Prisma.ticket_calendar_lockWhereInput /** * Limit how many ticket_calendar_locks to update. */ limit?: number } /** * ticket_calendar_lock upsert */ export type ticket_calendar_lockUpsertArgs = { /** * Select specific fields to fetch from the ticket_calendar_lock */ select?: Prisma.ticket_calendar_lockSelect | null /** * Omit specific fields from the ticket_calendar_lock */ omit?: Prisma.ticket_calendar_lockOmit | null /** * The filter to search for the ticket_calendar_lock to update in case it exists. */ where: Prisma.ticket_calendar_lockWhereUniqueInput /** * In case the ticket_calendar_lock found by the `where` argument doesn't exist, create a new ticket_calendar_lock with this data. */ create: Prisma.XOR /** * In case the ticket_calendar_lock was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * ticket_calendar_lock delete */ export type ticket_calendar_lockDeleteArgs = { /** * Select specific fields to fetch from the ticket_calendar_lock */ select?: Prisma.ticket_calendar_lockSelect | null /** * Omit specific fields from the ticket_calendar_lock */ omit?: Prisma.ticket_calendar_lockOmit | null /** * Filter which ticket_calendar_lock to delete. */ where: Prisma.ticket_calendar_lockWhereUniqueInput } /** * ticket_calendar_lock deleteMany */ export type ticket_calendar_lockDeleteManyArgs = { /** * Filter which ticket_calendar_locks to delete */ where?: Prisma.ticket_calendar_lockWhereInput /** * Limit how many ticket_calendar_locks to delete. */ limit?: number } /** * ticket_calendar_lock without action */ export type ticket_calendar_lockDefaultArgs = { /** * Select specific fields to fetch from the ticket_calendar_lock */ select?: Prisma.ticket_calendar_lockSelect | null /** * Omit specific fields from the ticket_calendar_lock */ omit?: Prisma.ticket_calendar_lockOmit | null }