1287 lines
43 KiB
TypeScript
1287 lines
43 KiB
TypeScript
|
|
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
/* eslint-disable */
|
|
// biome-ignore-all lint: generated file
|
|
// @ts-nocheck
|
|
/*
|
|
* This file exports the `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<Prisma.$AdminPayload>
|
|
|
|
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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* 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<T extends AdminAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateAdmin]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateAdmin[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateAdmin[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type AdminGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
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<T extends AdminGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<AdminGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof AdminGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AdminGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], AdminGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
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<Prisma.AdminCreateWithoutAccountsInput, Prisma.AdminUncheckedCreateWithoutAccountsInput>
|
|
connectOrCreate?: Prisma.AdminCreateOrConnectWithoutAccountsInput
|
|
connect?: Prisma.AdminWhereUniqueInput
|
|
}
|
|
|
|
export type AdminUpdateOneRequiredWithoutAccountsNestedInput = {
|
|
create?: Prisma.XOR<Prisma.AdminCreateWithoutAccountsInput, Prisma.AdminUncheckedCreateWithoutAccountsInput>
|
|
connectOrCreate?: Prisma.AdminCreateOrConnectWithoutAccountsInput
|
|
upsert?: Prisma.AdminUpsertWithoutAccountsInput
|
|
connect?: Prisma.AdminWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.AdminUpdateToOneWithWhereWithoutAccountsInput, Prisma.AdminUpdateWithoutAccountsInput>, 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<Prisma.AdminCreateWithoutAccountsInput, Prisma.AdminUncheckedCreateWithoutAccountsInput>
|
|
}
|
|
|
|
export type AdminUpsertWithoutAccountsInput = {
|
|
update: Prisma.XOR<Prisma.AdminUpdateWithoutAccountsInput, Prisma.AdminUncheckedUpdateWithoutAccountsInput>
|
|
create: Prisma.XOR<Prisma.AdminCreateWithoutAccountsInput, Prisma.AdminUncheckedCreateWithoutAccountsInput>
|
|
where?: Prisma.AdminWhereInput
|
|
}
|
|
|
|
export type AdminUpdateToOneWithWhereWithoutAccountsInput = {
|
|
where?: Prisma.AdminWhereInput
|
|
data: Prisma.XOR<Prisma.AdminUpdateWithoutAccountsInput, Prisma.AdminUncheckedUpdateWithoutAccountsInput>
|
|
}
|
|
|
|
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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
accounts?: boolean | AdminCountOutputTypeCountAccountsArgs
|
|
}
|
|
|
|
/**
|
|
* AdminCountOutputType without action
|
|
*/
|
|
export type AdminCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminCountOutputType
|
|
*/
|
|
select?: Prisma.AdminCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* AdminCountOutputType without action
|
|
*/
|
|
export type AdminCountOutputTypeCountAccountsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.AdminAccountWhereInput
|
|
}
|
|
|
|
|
|
export type AdminSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = 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<ExtArgs>
|
|
_count?: boolean | Prisma.AdminCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "mobile_number" | "national_code" | "first_name" | "last_name" | "created_at" | "updated_at", ExtArgs["result"]["admin"]>
|
|
export type AdminInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
accounts?: boolean | Prisma.Admin$accountsArgs<ExtArgs>
|
|
_count?: boolean | Prisma.AdminCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $AdminPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "Admin"
|
|
objects: {
|
|
accounts: Prisma.$AdminAccountPayload<ExtArgs>[]
|
|
}
|
|
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<S extends boolean | null | undefined | AdminDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$AdminPayload, S>
|
|
|
|
export type AdminCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<AdminFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: AdminCountAggregateInputType | true
|
|
}
|
|
|
|
export interface AdminDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['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<T extends AdminFindUniqueArgs>(args: Prisma.SelectSubset<T, AdminFindUniqueArgs<ExtArgs>>): Prisma.Prisma__AdminClient<runtime.Types.Result.GetResult<Prisma.$AdminPayload<ExtArgs>, 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<T extends AdminFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, AdminFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__AdminClient<runtime.Types.Result.GetResult<Prisma.$AdminPayload<ExtArgs>, 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<T extends AdminFindFirstArgs>(args?: Prisma.SelectSubset<T, AdminFindFirstArgs<ExtArgs>>): Prisma.Prisma__AdminClient<runtime.Types.Result.GetResult<Prisma.$AdminPayload<ExtArgs>, 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<T extends AdminFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, AdminFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__AdminClient<runtime.Types.Result.GetResult<Prisma.$AdminPayload<ExtArgs>, 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<T extends AdminFindManyArgs>(args?: Prisma.SelectSubset<T, AdminFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdminPayload<ExtArgs>, 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<T extends AdminCreateArgs>(args: Prisma.SelectSubset<T, AdminCreateArgs<ExtArgs>>): Prisma.Prisma__AdminClient<runtime.Types.Result.GetResult<Prisma.$AdminPayload<ExtArgs>, 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<T extends AdminCreateManyArgs>(args?: Prisma.SelectSubset<T, AdminCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends AdminDeleteArgs>(args: Prisma.SelectSubset<T, AdminDeleteArgs<ExtArgs>>): Prisma.Prisma__AdminClient<runtime.Types.Result.GetResult<Prisma.$AdminPayload<ExtArgs>, 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<T extends AdminUpdateArgs>(args: Prisma.SelectSubset<T, AdminUpdateArgs<ExtArgs>>): Prisma.Prisma__AdminClient<runtime.Types.Result.GetResult<Prisma.$AdminPayload<ExtArgs>, 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<T extends AdminDeleteManyArgs>(args?: Prisma.SelectSubset<T, AdminDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends AdminUpdateManyArgs>(args: Prisma.SelectSubset<T, AdminUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends AdminUpsertArgs>(args: Prisma.SelectSubset<T, AdminUpsertArgs<ExtArgs>>): Prisma.Prisma__AdminClient<runtime.Types.Result.GetResult<Prisma.$AdminPayload<ExtArgs>, 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<T extends AdminCountArgs>(
|
|
args?: Prisma.Subset<T, AdminCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], AdminCountAggregateOutputType>
|
|
: 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<T extends AdminAggregateArgs>(args: Prisma.Subset<T, AdminAggregateArgs>): Prisma.PrismaPromise<GetAdminAggregateType<T>>
|
|
|
|
/**
|
|
* 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<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: AdminGroupByArgs['orderBy'] }
|
|
: { orderBy?: AdminGroupByArgs['orderBy'] },
|
|
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Prisma.Has<ByFields, OrderFields>,
|
|
HavingFields extends Prisma.GetHavingFields<T['having']>,
|
|
HavingValid extends Prisma.Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
|
|
InputErrors extends ByEmpty extends Prisma.True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends Prisma.False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Prisma.Keys<T>
|
|
? 'orderBy' extends Prisma.Keys<T>
|
|
? ByValid extends Prisma.True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Prisma.Keys<T>
|
|
? 'orderBy' extends Prisma.Keys<T>
|
|
? ByValid extends Prisma.True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends Prisma.True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: Prisma.SubsetIntersection<T, AdminGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAdminGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* 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<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
accounts<T extends Prisma.Admin$accountsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Admin$accountsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdminAccountPayload<ExtArgs>, 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<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Admin
|
|
*/
|
|
select?: Prisma.AdminSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Admin
|
|
*/
|
|
omit?: Prisma.AdminOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AdminInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Admin to fetch.
|
|
*/
|
|
where: Prisma.AdminWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Admin findUniqueOrThrow
|
|
*/
|
|
export type AdminFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Admin
|
|
*/
|
|
select?: Prisma.AdminSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Admin
|
|
*/
|
|
omit?: Prisma.AdminOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AdminInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Admin to fetch.
|
|
*/
|
|
where: Prisma.AdminWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Admin findFirst
|
|
*/
|
|
export type AdminFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Admin
|
|
*/
|
|
select?: Prisma.AdminSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Admin
|
|
*/
|
|
omit?: Prisma.AdminOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AdminInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Admin
|
|
*/
|
|
select?: Prisma.AdminSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Admin
|
|
*/
|
|
omit?: Prisma.AdminOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AdminInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Admin
|
|
*/
|
|
select?: Prisma.AdminSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Admin
|
|
*/
|
|
omit?: Prisma.AdminOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AdminInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Admin
|
|
*/
|
|
select?: Prisma.AdminSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Admin
|
|
*/
|
|
omit?: Prisma.AdminOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AdminInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a Admin.
|
|
*/
|
|
data: Prisma.XOR<Prisma.AdminCreateInput, Prisma.AdminUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* Admin createMany
|
|
*/
|
|
export type AdminCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many Admins.
|
|
*/
|
|
data: Prisma.AdminCreateManyInput | Prisma.AdminCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* Admin update
|
|
*/
|
|
export type AdminUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Admin
|
|
*/
|
|
select?: Prisma.AdminSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Admin
|
|
*/
|
|
omit?: Prisma.AdminOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AdminInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a Admin.
|
|
*/
|
|
data: Prisma.XOR<Prisma.AdminUpdateInput, Prisma.AdminUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which Admin to update.
|
|
*/
|
|
where: Prisma.AdminWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Admin updateMany
|
|
*/
|
|
export type AdminUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update Admins.
|
|
*/
|
|
data: Prisma.XOR<Prisma.AdminUpdateManyMutationInput, Prisma.AdminUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which Admins to update
|
|
*/
|
|
where?: Prisma.AdminWhereInput
|
|
/**
|
|
* Limit how many Admins to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* Admin upsert
|
|
*/
|
|
export type AdminUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Admin
|
|
*/
|
|
select?: Prisma.AdminSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Admin
|
|
*/
|
|
omit?: Prisma.AdminOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AdminInclude<ExtArgs> | 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<Prisma.AdminCreateInput, Prisma.AdminUncheckedCreateInput>
|
|
/**
|
|
* In case the Admin was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.AdminUpdateInput, Prisma.AdminUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* Admin delete
|
|
*/
|
|
export type AdminDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Admin
|
|
*/
|
|
select?: Prisma.AdminSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Admin
|
|
*/
|
|
omit?: Prisma.AdminOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AdminInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which Admin to delete.
|
|
*/
|
|
where: Prisma.AdminWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Admin deleteMany
|
|
*/
|
|
export type AdminDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which Admins to delete
|
|
*/
|
|
where?: Prisma.AdminWhereInput
|
|
/**
|
|
* Limit how many Admins to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* Admin.accounts
|
|
*/
|
|
export type Admin$accountsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminAccount
|
|
*/
|
|
select?: Prisma.AdminAccountSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminAccount
|
|
*/
|
|
omit?: Prisma.AdminAccountOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AdminAccountInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Admin
|
|
*/
|
|
select?: Prisma.AdminSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Admin
|
|
*/
|
|
omit?: Prisma.AdminOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AdminInclude<ExtArgs> | null
|
|
}
|