
/* !!! 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_template` 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_template
 * 
 */
export type account_memo_templateModel = runtime.Types.Result.DefaultSelection<Prisma.$account_memo_templatePayload>

export type AggregateAccount_memo_template = {
  _count: Account_memo_templateCountAggregateOutputType | null
  _avg: Account_memo_templateAvgAggregateOutputType | null
  _sum: Account_memo_templateSumAggregateOutputType | null
  _min: Account_memo_templateMinAggregateOutputType | null
  _max: Account_memo_templateMaxAggregateOutputType | null
}

export type Account_memo_templateAvgAggregateOutputType = {
  id: number | null
}

export type Account_memo_templateSumAggregateOutputType = {
  id: number | null
}

export type Account_memo_templateMinAggregateOutputType = {
  id: number | null
  name: string | null
  color: string | null
  bcolor: string | null
  border: string | null
}

export type Account_memo_templateMaxAggregateOutputType = {
  id: number | null
  name: string | null
  color: string | null
  bcolor: string | null
  border: string | null
}

export type Account_memo_templateCountAggregateOutputType = {
  id: number
  name: number
  color: number
  bcolor: number
  border: number
  _all: number
}


export type Account_memo_templateAvgAggregateInputType = {
  id?: true
}

export type Account_memo_templateSumAggregateInputType = {
  id?: true
}

export type Account_memo_templateMinAggregateInputType = {
  id?: true
  name?: true
  color?: true
  bcolor?: true
  border?: true
}

export type Account_memo_templateMaxAggregateInputType = {
  id?: true
  name?: true
  color?: true
  bcolor?: true
  border?: true
}

export type Account_memo_templateCountAggregateInputType = {
  id?: true
  name?: true
  color?: true
  bcolor?: true
  border?: true
  _all?: true
}

