- 数据: Habit/CheckIn/CheckList/CheckListItem/CheckListTemplate + 迁移 + 重新生成 client
- 后端: server/checkin/period.js 周期计算(日/周/月/年, 周一起始, Asia/Shanghai)
/api/checkin/* 打卡项CRUD/打卡/撤销/补打/某日详情/月历
/api/checklists/* 清单与检查项CRUD/勾选/全选/复制/模板(系统预置出差·回老家)
- 前端: 底部新增「打卡」Tab -> /checkin, 页内三视图
环形进度 RingProgress + 完成特效(粒子/光晕/触感, 可关闭)
打卡视图: 待办列表/乐观更新/撤销/新建编辑
日历视图: 月历网格 + 今天·昨天·明天 + 日期标记/完成率
清单视图: 场景清单/勾选进度条/模板生成/另存模板/归档
- 文档: docs/V0.2/需求文档.md 补充实现约定(附录B)与接口清单
159 lines
3.5 KiB
TypeScript
159 lines
3.5 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 Strategy
|
|
*
|
|
*/
|
|
export type Strategy = Prisma.StrategyModel
|
|
/**
|
|
* Model Indicator
|
|
*
|
|
*/
|
|
export type Indicator = Prisma.IndicatorModel
|
|
/**
|
|
* Model IndicatorPoint
|
|
*
|
|
*/
|
|
export type IndicatorPoint = Prisma.IndicatorPointModel
|
|
/**
|
|
* 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 OilPriceHistory
|
|
*
|
|
*/
|
|
export type OilPriceHistory = Prisma.OilPriceHistoryModel
|
|
/**
|
|
* 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
|