- 所有控制器中从libs/prisma.ts导入prisma替代旧的libs/db.ts - 规范了step模块中zod验证架构的格式与换行 - 生成Prisma客户端及类型定义文件,包含browser、client、commonInputTypes、enums和内部类文件 - 优化listStepsQuerySchema默认参数与链式调用格式 - 保持代码风格一致,提升可维护性和类型安全性
67 lines
1.9 KiB
TypeScript
67 lines
1.9 KiB
TypeScript
|
|
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
/* eslint-disable */
|
|
// biome-ignore-all lint: generated file
|
|
// @ts-nocheck
|
|
/*
|
|
* This file should be your main import to use Prisma. Through it you get access to all the models, enums, and input types.
|
|
* If you're looking for something you can import in the client-side of your application, please refer to the `browser.ts` file instead.
|
|
*
|
|
* 🟢 You can import this file directly.
|
|
*/
|
|
|
|
import * as process from 'node:process'
|
|
import * as path from 'node:path'
|
|
import { fileURLToPath } from 'node:url'
|
|
globalThis['__dirname'] = path.dirname(fileURLToPath(import.meta.url))
|
|
|
|
import * as runtime from "@prisma/client/runtime/client"
|
|
import * as $Enums from "./enums.ts"
|
|
import * as $Class from "./internal/class.ts"
|
|
import * as Prisma from "./internal/prismaNamespace.ts"
|
|
|
|
export * as $Enums from './enums.ts'
|
|
export * from "./enums.ts"
|
|
/**
|
|
* ## Prisma Client
|
|
*
|
|
* Type-safe database client for TypeScript
|
|
* @example
|
|
* ```
|
|
* const prisma = new PrismaClient()
|
|
* // Fetch zero or more Projects
|
|
* const projects = await prisma.project.findMany()
|
|
* ```
|
|
*
|
|
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client).
|
|
*/
|
|
export const PrismaClient = $Class.getPrismaClientClass()
|
|
export type PrismaClient<LogOpts extends Prisma.LogLevel = never, OmitOpts extends Prisma.PrismaClientOptions["omit"] = Prisma.PrismaClientOptions["omit"], ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = $Class.PrismaClient<LogOpts, OmitOpts, ExtArgs>
|
|
export { Prisma }
|
|
|
|
/**
|
|
* Model Project
|
|
*
|
|
*/
|
|
export type Project = Prisma.ProjectModel
|
|
/**
|
|
* Model User
|
|
*
|
|
*/
|
|
export type User = Prisma.UserModel
|
|
/**
|
|
* Model Pipeline
|
|
*
|
|
*/
|
|
export type Pipeline = Prisma.PipelineModel
|
|
/**
|
|
* Model Step
|
|
*
|
|
*/
|
|
export type Step = Prisma.StepModel
|
|
/**
|
|
* Model Deployment
|
|
*
|
|
*/
|
|
export type Deployment = Prisma.DeploymentModel
|