
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck 
/*
 * This file exports the `account_memo` 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"
import type * as Prisma from "../internal/prismaNamespace"

/**
 * Model account_memo
 * 
 */
export type account_memoModel = runtime.Types.Result.DefaultSelection<Prisma.$account_memoPayload>

export type AggregateAccount_memo = {
  _count: Account_memoCountAggregateOutputType | null
  _avg: Account_memoAvgAggregateOutputType | null
  _sum: Account_memoSumAggregateOutputType | null
  _min: Account_memoMinAggregateOutputType | null
  _max: Account_memoMaxAggregateOutputType | null
}

export type Account_memoAvgAggregateOutputType = {
  id: number | null
  date_orig: number | null
  last_updated: number | null
  staff_id: number | null
  account_id: number | null
}

export type Account_memoSumAggregateOutputType = {
  id: bigint | null
  date_orig: bigint | null
  last_updated: bigint | null
  staff_id: bigint | null
  account_id: bigint | null
}

export type Account_memoMinAggregateOutputType = {
  id: bigint | null
  date_orig: bigint | null
  last_updated: bigint | null
  staff_id: bigint | null
  account_id: bigint | null
  memo: string | null
  color: string | null
  bcolor: string | null
  border: string | null
}

export type Account_memoMaxAggregateOutputType = {
  id: bigint | null
  date_orig: bigint | null
  last_updated: bigint | null
  staff_id: bigint | null
  account_id: bigint | null
  memo: string | null
  color: string | null
  bcolor: string | null
  border: string | null
}

export type Account_memoCountAggregateOutputType = {
  id: number
  date_orig: number
  last_updated: number
  staff_id: number
  account_id: number
  memo: number
  color: number
  bcolor: number
  border: number
  _all: number
}


export type Account_memoAvgAggregateInputType = {
  id?: true
  date_orig?: true
  last_updated?: true
  staff_id?: true
  account_id?: true
}

export type Account_memoSumAggregateInputType = {
  id?: true
  date_orig?: true
  last_updated?: true
  staff_id?: true
  account_id?: true
}

export type Account_memoMinAggregateInputType = {
  id?: true
  date_orig?: true
  last_updated?: true
  staff_id?: true
  account_id?: true
  memo?: true
  color?: true
  bcolor?: true
  border?: true
}

export type Account_memoMaxAggregateInputType = {
  id?: true
  date_orig?: true
  last_updated?: true
  staff_id?: true
  account_id?: true
  memo?: true
  color?: true
  bcolor?: true
  border?: true
}

export type Account_memoCountAggregateInputType = {
  id?: true
  date_orig?: true
  last_updated?: true
  staff_id?: true
  account_id?: true
  memo?: true
  color?: true
  bcolor?: true
  border?: true
  _all?: true
}

export type Account_memoAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which account_memo to aggregate.
   */
  where?: Prisma.account_memoWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of account_memos to fetch.
   */
  orderBy?: Prisma.account_memoOrderByWithRelationInput | Prisma.account_memoOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.account_memoWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` account_memos 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` account_memos.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned account_memos
  **/
  _count?: true | Account_memoCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to average
  **/
  _avg?: Account_memoAvgAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to sum
  **/
  _sum?: Account_memoSumAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: Account_memoMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: Account_memoMaxAggregateInputType
}

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




export type account_memoGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.account_memoWhereInput
  orderBy?: Prisma.account_memoOrderByWithAggregationInput | Prisma.account_memoOrderByWithAggregationInput[]
  by: Prisma.Account_memoScalarFieldEnum[] | Prisma.Account_memoScalarFieldEnum
  having?: Prisma.account_memoScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: Account_memoCountAggregateInputType | true
  _avg?: Account_memoAvgAggregateInputType
  _sum?: Account_memoSumAggregateInputType
  _min?: Account_memoMinAggregateInputType
  _max?: Account_memoMaxAggregateInputType
}

export type Account_memoGroupByOutputType = {
  id: bigint
  date_orig: bigint | null
  last_updated: bigint
  staff_id: bigint | null
  account_id: bigint | null
  memo: string | null
  color: string
  bcolor: string
  border: string
  _count: Account_memoCountAggregateOutputType | null
  _avg: Account_memoAvgAggregateOutputType | null
  _sum: Account_memoSumAggregateOutputType | null
  _min: Account_memoMinAggregateOutputType | null
  _max: Account_memoMaxAggregateOutputType | null
}

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



