
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck
/*
 * This file exports the `AuditLog` model and its related types.
 *
 * 🟢 You can import this file directly.
 */
import type * as runtime from "@prisma/client/runtime/client"
import type * as $Enums from "../enums.js"
import type * as Prisma from "../internal/prismaNamespace.js"

/**
 * Model AuditLog
 *
 */
export type AuditLogModel = runtime.Types.Result.DefaultSelection<Prisma.$AuditLogPayload>

export type AggregateAuditLog = {
  _count: AuditLogCountAggregateOutputType | null
  _min: AuditLogMinAggregateOutputType | null
  _max: AuditLogMaxAggregateOutputType | null
}

export type AuditLogMinAggregateOutputType = {
  auditLogId: string | null
  organizationId: string | null
  userId: string | null
  action: string | null
  resourceType: string | null
  resourceId: string | null
  createdAt: Date | null
}

export type AuditLogMaxAggregateOutputType = {
  auditLogId: string | null
  organizationId: string | null
  userId: string | null
  action: string | null
  resourceType: string | null
  resourceId: string | null
  createdAt: Date | null
}

export type AuditLogCountAggregateOutputType = {
  auditLogId: number
  organizationId: number
  userId: number
  action: number
  resourceType: number
  resourceId: number
  metadata: number
  createdAt: number
  _all: number
}


export type AuditLogMinAggregateInputType = {
  auditLogId?: true
  organizationId?: true
  userId?: true
  action?: true
  resourceType?: true
  resourceId?: true
  createdAt?: true
}

export type AuditLogMaxAggregateInputType = {
  auditLogId?: true
  organizationId?: true
  userId?: true
  action?: true
  resourceType?: true
  resourceId?: true
  createdAt?: true
}

export type AuditLogCountAggregateInputType = {
  auditLogId?: true
  organizationId?: true
  userId?: true
  action?: true
  resourceType?: true
  resourceId?: true
  metadata?: true
  createdAt?: true
  _all?: true
}