export type Account_memo_templateAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which account_memo_template to aggregate.
   */
  where?: Prisma.account_memo_templateWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of account_memo_templates to fetch.
   */
  orderBy?: Prisma.account_memo_templateOrderByWithRelationInput | Prisma.account_memo_templateOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.account_memo_templateWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` account_memo_templates 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_memo_templates.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned account_memo_templates
  **/
  _count?: true | Account_memo_templateCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to average
  **/
  _avg?: Account_memo_templateAvgAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to sum
  **/
  _sum?: Account_memo_templateSumAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: Account_memo_templateMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: Account_memo_templateMaxAggregateInputType
}

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




export type account_memo_templateGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.account_memo_templateWhereInput
  orderBy?: Prisma.account_memo_templateOrderByWithAggregationInput | Prisma.account_memo_templateOrderByWithAggregationInput[]
  by: Prisma.Account_memo_templateScalarFieldEnum[] | Prisma.Account_memo_templateScalarFieldEnum
  having?: Prisma.account_memo_templateScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: Account_memo_templateCountAggregateInputType | true
  _avg?: Account_memo_templateAvgAggregateInputType
  _sum?: Account_memo_templateSumAggregateInputType
  _min?: Account_memo_templateMinAggregateInputType
  _max?: Account_memo_templateMaxAggregateInputType
}

export type Account_memo_templateGroupByOutputType = {
  id: number
  name: string
  color: string
  bcolor: string
  border: string
  _count: Account_memo_templateCountAggregateOutputType | null
  _avg: Account_memo_templateAvgAggregateOutputType | null
  _sum: Account_memo_templateSumAggregateOutputType | null
  _min: Account_memo_templateMinAggregateOutputType | null
  _max: Account_memo_templateMaxAggregateOutputType | null
}

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



export type account_memo_templateWhereInput = {
  AND?: Prisma.account_memo_templateWhereInput | Prisma.account_memo_templateWhereInput[]
  OR?: Prisma.account_memo_templateWhereInput[]
  NOT?: Prisma.account_memo_templateWhereInput | Prisma.account_memo_templateWhereInput[]
  id?: Prisma.IntFilter<"account_memo_template"> | number
  name?: Prisma.StringFilter<"account_memo_template"> | string
  color?: Prisma.StringFilter<"account_memo_template"> | string
  bcolor?: Prisma.StringFilter<"account_memo_template"> | string
  border?: Prisma.StringFilter<"account_memo_template"> | string
}

export type account_memo_templateOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  color?: Prisma.SortOrder
  bcolor?: Prisma.SortOrder
  border?: Prisma.SortOrder
  _relevance?: Prisma.account_memo_templateOrderByRelevanceInput
}

export type account_memo_templateWhereUniqueInput = Prisma.AtLeast<{
  id?: number
  AND?: Prisma.account_memo_templateWhereInput | Prisma.account_memo_templateWhereInput[]
  OR?: Prisma.account_memo_templateWhereInput[]
  NOT?: Prisma.account_memo_templateWhereInput | Prisma.account_memo_templateWhereInput[]
  name?: Prisma.StringFilter<"account_memo_template"> | string
  color?: Prisma.StringFilter<"account_memo_template"> | string
  bcolor?: Prisma.StringFilter<"account_memo_template"> | string
  border?: Prisma.StringFilter<"account_memo_template"> | string
}, "id">

export type account_memo_templateOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  color?: Prisma.SortOrder
  bcolor?: Prisma.SortOrder
  border?: Prisma.SortOrder
  _count?: Prisma.account_memo_templateCountOrderByAggregateInput
  _avg?: Prisma.account_memo_templateAvgOrderByAggregateInput
  _max?: Prisma.account_memo_templateMaxOrderByAggregateInput
  _min?: Prisma.account_memo_templateMinOrderByAggregateInput
  _sum?: Prisma.account_memo_templateSumOrderByAggregateInput
}

export type account_memo_templateScalarWhereWithAggregatesInput = {
  AND?: Prisma.account_memo_templateScalarWhereWithAggregatesInput | Prisma.account_memo_templateScalarWhereWithAggregatesInput[]
  OR?: Prisma.account_memo_templateScalarWhereWithAggregatesInput[]
  NOT?: Prisma.account_memo_templateScalarWhereWithAggregatesInput | Prisma.account_memo_templateScalarWhereWithAggregatesInput[]
  id?: Prisma.IntWithAggregatesFilter<"account_memo_template"> | number
  name?: Prisma.StringWithAggregatesFilter<"account_memo_template"> | string
  color?: Prisma.StringWithAggregatesFilter<"account_memo_template"> | string
  bcolor?: Prisma.StringWithAggregatesFilter<"account_memo_template"> | string
  border?: Prisma.StringWithAggregatesFilter<"account_memo_template"> | string
}

export type account_memo_templateCreateInput = {
  name: string
  color: string
  bcolor: string
  border?: string
}

export type account_memo_templateUncheckedCreateInput = {
  id?: number
  name: string
  color: string
  bcolor: string
  border?: string
}

export type account_memo_templateUpdateInput = {
  name?: Prisma.StringFieldUpdateOperationsInput | string
  color?: Prisma.StringFieldUpdateOperationsInput | string
  bcolor?: Prisma.StringFieldUpdateOperationsInput | string
  border?: Prisma.StringFieldUpdateOperationsInput | string
}

export type account_memo_templateUncheckedUpdateInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  name?: Prisma.StringFieldUpdateOperationsInput | string
  color?: Prisma.StringFieldUpdateOperationsInput | string
  bcolor?: Prisma.StringFieldUpdateOperationsInput | string
  border?: Prisma.StringFieldUpdateOperationsInput | string
}

export type account_memo_templateCreateManyInput = {
  id?: number
  name: string
  color: string
  bcolor: string
  border?: string
}

export type account_memo_templateUpdateManyMutationInput = {
  name?: Prisma.StringFieldUpdateOperationsInput | string
  color?: Prisma.StringFieldUpdateOperationsInput | string
  bcolor?: Prisma.StringFieldUpdateOperationsInput | string
  border?: Prisma.StringFieldUpdateOperationsInput | string
}

export type account_memo_templateUncheckedUpdateManyInput = {
  id?: Prisma.IntFieldUpdateOperationsInput | number
  name?: Prisma.StringFieldUpdateOperationsInput | string
  color?: Prisma.StringFieldUpdateOperationsInput | string
  bcolor?: Prisma.StringFieldUpdateOperationsInput | string
  border?: Prisma.StringFieldUpdateOperationsInput | string
}

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

export type account_memo_templateCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  color?: Prisma.SortOrder
  bcolor?: Prisma.SortOrder
  border?: Prisma.SortOrder
}

export type account_memo_templateAvgOrderByAggregateInput = {
  id?: Prisma.SortOrder
}

export type account_memo_templateMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  color?: Prisma.SortOrder
  bcolor?: Prisma.SortOrder
  border?: Prisma.SortOrder
}

export type account_memo_templateMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  color?: Prisma.SortOrder
  bcolor?: Prisma.SortOrder
  border?: Prisma.SortOrder
}

export type account_memo_templateSumOrderByAggregateInput = {
  id?: Prisma.SortOrder
}



export type account_memo_templateSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  name?: boolean
  color?: boolean
  bcolor?: boolean
  border?: boolean
}, ExtArgs["result"]["account_memo_template"]>



export type account_memo_templateSelectScalar = {
  id?: boolean
  name?: boolean
  color?: boolean
  bcolor?: boolean
  border?: boolean
}

export type account_memo_templateOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "color" | "bcolor" | "border", ExtArgs["result"]["account_memo_template"]>

export type $account_memo_templatePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "account_memo_template"
  objects: {}
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: number
    name: string
    color: string
    bcolor: string
    border: string
  }, ExtArgs["result"]["account_memo_template"]>
  composites: {}
}

export type account_memo_templateGetPayload<S extends boolean | null | undefined | account_memo_templateDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$account_memo_templatePayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for account_memo_template.
 * 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_memo_templateClient<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_template model
 */
export interface account_memo_templateFieldRefs {
  readonly id: Prisma.FieldRef<"account_memo_template", 'Int'>
  readonly name: Prisma.FieldRef<"account_memo_template", 'String'>
  readonly color: Prisma.FieldRef<"account_memo_template", 'String'>
  readonly bcolor: Prisma.FieldRef<"account_memo_template", 'String'>
  readonly border: Prisma.FieldRef<"account_memo_template", 'String'>
}
    

// Custom InputTypes
/**
 * account_memo_template findUnique
 */
export type account_memo_templateFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the account_memo_template
   */
  select?: Prisma.account_memo_templateSelect<ExtArgs> | null
  /**
   * Omit specific fields from the account_memo_template
   */
  omit?: Prisma.account_memo_templateOmit<ExtArgs> | null
  /**
   * Filter, which account_memo_template to fetch.
   */
  where: Prisma.account_memo_templateWhereUniqueInput
}

/**
 * account_memo_template findUniqueOrThrow
 */
export type account_memo_templateFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the account_memo_template
   */
  select?: Prisma.account_memo_templateSelect<ExtArgs> | null
  /**
   * Omit specific fields from the account_memo_template
   */
  omit?: Prisma.account_memo_templateOmit<ExtArgs> | null
  /**
   * Filter, which account_memo_template to fetch.
   */
  where: Prisma.account_memo_templateWhereUniqueInput
}

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

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

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

/**
 * account_memo_template create
 */
export type account_memo_templateCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the account_memo_template
   */
  select?: Prisma.account_memo_templateSelect<ExtArgs> | null
  /**
   * Omit specific fields from the account_memo_template
   */
  omit?: Prisma.account_memo_templateOmit<ExtArgs> | null
  /**
   * The data needed to create a account_memo_template.
   */
  data: Prisma.XOR<Prisma.account_memo_templateCreateInput, Prisma.account_memo_templateUncheckedCreateInput>
}

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

/**
 * account_memo_template update
 */
export type account_memo_templateUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the account_memo_template
   */
  select?: Prisma.account_memo_templateSelect<ExtArgs> | null
  /**
   * Omit specific fields from the account_memo_template
   */
  omit?: Prisma.account_memo_templateOmit<ExtArgs> | null
  /**
   * The data needed to update a account_memo_template.
   */
  data: Prisma.XOR<Prisma.account_memo_templateUpdateInput, Prisma.account_memo_templateUncheckedUpdateInput>
  /**
   * Choose, which account_memo_template to update.
   */
  where: Prisma.account_memo_templateWhereUniqueInput
}

/**
 * account_memo_template updateMany
 */
export type account_memo_templateUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update account_memo_templates.
   */
  data: Prisma.XOR<Prisma.account_memo_templateUpdateManyMutationInput, Prisma.account_memo_templateUncheckedUpdateManyInput>
  /**
   * Filter which account_memo_templates to update
   */
  where?: Prisma.account_memo_templateWhereInput
  /**
   * Limit how many account_memo_templates to update.
   */
  limit?: number
}

/**
 * account_memo_template upsert
 */
export type account_memo_templateUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the account_memo_template
   */
  select?: Prisma.account_memo_templateSelect<ExtArgs> | null
  /**
   * Omit specific fields from the account_memo_template
   */
  omit?: Prisma.account_memo_templateOmit<ExtArgs> | null
  /**
   * The filter to search for the account_memo_template to update in case it exists.
   */
  where: Prisma.account_memo_templateWhereUniqueInput
  /**
   * In case the account_memo_template found by the `where` argument doesn't exist, create a new account_memo_template with this data.
   */
  create: Prisma.XOR<Prisma.account_memo_templateCreateInput, Prisma.account_memo_templateUncheckedCreateInput>
  /**
   * In case the account_memo_template was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.account_memo_templateUpdateInput, Prisma.account_memo_templateUncheckedUpdateInput>
}

/**
 * account_memo_template delete
 */
export type account_memo_templateDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the account_memo_template
   */
  select?: Prisma.account_memo_templateSelect<ExtArgs> | null
  /**
   * Omit specific fields from the account_memo_template
   */
  omit?: Prisma.account_memo_templateOmit<ExtArgs> | null
  /**
   * Filter which account_memo_template to delete.
   */
  where: Prisma.account_memo_templateWhereUniqueInput
}

/**
 * account_memo_template deleteMany
 */
export type account_memo_templateDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which account_memo_templates to delete
   */
  where?: Prisma.account_memo_templateWhereInput
  /**
   * Limit how many account_memo_templates to delete.
   */
  limit?: number
}

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