export type account_memoWhereInput = {
  AND?: Prisma.account_memoWhereInput | Prisma.account_memoWhereInput[]
  OR?: Prisma.account_memoWhereInput[]
  NOT?: Prisma.account_memoWhereInput | Prisma.account_memoWhereInput[]
  id?: Prisma.BigIntFilter<"account_memo"> | bigint | number
  date_orig?: Prisma.BigIntNullableFilter<"account_memo"> | bigint | number | null
  last_updated?: Prisma.BigIntFilter<"account_memo"> | bigint | number
  staff_id?: Prisma.BigIntNullableFilter<"account_memo"> | bigint | number | null
  account_id?: Prisma.BigIntNullableFilter<"account_memo"> | bigint | number | null
  memo?: Prisma.StringNullableFilter<"account_memo"> | string | null
  color?: Prisma.StringFilter<"account_memo"> | string
  bcolor?: Prisma.StringFilter<"account_memo"> | string
  border?: Prisma.StringFilter<"account_memo"> | string
}

export type account_memoOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  date_orig?: Prisma.SortOrderInput | Prisma.SortOrder
  last_updated?: Prisma.SortOrder
  staff_id?: Prisma.SortOrderInput | Prisma.SortOrder
  account_id?: Prisma.SortOrderInput | Prisma.SortOrder
  memo?: Prisma.SortOrderInput | Prisma.SortOrder
  color?: Prisma.SortOrder
  bcolor?: Prisma.SortOrder
  border?: Prisma.SortOrder
  _relevance?: Prisma.account_memoOrderByRelevanceInput
}

export type account_memoWhereUniqueInput = Prisma.AtLeast<{
  id?: bigint | number
  AND?: Prisma.account_memoWhereInput | Prisma.account_memoWhereInput[]
  OR?: Prisma.account_memoWhereInput[]
  NOT?: Prisma.account_memoWhereInput | Prisma.account_memoWhereInput[]
  date_orig?: Prisma.BigIntNullableFilter<"account_memo"> | bigint | number | null
  last_updated?: Prisma.BigIntFilter<"account_memo"> | bigint | number
  staff_id?: Prisma.BigIntNullableFilter<"account_memo"> | bigint | number | null
  account_id?: Prisma.BigIntNullableFilter<"account_memo"> | bigint | number | null
  memo?: Prisma.StringNullableFilter<"account_memo"> | string | null
  color?: Prisma.StringFilter<"account_memo"> | string
  bcolor?: Prisma.StringFilter<"account_memo"> | string
  border?: Prisma.StringFilter<"account_memo"> | string
}, "id">

export type account_memoOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  date_orig?: Prisma.SortOrderInput | Prisma.SortOrder
  last_updated?: Prisma.SortOrder
  staff_id?: Prisma.SortOrderInput | Prisma.SortOrder
  account_id?: Prisma.SortOrderInput | Prisma.SortOrder
  memo?: Prisma.SortOrderInput | Prisma.SortOrder
  color?: Prisma.SortOrder
  bcolor?: Prisma.SortOrder
  border?: Prisma.SortOrder
  _count?: Prisma.account_memoCountOrderByAggregateInput
  _avg?: Prisma.account_memoAvgOrderByAggregateInput
  _max?: Prisma.account_memoMaxOrderByAggregateInput
  _min?: Prisma.account_memoMinOrderByAggregateInput
  _sum?: Prisma.account_memoSumOrderByAggregateInput
}

export type account_memoScalarWhereWithAggregatesInput = {
  AND?: Prisma.account_memoScalarWhereWithAggregatesInput | Prisma.account_memoScalarWhereWithAggregatesInput[]
  OR?: Prisma.account_memoScalarWhereWithAggregatesInput[]
  NOT?: Prisma.account_memoScalarWhereWithAggregatesInput | Prisma.account_memoScalarWhereWithAggregatesInput[]
  id?: Prisma.BigIntWithAggregatesFilter<"account_memo"> | bigint | number
  date_orig?: Prisma.BigIntNullableWithAggregatesFilter<"account_memo"> | bigint | number | null
  last_updated?: Prisma.BigIntWithAggregatesFilter<"account_memo"> | bigint | number
  staff_id?: Prisma.BigIntNullableWithAggregatesFilter<"account_memo"> | bigint | number | null
  account_id?: Prisma.BigIntNullableWithAggregatesFilter<"account_memo"> | bigint | number | null
  memo?: Prisma.StringNullableWithAggregatesFilter<"account_memo"> | string | null
  color?: Prisma.StringWithAggregatesFilter<"account_memo"> | string
  bcolor?: Prisma.StringWithAggregatesFilter<"account_memo"> | string
  border?: Prisma.StringWithAggregatesFilter<"account_memo"> | string
}

