- 数据: 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)与接口清单
135 lines
2.5 KiB
TypeScript
135 lines
2.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-related types and utilities in a browser.
|
|
* Use it to get access to models, enums, and input types.
|
|
*
|
|
* This file does not contain a `PrismaClient` class, nor several other helpers that are intended as server-side only.
|
|
* See `client.ts` for the standard, server-side entry point.
|
|
*
|
|
* 🟢 You can import this file directly.
|
|
*/
|
|
|
|
import * as Prisma from './internal/prismaNamespaceBrowser.ts'
|
|
export { Prisma }
|
|
export * as $Enums from './enums.ts'
|
|
export * from './enums.ts';
|
|
/**
|
|
* 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
|