export type AuditLogAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which AuditLog to aggregate.
   */
  where?: Prisma.AuditLogWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   *
   * Determine the order of AuditLogs to fetch.
   */
  orderBy?: Prisma.AuditLogOrderByWithRelationInput | Prisma.AuditLogOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   *
   * Sets the start position
   */
  cursor?: Prisma.AuditLogWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   *
   * Take `±n` AuditLogs 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` AuditLogs.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   *
   * Count returned AuditLogs
  **/
  _count?: true | AuditLogCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   *
   * Select which fields to find the minimum value
  **/
  _min?: AuditLogMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   *
   * Select which fields to find the maximum value
  **/
  _max?: AuditLogMaxAggregateInputType
}

export type GetAuditLogAggregateType<T extends AuditLogAggregateArgs> = {
      [P in keyof T & keyof AggregateAuditLog]: P extends '_count' | 'count'
    ? T[P] extends true
      ? number
      : Prisma.GetScalarType<T[P], AggregateAuditLog[P]>
    : Prisma.GetScalarType<T[P], AggregateAuditLog[P]>
}




export type AuditLogGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.AuditLogWhereInput
  orderBy?: Prisma.AuditLogOrderByWithAggregationInput | Prisma.AuditLogOrderByWithAggregationInput[]
  by: Prisma.AuditLogScalarFieldEnum[] | Prisma.AuditLogScalarFieldEnum
  having?: Prisma.AuditLogScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: AuditLogCountAggregateInputType | true
  _min?: AuditLogMinAggregateInputType
  _max?: AuditLogMaxAggregateInputType
}

export type AuditLogGroupByOutputType = {
  auditLogId: string
  organizationId: string
  userId: string | null
  action: string
  resourceType: string
  resourceId: string | null
  metadata: runtime.JsonValue | null
  createdAt: Date
  _count: AuditLogCountAggregateOutputType | null
  _min: AuditLogMinAggregateOutputType | null
  _max: AuditLogMaxAggregateOutputType | null
}

export type GetAuditLogGroupByPayload<T extends AuditLogGroupByArgs> = Prisma.PrismaPromise<
  Array<
    Prisma.PickEnumerable<AuditLogGroupByOutputType, T['by']> &
      {
        [P in ((keyof T) & (keyof AuditLogGroupByOutputType))]: P extends '_count'
          ? T[P] extends boolean
            ? number
            : Prisma.GetScalarType<T[P], AuditLogGroupByOutputType[P]>
          : Prisma.GetScalarType<T[P], AuditLogGroupByOutputType[P]>
      }
    >
  >



export type AuditLogWhereInput = {
  AND?: Prisma.AuditLogWhereInput | Prisma.AuditLogWhereInput[]
  OR?: Prisma.AuditLogWhereInput[]
  NOT?: Prisma.AuditLogWhereInput | Prisma.AuditLogWhereInput[]
  auditLogId?: Prisma.StringFilter<"AuditLog"> | string
  organizationId?: Prisma.StringFilter<"AuditLog"> | string
  userId?: Prisma.StringNullableFilter<"AuditLog"> | string | null
  action?: Prisma.StringFilter<"AuditLog"> | string
  resourceType?: Prisma.StringFilter<"AuditLog"> | string
  resourceId?: Prisma.StringNullableFilter<"AuditLog"> | string | null
  metadata?: Prisma.JsonNullableFilter<"AuditLog">
  createdAt?: Prisma.DateTimeFilter<"AuditLog"> | Date | string
  organization?: Prisma.XOR<Prisma.OrganizationScalarRelationFilter, Prisma.OrganizationWhereInput>
  user?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
}

export type AuditLogOrderByWithRelationInput = {
  auditLogId?: Prisma.SortOrder
  organizationId?: Prisma.SortOrder
  userId?: Prisma.SortOrderInput | Prisma.SortOrder
  action?: Prisma.SortOrder
  resourceType?: Prisma.SortOrder
  resourceId?: Prisma.SortOrderInput | Prisma.SortOrder
  metadata?: Prisma.SortOrderInput | Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  organization?: Prisma.OrganizationOrderByWithRelationInput
  user?: Prisma.UserOrderByWithRelationInput
}

export type AuditLogWhereUniqueInput = Prisma.AtLeast<{
  auditLogId?: string
  AND?: Prisma.AuditLogWhereInput | Prisma.AuditLogWhereInput[]
  OR?: Prisma.AuditLogWhereInput[]
  NOT?: Prisma.AuditLogWhereInput | Prisma.AuditLogWhereInput[]
  organizationId?: Prisma.StringFilter<"AuditLog"> | string
  userId?: Prisma.StringNullableFilter<"AuditLog"> | string | null
  action?: Prisma.StringFilter<"AuditLog"> | string
  resourceType?: Prisma.StringFilter<"AuditLog"> | string
  resourceId?: Prisma.StringNullableFilter<"AuditLog"> | string | null
  metadata?: Prisma.JsonNullableFilter<"AuditLog">
  createdAt?: Prisma.DateTimeFilter<"AuditLog"> | Date | string
  organization?: Prisma.XOR<Prisma.OrganizationScalarRelationFilter, Prisma.OrganizationWhereInput>
  user?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
}, "auditLogId">

export type AuditLogOrderByWithAggregationInput = {
  auditLogId?: Prisma.SortOrder
  organizationId?: Prisma.SortOrder
  userId?: Prisma.SortOrderInput | Prisma.SortOrder
  action?: Prisma.SortOrder
  resourceType?: Prisma.SortOrder
  resourceId?: Prisma.SortOrderInput | Prisma.SortOrder
  metadata?: Prisma.SortOrderInput | Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  _count?: Prisma.AuditLogCountOrderByAggregateInput
  _max?: Prisma.AuditLogMaxOrderByAggregateInput
  _min?: Prisma.AuditLogMinOrderByAggregateInput
}

export type AuditLogScalarWhereWithAggregatesInput = {
  AND?: Prisma.AuditLogScalarWhereWithAggregatesInput | Prisma.AuditLogScalarWhereWithAggregatesInput[]
  OR?: Prisma.AuditLogScalarWhereWithAggregatesInput[]
  NOT?: Prisma.AuditLogScalarWhereWithAggregatesInput | Prisma.AuditLogScalarWhereWithAggregatesInput[]
  auditLogId?: Prisma.StringWithAggregatesFilter<"AuditLog"> | string
  organizationId?: Prisma.StringWithAggregatesFilter<"AuditLog"> | string
  userId?: Prisma.StringNullableWithAggregatesFilter<"AuditLog"> | string | null
  action?: Prisma.StringWithAggregatesFilter<"AuditLog"> | string
  resourceType?: Prisma.StringWithAggregatesFilter<"AuditLog"> | string
  resourceId?: Prisma.StringNullableWithAggregatesFilter<"AuditLog"> | string | null
  metadata?: Prisma.JsonNullableWithAggregatesFilter<"AuditLog">
  createdAt?: Prisma.DateTimeWithAggregatesFilter<"AuditLog"> | Date | string
}

export type AuditLogCreateInput = {
  auditLogId?: string
  action: string
  resourceType: string
  resourceId?: string | null
  metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  createdAt?: Date | string
  organization: Prisma.OrganizationCreateNestedOneWithoutAuditLogsInput
  user?: Prisma.UserCreateNestedOneWithoutAuditLogsInput
}

export type AuditLogUncheckedCreateInput = {
  auditLogId?: string
  organizationId: string
  userId?: string | null
  action: string
  resourceType: string
  resourceId?: string | null
  metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  createdAt?: Date | string
}

export type AuditLogUpdateInput = {
  auditLogId?: Prisma.StringFieldUpdateOperationsInput | string
  action?: Prisma.StringFieldUpdateOperationsInput | string
  resourceType?: Prisma.StringFieldUpdateOperationsInput | string
  resourceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  organization?: Prisma.OrganizationUpdateOneRequiredWithoutAuditLogsNestedInput
  user?: Prisma.UserUpdateOneWithoutAuditLogsNestedInput
}

export type AuditLogUncheckedUpdateInput = {
  auditLogId?: Prisma.StringFieldUpdateOperationsInput | string
  organizationId?: Prisma.StringFieldUpdateOperationsInput | string
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  action?: Prisma.StringFieldUpdateOperationsInput | string
  resourceType?: Prisma.StringFieldUpdateOperationsInput | string
  resourceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type AuditLogCreateManyInput = {
  auditLogId?: string
  organizationId: string
  userId?: string | null
  action: string
  resourceType: string
  resourceId?: string | null
  metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  createdAt?: Date | string
}

export type AuditLogUpdateManyMutationInput = {
  auditLogId?: Prisma.StringFieldUpdateOperationsInput | string
  action?: Prisma.StringFieldUpdateOperationsInput | string
  resourceType?: Prisma.StringFieldUpdateOperationsInput | string
  resourceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type AuditLogUncheckedUpdateManyInput = {
  auditLogId?: Prisma.StringFieldUpdateOperationsInput | string
  organizationId?: Prisma.StringFieldUpdateOperationsInput | string
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  action?: Prisma.StringFieldUpdateOperationsInput | string
  resourceType?: Prisma.StringFieldUpdateOperationsInput | string
  resourceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type AuditLogListRelationFilter = {
  every?: Prisma.AuditLogWhereInput
  some?: Prisma.AuditLogWhereInput
  none?: Prisma.AuditLogWhereInput
}

export type AuditLogOrderByRelationAggregateInput = {
  _count?: Prisma.SortOrder
}

export type AuditLogCountOrderByAggregateInput = {
  auditLogId?: Prisma.SortOrder
  organizationId?: Prisma.SortOrder
  userId?: Prisma.SortOrder
  action?: Prisma.SortOrder
  resourceType?: Prisma.SortOrder
  resourceId?: Prisma.SortOrder
  metadata?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
}

export type AuditLogMaxOrderByAggregateInput = {
  auditLogId?: Prisma.SortOrder
  organizationId?: Prisma.SortOrder
  userId?: Prisma.SortOrder
  action?: Prisma.SortOrder
  resourceType?: Prisma.SortOrder
  resourceId?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
}

export type AuditLogMinOrderByAggregateInput = {
  auditLogId?: Prisma.SortOrder
  organizationId?: Prisma.SortOrder
  userId?: Prisma.SortOrder
  action?: Prisma.SortOrder
  resourceType?: Prisma.SortOrder
  resourceId?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
}

export type AuditLogCreateNestedManyWithoutUserInput = {
  create?: Prisma.XOR<Prisma.AuditLogCreateWithoutUserInput, Prisma.AuditLogUncheckedCreateWithoutUserInput> | Prisma.AuditLogCreateWithoutUserInput[] | Prisma.AuditLogUncheckedCreateWithoutUserInput[]
  connectOrCreate?: Prisma.AuditLogCreateOrConnectWithoutUserInput | Prisma.AuditLogCreateOrConnectWithoutUserInput[]
  createMany?: Prisma.AuditLogCreateManyUserInputEnvelope
  connect?: Prisma.AuditLogWhereUniqueInput | Prisma.AuditLogWhereUniqueInput[]
}

export type AuditLogUncheckedCreateNestedManyWithoutUserInput = {
  create?: Prisma.XOR<Prisma.AuditLogCreateWithoutUserInput, Prisma.AuditLogUncheckedCreateWithoutUserInput> | Prisma.AuditLogCreateWithoutUserInput[] | Prisma.AuditLogUncheckedCreateWithoutUserInput[]
  connectOrCreate?: Prisma.AuditLogCreateOrConnectWithoutUserInput | Prisma.AuditLogCreateOrConnectWithoutUserInput[]
  createMany?: Prisma.AuditLogCreateManyUserInputEnvelope
  connect?: Prisma.AuditLogWhereUniqueInput | Prisma.AuditLogWhereUniqueInput[]
}

export type AuditLogUpdateManyWithoutUserNestedInput = {
  create?: Prisma.XOR<Prisma.AuditLogCreateWithoutUserInput, Prisma.AuditLogUncheckedCreateWithoutUserInput> | Prisma.AuditLogCreateWithoutUserInput[] | Prisma.AuditLogUncheckedCreateWithoutUserInput[]
  connectOrCreate?: Prisma.AuditLogCreateOrConnectWithoutUserInput | Prisma.AuditLogCreateOrConnectWithoutUserInput[]
  upsert?: Prisma.AuditLogUpsertWithWhereUniqueWithoutUserInput | Prisma.AuditLogUpsertWithWhereUniqueWithoutUserInput[]
  createMany?: Prisma.AuditLogCreateManyUserInputEnvelope
  set?: Prisma.AuditLogWhereUniqueInput | Prisma.AuditLogWhereUniqueInput[]
  disconnect?: Prisma.AuditLogWhereUniqueInput | Prisma.AuditLogWhereUniqueInput[]
  delete?: Prisma.AuditLogWhereUniqueInput | Prisma.AuditLogWhereUniqueInput[]
  connect?: Prisma.AuditLogWhereUniqueInput | Prisma.AuditLogWhereUniqueInput[]
  update?: Prisma.AuditLogUpdateWithWhereUniqueWithoutUserInput | Prisma.AuditLogUpdateWithWhereUniqueWithoutUserInput[]
  updateMany?: Prisma.AuditLogUpdateManyWithWhereWithoutUserInput | Prisma.AuditLogUpdateManyWithWhereWithoutUserInput[]
  deleteMany?: Prisma.AuditLogScalarWhereInput | Prisma.AuditLogScalarWhereInput[]
}

export type AuditLogUncheckedUpdateManyWithoutUserNestedInput = {
  create?: Prisma.XOR<Prisma.AuditLogCreateWithoutUserInput, Prisma.AuditLogUncheckedCreateWithoutUserInput> | Prisma.AuditLogCreateWithoutUserInput[] | Prisma.AuditLogUncheckedCreateWithoutUserInput[]
  connectOrCreate?: Prisma.AuditLogCreateOrConnectWithoutUserInput | Prisma.AuditLogCreateOrConnectWithoutUserInput[]
  upsert?: Prisma.AuditLogUpsertWithWhereUniqueWithoutUserInput | Prisma.AuditLogUpsertWithWhereUniqueWithoutUserInput[]
  createMany?: Prisma.AuditLogCreateManyUserInputEnvelope
  set?: Prisma.AuditLogWhereUniqueInput | Prisma.AuditLogWhereUniqueInput[]
  disconnect?: Prisma.AuditLogWhereUniqueInput | Prisma.AuditLogWhereUniqueInput[]
  delete?: Prisma.AuditLogWhereUniqueInput | Prisma.AuditLogWhereUniqueInput[]
  connect?: Prisma.AuditLogWhereUniqueInput | Prisma.AuditLogWhereUniqueInput[]
  update?: Prisma.AuditLogUpdateWithWhereUniqueWithoutUserInput | Prisma.AuditLogUpdateWithWhereUniqueWithoutUserInput[]
  updateMany?: Prisma.AuditLogUpdateManyWithWhereWithoutUserInput | Prisma.AuditLogUpdateManyWithWhereWithoutUserInput[]
  deleteMany?: Prisma.AuditLogScalarWhereInput | Prisma.AuditLogScalarWhereInput[]
}

export type AuditLogCreateNestedManyWithoutOrganizationInput = {
  create?: Prisma.XOR<Prisma.AuditLogCreateWithoutOrganizationInput, Prisma.AuditLogUncheckedCreateWithoutOrganizationInput> | Prisma.AuditLogCreateWithoutOrganizationInput[] | Prisma.AuditLogUncheckedCreateWithoutOrganizationInput[]
  connectOrCreate?: Prisma.AuditLogCreateOrConnectWithoutOrganizationInput | Prisma.AuditLogCreateOrConnectWithoutOrganizationInput[]
  createMany?: Prisma.AuditLogCreateManyOrganizationInputEnvelope
  connect?: Prisma.AuditLogWhereUniqueInput | Prisma.AuditLogWhereUniqueInput[]
}

export type AuditLogUncheckedCreateNestedManyWithoutOrganizationInput = {
  create?: Prisma.XOR<Prisma.AuditLogCreateWithoutOrganizationInput, Prisma.AuditLogUncheckedCreateWithoutOrganizationInput> | Prisma.AuditLogCreateWithoutOrganizationInput[] | Prisma.AuditLogUncheckedCreateWithoutOrganizationInput[]
  connectOrCreate?: Prisma.AuditLogCreateOrConnectWithoutOrganizationInput | Prisma.AuditLogCreateOrConnectWithoutOrganizationInput[]
  createMany?: Prisma.AuditLogCreateManyOrganizationInputEnvelope
  connect?: Prisma.AuditLogWhereUniqueInput | Prisma.AuditLogWhereUniqueInput[]
}

export type AuditLogUpdateManyWithoutOrganizationNestedInput = {
  create?: Prisma.XOR<Prisma.AuditLogCreateWithoutOrganizationInput, Prisma.AuditLogUncheckedCreateWithoutOrganizationInput> | Prisma.AuditLogCreateWithoutOrganizationInput[] | Prisma.AuditLogUncheckedCreateWithoutOrganizationInput[]
  connectOrCreate?: Prisma.AuditLogCreateOrConnectWithoutOrganizationInput | Prisma.AuditLogCreateOrConnectWithoutOrganizationInput[]
  upsert?: Prisma.AuditLogUpsertWithWhereUniqueWithoutOrganizationInput | Prisma.AuditLogUpsertWithWhereUniqueWithoutOrganizationInput[]
  createMany?: Prisma.AuditLogCreateManyOrganizationInputEnvelope
  set?: Prisma.AuditLogWhereUniqueInput | Prisma.AuditLogWhereUniqueInput[]
  disconnect?: Prisma.AuditLogWhereUniqueInput | Prisma.AuditLogWhereUniqueInput[]
  delete?: Prisma.AuditLogWhereUniqueInput | Prisma.AuditLogWhereUniqueInput[]
  connect?: Prisma.AuditLogWhereUniqueInput | Prisma.AuditLogWhereUniqueInput[]
  update?: Prisma.AuditLogUpdateWithWhereUniqueWithoutOrganizationInput | Prisma.AuditLogUpdateWithWhereUniqueWithoutOrganizationInput[]
  updateMany?: Prisma.AuditLogUpdateManyWithWhereWithoutOrganizationInput | Prisma.AuditLogUpdateManyWithWhereWithoutOrganizationInput[]
  deleteMany?: Prisma.AuditLogScalarWhereInput | Prisma.AuditLogScalarWhereInput[]
}

export type AuditLogUncheckedUpdateManyWithoutOrganizationNestedInput = {
  create?: Prisma.XOR<Prisma.AuditLogCreateWithoutOrganizationInput, Prisma.AuditLogUncheckedCreateWithoutOrganizationInput> | Prisma.AuditLogCreateWithoutOrganizationInput[] | Prisma.AuditLogUncheckedCreateWithoutOrganizationInput[]
  connectOrCreate?: Prisma.AuditLogCreateOrConnectWithoutOrganizationInput | Prisma.AuditLogCreateOrConnectWithoutOrganizationInput[]
  upsert?: Prisma.AuditLogUpsertWithWhereUniqueWithoutOrganizationInput | Prisma.AuditLogUpsertWithWhereUniqueWithoutOrganizationInput[]
  createMany?: Prisma.AuditLogCreateManyOrganizationInputEnvelope
  set?: Prisma.AuditLogWhereUniqueInput | Prisma.AuditLogWhereUniqueInput[]
  disconnect?: Prisma.AuditLogWhereUniqueInput | Prisma.AuditLogWhereUniqueInput[]
  delete?: Prisma.AuditLogWhereUniqueInput | Prisma.AuditLogWhereUniqueInput[]
  connect?: Prisma.AuditLogWhereUniqueInput | Prisma.AuditLogWhereUniqueInput[]
  update?: Prisma.AuditLogUpdateWithWhereUniqueWithoutOrganizationInput | Prisma.AuditLogUpdateWithWhereUniqueWithoutOrganizationInput[]
  updateMany?: Prisma.AuditLogUpdateManyWithWhereWithoutOrganizationInput | Prisma.AuditLogUpdateManyWithWhereWithoutOrganizationInput[]
  deleteMany?: Prisma.AuditLogScalarWhereInput | Prisma.AuditLogScalarWhereInput[]
}

export type AuditLogCreateWithoutUserInput = {
  auditLogId?: string
  action: string
  resourceType: string
  resourceId?: string | null
  metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  createdAt?: Date | string
  organization: Prisma.OrganizationCreateNestedOneWithoutAuditLogsInput
}

export type AuditLogUncheckedCreateWithoutUserInput = {
  auditLogId?: string
  organizationId: string
  action: string
  resourceType: string
  resourceId?: string | null
  metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  createdAt?: Date | string
}

export type AuditLogCreateOrConnectWithoutUserInput = {
  where: Prisma.AuditLogWhereUniqueInput
  create: Prisma.XOR<Prisma.AuditLogCreateWithoutUserInput, Prisma.AuditLogUncheckedCreateWithoutUserInput>
}

export type AuditLogCreateManyUserInputEnvelope = {
  data: Prisma.AuditLogCreateManyUserInput | Prisma.AuditLogCreateManyUserInput[]
  skipDuplicates?: boolean
}

export type AuditLogUpsertWithWhereUniqueWithoutUserInput = {
  where: Prisma.AuditLogWhereUniqueInput
  update: Prisma.XOR<Prisma.AuditLogUpdateWithoutUserInput, Prisma.AuditLogUncheckedUpdateWithoutUserInput>
  create: Prisma.XOR<Prisma.AuditLogCreateWithoutUserInput, Prisma.AuditLogUncheckedCreateWithoutUserInput>
}

export type AuditLogUpdateWithWhereUniqueWithoutUserInput = {
  where: Prisma.AuditLogWhereUniqueInput
  data: Prisma.XOR<Prisma.AuditLogUpdateWithoutUserInput, Prisma.AuditLogUncheckedUpdateWithoutUserInput>
}

export type AuditLogUpdateManyWithWhereWithoutUserInput = {
  where: Prisma.AuditLogScalarWhereInput
  data: Prisma.XOR<Prisma.AuditLogUpdateManyMutationInput, Prisma.AuditLogUncheckedUpdateManyWithoutUserInput>
}

export type AuditLogScalarWhereInput = {
  AND?: Prisma.AuditLogScalarWhereInput | Prisma.AuditLogScalarWhereInput[]
  OR?: Prisma.AuditLogScalarWhereInput[]
  NOT?: Prisma.AuditLogScalarWhereInput | Prisma.AuditLogScalarWhereInput[]
  auditLogId?: Prisma.StringFilter<"AuditLog"> | string
  organizationId?: Prisma.StringFilter<"AuditLog"> | string
  userId?: Prisma.StringNullableFilter<"AuditLog"> | string | null
  action?: Prisma.StringFilter<"AuditLog"> | string
  resourceType?: Prisma.StringFilter<"AuditLog"> | string
  resourceId?: Prisma.StringNullableFilter<"AuditLog"> | string | null
  metadata?: Prisma.JsonNullableFilter<"AuditLog">
  createdAt?: Prisma.DateTimeFilter<"AuditLog"> | Date | string
}

export type AuditLogCreateWithoutOrganizationInput = {
  auditLogId?: string
  action: string
  resourceType: string
  resourceId?: string | null
  metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  createdAt?: Date | string
  user?: Prisma.UserCreateNestedOneWithoutAuditLogsInput
}

export type AuditLogUncheckedCreateWithoutOrganizationInput = {
  auditLogId?: string
  userId?: string | null
  action: string
  resourceType: string
  resourceId?: string | null
  metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  createdAt?: Date | string
}

export type AuditLogCreateOrConnectWithoutOrganizationInput = {
  where: Prisma.AuditLogWhereUniqueInput
  create: Prisma.XOR<Prisma.AuditLogCreateWithoutOrganizationInput, Prisma.AuditLogUncheckedCreateWithoutOrganizationInput>
}

export type AuditLogCreateManyOrganizationInputEnvelope = {
  data: Prisma.AuditLogCreateManyOrganizationInput | Prisma.AuditLogCreateManyOrganizationInput[]
  skipDuplicates?: boolean
}

export type AuditLogUpsertWithWhereUniqueWithoutOrganizationInput = {
  where: Prisma.AuditLogWhereUniqueInput
  update: Prisma.XOR<Prisma.AuditLogUpdateWithoutOrganizationInput, Prisma.AuditLogUncheckedUpdateWithoutOrganizationInput>
  create: Prisma.XOR<Prisma.AuditLogCreateWithoutOrganizationInput, Prisma.AuditLogUncheckedCreateWithoutOrganizationInput>
}

export type AuditLogUpdateWithWhereUniqueWithoutOrganizationInput = {
  where: Prisma.AuditLogWhereUniqueInput
  data: Prisma.XOR<Prisma.AuditLogUpdateWithoutOrganizationInput, Prisma.AuditLogUncheckedUpdateWithoutOrganizationInput>
}

export type AuditLogUpdateManyWithWhereWithoutOrganizationInput = {
  where: Prisma.AuditLogScalarWhereInput
  data: Prisma.XOR<Prisma.AuditLogUpdateManyMutationInput, Prisma.AuditLogUncheckedUpdateManyWithoutOrganizationInput>
}

export type AuditLogCreateManyUserInput = {
  auditLogId?: string
  organizationId: string
  action: string
  resourceType: string
  resourceId?: string | null
  metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  createdAt?: Date | string
}

export type AuditLogUpdateWithoutUserInput = {
  auditLogId?: Prisma.StringFieldUpdateOperationsInput | string
  action?: Prisma.StringFieldUpdateOperationsInput | string
  resourceType?: Prisma.StringFieldUpdateOperationsInput | string
  resourceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  organization?: Prisma.OrganizationUpdateOneRequiredWithoutAuditLogsNestedInput
}

export type AuditLogUncheckedUpdateWithoutUserInput = {
  auditLogId?: Prisma.StringFieldUpdateOperationsInput | string
  organizationId?: Prisma.StringFieldUpdateOperationsInput | string
  action?: Prisma.StringFieldUpdateOperationsInput | string
  resourceType?: Prisma.StringFieldUpdateOperationsInput | string
  resourceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type AuditLogUncheckedUpdateManyWithoutUserInput = {
  auditLogId?: Prisma.StringFieldUpdateOperationsInput | string
  organizationId?: Prisma.StringFieldUpdateOperationsInput | string
  action?: Prisma.StringFieldUpdateOperationsInput | string
  resourceType?: Prisma.StringFieldUpdateOperationsInput | string
  resourceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type AuditLogCreateManyOrganizationInput = {
  auditLogId?: string
  userId?: string | null
  action: string
  resourceType: string
  resourceId?: string | null
  metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  createdAt?: Date | string
}

export type AuditLogUpdateWithoutOrganizationInput = {
  auditLogId?: Prisma.StringFieldUpdateOperationsInput | string
  action?: Prisma.StringFieldUpdateOperationsInput | string
  resourceType?: Prisma.StringFieldUpdateOperationsInput | string
  resourceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  user?: Prisma.UserUpdateOneWithoutAuditLogsNestedInput
}

export type AuditLogUncheckedUpdateWithoutOrganizationInput = {
  auditLogId?: Prisma.StringFieldUpdateOperationsInput | string
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  action?: Prisma.StringFieldUpdateOperationsInput | string
  resourceType?: Prisma.StringFieldUpdateOperationsInput | string
  resourceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type AuditLogUncheckedUpdateManyWithoutOrganizationInput = {
  auditLogId?: Prisma.StringFieldUpdateOperationsInput | string
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  action?: Prisma.StringFieldUpdateOperationsInput | string
  resourceType?: Prisma.StringFieldUpdateOperationsInput | string
  resourceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}



export type AuditLogSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  auditLogId?: boolean
  organizationId?: boolean
  userId?: boolean
  action?: boolean
  resourceType?: boolean
  resourceId?: boolean
  metadata?: boolean
  createdAt?: boolean
  organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>
  user?: boolean | Prisma.AuditLog$userArgs<ExtArgs>
}, ExtArgs["result"]["auditLog"]>

export type AuditLogSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  auditLogId?: boolean
  organizationId?: boolean
  userId?: boolean
  action?: boolean
  resourceType?: boolean
  resourceId?: boolean
  metadata?: boolean
  createdAt?: boolean
  organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>
  user?: boolean | Prisma.AuditLog$userArgs<ExtArgs>
}, ExtArgs["result"]["auditLog"]>

export type AuditLogSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  auditLogId?: boolean
  organizationId?: boolean
  userId?: boolean
  action?: boolean
  resourceType?: boolean
  resourceId?: boolean
  metadata?: boolean
  createdAt?: boolean
  organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>
  user?: boolean | Prisma.AuditLog$userArgs<ExtArgs>
}, ExtArgs["result"]["auditLog"]>

export type AuditLogSelectScalar = {
  auditLogId?: boolean
  organizationId?: boolean
  userId?: boolean
  action?: boolean
  resourceType?: boolean
  resourceId?: boolean
  metadata?: boolean
  createdAt?: boolean
}

export type AuditLogOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"auditLogId" | "organizationId" | "userId" | "action" | "resourceType" | "resourceId" | "metadata" | "createdAt", ExtArgs["result"]["auditLog"]>
export type AuditLogInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>
  user?: boolean | Prisma.AuditLog$userArgs<ExtArgs>
}
export type AuditLogIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>
  user?: boolean | Prisma.AuditLog$userArgs<ExtArgs>
}
export type AuditLogIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>
  user?: boolean | Prisma.AuditLog$userArgs<ExtArgs>
}

export type $AuditLogPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "AuditLog"
  objects: {
    organization: Prisma.$OrganizationPayload<ExtArgs>
    user: Prisma.$UserPayload<ExtArgs> | null
  }
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    auditLogId: string
    organizationId: string
    userId: string | null
    action: string
    resourceType: string
    resourceId: string | null
    metadata: runtime.JsonValue | null
    createdAt: Date
  }, ExtArgs["result"]["auditLog"]>
  composites: {}
}

export type AuditLogGetPayload<S extends boolean | null | undefined | AuditLogDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$AuditLogPayload, S>

export type AuditLogCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
  Omit<AuditLogFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
    select?: AuditLogCountAggregateInputType | true
  }

export interface AuditLogDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['AuditLog'], meta: { name: 'AuditLog' } }
  /**
   * Find zero or one AuditLog that matches the filter.
   * @param {AuditLogFindUniqueArgs} args - Arguments to find a AuditLog
   * @example
   * // Get one AuditLog
   * const auditLog = await prisma.auditLog.findUnique({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findUnique<T extends AuditLogFindUniqueArgs>(args: Prisma.SelectSubset<T, AuditLogFindUniqueArgs<ExtArgs>>): Prisma.Prisma__AuditLogClient<runtime.Types.Result.GetResult<Prisma.$AuditLogPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>

  /**
   * Find one AuditLog that matches the filter or throw an error with `error.code='P2025'`
   * if no matches were found.
   * @param {AuditLogFindUniqueOrThrowArgs} args - Arguments to find a AuditLog
   * @example
   * // Get one AuditLog
   * const auditLog = await prisma.auditLog.findUniqueOrThrow({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findUniqueOrThrow<T extends AuditLogFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, AuditLogFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__AuditLogClient<runtime.Types.Result.GetResult<Prisma.$AuditLogPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Find the first AuditLog 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 {AuditLogFindFirstArgs} args - Arguments to find a AuditLog
   * @example
   * // Get one AuditLog
   * const auditLog = await prisma.auditLog.findFirst({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findFirst<T extends AuditLogFindFirstArgs>(args?: Prisma.SelectSubset<T, AuditLogFindFirstArgs<ExtArgs>>): Prisma.Prisma__AuditLogClient<runtime.Types.Result.GetResult<Prisma.$AuditLogPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>

  /**
   * Find the first AuditLog 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 {AuditLogFindFirstOrThrowArgs} args - Arguments to find a AuditLog
   * @example
   * // Get one AuditLog
   * const auditLog = await prisma.auditLog.findFirstOrThrow({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findFirstOrThrow<T extends AuditLogFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, AuditLogFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__AuditLogClient<runtime.Types.Result.GetResult<Prisma.$AuditLogPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Find zero or more AuditLogs 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 {AuditLogFindManyArgs} args - Arguments to filter and select certain fields only.
   * @example
   * // Get all AuditLogs
   * const auditLogs = await prisma.auditLog.findMany()
   *
   * // Get first 10 AuditLogs
   * const auditLogs = await prisma.auditLog.findMany({ take: 10 })
   *
   * // Only select the `auditLogId`
   * const auditLogWithAuditLogIdOnly = await prisma.auditLog.findMany({ select: { auditLogId: true } })
   *
   */
  findMany<T extends AuditLogFindManyArgs>(args?: Prisma.SelectSubset<T, AuditLogFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AuditLogPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>

  /**
   * Create a AuditLog.
   * @param {AuditLogCreateArgs} args - Arguments to create a AuditLog.
   * @example
   * // Create one AuditLog
   * const AuditLog = await prisma.auditLog.create({
   *   data: {
   *     // ... data to create a AuditLog
   *   }
   * })
   *
   */
  create<T extends AuditLogCreateArgs>(args: Prisma.SelectSubset<T, AuditLogCreateArgs<ExtArgs>>): Prisma.Prisma__AuditLogClient<runtime.Types.Result.GetResult<Prisma.$AuditLogPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Create many AuditLogs.
   * @param {AuditLogCreateManyArgs} args - Arguments to create many AuditLogs.
   * @example
   * // Create many AuditLogs
   * const auditLog = await prisma.auditLog.createMany({
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   *
   */
  createMany<T extends AuditLogCreateManyArgs>(args?: Prisma.SelectSubset<T, AuditLogCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * Create many AuditLogs and returns the data saved in the database.
   * @param {AuditLogCreateManyAndReturnArgs} args - Arguments to create many AuditLogs.
   * @example
   * // Create many AuditLogs
   * const auditLog = await prisma.auditLog.createManyAndReturn({
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   *
   * // Create many AuditLogs and only return the `auditLogId`
   * const auditLogWithAuditLogIdOnly = await prisma.auditLog.createManyAndReturn({
   *   select: { auditLogId: true },
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   *
   */
  createManyAndReturn<T extends AuditLogCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, AuditLogCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AuditLogPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>

  /**
   * Delete a AuditLog.
   * @param {AuditLogDeleteArgs} args - Arguments to delete one AuditLog.
   * @example
   * // Delete one AuditLog
   * const AuditLog = await prisma.auditLog.delete({
   *   where: {
   *     // ... filter to delete one AuditLog
   *   }
   * })
   *
   */
  delete<T extends AuditLogDeleteArgs>(args: Prisma.SelectSubset<T, AuditLogDeleteArgs<ExtArgs>>): Prisma.Prisma__AuditLogClient<runtime.Types.Result.GetResult<Prisma.$AuditLogPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Update one AuditLog.
   * @param {AuditLogUpdateArgs} args - Arguments to update one AuditLog.
   * @example
   * // Update one AuditLog
   * const auditLog = await prisma.auditLog.update({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: {
   *     // ... provide data here
   *   }
   * })
   *
   */
  update<T extends AuditLogUpdateArgs>(args: Prisma.SelectSubset<T, AuditLogUpdateArgs<ExtArgs>>): Prisma.Prisma__AuditLogClient<runtime.Types.Result.GetResult<Prisma.$AuditLogPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Delete zero or more AuditLogs.
   * @param {AuditLogDeleteManyArgs} args - Arguments to filter AuditLogs to delete.
   * @example
   * // Delete a few AuditLogs
   * const { count } = await prisma.auditLog.deleteMany({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   *
   */
  deleteMany<T extends AuditLogDeleteManyArgs>(args?: Prisma.SelectSubset<T, AuditLogDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * Update zero or more AuditLogs.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {AuditLogUpdateManyArgs} args - Arguments to update one or more rows.
   * @example
   * // Update many AuditLogs
   * const auditLog = await prisma.auditLog.updateMany({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: {
   *     // ... provide data here
   *   }
   * })
   *
   */
  updateMany<T extends AuditLogUpdateManyArgs>(args: Prisma.SelectSubset<T, AuditLogUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * Update zero or more AuditLogs and returns the data updated in the database.
   * @param {AuditLogUpdateManyAndReturnArgs} args - Arguments to update many AuditLogs.
   * @example
   * // Update many AuditLogs
   * const auditLog = await prisma.auditLog.updateManyAndReturn({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   *
   * // Update zero or more AuditLogs and only return the `auditLogId`
   * const auditLogWithAuditLogIdOnly = await prisma.auditLog.updateManyAndReturn({
   *   select: { auditLogId: true },
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   *
   */
  updateManyAndReturn<T extends AuditLogUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, AuditLogUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AuditLogPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>

  /**
   * Create or update one AuditLog.
   * @param {AuditLogUpsertArgs} args - Arguments to update or create a AuditLog.
   * @example
   * // Update or create a AuditLog
   * const auditLog = await prisma.auditLog.upsert({
   *   create: {
   *     // ... data to create a AuditLog
   *   },
   *   update: {
   *     // ... in case it already exists, update
   *   },
   *   where: {
   *     // ... the filter for the AuditLog we want to update
   *   }
   * })
   */
  upsert<T extends AuditLogUpsertArgs>(args: Prisma.SelectSubset<T, AuditLogUpsertArgs<ExtArgs>>): Prisma.Prisma__AuditLogClient<runtime.Types.Result.GetResult<Prisma.$AuditLogPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>


  /**
   * Count the number of AuditLogs.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {AuditLogCountArgs} args - Arguments to filter AuditLogs to count.
   * @example
   * // Count the number of AuditLogs
   * const count = await prisma.auditLog.count({
   *   where: {
   *     // ... the filter for the AuditLogs we want to count
   *   }
   * })
  **/
  count<T extends AuditLogCountArgs>(
    args?: Prisma.Subset<T, AuditLogCountArgs>,
  ): Prisma.PrismaPromise<
    T extends runtime.Types.Utils.Record<'select', any>
      ? T['select'] extends true
        ? number
        : Prisma.GetScalarType<T['select'], AuditLogCountAggregateOutputType>
      : number
  >

  /**
   * Allows you to perform aggregations operations on a AuditLog.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {AuditLogAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
   * @example
   * // Ordered by age ascending
   * // Where email contains prisma.io
   * // Limited to the 10 users
   * const aggregations = await prisma.user.aggregate({
   *   _avg: {
   *     age: true,
   *   },
   *   where: {
   *     email: {
   *       contains: "prisma.io",
   *     },
   *   },
   *   orderBy: {
   *     age: "asc",
   *   },
   *   take: 10,
   * })
  **/
  aggregate<T extends AuditLogAggregateArgs>(args: Prisma.Subset<T, AuditLogAggregateArgs>): Prisma.PrismaPromise<GetAuditLogAggregateType<T>>

  /**
   * Group by AuditLog.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {AuditLogGroupByArgs} 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 AuditLogGroupByArgs,
    HasSelectOrTake extends Prisma.Or<
      Prisma.Extends<'skip', Prisma.Keys<T>>,
      Prisma.Extends<'take', Prisma.Keys<T>>
    >,
    OrderByArg extends Prisma.True extends HasSelectOrTake
      ? { orderBy: AuditLogGroupByArgs['orderBy'] }
      : { orderBy?: AuditLogGroupByArgs['orderBy'] },
    OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
    ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
    ByValid extends Prisma.Has<ByFields, OrderFields>,
    HavingFields extends Prisma.GetHavingFields<T['having']>,
    HavingValid extends Prisma.Has<ByFields, HavingFields>,
    ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
    InputErrors extends ByEmpty extends Prisma.True
    ? `Error: "by" must not be empty.`
    : HavingValid extends Prisma.False
    ? {
        [P in HavingFields]: P extends ByFields
          ? never
          : P extends string
          ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
          : [
              Error,
              'Field ',
              P,
              ` in "having" needs to be provided in "by"`,
            ]
      }[HavingFields]
    : 'take' extends Prisma.Keys<T>
    ? 'orderBy' extends Prisma.Keys<T>
      ? ByValid extends Prisma.True
        ? {}
        : {
            [P in OrderFields]: P extends ByFields
              ? never
              : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
          }[OrderFields]
      : 'Error: If you provide "take", you also need to provide "orderBy"'
    : 'skip' extends Prisma.Keys<T>
    ? 'orderBy' extends Prisma.Keys<T>
      ? ByValid extends Prisma.True
        ? {}
        : {
            [P in OrderFields]: P extends ByFields
              ? never
              : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
          }[OrderFields]
      : 'Error: If you provide "skip", you also need to provide "orderBy"'
    : ByValid extends Prisma.True
    ? {}
    : {
        [P in OrderFields]: P extends ByFields
          ? never
          : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
      }[OrderFields]
  >(args: Prisma.SubsetIntersection<T, AuditLogGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAuditLogGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
 * Fields of the AuditLog model
 */
readonly fields: AuditLogFieldRefs;
}

/**
 * The delegate class that acts as a "Promise-like" for AuditLog.
 * 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__AuditLogClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  readonly [Symbol.toStringTag]: "PrismaPromise"
  organization<T extends Prisma.OrganizationDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.OrganizationDefaultArgs<ExtArgs>>): Prisma.Prisma__OrganizationClient<runtime.Types.Result.GetResult<Prisma.$OrganizationPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  user<T extends Prisma.AuditLog$userArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AuditLog$userArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  /**
   * Attaches callbacks for the resolution and/or rejection of the Promise.
   * @param onfulfilled The callback to execute when the Promise is resolved.
   * @param onrejected The callback to execute when the Promise is rejected.
   * @returns A Promise for the completion of which ever callback is executed.
   */
  then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
  /**
   * Attaches a callback for only the rejection of the Promise.
   * @param onrejected The callback to execute when the Promise is rejected.
   * @returns A Promise for the completion of the callback.
   */
  catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
  /**
   * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
   * resolved value cannot be modified from the callback.
   * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
   * @returns A Promise for the completion of the callback.
   */
  finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
}




/**
 * Fields of the AuditLog model
 */
export interface AuditLogFieldRefs {
  readonly auditLogId: Prisma.FieldRef<"AuditLog", 'String'>
  readonly organizationId: Prisma.FieldRef<"AuditLog", 'String'>
  readonly userId: Prisma.FieldRef<"AuditLog", 'String'>
  readonly action: Prisma.FieldRef<"AuditLog", 'String'>
  readonly resourceType: Prisma.FieldRef<"AuditLog", 'String'>
  readonly resourceId: Prisma.FieldRef<"AuditLog", 'String'>
  readonly metadata: Prisma.FieldRef<"AuditLog", 'Json'>
  readonly createdAt: Prisma.FieldRef<"AuditLog", 'DateTime'>
}


// Custom InputTypes
/**
 * AuditLog findUnique
 */
export type AuditLogFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the AuditLog
   */
  select?: Prisma.AuditLogSelect<ExtArgs> | null
  /**
   * Omit specific fields from the AuditLog
   */
  omit?: Prisma.AuditLogOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.AuditLogInclude<ExtArgs> | null
  /**
   * Filter, which AuditLog to fetch.
   */
  where: Prisma.AuditLogWhereUniqueInput
}

/**
 * AuditLog findUniqueOrThrow
 */
export type AuditLogFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the AuditLog
   */
  select?: Prisma.AuditLogSelect<ExtArgs> | null
  /**
   * Omit specific fields from the AuditLog
   */
  omit?: Prisma.AuditLogOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.AuditLogInclude<ExtArgs> | null
  /**
   * Filter, which AuditLog to fetch.
   */
  where: Prisma.AuditLogWhereUniqueInput
}

/**
 * AuditLog findFirst
 */
export type AuditLogFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the AuditLog
   */
  select?: Prisma.AuditLogSelect<ExtArgs> | null
  /**
   * Omit specific fields from the AuditLog
   */
  omit?: Prisma.AuditLogOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.AuditLogInclude<ExtArgs> | null
  /**
   * Filter, which AuditLog to fetch.
   */
  where?: Prisma.AuditLogWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   *
   * Determine the order of AuditLogs to fetch.
   */
  orderBy?: Prisma.AuditLogOrderByWithRelationInput | Prisma.AuditLogOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   *
   * Sets the position for searching for AuditLogs.
   */
  cursor?: Prisma.AuditLogWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   *
   * Take `±n` AuditLogs 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` AuditLogs.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   *
   * Filter by unique combinations of AuditLogs.
   */
  distinct?: Prisma.AuditLogScalarFieldEnum | Prisma.AuditLogScalarFieldEnum[]
}

