Docker Build and Push / build-image (push) Successful in 4m34s
- 新增 /api/mcp (Streamable HTTP) 与 41 个工具: 项目/看板列/任务/清单/打卡; - 新增 McpToken 模型与迁移, DB 仅存 SHA-256 哈希, token 绑定用户; - 新增 /api/mcp-tokens 增删改查, 支持独立命名 (如 R1); - 「我的」页新增 AI 接入 (MCP) 区块: 地址复制/新建/一次性展示/删除; - 补充 docs/MCP.md 与样式
174 lines
3.6 KiB
TypeScript
174 lines
3.6 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({
|
|
* adapter: new PrismaPg({ connectionString: process.env.DATABASE_URL })
|
|
* })
|
|
* // Fetch zero or more Users
|
|
* const users = await prisma.user.findMany()
|
|
* ```
|
|
*
|
|
* Read more in our [docs](https://pris.ly/d/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 User
|
|
*
|
|
*/
|
|
export type User = Prisma.UserModel
|
|
/**
|
|
* Model Article
|
|
*
|
|
*/
|
|
export type Article = Prisma.ArticleModel
|
|
/**
|
|
* Model News
|
|
*
|
|
*/
|
|
export type News = Prisma.NewsModel
|
|
/**
|
|
* Model Alert
|
|
*
|
|
*/
|
|
export type Alert = Prisma.AlertModel
|
|
/**
|
|
* Model ServerNode
|
|
*
|
|
*/
|
|
export type ServerNode = Prisma.ServerNodeModel
|
|
/**
|
|
* Model ServerNodeHistory
|
|
*
|
|
*/
|
|
export type ServerNodeHistory = Prisma.ServerNodeHistoryModel
|
|
/**
|
|
* Model ServiceCheck
|
|
*
|
|
*/
|
|
export type ServiceCheck = Prisma.ServiceCheckModel
|
|
/**
|
|
* Model Econ_SowInventory
|
|
*
|
|
*/
|
|
export type Econ_SowInventory = Prisma.Econ_SowInventoryModel
|
|
/**
|
|
* Model ScraperCache
|
|
*
|
|
*/
|
|
export type ScraperCache = Prisma.ScraperCacheModel
|
|
/**
|
|
* Model MihomeAccount
|
|
*
|
|
*/
|
|
export type MihomeAccount = Prisma.MihomeAccountModel
|
|
/**
|
|
* Model MihomeHome
|
|
*
|
|
*/
|
|
export type MihomeHome = Prisma.MihomeHomeModel
|
|
/**
|
|
* Model MihomeDevice
|
|
*
|
|
*/
|
|
export type MihomeDevice = Prisma.MihomeDeviceModel
|
|
/**
|
|
* Model MihomeEnvSample
|
|
*
|
|
*/
|
|
export type MihomeEnvSample = Prisma.MihomeEnvSampleModel
|
|
/**
|
|
* Model MihomeEnvHour
|
|
*
|
|
*/
|
|
export type MihomeEnvHour = Prisma.MihomeEnvHourModel
|
|
/**
|
|
* Model Habit
|
|
*
|
|
*/
|
|
export type Habit = Prisma.HabitModel
|
|
/**
|
|
* Model CheckIn
|
|
*
|
|
*/
|
|
export type CheckIn = Prisma.CheckInModel
|
|
/**
|
|
* Model CheckList
|
|
*
|
|
*/
|
|
export type CheckList = Prisma.CheckListModel
|
|
/**
|
|
* Model CheckListItem
|
|
*
|
|
*/
|
|
export type CheckListItem = Prisma.CheckListItemModel
|
|
/**
|
|
* Model CheckListTemplate
|
|
*
|
|
*/
|
|
export type CheckListTemplate = Prisma.CheckListTemplateModel
|
|
/**
|
|
* Model Project
|
|
*
|
|
*/
|
|
export type Project = Prisma.ProjectModel
|
|
/**
|
|
* Model ProjectMember
|
|
*
|
|
*/
|
|
export type ProjectMember = Prisma.ProjectMemberModel
|
|
/**
|
|
* Model BoardColumn
|
|
*
|
|
*/
|
|
export type BoardColumn = Prisma.BoardColumnModel
|
|
/**
|
|
* Model Task
|
|
*
|
|
*/
|
|
export type Task = Prisma.TaskModel
|
|
/**
|
|
* Model TaskMember
|
|
*
|
|
*/
|
|
export type TaskMember = Prisma.TaskMemberModel
|
|
/**
|
|
* Model TaskTag
|
|
*
|
|
*/
|
|
export type TaskTag = Prisma.TaskTagModel
|
|
/**
|
|
* Model McpToken
|
|
*
|
|
*/
|
|
export type McpToken = Prisma.McpTokenModel
|