1178 lines
43 KiB
TypeScript
1178 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 `AuditChainHead` 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 AuditChainHead
|
|
*
|
|
*/
|
|
export type AuditChainHeadModel = runtime.Types.Result.DefaultSelection<Prisma.$AuditChainHeadPayload>
|
|
|
|
export type AggregateAuditChainHead = {
|
|
_count: AuditChainHeadCountAggregateOutputType | null
|
|
_min: AuditChainHeadMinAggregateOutputType | null
|
|
_max: AuditChainHeadMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type AuditChainHeadMinAggregateOutputType = {
|
|
chainKey: string | null
|
|
tenantId: string | null
|
|
eventId: string | null
|
|
eventHash: string | null
|
|
eventCreatedAt: Date | null
|
|
headMac: string | null
|
|
}
|
|
|
|
export type AuditChainHeadMaxAggregateOutputType = {
|
|
chainKey: string | null
|
|
tenantId: string | null
|
|
eventId: string | null
|
|
eventHash: string | null
|
|
eventCreatedAt: Date | null
|
|
headMac: string | null
|
|
}
|
|
|
|
export type AuditChainHeadCountAggregateOutputType = {
|
|
chainKey: number
|
|
tenantId: number
|
|
eventId: number
|
|
eventHash: number
|
|
eventCreatedAt: number
|
|
headMac: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type AuditChainHeadMinAggregateInputType = {
|
|
chainKey?: true
|
|
tenantId?: true
|
|
eventId?: true
|
|
eventHash?: true
|
|
eventCreatedAt?: true
|
|
headMac?: true
|
|
}
|
|
|
|
export type AuditChainHeadMaxAggregateInputType = {
|
|
chainKey?: true
|
|
tenantId?: true
|
|
eventId?: true
|
|
eventHash?: true
|
|
eventCreatedAt?: true
|
|
headMac?: true
|
|
}
|
|
|
|
export type AuditChainHeadCountAggregateInputType = {
|
|
chainKey?: true
|
|
tenantId?: true
|
|
eventId?: true
|
|
eventHash?: true
|
|
eventCreatedAt?: true
|
|
headMac?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type AuditChainHeadAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which AuditChainHead to aggregate.
|
|
*/
|
|
where?: Prisma.AuditChainHeadWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of AuditChainHeads to fetch.
|
|
*/
|
|
orderBy?: Prisma.AuditChainHeadOrderByWithRelationInput | Prisma.AuditChainHeadOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.AuditChainHeadWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` AuditChainHeads 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` AuditChainHeads.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned AuditChainHeads
|
|
**/
|
|
_count?: true | AuditChainHeadCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: AuditChainHeadMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: AuditChainHeadMaxAggregateInputType
|
|
}
|
|
|
|
export type GetAuditChainHeadAggregateType<T extends AuditChainHeadAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateAuditChainHead]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateAuditChainHead[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateAuditChainHead[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type AuditChainHeadGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.AuditChainHeadWhereInput
|
|
orderBy?: Prisma.AuditChainHeadOrderByWithAggregationInput | Prisma.AuditChainHeadOrderByWithAggregationInput[]
|
|
by: Prisma.AuditChainHeadScalarFieldEnum[] | Prisma.AuditChainHeadScalarFieldEnum
|
|
having?: Prisma.AuditChainHeadScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: AuditChainHeadCountAggregateInputType | true
|
|
_min?: AuditChainHeadMinAggregateInputType
|
|
_max?: AuditChainHeadMaxAggregateInputType
|
|
}
|
|
|
|
export type AuditChainHeadGroupByOutputType = {
|
|
chainKey: string
|
|
tenantId: string | null
|
|
eventId: string
|
|
eventHash: string
|
|
eventCreatedAt: Date
|
|
headMac: string
|
|
_count: AuditChainHeadCountAggregateOutputType | null
|
|
_min: AuditChainHeadMinAggregateOutputType | null
|
|
_max: AuditChainHeadMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type GetAuditChainHeadGroupByPayload<T extends AuditChainHeadGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<AuditChainHeadGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof AuditChainHeadGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AuditChainHeadGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], AuditChainHeadGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type AuditChainHeadWhereInput = {
|
|
AND?: Prisma.AuditChainHeadWhereInput | Prisma.AuditChainHeadWhereInput[]
|
|
OR?: Prisma.AuditChainHeadWhereInput[]
|
|
NOT?: Prisma.AuditChainHeadWhereInput | Prisma.AuditChainHeadWhereInput[]
|
|
chainKey?: Prisma.StringFilter<"AuditChainHead"> | string
|
|
tenantId?: Prisma.StringNullableFilter<"AuditChainHead"> | string | null
|
|
eventId?: Prisma.StringFilter<"AuditChainHead"> | string
|
|
eventHash?: Prisma.StringFilter<"AuditChainHead"> | string
|
|
eventCreatedAt?: Prisma.DateTimeFilter<"AuditChainHead"> | Date | string
|
|
headMac?: Prisma.StringFilter<"AuditChainHead"> | string
|
|
}
|
|
|
|
export type AuditChainHeadOrderByWithRelationInput = {
|
|
chainKey?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
eventId?: Prisma.SortOrder
|
|
eventHash?: Prisma.SortOrder
|
|
eventCreatedAt?: Prisma.SortOrder
|
|
headMac?: Prisma.SortOrder
|
|
}
|
|
|
|
export type AuditChainHeadWhereUniqueInput = Prisma.AtLeast<{
|
|
chainKey?: string
|
|
AND?: Prisma.AuditChainHeadWhereInput | Prisma.AuditChainHeadWhereInput[]
|
|
OR?: Prisma.AuditChainHeadWhereInput[]
|
|
NOT?: Prisma.AuditChainHeadWhereInput | Prisma.AuditChainHeadWhereInput[]
|
|
tenantId?: Prisma.StringNullableFilter<"AuditChainHead"> | string | null
|
|
eventId?: Prisma.StringFilter<"AuditChainHead"> | string
|
|
eventHash?: Prisma.StringFilter<"AuditChainHead"> | string
|
|
eventCreatedAt?: Prisma.DateTimeFilter<"AuditChainHead"> | Date | string
|
|
headMac?: Prisma.StringFilter<"AuditChainHead"> | string
|
|
}, "chainKey">
|
|
|
|
export type AuditChainHeadOrderByWithAggregationInput = {
|
|
chainKey?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
eventId?: Prisma.SortOrder
|
|
eventHash?: Prisma.SortOrder
|
|
eventCreatedAt?: Prisma.SortOrder
|
|
headMac?: Prisma.SortOrder
|
|
_count?: Prisma.AuditChainHeadCountOrderByAggregateInput
|
|
_max?: Prisma.AuditChainHeadMaxOrderByAggregateInput
|
|
_min?: Prisma.AuditChainHeadMinOrderByAggregateInput
|
|
}
|
|
|
|
export type AuditChainHeadScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.AuditChainHeadScalarWhereWithAggregatesInput | Prisma.AuditChainHeadScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.AuditChainHeadScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.AuditChainHeadScalarWhereWithAggregatesInput | Prisma.AuditChainHeadScalarWhereWithAggregatesInput[]
|
|
chainKey?: Prisma.StringWithAggregatesFilter<"AuditChainHead"> | string
|
|
tenantId?: Prisma.StringNullableWithAggregatesFilter<"AuditChainHead"> | string | null
|
|
eventId?: Prisma.StringWithAggregatesFilter<"AuditChainHead"> | string
|
|
eventHash?: Prisma.StringWithAggregatesFilter<"AuditChainHead"> | string
|
|
eventCreatedAt?: Prisma.DateTimeWithAggregatesFilter<"AuditChainHead"> | Date | string
|
|
headMac?: Prisma.StringWithAggregatesFilter<"AuditChainHead"> | string
|
|
}
|
|
|
|
export type AuditChainHeadCreateInput = {
|
|
chainKey: string
|
|
tenantId?: string | null
|
|
eventId: string
|
|
eventHash: string
|
|
eventCreatedAt: Date | string
|
|
headMac: string
|
|
}
|
|
|
|
export type AuditChainHeadUncheckedCreateInput = {
|
|
chainKey: string
|
|
tenantId?: string | null
|
|
eventId: string
|
|
eventHash: string
|
|
eventCreatedAt: Date | string
|
|
headMac: string
|
|
}
|
|
|
|
export type AuditChainHeadUpdateInput = {
|
|
chainKey?: Prisma.StringFieldUpdateOperationsInput | string
|
|
tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
eventId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
eventHash?: Prisma.StringFieldUpdateOperationsInput | string
|
|
eventCreatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
headMac?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type AuditChainHeadUncheckedUpdateInput = {
|
|
chainKey?: Prisma.StringFieldUpdateOperationsInput | string
|
|
tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
eventId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
eventHash?: Prisma.StringFieldUpdateOperationsInput | string
|
|
eventCreatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
headMac?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type AuditChainHeadCreateManyInput = {
|
|
chainKey: string
|
|
tenantId?: string | null
|
|
eventId: string
|
|
eventHash: string
|
|
eventCreatedAt: Date | string
|
|
headMac: string
|
|
}
|
|
|
|
export type AuditChainHeadUpdateManyMutationInput = {
|
|
chainKey?: Prisma.StringFieldUpdateOperationsInput | string
|
|
tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
eventId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
eventHash?: Prisma.StringFieldUpdateOperationsInput | string
|
|
eventCreatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
headMac?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type AuditChainHeadUncheckedUpdateManyInput = {
|
|
chainKey?: Prisma.StringFieldUpdateOperationsInput | string
|
|
tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
eventId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
eventHash?: Prisma.StringFieldUpdateOperationsInput | string
|
|
eventCreatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
headMac?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type AuditChainHeadCountOrderByAggregateInput = {
|
|
chainKey?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
eventId?: Prisma.SortOrder
|
|
eventHash?: Prisma.SortOrder
|
|
eventCreatedAt?: Prisma.SortOrder
|
|
headMac?: Prisma.SortOrder
|
|
}
|
|
|
|
export type AuditChainHeadMaxOrderByAggregateInput = {
|
|
chainKey?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
eventId?: Prisma.SortOrder
|
|
eventHash?: Prisma.SortOrder
|
|
eventCreatedAt?: Prisma.SortOrder
|
|
headMac?: Prisma.SortOrder
|
|
}
|
|
|
|
export type AuditChainHeadMinOrderByAggregateInput = {
|
|
chainKey?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
eventId?: Prisma.SortOrder
|
|
eventHash?: Prisma.SortOrder
|
|
eventCreatedAt?: Prisma.SortOrder
|
|
headMac?: Prisma.SortOrder
|
|
}
|
|
|
|
|
|
|
|
export type AuditChainHeadSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
chainKey?: boolean
|
|
tenantId?: boolean
|
|
eventId?: boolean
|
|
eventHash?: boolean
|
|
eventCreatedAt?: boolean
|
|
headMac?: boolean
|
|
}, ExtArgs["result"]["auditChainHead"]>
|
|
|
|
export type AuditChainHeadSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
chainKey?: boolean
|
|
tenantId?: boolean
|
|
eventId?: boolean
|
|
eventHash?: boolean
|
|
eventCreatedAt?: boolean
|
|
headMac?: boolean
|
|
}, ExtArgs["result"]["auditChainHead"]>
|
|
|
|
export type AuditChainHeadSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
chainKey?: boolean
|
|
tenantId?: boolean
|
|
eventId?: boolean
|
|
eventHash?: boolean
|
|
eventCreatedAt?: boolean
|
|
headMac?: boolean
|
|
}, ExtArgs["result"]["auditChainHead"]>
|
|
|
|
export type AuditChainHeadSelectScalar = {
|
|
chainKey?: boolean
|
|
tenantId?: boolean
|
|
eventId?: boolean
|
|
eventHash?: boolean
|
|
eventCreatedAt?: boolean
|
|
headMac?: boolean
|
|
}
|
|
|
|
export type AuditChainHeadOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"chainKey" | "tenantId" | "eventId" | "eventHash" | "eventCreatedAt" | "headMac", ExtArgs["result"]["auditChainHead"]>
|
|
|
|
export type $AuditChainHeadPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "AuditChainHead"
|
|
objects: {}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
chainKey: string
|
|
tenantId: string | null
|
|
eventId: string
|
|
eventHash: string
|
|
eventCreatedAt: Date
|
|
headMac: string
|
|
}, ExtArgs["result"]["auditChainHead"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type AuditChainHeadGetPayload<S extends boolean | null | undefined | AuditChainHeadDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$AuditChainHeadPayload, S>
|
|
|
|
export type AuditChainHeadCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<AuditChainHeadFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: AuditChainHeadCountAggregateInputType | true
|
|
}
|
|
|
|
export interface AuditChainHeadDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['AuditChainHead'], meta: { name: 'AuditChainHead' } }
|
|
/**
|
|
* Find zero or one AuditChainHead that matches the filter.
|
|
* @param {AuditChainHeadFindUniqueArgs} args - Arguments to find a AuditChainHead
|
|
* @example
|
|
* // Get one AuditChainHead
|
|
* const auditChainHead = await prisma.auditChainHead.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends AuditChainHeadFindUniqueArgs>(args: Prisma.SelectSubset<T, AuditChainHeadFindUniqueArgs<ExtArgs>>): Prisma.Prisma__AuditChainHeadClient<runtime.Types.Result.GetResult<Prisma.$AuditChainHeadPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one AuditChainHead that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {AuditChainHeadFindUniqueOrThrowArgs} args - Arguments to find a AuditChainHead
|
|
* @example
|
|
* // Get one AuditChainHead
|
|
* const auditChainHead = await prisma.auditChainHead.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends AuditChainHeadFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, AuditChainHeadFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__AuditChainHeadClient<runtime.Types.Result.GetResult<Prisma.$AuditChainHeadPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first AuditChainHead 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 {AuditChainHeadFindFirstArgs} args - Arguments to find a AuditChainHead
|
|
* @example
|
|
* // Get one AuditChainHead
|
|
* const auditChainHead = await prisma.auditChainHead.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends AuditChainHeadFindFirstArgs>(args?: Prisma.SelectSubset<T, AuditChainHeadFindFirstArgs<ExtArgs>>): Prisma.Prisma__AuditChainHeadClient<runtime.Types.Result.GetResult<Prisma.$AuditChainHeadPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first AuditChainHead 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 {AuditChainHeadFindFirstOrThrowArgs} args - Arguments to find a AuditChainHead
|
|
* @example
|
|
* // Get one AuditChainHead
|
|
* const auditChainHead = await prisma.auditChainHead.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends AuditChainHeadFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, AuditChainHeadFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__AuditChainHeadClient<runtime.Types.Result.GetResult<Prisma.$AuditChainHeadPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more AuditChainHeads 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 {AuditChainHeadFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all AuditChainHeads
|
|
* const auditChainHeads = await prisma.auditChainHead.findMany()
|
|
*
|
|
* // Get first 10 AuditChainHeads
|
|
* const auditChainHeads = await prisma.auditChainHead.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `chainKey`
|
|
* const auditChainHeadWithChainKeyOnly = await prisma.auditChainHead.findMany({ select: { chainKey: true } })
|
|
*
|
|
*/
|
|
findMany<T extends AuditChainHeadFindManyArgs>(args?: Prisma.SelectSubset<T, AuditChainHeadFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AuditChainHeadPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a AuditChainHead.
|
|
* @param {AuditChainHeadCreateArgs} args - Arguments to create a AuditChainHead.
|
|
* @example
|
|
* // Create one AuditChainHead
|
|
* const AuditChainHead = await prisma.auditChainHead.create({
|
|
* data: {
|
|
* // ... data to create a AuditChainHead
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends AuditChainHeadCreateArgs>(args: Prisma.SelectSubset<T, AuditChainHeadCreateArgs<ExtArgs>>): Prisma.Prisma__AuditChainHeadClient<runtime.Types.Result.GetResult<Prisma.$AuditChainHeadPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many AuditChainHeads.
|
|
* @param {AuditChainHeadCreateManyArgs} args - Arguments to create many AuditChainHeads.
|
|
* @example
|
|
* // Create many AuditChainHeads
|
|
* const auditChainHead = await prisma.auditChainHead.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends AuditChainHeadCreateManyArgs>(args?: Prisma.SelectSubset<T, AuditChainHeadCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create many AuditChainHeads and returns the data saved in the database.
|
|
* @param {AuditChainHeadCreateManyAndReturnArgs} args - Arguments to create many AuditChainHeads.
|
|
* @example
|
|
* // Create many AuditChainHeads
|
|
* const auditChainHead = await prisma.auditChainHead.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many AuditChainHeads and only return the `chainKey`
|
|
* const auditChainHeadWithChainKeyOnly = await prisma.auditChainHead.createManyAndReturn({
|
|
* select: { chainKey: 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 AuditChainHeadCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, AuditChainHeadCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AuditChainHeadPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a AuditChainHead.
|
|
* @param {AuditChainHeadDeleteArgs} args - Arguments to delete one AuditChainHead.
|
|
* @example
|
|
* // Delete one AuditChainHead
|
|
* const AuditChainHead = await prisma.auditChainHead.delete({
|
|
* where: {
|
|
* // ... filter to delete one AuditChainHead
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends AuditChainHeadDeleteArgs>(args: Prisma.SelectSubset<T, AuditChainHeadDeleteArgs<ExtArgs>>): Prisma.Prisma__AuditChainHeadClient<runtime.Types.Result.GetResult<Prisma.$AuditChainHeadPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one AuditChainHead.
|
|
* @param {AuditChainHeadUpdateArgs} args - Arguments to update one AuditChainHead.
|
|
* @example
|
|
* // Update one AuditChainHead
|
|
* const auditChainHead = await prisma.auditChainHead.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends AuditChainHeadUpdateArgs>(args: Prisma.SelectSubset<T, AuditChainHeadUpdateArgs<ExtArgs>>): Prisma.Prisma__AuditChainHeadClient<runtime.Types.Result.GetResult<Prisma.$AuditChainHeadPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more AuditChainHeads.
|
|
* @param {AuditChainHeadDeleteManyArgs} args - Arguments to filter AuditChainHeads to delete.
|
|
* @example
|
|
* // Delete a few AuditChainHeads
|
|
* const { count } = await prisma.auditChainHead.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends AuditChainHeadDeleteManyArgs>(args?: Prisma.SelectSubset<T, AuditChainHeadDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more AuditChainHeads.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AuditChainHeadUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many AuditChainHeads
|
|
* const auditChainHead = await prisma.auditChainHead.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends AuditChainHeadUpdateManyArgs>(args: Prisma.SelectSubset<T, AuditChainHeadUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more AuditChainHeads and returns the data updated in the database.
|
|
* @param {AuditChainHeadUpdateManyAndReturnArgs} args - Arguments to update many AuditChainHeads.
|
|
* @example
|
|
* // Update many AuditChainHeads
|
|
* const auditChainHead = await prisma.auditChainHead.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more AuditChainHeads and only return the `chainKey`
|
|
* const auditChainHeadWithChainKeyOnly = await prisma.auditChainHead.updateManyAndReturn({
|
|
* select: { chainKey: 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 AuditChainHeadUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, AuditChainHeadUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AuditChainHeadPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one AuditChainHead.
|
|
* @param {AuditChainHeadUpsertArgs} args - Arguments to update or create a AuditChainHead.
|
|
* @example
|
|
* // Update or create a AuditChainHead
|
|
* const auditChainHead = await prisma.auditChainHead.upsert({
|
|
* create: {
|
|
* // ... data to create a AuditChainHead
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the AuditChainHead we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends AuditChainHeadUpsertArgs>(args: Prisma.SelectSubset<T, AuditChainHeadUpsertArgs<ExtArgs>>): Prisma.Prisma__AuditChainHeadClient<runtime.Types.Result.GetResult<Prisma.$AuditChainHeadPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of AuditChainHeads.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AuditChainHeadCountArgs} args - Arguments to filter AuditChainHeads to count.
|
|
* @example
|
|
* // Count the number of AuditChainHeads
|
|
* const count = await prisma.auditChainHead.count({
|
|
* where: {
|
|
* // ... the filter for the AuditChainHeads we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends AuditChainHeadCountArgs>(
|
|
args?: Prisma.Subset<T, AuditChainHeadCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], AuditChainHeadCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a AuditChainHead.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AuditChainHeadAggregateArgs} 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 AuditChainHeadAggregateArgs>(args: Prisma.Subset<T, AuditChainHeadAggregateArgs>): Prisma.PrismaPromise<GetAuditChainHeadAggregateType<T>>
|
|
|
|
/**
|
|
* Group by AuditChainHead.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AuditChainHeadGroupByArgs} 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 AuditChainHeadGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: AuditChainHeadGroupByArgs['orderBy'] }
|
|
: { orderBy?: AuditChainHeadGroupByArgs['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, AuditChainHeadGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAuditChainHeadGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the AuditChainHead model
|
|
*/
|
|
readonly fields: AuditChainHeadFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for AuditChainHead.
|
|
* 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__AuditChainHeadClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<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 AuditChainHead model
|
|
*/
|
|
export interface AuditChainHeadFieldRefs {
|
|
readonly chainKey: Prisma.FieldRef<"AuditChainHead", 'String'>
|
|
readonly tenantId: Prisma.FieldRef<"AuditChainHead", 'String'>
|
|
readonly eventId: Prisma.FieldRef<"AuditChainHead", 'String'>
|
|
readonly eventHash: Prisma.FieldRef<"AuditChainHead", 'String'>
|
|
readonly eventCreatedAt: Prisma.FieldRef<"AuditChainHead", 'DateTime'>
|
|
readonly headMac: Prisma.FieldRef<"AuditChainHead", 'String'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* AuditChainHead findUnique
|
|
*/
|
|
export type AuditChainHeadFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AuditChainHead
|
|
*/
|
|
select?: Prisma.AuditChainHeadSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AuditChainHead
|
|
*/
|
|
omit?: Prisma.AuditChainHeadOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which AuditChainHead to fetch.
|
|
*/
|
|
where: Prisma.AuditChainHeadWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* AuditChainHead findUniqueOrThrow
|
|
*/
|
|
export type AuditChainHeadFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AuditChainHead
|
|
*/
|
|
select?: Prisma.AuditChainHeadSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AuditChainHead
|
|
*/
|
|
omit?: Prisma.AuditChainHeadOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which AuditChainHead to fetch.
|
|
*/
|
|
where: Prisma.AuditChainHeadWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* AuditChainHead findFirst
|
|
*/
|
|
export type AuditChainHeadFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AuditChainHead
|
|
*/
|
|
select?: Prisma.AuditChainHeadSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AuditChainHead
|
|
*/
|
|
omit?: Prisma.AuditChainHeadOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which AuditChainHead to fetch.
|
|
*/
|
|
where?: Prisma.AuditChainHeadWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of AuditChainHeads to fetch.
|
|
*/
|
|
orderBy?: Prisma.AuditChainHeadOrderByWithRelationInput | Prisma.AuditChainHeadOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for AuditChainHeads.
|
|
*/
|
|
cursor?: Prisma.AuditChainHeadWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` AuditChainHeads 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` AuditChainHeads.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of AuditChainHeads.
|
|
*/
|
|
distinct?: Prisma.AuditChainHeadScalarFieldEnum | Prisma.AuditChainHeadScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* AuditChainHead findFirstOrThrow
|
|
*/
|
|
export type AuditChainHeadFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AuditChainHead
|
|
*/
|
|
select?: Prisma.AuditChainHeadSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AuditChainHead
|
|
*/
|
|
omit?: Prisma.AuditChainHeadOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which AuditChainHead to fetch.
|
|
*/
|
|
where?: Prisma.AuditChainHeadWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of AuditChainHeads to fetch.
|
|
*/
|
|
orderBy?: Prisma.AuditChainHeadOrderByWithRelationInput | Prisma.AuditChainHeadOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for AuditChainHeads.
|
|
*/
|
|
cursor?: Prisma.AuditChainHeadWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` AuditChainHeads 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` AuditChainHeads.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of AuditChainHeads.
|
|
*/
|
|
distinct?: Prisma.AuditChainHeadScalarFieldEnum | Prisma.AuditChainHeadScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* AuditChainHead findMany
|
|
*/
|
|
export type AuditChainHeadFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AuditChainHead
|
|
*/
|
|
select?: Prisma.AuditChainHeadSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AuditChainHead
|
|
*/
|
|
omit?: Prisma.AuditChainHeadOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which AuditChainHeads to fetch.
|
|
*/
|
|
where?: Prisma.AuditChainHeadWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of AuditChainHeads to fetch.
|
|
*/
|
|
orderBy?: Prisma.AuditChainHeadOrderByWithRelationInput | Prisma.AuditChainHeadOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing AuditChainHeads.
|
|
*/
|
|
cursor?: Prisma.AuditChainHeadWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` AuditChainHeads 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` AuditChainHeads.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of AuditChainHeads.
|
|
*/
|
|
distinct?: Prisma.AuditChainHeadScalarFieldEnum | Prisma.AuditChainHeadScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* AuditChainHead create
|
|
*/
|
|
export type AuditChainHeadCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AuditChainHead
|
|
*/
|
|
select?: Prisma.AuditChainHeadSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AuditChainHead
|
|
*/
|
|
omit?: Prisma.AuditChainHeadOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a AuditChainHead.
|
|
*/
|
|
data: Prisma.XOR<Prisma.AuditChainHeadCreateInput, Prisma.AuditChainHeadUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* AuditChainHead createMany
|
|
*/
|
|
export type AuditChainHeadCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many AuditChainHeads.
|
|
*/
|
|
data: Prisma.AuditChainHeadCreateManyInput | Prisma.AuditChainHeadCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* AuditChainHead createManyAndReturn
|
|
*/
|
|
export type AuditChainHeadCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AuditChainHead
|
|
*/
|
|
select?: Prisma.AuditChainHeadSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AuditChainHead
|
|
*/
|
|
omit?: Prisma.AuditChainHeadOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many AuditChainHeads.
|
|
*/
|
|
data: Prisma.AuditChainHeadCreateManyInput | Prisma.AuditChainHeadCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* AuditChainHead update
|
|
*/
|
|
export type AuditChainHeadUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AuditChainHead
|
|
*/
|
|
select?: Prisma.AuditChainHeadSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AuditChainHead
|
|
*/
|
|
omit?: Prisma.AuditChainHeadOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a AuditChainHead.
|
|
*/
|
|
data: Prisma.XOR<Prisma.AuditChainHeadUpdateInput, Prisma.AuditChainHeadUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which AuditChainHead to update.
|
|
*/
|
|
where: Prisma.AuditChainHeadWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* AuditChainHead updateMany
|
|
*/
|
|
export type AuditChainHeadUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update AuditChainHeads.
|
|
*/
|
|
data: Prisma.XOR<Prisma.AuditChainHeadUpdateManyMutationInput, Prisma.AuditChainHeadUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which AuditChainHeads to update
|
|
*/
|
|
where?: Prisma.AuditChainHeadWhereInput
|
|
/**
|
|
* Limit how many AuditChainHeads to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* AuditChainHead updateManyAndReturn
|
|
*/
|
|
export type AuditChainHeadUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AuditChainHead
|
|
*/
|
|
select?: Prisma.AuditChainHeadSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AuditChainHead
|
|
*/
|
|
omit?: Prisma.AuditChainHeadOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update AuditChainHeads.
|
|
*/
|
|
data: Prisma.XOR<Prisma.AuditChainHeadUpdateManyMutationInput, Prisma.AuditChainHeadUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which AuditChainHeads to update
|
|
*/
|
|
where?: Prisma.AuditChainHeadWhereInput
|
|
/**
|
|
* Limit how many AuditChainHeads to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* AuditChainHead upsert
|
|
*/
|
|
export type AuditChainHeadUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AuditChainHead
|
|
*/
|
|
select?: Prisma.AuditChainHeadSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AuditChainHead
|
|
*/
|
|
omit?: Prisma.AuditChainHeadOmit<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the AuditChainHead to update in case it exists.
|
|
*/
|
|
where: Prisma.AuditChainHeadWhereUniqueInput
|
|
/**
|
|
* In case the AuditChainHead found by the `where` argument doesn't exist, create a new AuditChainHead with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.AuditChainHeadCreateInput, Prisma.AuditChainHeadUncheckedCreateInput>
|
|
/**
|
|
* In case the AuditChainHead was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.AuditChainHeadUpdateInput, Prisma.AuditChainHeadUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* AuditChainHead delete
|
|
*/
|
|
export type AuditChainHeadDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AuditChainHead
|
|
*/
|
|
select?: Prisma.AuditChainHeadSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AuditChainHead
|
|
*/
|
|
omit?: Prisma.AuditChainHeadOmit<ExtArgs> | null
|
|
/**
|
|
* Filter which AuditChainHead to delete.
|
|
*/
|
|
where: Prisma.AuditChainHeadWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* AuditChainHead deleteMany
|
|
*/
|
|
export type AuditChainHeadDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which AuditChainHeads to delete
|
|
*/
|
|
where?: Prisma.AuditChainHeadWhereInput
|
|
/**
|
|
* Limit how many AuditChainHeads to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* AuditChainHead without action
|
|
*/
|
|
export type AuditChainHeadDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AuditChainHead
|
|
*/
|
|
select?: Prisma.AuditChainHeadSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AuditChainHead
|
|
*/
|
|
omit?: Prisma.AuditChainHeadOmit<ExtArgs> | null
|
|
}
|