/**
 * AuditLog findFirstOrThrow
 */
export type AuditLogFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the AuditLog
   */
  select?: Prisma.AuditLogSelect<ExtArgs> | null
  /**
   * Omit specific fields from the AuditLog
   */
  omit?: Prisma.AuditLogOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.AuditLogInclude<ExtArgs> | null
  /**
   * Filter, which AuditLog to fetch.
   */
  where?: Prisma.AuditLogWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   *
   * Determine the order of AuditLogs to fetch.
   */
  orderBy?: Prisma.AuditLogOrderByWithRelationInput | Prisma.AuditLogOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   *
   * Sets the position for searching for AuditLogs.
   */
  cursor?: Prisma.AuditLogWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   *
   * Take `±n` AuditLogs 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` AuditLogs.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   *
   * Filter by unique combinations of AuditLogs.
   */
  distinct?: Prisma.AuditLogScalarFieldEnum | Prisma.AuditLogScalarFieldEnum[]
}

/**
 * AuditLog findMany
 */
export type AuditLogFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the AuditLog
   */
  select?: Prisma.AuditLogSelect<ExtArgs> | null
  /**
   * Omit specific fields from the AuditLog
   */
  omit?: Prisma.AuditLogOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.AuditLogInclude<ExtArgs> | null
  /**
   * Filter, which AuditLogs to fetch.
   */
  where?: Prisma.AuditLogWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   *
   * Determine the order of AuditLogs to fetch.
   */
  orderBy?: Prisma.AuditLogOrderByWithRelationInput | Prisma.AuditLogOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   *
   * Sets the position for listing AuditLogs.
   */
  cursor?: Prisma.AuditLogWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   *
   * Take `±n` AuditLogs 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` AuditLogs.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   *
   * Filter by unique combinations of AuditLogs.
   */
  distinct?: Prisma.AuditLogScalarFieldEnum | Prisma.AuditLogScalarFieldEnum[]
}

