/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `AuditEvent` 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 AuditEvent * */ export type AuditEventModel = runtime.Types.Result.DefaultSelection export type AggregateAuditEvent = { _count: AuditEventCountAggregateOutputType | null _min: AuditEventMinAggregateOutputType | null _max: AuditEventMaxAggregateOutputType | null } export type AuditEventMinAggregateOutputType = { id: string | null createdAt: Date | null tenantId: string | null actorId: string | null actorType: string | null actorEmail: string | null actorIp: string | null actorUserAgent: string | null action: string | null targetType: string | null targetId: string | null requestId: string | null sourceModule: string | null outcome: string | null dataSensitivity: string | null summaryText: string | null previousHash: string | null eventHash: string | null } export type AuditEventMaxAggregateOutputType = { id: string | null createdAt: Date | null tenantId: string | null actorId: string | null actorType: string | null actorEmail: string | null actorIp: string | null actorUserAgent: string | null action: string | null targetType: string | null targetId: string | null requestId: string | null sourceModule: string | null outcome: string | null dataSensitivity: string | null summaryText: string | null previousHash: string | null eventHash: string | null } export type AuditEventCountAggregateOutputType = { id: number createdAt: number tenantId: number actorId: number actorType: number actorEmail: number actorIp: number actorUserAgent: number action: number targetType: number targetId: number requestId: number sourceModule: number outcome: number dataSensitivity: number regulatoryScope: number metadata: number beforeDiff: number afterDiff: number summaryText: number previousHash: number eventHash: number _all: number } export type AuditEventMinAggregateInputType = { id?: true createdAt?: true tenantId?: true actorId?: true actorType?: true actorEmail?: true actorIp?: true actorUserAgent?: true action?: true targetType?: true targetId?: true requestId?: true sourceModule?: true outcome?: true dataSensitivity?: true summaryText?: true previousHash?: true eventHash?: true } export type AuditEventMaxAggregateInputType = { id?: true createdAt?: true tenantId?: true actorId?: true actorType?: true actorEmail?: true actorIp?: true actorUserAgent?: true action?: true targetType?: true targetId?: true requestId?: true sourceModule?: true outcome?: true dataSensitivity?: true summaryText?: true previousHash?: true eventHash?: true } export type AuditEventCountAggregateInputType = { id?: true createdAt?: true tenantId?: true actorId?: true actorType?: true actorEmail?: true actorIp?: true actorUserAgent?: true action?: true targetType?: true targetId?: true requestId?: true sourceModule?: true outcome?: true dataSensitivity?: true regulatoryScope?: true metadata?: true beforeDiff?: true afterDiff?: true summaryText?: true previousHash?: true eventHash?: true _all?: true } export type AuditEventAggregateArgs = { /** * Filter which AuditEvent to aggregate. */ where?: Prisma.AuditEventWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AuditEvents to fetch. */ orderBy?: Prisma.AuditEventOrderByWithRelationInput | Prisma.AuditEventOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.AuditEventWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AuditEvents 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` AuditEvents. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned AuditEvents **/ _count?: true | AuditEventCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: AuditEventMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: AuditEventMaxAggregateInputType } export type GetAuditEventAggregateType = { [P in keyof T & keyof AggregateAuditEvent]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type AuditEventGroupByArgs = { where?: Prisma.AuditEventWhereInput orderBy?: Prisma.AuditEventOrderByWithAggregationInput | Prisma.AuditEventOrderByWithAggregationInput[] by: Prisma.AuditEventScalarFieldEnum[] | Prisma.AuditEventScalarFieldEnum having?: Prisma.AuditEventScalarWhereWithAggregatesInput take?: number skip?: number _count?: AuditEventCountAggregateInputType | true _min?: AuditEventMinAggregateInputType _max?: AuditEventMaxAggregateInputType } export type AuditEventGroupByOutputType = { id: string createdAt: Date tenantId: string | null actorId: string | null actorType: string actorEmail: string | null actorIp: string | null actorUserAgent: string | null action: string targetType: string | null targetId: string | null requestId: string | null sourceModule: string | null outcome: string dataSensitivity: string regulatoryScope: string[] metadata: runtime.JsonValue | null beforeDiff: runtime.JsonValue | null afterDiff: runtime.JsonValue | null summaryText: string | null previousHash: string | null eventHash: string | null _count: AuditEventCountAggregateOutputType | null _min: AuditEventMinAggregateOutputType | null _max: AuditEventMaxAggregateOutputType | null } export type GetAuditEventGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof AuditEventGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type AuditEventWhereInput = { AND?: Prisma.AuditEventWhereInput | Prisma.AuditEventWhereInput[] OR?: Prisma.AuditEventWhereInput[] NOT?: Prisma.AuditEventWhereInput | Prisma.AuditEventWhereInput[] id?: Prisma.StringFilter<"AuditEvent"> | string createdAt?: Prisma.DateTimeFilter<"AuditEvent"> | Date | string tenantId?: Prisma.StringNullableFilter<"AuditEvent"> | string | null actorId?: Prisma.StringNullableFilter<"AuditEvent"> | string | null actorType?: Prisma.StringFilter<"AuditEvent"> | string actorEmail?: Prisma.StringNullableFilter<"AuditEvent"> | string | null actorIp?: Prisma.StringNullableFilter<"AuditEvent"> | string | null actorUserAgent?: Prisma.StringNullableFilter<"AuditEvent"> | string | null action?: Prisma.StringFilter<"AuditEvent"> | string targetType?: Prisma.StringNullableFilter<"AuditEvent"> | string | null targetId?: Prisma.StringNullableFilter<"AuditEvent"> | string | null requestId?: Prisma.StringNullableFilter<"AuditEvent"> | string | null sourceModule?: Prisma.StringNullableFilter<"AuditEvent"> | string | null outcome?: Prisma.StringFilter<"AuditEvent"> | string dataSensitivity?: Prisma.StringFilter<"AuditEvent"> | string regulatoryScope?: Prisma.StringNullableListFilter<"AuditEvent"> metadata?: Prisma.JsonNullableFilter<"AuditEvent"> beforeDiff?: Prisma.JsonNullableFilter<"AuditEvent"> afterDiff?: Prisma.JsonNullableFilter<"AuditEvent"> summaryText?: Prisma.StringNullableFilter<"AuditEvent"> | string | null previousHash?: Prisma.StringNullableFilter<"AuditEvent"> | string | null eventHash?: Prisma.StringNullableFilter<"AuditEvent"> | string | null } export type AuditEventOrderByWithRelationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder tenantId?: Prisma.SortOrderInput | Prisma.SortOrder actorId?: Prisma.SortOrderInput | Prisma.SortOrder actorType?: Prisma.SortOrder actorEmail?: Prisma.SortOrderInput | Prisma.SortOrder actorIp?: Prisma.SortOrderInput | Prisma.SortOrder actorUserAgent?: Prisma.SortOrderInput | Prisma.SortOrder action?: Prisma.SortOrder targetType?: Prisma.SortOrderInput | Prisma.SortOrder targetId?: Prisma.SortOrderInput | Prisma.SortOrder requestId?: Prisma.SortOrderInput | Prisma.SortOrder sourceModule?: Prisma.SortOrderInput | Prisma.SortOrder outcome?: Prisma.SortOrder dataSensitivity?: Prisma.SortOrder regulatoryScope?: Prisma.SortOrder metadata?: Prisma.SortOrderInput | Prisma.SortOrder beforeDiff?: Prisma.SortOrderInput | Prisma.SortOrder afterDiff?: Prisma.SortOrderInput | Prisma.SortOrder summaryText?: Prisma.SortOrderInput | Prisma.SortOrder previousHash?: Prisma.SortOrderInput | Prisma.SortOrder eventHash?: Prisma.SortOrderInput | Prisma.SortOrder } export type AuditEventWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: Prisma.AuditEventWhereInput | Prisma.AuditEventWhereInput[] OR?: Prisma.AuditEventWhereInput[] NOT?: Prisma.AuditEventWhereInput | Prisma.AuditEventWhereInput[] createdAt?: Prisma.DateTimeFilter<"AuditEvent"> | Date | string tenantId?: Prisma.StringNullableFilter<"AuditEvent"> | string | null actorId?: Prisma.StringNullableFilter<"AuditEvent"> | string | null actorType?: Prisma.StringFilter<"AuditEvent"> | string actorEmail?: Prisma.StringNullableFilter<"AuditEvent"> | string | null actorIp?: Prisma.StringNullableFilter<"AuditEvent"> | string | null actorUserAgent?: Prisma.StringNullableFilter<"AuditEvent"> | string | null action?: Prisma.StringFilter<"AuditEvent"> | string targetType?: Prisma.StringNullableFilter<"AuditEvent"> | string | null targetId?: Prisma.StringNullableFilter<"AuditEvent"> | string | null requestId?: Prisma.StringNullableFilter<"AuditEvent"> | string | null sourceModule?: Prisma.StringNullableFilter<"AuditEvent"> | string | null outcome?: Prisma.StringFilter<"AuditEvent"> | string dataSensitivity?: Prisma.StringFilter<"AuditEvent"> | string regulatoryScope?: Prisma.StringNullableListFilter<"AuditEvent"> metadata?: Prisma.JsonNullableFilter<"AuditEvent"> beforeDiff?: Prisma.JsonNullableFilter<"AuditEvent"> afterDiff?: Prisma.JsonNullableFilter<"AuditEvent"> summaryText?: Prisma.StringNullableFilter<"AuditEvent"> | string | null previousHash?: Prisma.StringNullableFilter<"AuditEvent"> | string | null eventHash?: Prisma.StringNullableFilter<"AuditEvent"> | string | null }, "id"> export type AuditEventOrderByWithAggregationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder tenantId?: Prisma.SortOrderInput | Prisma.SortOrder actorId?: Prisma.SortOrderInput | Prisma.SortOrder actorType?: Prisma.SortOrder actorEmail?: Prisma.SortOrderInput | Prisma.SortOrder actorIp?: Prisma.SortOrderInput | Prisma.SortOrder actorUserAgent?: Prisma.SortOrderInput | Prisma.SortOrder action?: Prisma.SortOrder targetType?: Prisma.SortOrderInput | Prisma.SortOrder targetId?: Prisma.SortOrderInput | Prisma.SortOrder requestId?: Prisma.SortOrderInput | Prisma.SortOrder sourceModule?: Prisma.SortOrderInput | Prisma.SortOrder outcome?: Prisma.SortOrder dataSensitivity?: Prisma.SortOrder regulatoryScope?: Prisma.SortOrder metadata?: Prisma.SortOrderInput | Prisma.SortOrder beforeDiff?: Prisma.SortOrderInput | Prisma.SortOrder afterDiff?: Prisma.SortOrderInput | Prisma.SortOrder summaryText?: Prisma.SortOrderInput | Prisma.SortOrder previousHash?: Prisma.SortOrderInput | Prisma.SortOrder eventHash?: Prisma.SortOrderInput | Prisma.SortOrder _count?: Prisma.AuditEventCountOrderByAggregateInput _max?: Prisma.AuditEventMaxOrderByAggregateInput _min?: Prisma.AuditEventMinOrderByAggregateInput } export type AuditEventScalarWhereWithAggregatesInput = { AND?: Prisma.AuditEventScalarWhereWithAggregatesInput | Prisma.AuditEventScalarWhereWithAggregatesInput[] OR?: Prisma.AuditEventScalarWhereWithAggregatesInput[] NOT?: Prisma.AuditEventScalarWhereWithAggregatesInput | Prisma.AuditEventScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"AuditEvent"> | string createdAt?: Prisma.DateTimeWithAggregatesFilter<"AuditEvent"> | Date | string tenantId?: Prisma.StringNullableWithAggregatesFilter<"AuditEvent"> | string | null actorId?: Prisma.StringNullableWithAggregatesFilter<"AuditEvent"> | string | null actorType?: Prisma.StringWithAggregatesFilter<"AuditEvent"> | string actorEmail?: Prisma.StringNullableWithAggregatesFilter<"AuditEvent"> | string | null actorIp?: Prisma.StringNullableWithAggregatesFilter<"AuditEvent"> | string | null actorUserAgent?: Prisma.StringNullableWithAggregatesFilter<"AuditEvent"> | string | null action?: Prisma.StringWithAggregatesFilter<"AuditEvent"> | string targetType?: Prisma.StringNullableWithAggregatesFilter<"AuditEvent"> | string | null targetId?: Prisma.StringNullableWithAggregatesFilter<"AuditEvent"> | string | null requestId?: Prisma.StringNullableWithAggregatesFilter<"AuditEvent"> | string | null sourceModule?: Prisma.StringNullableWithAggregatesFilter<"AuditEvent"> | string | null outcome?: Prisma.StringWithAggregatesFilter<"AuditEvent"> | string dataSensitivity?: Prisma.StringWithAggregatesFilter<"AuditEvent"> | string regulatoryScope?: Prisma.StringNullableListFilter<"AuditEvent"> metadata?: Prisma.JsonNullableWithAggregatesFilter<"AuditEvent"> beforeDiff?: Prisma.JsonNullableWithAggregatesFilter<"AuditEvent"> afterDiff?: Prisma.JsonNullableWithAggregatesFilter<"AuditEvent"> summaryText?: Prisma.StringNullableWithAggregatesFilter<"AuditEvent"> | string | null previousHash?: Prisma.StringNullableWithAggregatesFilter<"AuditEvent"> | string | null eventHash?: Prisma.StringNullableWithAggregatesFilter<"AuditEvent"> | string | null } export type AuditEventCreateInput = { id?: string createdAt?: Date | string tenantId?: string | null actorId?: string | null actorType: string actorEmail?: string | null actorIp?: string | null actorUserAgent?: string | null action: string targetType?: string | null targetId?: string | null requestId?: string | null sourceModule?: string | null outcome?: string dataSensitivity?: string regulatoryScope?: Prisma.AuditEventCreateregulatoryScopeInput | string[] metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue beforeDiff?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue afterDiff?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue summaryText?: string | null previousHash?: string | null eventHash?: string | null } export type AuditEventUncheckedCreateInput = { id?: string createdAt?: Date | string tenantId?: string | null actorId?: string | null actorType: string actorEmail?: string | null actorIp?: string | null actorUserAgent?: string | null action: string targetType?: string | null targetId?: string | null requestId?: string | null sourceModule?: string | null outcome?: string dataSensitivity?: string regulatoryScope?: Prisma.AuditEventCreateregulatoryScopeInput | string[] metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue beforeDiff?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue afterDiff?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue summaryText?: string | null previousHash?: string | null eventHash?: string | null } export type AuditEventUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null actorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null actorType?: Prisma.StringFieldUpdateOperationsInput | string actorEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null actorIp?: Prisma.NullableStringFieldUpdateOperationsInput | string | null actorUserAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null action?: Prisma.StringFieldUpdateOperationsInput | string targetType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null targetId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null requestId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null sourceModule?: Prisma.NullableStringFieldUpdateOperationsInput | string | null outcome?: Prisma.StringFieldUpdateOperationsInput | string dataSensitivity?: Prisma.StringFieldUpdateOperationsInput | string regulatoryScope?: Prisma.AuditEventUpdateregulatoryScopeInput | string[] metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue beforeDiff?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue afterDiff?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue summaryText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null previousHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null eventHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type AuditEventUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null actorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null actorType?: Prisma.StringFieldUpdateOperationsInput | string actorEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null actorIp?: Prisma.NullableStringFieldUpdateOperationsInput | string | null actorUserAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null action?: Prisma.StringFieldUpdateOperationsInput | string targetType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null targetId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null requestId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null sourceModule?: Prisma.NullableStringFieldUpdateOperationsInput | string | null outcome?: Prisma.StringFieldUpdateOperationsInput | string dataSensitivity?: Prisma.StringFieldUpdateOperationsInput | string regulatoryScope?: Prisma.AuditEventUpdateregulatoryScopeInput | string[] metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue beforeDiff?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue afterDiff?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue summaryText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null previousHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null eventHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type AuditEventCreateManyInput = { id?: string createdAt?: Date | string tenantId?: string | null actorId?: string | null actorType: string actorEmail?: string | null actorIp?: string | null actorUserAgent?: string | null action: string targetType?: string | null targetId?: string | null requestId?: string | null sourceModule?: string | null outcome?: string dataSensitivity?: string regulatoryScope?: Prisma.AuditEventCreateregulatoryScopeInput | string[] metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue beforeDiff?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue afterDiff?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue summaryText?: string | null previousHash?: string | null eventHash?: string | null } export type AuditEventUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null actorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null actorType?: Prisma.StringFieldUpdateOperationsInput | string actorEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null actorIp?: Prisma.NullableStringFieldUpdateOperationsInput | string | null actorUserAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null action?: Prisma.StringFieldUpdateOperationsInput | string targetType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null targetId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null requestId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null sourceModule?: Prisma.NullableStringFieldUpdateOperationsInput | string | null outcome?: Prisma.StringFieldUpdateOperationsInput | string dataSensitivity?: Prisma.StringFieldUpdateOperationsInput | string regulatoryScope?: Prisma.AuditEventUpdateregulatoryScopeInput | string[] metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue beforeDiff?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue afterDiff?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue summaryText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null previousHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null eventHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type AuditEventUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null actorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null actorType?: Prisma.StringFieldUpdateOperationsInput | string actorEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null actorIp?: Prisma.NullableStringFieldUpdateOperationsInput | string | null actorUserAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null action?: Prisma.StringFieldUpdateOperationsInput | string targetType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null targetId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null requestId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null sourceModule?: Prisma.NullableStringFieldUpdateOperationsInput | string | null outcome?: Prisma.StringFieldUpdateOperationsInput | string dataSensitivity?: Prisma.StringFieldUpdateOperationsInput | string regulatoryScope?: Prisma.AuditEventUpdateregulatoryScopeInput | string[] metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue beforeDiff?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue afterDiff?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue summaryText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null previousHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null eventHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type AuditEventCountOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder actorId?: Prisma.SortOrder actorType?: Prisma.SortOrder actorEmail?: Prisma.SortOrder actorIp?: Prisma.SortOrder actorUserAgent?: Prisma.SortOrder action?: Prisma.SortOrder targetType?: Prisma.SortOrder targetId?: Prisma.SortOrder requestId?: Prisma.SortOrder sourceModule?: Prisma.SortOrder outcome?: Prisma.SortOrder dataSensitivity?: Prisma.SortOrder regulatoryScope?: Prisma.SortOrder metadata?: Prisma.SortOrder beforeDiff?: Prisma.SortOrder afterDiff?: Prisma.SortOrder summaryText?: Prisma.SortOrder previousHash?: Prisma.SortOrder eventHash?: Prisma.SortOrder } export type AuditEventMaxOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder actorId?: Prisma.SortOrder actorType?: Prisma.SortOrder actorEmail?: Prisma.SortOrder actorIp?: Prisma.SortOrder actorUserAgent?: Prisma.SortOrder action?: Prisma.SortOrder targetType?: Prisma.SortOrder targetId?: Prisma.SortOrder requestId?: Prisma.SortOrder sourceModule?: Prisma.SortOrder outcome?: Prisma.SortOrder dataSensitivity?: Prisma.SortOrder summaryText?: Prisma.SortOrder previousHash?: Prisma.SortOrder eventHash?: Prisma.SortOrder } export type AuditEventMinOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder actorId?: Prisma.SortOrder actorType?: Prisma.SortOrder actorEmail?: Prisma.SortOrder actorIp?: Prisma.SortOrder actorUserAgent?: Prisma.SortOrder action?: Prisma.SortOrder targetType?: Prisma.SortOrder targetId?: Prisma.SortOrder requestId?: Prisma.SortOrder sourceModule?: Prisma.SortOrder outcome?: Prisma.SortOrder dataSensitivity?: Prisma.SortOrder summaryText?: Prisma.SortOrder previousHash?: Prisma.SortOrder eventHash?: Prisma.SortOrder } export type AuditEventCreateregulatoryScopeInput = { set: string[] } export type AuditEventUpdateregulatoryScopeInput = { set?: string[] push?: string | string[] } export type AuditEventSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean tenantId?: boolean actorId?: boolean actorType?: boolean actorEmail?: boolean actorIp?: boolean actorUserAgent?: boolean action?: boolean targetType?: boolean targetId?: boolean requestId?: boolean sourceModule?: boolean outcome?: boolean dataSensitivity?: boolean regulatoryScope?: boolean metadata?: boolean beforeDiff?: boolean afterDiff?: boolean summaryText?: boolean previousHash?: boolean eventHash?: boolean }, ExtArgs["result"]["auditEvent"]> export type AuditEventSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean tenantId?: boolean actorId?: boolean actorType?: boolean actorEmail?: boolean actorIp?: boolean actorUserAgent?: boolean action?: boolean targetType?: boolean targetId?: boolean requestId?: boolean sourceModule?: boolean outcome?: boolean dataSensitivity?: boolean regulatoryScope?: boolean metadata?: boolean beforeDiff?: boolean afterDiff?: boolean summaryText?: boolean previousHash?: boolean eventHash?: boolean }, ExtArgs["result"]["auditEvent"]> export type AuditEventSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean tenantId?: boolean actorId?: boolean actorType?: boolean actorEmail?: boolean actorIp?: boolean actorUserAgent?: boolean action?: boolean targetType?: boolean targetId?: boolean requestId?: boolean sourceModule?: boolean outcome?: boolean dataSensitivity?: boolean regulatoryScope?: boolean metadata?: boolean beforeDiff?: boolean afterDiff?: boolean summaryText?: boolean previousHash?: boolean eventHash?: boolean }, ExtArgs["result"]["auditEvent"]> export type AuditEventSelectScalar = { id?: boolean createdAt?: boolean tenantId?: boolean actorId?: boolean actorType?: boolean actorEmail?: boolean actorIp?: boolean actorUserAgent?: boolean action?: boolean targetType?: boolean targetId?: boolean requestId?: boolean sourceModule?: boolean outcome?: boolean dataSensitivity?: boolean regulatoryScope?: boolean metadata?: boolean beforeDiff?: boolean afterDiff?: boolean summaryText?: boolean previousHash?: boolean eventHash?: boolean } export type AuditEventOmit = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "tenantId" | "actorId" | "actorType" | "actorEmail" | "actorIp" | "actorUserAgent" | "action" | "targetType" | "targetId" | "requestId" | "sourceModule" | "outcome" | "dataSensitivity" | "regulatoryScope" | "metadata" | "beforeDiff" | "afterDiff" | "summaryText" | "previousHash" | "eventHash", ExtArgs["result"]["auditEvent"]> export type $AuditEventPayload = { name: "AuditEvent" objects: {} scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string createdAt: Date tenantId: string | null actorId: string | null actorType: string actorEmail: string | null actorIp: string | null actorUserAgent: string | null action: string targetType: string | null targetId: string | null requestId: string | null sourceModule: string | null outcome: string dataSensitivity: string regulatoryScope: string[] metadata: runtime.JsonValue | null beforeDiff: runtime.JsonValue | null afterDiff: runtime.JsonValue | null summaryText: string | null previousHash: string | null eventHash: string | null }, ExtArgs["result"]["auditEvent"]> composites: {} } export type AuditEventGetPayload = runtime.Types.Result.GetResult export type AuditEventCountArgs = Omit & { select?: AuditEventCountAggregateInputType | true } export interface AuditEventDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['AuditEvent'], meta: { name: 'AuditEvent' } } /** * Find zero or one AuditEvent that matches the filter. * @param {AuditEventFindUniqueArgs} args - Arguments to find a AuditEvent * @example * // Get one AuditEvent * const auditEvent = await prisma.auditEvent.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__AuditEventClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one AuditEvent that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {AuditEventFindUniqueOrThrowArgs} args - Arguments to find a AuditEvent * @example * // Get one AuditEvent * const auditEvent = await prisma.auditEvent.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__AuditEventClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first AuditEvent 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 {AuditEventFindFirstArgs} args - Arguments to find a AuditEvent * @example * // Get one AuditEvent * const auditEvent = await prisma.auditEvent.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__AuditEventClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first AuditEvent 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 {AuditEventFindFirstOrThrowArgs} args - Arguments to find a AuditEvent * @example * // Get one AuditEvent * const auditEvent = await prisma.auditEvent.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__AuditEventClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more AuditEvents 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 {AuditEventFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all AuditEvents * const auditEvents = await prisma.auditEvent.findMany() * * // Get first 10 AuditEvents * const auditEvents = await prisma.auditEvent.findMany({ take: 10 }) * * // Only select the `id` * const auditEventWithIdOnly = await prisma.auditEvent.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a AuditEvent. * @param {AuditEventCreateArgs} args - Arguments to create a AuditEvent. * @example * // Create one AuditEvent * const AuditEvent = await prisma.auditEvent.create({ * data: { * // ... data to create a AuditEvent * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__AuditEventClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many AuditEvents. * @param {AuditEventCreateManyArgs} args - Arguments to create many AuditEvents. * @example * // Create many AuditEvents * const auditEvent = await prisma.auditEvent.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many AuditEvents and returns the data saved in the database. * @param {AuditEventCreateManyAndReturnArgs} args - Arguments to create many AuditEvents. * @example * // Create many AuditEvents * const auditEvent = await prisma.auditEvent.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many AuditEvents and only return the `id` * const auditEventWithIdOnly = await prisma.auditEvent.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 AuditEvent. * @param {AuditEventDeleteArgs} args - Arguments to delete one AuditEvent. * @example * // Delete one AuditEvent * const AuditEvent = await prisma.auditEvent.delete({ * where: { * // ... filter to delete one AuditEvent * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__AuditEventClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one AuditEvent. * @param {AuditEventUpdateArgs} args - Arguments to update one AuditEvent. * @example * // Update one AuditEvent * const auditEvent = await prisma.auditEvent.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__AuditEventClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more AuditEvents. * @param {AuditEventDeleteManyArgs} args - Arguments to filter AuditEvents to delete. * @example * // Delete a few AuditEvents * const { count } = await prisma.auditEvent.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more AuditEvents. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AuditEventUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many AuditEvents * const auditEvent = await prisma.auditEvent.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more AuditEvents and returns the data updated in the database. * @param {AuditEventUpdateManyAndReturnArgs} args - Arguments to update many AuditEvents. * @example * // Update many AuditEvents * const auditEvent = await prisma.auditEvent.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more AuditEvents and only return the `id` * const auditEventWithIdOnly = await prisma.auditEvent.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 AuditEvent. * @param {AuditEventUpsertArgs} args - Arguments to update or create a AuditEvent. * @example * // Update or create a AuditEvent * const auditEvent = await prisma.auditEvent.upsert({ * create: { * // ... data to create a AuditEvent * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the AuditEvent we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__AuditEventClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of AuditEvents. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AuditEventCountArgs} args - Arguments to filter AuditEvents to count. * @example * // Count the number of AuditEvents * const count = await prisma.auditEvent.count({ * where: { * // ... the filter for the AuditEvents 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 AuditEvent. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AuditEventAggregateArgs} 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 AuditEvent. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AuditEventGroupByArgs} 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 AuditEventGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: AuditEventGroupByArgs['orderBy'] } : { orderBy?: AuditEventGroupByArgs['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 ? GetAuditEventGroupByPayload : Prisma.PrismaPromise /** * Fields of the AuditEvent model */ readonly fields: AuditEventFieldRefs; } /** * The delegate class that acts as a "Promise-like" for AuditEvent. * 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__AuditEventClient 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 AuditEvent model */ export interface AuditEventFieldRefs { readonly id: Prisma.FieldRef<"AuditEvent", 'String'> readonly createdAt: Prisma.FieldRef<"AuditEvent", 'DateTime'> readonly tenantId: Prisma.FieldRef<"AuditEvent", 'String'> readonly actorId: Prisma.FieldRef<"AuditEvent", 'String'> readonly actorType: Prisma.FieldRef<"AuditEvent", 'String'> readonly actorEmail: Prisma.FieldRef<"AuditEvent", 'String'> readonly actorIp: Prisma.FieldRef<"AuditEvent", 'String'> readonly actorUserAgent: Prisma.FieldRef<"AuditEvent", 'String'> readonly action: Prisma.FieldRef<"AuditEvent", 'String'> readonly targetType: Prisma.FieldRef<"AuditEvent", 'String'> readonly targetId: Prisma.FieldRef<"AuditEvent", 'String'> readonly requestId: Prisma.FieldRef<"AuditEvent", 'String'> readonly sourceModule: Prisma.FieldRef<"AuditEvent", 'String'> readonly outcome: Prisma.FieldRef<"AuditEvent", 'String'> readonly dataSensitivity: Prisma.FieldRef<"AuditEvent", 'String'> readonly regulatoryScope: Prisma.FieldRef<"AuditEvent", 'String[]'> readonly metadata: Prisma.FieldRef<"AuditEvent", 'Json'> readonly beforeDiff: Prisma.FieldRef<"AuditEvent", 'Json'> readonly afterDiff: Prisma.FieldRef<"AuditEvent", 'Json'> readonly summaryText: Prisma.FieldRef<"AuditEvent", 'String'> readonly previousHash: Prisma.FieldRef<"AuditEvent", 'String'> readonly eventHash: Prisma.FieldRef<"AuditEvent", 'String'> } // Custom InputTypes /** * AuditEvent findUnique */ export type AuditEventFindUniqueArgs = { /** * Select specific fields to fetch from the AuditEvent */ select?: Prisma.AuditEventSelect | null /** * Omit specific fields from the AuditEvent */ omit?: Prisma.AuditEventOmit | null /** * Filter, which AuditEvent to fetch. */ where: Prisma.AuditEventWhereUniqueInput } /** * AuditEvent findUniqueOrThrow */ export type AuditEventFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the AuditEvent */ select?: Prisma.AuditEventSelect | null /** * Omit specific fields from the AuditEvent */ omit?: Prisma.AuditEventOmit | null /** * Filter, which AuditEvent to fetch. */ where: Prisma.AuditEventWhereUniqueInput } /** * AuditEvent findFirst */ export type AuditEventFindFirstArgs = { /** * Select specific fields to fetch from the AuditEvent */ select?: Prisma.AuditEventSelect | null /** * Omit specific fields from the AuditEvent */ omit?: Prisma.AuditEventOmit | null /** * Filter, which AuditEvent to fetch. */ where?: Prisma.AuditEventWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AuditEvents to fetch. */ orderBy?: Prisma.AuditEventOrderByWithRelationInput | Prisma.AuditEventOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for AuditEvents. */ cursor?: Prisma.AuditEventWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AuditEvents 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` AuditEvents. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of AuditEvents. */ distinct?: Prisma.AuditEventScalarFieldEnum | Prisma.AuditEventScalarFieldEnum[] } /** * AuditEvent findFirstOrThrow */ export type AuditEventFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the AuditEvent */ select?: Prisma.AuditEventSelect | null /** * Omit specific fields from the AuditEvent */ omit?: Prisma.AuditEventOmit | null /** * Filter, which AuditEvent to fetch. */ where?: Prisma.AuditEventWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AuditEvents to fetch. */ orderBy?: Prisma.AuditEventOrderByWithRelationInput | Prisma.AuditEventOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for AuditEvents. */ cursor?: Prisma.AuditEventWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AuditEvents 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` AuditEvents. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of AuditEvents. */ distinct?: Prisma.AuditEventScalarFieldEnum | Prisma.AuditEventScalarFieldEnum[] } /** * AuditEvent findMany */ export type AuditEventFindManyArgs = { /** * Select specific fields to fetch from the AuditEvent */ select?: Prisma.AuditEventSelect | null /** * Omit specific fields from the AuditEvent */ omit?: Prisma.AuditEventOmit | null /** * Filter, which AuditEvents to fetch. */ where?: Prisma.AuditEventWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AuditEvents to fetch. */ orderBy?: Prisma.AuditEventOrderByWithRelationInput | Prisma.AuditEventOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing AuditEvents. */ cursor?: Prisma.AuditEventWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AuditEvents 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` AuditEvents. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of AuditEvents. */ distinct?: Prisma.AuditEventScalarFieldEnum | Prisma.AuditEventScalarFieldEnum[] } /** * AuditEvent create */ export type AuditEventCreateArgs = { /** * Select specific fields to fetch from the AuditEvent */ select?: Prisma.AuditEventSelect | null /** * Omit specific fields from the AuditEvent */ omit?: Prisma.AuditEventOmit | null /** * The data needed to create a AuditEvent. */ data: Prisma.XOR } /** * AuditEvent createMany */ export type AuditEventCreateManyArgs = { /** * The data used to create many AuditEvents. */ data: Prisma.AuditEventCreateManyInput | Prisma.AuditEventCreateManyInput[] skipDuplicates?: boolean } /** * AuditEvent createManyAndReturn */ export type AuditEventCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the AuditEvent */ select?: Prisma.AuditEventSelectCreateManyAndReturn | null /** * Omit specific fields from the AuditEvent */ omit?: Prisma.AuditEventOmit | null /** * The data used to create many AuditEvents. */ data: Prisma.AuditEventCreateManyInput | Prisma.AuditEventCreateManyInput[] skipDuplicates?: boolean } /** * AuditEvent update */ export type AuditEventUpdateArgs = { /** * Select specific fields to fetch from the AuditEvent */ select?: Prisma.AuditEventSelect | null /** * Omit specific fields from the AuditEvent */ omit?: Prisma.AuditEventOmit | null /** * The data needed to update a AuditEvent. */ data: Prisma.XOR /** * Choose, which AuditEvent to update. */ where: Prisma.AuditEventWhereUniqueInput } /** * AuditEvent updateMany */ export type AuditEventUpdateManyArgs = { /** * The data used to update AuditEvents. */ data: Prisma.XOR /** * Filter which AuditEvents to update */ where?: Prisma.AuditEventWhereInput /** * Limit how many AuditEvents to update. */ limit?: number } /** * AuditEvent updateManyAndReturn */ export type AuditEventUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the AuditEvent */ select?: Prisma.AuditEventSelectUpdateManyAndReturn | null /** * Omit specific fields from the AuditEvent */ omit?: Prisma.AuditEventOmit | null /** * The data used to update AuditEvents. */ data: Prisma.XOR /** * Filter which AuditEvents to update */ where?: Prisma.AuditEventWhereInput /** * Limit how many AuditEvents to update. */ limit?: number } /** * AuditEvent upsert */ export type AuditEventUpsertArgs = { /** * Select specific fields to fetch from the AuditEvent */ select?: Prisma.AuditEventSelect | null /** * Omit specific fields from the AuditEvent */ omit?: Prisma.AuditEventOmit | null /** * The filter to search for the AuditEvent to update in case it exists. */ where: Prisma.AuditEventWhereUniqueInput /** * In case the AuditEvent found by the `where` argument doesn't exist, create a new AuditEvent with this data. */ create: Prisma.XOR /** * In case the AuditEvent was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * AuditEvent delete */ export type AuditEventDeleteArgs = { /** * Select specific fields to fetch from the AuditEvent */ select?: Prisma.AuditEventSelect | null /** * Omit specific fields from the AuditEvent */ omit?: Prisma.AuditEventOmit | null /** * Filter which AuditEvent to delete. */ where: Prisma.AuditEventWhereUniqueInput } /** * AuditEvent deleteMany */ export type AuditEventDeleteManyArgs = { /** * Filter which AuditEvents to delete */ where?: Prisma.AuditEventWhereInput /** * Limit how many AuditEvents to delete. */ limit?: number } /** * AuditEvent without action */ export type AuditEventDefaultArgs = { /** * Select specific fields to fetch from the AuditEvent */ select?: Prisma.AuditEventSelect | null /** * Omit specific fields from the AuditEvent */ omit?: Prisma.AuditEventOmit | null }