export type account_memoCreateInput = {
  id?: bigint | number
  date_orig?: bigint | number | null
  last_updated?: bigint | number
  staff_id?: bigint | number | null
  account_id?: bigint | number | null
  memo?: string | null
  color?: string
  bcolor?: string
  border?: string
}

export type account_memoUncheckedCreateInput = {
  id?: bigint | number
  date_orig?: bigint | number | null
  last_updated?: bigint | number
  staff_id?: bigint | number | null
  account_id?: bigint | number | null
  memo?: string | null
  color?: string
  bcolor?: string
  border?: string
}

export type account_memoUpdateInput = {
  id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  last_updated?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  staff_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  account_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  memo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  color?: Prisma.StringFieldUpdateOperationsInput | string
  bcolor?: Prisma.StringFieldUpdateOperationsInput | string
  border?: Prisma.StringFieldUpdateOperationsInput | string
}

export type account_memoUncheckedUpdateInput = {
  id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  last_updated?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  staff_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  account_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  memo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  color?: Prisma.StringFieldUpdateOperationsInput | string
  bcolor?: Prisma.StringFieldUpdateOperationsInput | string
  border?: Prisma.StringFieldUpdateOperationsInput | string
}

export type account_memoCreateManyInput = {
  id?: bigint | number
  date_orig?: bigint | number | null
  last_updated?: bigint | number
  staff_id?: bigint | number | null
  account_id?: bigint | number | null
  memo?: string | null
  color?: string
  bcolor?: string
  border?: string
}

export type account_memoUpdateManyMutationInput = {
  id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  last_updated?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  staff_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  account_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  memo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  color?: Prisma.StringFieldUpdateOperationsInput | string
  bcolor?: Prisma.StringFieldUpdateOperationsInput | string
  border?: Prisma.StringFieldUpdateOperationsInput | string
}

export type account_memoUncheckedUpdateManyInput = {
  id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  last_updated?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
  staff_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  account_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null
  memo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  color?: Prisma.StringFieldUpdateOperationsInput | string
  bcolor?: Prisma.StringFieldUpdateOperationsInput | string
  border?: Prisma.StringFieldUpdateOperationsInput | string
}

export type account_memoOrderByRelevanceInput = {
  fields: Prisma.account_memoOrderByRelevanceFieldEnum | Prisma.account_memoOrderByRelevanceFieldEnum[]
  sort: Prisma.SortOrder
  search: string
}

export type account_memoCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  date_orig?: Prisma.SortOrder
  last_updated?: Prisma.SortOrder
  staff_id?: Prisma.SortOrder
  account_id?: Prisma.SortOrder
  memo?: Prisma.SortOrder
  color?: Prisma.SortOrder
  bcolor?: Prisma.SortOrder
  border?: Prisma.SortOrder
}

export type account_memoAvgOrderByAggregateInput = {
  id?: Prisma.SortOrder
  date_orig?: Prisma.SortOrder
  last_updated?: Prisma.SortOrder
  staff_id?: Prisma.SortOrder
  account_id?: Prisma.SortOrder
}

export type account_memoMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  date_orig?: Prisma.SortOrder
  last_updated?: Prisma.SortOrder
  staff_id?: Prisma.SortOrder
  account_id?: Prisma.SortOrder
  memo?: Prisma.SortOrder
  color?: Prisma.SortOrder
  bcolor?: Prisma.SortOrder
  border?: Prisma.SortOrder
}

export type account_memoMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  date_orig?: Prisma.SortOrder
  last_updated?: Prisma.SortOrder
  staff_id?: Prisma.SortOrder
  account_id?: Prisma.SortOrder
  memo?: Prisma.SortOrder
  color?: Prisma.SortOrder
  bcolor?: Prisma.SortOrder
  border?: Prisma.SortOrder
}

export type account_memoSumOrderByAggregateInput = {
  id?: Prisma.SortOrder
  date_orig?: Prisma.SortOrder
  last_updated?: Prisma.SortOrder
  staff_id?: Prisma.SortOrder
  account_id?: Prisma.SortOrder
}



export type account_memoSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  date_orig?: boolean
  last_updated?: boolean
  staff_id?: boolean
  account_id?: boolean
  memo?: boolean
  color?: boolean
  bcolor?: boolean
  border?: boolean
}, ExtArgs["result"]["account_memo"]>