/**
 * AuditLog create
 */
export type AuditLogCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the AuditLog
   */
  select?: Prisma.AuditLogSelect<ExtArgs> | null
  /**
   * Omit specific fields from the AuditLog
   */
  omit?: Prisma.AuditLogOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.AuditLogInclude<ExtArgs> | null
  /**
   * The data needed to create a AuditLog.
   */
  data: Prisma.XOR<Prisma.AuditLogCreateInput, Prisma.AuditLogUncheckedCreateInput>
}

/**
 * AuditLog createMany
 */
export type AuditLogCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to create many AuditLogs.
   */
  data: Prisma.AuditLogCreateManyInput | Prisma.AuditLogCreateManyInput[]
  skipDuplicates?: boolean
}

/**
 * AuditLog createManyAndReturn
 */
export type AuditLogCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the AuditLog
   */
  select?: Prisma.AuditLogSelectCreateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the AuditLog
   */
  omit?: Prisma.AuditLogOmit<ExtArgs> | null
  /**
   * The data used to create many AuditLogs.
   */
  data: Prisma.AuditLogCreateManyInput | Prisma.AuditLogCreateManyInput[]
  skipDuplicates?: boolean
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.AuditLogIncludeCreateManyAndReturn<ExtArgs> | null
}

/**
 * AuditLog update
 */
