/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `Admin` 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.js" import type * as Prisma from "../internal/prismaNamespace.js" /** * Model Admin * */ export type AdminModel = runtime.Types.Result.DefaultSelection export type AggregateAdmin = { _count: AdminCountAggregateOutputType | null _min: AdminMinAggregateOutputType | null _max: AdminMaxAggregateOutputType | null } export type AdminMinAggregateOutputType = { id: string | null mobile_number: string | null national_code: string | null first_name: string | null last_name: string | null created_at: Date | null updated_at: Date | null } export type AdminMaxAggregateOutputType = { id: string | null mobile_number: string | null national_code: string | null first_name: string | null last_name: string | null created_at: Date | null updated_at: Date | null } export type AdminCountAggregateOutputType = { id: number mobile_number: number national_code: number first_name: number last_name: number created_at: number updated_at: number _all: number } export type AdminMinAggregateInputType = { id?: true mobile_number?: true national_code?: true first_name?: true last_name?: true created_at?: true updated_at?: true } export type AdminMaxAggregateInputType = { id?: true mobile_number?: true national_code?: true first_name?: true last_name?: true created_at?: true updated_at?: true } export type AdminCountAggregateInputType = { id?: true mobile_number?: true national_code?: true first_name?: true last_name?: true created_at?: true updated_at?: true _all?: true } export type AdminAggregateArgs = { /** * Filter which Admin to aggregate. */ where?: Prisma.AdminWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Admins to fetch. */ orderBy?: Prisma.AdminOrderByWithRelationInput | Prisma.AdminOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.AdminWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Admins 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` Admins. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Admins **/ _count?: true | AdminCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: AdminMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: AdminMaxAggregateInputType } export type GetAdminAggregateType = { [P in keyof T & keyof AggregateAdmin]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type AdminGroupByArgs = { where?: Prisma.AdminWhereInput orderBy?: Prisma.AdminOrderByWithAggregationInput | Prisma.AdminOrderByWithAggregationInput[] by: Prisma.AdminScalarFieldEnum[] | Prisma.AdminScalarFieldEnum having?: Prisma.AdminScalarWhereWithAggregatesInput take?: number skip?: number _count?: AdminCountAggregateInputType | true _min?: AdminMinAggregateInputType _max?: AdminMaxAggregateInputType } export type AdminGroupByOutputType = { id: string mobile_number: string national_code: string | null first_name: string last_name: string created_at: Date updated_at: Date _count: AdminCountAggregateOutputType | null _min: AdminMinAggregateOutputType | null _max: AdminMaxAggregateOutputType | null } type GetAdminGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof AdminGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type AdminWhereInput = { AND?: Prisma.AdminWhereInput | Prisma.AdminWhereInput[] OR?: Prisma.AdminWhereInput[] NOT?: Prisma.AdminWhereInput | Prisma.AdminWhereInput[] id?: Prisma.StringFilter<"Admin"> | string mobile_number?: Prisma.StringFilter<"Admin"> | string national_code?: Prisma.StringNullableFilter<"Admin"> | string | null first_name?: Prisma.StringFilter<"Admin"> | string last_name?: Prisma.StringFilter<"Admin"> | string created_at?: Prisma.DateTimeFilter<"Admin"> | Date | string updated_at?: Prisma.DateTimeFilter<"Admin"> | Date | string accounts?: Prisma.AdminAccountListRelationFilter } export type AdminOrderByWithRelationInput = { id?: Prisma.SortOrder mobile_number?: Prisma.SortOrder national_code?: Prisma.SortOrderInput | Prisma.SortOrder first_name?: Prisma.SortOrder last_name?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder accounts?: Prisma.AdminAccountOrderByRelationAggregateInput _relevance?: Prisma.AdminOrderByRelevanceInput } export type AdminWhereUniqueInput = Prisma.AtLeast<{ id?: string mobile_number?: string national_code?: string AND?: Prisma.AdminWhereInput | Prisma.AdminWhereInput[] OR?: Prisma.AdminWhereInput[] NOT?: Prisma.AdminWhereInput | Prisma.AdminWhereInput[] first_name?: Prisma.StringFilter<"Admin"> | string last_name?: Prisma.StringFilter<"Admin"> | string created_at?: Prisma.DateTimeFilter<"Admin"> | Date | string updated_at?: Prisma.DateTimeFilter<"Admin"> | Date | string accounts?: Prisma.AdminAccountListRelationFilter }, "id" | "mobile_number" | "national_code"> export type AdminOrderByWithAggregationInput = { id?: Prisma.SortOrder mobile_number?: Prisma.SortOrder national_code?: Prisma.SortOrderInput | Prisma.SortOrder first_name?: Prisma.SortOrder last_name?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder _count?: Prisma.AdminCountOrderByAggregateInput _max?: Prisma.AdminMaxOrderByAggregateInput _min?: Prisma.AdminMinOrderByAggregateInput } export type AdminScalarWhereWithAggregatesInput = { AND?: Prisma.AdminScalarWhereWithAggregatesInput | Prisma.AdminScalarWhereWithAggregatesInput[] OR?: Prisma.AdminScalarWhereWithAggregatesInput[] NOT?: Prisma.AdminScalarWhereWithAggregatesInput | Prisma.AdminScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"Admin"> | string mobile_number?: Prisma.StringWithAggregatesFilter<"Admin"> | string national_code?: Prisma.StringNullableWithAggregatesFilter<"Admin"> | string | null first_name?: Prisma.StringWithAggregatesFilter<"Admin"> | string last_name?: Prisma.StringWithAggregatesFilter<"Admin"> | string created_at?: Prisma.DateTimeWithAggregatesFilter<"Admin"> | Date | string updated_at?: Prisma.DateTimeWithAggregatesFilter<"Admin"> | Date | string } export type AdminCreateInput = { id?: string mobile_number: string national_code?: string | null first_name: string last_name: string created_at?: Date | string updated_at?: Date | string accounts?: Prisma.AdminAccountCreateNestedManyWithoutUserInput } export type AdminUncheckedCreateInput = { id?: string mobile_number: string national_code?: string | null first_name: string last_name: string created_at?: Date | string updated_at?: Date | string accounts?: Prisma.AdminAccountUncheckedCreateNestedManyWithoutUserInput } export type AdminUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string mobile_number?: Prisma.StringFieldUpdateOperationsInput | string national_code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null first_name?: Prisma.StringFieldUpdateOperationsInput | string last_name?: Prisma.StringFieldUpdateOperationsInput | string created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string accounts?: Prisma.AdminAccountUpdateManyWithoutUserNestedInput } export type AdminUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string mobile_number?: Prisma.StringFieldUpdateOperationsInput | string national_code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null first_name?: Prisma.StringFieldUpdateOperationsInput | string last_name?: Prisma.StringFieldUpdateOperationsInput | string created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string accounts?: Prisma.AdminAccountUncheckedUpdateManyWithoutUserNestedInput } export type AdminCreateManyInput = { id?: string mobile_number: string national_code?: string | null first_name: string last_name: string created_at?: Date | string updated_at?: Date | string } export type AdminUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string mobile_number?: Prisma.StringFieldUpdateOperationsInput | string national_code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null first_name?: Prisma.StringFieldUpdateOperationsInput | string last_name?: Prisma.StringFieldUpdateOperationsInput | string created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type AdminUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string mobile_number?: Prisma.StringFieldUpdateOperationsInput | string national_code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null first_name?: Prisma.StringFieldUpdateOperationsInput | string last_name?: Prisma.StringFieldUpdateOperationsInput | string created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type AdminOrderByRelevanceInput = { fields: Prisma.AdminOrderByRelevanceFieldEnum | Prisma.AdminOrderByRelevanceFieldEnum[] sort: Prisma.SortOrder search: string } export type AdminCountOrderByAggregateInput = { id?: Prisma.SortOrder mobile_number?: Prisma.SortOrder national_code?: Prisma.SortOrder first_name?: Prisma.SortOrder last_name?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder } export type AdminMaxOrderByAggregateInput = { id?: Prisma.SortOrder mobile_number?: Prisma.SortOrder national_code?: Prisma.SortOrder first_name?: Prisma.SortOrder last_name?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder } export type AdminMinOrderByAggregateInput = { id?: Prisma.SortOrder mobile_number?: Prisma.SortOrder national_code?: Prisma.SortOrder first_name?: Prisma.SortOrder last_name?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder } export type AdminScalarRelationFilter = { is?: Prisma.AdminWhereInput isNot?: Prisma.AdminWhereInput } export type StringFieldUpdateOperationsInput = { set?: string } export type NullableStringFieldUpdateOperationsInput = { set?: string | null } export type DateTimeFieldUpdateOperationsInput = { set?: Date | string } export type AdminCreateNestedOneWithoutAccountsInput = { create?: Prisma.XOR connectOrCreate?: Prisma.AdminCreateOrConnectWithoutAccountsInput connect?: Prisma.AdminWhereUniqueInput } export type AdminUpdateOneRequiredWithoutAccountsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.AdminCreateOrConnectWithoutAccountsInput upsert?: Prisma.AdminUpsertWithoutAccountsInput connect?: Prisma.AdminWhereUniqueInput update?: Prisma.XOR, Prisma.AdminUncheckedUpdateWithoutAccountsInput> } export type AdminCreateWithoutAccountsInput = { id?: string mobile_number: string national_code?: string | null first_name: string last_name: string created_at?: Date | string updated_at?: Date | string } export type AdminUncheckedCreateWithoutAccountsInput = { id?: string mobile_number: string national_code?: string | null first_name: string last_name: string created_at?: Date | string updated_at?: Date | string } export type AdminCreateOrConnectWithoutAccountsInput = { where: Prisma.AdminWhereUniqueInput create: Prisma.XOR } export type AdminUpsertWithoutAccountsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.AdminWhereInput } export type AdminUpdateToOneWithWhereWithoutAccountsInput = { where?: Prisma.AdminWhereInput data: Prisma.XOR } export type AdminUpdateWithoutAccountsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string mobile_number?: Prisma.StringFieldUpdateOperationsInput | string national_code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null first_name?: Prisma.StringFieldUpdateOperationsInput | string last_name?: Prisma.StringFieldUpdateOperationsInput | string created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type AdminUncheckedUpdateWithoutAccountsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string mobile_number?: Prisma.StringFieldUpdateOperationsInput | string national_code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null first_name?: Prisma.StringFieldUpdateOperationsInput | string last_name?: Prisma.StringFieldUpdateOperationsInput | string created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } /** * Count Type AdminCountOutputType */ export type AdminCountOutputType = { accounts: number } export type AdminCountOutputTypeSelect = { accounts?: boolean | AdminCountOutputTypeCountAccountsArgs } /** * AdminCountOutputType without action */ export type AdminCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the AdminCountOutputType */ select?: Prisma.AdminCountOutputTypeSelect | null } /** * AdminCountOutputType without action */ export type AdminCountOutputTypeCountAccountsArgs = { where?: Prisma.AdminAccountWhereInput } export type AdminSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean mobile_number?: boolean national_code?: boolean first_name?: boolean last_name?: boolean created_at?: boolean updated_at?: boolean accounts?: boolean | Prisma.Admin$accountsArgs _count?: boolean | Prisma.AdminCountOutputTypeDefaultArgs }, ExtArgs["result"]["admin"]> export type AdminSelectScalar = { id?: boolean mobile_number?: boolean national_code?: boolean first_name?: boolean last_name?: boolean created_at?: boolean updated_at?: boolean } export type AdminOmit = runtime.Types.Extensions.GetOmit<"id" | "mobile_number" | "national_code" | "first_name" | "last_name" | "created_at" | "updated_at", ExtArgs["result"]["admin"]> export type AdminInclude = { accounts?: boolean | Prisma.Admin$accountsArgs _count?: boolean | Prisma.AdminCountOutputTypeDefaultArgs } export type $AdminPayload = { name: "Admin" objects: { accounts: Prisma.$AdminAccountPayload[] } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string mobile_number: string national_code: string | null first_name: string last_name: string created_at: Date updated_at: Date }, ExtArgs["result"]["admin"]> composites: {} } export type AdminGetPayload = runtime.Types.Result.GetResult export type AdminCountArgs = Omit & { select?: AdminCountAggregateInputType | true } export interface AdminDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Admin'], meta: { name: 'Admin' } } /** * Find zero or one Admin that matches the filter. * @param {AdminFindUniqueArgs} args - Arguments to find a Admin * @example * // Get one Admin * const admin = await prisma.admin.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__AdminClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Admin that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {AdminFindUniqueOrThrowArgs} args - Arguments to find a Admin * @example * // Get one Admin * const admin = await prisma.admin.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__AdminClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Admin 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 {AdminFindFirstArgs} args - Arguments to find a Admin * @example * // Get one Admin * const admin = await prisma.admin.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__AdminClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Admin 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 {AdminFindFirstOrThrowArgs} args - Arguments to find a Admin * @example * // Get one Admin * const admin = await prisma.admin.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__AdminClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Admins 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 {AdminFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Admins * const admins = await prisma.admin.findMany() * * // Get first 10 Admins * const admins = await prisma.admin.findMany({ take: 10 }) * * // Only select the `id` * const adminWithIdOnly = await prisma.admin.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Admin. * @param {AdminCreateArgs} args - Arguments to create a Admin. * @example * // Create one Admin * const Admin = await prisma.admin.create({ * data: { * // ... data to create a Admin * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__AdminClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Admins. * @param {AdminCreateManyArgs} args - Arguments to create many Admins. * @example * // Create many Admins * const admin = await prisma.admin.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Delete a Admin. * @param {AdminDeleteArgs} args - Arguments to delete one Admin. * @example * // Delete one Admin * const Admin = await prisma.admin.delete({ * where: { * // ... filter to delete one Admin * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__AdminClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Admin. * @param {AdminUpdateArgs} args - Arguments to update one Admin. * @example * // Update one Admin * const admin = await prisma.admin.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__AdminClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Admins. * @param {AdminDeleteManyArgs} args - Arguments to filter Admins to delete. * @example * // Delete a few Admins * const { count } = await prisma.admin.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Admins. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AdminUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Admins * const admin = await prisma.admin.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create or update one Admin. * @param {AdminUpsertArgs} args - Arguments to update or create a Admin. * @example * // Update or create a Admin * const admin = await prisma.admin.upsert({ * create: { * // ... data to create a Admin * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Admin we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__AdminClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Admins. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AdminCountArgs} args - Arguments to filter Admins to count. * @example * // Count the number of Admins * const count = await prisma.admin.count({ * where: { * // ... the filter for the Admins 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 Admin. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AdminAggregateArgs} 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 Admin. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AdminGroupByArgs} 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 AdminGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: AdminGroupByArgs['orderBy'] } : { orderBy?: AdminGroupByArgs['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 ? GetAdminGroupByPayload : Prisma.PrismaPromise /** * Fields of the Admin model */ readonly fields: AdminFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Admin. * 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__AdminClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" accounts = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> /** * 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 Admin model */ export interface AdminFieldRefs { readonly id: Prisma.FieldRef<"Admin", 'String'> readonly mobile_number: Prisma.FieldRef<"Admin", 'String'> readonly national_code: Prisma.FieldRef<"Admin", 'String'> readonly first_name: Prisma.FieldRef<"Admin", 'String'> readonly last_name: Prisma.FieldRef<"Admin", 'String'> readonly created_at: Prisma.FieldRef<"Admin", 'DateTime'> readonly updated_at: Prisma.FieldRef<"Admin", 'DateTime'> } // Custom InputTypes /** * Admin findUnique */ export type AdminFindUniqueArgs = { /** * Select specific fields to fetch from the Admin */ select?: Prisma.AdminSelect | null /** * Omit specific fields from the Admin */ omit?: Prisma.AdminOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AdminInclude | null /** * Filter, which Admin to fetch. */ where: Prisma.AdminWhereUniqueInput } /** * Admin findUniqueOrThrow */ export type AdminFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Admin */ select?: Prisma.AdminSelect | null /** * Omit specific fields from the Admin */ omit?: Prisma.AdminOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AdminInclude | null /** * Filter, which Admin to fetch. */ where: Prisma.AdminWhereUniqueInput } /** * Admin findFirst */ export type AdminFindFirstArgs = { /** * Select specific fields to fetch from the Admin */ select?: Prisma.AdminSelect | null /** * Omit specific fields from the Admin */ omit?: Prisma.AdminOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AdminInclude | null /** * Filter, which Admin to fetch. */ where?: Prisma.AdminWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Admins to fetch. */ orderBy?: Prisma.AdminOrderByWithRelationInput | Prisma.AdminOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Admins. */ cursor?: Prisma.AdminWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Admins 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` Admins. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Admins. */ distinct?: Prisma.AdminScalarFieldEnum | Prisma.AdminScalarFieldEnum[] } /** * Admin findFirstOrThrow */ export type AdminFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Admin */ select?: Prisma.AdminSelect | null /** * Omit specific fields from the Admin */ omit?: Prisma.AdminOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AdminInclude | null /** * Filter, which Admin to fetch. */ where?: Prisma.AdminWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Admins to fetch. */ orderBy?: Prisma.AdminOrderByWithRelationInput | Prisma.AdminOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Admins. */ cursor?: Prisma.AdminWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Admins 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` Admins. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Admins. */ distinct?: Prisma.AdminScalarFieldEnum | Prisma.AdminScalarFieldEnum[] } /** * Admin findMany */ export type AdminFindManyArgs = { /** * Select specific fields to fetch from the Admin */ select?: Prisma.AdminSelect | null /** * Omit specific fields from the Admin */ omit?: Prisma.AdminOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AdminInclude | null /** * Filter, which Admins to fetch. */ where?: Prisma.AdminWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Admins to fetch. */ orderBy?: Prisma.AdminOrderByWithRelationInput | Prisma.AdminOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Admins. */ cursor?: Prisma.AdminWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Admins 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` Admins. */ skip?: number distinct?: Prisma.AdminScalarFieldEnum | Prisma.AdminScalarFieldEnum[] } /** * Admin create */ export type AdminCreateArgs = { /** * Select specific fields to fetch from the Admin */ select?: Prisma.AdminSelect | null /** * Omit specific fields from the Admin */ omit?: Prisma.AdminOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AdminInclude | null /** * The data needed to create a Admin. */ data: Prisma.XOR } /** * Admin createMany */ export type AdminCreateManyArgs = { /** * The data used to create many Admins. */ data: Prisma.AdminCreateManyInput | Prisma.AdminCreateManyInput[] skipDuplicates?: boolean } /** * Admin update */ export type AdminUpdateArgs = { /** * Select specific fields to fetch from the Admin */ select?: Prisma.AdminSelect | null /** * Omit specific fields from the Admin */ omit?: Prisma.AdminOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AdminInclude | null /** * The data needed to update a Admin. */ data: Prisma.XOR /** * Choose, which Admin to update. */ where: Prisma.AdminWhereUniqueInput } /** * Admin updateMany */ export type AdminUpdateManyArgs = { /** * The data used to update Admins. */ data: Prisma.XOR /** * Filter which Admins to update */ where?: Prisma.AdminWhereInput /** * Limit how many Admins to update. */ limit?: number } /** * Admin upsert */ export type AdminUpsertArgs = { /** * Select specific fields to fetch from the Admin */ select?: Prisma.AdminSelect | null /** * Omit specific fields from the Admin */ omit?: Prisma.AdminOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AdminInclude | null /** * The filter to search for the Admin to update in case it exists. */ where: Prisma.AdminWhereUniqueInput /** * In case the Admin found by the `where` argument doesn't exist, create a new Admin with this data. */ create: Prisma.XOR /** * In case the Admin was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * Admin delete */ export type AdminDeleteArgs = { /** * Select specific fields to fetch from the Admin */ select?: Prisma.AdminSelect | null /** * Omit specific fields from the Admin */ omit?: Prisma.AdminOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AdminInclude | null /** * Filter which Admin to delete. */ where: Prisma.AdminWhereUniqueInput } /** * Admin deleteMany */ export type AdminDeleteManyArgs = { /** * Filter which Admins to delete */ where?: Prisma.AdminWhereInput /** * Limit how many Admins to delete. */ limit?: number } /** * Admin.accounts */ export type Admin$accountsArgs = { /** * Select specific fields to fetch from the AdminAccount */ select?: Prisma.AdminAccountSelect | null /** * Omit specific fields from the AdminAccount */ omit?: Prisma.AdminAccountOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AdminAccountInclude | null where?: Prisma.AdminAccountWhereInput orderBy?: Prisma.AdminAccountOrderByWithRelationInput | Prisma.AdminAccountOrderByWithRelationInput[] cursor?: Prisma.AdminAccountWhereUniqueInput take?: number skip?: number distinct?: Prisma.AdminAccountScalarFieldEnum | Prisma.AdminAccountScalarFieldEnum[] } /** * Admin without action */ export type AdminDefaultArgs = { /** * Select specific fields to fetch from the Admin */ select?: Prisma.AdminSelect | null /** * Omit specific fields from the Admin */ omit?: Prisma.AdminOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AdminInclude | null }