export type account_memoSelectScalar = {
  id?: boolean
  date_orig?: boolean
  last_updated?: boolean
  staff_id?: boolean
  account_id?: boolean
  memo?: boolean
  color?: boolean
  bcolor?: boolean
  border?: boolean
}

export type account_memoOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "date_orig" | "last_updated" | "staff_id" | "account_id" | "memo" | "color" | "bcolor" | "border", ExtArgs["result"]["account_memo"]>

export type $account_memoPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "account_memo"
  objects: {}
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: bigint
    date_orig: bigint | null
    last_updated: bigint
    staff_id: bigint | null
    account_id: bigint | null
    memo: string | null
    color: string
    bcolor: string
    border: string
  }, ExtArgs["result"]["account_memo"]>
  composites: {}
}

export type account_memoGetPayload<S extends boolean | null | undefined | account_memoDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$account_memoPayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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


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

  /**
   * Allows you to perform aggregations operations on a Account_memo.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {Account_memoAggregateArgs} 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 Account_memoAggregateArgs>(args: Prisma.Subset<T, Account_memoAggregateArgs>): Prisma.PrismaPromise<GetAccount_memoAggregateType<T>>

  /**
   * Group by Account_memo.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {account_memoGroupByArgs} 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 account_memoGroupByArgs,
    HasSelectOrTake extends Prisma.Or<
      Prisma.Extends<'skip', Prisma.Keys<T>>,
      Prisma.Extends<'take', Prisma.Keys<T>>
    >,
    OrderByArg extends Prisma.True extends HasSelectOrTake
      ? { orderBy: account_memoGroupByArgs['orderBy'] }
      : { orderBy?: account_memoGroupByArgs['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, account_memoGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAccount_memoGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
 * Fields of the account_memo model
 */
readonly fields: account_memoFieldRefs;
}

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




/**
 * Fields of the account_memo model
 */
export interface account_memoFieldRefs {
  readonly id: Prisma.FieldRef<"account_memo", 'BigInt'>
  readonly date_orig: Prisma.FieldRef<"account_memo", 'BigInt'>
  readonly last_updated: Prisma.FieldRef<"account_memo", 'BigInt'>
  readonly staff_id: Prisma.FieldRef<"account_memo", 'BigInt'>
  readonly account_id: Prisma.FieldRef<"account_memo", 'BigInt'>
  readonly memo: Prisma.FieldRef<"account_memo", 'String'>
  readonly color: Prisma.FieldRef<"account_memo", 'String'>
  readonly bcolor: Prisma.FieldRef<"account_memo", 'String'>
  readonly border: Prisma.FieldRef<"account_memo", 'String'>
}
    

// Custom InputTypes
/**
 * account_memo findUnique
 */
export type account_memoFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the account_memo
   */
  select?: Prisma.account_memoSelect<ExtArgs> | null
  /**
   * Omit specific fields from the account_memo
   */
  omit?: Prisma.account_memoOmit<ExtArgs> | null
  /**
   * Filter, which account_memo to fetch.
   */
  where: Prisma.account_memoWhereUniqueInput
}

/**
 * account_memo findUniqueOrThrow
 */
export type account_memoFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the account_memo
   */
  select?: Prisma.account_memoSelect<ExtArgs> | null
  /**
   * Omit specific fields from the account_memo
   */
  omit?: Prisma.account_memoOmit<ExtArgs> | null
  /**
   * Filter, which account_memo to fetch.
   */
  where: Prisma.account_memoWhereUniqueInput
}

/**
 * account_memo findFirst
 */
export type account_memoFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the account_memo
   */
  select?: Prisma.account_memoSelect<ExtArgs> | null
  /**
   * Omit specific fields from the account_memo
   */
  omit?: Prisma.account_memoOmit<ExtArgs> | null
  /**
   * Filter, which account_memo to fetch.
   */
  where?: Prisma.account_memoWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of account_memos to fetch.
   */
  orderBy?: Prisma.account_memoOrderByWithRelationInput | Prisma.account_memoOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for account_memos.
   */
  cursor?: Prisma.account_memoWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` account_memos 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` account_memos.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of account_memos.
   */
  distinct?: Prisma.Account_memoScalarFieldEnum | Prisma.Account_memoScalarFieldEnum[]
}

/**
 * account_memo findFirstOrThrow
 */
