/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `AuditChainCheckpoint` 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 AuditChainCheckpoint * */ export type AuditChainCheckpointModel = runtime.Types.Result.DefaultSelection export type AggregateAuditChainCheckpoint = { _count: AuditChainCheckpointCountAggregateOutputType | null _avg: AuditChainCheckpointAvgAggregateOutputType | null _sum: AuditChainCheckpointSumAggregateOutputType | null _min: AuditChainCheckpointMinAggregateOutputType | null _max: AuditChainCheckpointMaxAggregateOutputType | null } export type AuditChainCheckpointAvgAggregateOutputType = { deletedCount: number | null } export type AuditChainCheckpointSumAggregateOutputType = { deletedCount: number | null } export type AuditChainCheckpointMinAggregateOutputType = { id: string | null createdAt: Date | null chainKey: string | null tenantId: string | null deletedThroughAt: Date | null lastDeletedEventId: string | null lastDeletedEventHash: string | null deletedCount: number | null previousCheckpointMac: string | null checkpointMac: string | null } export type AuditChainCheckpointMaxAggregateOutputType = { id: string | null createdAt: Date | null chainKey: string | null tenantId: string | null deletedThroughAt: Date | null lastDeletedEventId: string | null lastDeletedEventHash: string | null deletedCount: number | null previousCheckpointMac: string | null checkpointMac: string | null } export type AuditChainCheckpointCountAggregateOutputType = { id: number createdAt: number chainKey: number tenantId: number deletedThroughAt: number lastDeletedEventId: number lastDeletedEventHash: number deletedCount: number previousCheckpointMac: number checkpointMac: number _all: number } export type AuditChainCheckpointAvgAggregateInputType = { deletedCount?: true } export type AuditChainCheckpointSumAggregateInputType = { deletedCount?: true } export type AuditChainCheckpointMinAggregateInputType = { id?: true createdAt?: true chainKey?: true tenantId?: true deletedThroughAt?: true lastDeletedEventId?: true lastDeletedEventHash?: true deletedCount?: true previousCheckpointMac?: true checkpointMac?: true } export type AuditChainCheckpointMaxAggregateInputType = { id?: true createdAt?: true chainKey?: true tenantId?: true deletedThroughAt?: true lastDeletedEventId?: true lastDeletedEventHash?: true deletedCount?: true previousCheckpointMac?: true checkpointMac?: true } export type AuditChainCheckpointCountAggregateInputType = { id?: true createdAt?: true chainKey?: true tenantId?: true deletedThroughAt?: true lastDeletedEventId?: true lastDeletedEventHash?: true deletedCount?: true previousCheckpointMac?: true checkpointMac?: true _all?: true } export type AuditChainCheckpointAggregateArgs = { /** * Filter which AuditChainCheckpoint to aggregate. */ where?: Prisma.AuditChainCheckpointWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AuditChainCheckpoints to fetch. */ orderBy?: Prisma.AuditChainCheckpointOrderByWithRelationInput | Prisma.AuditChainCheckpointOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.AuditChainCheckpointWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AuditChainCheckpoints 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` AuditChainCheckpoints. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned AuditChainCheckpoints **/ _count?: true | AuditChainCheckpointCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: AuditChainCheckpointAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: AuditChainCheckpointSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: AuditChainCheckpointMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: AuditChainCheckpointMaxAggregateInputType } export type GetAuditChainCheckpointAggregateType = { [P in keyof T & keyof AggregateAuditChainCheckpoint]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type AuditChainCheckpointGroupByArgs = { where?: Prisma.AuditChainCheckpointWhereInput orderBy?: Prisma.AuditChainCheckpointOrderByWithAggregationInput | Prisma.AuditChainCheckpointOrderByWithAggregationInput[] by: Prisma.AuditChainCheckpointScalarFieldEnum[] | Prisma.AuditChainCheckpointScalarFieldEnum having?: Prisma.AuditChainCheckpointScalarWhereWithAggregatesInput take?: number skip?: number _count?: AuditChainCheckpointCountAggregateInputType | true _avg?: AuditChainCheckpointAvgAggregateInputType _sum?: AuditChainCheckpointSumAggregateInputType _min?: AuditChainCheckpointMinAggregateInputType _max?: AuditChainCheckpointMaxAggregateInputType } export type AuditChainCheckpointGroupByOutputType = { id: string createdAt: Date chainKey: string tenantId: string | null deletedThroughAt: Date lastDeletedEventId: string lastDeletedEventHash: string | null deletedCount: number previousCheckpointMac: string | null checkpointMac: string _count: AuditChainCheckpointCountAggregateOutputType | null _avg: AuditChainCheckpointAvgAggregateOutputType | null _sum: AuditChainCheckpointSumAggregateOutputType | null _min: AuditChainCheckpointMinAggregateOutputType | null _max: AuditChainCheckpointMaxAggregateOutputType | null } export type GetAuditChainCheckpointGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof AuditChainCheckpointGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type AuditChainCheckpointWhereInput = { AND?: Prisma.AuditChainCheckpointWhereInput | Prisma.AuditChainCheckpointWhereInput[] OR?: Prisma.AuditChainCheckpointWhereInput[] NOT?: Prisma.AuditChainCheckpointWhereInput | Prisma.AuditChainCheckpointWhereInput[] id?: Prisma.StringFilter<"AuditChainCheckpoint"> | string createdAt?: Prisma.DateTimeFilter<"AuditChainCheckpoint"> | Date | string chainKey?: Prisma.StringFilter<"AuditChainCheckpoint"> | string tenantId?: Prisma.StringNullableFilter<"AuditChainCheckpoint"> | string | null deletedThroughAt?: Prisma.DateTimeFilter<"AuditChainCheckpoint"> | Date | string lastDeletedEventId?: Prisma.StringFilter<"AuditChainCheckpoint"> | string lastDeletedEventHash?: Prisma.StringNullableFilter<"AuditChainCheckpoint"> | string | null deletedCount?: Prisma.IntFilter<"AuditChainCheckpoint"> | number previousCheckpointMac?: Prisma.StringNullableFilter<"AuditChainCheckpoint"> | string | null checkpointMac?: Prisma.StringFilter<"AuditChainCheckpoint"> | string } export type AuditChainCheckpointOrderByWithRelationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder chainKey?: Prisma.SortOrder tenantId?: Prisma.SortOrderInput | Prisma.SortOrder deletedThroughAt?: Prisma.SortOrder lastDeletedEventId?: Prisma.SortOrder lastDeletedEventHash?: Prisma.SortOrderInput | Prisma.SortOrder deletedCount?: Prisma.SortOrder previousCheckpointMac?: Prisma.SortOrderInput | Prisma.SortOrder checkpointMac?: Prisma.SortOrder } export type AuditChainCheckpointWhereUniqueInput = Prisma.AtLeast<{ id?: string checkpointMac?: string AND?: Prisma.AuditChainCheckpointWhereInput | Prisma.AuditChainCheckpointWhereInput[] OR?: Prisma.AuditChainCheckpointWhereInput[] NOT?: Prisma.AuditChainCheckpointWhereInput | Prisma.AuditChainCheckpointWhereInput[] createdAt?: Prisma.DateTimeFilter<"AuditChainCheckpoint"> | Date | string chainKey?: Prisma.StringFilter<"AuditChainCheckpoint"> | string tenantId?: Prisma.StringNullableFilter<"AuditChainCheckpoint"> | string | null deletedThroughAt?: Prisma.DateTimeFilter<"AuditChainCheckpoint"> | Date | string lastDeletedEventId?: Prisma.StringFilter<"AuditChainCheckpoint"> | string lastDeletedEventHash?: Prisma.StringNullableFilter<"AuditChainCheckpoint"> | string | null deletedCount?: Prisma.IntFilter<"AuditChainCheckpoint"> | number previousCheckpointMac?: Prisma.StringNullableFilter<"AuditChainCheckpoint"> | string | null }, "id" | "checkpointMac"> export type AuditChainCheckpointOrderByWithAggregationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder chainKey?: Prisma.SortOrder tenantId?: Prisma.SortOrderInput | Prisma.SortOrder deletedThroughAt?: Prisma.SortOrder lastDeletedEventId?: Prisma.SortOrder lastDeletedEventHash?: Prisma.SortOrderInput | Prisma.SortOrder deletedCount?: Prisma.SortOrder previousCheckpointMac?: Prisma.SortOrderInput | Prisma.SortOrder checkpointMac?: Prisma.SortOrder _count?: Prisma.AuditChainCheckpointCountOrderByAggregateInput _avg?: Prisma.AuditChainCheckpointAvgOrderByAggregateInput _max?: Prisma.AuditChainCheckpointMaxOrderByAggregateInput _min?: Prisma.AuditChainCheckpointMinOrderByAggregateInput _sum?: Prisma.AuditChainCheckpointSumOrderByAggregateInput } export type AuditChainCheckpointScalarWhereWithAggregatesInput = { AND?: Prisma.AuditChainCheckpointScalarWhereWithAggregatesInput | Prisma.AuditChainCheckpointScalarWhereWithAggregatesInput[] OR?: Prisma.AuditChainCheckpointScalarWhereWithAggregatesInput[] NOT?: Prisma.AuditChainCheckpointScalarWhereWithAggregatesInput | Prisma.AuditChainCheckpointScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"AuditChainCheckpoint"> | string createdAt?: Prisma.DateTimeWithAggregatesFilter<"AuditChainCheckpoint"> | Date | string chainKey?: Prisma.StringWithAggregatesFilter<"AuditChainCheckpoint"> | string tenantId?: Prisma.StringNullableWithAggregatesFilter<"AuditChainCheckpoint"> | string | null deletedThroughAt?: Prisma.DateTimeWithAggregatesFilter<"AuditChainCheckpoint"> | Date | string lastDeletedEventId?: Prisma.StringWithAggregatesFilter<"AuditChainCheckpoint"> | string lastDeletedEventHash?: Prisma.StringNullableWithAggregatesFilter<"AuditChainCheckpoint"> | string | null deletedCount?: Prisma.IntWithAggregatesFilter<"AuditChainCheckpoint"> | number previousCheckpointMac?: Prisma.StringNullableWithAggregatesFilter<"AuditChainCheckpoint"> | string | null checkpointMac?: Prisma.StringWithAggregatesFilter<"AuditChainCheckpoint"> | string } export type AuditChainCheckpointCreateInput = { id: string createdAt: Date | string chainKey: string tenantId?: string | null deletedThroughAt: Date | string lastDeletedEventId: string lastDeletedEventHash?: string | null deletedCount: number previousCheckpointMac?: string | null checkpointMac: string } export type AuditChainCheckpointUncheckedCreateInput = { id: string createdAt: Date | string chainKey: string tenantId?: string | null deletedThroughAt: Date | string lastDeletedEventId: string lastDeletedEventHash?: string | null deletedCount: number previousCheckpointMac?: string | null checkpointMac: string } export type AuditChainCheckpointUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string chainKey?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null deletedThroughAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string lastDeletedEventId?: Prisma.StringFieldUpdateOperationsInput | string lastDeletedEventHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null deletedCount?: Prisma.IntFieldUpdateOperationsInput | number previousCheckpointMac?: Prisma.NullableStringFieldUpdateOperationsInput | string | null checkpointMac?: Prisma.StringFieldUpdateOperationsInput | string } export type AuditChainCheckpointUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string chainKey?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null deletedThroughAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string lastDeletedEventId?: Prisma.StringFieldUpdateOperationsInput | string lastDeletedEventHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null deletedCount?: Prisma.IntFieldUpdateOperationsInput | number previousCheckpointMac?: Prisma.NullableStringFieldUpdateOperationsInput | string | null checkpointMac?: Prisma.StringFieldUpdateOperationsInput | string } export type AuditChainCheckpointCreateManyInput = { id: string createdAt: Date | string chainKey: string tenantId?: string | null deletedThroughAt: Date | string lastDeletedEventId: string lastDeletedEventHash?: string | null deletedCount: number previousCheckpointMac?: string | null checkpointMac: string } export type AuditChainCheckpointUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string chainKey?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null deletedThroughAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string lastDeletedEventId?: Prisma.StringFieldUpdateOperationsInput | string lastDeletedEventHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null deletedCount?: Prisma.IntFieldUpdateOperationsInput | number previousCheckpointMac?: Prisma.NullableStringFieldUpdateOperationsInput | string | null checkpointMac?: Prisma.StringFieldUpdateOperationsInput | string } export type AuditChainCheckpointUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string chainKey?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null deletedThroughAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string lastDeletedEventId?: Prisma.StringFieldUpdateOperationsInput | string lastDeletedEventHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null deletedCount?: Prisma.IntFieldUpdateOperationsInput | number previousCheckpointMac?: Prisma.NullableStringFieldUpdateOperationsInput | string | null checkpointMac?: Prisma.StringFieldUpdateOperationsInput | string } export type AuditChainCheckpointCountOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder chainKey?: Prisma.SortOrder tenantId?: Prisma.SortOrder deletedThroughAt?: Prisma.SortOrder lastDeletedEventId?: Prisma.SortOrder lastDeletedEventHash?: Prisma.SortOrder deletedCount?: Prisma.SortOrder previousCheckpointMac?: Prisma.SortOrder checkpointMac?: Prisma.SortOrder } export type AuditChainCheckpointAvgOrderByAggregateInput = { deletedCount?: Prisma.SortOrder } export type AuditChainCheckpointMaxOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder chainKey?: Prisma.SortOrder tenantId?: Prisma.SortOrder deletedThroughAt?: Prisma.SortOrder lastDeletedEventId?: Prisma.SortOrder lastDeletedEventHash?: Prisma.SortOrder deletedCount?: Prisma.SortOrder previousCheckpointMac?: Prisma.SortOrder checkpointMac?: Prisma.SortOrder } export type AuditChainCheckpointMinOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder chainKey?: Prisma.SortOrder tenantId?: Prisma.SortOrder deletedThroughAt?: Prisma.SortOrder lastDeletedEventId?: Prisma.SortOrder lastDeletedEventHash?: Prisma.SortOrder deletedCount?: Prisma.SortOrder previousCheckpointMac?: Prisma.SortOrder checkpointMac?: Prisma.SortOrder } export type AuditChainCheckpointSumOrderByAggregateInput = { deletedCount?: Prisma.SortOrder } export type AuditChainCheckpointSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean chainKey?: boolean tenantId?: boolean deletedThroughAt?: boolean lastDeletedEventId?: boolean lastDeletedEventHash?: boolean deletedCount?: boolean previousCheckpointMac?: boolean checkpointMac?: boolean }, ExtArgs["result"]["auditChainCheckpoint"]> export type AuditChainCheckpointSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean chainKey?: boolean tenantId?: boolean deletedThroughAt?: boolean lastDeletedEventId?: boolean lastDeletedEventHash?: boolean deletedCount?: boolean previousCheckpointMac?: boolean checkpointMac?: boolean }, ExtArgs["result"]["auditChainCheckpoint"]> export type AuditChainCheckpointSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean chainKey?: boolean tenantId?: boolean deletedThroughAt?: boolean lastDeletedEventId?: boolean lastDeletedEventHash?: boolean deletedCount?: boolean previousCheckpointMac?: boolean checkpointMac?: boolean }, ExtArgs["result"]["auditChainCheckpoint"]> export type AuditChainCheckpointSelectScalar = { id?: boolean createdAt?: boolean chainKey?: boolean tenantId?: boolean deletedThroughAt?: boolean lastDeletedEventId?: boolean lastDeletedEventHash?: boolean deletedCount?: boolean previousCheckpointMac?: boolean checkpointMac?: boolean } export type AuditChainCheckpointOmit = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "chainKey" | "tenantId" | "deletedThroughAt" | "lastDeletedEventId" | "lastDeletedEventHash" | "deletedCount" | "previousCheckpointMac" | "checkpointMac", ExtArgs["result"]["auditChainCheckpoint"]> export type $AuditChainCheckpointPayload = { name: "AuditChainCheckpoint" objects: {} scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string createdAt: Date chainKey: string tenantId: string | null deletedThroughAt: Date lastDeletedEventId: string lastDeletedEventHash: string | null deletedCount: number previousCheckpointMac: string | null checkpointMac: string }, ExtArgs["result"]["auditChainCheckpoint"]> composites: {} } export type AuditChainCheckpointGetPayload = runtime.Types.Result.GetResult export type AuditChainCheckpointCountArgs = Omit & { select?: AuditChainCheckpointCountAggregateInputType | true } export interface AuditChainCheckpointDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['AuditChainCheckpoint'], meta: { name: 'AuditChainCheckpoint' } } /** * Find zero or one AuditChainCheckpoint that matches the filter. * @param {AuditChainCheckpointFindUniqueArgs} args - Arguments to find a AuditChainCheckpoint * @example * // Get one AuditChainCheckpoint * const auditChainCheckpoint = await prisma.auditChainCheckpoint.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__AuditChainCheckpointClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one AuditChainCheckpoint that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {AuditChainCheckpointFindUniqueOrThrowArgs} args - Arguments to find a AuditChainCheckpoint * @example * // Get one AuditChainCheckpoint * const auditChainCheckpoint = await prisma.auditChainCheckpoint.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__AuditChainCheckpointClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first AuditChainCheckpoint 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 {AuditChainCheckpointFindFirstArgs} args - Arguments to find a AuditChainCheckpoint * @example * // Get one AuditChainCheckpoint * const auditChainCheckpoint = await prisma.auditChainCheckpoint.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__AuditChainCheckpointClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first AuditChainCheckpoint 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 {AuditChainCheckpointFindFirstOrThrowArgs} args - Arguments to find a AuditChainCheckpoint * @example * // Get one AuditChainCheckpoint * const auditChainCheckpoint = await prisma.auditChainCheckpoint.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__AuditChainCheckpointClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more AuditChainCheckpoints 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 {AuditChainCheckpointFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all AuditChainCheckpoints * const auditChainCheckpoints = await prisma.auditChainCheckpoint.findMany() * * // Get first 10 AuditChainCheckpoints * const auditChainCheckpoints = await prisma.auditChainCheckpoint.findMany({ take: 10 }) * * // Only select the `id` * const auditChainCheckpointWithIdOnly = await prisma.auditChainCheckpoint.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a AuditChainCheckpoint. * @param {AuditChainCheckpointCreateArgs} args - Arguments to create a AuditChainCheckpoint. * @example * // Create one AuditChainCheckpoint * const AuditChainCheckpoint = await prisma.auditChainCheckpoint.create({ * data: { * // ... data to create a AuditChainCheckpoint * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__AuditChainCheckpointClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many AuditChainCheckpoints. * @param {AuditChainCheckpointCreateManyArgs} args - Arguments to create many AuditChainCheckpoints. * @example * // Create many AuditChainCheckpoints * const auditChainCheckpoint = await prisma.auditChainCheckpoint.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many AuditChainCheckpoints and returns the data saved in the database. * @param {AuditChainCheckpointCreateManyAndReturnArgs} args - Arguments to create many AuditChainCheckpoints. * @example * // Create many AuditChainCheckpoints * const auditChainCheckpoint = await prisma.auditChainCheckpoint.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many AuditChainCheckpoints and only return the `id` * const auditChainCheckpointWithIdOnly = await prisma.auditChainCheckpoint.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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a AuditChainCheckpoint. * @param {AuditChainCheckpointDeleteArgs} args - Arguments to delete one AuditChainCheckpoint. * @example * // Delete one AuditChainCheckpoint * const AuditChainCheckpoint = await prisma.auditChainCheckpoint.delete({ * where: { * // ... filter to delete one AuditChainCheckpoint * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__AuditChainCheckpointClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one AuditChainCheckpoint. * @param {AuditChainCheckpointUpdateArgs} args - Arguments to update one AuditChainCheckpoint. * @example * // Update one AuditChainCheckpoint * const auditChainCheckpoint = await prisma.auditChainCheckpoint.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__AuditChainCheckpointClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more AuditChainCheckpoints. * @param {AuditChainCheckpointDeleteManyArgs} args - Arguments to filter AuditChainCheckpoints to delete. * @example * // Delete a few AuditChainCheckpoints * const { count } = await prisma.auditChainCheckpoint.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more AuditChainCheckpoints. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AuditChainCheckpointUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many AuditChainCheckpoints * const auditChainCheckpoint = await prisma.auditChainCheckpoint.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more AuditChainCheckpoints and returns the data updated in the database. * @param {AuditChainCheckpointUpdateManyAndReturnArgs} args - Arguments to update many AuditChainCheckpoints. * @example * // Update many AuditChainCheckpoints * const auditChainCheckpoint = await prisma.auditChainCheckpoint.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more AuditChainCheckpoints and only return the `id` * const auditChainCheckpointWithIdOnly = await prisma.auditChainCheckpoint.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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one AuditChainCheckpoint. * @param {AuditChainCheckpointUpsertArgs} args - Arguments to update or create a AuditChainCheckpoint. * @example * // Update or create a AuditChainCheckpoint * const auditChainCheckpoint = await prisma.auditChainCheckpoint.upsert({ * create: { * // ... data to create a AuditChainCheckpoint * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the AuditChainCheckpoint we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__AuditChainCheckpointClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of AuditChainCheckpoints. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AuditChainCheckpointCountArgs} args - Arguments to filter AuditChainCheckpoints to count. * @example * // Count the number of AuditChainCheckpoints * const count = await prisma.auditChainCheckpoint.count({ * where: { * // ... the filter for the AuditChainCheckpoints we want to count * } * }) **/ count( args?: Prisma.Subset, ): Prisma.PrismaPromise< T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType : number > /** * Allows you to perform aggregations operations on a AuditChainCheckpoint. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AuditChainCheckpointAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Prisma.Subset): Prisma.PrismaPromise> /** * Group by AuditChainCheckpoint. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AuditChainCheckpointGroupByArgs} 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 AuditChainCheckpointGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: AuditChainCheckpointGroupByArgs['orderBy'] } : { orderBy?: AuditChainCheckpointGroupByArgs['orderBy'] }, OrderFields extends Prisma.ExcludeUnderscoreKeys>>, ByFields extends Prisma.MaybeTupleToUnion, ByValid extends Prisma.Has, HavingFields extends Prisma.GetHavingFields, HavingValid extends Prisma.Has, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Prisma.Keys ? 'orderBy' extends Prisma.Keys ? ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys ? 'orderBy' extends Prisma.Keys ? ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetAuditChainCheckpointGroupByPayload : Prisma.PrismaPromise /** * Fields of the AuditChainCheckpoint model */ readonly fields: AuditChainCheckpointFieldRefs; } /** * The delegate class that acts as a "Promise-like" for AuditChainCheckpoint. * 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__AuditChainCheckpointClient extends Prisma.PrismaPromise { 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise } /** * Fields of the AuditChainCheckpoint model */ export interface AuditChainCheckpointFieldRefs { readonly id: Prisma.FieldRef<"AuditChainCheckpoint", 'String'> readonly createdAt: Prisma.FieldRef<"AuditChainCheckpoint", 'DateTime'> readonly chainKey: Prisma.FieldRef<"AuditChainCheckpoint", 'String'> readonly tenantId: Prisma.FieldRef<"AuditChainCheckpoint", 'String'> readonly deletedThroughAt: Prisma.FieldRef<"AuditChainCheckpoint", 'DateTime'> readonly lastDeletedEventId: Prisma.FieldRef<"AuditChainCheckpoint", 'String'> readonly lastDeletedEventHash: Prisma.FieldRef<"AuditChainCheckpoint", 'String'> readonly deletedCount: Prisma.FieldRef<"AuditChainCheckpoint", 'Int'> readonly previousCheckpointMac: Prisma.FieldRef<"AuditChainCheckpoint", 'String'> readonly checkpointMac: Prisma.FieldRef<"AuditChainCheckpoint", 'String'> } // Custom InputTypes /** * AuditChainCheckpoint findUnique */ export type AuditChainCheckpointFindUniqueArgs = { /** * Select specific fields to fetch from the AuditChainCheckpoint */ select?: Prisma.AuditChainCheckpointSelect | null /** * Omit specific fields from the AuditChainCheckpoint */ omit?: Prisma.AuditChainCheckpointOmit | null /** * Filter, which AuditChainCheckpoint to fetch. */ where: Prisma.AuditChainCheckpointWhereUniqueInput } /** * AuditChainCheckpoint findUniqueOrThrow */ export type AuditChainCheckpointFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the AuditChainCheckpoint */ select?: Prisma.AuditChainCheckpointSelect | null /** * Omit specific fields from the AuditChainCheckpoint */ omit?: Prisma.AuditChainCheckpointOmit | null /** * Filter, which AuditChainCheckpoint to fetch. */ where: Prisma.AuditChainCheckpointWhereUniqueInput } /** * AuditChainCheckpoint findFirst */ export type AuditChainCheckpointFindFirstArgs = { /** * Select specific fields to fetch from the AuditChainCheckpoint */ select?: Prisma.AuditChainCheckpointSelect | null /** * Omit specific fields from the AuditChainCheckpoint */ omit?: Prisma.AuditChainCheckpointOmit | null /** * Filter, which AuditChainCheckpoint to fetch. */ where?: Prisma.AuditChainCheckpointWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AuditChainCheckpoints to fetch. */ orderBy?: Prisma.AuditChainCheckpointOrderByWithRelationInput | Prisma.AuditChainCheckpointOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for AuditChainCheckpoints. */ cursor?: Prisma.AuditChainCheckpointWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AuditChainCheckpoints 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` AuditChainCheckpoints. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of AuditChainCheckpoints. */ distinct?: Prisma.AuditChainCheckpointScalarFieldEnum | Prisma.AuditChainCheckpointScalarFieldEnum[] } /** * AuditChainCheckpoint findFirstOrThrow */ export type AuditChainCheckpointFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the AuditChainCheckpoint */ select?: Prisma.AuditChainCheckpointSelect | null /** * Omit specific fields from the AuditChainCheckpoint */ omit?: Prisma.AuditChainCheckpointOmit | null /** * Filter, which AuditChainCheckpoint to fetch. */ where?: Prisma.AuditChainCheckpointWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AuditChainCheckpoints to fetch. */ orderBy?: Prisma.AuditChainCheckpointOrderByWithRelationInput | Prisma.AuditChainCheckpointOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for AuditChainCheckpoints. */ cursor?: Prisma.AuditChainCheckpointWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AuditChainCheckpoints 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` AuditChainCheckpoints. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of AuditChainCheckpoints. */ distinct?: Prisma.AuditChainCheckpointScalarFieldEnum | Prisma.AuditChainCheckpointScalarFieldEnum[] } /** * AuditChainCheckpoint findMany */ export type AuditChainCheckpointFindManyArgs = { /** * Select specific fields to fetch from the AuditChainCheckpoint */ select?: Prisma.AuditChainCheckpointSelect | null /** * Omit specific fields from the AuditChainCheckpoint */ omit?: Prisma.AuditChainCheckpointOmit | null /** * Filter, which AuditChainCheckpoints to fetch. */ where?: Prisma.AuditChainCheckpointWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AuditChainCheckpoints to fetch. */ orderBy?: Prisma.AuditChainCheckpointOrderByWithRelationInput | Prisma.AuditChainCheckpointOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing AuditChainCheckpoints. */ cursor?: Prisma.AuditChainCheckpointWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AuditChainCheckpoints 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` AuditChainCheckpoints. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of AuditChainCheckpoints. */ distinct?: Prisma.AuditChainCheckpointScalarFieldEnum | Prisma.AuditChainCheckpointScalarFieldEnum[] } /** * AuditChainCheckpoint create */ export type AuditChainCheckpointCreateArgs = { /** * Select specific fields to fetch from the AuditChainCheckpoint */ select?: Prisma.AuditChainCheckpointSelect | null /** * Omit specific fields from the AuditChainCheckpoint */ omit?: Prisma.AuditChainCheckpointOmit | null /** * The data needed to create a AuditChainCheckpoint. */ data: Prisma.XOR } /** * AuditChainCheckpoint createMany */ export type AuditChainCheckpointCreateManyArgs = { /** * The data used to create many AuditChainCheckpoints. */ data: Prisma.AuditChainCheckpointCreateManyInput | Prisma.AuditChainCheckpointCreateManyInput[] skipDuplicates?: boolean } /** * AuditChainCheckpoint createManyAndReturn */ export type AuditChainCheckpointCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the AuditChainCheckpoint */ select?: Prisma.AuditChainCheckpointSelectCreateManyAndReturn | null /** * Omit specific fields from the AuditChainCheckpoint */ omit?: Prisma.AuditChainCheckpointOmit | null /** * The data used to create many AuditChainCheckpoints. */ data: Prisma.AuditChainCheckpointCreateManyInput | Prisma.AuditChainCheckpointCreateManyInput[] skipDuplicates?: boolean } /** * AuditChainCheckpoint update */ export type AuditChainCheckpointUpdateArgs = { /** * Select specific fields to fetch from the AuditChainCheckpoint */ select?: Prisma.AuditChainCheckpointSelect | null /** * Omit specific fields from the AuditChainCheckpoint */ omit?: Prisma.AuditChainCheckpointOmit | null /** * The data needed to update a AuditChainCheckpoint. */ data: Prisma.XOR /** * Choose, which AuditChainCheckpoint to update. */ where: Prisma.AuditChainCheckpointWhereUniqueInput } /** * AuditChainCheckpoint updateMany */ export type AuditChainCheckpointUpdateManyArgs = { /** * The data used to update AuditChainCheckpoints. */ data: Prisma.XOR /** * Filter which AuditChainCheckpoints to update */ where?: Prisma.AuditChainCheckpointWhereInput /** * Limit how many AuditChainCheckpoints to update. */ limit?: number } /** * AuditChainCheckpoint updateManyAndReturn */ export type AuditChainCheckpointUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the AuditChainCheckpoint */ select?: Prisma.AuditChainCheckpointSelectUpdateManyAndReturn | null /** * Omit specific fields from the AuditChainCheckpoint */ omit?: Prisma.AuditChainCheckpointOmit | null /** * The data used to update AuditChainCheckpoints. */ data: Prisma.XOR /** * Filter which AuditChainCheckpoints to update */ where?: Prisma.AuditChainCheckpointWhereInput /** * Limit how many AuditChainCheckpoints to update. */ limit?: number } /** * AuditChainCheckpoint upsert */ export type AuditChainCheckpointUpsertArgs = { /** * Select specific fields to fetch from the AuditChainCheckpoint */ select?: Prisma.AuditChainCheckpointSelect | null /** * Omit specific fields from the AuditChainCheckpoint */ omit?: Prisma.AuditChainCheckpointOmit | null /** * The filter to search for the AuditChainCheckpoint to update in case it exists. */ where: Prisma.AuditChainCheckpointWhereUniqueInput /** * In case the AuditChainCheckpoint found by the `where` argument doesn't exist, create a new AuditChainCheckpoint with this data. */ create: Prisma.XOR /** * In case the AuditChainCheckpoint was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * AuditChainCheckpoint delete */ export type AuditChainCheckpointDeleteArgs = { /** * Select specific fields to fetch from the AuditChainCheckpoint */ select?: Prisma.AuditChainCheckpointSelect | null /** * Omit specific fields from the AuditChainCheckpoint */ omit?: Prisma.AuditChainCheckpointOmit | null /** * Filter which AuditChainCheckpoint to delete. */ where: Prisma.AuditChainCheckpointWhereUniqueInput } /** * AuditChainCheckpoint deleteMany */ export type AuditChainCheckpointDeleteManyArgs = { /** * Filter which AuditChainCheckpoints to delete */ where?: Prisma.AuditChainCheckpointWhereInput /** * Limit how many AuditChainCheckpoints to delete. */ limit?: number } /** * AuditChainCheckpoint without action */ export type AuditChainCheckpointDefaultArgs = { /** * Select specific fields to fetch from the AuditChainCheckpoint */ select?: Prisma.AuditChainCheckpointSelect | null /** * Omit specific fields from the AuditChainCheckpoint */ omit?: Prisma.AuditChainCheckpointOmit | null }