Skip to content
Source
Sign inSign up
TanStack/router
Open History to see the last commit

client.ts

51 lines1.6 KB

1/* !!! This is code generated by Prisma. Do not edit directly. !!! */
2/* eslint-disable */
3// biome-ignore-all lint: generated file
4// @ts-nocheck
5/*
6 * This file should be your main import to use Prisma. Through it you get access to all the models, enums, and input types.
7 * If you're looking for something you can import in the client-side of your application, please refer to the `browser.ts` file instead.
8 *
9 * 🟒 You can import this file directly.
10 */
11​
12import * as process from 'node:process'
13import * as path from 'node:path'
14import { fileURLToPath } from 'node:url'
15globalThis['__dirname'] = path.dirname(fileURLToPath(import.meta.url))
16​
17import * as runtime from '@prisma/client/runtime/client'
18import * as $Enums from './enums'
19import * as $Class from './internal/class'
20import * as Prisma from './internal/prismaNamespace'
21​
22export * as $Enums from './enums'
23export * from './enums'
24/**
25 * ## Prisma Client
26 *
27 * Type-safe database client for TypeScript
28 * @example
29 * ```
30 * const prisma = new PrismaClient()
31 * // Fetch zero or more Users
32 * const users = await prisma.user.findMany()
33 * ```
34 *
35 * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client).
36 */
37export const PrismaClient = $Class.getPrismaClientClass()
38export type PrismaClient<
39 LogOpts extends Prisma.LogLevel = never,
40 OmitOpts extends Prisma.PrismaClientOptions['omit'] =
41 Prisma.PrismaClientOptions['omit'],
42 ExtArgs extends runtime.Types.Extensions.InternalArgs =
43 runtime.Types.Extensions.DefaultArgs,
44> = $Class.PrismaClient<LogOpts, OmitOpts, ExtArgs>
45export { Prisma }
46​
47/**
48 * Model User
49 *
50 */
51export type User = Prisma.UserModel