export type account_memoFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the account_memo
   */
  select?: Prisma.account_memoSelect<ExtArgs> | null
  /**
   * Omit specific fields from the account_memo
   */
  omit?: Prisma.account_memoOmit<ExtArgs> | null
  /**
   * Filter, which account_memo to fetch.
   */
  where?: Prisma.account_memoWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of account_memos to fetch.
   */
  orderBy?: Prisma.account_memoOrderByWithRelationInput | Prisma.account_memoOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for account_memos.
   */
  cursor?: Prisma.account_memoWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` account_memos 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` account_memos.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of account_memos.
   */
  distinct?: Prisma.Account_memoScalarFieldEnum | Prisma.Account_memoScalarFieldEnum[]
}

/**
 * account_memo findMany
 */
export type account_memoFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the account_memo
   */
  select?: Prisma.account_memoSelect<ExtArgs> | null
  /**
   * Omit specific fields from the account_memo
   */
  omit?: Prisma.account_memoOmit<ExtArgs> | null
  /**
   * Filter, which account_memos to fetch.
   */
  where?: Prisma.account_memoWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of account_memos to fetch.
   */
  orderBy?: Prisma.account_memoOrderByWithRelationInput | Prisma.account_memoOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for listing account_memos.
   */
  cursor?: Prisma.account_memoWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` account_memos 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` account_memos.
   */
  skip?: number
  distinct?: Prisma.Account_memoScalarFieldEnum | Prisma.Account_memoScalarFieldEnum[]
}

/**
 * account_memo create
 */
export type account_memoCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the account_memo
   */
  select?: Prisma.account_memoSelect<ExtArgs> | null
  /**
   * Omit specific fields from the account_memo
   */
  omit?: Prisma.account_memoOmit<ExtArgs> | null
  /**
   * The data needed to create a account_memo.
   */
  data?: Prisma.XOR<Prisma.account_memoCreateInput, Prisma.account_memoUncheckedCreateInput>
}

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

/**
 * account_memo update
 */
export type account_memoUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the account_memo
   */
  select?: Prisma.account_memoSelect<ExtArgs> | null
  /**
   * Omit specific fields from the account_memo
   */
  omit?: Prisma.account_memoOmit<ExtArgs> | null
  /**
   * The data needed to update a account_memo.
   */
  data: Prisma.XOR<Prisma.account_memoUpdateInput, Prisma.account_memoUncheckedUpdateInput>
  /**
   * Choose, which account_memo to update.
   */
  where: Prisma.account_memoWhereUniqueInput
}

/**
 * account_memo updateMany
 */
export type account_memoUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update account_memos.
   */
  data: Prisma.XOR<Prisma.account_memoUpdateManyMutationInput, Prisma.account_memoUncheckedUpdateManyInput>
  /**
   * Filter which account_memos to update
   */
  where?: Prisma.account_memoWhereInput
  /**
   * Limit how many account_memos to update.
   */
  limit?: number
}

/**
 * account_memo upsert
 */
export type account_memoUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the account_memo
   */
  select?: Prisma.account_memoSelect<ExtArgs> | null
  /**
   * Omit specific fields from the account_memo
   */
  omit?: Prisma.account_memoOmit<ExtArgs> | null
  /**
   * The filter to search for the account_memo to update in case it exists.
   */
  where: Prisma.account_memoWhereUniqueInput
  /**
   * In case the account_memo found by the `where` argument doesn't exist, create a new account_memo with this data.
   */
  create: Prisma.XOR<Prisma.account_memoCreateInput, Prisma.account_memoUncheckedCreateInput>
  /**
   * In case the account_memo was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.account_memoUpdateInput, Prisma.account_memoUncheckedUpdateInput>
}

/**
 * account_memo delete
 */
export type account_memoDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the account_memo
   */
  select?: Prisma.account_memoSelect<ExtArgs> | null
  /**
   * Omit specific fields from the account_memo
   */
  omit?: Prisma.account_memoOmit<ExtArgs> | null
  /**
   * Filter which account_memo to delete.
   */
  where: Prisma.account_memoWhereUniqueInput
}

/**
 * account_memo deleteMany
 */
export type account_memoDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which account_memos to delete
   */
  where?: Prisma.account_memoWhereInput
  /**
   * Limit how many account_memos to delete.
   */
  limit?: number
}

/**
 * account_memo without action
 */
export type account_memoDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the account_memo
   */
  select?: Prisma.account_memoSelect<ExtArgs> | null
  /**
   * Omit specific fields from the account_memo
   */
  omit?: Prisma.account_memoOmit<ExtArgs> | null
}
