//! Do not edit this file manually, it is generate by `prisma repo generator` import { PrismaClient, Prisma, {{ #prismaStructures }} {{ this }}, {{ /prismaStructures }} } from '@prisma/client'; import _ from 'lodash'; // eslint-disable-next-line @typescript-eslint/no-explicit-any export type AnyRecord = Record; export type BaseOption = { include?: Include; select?: Select; }; export type Find = BaseOption & { cursor?: Cursor; take?: number; skip?: number; orderBy?: Prisma.Enumerable; distinct?: Distinct; }; export type CountArgs = Omit< Find, 'include' >; export type Aggregate = Omit< CountArgs, 'select' | 'distinct' >; export const prisma = new PrismaClient({ log: {{ log }}, }); export const models = _.omit(prisma, [ '$on', '$connect', '$disconnect', '$use', '$executeRaw', '$executeRawUnsafe', '$queryRaw', '$queryRawUnsafe', '$transaction', ]); export const MODELS_NAME = { {{ #modelsName }} {{ key }}: {{ value }}, {{ /modelsName }} } as const; // eslint-disable-next-line @typescript-eslint/ban-types export type ModelStructure = { {{ #modelStructure }} {{ key }}: {{ value }}; {{ /modelStructure}} }; export type ModelName = keyof ModelStructure; export type ModelScalarFields = Prisma.Enumerable< keyof ModelStructure[T] >; export type ModelDelegate = Prisma.RejectOnNotFound | Prisma.RejectPerOperation | undefined; export type ModelTypes = { {{ #modelTypes }} {{ key }}: { Where: {{ value.WhereInput }}; Select: {{ value.Select }}; Include: {{ value.Include }}; Create: {{ value.CreateInput }}; Update: {{ value.UpdateInput }}; Cursor: {{ value.WhereUniqueInput }}; Order: {{ value.OrderByWithRelationInput }}; Delegate: {{ value.Delegate }}; GroupBy: {{ value.GroupByOutputType }}; }, {{ /modelTypes }} };