/* !!! 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_msg` 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_msg * */ export type ticket_msgModel = runtime.Types.Result.DefaultSelection export type AggregateTicket_msg = { _count: Ticket_msgCountAggregateOutputType | null _avg: Ticket_msgAvgAggregateOutputType | null _sum: Ticket_msgSumAggregateOutputType | null _min: Ticket_msgMinAggregateOutputType | null _max: Ticket_msgMaxAggregateOutputType | null } export type Ticket_msgAvgAggregateOutputType = { id: number | null ticket_id: number | null staff_id: number | null date_orig: number | null important: number | null } export type Ticket_msgSumAggregateOutputType = { id: bigint | null ticket_id: bigint | null staff_id: bigint | null date_orig: bigint | null important: number | null } export type Ticket_msgMinAggregateOutputType = { id: bigint | null ticket_id: bigint | null staff_id: bigint | null msg: string | null date_orig: bigint | null unread_csv: string | null public: boolean | null important: number | null update_timestamp: Date | null } export type Ticket_msgMaxAggregateOutputType = { id: bigint | null ticket_id: bigint | null staff_id: bigint | null msg: string | null date_orig: bigint | null unread_csv: string | null public: boolean | null important: number | null update_timestamp: Date | null } export type Ticket_msgCountAggregateOutputType = { id: number ticket_id: number staff_id: number msg: number date_orig: number unread_csv: number public: number important: number update_timestamp: number _all: number } export type Ticket_msgAvgAggregateInputType = { id?: true ticket_id?: true staff_id?: true date_orig?: true important?: true } export type Ticket_msgSumAggregateInputType = { id?: true ticket_id?: true staff_id?: true date_orig?: true important?: true } export type Ticket_msgMinAggregateInputType = { id?: true ticket_id?: true staff_id?: true msg?: true date_orig?: true unread_csv?: true public?: true important?: true update_timestamp?: true } export type Ticket_msgMaxAggregateInputType = { id?: true ticket_id?: true staff_id?: true msg?: true date_orig?: true unread_csv?: true public?: true important?: true update_timestamp?: true } export type Ticket_msgCountAggregateInputType = { id?: true ticket_id?: true staff_id?: true msg?: true date_orig?: true unread_csv?: true public?: true important?: true update_timestamp?: true _all?: true } export type Ticket_msgAggregateArgs = { /** * Filter which ticket_msg to aggregate. */ where?: Prisma.ticket_msgWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ticket_msgs to fetch. */ orderBy?: Prisma.ticket_msgOrderByWithRelationInput | Prisma.ticket_msgOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.ticket_msgWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ticket_msgs 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_msgs. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned ticket_msgs **/ _count?: true | Ticket_msgCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: Ticket_msgAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: Ticket_msgSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: Ticket_msgMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: Ticket_msgMaxAggregateInputType } export type GetTicket_msgAggregateType = { [P in keyof T & keyof AggregateTicket_msg]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type ticket_msgGroupByArgs = { where?: Prisma.ticket_msgWhereInput orderBy?: Prisma.ticket_msgOrderByWithAggregationInput | Prisma.ticket_msgOrderByWithAggregationInput[] by: Prisma.Ticket_msgScalarFieldEnum[] | Prisma.Ticket_msgScalarFieldEnum having?: Prisma.ticket_msgScalarWhereWithAggregatesInput take?: number skip?: number _count?: Ticket_msgCountAggregateInputType | true _avg?: Ticket_msgAvgAggregateInputType _sum?: Ticket_msgSumAggregateInputType _min?: Ticket_msgMinAggregateInputType _max?: Ticket_msgMaxAggregateInputType } export type Ticket_msgGroupByOutputType = { id: bigint ticket_id: bigint staff_id: bigint msg: string | null date_orig: bigint | null unread_csv: string public: boolean | null important: number update_timestamp: Date _count: Ticket_msgCountAggregateOutputType | null _avg: Ticket_msgAvgAggregateOutputType | null _sum: Ticket_msgSumAggregateOutputType | null _min: Ticket_msgMinAggregateOutputType | null _max: Ticket_msgMaxAggregateOutputType | null } type GetTicket_msgGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof Ticket_msgGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type ticket_msgWhereInput = { AND?: Prisma.ticket_msgWhereInput | Prisma.ticket_msgWhereInput[] OR?: Prisma.ticket_msgWhereInput[] NOT?: Prisma.ticket_msgWhereInput | Prisma.ticket_msgWhereInput[] id?: Prisma.BigIntFilter<"ticket_msg"> | bigint | number ticket_id?: Prisma.BigIntFilter<"ticket_msg"> | bigint | number staff_id?: Prisma.BigIntFilter<"ticket_msg"> | bigint | number msg?: Prisma.StringNullableFilter<"ticket_msg"> | string | null date_orig?: Prisma.BigIntNullableFilter<"ticket_msg"> | bigint | number | null unread_csv?: Prisma.StringFilter<"ticket_msg"> | string public?: Prisma.BoolNullableFilter<"ticket_msg"> | boolean | null important?: Prisma.IntFilter<"ticket_msg"> | number update_timestamp?: Prisma.DateTimeFilter<"ticket_msg"> | Date | string } export type ticket_msgOrderByWithRelationInput = { id?: Prisma.SortOrder ticket_id?: Prisma.SortOrder staff_id?: Prisma.SortOrder msg?: Prisma.SortOrderInput | Prisma.SortOrder date_orig?: Prisma.SortOrderInput | Prisma.SortOrder unread_csv?: Prisma.SortOrder public?: Prisma.SortOrderInput | Prisma.SortOrder important?: Prisma.SortOrder update_timestamp?: Prisma.SortOrder _relevance?: Prisma.ticket_msgOrderByRelevanceInput } export type ticket_msgWhereUniqueInput = Prisma.AtLeast<{ id?: bigint | number AND?: Prisma.ticket_msgWhereInput | Prisma.ticket_msgWhereInput[] OR?: Prisma.ticket_msgWhereInput[] NOT?: Prisma.ticket_msgWhereInput | Prisma.ticket_msgWhereInput[] ticket_id?: Prisma.BigIntFilter<"ticket_msg"> | bigint | number staff_id?: Prisma.BigIntFilter<"ticket_msg"> | bigint | number msg?: Prisma.StringNullableFilter<"ticket_msg"> | string | null date_orig?: Prisma.BigIntNullableFilter<"ticket_msg"> | bigint | number | null unread_csv?: Prisma.StringFilter<"ticket_msg"> | string public?: Prisma.BoolNullableFilter<"ticket_msg"> | boolean | null important?: Prisma.IntFilter<"ticket_msg"> | number update_timestamp?: Prisma.DateTimeFilter<"ticket_msg"> | Date | string }, "id"> export type ticket_msgOrderByWithAggregationInput = { id?: Prisma.SortOrder ticket_id?: Prisma.SortOrder staff_id?: Prisma.SortOrder msg?: Prisma.SortOrderInput | Prisma.SortOrder date_orig?: Prisma.SortOrderInput | Prisma.SortOrder unread_csv?: Prisma.SortOrder public?: Prisma.SortOrderInput | Prisma.SortOrder important?: Prisma.SortOrder update_timestamp?: Prisma.SortOrder _count?: Prisma.ticket_msgCountOrderByAggregateInput _avg?: Prisma.ticket_msgAvgOrderByAggregateInput _max?: Prisma.ticket_msgMaxOrderByAggregateInput _min?: Prisma.ticket_msgMinOrderByAggregateInput _sum?: Prisma.ticket_msgSumOrderByAggregateInput } export type ticket_msgScalarWhereWithAggregatesInput = { AND?: Prisma.ticket_msgScalarWhereWithAggregatesInput | Prisma.ticket_msgScalarWhereWithAggregatesInput[] OR?: Prisma.ticket_msgScalarWhereWithAggregatesInput[] NOT?: Prisma.ticket_msgScalarWhereWithAggregatesInput | Prisma.ticket_msgScalarWhereWithAggregatesInput[] id?: Prisma.BigIntWithAggregatesFilter<"ticket_msg"> | bigint | number ticket_id?: Prisma.BigIntWithAggregatesFilter<"ticket_msg"> | bigint | number staff_id?: Prisma.BigIntWithAggregatesFilter<"ticket_msg"> | bigint | number msg?: Prisma.StringNullableWithAggregatesFilter<"ticket_msg"> | string | null date_orig?: Prisma.BigIntNullableWithAggregatesFilter<"ticket_msg"> | bigint | number | null unread_csv?: Prisma.StringWithAggregatesFilter<"ticket_msg"> | string public?: Prisma.BoolNullableWithAggregatesFilter<"ticket_msg"> | boolean | null important?: Prisma.IntWithAggregatesFilter<"ticket_msg"> | number update_timestamp?: Prisma.DateTimeWithAggregatesFilter<"ticket_msg"> | Date | string } export type ticket_msgCreateInput = { id?: bigint | number ticket_id: bigint | number staff_id?: bigint | number msg?: string | null date_orig?: bigint | number | null unread_csv: string public?: boolean | null important?: number update_timestamp?: Date | string } export type ticket_msgUncheckedCreateInput = { id?: bigint | number ticket_id: bigint | number staff_id?: bigint | number msg?: string | null date_orig?: bigint | number | null unread_csv: string public?: boolean | null important?: number update_timestamp?: Date | string } export type ticket_msgUpdateInput = { id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number ticket_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number staff_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number msg?: Prisma.NullableStringFieldUpdateOperationsInput | string | null date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null unread_csv?: Prisma.StringFieldUpdateOperationsInput | string public?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null important?: Prisma.IntFieldUpdateOperationsInput | number update_timestamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type ticket_msgUncheckedUpdateInput = { id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number ticket_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number staff_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number msg?: Prisma.NullableStringFieldUpdateOperationsInput | string | null date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null unread_csv?: Prisma.StringFieldUpdateOperationsInput | string public?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null important?: Prisma.IntFieldUpdateOperationsInput | number update_timestamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type ticket_msgCreateManyInput = { id?: bigint | number ticket_id: bigint | number staff_id?: bigint | number msg?: string | null date_orig?: bigint | number | null unread_csv: string public?: boolean | null important?: number update_timestamp?: Date | string } export type ticket_msgUpdateManyMutationInput = { id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number ticket_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number staff_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number msg?: Prisma.NullableStringFieldUpdateOperationsInput | string | null date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null unread_csv?: Prisma.StringFieldUpdateOperationsInput | string public?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null important?: Prisma.IntFieldUpdateOperationsInput | number update_timestamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type ticket_msgUncheckedUpdateManyInput = { id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number ticket_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number staff_id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number msg?: Prisma.NullableStringFieldUpdateOperationsInput | string | null date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null unread_csv?: Prisma.StringFieldUpdateOperationsInput | string public?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null important?: Prisma.IntFieldUpdateOperationsInput | number update_timestamp?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type ticket_msgOrderByRelevanceInput = { fields: Prisma.ticket_msgOrderByRelevanceFieldEnum | Prisma.ticket_msgOrderByRelevanceFieldEnum[] sort: Prisma.SortOrder search: string } export type ticket_msgCountOrderByAggregateInput = { id?: Prisma.SortOrder ticket_id?: Prisma.SortOrder staff_id?: Prisma.SortOrder msg?: Prisma.SortOrder date_orig?: Prisma.SortOrder unread_csv?: Prisma.SortOrder public?: Prisma.SortOrder important?: Prisma.SortOrder update_timestamp?: Prisma.SortOrder } export type ticket_msgAvgOrderByAggregateInput = { id?: Prisma.SortOrder ticket_id?: Prisma.SortOrder staff_id?: Prisma.SortOrder date_orig?: Prisma.SortOrder important?: Prisma.SortOrder } export type ticket_msgMaxOrderByAggregateInput = { id?: Prisma.SortOrder ticket_id?: Prisma.SortOrder staff_id?: Prisma.SortOrder msg?: Prisma.SortOrder date_orig?: Prisma.SortOrder unread_csv?: Prisma.SortOrder public?: Prisma.SortOrder important?: Prisma.SortOrder update_timestamp?: Prisma.SortOrder } export type ticket_msgMinOrderByAggregateInput = { id?: Prisma.SortOrder ticket_id?: Prisma.SortOrder staff_id?: Prisma.SortOrder msg?: Prisma.SortOrder date_orig?: Prisma.SortOrder unread_csv?: Prisma.SortOrder public?: Prisma.SortOrder important?: Prisma.SortOrder update_timestamp?: Prisma.SortOrder } export type ticket_msgSumOrderByAggregateInput = { id?: Prisma.SortOrder ticket_id?: Prisma.SortOrder staff_id?: Prisma.SortOrder date_orig?: Prisma.SortOrder important?: Prisma.SortOrder } export type ticket_msgSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean ticket_id?: boolean staff_id?: boolean msg?: boolean date_orig?: boolean unread_csv?: boolean public?: boolean important?: boolean update_timestamp?: boolean }, ExtArgs["result"]["ticket_msg"]> export type ticket_msgSelectScalar = { id?: boolean ticket_id?: boolean staff_id?: boolean msg?: boolean date_orig?: boolean unread_csv?: boolean public?: boolean important?: boolean update_timestamp?: boolean } export type ticket_msgOmit = runtime.Types.Extensions.GetOmit<"id" | "ticket_id" | "staff_id" | "msg" | "date_orig" | "unread_csv" | "public" | "important" | "update_timestamp", ExtArgs["result"]["ticket_msg"]> export type $ticket_msgPayload = { name: "ticket_msg" objects: {} scalars: runtime.Types.Extensions.GetPayloadResult<{ id: bigint ticket_id: bigint staff_id: bigint msg: string | null date_orig: bigint | null unread_csv: string public: boolean | null important: number update_timestamp: Date }, ExtArgs["result"]["ticket_msg"]> composites: {} } export type ticket_msgGetPayload = runtime.Types.Result.GetResult export type ticket_msgCountArgs = Omit & { select?: Ticket_msgCountAggregateInputType | true } export interface ticket_msgDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['ticket_msg'], meta: { name: 'ticket_msg' } } /** * Find zero or one Ticket_msg that matches the filter. * @param {ticket_msgFindUniqueArgs} args - Arguments to find a Ticket_msg * @example * // Get one Ticket_msg * const ticket_msg = await prisma.ticket_msg.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__ticket_msgClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Ticket_msg that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {ticket_msgFindUniqueOrThrowArgs} args - Arguments to find a Ticket_msg * @example * // Get one Ticket_msg * const ticket_msg = await prisma.ticket_msg.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__ticket_msgClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Ticket_msg 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_msgFindFirstArgs} args - Arguments to find a Ticket_msg * @example * // Get one Ticket_msg * const ticket_msg = await prisma.ticket_msg.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__ticket_msgClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Ticket_msg 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_msgFindFirstOrThrowArgs} args - Arguments to find a Ticket_msg * @example * // Get one Ticket_msg * const ticket_msg = await prisma.ticket_msg.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__ticket_msgClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Ticket_msgs 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_msgFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Ticket_msgs * const ticket_msgs = await prisma.ticket_msg.findMany() * * // Get first 10 Ticket_msgs * const ticket_msgs = await prisma.ticket_msg.findMany({ take: 10 }) * * // Only select the `id` * const ticket_msgWithIdOnly = await prisma.ticket_msg.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Ticket_msg. * @param {ticket_msgCreateArgs} args - Arguments to create a Ticket_msg. * @example * // Create one Ticket_msg * const Ticket_msg = await prisma.ticket_msg.create({ * data: { * // ... data to create a Ticket_msg * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__ticket_msgClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Ticket_msgs. * @param {ticket_msgCreateManyArgs} args - Arguments to create many Ticket_msgs. * @example * // Create many Ticket_msgs * const ticket_msg = await prisma.ticket_msg.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Delete a Ticket_msg. * @param {ticket_msgDeleteArgs} args - Arguments to delete one Ticket_msg. * @example * // Delete one Ticket_msg * const Ticket_msg = await prisma.ticket_msg.delete({ * where: { * // ... filter to delete one Ticket_msg * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__ticket_msgClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Ticket_msg. * @param {ticket_msgUpdateArgs} args - Arguments to update one Ticket_msg. * @example * // Update one Ticket_msg * const ticket_msg = await prisma.ticket_msg.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__ticket_msgClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Ticket_msgs. * @param {ticket_msgDeleteManyArgs} args - Arguments to filter Ticket_msgs to delete. * @example * // Delete a few Ticket_msgs * const { count } = await prisma.ticket_msg.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Ticket_msgs. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ticket_msgUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Ticket_msgs * const ticket_msg = await prisma.ticket_msg.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create or update one Ticket_msg. * @param {ticket_msgUpsertArgs} args - Arguments to update or create a Ticket_msg. * @example * // Update or create a Ticket_msg * const ticket_msg = await prisma.ticket_msg.upsert({ * create: { * // ... data to create a Ticket_msg * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Ticket_msg we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__ticket_msgClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Ticket_msgs. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ticket_msgCountArgs} args - Arguments to filter Ticket_msgs to count. * @example * // Count the number of Ticket_msgs * const count = await prisma.ticket_msg.count({ * where: { * // ... the filter for the Ticket_msgs 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_msg. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {Ticket_msgAggregateArgs} 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_msg. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {ticket_msgGroupByArgs} 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_msgGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: ticket_msgGroupByArgs['orderBy'] } : { orderBy?: ticket_msgGroupByArgs['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_msgGroupByPayload : Prisma.PrismaPromise /** * Fields of the ticket_msg model */ readonly fields: ticket_msgFieldRefs; } /** * The delegate class that acts as a "Promise-like" for ticket_msg. * 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_msgClient 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_msg model */ export interface ticket_msgFieldRefs { readonly id: Prisma.FieldRef<"ticket_msg", 'BigInt'> readonly ticket_id: Prisma.FieldRef<"ticket_msg", 'BigInt'> readonly staff_id: Prisma.FieldRef<"ticket_msg", 'BigInt'> readonly msg: Prisma.FieldRef<"ticket_msg", 'String'> readonly date_orig: Prisma.FieldRef<"ticket_msg", 'BigInt'> readonly unread_csv: Prisma.FieldRef<"ticket_msg", 'String'> readonly public: Prisma.FieldRef<"ticket_msg", 'Boolean'> readonly important: Prisma.FieldRef<"ticket_msg", 'Int'> readonly update_timestamp: Prisma.FieldRef<"ticket_msg", 'DateTime'> } // Custom InputTypes /** * ticket_msg findUnique */ export type ticket_msgFindUniqueArgs = { /** * Select specific fields to fetch from the ticket_msg */ select?: Prisma.ticket_msgSelect | null /** * Omit specific fields from the ticket_msg */ omit?: Prisma.ticket_msgOmit | null /** * Filter, which ticket_msg to fetch. */ where: Prisma.ticket_msgWhereUniqueInput } /** * ticket_msg findUniqueOrThrow */ export type ticket_msgFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the ticket_msg */ select?: Prisma.ticket_msgSelect | null /** * Omit specific fields from the ticket_msg */ omit?: Prisma.ticket_msgOmit | null /** * Filter, which ticket_msg to fetch. */ where: Prisma.ticket_msgWhereUniqueInput } /** * ticket_msg findFirst */ export type ticket_msgFindFirstArgs = { /** * Select specific fields to fetch from the ticket_msg */ select?: Prisma.ticket_msgSelect | null /** * Omit specific fields from the ticket_msg */ omit?: Prisma.ticket_msgOmit | null /** * Filter, which ticket_msg to fetch. */ where?: Prisma.ticket_msgWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ticket_msgs to fetch. */ orderBy?: Prisma.ticket_msgOrderByWithRelationInput | Prisma.ticket_msgOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ticket_msgs. */ cursor?: Prisma.ticket_msgWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ticket_msgs 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_msgs. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ticket_msgs. */ distinct?: Prisma.Ticket_msgScalarFieldEnum | Prisma.Ticket_msgScalarFieldEnum[] } /** * ticket_msg findFirstOrThrow */ export type ticket_msgFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the ticket_msg */ select?: Prisma.ticket_msgSelect | null /** * Omit specific fields from the ticket_msg */ omit?: Prisma.ticket_msgOmit | null /** * Filter, which ticket_msg to fetch. */ where?: Prisma.ticket_msgWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ticket_msgs to fetch. */ orderBy?: Prisma.ticket_msgOrderByWithRelationInput | Prisma.ticket_msgOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for ticket_msgs. */ cursor?: Prisma.ticket_msgWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ticket_msgs 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_msgs. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of ticket_msgs. */ distinct?: Prisma.Ticket_msgScalarFieldEnum | Prisma.Ticket_msgScalarFieldEnum[] } /** * ticket_msg findMany */ export type ticket_msgFindManyArgs = { /** * Select specific fields to fetch from the ticket_msg */ select?: Prisma.ticket_msgSelect | null /** * Omit specific fields from the ticket_msg */ omit?: Prisma.ticket_msgOmit | null /** * Filter, which ticket_msgs to fetch. */ where?: Prisma.ticket_msgWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of ticket_msgs to fetch. */ orderBy?: Prisma.ticket_msgOrderByWithRelationInput | Prisma.ticket_msgOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing ticket_msgs. */ cursor?: Prisma.ticket_msgWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` ticket_msgs 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_msgs. */ skip?: number distinct?: Prisma.Ticket_msgScalarFieldEnum | Prisma.Ticket_msgScalarFieldEnum[] } /** * ticket_msg create */ export type ticket_msgCreateArgs = { /** * Select specific fields to fetch from the ticket_msg */ select?: Prisma.ticket_msgSelect | null /** * Omit specific fields from the ticket_msg */ omit?: Prisma.ticket_msgOmit | null /** * The data needed to create a ticket_msg. */ data: Prisma.XOR } /** * ticket_msg createMany */ export type ticket_msgCreateManyArgs = { /** * The data used to create many ticket_msgs. */ data: Prisma.ticket_msgCreateManyInput | Prisma.ticket_msgCreateManyInput[] skipDuplicates?: boolean } /** * ticket_msg update */ export type ticket_msgUpdateArgs = { /** * Select specific fields to fetch from the ticket_msg */ select?: Prisma.ticket_msgSelect | null /** * Omit specific fields from the ticket_msg */ omit?: Prisma.ticket_msgOmit | null /** * The data needed to update a ticket_msg. */ data: Prisma.XOR /** * Choose, which ticket_msg to update. */ where: Prisma.ticket_msgWhereUniqueInput } /** * ticket_msg updateMany */ export type ticket_msgUpdateManyArgs = { /** * The data used to update ticket_msgs. */ data: Prisma.XOR /** * Filter which ticket_msgs to update */ where?: Prisma.ticket_msgWhereInput /** * Limit how many ticket_msgs to update. */ limit?: number } /** * ticket_msg upsert */ export type ticket_msgUpsertArgs = { /** * Select specific fields to fetch from the ticket_msg */ select?: Prisma.ticket_msgSelect | null /** * Omit specific fields from the ticket_msg */ omit?: Prisma.ticket_msgOmit | null /** * The filter to search for the ticket_msg to update in case it exists. */ where: Prisma.ticket_msgWhereUniqueInput /** * In case the ticket_msg found by the `where` argument doesn't exist, create a new ticket_msg with this data. */ create: Prisma.XOR /** * In case the ticket_msg was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * ticket_msg delete */ export type ticket_msgDeleteArgs = { /** * Select specific fields to fetch from the ticket_msg */ select?: Prisma.ticket_msgSelect | null /** * Omit specific fields from the ticket_msg */ omit?: Prisma.ticket_msgOmit | null /** * Filter which ticket_msg to delete. */ where: Prisma.ticket_msgWhereUniqueInput } /** * ticket_msg deleteMany */ export type ticket_msgDeleteManyArgs = { /** * Filter which ticket_msgs to delete */ where?: Prisma.ticket_msgWhereInput /** * Limit how many ticket_msgs to delete. */ limit?: number } /** * ticket_msg without action */ export type ticket_msgDefaultArgs = { /** * Select specific fields to fetch from the ticket_msg */ select?: Prisma.ticket_msgSelect | null /** * Omit specific fields from the ticket_msg */ omit?: Prisma.ticket_msgOmit | null }