/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `AdminAccount` 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 AdminAccount * */ export type AdminAccountModel = runtime.Types.Result.DefaultSelection export type AggregateAdminAccount = { _count: AdminAccountCountAggregateOutputType | null _min: AdminAccountMinAggregateOutputType | null _max: AdminAccountMaxAggregateOutputType | null } export type AdminAccountMinAggregateOutputType = { id: string | null created_at: Date | null updated_at: Date | null admin_id: string | null account_id: string | null } export type AdminAccountMaxAggregateOutputType = { id: string | null created_at: Date | null updated_at: Date | null admin_id: string | null account_id: string | null } export type AdminAccountCountAggregateOutputType = { id: number created_at: number updated_at: number admin_id: number account_id: number _all: number } export type AdminAccountMinAggregateInputType = { id?: true created_at?: true updated_at?: true admin_id?: true account_id?: true } export type AdminAccountMaxAggregateInputType = { id?: true created_at?: true updated_at?: true admin_id?: true account_id?: true } export type AdminAccountCountAggregateInputType = { id?: true created_at?: true updated_at?: true admin_id?: true account_id?: true _all?: true } export type AdminAccountAggregateArgs = { /** * Filter which AdminAccount to aggregate. */ where?: Prisma.AdminAccountWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AdminAccounts to fetch. */ orderBy?: Prisma.AdminAccountOrderByWithRelationInput | Prisma.AdminAccountOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.AdminAccountWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AdminAccounts 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` AdminAccounts. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned AdminAccounts **/ _count?: true | AdminAccountCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: AdminAccountMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: AdminAccountMaxAggregateInputType } export type GetAdminAccountAggregateType = { [P in keyof T & keyof AggregateAdminAccount]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type AdminAccountGroupByArgs = { where?: Prisma.AdminAccountWhereInput orderBy?: Prisma.AdminAccountOrderByWithAggregationInput | Prisma.AdminAccountOrderByWithAggregationInput[] by: Prisma.AdminAccountScalarFieldEnum[] | Prisma.AdminAccountScalarFieldEnum having?: Prisma.AdminAccountScalarWhereWithAggregatesInput take?: number skip?: number _count?: AdminAccountCountAggregateInputType | true _min?: AdminAccountMinAggregateInputType _max?: AdminAccountMaxAggregateInputType } export type AdminAccountGroupByOutputType = { id: string created_at: Date updated_at: Date admin_id: string account_id: string _count: AdminAccountCountAggregateOutputType | null _min: AdminAccountMinAggregateOutputType | null _max: AdminAccountMaxAggregateOutputType | null } export type GetAdminAccountGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof AdminAccountGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type AdminAccountWhereInput = { AND?: Prisma.AdminAccountWhereInput | Prisma.AdminAccountWhereInput[] OR?: Prisma.AdminAccountWhereInput[] NOT?: Prisma.AdminAccountWhereInput | Prisma.AdminAccountWhereInput[] id?: Prisma.StringFilter<"AdminAccount"> | string created_at?: Prisma.DateTimeFilter<"AdminAccount"> | Date | string updated_at?: Prisma.DateTimeFilter<"AdminAccount"> | Date | string admin_id?: Prisma.StringFilter<"AdminAccount"> | string account_id?: Prisma.StringFilter<"AdminAccount"> | string account?: Prisma.XOR admin?: Prisma.XOR } export type AdminAccountOrderByWithRelationInput = { id?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder admin_id?: Prisma.SortOrder account_id?: Prisma.SortOrder account?: Prisma.AccountOrderByWithRelationInput admin?: Prisma.AdminOrderByWithRelationInput _relevance?: Prisma.AdminAccountOrderByRelevanceInput } export type AdminAccountWhereUniqueInput = Prisma.AtLeast<{ id?: string account_id?: string AND?: Prisma.AdminAccountWhereInput | Prisma.AdminAccountWhereInput[] OR?: Prisma.AdminAccountWhereInput[] NOT?: Prisma.AdminAccountWhereInput | Prisma.AdminAccountWhereInput[] created_at?: Prisma.DateTimeFilter<"AdminAccount"> | Date | string updated_at?: Prisma.DateTimeFilter<"AdminAccount"> | Date | string admin_id?: Prisma.StringFilter<"AdminAccount"> | string account?: Prisma.XOR admin?: Prisma.XOR }, "id" | "account_id"> export type AdminAccountOrderByWithAggregationInput = { id?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder admin_id?: Prisma.SortOrder account_id?: Prisma.SortOrder _count?: Prisma.AdminAccountCountOrderByAggregateInput _max?: Prisma.AdminAccountMaxOrderByAggregateInput _min?: Prisma.AdminAccountMinOrderByAggregateInput } export type AdminAccountScalarWhereWithAggregatesInput = { AND?: Prisma.AdminAccountScalarWhereWithAggregatesInput | Prisma.AdminAccountScalarWhereWithAggregatesInput[] OR?: Prisma.AdminAccountScalarWhereWithAggregatesInput[] NOT?: Prisma.AdminAccountScalarWhereWithAggregatesInput | Prisma.AdminAccountScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"AdminAccount"> | string created_at?: Prisma.DateTimeWithAggregatesFilter<"AdminAccount"> | Date | string updated_at?: Prisma.DateTimeWithAggregatesFilter<"AdminAccount"> | Date | string admin_id?: Prisma.StringWithAggregatesFilter<"AdminAccount"> | string account_id?: Prisma.StringWithAggregatesFilter<"AdminAccount"> | string } export type AdminAccountCreateInput = { id?: string created_at?: Date | string updated_at?: Date | string account: Prisma.AccountCreateNestedOneWithoutAdmin_accountInput admin: Prisma.AdminCreateNestedOneWithoutAccountsInput } export type AdminAccountUncheckedCreateInput = { id?: string created_at?: Date | string updated_at?: Date | string admin_id: string account_id: string } export type AdminAccountUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string account?: Prisma.AccountUpdateOneRequiredWithoutAdmin_accountNestedInput admin?: Prisma.AdminUpdateOneRequiredWithoutAccountsNestedInput } export type AdminAccountUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string admin_id?: Prisma.StringFieldUpdateOperationsInput | string account_id?: Prisma.StringFieldUpdateOperationsInput | string } export type AdminAccountCreateManyInput = { id?: string created_at?: Date | string updated_at?: Date | string admin_id: string account_id: string } export type AdminAccountUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type AdminAccountUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string admin_id?: Prisma.StringFieldUpdateOperationsInput | string account_id?: Prisma.StringFieldUpdateOperationsInput | string } export type AdminAccountOrderByRelevanceInput = { fields: Prisma.AdminAccountOrderByRelevanceFieldEnum | Prisma.AdminAccountOrderByRelevanceFieldEnum[] sort: Prisma.SortOrder search: string } export type AdminAccountCountOrderByAggregateInput = { id?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder admin_id?: Prisma.SortOrder account_id?: Prisma.SortOrder } export type AdminAccountMaxOrderByAggregateInput = { id?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder admin_id?: Prisma.SortOrder account_id?: Prisma.SortOrder } export type AdminAccountMinOrderByAggregateInput = { id?: Prisma.SortOrder created_at?: Prisma.SortOrder updated_at?: Prisma.SortOrder admin_id?: Prisma.SortOrder account_id?: Prisma.SortOrder } export type AdminAccountListRelationFilter = { every?: Prisma.AdminAccountWhereInput some?: Prisma.AdminAccountWhereInput none?: Prisma.AdminAccountWhereInput } export type AdminAccountOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type AdminAccountNullableScalarRelationFilter = { is?: Prisma.AdminAccountWhereInput | null isNot?: Prisma.AdminAccountWhereInput | null } export type StringFieldUpdateOperationsInput = { set?: string } export type DateTimeFieldUpdateOperationsInput = { set?: Date | string } export type AdminAccountCreateNestedManyWithoutAdminInput = { create?: Prisma.XOR | Prisma.AdminAccountCreateWithoutAdminInput[] | Prisma.AdminAccountUncheckedCreateWithoutAdminInput[] connectOrCreate?: Prisma.AdminAccountCreateOrConnectWithoutAdminInput | Prisma.AdminAccountCreateOrConnectWithoutAdminInput[] createMany?: Prisma.AdminAccountCreateManyAdminInputEnvelope connect?: Prisma.AdminAccountWhereUniqueInput | Prisma.AdminAccountWhereUniqueInput[] } export type AdminAccountUncheckedCreateNestedManyWithoutAdminInput = { create?: Prisma.XOR | Prisma.AdminAccountCreateWithoutAdminInput[] | Prisma.AdminAccountUncheckedCreateWithoutAdminInput[] connectOrCreate?: Prisma.AdminAccountCreateOrConnectWithoutAdminInput | Prisma.AdminAccountCreateOrConnectWithoutAdminInput[] createMany?: Prisma.AdminAccountCreateManyAdminInputEnvelope connect?: Prisma.AdminAccountWhereUniqueInput | Prisma.AdminAccountWhereUniqueInput[] } export type AdminAccountUpdateManyWithoutAdminNestedInput = { create?: Prisma.XOR | Prisma.AdminAccountCreateWithoutAdminInput[] | Prisma.AdminAccountUncheckedCreateWithoutAdminInput[] connectOrCreate?: Prisma.AdminAccountCreateOrConnectWithoutAdminInput | Prisma.AdminAccountCreateOrConnectWithoutAdminInput[] upsert?: Prisma.AdminAccountUpsertWithWhereUniqueWithoutAdminInput | Prisma.AdminAccountUpsertWithWhereUniqueWithoutAdminInput[] createMany?: Prisma.AdminAccountCreateManyAdminInputEnvelope set?: Prisma.AdminAccountWhereUniqueInput | Prisma.AdminAccountWhereUniqueInput[] disconnect?: Prisma.AdminAccountWhereUniqueInput | Prisma.AdminAccountWhereUniqueInput[] delete?: Prisma.AdminAccountWhereUniqueInput | Prisma.AdminAccountWhereUniqueInput[] connect?: Prisma.AdminAccountWhereUniqueInput | Prisma.AdminAccountWhereUniqueInput[] update?: Prisma.AdminAccountUpdateWithWhereUniqueWithoutAdminInput | Prisma.AdminAccountUpdateWithWhereUniqueWithoutAdminInput[] updateMany?: Prisma.AdminAccountUpdateManyWithWhereWithoutAdminInput | Prisma.AdminAccountUpdateManyWithWhereWithoutAdminInput[] deleteMany?: Prisma.AdminAccountScalarWhereInput | Prisma.AdminAccountScalarWhereInput[] } export type AdminAccountUncheckedUpdateManyWithoutAdminNestedInput = { create?: Prisma.XOR | Prisma.AdminAccountCreateWithoutAdminInput[] | Prisma.AdminAccountUncheckedCreateWithoutAdminInput[] connectOrCreate?: Prisma.AdminAccountCreateOrConnectWithoutAdminInput | Prisma.AdminAccountCreateOrConnectWithoutAdminInput[] upsert?: Prisma.AdminAccountUpsertWithWhereUniqueWithoutAdminInput | Prisma.AdminAccountUpsertWithWhereUniqueWithoutAdminInput[] createMany?: Prisma.AdminAccountCreateManyAdminInputEnvelope set?: Prisma.AdminAccountWhereUniqueInput | Prisma.AdminAccountWhereUniqueInput[] disconnect?: Prisma.AdminAccountWhereUniqueInput | Prisma.AdminAccountWhereUniqueInput[] delete?: Prisma.AdminAccountWhereUniqueInput | Prisma.AdminAccountWhereUniqueInput[] connect?: Prisma.AdminAccountWhereUniqueInput | Prisma.AdminAccountWhereUniqueInput[] update?: Prisma.AdminAccountUpdateWithWhereUniqueWithoutAdminInput | Prisma.AdminAccountUpdateWithWhereUniqueWithoutAdminInput[] updateMany?: Prisma.AdminAccountUpdateManyWithWhereWithoutAdminInput | Prisma.AdminAccountUpdateManyWithWhereWithoutAdminInput[] deleteMany?: Prisma.AdminAccountScalarWhereInput | Prisma.AdminAccountScalarWhereInput[] } export type AdminAccountCreateNestedOneWithoutAccountInput = { create?: Prisma.XOR connectOrCreate?: Prisma.AdminAccountCreateOrConnectWithoutAccountInput connect?: Prisma.AdminAccountWhereUniqueInput } export type AdminAccountUncheckedCreateNestedOneWithoutAccountInput = { create?: Prisma.XOR connectOrCreate?: Prisma.AdminAccountCreateOrConnectWithoutAccountInput connect?: Prisma.AdminAccountWhereUniqueInput } export type AdminAccountUpdateOneWithoutAccountNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.AdminAccountCreateOrConnectWithoutAccountInput upsert?: Prisma.AdminAccountUpsertWithoutAccountInput disconnect?: Prisma.AdminAccountWhereInput | boolean delete?: Prisma.AdminAccountWhereInput | boolean connect?: Prisma.AdminAccountWhereUniqueInput update?: Prisma.XOR, Prisma.AdminAccountUncheckedUpdateWithoutAccountInput> } export type AdminAccountUncheckedUpdateOneWithoutAccountNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.AdminAccountCreateOrConnectWithoutAccountInput upsert?: Prisma.AdminAccountUpsertWithoutAccountInput disconnect?: Prisma.AdminAccountWhereInput | boolean delete?: Prisma.AdminAccountWhereInput | boolean connect?: Prisma.AdminAccountWhereUniqueInput update?: Prisma.XOR, Prisma.AdminAccountUncheckedUpdateWithoutAccountInput> } export type AdminAccountCreateWithoutAdminInput = { id?: string created_at?: Date | string updated_at?: Date | string account: Prisma.AccountCreateNestedOneWithoutAdmin_accountInput } export type AdminAccountUncheckedCreateWithoutAdminInput = { id?: string created_at?: Date | string updated_at?: Date | string account_id: string } export type AdminAccountCreateOrConnectWithoutAdminInput = { where: Prisma.AdminAccountWhereUniqueInput create: Prisma.XOR } export type AdminAccountCreateManyAdminInputEnvelope = { data: Prisma.AdminAccountCreateManyAdminInput | Prisma.AdminAccountCreateManyAdminInput[] skipDuplicates?: boolean } export type AdminAccountUpsertWithWhereUniqueWithoutAdminInput = { where: Prisma.AdminAccountWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type AdminAccountUpdateWithWhereUniqueWithoutAdminInput = { where: Prisma.AdminAccountWhereUniqueInput data: Prisma.XOR } export type AdminAccountUpdateManyWithWhereWithoutAdminInput = { where: Prisma.AdminAccountScalarWhereInput data: Prisma.XOR } export type AdminAccountScalarWhereInput = { AND?: Prisma.AdminAccountScalarWhereInput | Prisma.AdminAccountScalarWhereInput[] OR?: Prisma.AdminAccountScalarWhereInput[] NOT?: Prisma.AdminAccountScalarWhereInput | Prisma.AdminAccountScalarWhereInput[] id?: Prisma.StringFilter<"AdminAccount"> | string created_at?: Prisma.DateTimeFilter<"AdminAccount"> | Date | string updated_at?: Prisma.DateTimeFilter<"AdminAccount"> | Date | string admin_id?: Prisma.StringFilter<"AdminAccount"> | string account_id?: Prisma.StringFilter<"AdminAccount"> | string } export type AdminAccountCreateWithoutAccountInput = { id?: string created_at?: Date | string updated_at?: Date | string admin: Prisma.AdminCreateNestedOneWithoutAccountsInput } export type AdminAccountUncheckedCreateWithoutAccountInput = { id?: string created_at?: Date | string updated_at?: Date | string admin_id: string } export type AdminAccountCreateOrConnectWithoutAccountInput = { where: Prisma.AdminAccountWhereUniqueInput create: Prisma.XOR } export type AdminAccountUpsertWithoutAccountInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.AdminAccountWhereInput } export type AdminAccountUpdateToOneWithWhereWithoutAccountInput = { where?: Prisma.AdminAccountWhereInput data: Prisma.XOR } export type AdminAccountUpdateWithoutAccountInput = { id?: Prisma.StringFieldUpdateOperationsInput | string created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string admin?: Prisma.AdminUpdateOneRequiredWithoutAccountsNestedInput } export type AdminAccountUncheckedUpdateWithoutAccountInput = { id?: Prisma.StringFieldUpdateOperationsInput | string created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string admin_id?: Prisma.StringFieldUpdateOperationsInput | string } export type AdminAccountCreateManyAdminInput = { id?: string created_at?: Date | string updated_at?: Date | string account_id: string } export type AdminAccountUpdateWithoutAdminInput = { id?: Prisma.StringFieldUpdateOperationsInput | string created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string account?: Prisma.AccountUpdateOneRequiredWithoutAdmin_accountNestedInput } export type AdminAccountUncheckedUpdateWithoutAdminInput = { id?: Prisma.StringFieldUpdateOperationsInput | string created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string account_id?: Prisma.StringFieldUpdateOperationsInput | string } export type AdminAccountUncheckedUpdateManyWithoutAdminInput = { id?: Prisma.StringFieldUpdateOperationsInput | string created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string account_id?: Prisma.StringFieldUpdateOperationsInput | string } export type AdminAccountSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean created_at?: boolean updated_at?: boolean admin_id?: boolean account_id?: boolean account?: boolean | Prisma.AccountDefaultArgs admin?: boolean | Prisma.AdminDefaultArgs }, ExtArgs["result"]["adminAccount"]> export type AdminAccountSelectScalar = { id?: boolean created_at?: boolean updated_at?: boolean admin_id?: boolean account_id?: boolean } export type AdminAccountOmit = runtime.Types.Extensions.GetOmit<"id" | "created_at" | "updated_at" | "admin_id" | "account_id", ExtArgs["result"]["adminAccount"]> export type AdminAccountInclude = { account?: boolean | Prisma.AccountDefaultArgs admin?: boolean | Prisma.AdminDefaultArgs } export type $AdminAccountPayload = { name: "AdminAccount" objects: { account: Prisma.$AccountPayload admin: Prisma.$AdminPayload } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string created_at: Date updated_at: Date admin_id: string account_id: string }, ExtArgs["result"]["adminAccount"]> composites: {} } export type AdminAccountGetPayload = runtime.Types.Result.GetResult export type AdminAccountCountArgs = Omit & { select?: AdminAccountCountAggregateInputType | true } export interface AdminAccountDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['AdminAccount'], meta: { name: 'AdminAccount' } } /** * Find zero or one AdminAccount that matches the filter. * @param {AdminAccountFindUniqueArgs} args - Arguments to find a AdminAccount * @example * // Get one AdminAccount * const adminAccount = await prisma.adminAccount.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__AdminAccountClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one AdminAccount that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {AdminAccountFindUniqueOrThrowArgs} args - Arguments to find a AdminAccount * @example * // Get one AdminAccount * const adminAccount = await prisma.adminAccount.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__AdminAccountClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first AdminAccount 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 {AdminAccountFindFirstArgs} args - Arguments to find a AdminAccount * @example * // Get one AdminAccount * const adminAccount = await prisma.adminAccount.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__AdminAccountClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first AdminAccount 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 {AdminAccountFindFirstOrThrowArgs} args - Arguments to find a AdminAccount * @example * // Get one AdminAccount * const adminAccount = await prisma.adminAccount.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__AdminAccountClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more AdminAccounts 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 {AdminAccountFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all AdminAccounts * const adminAccounts = await prisma.adminAccount.findMany() * * // Get first 10 AdminAccounts * const adminAccounts = await prisma.adminAccount.findMany({ take: 10 }) * * // Only select the `id` * const adminAccountWithIdOnly = await prisma.adminAccount.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a AdminAccount. * @param {AdminAccountCreateArgs} args - Arguments to create a AdminAccount. * @example * // Create one AdminAccount * const AdminAccount = await prisma.adminAccount.create({ * data: { * // ... data to create a AdminAccount * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__AdminAccountClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many AdminAccounts. * @param {AdminAccountCreateManyArgs} args - Arguments to create many AdminAccounts. * @example * // Create many AdminAccounts * const adminAccount = await prisma.adminAccount.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Delete a AdminAccount. * @param {AdminAccountDeleteArgs} args - Arguments to delete one AdminAccount. * @example * // Delete one AdminAccount * const AdminAccount = await prisma.adminAccount.delete({ * where: { * // ... filter to delete one AdminAccount * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__AdminAccountClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one AdminAccount. * @param {AdminAccountUpdateArgs} args - Arguments to update one AdminAccount. * @example * // Update one AdminAccount * const adminAccount = await prisma.adminAccount.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__AdminAccountClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more AdminAccounts. * @param {AdminAccountDeleteManyArgs} args - Arguments to filter AdminAccounts to delete. * @example * // Delete a few AdminAccounts * const { count } = await prisma.adminAccount.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more AdminAccounts. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AdminAccountUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many AdminAccounts * const adminAccount = await prisma.adminAccount.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create or update one AdminAccount. * @param {AdminAccountUpsertArgs} args - Arguments to update or create a AdminAccount. * @example * // Update or create a AdminAccount * const adminAccount = await prisma.adminAccount.upsert({ * create: { * // ... data to create a AdminAccount * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the AdminAccount we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__AdminAccountClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of AdminAccounts. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AdminAccountCountArgs} args - Arguments to filter AdminAccounts to count. * @example * // Count the number of AdminAccounts * const count = await prisma.adminAccount.count({ * where: { * // ... the filter for the AdminAccounts 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 AdminAccount. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AdminAccountAggregateArgs} 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 AdminAccount. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AdminAccountGroupByArgs} 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 AdminAccountGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: AdminAccountGroupByArgs['orderBy'] } : { orderBy?: AdminAccountGroupByArgs['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 ? GetAdminAccountGroupByPayload : Prisma.PrismaPromise /** * Fields of the AdminAccount model */ readonly fields: AdminAccountFieldRefs; } /** * The delegate class that acts as a "Promise-like" for AdminAccount. * 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__AdminAccountClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" account = {}>(args?: Prisma.Subset>): Prisma.Prisma__AccountClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> admin = {}>(args?: Prisma.Subset>): Prisma.Prisma__AdminClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> /** * 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 AdminAccount model */ export interface AdminAccountFieldRefs { readonly id: Prisma.FieldRef<"AdminAccount", 'String'> readonly created_at: Prisma.FieldRef<"AdminAccount", 'DateTime'> readonly updated_at: Prisma.FieldRef<"AdminAccount", 'DateTime'> readonly admin_id: Prisma.FieldRef<"AdminAccount", 'String'> readonly account_id: Prisma.FieldRef<"AdminAccount", 'String'> } // Custom InputTypes /** * AdminAccount findUnique */ export type AdminAccountFindUniqueArgs = { /** * 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 /** * Filter, which AdminAccount to fetch. */ where: Prisma.AdminAccountWhereUniqueInput } /** * AdminAccount findUniqueOrThrow */ export type AdminAccountFindUniqueOrThrowArgs = { /** * 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 /** * Filter, which AdminAccount to fetch. */ where: Prisma.AdminAccountWhereUniqueInput } /** * AdminAccount findFirst */ export type AdminAccountFindFirstArgs = { /** * 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 /** * Filter, which AdminAccount to fetch. */ where?: Prisma.AdminAccountWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AdminAccounts to fetch. */ orderBy?: Prisma.AdminAccountOrderByWithRelationInput | Prisma.AdminAccountOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for AdminAccounts. */ cursor?: Prisma.AdminAccountWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AdminAccounts 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` AdminAccounts. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of AdminAccounts. */ distinct?: Prisma.AdminAccountScalarFieldEnum | Prisma.AdminAccountScalarFieldEnum[] } /** * AdminAccount findFirstOrThrow */ export type AdminAccountFindFirstOrThrowArgs = { /** * 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 /** * Filter, which AdminAccount to fetch. */ where?: Prisma.AdminAccountWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AdminAccounts to fetch. */ orderBy?: Prisma.AdminAccountOrderByWithRelationInput | Prisma.AdminAccountOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for AdminAccounts. */ cursor?: Prisma.AdminAccountWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AdminAccounts 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` AdminAccounts. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of AdminAccounts. */ distinct?: Prisma.AdminAccountScalarFieldEnum | Prisma.AdminAccountScalarFieldEnum[] } /** * AdminAccount findMany */ export type AdminAccountFindManyArgs = { /** * 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 /** * Filter, which AdminAccounts to fetch. */ where?: Prisma.AdminAccountWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AdminAccounts to fetch. */ orderBy?: Prisma.AdminAccountOrderByWithRelationInput | Prisma.AdminAccountOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing AdminAccounts. */ cursor?: Prisma.AdminAccountWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AdminAccounts 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` AdminAccounts. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of AdminAccounts. */ distinct?: Prisma.AdminAccountScalarFieldEnum | Prisma.AdminAccountScalarFieldEnum[] } /** * AdminAccount create */ export type AdminAccountCreateArgs = { /** * 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 /** * The data needed to create a AdminAccount. */ data: Prisma.XOR } /** * AdminAccount createMany */ export type AdminAccountCreateManyArgs = { /** * The data used to create many AdminAccounts. */ data: Prisma.AdminAccountCreateManyInput | Prisma.AdminAccountCreateManyInput[] skipDuplicates?: boolean } /** * AdminAccount update */ export type AdminAccountUpdateArgs = { /** * 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 /** * The data needed to update a AdminAccount. */ data: Prisma.XOR /** * Choose, which AdminAccount to update. */ where: Prisma.AdminAccountWhereUniqueInput } /** * AdminAccount updateMany */ export type AdminAccountUpdateManyArgs = { /** * The data used to update AdminAccounts. */ data: Prisma.XOR /** * Filter which AdminAccounts to update */ where?: Prisma.AdminAccountWhereInput /** * Limit how many AdminAccounts to update. */ limit?: number } /** * AdminAccount upsert */ export type AdminAccountUpsertArgs = { /** * 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 /** * The filter to search for the AdminAccount to update in case it exists. */ where: Prisma.AdminAccountWhereUniqueInput /** * In case the AdminAccount found by the `where` argument doesn't exist, create a new AdminAccount with this data. */ create: Prisma.XOR /** * In case the AdminAccount was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * AdminAccount delete */ export type AdminAccountDeleteArgs = { /** * 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 /** * Filter which AdminAccount to delete. */ where: Prisma.AdminAccountWhereUniqueInput } /** * AdminAccount deleteMany */ export type AdminAccountDeleteManyArgs = { /** * Filter which AdminAccounts to delete */ where?: Prisma.AdminAccountWhereInput /** * Limit how many AdminAccounts to delete. */ limit?: number } /** * AdminAccount without action */ export type AdminAccountDefaultArgs = { /** * 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 }