1594 lines
62 KiB
TypeScript
1594 lines
62 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 `AdminSession` 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.ts"
|
|
import type * as Prisma from "../internal/prismaNamespace.ts"
|
|
|
|
/**
|
|
* Model AdminSession
|
|
*
|
|
*/
|
|
export type AdminSessionModel = runtime.Types.Result.DefaultSelection<Prisma.$AdminSessionPayload>
|
|
|
|
export type AggregateAdminSession = {
|
|
_count: AdminSessionCountAggregateOutputType | null
|
|
_min: AdminSessionMinAggregateOutputType | null
|
|
_max: AdminSessionMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type AdminSessionMinAggregateOutputType = {
|
|
id: string | null
|
|
adminUserId: string | null
|
|
tokenHash: string | null
|
|
createdAt: Date | null
|
|
lastSeenAt: Date | null
|
|
expiresAt: Date | null
|
|
revokedAt: Date | null
|
|
ipHash: string | null
|
|
userAgent: string | null
|
|
approxLocation: string | null
|
|
mfaAssuredAt: Date | null
|
|
}
|
|
|
|
export type AdminSessionMaxAggregateOutputType = {
|
|
id: string | null
|
|
adminUserId: string | null
|
|
tokenHash: string | null
|
|
createdAt: Date | null
|
|
lastSeenAt: Date | null
|
|
expiresAt: Date | null
|
|
revokedAt: Date | null
|
|
ipHash: string | null
|
|
userAgent: string | null
|
|
approxLocation: string | null
|
|
mfaAssuredAt: Date | null
|
|
}
|
|
|
|
export type AdminSessionCountAggregateOutputType = {
|
|
id: number
|
|
adminUserId: number
|
|
tokenHash: number
|
|
createdAt: number
|
|
lastSeenAt: number
|
|
expiresAt: number
|
|
revokedAt: number
|
|
ipHash: number
|
|
userAgent: number
|
|
approxLocation: number
|
|
authenticationMethods: number
|
|
mfaAssuredAt: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type AdminSessionMinAggregateInputType = {
|
|
id?: true
|
|
adminUserId?: true
|
|
tokenHash?: true
|
|
createdAt?: true
|
|
lastSeenAt?: true
|
|
expiresAt?: true
|
|
revokedAt?: true
|
|
ipHash?: true
|
|
userAgent?: true
|
|
approxLocation?: true
|
|
mfaAssuredAt?: true
|
|
}
|
|
|
|
export type AdminSessionMaxAggregateInputType = {
|
|
id?: true
|
|
adminUserId?: true
|
|
tokenHash?: true
|
|
createdAt?: true
|
|
lastSeenAt?: true
|
|
expiresAt?: true
|
|
revokedAt?: true
|
|
ipHash?: true
|
|
userAgent?: true
|
|
approxLocation?: true
|
|
mfaAssuredAt?: true
|
|
}
|
|
|
|
export type AdminSessionCountAggregateInputType = {
|
|
id?: true
|
|
adminUserId?: true
|
|
tokenHash?: true
|
|
createdAt?: true
|
|
lastSeenAt?: true
|
|
expiresAt?: true
|
|
revokedAt?: true
|
|
ipHash?: true
|
|
userAgent?: true
|
|
approxLocation?: true
|
|
authenticationMethods?: true
|
|
mfaAssuredAt?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type AdminSessionAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which AdminSession to aggregate.
|
|
*/
|
|
where?: Prisma.AdminSessionWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of AdminSessions to fetch.
|
|
*/
|
|
orderBy?: Prisma.AdminSessionOrderByWithRelationInput | Prisma.AdminSessionOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.AdminSessionWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` AdminSessions 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` AdminSessions.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned AdminSessions
|
|
**/
|
|
_count?: true | AdminSessionCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: AdminSessionMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: AdminSessionMaxAggregateInputType
|
|
}
|
|
|
|
export type GetAdminSessionAggregateType<T extends AdminSessionAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateAdminSession]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateAdminSession[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateAdminSession[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type AdminSessionGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.AdminSessionWhereInput
|
|
orderBy?: Prisma.AdminSessionOrderByWithAggregationInput | Prisma.AdminSessionOrderByWithAggregationInput[]
|
|
by: Prisma.AdminSessionScalarFieldEnum[] | Prisma.AdminSessionScalarFieldEnum
|
|
having?: Prisma.AdminSessionScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: AdminSessionCountAggregateInputType | true
|
|
_min?: AdminSessionMinAggregateInputType
|
|
_max?: AdminSessionMaxAggregateInputType
|
|
}
|
|
|
|
export type AdminSessionGroupByOutputType = {
|
|
id: string
|
|
adminUserId: string
|
|
tokenHash: string
|
|
createdAt: Date
|
|
lastSeenAt: Date
|
|
expiresAt: Date
|
|
revokedAt: Date | null
|
|
ipHash: string | null
|
|
userAgent: string | null
|
|
approxLocation: string | null
|
|
authenticationMethods: string[]
|
|
mfaAssuredAt: Date | null
|
|
_count: AdminSessionCountAggregateOutputType | null
|
|
_min: AdminSessionMinAggregateOutputType | null
|
|
_max: AdminSessionMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type GetAdminSessionGroupByPayload<T extends AdminSessionGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<AdminSessionGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof AdminSessionGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AdminSessionGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], AdminSessionGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type AdminSessionWhereInput = {
|
|
AND?: Prisma.AdminSessionWhereInput | Prisma.AdminSessionWhereInput[]
|
|
OR?: Prisma.AdminSessionWhereInput[]
|
|
NOT?: Prisma.AdminSessionWhereInput | Prisma.AdminSessionWhereInput[]
|
|
id?: Prisma.StringFilter<"AdminSession"> | string
|
|
adminUserId?: Prisma.StringFilter<"AdminSession"> | string
|
|
tokenHash?: Prisma.StringFilter<"AdminSession"> | string
|
|
createdAt?: Prisma.DateTimeFilter<"AdminSession"> | Date | string
|
|
lastSeenAt?: Prisma.DateTimeFilter<"AdminSession"> | Date | string
|
|
expiresAt?: Prisma.DateTimeFilter<"AdminSession"> | Date | string
|
|
revokedAt?: Prisma.DateTimeNullableFilter<"AdminSession"> | Date | string | null
|
|
ipHash?: Prisma.StringNullableFilter<"AdminSession"> | string | null
|
|
userAgent?: Prisma.StringNullableFilter<"AdminSession"> | string | null
|
|
approxLocation?: Prisma.StringNullableFilter<"AdminSession"> | string | null
|
|
authenticationMethods?: Prisma.StringNullableListFilter<"AdminSession">
|
|
mfaAssuredAt?: Prisma.DateTimeNullableFilter<"AdminSession"> | Date | string | null
|
|
adminUser?: Prisma.XOR<Prisma.AdminUserScalarRelationFilter, Prisma.AdminUserWhereInput>
|
|
}
|
|
|
|
export type AdminSessionOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
adminUserId?: Prisma.SortOrder
|
|
tokenHash?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
lastSeenAt?: Prisma.SortOrder
|
|
expiresAt?: Prisma.SortOrder
|
|
revokedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
ipHash?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
userAgent?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
approxLocation?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
authenticationMethods?: Prisma.SortOrder
|
|
mfaAssuredAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
adminUser?: Prisma.AdminUserOrderByWithRelationInput
|
|
}
|
|
|
|
export type AdminSessionWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
tokenHash?: string
|
|
AND?: Prisma.AdminSessionWhereInput | Prisma.AdminSessionWhereInput[]
|
|
OR?: Prisma.AdminSessionWhereInput[]
|
|
NOT?: Prisma.AdminSessionWhereInput | Prisma.AdminSessionWhereInput[]
|
|
adminUserId?: Prisma.StringFilter<"AdminSession"> | string
|
|
createdAt?: Prisma.DateTimeFilter<"AdminSession"> | Date | string
|
|
lastSeenAt?: Prisma.DateTimeFilter<"AdminSession"> | Date | string
|
|
expiresAt?: Prisma.DateTimeFilter<"AdminSession"> | Date | string
|
|
revokedAt?: Prisma.DateTimeNullableFilter<"AdminSession"> | Date | string | null
|
|
ipHash?: Prisma.StringNullableFilter<"AdminSession"> | string | null
|
|
userAgent?: Prisma.StringNullableFilter<"AdminSession"> | string | null
|
|
approxLocation?: Prisma.StringNullableFilter<"AdminSession"> | string | null
|
|
authenticationMethods?: Prisma.StringNullableListFilter<"AdminSession">
|
|
mfaAssuredAt?: Prisma.DateTimeNullableFilter<"AdminSession"> | Date | string | null
|
|
adminUser?: Prisma.XOR<Prisma.AdminUserScalarRelationFilter, Prisma.AdminUserWhereInput>
|
|
}, "id" | "tokenHash">
|
|
|
|
export type AdminSessionOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
adminUserId?: Prisma.SortOrder
|
|
tokenHash?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
lastSeenAt?: Prisma.SortOrder
|
|
expiresAt?: Prisma.SortOrder
|
|
revokedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
ipHash?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
userAgent?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
approxLocation?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
authenticationMethods?: Prisma.SortOrder
|
|
mfaAssuredAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
_count?: Prisma.AdminSessionCountOrderByAggregateInput
|
|
_max?: Prisma.AdminSessionMaxOrderByAggregateInput
|
|
_min?: Prisma.AdminSessionMinOrderByAggregateInput
|
|
}
|
|
|
|
export type AdminSessionScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.AdminSessionScalarWhereWithAggregatesInput | Prisma.AdminSessionScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.AdminSessionScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.AdminSessionScalarWhereWithAggregatesInput | Prisma.AdminSessionScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.StringWithAggregatesFilter<"AdminSession"> | string
|
|
adminUserId?: Prisma.StringWithAggregatesFilter<"AdminSession"> | string
|
|
tokenHash?: Prisma.StringWithAggregatesFilter<"AdminSession"> | string
|
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"AdminSession"> | Date | string
|
|
lastSeenAt?: Prisma.DateTimeWithAggregatesFilter<"AdminSession"> | Date | string
|
|
expiresAt?: Prisma.DateTimeWithAggregatesFilter<"AdminSession"> | Date | string
|
|
revokedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"AdminSession"> | Date | string | null
|
|
ipHash?: Prisma.StringNullableWithAggregatesFilter<"AdminSession"> | string | null
|
|
userAgent?: Prisma.StringNullableWithAggregatesFilter<"AdminSession"> | string | null
|
|
approxLocation?: Prisma.StringNullableWithAggregatesFilter<"AdminSession"> | string | null
|
|
authenticationMethods?: Prisma.StringNullableListFilter<"AdminSession">
|
|
mfaAssuredAt?: Prisma.DateTimeNullableWithAggregatesFilter<"AdminSession"> | Date | string | null
|
|
}
|
|
|
|
export type AdminSessionCreateInput = {
|
|
id?: string
|
|
tokenHash: string
|
|
createdAt?: Date | string
|
|
lastSeenAt?: Date | string
|
|
expiresAt: Date | string
|
|
revokedAt?: Date | string | null
|
|
ipHash?: string | null
|
|
userAgent?: string | null
|
|
approxLocation?: string | null
|
|
authenticationMethods?: Prisma.AdminSessionCreateauthenticationMethodsInput | string[]
|
|
mfaAssuredAt?: Date | string | null
|
|
adminUser: Prisma.AdminUserCreateNestedOneWithoutSessionsInput
|
|
}
|
|
|
|
export type AdminSessionUncheckedCreateInput = {
|
|
id?: string
|
|
adminUserId: string
|
|
tokenHash: string
|
|
createdAt?: Date | string
|
|
lastSeenAt?: Date | string
|
|
expiresAt: Date | string
|
|
revokedAt?: Date | string | null
|
|
ipHash?: string | null
|
|
userAgent?: string | null
|
|
approxLocation?: string | null
|
|
authenticationMethods?: Prisma.AdminSessionCreateauthenticationMethodsInput | string[]
|
|
mfaAssuredAt?: Date | string | null
|
|
}
|
|
|
|
export type AdminSessionUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
tokenHash?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
lastSeenAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
ipHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
approxLocation?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
authenticationMethods?: Prisma.AdminSessionUpdateauthenticationMethodsInput | string[]
|
|
mfaAssuredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
adminUser?: Prisma.AdminUserUpdateOneRequiredWithoutSessionsNestedInput
|
|
}
|
|
|
|
export type AdminSessionUncheckedUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
adminUserId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
tokenHash?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
lastSeenAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
ipHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
approxLocation?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
authenticationMethods?: Prisma.AdminSessionUpdateauthenticationMethodsInput | string[]
|
|
mfaAssuredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type AdminSessionCreateManyInput = {
|
|
id?: string
|
|
adminUserId: string
|
|
tokenHash: string
|
|
createdAt?: Date | string
|
|
lastSeenAt?: Date | string
|
|
expiresAt: Date | string
|
|
revokedAt?: Date | string | null
|
|
ipHash?: string | null
|
|
userAgent?: string | null
|
|
approxLocation?: string | null
|
|
authenticationMethods?: Prisma.AdminSessionCreateauthenticationMethodsInput | string[]
|
|
mfaAssuredAt?: Date | string | null
|
|
}
|
|
|
|
export type AdminSessionUpdateManyMutationInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
tokenHash?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
lastSeenAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
ipHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
approxLocation?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
authenticationMethods?: Prisma.AdminSessionUpdateauthenticationMethodsInput | string[]
|
|
mfaAssuredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type AdminSessionUncheckedUpdateManyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
adminUserId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
tokenHash?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
lastSeenAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
ipHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
approxLocation?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
authenticationMethods?: Prisma.AdminSessionUpdateauthenticationMethodsInput | string[]
|
|
mfaAssuredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type AdminSessionListRelationFilter = {
|
|
every?: Prisma.AdminSessionWhereInput
|
|
some?: Prisma.AdminSessionWhereInput
|
|
none?: Prisma.AdminSessionWhereInput
|
|
}
|
|
|
|
export type AdminSessionOrderByRelationAggregateInput = {
|
|
_count?: Prisma.SortOrder
|
|
}
|
|
|
|
export type AdminSessionCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
adminUserId?: Prisma.SortOrder
|
|
tokenHash?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
lastSeenAt?: Prisma.SortOrder
|
|
expiresAt?: Prisma.SortOrder
|
|
revokedAt?: Prisma.SortOrder
|
|
ipHash?: Prisma.SortOrder
|
|
userAgent?: Prisma.SortOrder
|
|
approxLocation?: Prisma.SortOrder
|
|
authenticationMethods?: Prisma.SortOrder
|
|
mfaAssuredAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type AdminSessionMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
adminUserId?: Prisma.SortOrder
|
|
tokenHash?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
lastSeenAt?: Prisma.SortOrder
|
|
expiresAt?: Prisma.SortOrder
|
|
revokedAt?: Prisma.SortOrder
|
|
ipHash?: Prisma.SortOrder
|
|
userAgent?: Prisma.SortOrder
|
|
approxLocation?: Prisma.SortOrder
|
|
mfaAssuredAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type AdminSessionMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
adminUserId?: Prisma.SortOrder
|
|
tokenHash?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
lastSeenAt?: Prisma.SortOrder
|
|
expiresAt?: Prisma.SortOrder
|
|
revokedAt?: Prisma.SortOrder
|
|
ipHash?: Prisma.SortOrder
|
|
userAgent?: Prisma.SortOrder
|
|
approxLocation?: Prisma.SortOrder
|
|
mfaAssuredAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type AdminSessionCreateNestedManyWithoutAdminUserInput = {
|
|
create?: Prisma.XOR<Prisma.AdminSessionCreateWithoutAdminUserInput, Prisma.AdminSessionUncheckedCreateWithoutAdminUserInput> | Prisma.AdminSessionCreateWithoutAdminUserInput[] | Prisma.AdminSessionUncheckedCreateWithoutAdminUserInput[]
|
|
connectOrCreate?: Prisma.AdminSessionCreateOrConnectWithoutAdminUserInput | Prisma.AdminSessionCreateOrConnectWithoutAdminUserInput[]
|
|
createMany?: Prisma.AdminSessionCreateManyAdminUserInputEnvelope
|
|
connect?: Prisma.AdminSessionWhereUniqueInput | Prisma.AdminSessionWhereUniqueInput[]
|
|
}
|
|
|
|
export type AdminSessionUncheckedCreateNestedManyWithoutAdminUserInput = {
|
|
create?: Prisma.XOR<Prisma.AdminSessionCreateWithoutAdminUserInput, Prisma.AdminSessionUncheckedCreateWithoutAdminUserInput> | Prisma.AdminSessionCreateWithoutAdminUserInput[] | Prisma.AdminSessionUncheckedCreateWithoutAdminUserInput[]
|
|
connectOrCreate?: Prisma.AdminSessionCreateOrConnectWithoutAdminUserInput | Prisma.AdminSessionCreateOrConnectWithoutAdminUserInput[]
|
|
createMany?: Prisma.AdminSessionCreateManyAdminUserInputEnvelope
|
|
connect?: Prisma.AdminSessionWhereUniqueInput | Prisma.AdminSessionWhereUniqueInput[]
|
|
}
|
|
|
|
export type AdminSessionUpdateManyWithoutAdminUserNestedInput = {
|
|
create?: Prisma.XOR<Prisma.AdminSessionCreateWithoutAdminUserInput, Prisma.AdminSessionUncheckedCreateWithoutAdminUserInput> | Prisma.AdminSessionCreateWithoutAdminUserInput[] | Prisma.AdminSessionUncheckedCreateWithoutAdminUserInput[]
|
|
connectOrCreate?: Prisma.AdminSessionCreateOrConnectWithoutAdminUserInput | Prisma.AdminSessionCreateOrConnectWithoutAdminUserInput[]
|
|
upsert?: Prisma.AdminSessionUpsertWithWhereUniqueWithoutAdminUserInput | Prisma.AdminSessionUpsertWithWhereUniqueWithoutAdminUserInput[]
|
|
createMany?: Prisma.AdminSessionCreateManyAdminUserInputEnvelope
|
|
set?: Prisma.AdminSessionWhereUniqueInput | Prisma.AdminSessionWhereUniqueInput[]
|
|
disconnect?: Prisma.AdminSessionWhereUniqueInput | Prisma.AdminSessionWhereUniqueInput[]
|
|
delete?: Prisma.AdminSessionWhereUniqueInput | Prisma.AdminSessionWhereUniqueInput[]
|
|
connect?: Prisma.AdminSessionWhereUniqueInput | Prisma.AdminSessionWhereUniqueInput[]
|
|
update?: Prisma.AdminSessionUpdateWithWhereUniqueWithoutAdminUserInput | Prisma.AdminSessionUpdateWithWhereUniqueWithoutAdminUserInput[]
|
|
updateMany?: Prisma.AdminSessionUpdateManyWithWhereWithoutAdminUserInput | Prisma.AdminSessionUpdateManyWithWhereWithoutAdminUserInput[]
|
|
deleteMany?: Prisma.AdminSessionScalarWhereInput | Prisma.AdminSessionScalarWhereInput[]
|
|
}
|
|
|
|
export type AdminSessionUncheckedUpdateManyWithoutAdminUserNestedInput = {
|
|
create?: Prisma.XOR<Prisma.AdminSessionCreateWithoutAdminUserInput, Prisma.AdminSessionUncheckedCreateWithoutAdminUserInput> | Prisma.AdminSessionCreateWithoutAdminUserInput[] | Prisma.AdminSessionUncheckedCreateWithoutAdminUserInput[]
|
|
connectOrCreate?: Prisma.AdminSessionCreateOrConnectWithoutAdminUserInput | Prisma.AdminSessionCreateOrConnectWithoutAdminUserInput[]
|
|
upsert?: Prisma.AdminSessionUpsertWithWhereUniqueWithoutAdminUserInput | Prisma.AdminSessionUpsertWithWhereUniqueWithoutAdminUserInput[]
|
|
createMany?: Prisma.AdminSessionCreateManyAdminUserInputEnvelope
|
|
set?: Prisma.AdminSessionWhereUniqueInput | Prisma.AdminSessionWhereUniqueInput[]
|
|
disconnect?: Prisma.AdminSessionWhereUniqueInput | Prisma.AdminSessionWhereUniqueInput[]
|
|
delete?: Prisma.AdminSessionWhereUniqueInput | Prisma.AdminSessionWhereUniqueInput[]
|
|
connect?: Prisma.AdminSessionWhereUniqueInput | Prisma.AdminSessionWhereUniqueInput[]
|
|
update?: Prisma.AdminSessionUpdateWithWhereUniqueWithoutAdminUserInput | Prisma.AdminSessionUpdateWithWhereUniqueWithoutAdminUserInput[]
|
|
updateMany?: Prisma.AdminSessionUpdateManyWithWhereWithoutAdminUserInput | Prisma.AdminSessionUpdateManyWithWhereWithoutAdminUserInput[]
|
|
deleteMany?: Prisma.AdminSessionScalarWhereInput | Prisma.AdminSessionScalarWhereInput[]
|
|
}
|
|
|
|
export type AdminSessionCreateauthenticationMethodsInput = {
|
|
set: string[]
|
|
}
|
|
|
|
export type AdminSessionUpdateauthenticationMethodsInput = {
|
|
set?: string[]
|
|
push?: string | string[]
|
|
}
|
|
|
|
export type AdminSessionCreateWithoutAdminUserInput = {
|
|
id?: string
|
|
tokenHash: string
|
|
createdAt?: Date | string
|
|
lastSeenAt?: Date | string
|
|
expiresAt: Date | string
|
|
revokedAt?: Date | string | null
|
|
ipHash?: string | null
|
|
userAgent?: string | null
|
|
approxLocation?: string | null
|
|
authenticationMethods?: Prisma.AdminSessionCreateauthenticationMethodsInput | string[]
|
|
mfaAssuredAt?: Date | string | null
|
|
}
|
|
|
|
export type AdminSessionUncheckedCreateWithoutAdminUserInput = {
|
|
id?: string
|
|
tokenHash: string
|
|
createdAt?: Date | string
|
|
lastSeenAt?: Date | string
|
|
expiresAt: Date | string
|
|
revokedAt?: Date | string | null
|
|
ipHash?: string | null
|
|
userAgent?: string | null
|
|
approxLocation?: string | null
|
|
authenticationMethods?: Prisma.AdminSessionCreateauthenticationMethodsInput | string[]
|
|
mfaAssuredAt?: Date | string | null
|
|
}
|
|
|
|
export type AdminSessionCreateOrConnectWithoutAdminUserInput = {
|
|
where: Prisma.AdminSessionWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.AdminSessionCreateWithoutAdminUserInput, Prisma.AdminSessionUncheckedCreateWithoutAdminUserInput>
|
|
}
|
|
|
|
export type AdminSessionCreateManyAdminUserInputEnvelope = {
|
|
data: Prisma.AdminSessionCreateManyAdminUserInput | Prisma.AdminSessionCreateManyAdminUserInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type AdminSessionUpsertWithWhereUniqueWithoutAdminUserInput = {
|
|
where: Prisma.AdminSessionWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.AdminSessionUpdateWithoutAdminUserInput, Prisma.AdminSessionUncheckedUpdateWithoutAdminUserInput>
|
|
create: Prisma.XOR<Prisma.AdminSessionCreateWithoutAdminUserInput, Prisma.AdminSessionUncheckedCreateWithoutAdminUserInput>
|
|
}
|
|
|
|
export type AdminSessionUpdateWithWhereUniqueWithoutAdminUserInput = {
|
|
where: Prisma.AdminSessionWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.AdminSessionUpdateWithoutAdminUserInput, Prisma.AdminSessionUncheckedUpdateWithoutAdminUserInput>
|
|
}
|
|
|
|
export type AdminSessionUpdateManyWithWhereWithoutAdminUserInput = {
|
|
where: Prisma.AdminSessionScalarWhereInput
|
|
data: Prisma.XOR<Prisma.AdminSessionUpdateManyMutationInput, Prisma.AdminSessionUncheckedUpdateManyWithoutAdminUserInput>
|
|
}
|
|
|
|
export type AdminSessionScalarWhereInput = {
|
|
AND?: Prisma.AdminSessionScalarWhereInput | Prisma.AdminSessionScalarWhereInput[]
|
|
OR?: Prisma.AdminSessionScalarWhereInput[]
|
|
NOT?: Prisma.AdminSessionScalarWhereInput | Prisma.AdminSessionScalarWhereInput[]
|
|
id?: Prisma.StringFilter<"AdminSession"> | string
|
|
adminUserId?: Prisma.StringFilter<"AdminSession"> | string
|
|
tokenHash?: Prisma.StringFilter<"AdminSession"> | string
|
|
createdAt?: Prisma.DateTimeFilter<"AdminSession"> | Date | string
|
|
lastSeenAt?: Prisma.DateTimeFilter<"AdminSession"> | Date | string
|
|
expiresAt?: Prisma.DateTimeFilter<"AdminSession"> | Date | string
|
|
revokedAt?: Prisma.DateTimeNullableFilter<"AdminSession"> | Date | string | null
|
|
ipHash?: Prisma.StringNullableFilter<"AdminSession"> | string | null
|
|
userAgent?: Prisma.StringNullableFilter<"AdminSession"> | string | null
|
|
approxLocation?: Prisma.StringNullableFilter<"AdminSession"> | string | null
|
|
authenticationMethods?: Prisma.StringNullableListFilter<"AdminSession">
|
|
mfaAssuredAt?: Prisma.DateTimeNullableFilter<"AdminSession"> | Date | string | null
|
|
}
|
|
|
|
export type AdminSessionCreateManyAdminUserInput = {
|
|
id?: string
|
|
tokenHash: string
|
|
createdAt?: Date | string
|
|
lastSeenAt?: Date | string
|
|
expiresAt: Date | string
|
|
revokedAt?: Date | string | null
|
|
ipHash?: string | null
|
|
userAgent?: string | null
|
|
approxLocation?: string | null
|
|
authenticationMethods?: Prisma.AdminSessionCreateauthenticationMethodsInput | string[]
|
|
mfaAssuredAt?: Date | string | null
|
|
}
|
|
|
|
export type AdminSessionUpdateWithoutAdminUserInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
tokenHash?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
lastSeenAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
ipHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
approxLocation?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
authenticationMethods?: Prisma.AdminSessionUpdateauthenticationMethodsInput | string[]
|
|
mfaAssuredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type AdminSessionUncheckedUpdateWithoutAdminUserInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
tokenHash?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
lastSeenAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
ipHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
approxLocation?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
authenticationMethods?: Prisma.AdminSessionUpdateauthenticationMethodsInput | string[]
|
|
mfaAssuredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type AdminSessionUncheckedUpdateManyWithoutAdminUserInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
tokenHash?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
lastSeenAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
ipHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
approxLocation?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
authenticationMethods?: Prisma.AdminSessionUpdateauthenticationMethodsInput | string[]
|
|
mfaAssuredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
|
|
|
|
export type AdminSessionSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
adminUserId?: boolean
|
|
tokenHash?: boolean
|
|
createdAt?: boolean
|
|
lastSeenAt?: boolean
|
|
expiresAt?: boolean
|
|
revokedAt?: boolean
|
|
ipHash?: boolean
|
|
userAgent?: boolean
|
|
approxLocation?: boolean
|
|
authenticationMethods?: boolean
|
|
mfaAssuredAt?: boolean
|
|
adminUser?: boolean | Prisma.AdminUserDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["adminSession"]>
|
|
|
|
export type AdminSessionSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
adminUserId?: boolean
|
|
tokenHash?: boolean
|
|
createdAt?: boolean
|
|
lastSeenAt?: boolean
|
|
expiresAt?: boolean
|
|
revokedAt?: boolean
|
|
ipHash?: boolean
|
|
userAgent?: boolean
|
|
approxLocation?: boolean
|
|
authenticationMethods?: boolean
|
|
mfaAssuredAt?: boolean
|
|
adminUser?: boolean | Prisma.AdminUserDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["adminSession"]>
|
|
|
|
export type AdminSessionSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
adminUserId?: boolean
|
|
tokenHash?: boolean
|
|
createdAt?: boolean
|
|
lastSeenAt?: boolean
|
|
expiresAt?: boolean
|
|
revokedAt?: boolean
|
|
ipHash?: boolean
|
|
userAgent?: boolean
|
|
approxLocation?: boolean
|
|
authenticationMethods?: boolean
|
|
mfaAssuredAt?: boolean
|
|
adminUser?: boolean | Prisma.AdminUserDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["adminSession"]>
|
|
|
|
export type AdminSessionSelectScalar = {
|
|
id?: boolean
|
|
adminUserId?: boolean
|
|
tokenHash?: boolean
|
|
createdAt?: boolean
|
|
lastSeenAt?: boolean
|
|
expiresAt?: boolean
|
|
revokedAt?: boolean
|
|
ipHash?: boolean
|
|
userAgent?: boolean
|
|
approxLocation?: boolean
|
|
authenticationMethods?: boolean
|
|
mfaAssuredAt?: boolean
|
|
}
|
|
|
|
export type AdminSessionOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "adminUserId" | "tokenHash" | "createdAt" | "lastSeenAt" | "expiresAt" | "revokedAt" | "ipHash" | "userAgent" | "approxLocation" | "authenticationMethods" | "mfaAssuredAt", ExtArgs["result"]["adminSession"]>
|
|
export type AdminSessionInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
adminUser?: boolean | Prisma.AdminUserDefaultArgs<ExtArgs>
|
|
}
|
|
export type AdminSessionIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
adminUser?: boolean | Prisma.AdminUserDefaultArgs<ExtArgs>
|
|
}
|
|
export type AdminSessionIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
adminUser?: boolean | Prisma.AdminUserDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $AdminSessionPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "AdminSession"
|
|
objects: {
|
|
adminUser: Prisma.$AdminUserPayload<ExtArgs>
|
|
}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: string
|
|
adminUserId: string
|
|
tokenHash: string
|
|
createdAt: Date
|
|
lastSeenAt: Date
|
|
expiresAt: Date
|
|
revokedAt: Date | null
|
|
ipHash: string | null
|
|
userAgent: string | null
|
|
approxLocation: string | null
|
|
authenticationMethods: string[]
|
|
mfaAssuredAt: Date | null
|
|
}, ExtArgs["result"]["adminSession"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type AdminSessionGetPayload<S extends boolean | null | undefined | AdminSessionDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$AdminSessionPayload, S>
|
|
|
|
export type AdminSessionCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<AdminSessionFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: AdminSessionCountAggregateInputType | true
|
|
}
|
|
|
|
export interface AdminSessionDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['AdminSession'], meta: { name: 'AdminSession' } }
|
|
/**
|
|
* Find zero or one AdminSession that matches the filter.
|
|
* @param {AdminSessionFindUniqueArgs} args - Arguments to find a AdminSession
|
|
* @example
|
|
* // Get one AdminSession
|
|
* const adminSession = await prisma.adminSession.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends AdminSessionFindUniqueArgs>(args: Prisma.SelectSubset<T, AdminSessionFindUniqueArgs<ExtArgs>>): Prisma.Prisma__AdminSessionClient<runtime.Types.Result.GetResult<Prisma.$AdminSessionPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one AdminSession that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {AdminSessionFindUniqueOrThrowArgs} args - Arguments to find a AdminSession
|
|
* @example
|
|
* // Get one AdminSession
|
|
* const adminSession = await prisma.adminSession.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends AdminSessionFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, AdminSessionFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__AdminSessionClient<runtime.Types.Result.GetResult<Prisma.$AdminSessionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first AdminSession 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 {AdminSessionFindFirstArgs} args - Arguments to find a AdminSession
|
|
* @example
|
|
* // Get one AdminSession
|
|
* const adminSession = await prisma.adminSession.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends AdminSessionFindFirstArgs>(args?: Prisma.SelectSubset<T, AdminSessionFindFirstArgs<ExtArgs>>): Prisma.Prisma__AdminSessionClient<runtime.Types.Result.GetResult<Prisma.$AdminSessionPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first AdminSession 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 {AdminSessionFindFirstOrThrowArgs} args - Arguments to find a AdminSession
|
|
* @example
|
|
* // Get one AdminSession
|
|
* const adminSession = await prisma.adminSession.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends AdminSessionFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, AdminSessionFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__AdminSessionClient<runtime.Types.Result.GetResult<Prisma.$AdminSessionPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more AdminSessions 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 {AdminSessionFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all AdminSessions
|
|
* const adminSessions = await prisma.adminSession.findMany()
|
|
*
|
|
* // Get first 10 AdminSessions
|
|
* const adminSessions = await prisma.adminSession.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const adminSessionWithIdOnly = await prisma.adminSession.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends AdminSessionFindManyArgs>(args?: Prisma.SelectSubset<T, AdminSessionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdminSessionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a AdminSession.
|
|
* @param {AdminSessionCreateArgs} args - Arguments to create a AdminSession.
|
|
* @example
|
|
* // Create one AdminSession
|
|
* const AdminSession = await prisma.adminSession.create({
|
|
* data: {
|
|
* // ... data to create a AdminSession
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends AdminSessionCreateArgs>(args: Prisma.SelectSubset<T, AdminSessionCreateArgs<ExtArgs>>): Prisma.Prisma__AdminSessionClient<runtime.Types.Result.GetResult<Prisma.$AdminSessionPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many AdminSessions.
|
|
* @param {AdminSessionCreateManyArgs} args - Arguments to create many AdminSessions.
|
|
* @example
|
|
* // Create many AdminSessions
|
|
* const adminSession = await prisma.adminSession.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends AdminSessionCreateManyArgs>(args?: Prisma.SelectSubset<T, AdminSessionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create many AdminSessions and returns the data saved in the database.
|
|
* @param {AdminSessionCreateManyAndReturnArgs} args - Arguments to create many AdminSessions.
|
|
* @example
|
|
* // Create many AdminSessions
|
|
* const adminSession = await prisma.adminSession.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many AdminSessions and only return the `id`
|
|
* const adminSessionWithIdOnly = await prisma.adminSession.createManyAndReturn({
|
|
* select: { id: true },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
*
|
|
*/
|
|
createManyAndReturn<T extends AdminSessionCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, AdminSessionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdminSessionPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a AdminSession.
|
|
* @param {AdminSessionDeleteArgs} args - Arguments to delete one AdminSession.
|
|
* @example
|
|
* // Delete one AdminSession
|
|
* const AdminSession = await prisma.adminSession.delete({
|
|
* where: {
|
|
* // ... filter to delete one AdminSession
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends AdminSessionDeleteArgs>(args: Prisma.SelectSubset<T, AdminSessionDeleteArgs<ExtArgs>>): Prisma.Prisma__AdminSessionClient<runtime.Types.Result.GetResult<Prisma.$AdminSessionPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one AdminSession.
|
|
* @param {AdminSessionUpdateArgs} args - Arguments to update one AdminSession.
|
|
* @example
|
|
* // Update one AdminSession
|
|
* const adminSession = await prisma.adminSession.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends AdminSessionUpdateArgs>(args: Prisma.SelectSubset<T, AdminSessionUpdateArgs<ExtArgs>>): Prisma.Prisma__AdminSessionClient<runtime.Types.Result.GetResult<Prisma.$AdminSessionPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more AdminSessions.
|
|
* @param {AdminSessionDeleteManyArgs} args - Arguments to filter AdminSessions to delete.
|
|
* @example
|
|
* // Delete a few AdminSessions
|
|
* const { count } = await prisma.adminSession.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends AdminSessionDeleteManyArgs>(args?: Prisma.SelectSubset<T, AdminSessionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more AdminSessions.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AdminSessionUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many AdminSessions
|
|
* const adminSession = await prisma.adminSession.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends AdminSessionUpdateManyArgs>(args: Prisma.SelectSubset<T, AdminSessionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more AdminSessions and returns the data updated in the database.
|
|
* @param {AdminSessionUpdateManyAndReturnArgs} args - Arguments to update many AdminSessions.
|
|
* @example
|
|
* // Update many AdminSessions
|
|
* const adminSession = await prisma.adminSession.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more AdminSessions and only return the `id`
|
|
* const adminSessionWithIdOnly = await prisma.adminSession.updateManyAndReturn({
|
|
* select: { id: true },
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
*
|
|
*/
|
|
updateManyAndReturn<T extends AdminSessionUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, AdminSessionUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdminSessionPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one AdminSession.
|
|
* @param {AdminSessionUpsertArgs} args - Arguments to update or create a AdminSession.
|
|
* @example
|
|
* // Update or create a AdminSession
|
|
* const adminSession = await prisma.adminSession.upsert({
|
|
* create: {
|
|
* // ... data to create a AdminSession
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the AdminSession we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends AdminSessionUpsertArgs>(args: Prisma.SelectSubset<T, AdminSessionUpsertArgs<ExtArgs>>): Prisma.Prisma__AdminSessionClient<runtime.Types.Result.GetResult<Prisma.$AdminSessionPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of AdminSessions.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AdminSessionCountArgs} args - Arguments to filter AdminSessions to count.
|
|
* @example
|
|
* // Count the number of AdminSessions
|
|
* const count = await prisma.adminSession.count({
|
|
* where: {
|
|
* // ... the filter for the AdminSessions we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends AdminSessionCountArgs>(
|
|
args?: Prisma.Subset<T, AdminSessionCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], AdminSessionCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a AdminSession.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AdminSessionAggregateArgs} 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 AdminSessionAggregateArgs>(args: Prisma.Subset<T, AdminSessionAggregateArgs>): Prisma.PrismaPromise<GetAdminSessionAggregateType<T>>
|
|
|
|
/**
|
|
* Group by AdminSession.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AdminSessionGroupByArgs} 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 AdminSessionGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: AdminSessionGroupByArgs['orderBy'] }
|
|
: { orderBy?: AdminSessionGroupByArgs['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, AdminSessionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAdminSessionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the AdminSession model
|
|
*/
|
|
readonly fields: AdminSessionFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for AdminSession.
|
|
* 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__AdminSessionClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
adminUser<T extends Prisma.AdminUserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AdminUserDefaultArgs<ExtArgs>>): Prisma.Prisma__AdminUserClient<runtime.Types.Result.GetResult<Prisma.$AdminUserPayload<ExtArgs>, 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<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 AdminSession model
|
|
*/
|
|
export interface AdminSessionFieldRefs {
|
|
readonly id: Prisma.FieldRef<"AdminSession", 'String'>
|
|
readonly adminUserId: Prisma.FieldRef<"AdminSession", 'String'>
|
|
readonly tokenHash: Prisma.FieldRef<"AdminSession", 'String'>
|
|
readonly createdAt: Prisma.FieldRef<"AdminSession", 'DateTime'>
|
|
readonly lastSeenAt: Prisma.FieldRef<"AdminSession", 'DateTime'>
|
|
readonly expiresAt: Prisma.FieldRef<"AdminSession", 'DateTime'>
|
|
readonly revokedAt: Prisma.FieldRef<"AdminSession", 'DateTime'>
|
|
readonly ipHash: Prisma.FieldRef<"AdminSession", 'String'>
|
|
readonly userAgent: Prisma.FieldRef<"AdminSession", 'String'>
|
|
readonly approxLocation: Prisma.FieldRef<"AdminSession", 'String'>
|
|
readonly authenticationMethods: Prisma.FieldRef<"AdminSession", 'String[]'>
|
|
readonly mfaAssuredAt: Prisma.FieldRef<"AdminSession", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* AdminSession findUnique
|
|
*/
|
|
export type AdminSessionFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminSession
|
|
*/
|
|
select?: Prisma.AdminSessionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminSession
|
|
*/
|
|
omit?: Prisma.AdminSessionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AdminSessionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which AdminSession to fetch.
|
|
*/
|
|
where: Prisma.AdminSessionWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* AdminSession findUniqueOrThrow
|
|
*/
|
|
export type AdminSessionFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminSession
|
|
*/
|
|
select?: Prisma.AdminSessionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminSession
|
|
*/
|
|
omit?: Prisma.AdminSessionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AdminSessionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which AdminSession to fetch.
|
|
*/
|
|
where: Prisma.AdminSessionWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* AdminSession findFirst
|
|
*/
|
|
export type AdminSessionFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminSession
|
|
*/
|
|
select?: Prisma.AdminSessionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminSession
|
|
*/
|
|
omit?: Prisma.AdminSessionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AdminSessionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which AdminSession to fetch.
|
|
*/
|
|
where?: Prisma.AdminSessionWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of AdminSessions to fetch.
|
|
*/
|
|
orderBy?: Prisma.AdminSessionOrderByWithRelationInput | Prisma.AdminSessionOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for AdminSessions.
|
|
*/
|
|
cursor?: Prisma.AdminSessionWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` AdminSessions 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` AdminSessions.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of AdminSessions.
|
|
*/
|
|
distinct?: Prisma.AdminSessionScalarFieldEnum | Prisma.AdminSessionScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* AdminSession findFirstOrThrow
|
|
*/
|
|
export type AdminSessionFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminSession
|
|
*/
|
|
select?: Prisma.AdminSessionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminSession
|
|
*/
|
|
omit?: Prisma.AdminSessionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AdminSessionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which AdminSession to fetch.
|
|
*/
|
|
where?: Prisma.AdminSessionWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of AdminSessions to fetch.
|
|
*/
|
|
orderBy?: Prisma.AdminSessionOrderByWithRelationInput | Prisma.AdminSessionOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for AdminSessions.
|
|
*/
|
|
cursor?: Prisma.AdminSessionWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` AdminSessions 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` AdminSessions.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of AdminSessions.
|
|
*/
|
|
distinct?: Prisma.AdminSessionScalarFieldEnum | Prisma.AdminSessionScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* AdminSession findMany
|
|
*/
|
|
export type AdminSessionFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminSession
|
|
*/
|
|
select?: Prisma.AdminSessionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminSession
|
|
*/
|
|
omit?: Prisma.AdminSessionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AdminSessionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which AdminSessions to fetch.
|
|
*/
|
|
where?: Prisma.AdminSessionWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of AdminSessions to fetch.
|
|
*/
|
|
orderBy?: Prisma.AdminSessionOrderByWithRelationInput | Prisma.AdminSessionOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing AdminSessions.
|
|
*/
|
|
cursor?: Prisma.AdminSessionWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` AdminSessions 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` AdminSessions.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of AdminSessions.
|
|
*/
|
|
distinct?: Prisma.AdminSessionScalarFieldEnum | Prisma.AdminSessionScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* AdminSession create
|
|
*/
|
|
export type AdminSessionCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminSession
|
|
*/
|
|
select?: Prisma.AdminSessionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminSession
|
|
*/
|
|
omit?: Prisma.AdminSessionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AdminSessionInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a AdminSession.
|
|
*/
|
|
data: Prisma.XOR<Prisma.AdminSessionCreateInput, Prisma.AdminSessionUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* AdminSession createMany
|
|
*/
|
|
export type AdminSessionCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many AdminSessions.
|
|
*/
|
|
data: Prisma.AdminSessionCreateManyInput | Prisma.AdminSessionCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* AdminSession createManyAndReturn
|
|
*/
|
|
export type AdminSessionCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminSession
|
|
*/
|
|
select?: Prisma.AdminSessionSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminSession
|
|
*/
|
|
omit?: Prisma.AdminSessionOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many AdminSessions.
|
|
*/
|
|
data: Prisma.AdminSessionCreateManyInput | Prisma.AdminSessionCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AdminSessionIncludeCreateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* AdminSession update
|
|
*/
|
|
export type AdminSessionUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminSession
|
|
*/
|
|
select?: Prisma.AdminSessionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminSession
|
|
*/
|
|
omit?: Prisma.AdminSessionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AdminSessionInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a AdminSession.
|
|
*/
|
|
data: Prisma.XOR<Prisma.AdminSessionUpdateInput, Prisma.AdminSessionUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which AdminSession to update.
|
|
*/
|
|
where: Prisma.AdminSessionWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* AdminSession updateMany
|
|
*/
|
|
export type AdminSessionUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update AdminSessions.
|
|
*/
|
|
data: Prisma.XOR<Prisma.AdminSessionUpdateManyMutationInput, Prisma.AdminSessionUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which AdminSessions to update
|
|
*/
|
|
where?: Prisma.AdminSessionWhereInput
|
|
/**
|
|
* Limit how many AdminSessions to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* AdminSession updateManyAndReturn
|
|
*/
|
|
export type AdminSessionUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminSession
|
|
*/
|
|
select?: Prisma.AdminSessionSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminSession
|
|
*/
|
|
omit?: Prisma.AdminSessionOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update AdminSessions.
|
|
*/
|
|
data: Prisma.XOR<Prisma.AdminSessionUpdateManyMutationInput, Prisma.AdminSessionUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which AdminSessions to update
|
|
*/
|
|
where?: Prisma.AdminSessionWhereInput
|
|
/**
|
|
* Limit how many AdminSessions to update.
|
|
*/
|
|
limit?: number
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AdminSessionIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* AdminSession upsert
|
|
*/
|
|
export type AdminSessionUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminSession
|
|
*/
|
|
select?: Prisma.AdminSessionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminSession
|
|
*/
|
|
omit?: Prisma.AdminSessionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AdminSessionInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the AdminSession to update in case it exists.
|
|
*/
|
|
where: Prisma.AdminSessionWhereUniqueInput
|
|
/**
|
|
* In case the AdminSession found by the `where` argument doesn't exist, create a new AdminSession with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.AdminSessionCreateInput, Prisma.AdminSessionUncheckedCreateInput>
|
|
/**
|
|
* In case the AdminSession was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.AdminSessionUpdateInput, Prisma.AdminSessionUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* AdminSession delete
|
|
*/
|
|
export type AdminSessionDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminSession
|
|
*/
|
|
select?: Prisma.AdminSessionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminSession
|
|
*/
|
|
omit?: Prisma.AdminSessionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AdminSessionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which AdminSession to delete.
|
|
*/
|
|
where: Prisma.AdminSessionWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* AdminSession deleteMany
|
|
*/
|
|
export type AdminSessionDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which AdminSessions to delete
|
|
*/
|
|
where?: Prisma.AdminSessionWhereInput
|
|
/**
|
|
* Limit how many AdminSessions to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* AdminSession without action
|
|
*/
|
|
export type AdminSessionDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminSession
|
|
*/
|
|
select?: Prisma.AdminSessionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminSession
|
|
*/
|
|
omit?: Prisma.AdminSessionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AdminSessionInclude<ExtArgs> | null
|
|
}
|