export type AuditLogUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the AuditLog
   */
  select?: Prisma.AuditLogSelect<ExtArgs> | null
  /**
   * Omit specific fields from the AuditLog
   */
  omit?: Prisma.AuditLogOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.AuditLogInclude<ExtArgs> | null
  /**
   * The data needed to update a AuditLog.
   */
  data: Prisma.XOR<Prisma.AuditLogUpdateInput, Prisma.AuditLogUncheckedUpdateInput>
  /**
   * Choose, which AuditLog to update.
   */
  where: Prisma.AuditLogWhereUniqueInput
}

/**
 * AuditLog updateMany
 */
export type AuditLogUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update AuditLogs.
   */
  data: Prisma.XOR<Prisma.AuditLogUpdateManyMutationInput, Prisma.AuditLogUncheckedUpdateManyInput>
  /**
   * Filter which AuditLogs to update
   */
  where?: Prisma.AuditLogWhereInput
  /**
   * Limit how many AuditLogs to update.
   */
  limit?: number
}

/**
 * AuditLog updateManyAndReturn
 */
export type AuditLogUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the AuditLog
   */
  select?: Prisma.AuditLogSelectUpdateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the AuditLog
   */
  omit?: Prisma.AuditLogOmit<ExtArgs> | null
  /**
   * The data used to update AuditLogs.
   */
  data: Prisma.XOR<Prisma.AuditLogUpdateManyMutationInput, Prisma.AuditLogUncheckedUpdateManyInput>
  /**
   * Filter which AuditLogs to update
   */
  where?: Prisma.AuditLogWhereInput
  /**
   * Limit how many AuditLogs to update.
   */
  limit?: number
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.AuditLogIncludeUpdateManyAndReturn<ExtArgs> | null
}

/**
 * AuditLog upsert
 */
export type AuditLogUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the AuditLog
   */
  select?: Prisma.AuditLogSelect<ExtArgs> | null
  /**
   * Omit specific fields from the AuditLog
   */
  omit?: Prisma.AuditLogOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.AuditLogInclude<ExtArgs> | null
  /**
   * The filter to search for the AuditLog to update in case it exists.
   */
  where: Prisma.AuditLogWhereUniqueInput
  /**
   * In case the AuditLog found by the `where` argument doesn't exist, create a new AuditLog with this data.
   */
  create: Prisma.XOR<Prisma.AuditLogCreateInput, Prisma.AuditLogUncheckedCreateInput>
  /**
   * In case the AuditLog was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.AuditLogUpdateInput, Prisma.AuditLogUncheckedUpdateInput>
}

/**
 * AuditLog delete
 */
export type AuditLogDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the AuditLog
   */
  select?: Prisma.AuditLogSelect<ExtArgs> | null
  /**
   * Omit specific fields from the AuditLog
   */
  omit?: Prisma.AuditLogOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.AuditLogInclude<ExtArgs> | null
  /**
   * Filter which AuditLog to delete.
   */
  where: Prisma.AuditLogWhereUniqueInput
}

/**
 * AuditLog deleteMany
 */
export type AuditLogDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which AuditLogs to delete
   */
  where?: Prisma.AuditLogWhereInput
  /**
   * Limit how many AuditLogs to delete.
   */
  limit?: number
}

/**
 * AuditLog.user
 */
export type AuditLog$userArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the User
   */
  select?: Prisma.UserSelect<ExtArgs> | null
  /**
   * Omit specific fields from the User
   */
  omit?: Prisma.UserOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.UserInclude<ExtArgs> | null
  where?: Prisma.UserWhereInput
}

/**
 * AuditLog without action
 */
export type AuditLogDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the AuditLog
   */
  select?: Prisma.AuditLogSelect<ExtArgs> | null
  /**
   * Omit specific fields from the AuditLog
   */
  omit?: Prisma.AuditLogOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.AuditLogInclude<ExtArgs> | null
}
