feat(0.2.1): M1 数据库迁移 PostgreSQL —— schema 切 pg, 任务域六表加 uuid, 项目 code/任务 number, db.js 切 adapter-pg, 重建 PG 基线迁移; 附实施方案文档
This commit is contained in:
@@ -0,0 +1,94 @@
|
|||||||
|
# 0.2.1 实施方案:PostgreSQL 迁移 + 任务模块离线编辑 (PowerSync)
|
||||||
|
|
||||||
|
| 项 | 内容 |
|
||||||
|
| --- | --- |
|
||||||
|
| 分支 | `dev-0.2.1`(worktree `iboard-dev-0.2.1`,独立临时分支,与 master / dev-0.2 隔离) |
|
||||||
|
| 日期 | 2026-10-25 |
|
||||||
|
| 依据 | [PowerSync可行性研究报告](./PowerSync可行性研究报告.md),按其 5.2.2 路线执行 |
|
||||||
|
| 目标 | 在现网应用与数据不受影响的前提下,验证任务模块离线编辑 + 联网后自动双向同步;数据库由 MariaDB 迁移至 PostgreSQL |
|
||||||
|
|
||||||
|
## 1. 已确认决策(2026-10-25 与需求方对齐)
|
||||||
|
|
||||||
|
| 决策点 | 结论 |
|
||||||
|
| --- | --- |
|
||||||
|
| 技术路线 | PowerSync 全链路(自部署 powersync-service) |
|
||||||
|
| 离线范围 | 仅任务模块(Project / ProjectMember / BoardColumn / Task / TaskMember / TaskTag);打卡、清单本阶段不纳入;新闻/指标/监控等时序域仅做普通缓存 |
|
||||||
|
| 客户端 | 先 Web / Windows 外壳(WebView2)跑通全链路;Android 真机后续验证 |
|
||||||
|
| 编号 | 项目短前缀由用户自拟(2~8 位,全局唯一);任务号 = 项目内自增整数,展示 `前缀-序号`;编号由服务端统一分配,离线创建的任务在同步定号前显示临时标识 |
|
||||||
|
| 初始数据 | 从现网 MariaDB 只读快照导出并转换导入新 PG;0.2.1 期间产生的新数据不回写现网 |
|
||||||
|
| 端口 | Web/API 13001、PowerSync WebSocket 13002、PG 仅容器内网(调试绑 127.0.0.1:15432) |
|
||||||
|
| 部署 | 源码上传 baihu `/app/iboard-0.2.1`,服务器上 `docker compose build`;不使用原 CI/CD |
|
||||||
|
| 现网保护 | `/app/iboard`、宿主 3306 MySQL、3001 端口、原 CI/CD 一律不使用(快照导出仅 SELECT) |
|
||||||
|
| 磁盘 | 允许在 baihu 执行 docker 悬空镜像/构建缓存的安全清理(磁盘仅剩 9.9G) |
|
||||||
|
|
||||||
|
## 2. 目标架构
|
||||||
|
|
||||||
|
```
|
||||||
|
[Web / Tauri WebView2]
|
||||||
|
React + @powersync/react
|
||||||
|
本地 WASM SQLite (OPFS 持久化)
|
||||||
|
│ 离线: 直接读写本地库; 写操作进入 upload queue
|
||||||
|
│ 联网: 批量 POST 上行到 Express API (按 uuid 幂等 upsert)
|
||||||
|
▼
|
||||||
|
[iboard-0.2.1 Express :13001] ── Prisma (adapter-pg) ──┐
|
||||||
|
+ /api/powersync/token (为登录用户签发同步 JWT) ▼
|
||||||
|
[PostgreSQL 容器] (wal_level=logical)
|
||||||
|
▲ 逻辑复制 (publication + replication slot)
|
||||||
|
[powersync-service :13002] ── Sync Rules: 任务域 6 表 + User 只读引用, 按 ProjectMember 过滤
|
||||||
|
```
|
||||||
|
|
||||||
|
- 写路径:客户端本地写 → upload queue → 上行 API → Prisma 写 PG → 逻辑复制捕获 → 广播各端;
|
||||||
|
- 读路径:任务模块页面全部改读本地 SQLite(@powersync/react 响应式查询),其余页面维持 axios REST;
|
||||||
|
- 认证:复用现有 jsonwebtoken 体系,新增 `/api/powersync/token` 签发 PowerSync 校验的 JWT。
|
||||||
|
|
||||||
|
## 3. 数据模型改造(原则:只增不改)
|
||||||
|
|
||||||
|
采用报告 3.2 中的「新增 uuid 列 + 应用层幂等 upsert」选项,不做全表主键 UUID 化:外键关系全部保留,存量数据迁移风险最小。
|
||||||
|
|
||||||
|
- 任务域 6 表各加 `uuid varchar(36) unique`(客户端创建时生成;存量行导入时回填);
|
||||||
|
- `Project` 加 `code varchar(8) unique`(用户自拟短前缀;存量项目导入时回填自动码,后续可改);
|
||||||
|
- `Task` 加 `number int`,`@@unique([projectId, number])`(服务端按项目 max+1 分配;离线创建的任务上行时定号,本地未定号行显示临时标识);
|
||||||
|
- 主键仍为自增 Int,业务外键不动;客户端上行一律以 uuid 引用父子行,服务端解析为内部 id;
|
||||||
|
- Prisma datasource: `mysql` → `postgresql`;本分支重建基线迁移(旧 MySQL 迁移文件移除,历史保留在 git)。
|
||||||
|
|
||||||
|
## 4. 同步与冲突
|
||||||
|
|
||||||
|
- Sync Rules 仅下发任务域 6 表 + `User`(展示名称/头像用),按 `ProjectMember.userId = auth.parameters.userId` 过滤项目可见性;时序/监控/米家等表不纳入;
|
||||||
|
- 上行:`POST /api/powersync/upload` 批处理客户端 CRUD 操作,按 uuid 幂等 upsert,更新时以服务端时间戳做 LWW 仲裁;
|
||||||
|
- 冲突:字段级 LWW 为主;`BoardColumn.sortOrder` / `Task.sortOrder` 由服务端重排仲裁;并发唯一冲突(项目前缀、看板列名)返回明确错误,客户端提示重试;
|
||||||
|
- `Task.number` / `Project.code` 由服务端唯一分配,多端并发下天然无冲突。
|
||||||
|
|
||||||
|
## 5. 部署拓扑(baihu `/app/iboard-0.2.1`)
|
||||||
|
|
||||||
|
docker compose 三服务:
|
||||||
|
|
||||||
|
| 服务 | 镜像 | 端口 | 说明 |
|
||||||
|
| --- | --- | --- | --- |
|
||||||
|
| `pg-021` | postgres:16-alpine | 仅容器内网 | `wal_level=logical`;数据卷 `./data/pg` |
|
||||||
|
| `powersync-021` | powersync 官方镜像 | 13002 对外 | 连接 PG 逻辑复制 + WebSocket 下发 |
|
||||||
|
| `app-021` | 本仓库 Dockerfile 构建 | 13001 对外 | `OTA_PUBLIC_BASE=http://bh.vps.honor3:13001` |
|
||||||
|
|
||||||
|
- 环境变量由 compose 注入:`DATABASE_URL`(指向 pg-021)、`JWT_SECRET`(0.2.1 独立新设)、`PORT=13001`;
|
||||||
|
- 0.2.1 容器内 cron/米家调度预计无凭证或产生重复外呼,部署时以环境开关关闭(实现于 M4)。
|
||||||
|
|
||||||
|
## 6. 数据迁移(一次性)
|
||||||
|
|
||||||
|
1. 在 baihu 上用仓库自带 `mariadb` 驱动以只读 SQL 从宿主 MySQL(3306) 导出全表 JSON(仅 SELECT);
|
||||||
|
2. 转换:回填 uuid / `Project.code`(按名称自动生成,可后改)/ `Task.number`(按项目内 createdAt 顺序);时间字段转 PG 时间戳;
|
||||||
|
3. PG 侧先 `prisma migrate deploy` 建基线表,再执行 ETL 写入;
|
||||||
|
4. 校验:逐表行数比对 + 抽样字段比对,输出核对报告。
|
||||||
|
|
||||||
|
## 7. 里程碑
|
||||||
|
|
||||||
|
1. **M1** schema/适配层切 PG(本提交):schema 字段、db.js 适配器、基线迁移重建、本地 `prisma generate` 通过;
|
||||||
|
2. **M2** 服务端:powersync token 端点、upload 幂等上行端点、任务域路由幂等化与编号分配逻辑;
|
||||||
|
3. **M3** 前端:任务模块数据层切 PowerSync(本地库 + useQuery + 上传队列),桌面端联调;
|
||||||
|
4. **M4** compose 编排 + ETL 导数 + baihu 部署,端口/现网隔离验证;
|
||||||
|
5. **M5** 离线-联网闭环验证(断网编辑 → 恢复自动同步 → 多端一致),Android 真机评估。
|
||||||
|
|
||||||
|
## 8. 开放问题 / 风险
|
||||||
|
|
||||||
|
- powersync-service 的元数据存储(bucket storage)对 MongoDB 的依赖需在部署阶段核实;若当前版本不支持用 PG 存元数据,则加一个 mongo 容器;
|
||||||
|
- Android System WebView 的 OPFS/WASM SQLite 兼容性(M5 评估,先桌面);
|
||||||
|
- 项目前缀全局唯一在多端并发下的冲突提示体验(上行返回结构化错误码);
|
||||||
|
- 0.2.1 验证期数据与现网彻底隔离,不回迁;若验证后需并回主线,另行决策迁移口径。
|
||||||
@@ -132,3 +132,33 @@ export type CheckListItem = Prisma.CheckListItemModel
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export type CheckListTemplate = Prisma.CheckListTemplateModel
|
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
|
||||||
|
|||||||
@@ -156,3 +156,33 @@ export type CheckListItem = Prisma.CheckListItemModel
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export type CheckListTemplate = Prisma.CheckListTemplateModel
|
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
|
||||||
|
|||||||
@@ -16,8 +16,8 @@ import type * as Prisma from "./internal/prismaNamespace.ts"
|
|||||||
|
|
||||||
export type IntFilter<$PrismaModel = never> = {
|
export type IntFilter<$PrismaModel = never> = {
|
||||||
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||||
in?: number[]
|
in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>
|
||||||
notIn?: number[]
|
notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>
|
||||||
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||||
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||||
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||||
@@ -27,8 +27,8 @@ export type IntFilter<$PrismaModel = never> = {
|
|||||||
|
|
||||||
export type StringFilter<$PrismaModel = never> = {
|
export type StringFilter<$PrismaModel = never> = {
|
||||||
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
in?: string[]
|
in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>
|
||||||
notIn?: string[]
|
notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>
|
||||||
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
@@ -36,14 +36,14 @@ export type StringFilter<$PrismaModel = never> = {
|
|||||||
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
search?: string
|
mode?: Prisma.QueryMode
|
||||||
not?: Prisma.NestedStringFilter<$PrismaModel> | string
|
not?: Prisma.NestedStringFilter<$PrismaModel> | string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type DateTimeFilter<$PrismaModel = never> = {
|
export type DateTimeFilter<$PrismaModel = never> = {
|
||||||
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||||
in?: Date[] | string[]
|
in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>
|
||||||
notIn?: Date[] | string[]
|
notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>
|
||||||
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||||
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||||
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||||
@@ -53,8 +53,8 @@ export type DateTimeFilter<$PrismaModel = never> = {
|
|||||||
|
|
||||||
export type IntWithAggregatesFilter<$PrismaModel = never> = {
|
export type IntWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||||
in?: number[]
|
in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>
|
||||||
notIn?: number[]
|
notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>
|
||||||
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||||
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||||
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||||
@@ -69,8 +69,8 @@ export type IntWithAggregatesFilter<$PrismaModel = never> = {
|
|||||||
|
|
||||||
export type StringWithAggregatesFilter<$PrismaModel = never> = {
|
export type StringWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
in?: string[]
|
in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>
|
||||||
notIn?: string[]
|
notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>
|
||||||
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
@@ -78,7 +78,7 @@ export type StringWithAggregatesFilter<$PrismaModel = never> = {
|
|||||||
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
search?: string
|
mode?: Prisma.QueryMode
|
||||||
not?: Prisma.NestedStringWithAggregatesFilter<$PrismaModel> | string
|
not?: Prisma.NestedStringWithAggregatesFilter<$PrismaModel> | string
|
||||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||||
_min?: Prisma.NestedStringFilter<$PrismaModel>
|
_min?: Prisma.NestedStringFilter<$PrismaModel>
|
||||||
@@ -87,8 +87,8 @@ export type StringWithAggregatesFilter<$PrismaModel = never> = {
|
|||||||
|
|
||||||
export type DateTimeWithAggregatesFilter<$PrismaModel = never> = {
|
export type DateTimeWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||||
in?: Date[] | string[]
|
in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>
|
||||||
notIn?: Date[] | string[]
|
notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>
|
||||||
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||||
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||||
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||||
@@ -108,7 +108,7 @@ export type JsonFilter<$PrismaModel = never> =
|
|||||||
|
|
||||||
export type JsonFilterBase<$PrismaModel = never> = {
|
export type JsonFilterBase<$PrismaModel = never> = {
|
||||||
equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter
|
equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter
|
||||||
path?: string
|
path?: string[]
|
||||||
mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>
|
mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>
|
||||||
string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
@@ -116,10 +116,10 @@ export type JsonFilterBase<$PrismaModel = never> = {
|
|||||||
array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null
|
array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null
|
||||||
array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null
|
array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null
|
||||||
array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null
|
array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null
|
||||||
lt?: runtime.InputJsonValue
|
lt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>
|
||||||
lte?: runtime.InputJsonValue
|
lte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>
|
||||||
gt?: runtime.InputJsonValue
|
gt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>
|
||||||
gte?: runtime.InputJsonValue
|
gte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>
|
||||||
not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter
|
not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -132,7 +132,7 @@ export type JsonWithAggregatesFilter<$PrismaModel = never> =
|
|||||||
|
|
||||||
export type JsonWithAggregatesFilterBase<$PrismaModel = never> = {
|
export type JsonWithAggregatesFilterBase<$PrismaModel = never> = {
|
||||||
equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter
|
equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter
|
||||||
path?: string
|
path?: string[]
|
||||||
mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>
|
mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>
|
||||||
string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
@@ -140,10 +140,10 @@ export type JsonWithAggregatesFilterBase<$PrismaModel = never> = {
|
|||||||
array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null
|
array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null
|
||||||
array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null
|
array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null
|
||||||
array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null
|
array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null
|
||||||
lt?: runtime.InputJsonValue
|
lt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>
|
||||||
lte?: runtime.InputJsonValue
|
lte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>
|
||||||
gt?: runtime.InputJsonValue
|
gt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>
|
||||||
gte?: runtime.InputJsonValue
|
gte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>
|
||||||
not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter
|
not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter
|
||||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||||
_min?: Prisma.NestedJsonFilter<$PrismaModel>
|
_min?: Prisma.NestedJsonFilter<$PrismaModel>
|
||||||
@@ -165,8 +165,8 @@ export type BoolWithAggregatesFilter<$PrismaModel = never> = {
|
|||||||
|
|
||||||
export type FloatFilter<$PrismaModel = never> = {
|
export type FloatFilter<$PrismaModel = never> = {
|
||||||
equals?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
equals?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
||||||
in?: number[]
|
in?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel>
|
||||||
notIn?: number[]
|
notIn?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel>
|
||||||
lt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
lt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
||||||
lte?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
lte?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
||||||
gt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
gt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
||||||
@@ -176,8 +176,8 @@ export type FloatFilter<$PrismaModel = never> = {
|
|||||||
|
|
||||||
export type FloatWithAggregatesFilter<$PrismaModel = never> = {
|
export type FloatWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
equals?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
||||||
in?: number[]
|
in?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel>
|
||||||
notIn?: number[]
|
notIn?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel>
|
||||||
lt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
lt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
||||||
lte?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
lte?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
||||||
gt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
gt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
||||||
@@ -192,8 +192,8 @@ export type FloatWithAggregatesFilter<$PrismaModel = never> = {
|
|||||||
|
|
||||||
export type StringNullableFilter<$PrismaModel = never> = {
|
export type StringNullableFilter<$PrismaModel = never> = {
|
||||||
equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null
|
equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null
|
||||||
in?: string[] | null
|
in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null
|
||||||
notIn?: string[] | null
|
notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null
|
||||||
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
@@ -201,7 +201,7 @@ export type StringNullableFilter<$PrismaModel = never> = {
|
|||||||
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
search?: string
|
mode?: Prisma.QueryMode
|
||||||
not?: Prisma.NestedStringNullableFilter<$PrismaModel> | string | null
|
not?: Prisma.NestedStringNullableFilter<$PrismaModel> | string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -212,8 +212,8 @@ export type SortOrderInput = {
|
|||||||
|
|
||||||
export type StringNullableWithAggregatesFilter<$PrismaModel = never> = {
|
export type StringNullableWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null
|
equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null
|
||||||
in?: string[] | null
|
in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null
|
||||||
notIn?: string[] | null
|
notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null
|
||||||
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
@@ -221,7 +221,7 @@ export type StringNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|||||||
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
search?: string
|
mode?: Prisma.QueryMode
|
||||||
not?: Prisma.NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null
|
not?: Prisma.NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null
|
||||||
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
||||||
_min?: Prisma.NestedStringNullableFilter<$PrismaModel>
|
_min?: Prisma.NestedStringNullableFilter<$PrismaModel>
|
||||||
@@ -230,8 +230,8 @@ export type StringNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|||||||
|
|
||||||
export type BigIntFilter<$PrismaModel = never> = {
|
export type BigIntFilter<$PrismaModel = never> = {
|
||||||
equals?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
equals?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
||||||
in?: bigint[] | number[]
|
in?: bigint[] | number[] | Prisma.ListBigIntFieldRefInput<$PrismaModel>
|
||||||
notIn?: bigint[] | number[]
|
notIn?: bigint[] | number[] | Prisma.ListBigIntFieldRefInput<$PrismaModel>
|
||||||
lt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
lt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
||||||
lte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
lte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
||||||
gt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
gt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
||||||
@@ -241,8 +241,8 @@ export type BigIntFilter<$PrismaModel = never> = {
|
|||||||
|
|
||||||
export type BigIntWithAggregatesFilter<$PrismaModel = never> = {
|
export type BigIntWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
equals?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
||||||
in?: bigint[] | number[]
|
in?: bigint[] | number[] | Prisma.ListBigIntFieldRefInput<$PrismaModel>
|
||||||
notIn?: bigint[] | number[]
|
notIn?: bigint[] | number[] | Prisma.ListBigIntFieldRefInput<$PrismaModel>
|
||||||
lt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
lt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
||||||
lte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
lte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
||||||
gt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
gt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
||||||
@@ -264,7 +264,7 @@ export type JsonNullableFilter<$PrismaModel = never> =
|
|||||||
|
|
||||||
export type JsonNullableFilterBase<$PrismaModel = never> = {
|
export type JsonNullableFilterBase<$PrismaModel = never> = {
|
||||||
equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter
|
equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter
|
||||||
path?: string
|
path?: string[]
|
||||||
mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>
|
mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>
|
||||||
string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
@@ -272,10 +272,10 @@ export type JsonNullableFilterBase<$PrismaModel = never> = {
|
|||||||
array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null
|
array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null
|
||||||
array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null
|
array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null
|
||||||
array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null
|
array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null
|
||||||
lt?: runtime.InputJsonValue
|
lt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>
|
||||||
lte?: runtime.InputJsonValue
|
lte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>
|
||||||
gt?: runtime.InputJsonValue
|
gt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>
|
||||||
gte?: runtime.InputJsonValue
|
gte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>
|
||||||
not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter
|
not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -288,7 +288,7 @@ export type JsonNullableWithAggregatesFilter<$PrismaModel = never> =
|
|||||||
|
|
||||||
export type JsonNullableWithAggregatesFilterBase<$PrismaModel = never> = {
|
export type JsonNullableWithAggregatesFilterBase<$PrismaModel = never> = {
|
||||||
equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter
|
equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter
|
||||||
path?: string
|
path?: string[]
|
||||||
mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>
|
mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>
|
||||||
string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
@@ -296,10 +296,10 @@ export type JsonNullableWithAggregatesFilterBase<$PrismaModel = never> = {
|
|||||||
array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null
|
array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null
|
||||||
array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null
|
array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null
|
||||||
array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null
|
array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null
|
||||||
lt?: runtime.InputJsonValue
|
lt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>
|
||||||
lte?: runtime.InputJsonValue
|
lte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>
|
||||||
gt?: runtime.InputJsonValue
|
gt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>
|
||||||
gte?: runtime.InputJsonValue
|
gte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>
|
||||||
not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter
|
not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter
|
||||||
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
||||||
_min?: Prisma.NestedJsonNullableFilter<$PrismaModel>
|
_min?: Prisma.NestedJsonNullableFilter<$PrismaModel>
|
||||||
@@ -308,8 +308,8 @@ export type JsonNullableWithAggregatesFilterBase<$PrismaModel = never> = {
|
|||||||
|
|
||||||
export type IntNullableFilter<$PrismaModel = never> = {
|
export type IntNullableFilter<$PrismaModel = never> = {
|
||||||
equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null
|
equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null
|
||||||
in?: number[] | null
|
in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null
|
||||||
notIn?: number[] | null
|
notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null
|
||||||
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||||
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||||
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||||
@@ -319,8 +319,8 @@ export type IntNullableFilter<$PrismaModel = never> = {
|
|||||||
|
|
||||||
export type DateTimeNullableFilter<$PrismaModel = never> = {
|
export type DateTimeNullableFilter<$PrismaModel = never> = {
|
||||||
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null
|
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null
|
||||||
in?: Date[] | string[] | null
|
in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null
|
||||||
notIn?: Date[] | string[] | null
|
notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null
|
||||||
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||||
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||||
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||||
@@ -330,8 +330,8 @@ export type DateTimeNullableFilter<$PrismaModel = never> = {
|
|||||||
|
|
||||||
export type IntNullableWithAggregatesFilter<$PrismaModel = never> = {
|
export type IntNullableWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null
|
equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null
|
||||||
in?: number[] | null
|
in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null
|
||||||
notIn?: number[] | null
|
notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null
|
||||||
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||||
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||||
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||||
@@ -346,8 +346,8 @@ export type IntNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|||||||
|
|
||||||
export type DateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
|
export type DateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null
|
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null
|
||||||
in?: Date[] | string[] | null
|
in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null
|
||||||
notIn?: Date[] | string[] | null
|
notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null
|
||||||
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||||
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||||
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||||
@@ -360,8 +360,8 @@ export type DateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|||||||
|
|
||||||
export type FloatNullableFilter<$PrismaModel = never> = {
|
export type FloatNullableFilter<$PrismaModel = never> = {
|
||||||
equals?: number | Prisma.FloatFieldRefInput<$PrismaModel> | null
|
equals?: number | Prisma.FloatFieldRefInput<$PrismaModel> | null
|
||||||
in?: number[] | null
|
in?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> | null
|
||||||
notIn?: number[] | null
|
notIn?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> | null
|
||||||
lt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
lt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
||||||
lte?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
lte?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
||||||
gt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
gt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
||||||
@@ -371,8 +371,8 @@ export type FloatNullableFilter<$PrismaModel = never> = {
|
|||||||
|
|
||||||
export type FloatNullableWithAggregatesFilter<$PrismaModel = never> = {
|
export type FloatNullableWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: number | Prisma.FloatFieldRefInput<$PrismaModel> | null
|
equals?: number | Prisma.FloatFieldRefInput<$PrismaModel> | null
|
||||||
in?: number[] | null
|
in?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> | null
|
||||||
notIn?: number[] | null
|
notIn?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> | null
|
||||||
lt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
lt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
||||||
lte?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
lte?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
||||||
gt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
gt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
||||||
@@ -387,8 +387,8 @@ export type FloatNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|||||||
|
|
||||||
export type NestedIntFilter<$PrismaModel = never> = {
|
export type NestedIntFilter<$PrismaModel = never> = {
|
||||||
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||||
in?: number[]
|
in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>
|
||||||
notIn?: number[]
|
notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>
|
||||||
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||||
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||||
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||||
@@ -398,8 +398,8 @@ export type NestedIntFilter<$PrismaModel = never> = {
|
|||||||
|
|
||||||
export type NestedStringFilter<$PrismaModel = never> = {
|
export type NestedStringFilter<$PrismaModel = never> = {
|
||||||
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
in?: string[]
|
in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>
|
||||||
notIn?: string[]
|
notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>
|
||||||
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
@@ -407,14 +407,13 @@ export type NestedStringFilter<$PrismaModel = never> = {
|
|||||||
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
search?: string
|
|
||||||
not?: Prisma.NestedStringFilter<$PrismaModel> | string
|
not?: Prisma.NestedStringFilter<$PrismaModel> | string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type NestedDateTimeFilter<$PrismaModel = never> = {
|
export type NestedDateTimeFilter<$PrismaModel = never> = {
|
||||||
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||||
in?: Date[] | string[]
|
in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>
|
||||||
notIn?: Date[] | string[]
|
notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>
|
||||||
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||||
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||||
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||||
@@ -424,8 +423,8 @@ export type NestedDateTimeFilter<$PrismaModel = never> = {
|
|||||||
|
|
||||||
export type NestedIntWithAggregatesFilter<$PrismaModel = never> = {
|
export type NestedIntWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||||
in?: number[]
|
in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>
|
||||||
notIn?: number[]
|
notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>
|
||||||
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||||
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||||
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||||
@@ -440,8 +439,8 @@ export type NestedIntWithAggregatesFilter<$PrismaModel = never> = {
|
|||||||
|
|
||||||
export type NestedFloatFilter<$PrismaModel = never> = {
|
export type NestedFloatFilter<$PrismaModel = never> = {
|
||||||
equals?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
equals?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
||||||
in?: number[]
|
in?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel>
|
||||||
notIn?: number[]
|
notIn?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel>
|
||||||
lt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
lt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
||||||
lte?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
lte?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
||||||
gt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
gt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
||||||
@@ -451,8 +450,8 @@ export type NestedFloatFilter<$PrismaModel = never> = {
|
|||||||
|
|
||||||
export type NestedStringWithAggregatesFilter<$PrismaModel = never> = {
|
export type NestedStringWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
in?: string[]
|
in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>
|
||||||
notIn?: string[]
|
notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>
|
||||||
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
@@ -460,7 +459,6 @@ export type NestedStringWithAggregatesFilter<$PrismaModel = never> = {
|
|||||||
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
search?: string
|
|
||||||
not?: Prisma.NestedStringWithAggregatesFilter<$PrismaModel> | string
|
not?: Prisma.NestedStringWithAggregatesFilter<$PrismaModel> | string
|
||||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||||
_min?: Prisma.NestedStringFilter<$PrismaModel>
|
_min?: Prisma.NestedStringFilter<$PrismaModel>
|
||||||
@@ -469,8 +467,8 @@ export type NestedStringWithAggregatesFilter<$PrismaModel = never> = {
|
|||||||
|
|
||||||
export type NestedDateTimeWithAggregatesFilter<$PrismaModel = never> = {
|
export type NestedDateTimeWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||||
in?: Date[] | string[]
|
in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>
|
||||||
notIn?: Date[] | string[]
|
notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>
|
||||||
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||||
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||||
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||||
@@ -490,7 +488,7 @@ export type NestedJsonFilter<$PrismaModel = never> =
|
|||||||
|
|
||||||
export type NestedJsonFilterBase<$PrismaModel = never> = {
|
export type NestedJsonFilterBase<$PrismaModel = never> = {
|
||||||
equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter
|
equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter
|
||||||
path?: string
|
path?: string[]
|
||||||
mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>
|
mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>
|
||||||
string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
@@ -498,10 +496,10 @@ export type NestedJsonFilterBase<$PrismaModel = never> = {
|
|||||||
array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null
|
array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null
|
||||||
array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null
|
array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null
|
||||||
array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null
|
array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null
|
||||||
lt?: runtime.InputJsonValue
|
lt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>
|
||||||
lte?: runtime.InputJsonValue
|
lte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>
|
||||||
gt?: runtime.InputJsonValue
|
gt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>
|
||||||
gte?: runtime.InputJsonValue
|
gte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>
|
||||||
not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter
|
not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -520,8 +518,8 @@ export type NestedBoolWithAggregatesFilter<$PrismaModel = never> = {
|
|||||||
|
|
||||||
export type NestedFloatWithAggregatesFilter<$PrismaModel = never> = {
|
export type NestedFloatWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
equals?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
||||||
in?: number[]
|
in?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel>
|
||||||
notIn?: number[]
|
notIn?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel>
|
||||||
lt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
lt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
||||||
lte?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
lte?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
||||||
gt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
gt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
||||||
@@ -536,8 +534,8 @@ export type NestedFloatWithAggregatesFilter<$PrismaModel = never> = {
|
|||||||
|
|
||||||
export type NestedStringNullableFilter<$PrismaModel = never> = {
|
export type NestedStringNullableFilter<$PrismaModel = never> = {
|
||||||
equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null
|
equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null
|
||||||
in?: string[] | null
|
in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null
|
||||||
notIn?: string[] | null
|
notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null
|
||||||
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
@@ -545,14 +543,13 @@ export type NestedStringNullableFilter<$PrismaModel = never> = {
|
|||||||
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
search?: string
|
|
||||||
not?: Prisma.NestedStringNullableFilter<$PrismaModel> | string | null
|
not?: Prisma.NestedStringNullableFilter<$PrismaModel> | string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
export type NestedStringNullableWithAggregatesFilter<$PrismaModel = never> = {
|
export type NestedStringNullableWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null
|
equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null
|
||||||
in?: string[] | null
|
in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null
|
||||||
notIn?: string[] | null
|
notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null
|
||||||
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
@@ -560,7 +557,6 @@ export type NestedStringNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|||||||
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
search?: string
|
|
||||||
not?: Prisma.NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null
|
not?: Prisma.NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null
|
||||||
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>
|
||||||
_min?: Prisma.NestedStringNullableFilter<$PrismaModel>
|
_min?: Prisma.NestedStringNullableFilter<$PrismaModel>
|
||||||
@@ -569,8 +565,8 @@ export type NestedStringNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|||||||
|
|
||||||
export type NestedIntNullableFilter<$PrismaModel = never> = {
|
export type NestedIntNullableFilter<$PrismaModel = never> = {
|
||||||
equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null
|
equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null
|
||||||
in?: number[] | null
|
in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null
|
||||||
notIn?: number[] | null
|
notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null
|
||||||
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||||
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||||
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||||
@@ -580,8 +576,8 @@ export type NestedIntNullableFilter<$PrismaModel = never> = {
|
|||||||
|
|
||||||
export type NestedBigIntFilter<$PrismaModel = never> = {
|
export type NestedBigIntFilter<$PrismaModel = never> = {
|
||||||
equals?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
equals?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
||||||
in?: bigint[] | number[]
|
in?: bigint[] | number[] | Prisma.ListBigIntFieldRefInput<$PrismaModel>
|
||||||
notIn?: bigint[] | number[]
|
notIn?: bigint[] | number[] | Prisma.ListBigIntFieldRefInput<$PrismaModel>
|
||||||
lt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
lt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
||||||
lte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
lte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
||||||
gt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
gt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
||||||
@@ -591,8 +587,8 @@ export type NestedBigIntFilter<$PrismaModel = never> = {
|
|||||||
|
|
||||||
export type NestedBigIntWithAggregatesFilter<$PrismaModel = never> = {
|
export type NestedBigIntWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
equals?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
||||||
in?: bigint[] | number[]
|
in?: bigint[] | number[] | Prisma.ListBigIntFieldRefInput<$PrismaModel>
|
||||||
notIn?: bigint[] | number[]
|
notIn?: bigint[] | number[] | Prisma.ListBigIntFieldRefInput<$PrismaModel>
|
||||||
lt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
lt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
||||||
lte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
lte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
||||||
gt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
gt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>
|
||||||
@@ -614,7 +610,7 @@ export type NestedJsonNullableFilter<$PrismaModel = never> =
|
|||||||
|
|
||||||
export type NestedJsonNullableFilterBase<$PrismaModel = never> = {
|
export type NestedJsonNullableFilterBase<$PrismaModel = never> = {
|
||||||
equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter
|
equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter
|
||||||
path?: string
|
path?: string[]
|
||||||
mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>
|
mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>
|
||||||
string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||||
@@ -622,17 +618,17 @@ export type NestedJsonNullableFilterBase<$PrismaModel = never> = {
|
|||||||
array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null
|
array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null
|
||||||
array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null
|
array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null
|
||||||
array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null
|
array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null
|
||||||
lt?: runtime.InputJsonValue
|
lt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>
|
||||||
lte?: runtime.InputJsonValue
|
lte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>
|
||||||
gt?: runtime.InputJsonValue
|
gt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>
|
||||||
gte?: runtime.InputJsonValue
|
gte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>
|
||||||
not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter
|
not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter
|
||||||
}
|
}
|
||||||
|
|
||||||
export type NestedDateTimeNullableFilter<$PrismaModel = never> = {
|
export type NestedDateTimeNullableFilter<$PrismaModel = never> = {
|
||||||
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null
|
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null
|
||||||
in?: Date[] | string[] | null
|
in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null
|
||||||
notIn?: Date[] | string[] | null
|
notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null
|
||||||
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||||
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||||
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||||
@@ -642,8 +638,8 @@ export type NestedDateTimeNullableFilter<$PrismaModel = never> = {
|
|||||||
|
|
||||||
export type NestedIntNullableWithAggregatesFilter<$PrismaModel = never> = {
|
export type NestedIntNullableWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null
|
equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null
|
||||||
in?: number[] | null
|
in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null
|
||||||
notIn?: number[] | null
|
notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null
|
||||||
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||||
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||||
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>
|
||||||
@@ -658,8 +654,8 @@ export type NestedIntNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|||||||
|
|
||||||
export type NestedFloatNullableFilter<$PrismaModel = never> = {
|
export type NestedFloatNullableFilter<$PrismaModel = never> = {
|
||||||
equals?: number | Prisma.FloatFieldRefInput<$PrismaModel> | null
|
equals?: number | Prisma.FloatFieldRefInput<$PrismaModel> | null
|
||||||
in?: number[] | null
|
in?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> | null
|
||||||
notIn?: number[] | null
|
notIn?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> | null
|
||||||
lt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
lt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
||||||
lte?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
lte?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
||||||
gt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
gt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
||||||
@@ -669,8 +665,8 @@ export type NestedFloatNullableFilter<$PrismaModel = never> = {
|
|||||||
|
|
||||||
export type NestedDateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
|
export type NestedDateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null
|
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null
|
||||||
in?: Date[] | string[] | null
|
in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null
|
||||||
notIn?: Date[] | string[] | null
|
notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null
|
||||||
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||||
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||||
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>
|
||||||
@@ -683,8 +679,8 @@ export type NestedDateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|||||||
|
|
||||||
export type NestedFloatNullableWithAggregatesFilter<$PrismaModel = never> = {
|
export type NestedFloatNullableWithAggregatesFilter<$PrismaModel = never> = {
|
||||||
equals?: number | Prisma.FloatFieldRefInput<$PrismaModel> | null
|
equals?: number | Prisma.FloatFieldRefInput<$PrismaModel> | null
|
||||||
in?: number[] | null
|
in?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> | null
|
||||||
notIn?: number[] | null
|
notIn?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> | null
|
||||||
lt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
lt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
||||||
lte?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
lte?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
||||||
gt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
gt?: number | Prisma.FloatFieldRefInput<$PrismaModel>
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@@ -73,7 +73,13 @@ export const ModelName = {
|
|||||||
CheckIn: 'CheckIn',
|
CheckIn: 'CheckIn',
|
||||||
CheckList: 'CheckList',
|
CheckList: 'CheckList',
|
||||||
CheckListItem: 'CheckListItem',
|
CheckListItem: 'CheckListItem',
|
||||||
CheckListTemplate: 'CheckListTemplate'
|
CheckListTemplate: 'CheckListTemplate',
|
||||||
|
Project: 'Project',
|
||||||
|
ProjectMember: 'ProjectMember',
|
||||||
|
BoardColumn: 'BoardColumn',
|
||||||
|
Task: 'Task',
|
||||||
|
TaskMember: 'TaskMember',
|
||||||
|
TaskTag: 'TaskTag'
|
||||||
} as const
|
} as const
|
||||||
|
|
||||||
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
|
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
|
||||||
@@ -443,6 +449,95 @@ export const CheckListTemplateScalarFieldEnum = {
|
|||||||
export type CheckListTemplateScalarFieldEnum = (typeof CheckListTemplateScalarFieldEnum)[keyof typeof CheckListTemplateScalarFieldEnum]
|
export type CheckListTemplateScalarFieldEnum = (typeof CheckListTemplateScalarFieldEnum)[keyof typeof CheckListTemplateScalarFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
|
export const ProjectScalarFieldEnum = {
|
||||||
|
id: 'id',
|
||||||
|
uuid: 'uuid',
|
||||||
|
code: 'code',
|
||||||
|
name: 'name',
|
||||||
|
ownerId: 'ownerId',
|
||||||
|
isPersonal: 'isPersonal',
|
||||||
|
archived: 'archived',
|
||||||
|
notes: 'notes',
|
||||||
|
taskKinds: 'taskKinds',
|
||||||
|
icon: 'icon',
|
||||||
|
createdAt: 'createdAt',
|
||||||
|
updatedAt: 'updatedAt'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type ProjectScalarFieldEnum = (typeof ProjectScalarFieldEnum)[keyof typeof ProjectScalarFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
|
export const ProjectMemberScalarFieldEnum = {
|
||||||
|
id: 'id',
|
||||||
|
uuid: 'uuid',
|
||||||
|
projectId: 'projectId',
|
||||||
|
userId: 'userId',
|
||||||
|
permission: 'permission',
|
||||||
|
createdAt: 'createdAt'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type ProjectMemberScalarFieldEnum = (typeof ProjectMemberScalarFieldEnum)[keyof typeof ProjectMemberScalarFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
|
export const BoardColumnScalarFieldEnum = {
|
||||||
|
id: 'id',
|
||||||
|
uuid: 'uuid',
|
||||||
|
projectId: 'projectId',
|
||||||
|
name: 'name',
|
||||||
|
sortOrder: 'sortOrder',
|
||||||
|
boundStatus: 'boundStatus',
|
||||||
|
retention: 'retention',
|
||||||
|
createdAt: 'createdAt',
|
||||||
|
updatedAt: 'updatedAt'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type BoardColumnScalarFieldEnum = (typeof BoardColumnScalarFieldEnum)[keyof typeof BoardColumnScalarFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
|
export const TaskScalarFieldEnum = {
|
||||||
|
id: 'id',
|
||||||
|
uuid: 'uuid',
|
||||||
|
projectId: 'projectId',
|
||||||
|
columnId: 'columnId',
|
||||||
|
parentId: 'parentId',
|
||||||
|
title: 'title',
|
||||||
|
description: 'description',
|
||||||
|
kind: 'kind',
|
||||||
|
markDate: 'markDate',
|
||||||
|
status: 'status',
|
||||||
|
doneAt: 'doneAt',
|
||||||
|
assigneeId: 'assigneeId',
|
||||||
|
creatorId: 'creatorId',
|
||||||
|
extras: 'extras',
|
||||||
|
sortOrder: 'sortOrder',
|
||||||
|
createdAt: 'createdAt',
|
||||||
|
updatedAt: 'updatedAt',
|
||||||
|
number: 'number'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type TaskScalarFieldEnum = (typeof TaskScalarFieldEnum)[keyof typeof TaskScalarFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
|
export const TaskMemberScalarFieldEnum = {
|
||||||
|
id: 'id',
|
||||||
|
uuid: 'uuid',
|
||||||
|
taskId: 'taskId',
|
||||||
|
userId: 'userId'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type TaskMemberScalarFieldEnum = (typeof TaskMemberScalarFieldEnum)[keyof typeof TaskMemberScalarFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
|
export const TaskTagScalarFieldEnum = {
|
||||||
|
id: 'id',
|
||||||
|
uuid: 'uuid',
|
||||||
|
taskId: 'taskId',
|
||||||
|
name: 'name'
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export type TaskTagScalarFieldEnum = (typeof TaskTagScalarFieldEnum)[keyof typeof TaskTagScalarFieldEnum]
|
||||||
|
|
||||||
|
|
||||||
export const SortOrder = {
|
export const SortOrder = {
|
||||||
asc: 'asc',
|
asc: 'asc',
|
||||||
desc: 'desc'
|
desc: 'desc'
|
||||||
@@ -466,23 +561,12 @@ export const NullableJsonNullValueInput = {
|
|||||||
export type NullableJsonNullValueInput = (typeof NullableJsonNullValueInput)[keyof typeof NullableJsonNullValueInput]
|
export type NullableJsonNullValueInput = (typeof NullableJsonNullValueInput)[keyof typeof NullableJsonNullValueInput]
|
||||||
|
|
||||||
|
|
||||||
export const UserOrderByRelevanceFieldEnum = {
|
export const QueryMode = {
|
||||||
name: 'name',
|
default: 'default',
|
||||||
email: 'email',
|
insensitive: 'insensitive'
|
||||||
password: 'password'
|
|
||||||
} as const
|
} as const
|
||||||
|
|
||||||
export type UserOrderByRelevanceFieldEnum = (typeof UserOrderByRelevanceFieldEnum)[keyof typeof UserOrderByRelevanceFieldEnum]
|
export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode]
|
||||||
|
|
||||||
|
|
||||||
export const ArticleOrderByRelevanceFieldEnum = {
|
|
||||||
title: 'title',
|
|
||||||
slug: 'slug',
|
|
||||||
content: 'content',
|
|
||||||
date: 'date'
|
|
||||||
} as const
|
|
||||||
|
|
||||||
export type ArticleOrderByRelevanceFieldEnum = (typeof ArticleOrderByRelevanceFieldEnum)[keyof typeof ArticleOrderByRelevanceFieldEnum]
|
|
||||||
|
|
||||||
|
|
||||||
export const JsonNullValueFilter = {
|
export const JsonNullValueFilter = {
|
||||||
@@ -494,41 +578,6 @@ export const JsonNullValueFilter = {
|
|||||||
export type JsonNullValueFilter = (typeof JsonNullValueFilter)[keyof typeof JsonNullValueFilter]
|
export type JsonNullValueFilter = (typeof JsonNullValueFilter)[keyof typeof JsonNullValueFilter]
|
||||||
|
|
||||||
|
|
||||||
export const QueryMode = {
|
|
||||||
default: 'default',
|
|
||||||
insensitive: 'insensitive'
|
|
||||||
} as const
|
|
||||||
|
|
||||||
export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode]
|
|
||||||
|
|
||||||
|
|
||||||
export const StrategyOrderByRelevanceFieldEnum = {
|
|
||||||
name: 'name',
|
|
||||||
description: 'description'
|
|
||||||
} as const
|
|
||||||
|
|
||||||
export type StrategyOrderByRelevanceFieldEnum = (typeof StrategyOrderByRelevanceFieldEnum)[keyof typeof StrategyOrderByRelevanceFieldEnum]
|
|
||||||
|
|
||||||
|
|
||||||
export const IndicatorOrderByRelevanceFieldEnum = {
|
|
||||||
name: 'name',
|
|
||||||
groupName: 'groupName',
|
|
||||||
title: 'title',
|
|
||||||
unit: 'unit',
|
|
||||||
source: 'source',
|
|
||||||
frequency: 'frequency'
|
|
||||||
} as const
|
|
||||||
|
|
||||||
export type IndicatorOrderByRelevanceFieldEnum = (typeof IndicatorOrderByRelevanceFieldEnum)[keyof typeof IndicatorOrderByRelevanceFieldEnum]
|
|
||||||
|
|
||||||
|
|
||||||
export const IndicatorPointOrderByRelevanceFieldEnum = {
|
|
||||||
period: 'period'
|
|
||||||
} as const
|
|
||||||
|
|
||||||
export type IndicatorPointOrderByRelevanceFieldEnum = (typeof IndicatorPointOrderByRelevanceFieldEnum)[keyof typeof IndicatorPointOrderByRelevanceFieldEnum]
|
|
||||||
|
|
||||||
|
|
||||||
export const NullsOrder = {
|
export const NullsOrder = {
|
||||||
first: 'first',
|
first: 'first',
|
||||||
last: 'last'
|
last: 'last'
|
||||||
@@ -536,158 +585,3 @@ export const NullsOrder = {
|
|||||||
|
|
||||||
export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder]
|
export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder]
|
||||||
|
|
||||||
|
|
||||||
export const NewsOrderByRelevanceFieldEnum = {
|
|
||||||
title: 'title',
|
|
||||||
summary: 'summary',
|
|
||||||
content: 'content',
|
|
||||||
source: 'source',
|
|
||||||
url: 'url'
|
|
||||||
} as const
|
|
||||||
|
|
||||||
export type NewsOrderByRelevanceFieldEnum = (typeof NewsOrderByRelevanceFieldEnum)[keyof typeof NewsOrderByRelevanceFieldEnum]
|
|
||||||
|
|
||||||
|
|
||||||
export const AlertOrderByRelevanceFieldEnum = {
|
|
||||||
indicatorName: 'indicatorName',
|
|
||||||
period: 'period',
|
|
||||||
sourceA: 'sourceA',
|
|
||||||
sourceB: 'sourceB'
|
|
||||||
} as const
|
|
||||||
|
|
||||||
export type AlertOrderByRelevanceFieldEnum = (typeof AlertOrderByRelevanceFieldEnum)[keyof typeof AlertOrderByRelevanceFieldEnum]
|
|
||||||
|
|
||||||
|
|
||||||
export const ServerNodeOrderByRelevanceFieldEnum = {
|
|
||||||
uuid: 'uuid',
|
|
||||||
name: 'name',
|
|
||||||
cpuName: 'cpuName',
|
|
||||||
os: 'os',
|
|
||||||
region: 'region',
|
|
||||||
status: 'status'
|
|
||||||
} as const
|
|
||||||
|
|
||||||
export type ServerNodeOrderByRelevanceFieldEnum = (typeof ServerNodeOrderByRelevanceFieldEnum)[keyof typeof ServerNodeOrderByRelevanceFieldEnum]
|
|
||||||
|
|
||||||
|
|
||||||
export const ServerNodeHistoryOrderByRelevanceFieldEnum = {
|
|
||||||
uuid: 'uuid'
|
|
||||||
} as const
|
|
||||||
|
|
||||||
export type ServerNodeHistoryOrderByRelevanceFieldEnum = (typeof ServerNodeHistoryOrderByRelevanceFieldEnum)[keyof typeof ServerNodeHistoryOrderByRelevanceFieldEnum]
|
|
||||||
|
|
||||||
|
|
||||||
export const ServiceCheckOrderByRelevanceFieldEnum = {
|
|
||||||
name: 'name',
|
|
||||||
url: 'url',
|
|
||||||
status: 'status',
|
|
||||||
message: 'message'
|
|
||||||
} as const
|
|
||||||
|
|
||||||
export type ServiceCheckOrderByRelevanceFieldEnum = (typeof ServiceCheckOrderByRelevanceFieldEnum)[keyof typeof ServiceCheckOrderByRelevanceFieldEnum]
|
|
||||||
|
|
||||||
|
|
||||||
export const Econ_SowInventoryOrderByRelevanceFieldEnum = {
|
|
||||||
month: 'month'
|
|
||||||
} as const
|
|
||||||
|
|
||||||
export type Econ_SowInventoryOrderByRelevanceFieldEnum = (typeof Econ_SowInventoryOrderByRelevanceFieldEnum)[keyof typeof Econ_SowInventoryOrderByRelevanceFieldEnum]
|
|
||||||
|
|
||||||
|
|
||||||
export const ScraperCacheOrderByRelevanceFieldEnum = {
|
|
||||||
scraperName: 'scraperName',
|
|
||||||
lastDataHash: 'lastDataHash'
|
|
||||||
} as const
|
|
||||||
|
|
||||||
export type ScraperCacheOrderByRelevanceFieldEnum = (typeof ScraperCacheOrderByRelevanceFieldEnum)[keyof typeof ScraperCacheOrderByRelevanceFieldEnum]
|
|
||||||
|
|
||||||
|
|
||||||
export const OilPriceHistoryOrderByRelevanceFieldEnum = {
|
|
||||||
province: 'province',
|
|
||||||
fuel: 'fuel',
|
|
||||||
source: 'source'
|
|
||||||
} as const
|
|
||||||
|
|
||||||
export type OilPriceHistoryOrderByRelevanceFieldEnum = (typeof OilPriceHistoryOrderByRelevanceFieldEnum)[keyof typeof OilPriceHistoryOrderByRelevanceFieldEnum]
|
|
||||||
|
|
||||||
|
|
||||||
export const MihomeAccountOrderByRelevanceFieldEnum = {
|
|
||||||
key: 'key',
|
|
||||||
userId: 'userId',
|
|
||||||
status: 'status',
|
|
||||||
lastError: 'lastError'
|
|
||||||
} as const
|
|
||||||
|
|
||||||
export type MihomeAccountOrderByRelevanceFieldEnum = (typeof MihomeAccountOrderByRelevanceFieldEnum)[keyof typeof MihomeAccountOrderByRelevanceFieldEnum]
|
|
||||||
|
|
||||||
|
|
||||||
export const MihomeHomeOrderByRelevanceFieldEnum = {
|
|
||||||
homeId: 'homeId',
|
|
||||||
name: 'name'
|
|
||||||
} as const
|
|
||||||
|
|
||||||
export type MihomeHomeOrderByRelevanceFieldEnum = (typeof MihomeHomeOrderByRelevanceFieldEnum)[keyof typeof MihomeHomeOrderByRelevanceFieldEnum]
|
|
||||||
|
|
||||||
|
|
||||||
export const MihomeDeviceOrderByRelevanceFieldEnum = {
|
|
||||||
did: 'did',
|
|
||||||
homeId: 'homeId',
|
|
||||||
model: 'model',
|
|
||||||
name: 'name',
|
|
||||||
alias: 'alias'
|
|
||||||
} as const
|
|
||||||
|
|
||||||
export type MihomeDeviceOrderByRelevanceFieldEnum = (typeof MihomeDeviceOrderByRelevanceFieldEnum)[keyof typeof MihomeDeviceOrderByRelevanceFieldEnum]
|
|
||||||
|
|
||||||
|
|
||||||
export const MihomeEnvSampleOrderByRelevanceFieldEnum = {
|
|
||||||
origin: 'origin'
|
|
||||||
} as const
|
|
||||||
|
|
||||||
export type MihomeEnvSampleOrderByRelevanceFieldEnum = (typeof MihomeEnvSampleOrderByRelevanceFieldEnum)[keyof typeof MihomeEnvSampleOrderByRelevanceFieldEnum]
|
|
||||||
|
|
||||||
|
|
||||||
export const HabitOrderByRelevanceFieldEnum = {
|
|
||||||
name: 'name',
|
|
||||||
period: 'period',
|
|
||||||
color: 'color',
|
|
||||||
icon: 'icon',
|
|
||||||
note: 'note'
|
|
||||||
} as const
|
|
||||||
|
|
||||||
export type HabitOrderByRelevanceFieldEnum = (typeof HabitOrderByRelevanceFieldEnum)[keyof typeof HabitOrderByRelevanceFieldEnum]
|
|
||||||
|
|
||||||
|
|
||||||
export const CheckInOrderByRelevanceFieldEnum = {
|
|
||||||
date: 'date',
|
|
||||||
note: 'note',
|
|
||||||
source: 'source'
|
|
||||||
} as const
|
|
||||||
|
|
||||||
export type CheckInOrderByRelevanceFieldEnum = (typeof CheckInOrderByRelevanceFieldEnum)[keyof typeof CheckInOrderByRelevanceFieldEnum]
|
|
||||||
|
|
||||||
|
|
||||||
export const CheckListOrderByRelevanceFieldEnum = {
|
|
||||||
title: 'title',
|
|
||||||
scene: 'scene',
|
|
||||||
note: 'note'
|
|
||||||
} as const
|
|
||||||
|
|
||||||
export type CheckListOrderByRelevanceFieldEnum = (typeof CheckListOrderByRelevanceFieldEnum)[keyof typeof CheckListOrderByRelevanceFieldEnum]
|
|
||||||
|
|
||||||
|
|
||||||
export const CheckListItemOrderByRelevanceFieldEnum = {
|
|
||||||
title: 'title',
|
|
||||||
note: 'note'
|
|
||||||
} as const
|
|
||||||
|
|
||||||
export type CheckListItemOrderByRelevanceFieldEnum = (typeof CheckListItemOrderByRelevanceFieldEnum)[keyof typeof CheckListItemOrderByRelevanceFieldEnum]
|
|
||||||
|
|
||||||
|
|
||||||
export const CheckListTemplateOrderByRelevanceFieldEnum = {
|
|
||||||
name: 'name',
|
|
||||||
scene: 'scene'
|
|
||||||
} as const
|
|
||||||
|
|
||||||
export type CheckListTemplateOrderByRelevanceFieldEnum = (typeof CheckListTemplateOrderByRelevanceFieldEnum)[keyof typeof CheckListTemplateOrderByRelevanceFieldEnum]
|
|
||||||
|
|
||||||
|
|||||||
@@ -31,4 +31,10 @@ export type * from './models/CheckIn.ts'
|
|||||||
export type * from './models/CheckList.ts'
|
export type * from './models/CheckList.ts'
|
||||||
export type * from './models/CheckListItem.ts'
|
export type * from './models/CheckListItem.ts'
|
||||||
export type * from './models/CheckListTemplate.ts'
|
export type * from './models/CheckListTemplate.ts'
|
||||||
|
export type * from './models/Project.ts'
|
||||||
|
export type * from './models/ProjectMember.ts'
|
||||||
|
export type * from './models/BoardColumn.ts'
|
||||||
|
export type * from './models/Task.ts'
|
||||||
|
export type * from './models/TaskMember.ts'
|
||||||
|
export type * from './models/TaskTag.ts'
|
||||||
export type * from './commonInputTypes.ts'
|
export type * from './commonInputTypes.ts'
|
||||||
@@ -285,7 +285,6 @@ export type AlertOrderByWithRelationInput = {
|
|||||||
diff?: Prisma.SortOrder
|
diff?: Prisma.SortOrder
|
||||||
diffRatio?: Prisma.SortOrder
|
diffRatio?: Prisma.SortOrder
|
||||||
createdAt?: Prisma.SortOrder
|
createdAt?: Prisma.SortOrder
|
||||||
_relevance?: Prisma.AlertOrderByRelevanceInput
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type AlertWhereUniqueInput = Prisma.AtLeast<{
|
export type AlertWhereUniqueInput = Prisma.AtLeast<{
|
||||||
@@ -426,12 +425,6 @@ export type AlertUncheckedUpdateManyInput = {
|
|||||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type AlertOrderByRelevanceInput = {
|
|
||||||
fields: Prisma.AlertOrderByRelevanceFieldEnum | Prisma.AlertOrderByRelevanceFieldEnum[]
|
|
||||||
sort: Prisma.SortOrder
|
|
||||||
search: string
|
|
||||||
}
|
|
||||||
|
|
||||||
export type AlertCountOrderByAggregateInput = {
|
export type AlertCountOrderByAggregateInput = {
|
||||||
id?: Prisma.SortOrder
|
id?: Prisma.SortOrder
|
||||||
indicatorName?: Prisma.SortOrder
|
indicatorName?: Prisma.SortOrder
|
||||||
@@ -502,7 +495,31 @@ export type AlertSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs =
|
|||||||
createdAt?: boolean
|
createdAt?: boolean
|
||||||
}, ExtArgs["result"]["alert"]>
|
}, ExtArgs["result"]["alert"]>
|
||||||
|
|
||||||
|
export type AlertSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||||
|
id?: boolean
|
||||||
|
indicatorName?: boolean
|
||||||
|
period?: boolean
|
||||||
|
valueA?: boolean
|
||||||
|
valueB?: boolean
|
||||||
|
sourceA?: boolean
|
||||||
|
sourceB?: boolean
|
||||||
|
diff?: boolean
|
||||||
|
diffRatio?: boolean
|
||||||
|
createdAt?: boolean
|
||||||
|
}, ExtArgs["result"]["alert"]>
|
||||||
|
|
||||||
|
export type AlertSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||||
|
id?: boolean
|
||||||
|
indicatorName?: boolean
|
||||||
|
period?: boolean
|
||||||
|
valueA?: boolean
|
||||||
|
valueB?: boolean
|
||||||
|
sourceA?: boolean
|
||||||
|
sourceB?: boolean
|
||||||
|
diff?: boolean
|
||||||
|
diffRatio?: boolean
|
||||||
|
createdAt?: boolean
|
||||||
|
}, ExtArgs["result"]["alert"]>
|
||||||
|
|
||||||
export type AlertSelectScalar = {
|
export type AlertSelectScalar = {
|
||||||
id?: boolean
|
id?: boolean
|
||||||
@@ -650,6 +667,30 @@ export interface AlertDelegate<ExtArgs extends runtime.Types.Extensions.Internal
|
|||||||
*/
|
*/
|
||||||
createMany<T extends AlertCreateManyArgs>(args?: Prisma.SelectSubset<T, AlertCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
createMany<T extends AlertCreateManyArgs>(args?: Prisma.SelectSubset<T, AlertCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create many Alerts and returns the data saved in the database.
|
||||||
|
* @param {AlertCreateManyAndReturnArgs} args - Arguments to create many Alerts.
|
||||||
|
* @example
|
||||||
|
* // Create many Alerts
|
||||||
|
* const alert = await prisma.alert.createManyAndReturn({
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
*
|
||||||
|
* // Create many Alerts and only return the `id`
|
||||||
|
* const alertWithIdOnly = await prisma.alert.createManyAndReturn({
|
||||||
|
* select: { id: true },
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
* Note, that providing `undefined` is treated as the value not being there.
|
||||||
|
* Read more here: https://pris.ly/d/null-undefined
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
createManyAndReturn<T extends AlertCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, AlertCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AlertPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Delete a Alert.
|
* Delete a Alert.
|
||||||
* @param {AlertDeleteArgs} args - Arguments to delete one Alert.
|
* @param {AlertDeleteArgs} args - Arguments to delete one Alert.
|
||||||
@@ -714,6 +755,36 @@ export interface AlertDelegate<ExtArgs extends runtime.Types.Extensions.Internal
|
|||||||
*/
|
*/
|
||||||
updateMany<T extends AlertUpdateManyArgs>(args: Prisma.SelectSubset<T, AlertUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
updateMany<T extends AlertUpdateManyArgs>(args: Prisma.SelectSubset<T, AlertUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Update zero or more Alerts and returns the data updated in the database.
|
||||||
|
* @param {AlertUpdateManyAndReturnArgs} args - Arguments to update many Alerts.
|
||||||
|
* @example
|
||||||
|
* // Update many Alerts
|
||||||
|
* const alert = await prisma.alert.updateManyAndReturn({
|
||||||
|
* where: {
|
||||||
|
* // ... provide filter here
|
||||||
|
* },
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
*
|
||||||
|
* // Update zero or more Alerts and only return the `id`
|
||||||
|
* const alertWithIdOnly = await prisma.alert.updateManyAndReturn({
|
||||||
|
* select: { id: true },
|
||||||
|
* where: {
|
||||||
|
* // ... provide filter here
|
||||||
|
* },
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
* Note, that providing `undefined` is treated as the value not being there.
|
||||||
|
* Read more here: https://pris.ly/d/null-undefined
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
updateManyAndReturn<T extends AlertUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, AlertUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AlertPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create or update one Alert.
|
* Create or update one Alert.
|
||||||
* @param {AlertUpsertArgs} args - Arguments to update or create a Alert.
|
* @param {AlertUpsertArgs} args - Arguments to update or create a Alert.
|
||||||
@@ -1125,6 +1196,25 @@ export type AlertCreateManyArgs<ExtArgs extends runtime.Types.Extensions.Interna
|
|||||||
skipDuplicates?: boolean
|
skipDuplicates?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Alert createManyAndReturn
|
||||||
|
*/
|
||||||
|
export type AlertCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
|
/**
|
||||||
|
* Select specific fields to fetch from the Alert
|
||||||
|
*/
|
||||||
|
select?: Prisma.AlertSelectCreateManyAndReturn<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* Omit specific fields from the Alert
|
||||||
|
*/
|
||||||
|
omit?: Prisma.AlertOmit<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* The data used to create many Alerts.
|
||||||
|
*/
|
||||||
|
data: Prisma.AlertCreateManyInput | Prisma.AlertCreateManyInput[]
|
||||||
|
skipDuplicates?: boolean
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Alert update
|
* Alert update
|
||||||
*/
|
*/
|
||||||
@@ -1165,6 +1255,32 @@ export type AlertUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.Interna
|
|||||||
limit?: number
|
limit?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Alert updateManyAndReturn
|
||||||
|
*/
|
||||||
|
export type AlertUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
|
/**
|
||||||
|
* Select specific fields to fetch from the Alert
|
||||||
|
*/
|
||||||
|
select?: Prisma.AlertSelectUpdateManyAndReturn<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* Omit specific fields from the Alert
|
||||||
|
*/
|
||||||
|
omit?: Prisma.AlertOmit<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* The data used to update Alerts.
|
||||||
|
*/
|
||||||
|
data: Prisma.XOR<Prisma.AlertUpdateManyMutationInput, Prisma.AlertUncheckedUpdateManyInput>
|
||||||
|
/**
|
||||||
|
* Filter which Alerts to update
|
||||||
|
*/
|
||||||
|
where?: Prisma.AlertWhereInput
|
||||||
|
/**
|
||||||
|
* Limit how many Alerts to update.
|
||||||
|
*/
|
||||||
|
limit?: number
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Alert upsert
|
* Alert upsert
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -242,7 +242,6 @@ export type ArticleOrderByWithRelationInput = {
|
|||||||
date?: Prisma.SortOrder
|
date?: Prisma.SortOrder
|
||||||
createdAt?: Prisma.SortOrder
|
createdAt?: Prisma.SortOrder
|
||||||
updatedAt?: Prisma.SortOrder
|
updatedAt?: Prisma.SortOrder
|
||||||
_relevance?: Prisma.ArticleOrderByRelevanceInput
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ArticleWhereUniqueInput = Prisma.AtLeast<{
|
export type ArticleWhereUniqueInput = Prisma.AtLeast<{
|
||||||
@@ -353,12 +352,6 @@ export type ArticleUncheckedUpdateManyInput = {
|
|||||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ArticleOrderByRelevanceInput = {
|
|
||||||
fields: Prisma.ArticleOrderByRelevanceFieldEnum | Prisma.ArticleOrderByRelevanceFieldEnum[]
|
|
||||||
sort: Prisma.SortOrder
|
|
||||||
search: string
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ArticleCountOrderByAggregateInput = {
|
export type ArticleCountOrderByAggregateInput = {
|
||||||
id?: Prisma.SortOrder
|
id?: Prisma.SortOrder
|
||||||
title?: Prisma.SortOrder
|
title?: Prisma.SortOrder
|
||||||
@@ -409,7 +402,25 @@ export type ArticleSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs
|
|||||||
updatedAt?: boolean
|
updatedAt?: boolean
|
||||||
}, ExtArgs["result"]["article"]>
|
}, ExtArgs["result"]["article"]>
|
||||||
|
|
||||||
|
export type ArticleSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||||
|
id?: boolean
|
||||||
|
title?: boolean
|
||||||
|
slug?: boolean
|
||||||
|
content?: boolean
|
||||||
|
date?: boolean
|
||||||
|
createdAt?: boolean
|
||||||
|
updatedAt?: boolean
|
||||||
|
}, ExtArgs["result"]["article"]>
|
||||||
|
|
||||||
|
export type ArticleSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||||
|
id?: boolean
|
||||||
|
title?: boolean
|
||||||
|
slug?: boolean
|
||||||
|
content?: boolean
|
||||||
|
date?: boolean
|
||||||
|
createdAt?: boolean
|
||||||
|
updatedAt?: boolean
|
||||||
|
}, ExtArgs["result"]["article"]>
|
||||||
|
|
||||||
export type ArticleSelectScalar = {
|
export type ArticleSelectScalar = {
|
||||||
id?: boolean
|
id?: boolean
|
||||||
@@ -551,6 +562,30 @@ export interface ArticleDelegate<ExtArgs extends runtime.Types.Extensions.Intern
|
|||||||
*/
|
*/
|
||||||
createMany<T extends ArticleCreateManyArgs>(args?: Prisma.SelectSubset<T, ArticleCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
createMany<T extends ArticleCreateManyArgs>(args?: Prisma.SelectSubset<T, ArticleCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create many Articles and returns the data saved in the database.
|
||||||
|
* @param {ArticleCreateManyAndReturnArgs} args - Arguments to create many Articles.
|
||||||
|
* @example
|
||||||
|
* // Create many Articles
|
||||||
|
* const article = await prisma.article.createManyAndReturn({
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
*
|
||||||
|
* // Create many Articles and only return the `id`
|
||||||
|
* const articleWithIdOnly = await prisma.article.createManyAndReturn({
|
||||||
|
* select: { id: true },
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
* Note, that providing `undefined` is treated as the value not being there.
|
||||||
|
* Read more here: https://pris.ly/d/null-undefined
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
createManyAndReturn<T extends ArticleCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ArticleCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ArticlePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Delete a Article.
|
* Delete a Article.
|
||||||
* @param {ArticleDeleteArgs} args - Arguments to delete one Article.
|
* @param {ArticleDeleteArgs} args - Arguments to delete one Article.
|
||||||
@@ -615,6 +650,36 @@ export interface ArticleDelegate<ExtArgs extends runtime.Types.Extensions.Intern
|
|||||||
*/
|
*/
|
||||||
updateMany<T extends ArticleUpdateManyArgs>(args: Prisma.SelectSubset<T, ArticleUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
updateMany<T extends ArticleUpdateManyArgs>(args: Prisma.SelectSubset<T, ArticleUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Update zero or more Articles and returns the data updated in the database.
|
||||||
|
* @param {ArticleUpdateManyAndReturnArgs} args - Arguments to update many Articles.
|
||||||
|
* @example
|
||||||
|
* // Update many Articles
|
||||||
|
* const article = await prisma.article.updateManyAndReturn({
|
||||||
|
* where: {
|
||||||
|
* // ... provide filter here
|
||||||
|
* },
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
*
|
||||||
|
* // Update zero or more Articles and only return the `id`
|
||||||
|
* const articleWithIdOnly = await prisma.article.updateManyAndReturn({
|
||||||
|
* select: { id: true },
|
||||||
|
* where: {
|
||||||
|
* // ... provide filter here
|
||||||
|
* },
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
* Note, that providing `undefined` is treated as the value not being there.
|
||||||
|
* Read more here: https://pris.ly/d/null-undefined
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
updateManyAndReturn<T extends ArticleUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ArticleUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ArticlePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create or update one Article.
|
* Create or update one Article.
|
||||||
* @param {ArticleUpsertArgs} args - Arguments to update or create a Article.
|
* @param {ArticleUpsertArgs} args - Arguments to update or create a Article.
|
||||||
@@ -1023,6 +1088,25 @@ export type ArticleCreateManyArgs<ExtArgs extends runtime.Types.Extensions.Inter
|
|||||||
skipDuplicates?: boolean
|
skipDuplicates?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Article createManyAndReturn
|
||||||
|
*/
|
||||||
|
export type ArticleCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
|
/**
|
||||||
|
* Select specific fields to fetch from the Article
|
||||||
|
*/
|
||||||
|
select?: Prisma.ArticleSelectCreateManyAndReturn<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* Omit specific fields from the Article
|
||||||
|
*/
|
||||||
|
omit?: Prisma.ArticleOmit<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* The data used to create many Articles.
|
||||||
|
*/
|
||||||
|
data: Prisma.ArticleCreateManyInput | Prisma.ArticleCreateManyInput[]
|
||||||
|
skipDuplicates?: boolean
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Article update
|
* Article update
|
||||||
*/
|
*/
|
||||||
@@ -1063,6 +1147,32 @@ export type ArticleUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.Inter
|
|||||||
limit?: number
|
limit?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Article updateManyAndReturn
|
||||||
|
*/
|
||||||
|
export type ArticleUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
|
/**
|
||||||
|
* Select specific fields to fetch from the Article
|
||||||
|
*/
|
||||||
|
select?: Prisma.ArticleSelectUpdateManyAndReturn<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* Omit specific fields from the Article
|
||||||
|
*/
|
||||||
|
omit?: Prisma.ArticleOmit<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* The data used to update Articles.
|
||||||
|
*/
|
||||||
|
data: Prisma.XOR<Prisma.ArticleUpdateManyMutationInput, Prisma.ArticleUncheckedUpdateManyInput>
|
||||||
|
/**
|
||||||
|
* Filter which Articles to update
|
||||||
|
*/
|
||||||
|
where?: Prisma.ArticleWhereInput
|
||||||
|
/**
|
||||||
|
* Limit how many Articles to update.
|
||||||
|
*/
|
||||||
|
limit?: number
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Article upsert
|
* Article upsert
|
||||||
*/
|
*/
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -267,7 +267,6 @@ export type CheckInOrderByWithRelationInput = {
|
|||||||
createdAt?: Prisma.SortOrder
|
createdAt?: Prisma.SortOrder
|
||||||
habit?: Prisma.HabitOrderByWithRelationInput
|
habit?: Prisma.HabitOrderByWithRelationInput
|
||||||
user?: Prisma.UserOrderByWithRelationInput
|
user?: Prisma.UserOrderByWithRelationInput
|
||||||
_relevance?: Prisma.CheckInOrderByRelevanceInput
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type CheckInWhereUniqueInput = Prisma.AtLeast<{
|
export type CheckInWhereUniqueInput = Prisma.AtLeast<{
|
||||||
@@ -399,12 +398,6 @@ export type CheckInOrderByRelationAggregateInput = {
|
|||||||
_count?: Prisma.SortOrder
|
_count?: Prisma.SortOrder
|
||||||
}
|
}
|
||||||
|
|
||||||
export type CheckInOrderByRelevanceInput = {
|
|
||||||
fields: Prisma.CheckInOrderByRelevanceFieldEnum | Prisma.CheckInOrderByRelevanceFieldEnum[]
|
|
||||||
sort: Prisma.SortOrder
|
|
||||||
search: string
|
|
||||||
}
|
|
||||||
|
|
||||||
export type CheckInHabitIdDateSeqCompoundUniqueInput = {
|
export type CheckInHabitIdDateSeqCompoundUniqueInput = {
|
||||||
habitId: number
|
habitId: number
|
||||||
date: string
|
date: string
|
||||||
@@ -739,7 +732,31 @@ export type CheckInSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs
|
|||||||
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
||||||
}, ExtArgs["result"]["checkIn"]>
|
}, ExtArgs["result"]["checkIn"]>
|
||||||
|
|
||||||
|
export type CheckInSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||||
|
id?: boolean
|
||||||
|
habitId?: boolean
|
||||||
|
userId?: boolean
|
||||||
|
date?: boolean
|
||||||
|
seq?: boolean
|
||||||
|
note?: boolean
|
||||||
|
source?: boolean
|
||||||
|
createdAt?: boolean
|
||||||
|
habit?: boolean | Prisma.HabitDefaultArgs<ExtArgs>
|
||||||
|
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
||||||
|
}, ExtArgs["result"]["checkIn"]>
|
||||||
|
|
||||||
|
export type CheckInSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||||
|
id?: boolean
|
||||||
|
habitId?: boolean
|
||||||
|
userId?: boolean
|
||||||
|
date?: boolean
|
||||||
|
seq?: boolean
|
||||||
|
note?: boolean
|
||||||
|
source?: boolean
|
||||||
|
createdAt?: boolean
|
||||||
|
habit?: boolean | Prisma.HabitDefaultArgs<ExtArgs>
|
||||||
|
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
||||||
|
}, ExtArgs["result"]["checkIn"]>
|
||||||
|
|
||||||
export type CheckInSelectScalar = {
|
export type CheckInSelectScalar = {
|
||||||
id?: boolean
|
id?: boolean
|
||||||
@@ -757,6 +774,14 @@ export type CheckInInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs
|
|||||||
habit?: boolean | Prisma.HabitDefaultArgs<ExtArgs>
|
habit?: boolean | Prisma.HabitDefaultArgs<ExtArgs>
|
||||||
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
||||||
}
|
}
|
||||||
|
export type CheckInIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
|
habit?: boolean | Prisma.HabitDefaultArgs<ExtArgs>
|
||||||
|
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
||||||
|
}
|
||||||
|
export type CheckInIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
|
habit?: boolean | Prisma.HabitDefaultArgs<ExtArgs>
|
||||||
|
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
||||||
|
}
|
||||||
|
|
||||||
export type $CheckInPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
export type $CheckInPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
name: "CheckIn"
|
name: "CheckIn"
|
||||||
@@ -890,6 +915,30 @@ export interface CheckInDelegate<ExtArgs extends runtime.Types.Extensions.Intern
|
|||||||
*/
|
*/
|
||||||
createMany<T extends CheckInCreateManyArgs>(args?: Prisma.SelectSubset<T, CheckInCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
createMany<T extends CheckInCreateManyArgs>(args?: Prisma.SelectSubset<T, CheckInCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create many CheckIns and returns the data saved in the database.
|
||||||
|
* @param {CheckInCreateManyAndReturnArgs} args - Arguments to create many CheckIns.
|
||||||
|
* @example
|
||||||
|
* // Create many CheckIns
|
||||||
|
* const checkIn = await prisma.checkIn.createManyAndReturn({
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
*
|
||||||
|
* // Create many CheckIns and only return the `id`
|
||||||
|
* const checkInWithIdOnly = await prisma.checkIn.createManyAndReturn({
|
||||||
|
* select: { id: true },
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
* Note, that providing `undefined` is treated as the value not being there.
|
||||||
|
* Read more here: https://pris.ly/d/null-undefined
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
createManyAndReturn<T extends CheckInCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, CheckInCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CheckInPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Delete a CheckIn.
|
* Delete a CheckIn.
|
||||||
* @param {CheckInDeleteArgs} args - Arguments to delete one CheckIn.
|
* @param {CheckInDeleteArgs} args - Arguments to delete one CheckIn.
|
||||||
@@ -954,6 +1003,36 @@ export interface CheckInDelegate<ExtArgs extends runtime.Types.Extensions.Intern
|
|||||||
*/
|
*/
|
||||||
updateMany<T extends CheckInUpdateManyArgs>(args: Prisma.SelectSubset<T, CheckInUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
updateMany<T extends CheckInUpdateManyArgs>(args: Prisma.SelectSubset<T, CheckInUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Update zero or more CheckIns and returns the data updated in the database.
|
||||||
|
* @param {CheckInUpdateManyAndReturnArgs} args - Arguments to update many CheckIns.
|
||||||
|
* @example
|
||||||
|
* // Update many CheckIns
|
||||||
|
* const checkIn = await prisma.checkIn.updateManyAndReturn({
|
||||||
|
* where: {
|
||||||
|
* // ... provide filter here
|
||||||
|
* },
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
*
|
||||||
|
* // Update zero or more CheckIns and only return the `id`
|
||||||
|
* const checkInWithIdOnly = await prisma.checkIn.updateManyAndReturn({
|
||||||
|
* select: { id: true },
|
||||||
|
* where: {
|
||||||
|
* // ... provide filter here
|
||||||
|
* },
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
* Note, that providing `undefined` is treated as the value not being there.
|
||||||
|
* Read more here: https://pris.ly/d/null-undefined
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
updateManyAndReturn<T extends CheckInUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, CheckInUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CheckInPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create or update one CheckIn.
|
* Create or update one CheckIn.
|
||||||
* @param {CheckInUpsertArgs} args - Arguments to update or create a CheckIn.
|
* @param {CheckInUpsertArgs} args - Arguments to update or create a CheckIn.
|
||||||
@@ -1389,6 +1468,29 @@ export type CheckInCreateManyArgs<ExtArgs extends runtime.Types.Extensions.Inter
|
|||||||
skipDuplicates?: boolean
|
skipDuplicates?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* CheckIn createManyAndReturn
|
||||||
|
*/
|
||||||
|
export type CheckInCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
|
/**
|
||||||
|
* Select specific fields to fetch from the CheckIn
|
||||||
|
*/
|
||||||
|
select?: Prisma.CheckInSelectCreateManyAndReturn<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* Omit specific fields from the CheckIn
|
||||||
|
*/
|
||||||
|
omit?: Prisma.CheckInOmit<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* The data used to create many CheckIns.
|
||||||
|
*/
|
||||||
|
data: Prisma.CheckInCreateManyInput | Prisma.CheckInCreateManyInput[]
|
||||||
|
skipDuplicates?: boolean
|
||||||
|
/**
|
||||||
|
* Choose, which related nodes to fetch as well
|
||||||
|
*/
|
||||||
|
include?: Prisma.CheckInIncludeCreateManyAndReturn<ExtArgs> | null
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CheckIn update
|
* CheckIn update
|
||||||
*/
|
*/
|
||||||
@@ -1433,6 +1535,36 @@ export type CheckInUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.Inter
|
|||||||
limit?: number
|
limit?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* CheckIn updateManyAndReturn
|
||||||
|
*/
|
||||||
|
export type CheckInUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
|
/**
|
||||||
|
* Select specific fields to fetch from the CheckIn
|
||||||
|
*/
|
||||||
|
select?: Prisma.CheckInSelectUpdateManyAndReturn<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* Omit specific fields from the CheckIn
|
||||||
|
*/
|
||||||
|
omit?: Prisma.CheckInOmit<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* The data used to update CheckIns.
|
||||||
|
*/
|
||||||
|
data: Prisma.XOR<Prisma.CheckInUpdateManyMutationInput, Prisma.CheckInUncheckedUpdateManyInput>
|
||||||
|
/**
|
||||||
|
* Filter which CheckIns to update
|
||||||
|
*/
|
||||||
|
where?: Prisma.CheckInWhereInput
|
||||||
|
/**
|
||||||
|
* Limit how many CheckIns to update.
|
||||||
|
*/
|
||||||
|
limit?: number
|
||||||
|
/**
|
||||||
|
* Choose, which related nodes to fetch as well
|
||||||
|
*/
|
||||||
|
include?: Prisma.CheckInIncludeUpdateManyAndReturn<ExtArgs> | null
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CheckIn upsert
|
* CheckIn upsert
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -259,7 +259,6 @@ export type CheckListOrderByWithRelationInput = {
|
|||||||
updatedAt?: Prisma.SortOrder
|
updatedAt?: Prisma.SortOrder
|
||||||
user?: Prisma.UserOrderByWithRelationInput
|
user?: Prisma.UserOrderByWithRelationInput
|
||||||
items?: Prisma.CheckListItemOrderByRelationAggregateInput
|
items?: Prisma.CheckListItemOrderByRelationAggregateInput
|
||||||
_relevance?: Prisma.CheckListOrderByRelevanceInput
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type CheckListWhereUniqueInput = Prisma.AtLeast<{
|
export type CheckListWhereUniqueInput = Prisma.AtLeast<{
|
||||||
@@ -395,12 +394,6 @@ export type CheckListOrderByRelationAggregateInput = {
|
|||||||
_count?: Prisma.SortOrder
|
_count?: Prisma.SortOrder
|
||||||
}
|
}
|
||||||
|
|
||||||
export type CheckListOrderByRelevanceInput = {
|
|
||||||
fields: Prisma.CheckListOrderByRelevanceFieldEnum | Prisma.CheckListOrderByRelevanceFieldEnum[]
|
|
||||||
sort: Prisma.SortOrder
|
|
||||||
search: string
|
|
||||||
}
|
|
||||||
|
|
||||||
export type CheckListCountOrderByAggregateInput = {
|
export type CheckListCountOrderByAggregateInput = {
|
||||||
id?: Prisma.SortOrder
|
id?: Prisma.SortOrder
|
||||||
userId?: Prisma.SortOrder
|
userId?: Prisma.SortOrder
|
||||||
@@ -710,7 +703,29 @@ export type CheckListSelect<ExtArgs extends runtime.Types.Extensions.InternalArg
|
|||||||
_count?: boolean | Prisma.CheckListCountOutputTypeDefaultArgs<ExtArgs>
|
_count?: boolean | Prisma.CheckListCountOutputTypeDefaultArgs<ExtArgs>
|
||||||
}, ExtArgs["result"]["checkList"]>
|
}, ExtArgs["result"]["checkList"]>
|
||||||
|
|
||||||
|
export type CheckListSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||||
|
id?: boolean
|
||||||
|
userId?: boolean
|
||||||
|
title?: boolean
|
||||||
|
scene?: boolean
|
||||||
|
note?: boolean
|
||||||
|
archived?: boolean
|
||||||
|
createdAt?: boolean
|
||||||
|
updatedAt?: boolean
|
||||||
|
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
||||||
|
}, ExtArgs["result"]["checkList"]>
|
||||||
|
|
||||||
|
export type CheckListSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||||
|
id?: boolean
|
||||||
|
userId?: boolean
|
||||||
|
title?: boolean
|
||||||
|
scene?: boolean
|
||||||
|
note?: boolean
|
||||||
|
archived?: boolean
|
||||||
|
createdAt?: boolean
|
||||||
|
updatedAt?: boolean
|
||||||
|
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
||||||
|
}, ExtArgs["result"]["checkList"]>
|
||||||
|
|
||||||
export type CheckListSelectScalar = {
|
export type CheckListSelectScalar = {
|
||||||
id?: boolean
|
id?: boolean
|
||||||
@@ -729,6 +744,12 @@ export type CheckListInclude<ExtArgs extends runtime.Types.Extensions.InternalAr
|
|||||||
items?: boolean | Prisma.CheckList$itemsArgs<ExtArgs>
|
items?: boolean | Prisma.CheckList$itemsArgs<ExtArgs>
|
||||||
_count?: boolean | Prisma.CheckListCountOutputTypeDefaultArgs<ExtArgs>
|
_count?: boolean | Prisma.CheckListCountOutputTypeDefaultArgs<ExtArgs>
|
||||||
}
|
}
|
||||||
|
export type CheckListIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
|
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
||||||
|
}
|
||||||
|
export type CheckListIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
|
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
||||||
|
}
|
||||||
|
|
||||||
export type $CheckListPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
export type $CheckListPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
name: "CheckList"
|
name: "CheckList"
|
||||||
@@ -862,6 +883,30 @@ export interface CheckListDelegate<ExtArgs extends runtime.Types.Extensions.Inte
|
|||||||
*/
|
*/
|
||||||
createMany<T extends CheckListCreateManyArgs>(args?: Prisma.SelectSubset<T, CheckListCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
createMany<T extends CheckListCreateManyArgs>(args?: Prisma.SelectSubset<T, CheckListCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create many CheckLists and returns the data saved in the database.
|
||||||
|
* @param {CheckListCreateManyAndReturnArgs} args - Arguments to create many CheckLists.
|
||||||
|
* @example
|
||||||
|
* // Create many CheckLists
|
||||||
|
* const checkList = await prisma.checkList.createManyAndReturn({
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
*
|
||||||
|
* // Create many CheckLists and only return the `id`
|
||||||
|
* const checkListWithIdOnly = await prisma.checkList.createManyAndReturn({
|
||||||
|
* select: { id: true },
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
* Note, that providing `undefined` is treated as the value not being there.
|
||||||
|
* Read more here: https://pris.ly/d/null-undefined
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
createManyAndReturn<T extends CheckListCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, CheckListCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CheckListPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Delete a CheckList.
|
* Delete a CheckList.
|
||||||
* @param {CheckListDeleteArgs} args - Arguments to delete one CheckList.
|
* @param {CheckListDeleteArgs} args - Arguments to delete one CheckList.
|
||||||
@@ -926,6 +971,36 @@ export interface CheckListDelegate<ExtArgs extends runtime.Types.Extensions.Inte
|
|||||||
*/
|
*/
|
||||||
updateMany<T extends CheckListUpdateManyArgs>(args: Prisma.SelectSubset<T, CheckListUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
updateMany<T extends CheckListUpdateManyArgs>(args: Prisma.SelectSubset<T, CheckListUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Update zero or more CheckLists and returns the data updated in the database.
|
||||||
|
* @param {CheckListUpdateManyAndReturnArgs} args - Arguments to update many CheckLists.
|
||||||
|
* @example
|
||||||
|
* // Update many CheckLists
|
||||||
|
* const checkList = await prisma.checkList.updateManyAndReturn({
|
||||||
|
* where: {
|
||||||
|
* // ... provide filter here
|
||||||
|
* },
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
*
|
||||||
|
* // Update zero or more CheckLists and only return the `id`
|
||||||
|
* const checkListWithIdOnly = await prisma.checkList.updateManyAndReturn({
|
||||||
|
* select: { id: true },
|
||||||
|
* where: {
|
||||||
|
* // ... provide filter here
|
||||||
|
* },
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
* Note, that providing `undefined` is treated as the value not being there.
|
||||||
|
* Read more here: https://pris.ly/d/null-undefined
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
updateManyAndReturn<T extends CheckListUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, CheckListUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CheckListPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create or update one CheckList.
|
* Create or update one CheckList.
|
||||||
* @param {CheckListUpsertArgs} args - Arguments to update or create a CheckList.
|
* @param {CheckListUpsertArgs} args - Arguments to update or create a CheckList.
|
||||||
@@ -1361,6 +1436,29 @@ export type CheckListCreateManyArgs<ExtArgs extends runtime.Types.Extensions.Int
|
|||||||
skipDuplicates?: boolean
|
skipDuplicates?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* CheckList createManyAndReturn
|
||||||
|
*/
|
||||||
|
export type CheckListCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
|
/**
|
||||||
|
* Select specific fields to fetch from the CheckList
|
||||||
|
*/
|
||||||
|
select?: Prisma.CheckListSelectCreateManyAndReturn<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* Omit specific fields from the CheckList
|
||||||
|
*/
|
||||||
|
omit?: Prisma.CheckListOmit<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* The data used to create many CheckLists.
|
||||||
|
*/
|
||||||
|
data: Prisma.CheckListCreateManyInput | Prisma.CheckListCreateManyInput[]
|
||||||
|
skipDuplicates?: boolean
|
||||||
|
/**
|
||||||
|
* Choose, which related nodes to fetch as well
|
||||||
|
*/
|
||||||
|
include?: Prisma.CheckListIncludeCreateManyAndReturn<ExtArgs> | null
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CheckList update
|
* CheckList update
|
||||||
*/
|
*/
|
||||||
@@ -1405,6 +1503,36 @@ export type CheckListUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.Int
|
|||||||
limit?: number
|
limit?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* CheckList updateManyAndReturn
|
||||||
|
*/
|
||||||
|
export type CheckListUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
|
/**
|
||||||
|
* Select specific fields to fetch from the CheckList
|
||||||
|
*/
|
||||||
|
select?: Prisma.CheckListSelectUpdateManyAndReturn<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* Omit specific fields from the CheckList
|
||||||
|
*/
|
||||||
|
omit?: Prisma.CheckListOmit<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* The data used to update CheckLists.
|
||||||
|
*/
|
||||||
|
data: Prisma.XOR<Prisma.CheckListUpdateManyMutationInput, Prisma.CheckListUncheckedUpdateManyInput>
|
||||||
|
/**
|
||||||
|
* Filter which CheckLists to update
|
||||||
|
*/
|
||||||
|
where?: Prisma.CheckListWhereInput
|
||||||
|
/**
|
||||||
|
* Limit how many CheckLists to update.
|
||||||
|
*/
|
||||||
|
limit?: number
|
||||||
|
/**
|
||||||
|
* Choose, which related nodes to fetch as well
|
||||||
|
*/
|
||||||
|
include?: Prisma.CheckListIncludeUpdateManyAndReturn<ExtArgs> | null
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CheckList upsert
|
* CheckList upsert
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -270,7 +270,6 @@ export type CheckListItemOrderByWithRelationInput = {
|
|||||||
createdAt?: Prisma.SortOrder
|
createdAt?: Prisma.SortOrder
|
||||||
updatedAt?: Prisma.SortOrder
|
updatedAt?: Prisma.SortOrder
|
||||||
list?: Prisma.CheckListOrderByWithRelationInput
|
list?: Prisma.CheckListOrderByWithRelationInput
|
||||||
_relevance?: Prisma.CheckListItemOrderByRelevanceInput
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type CheckListItemWhereUniqueInput = Prisma.AtLeast<{
|
export type CheckListItemWhereUniqueInput = Prisma.AtLeast<{
|
||||||
@@ -411,12 +410,6 @@ export type CheckListItemOrderByRelationAggregateInput = {
|
|||||||
_count?: Prisma.SortOrder
|
_count?: Prisma.SortOrder
|
||||||
}
|
}
|
||||||
|
|
||||||
export type CheckListItemOrderByRelevanceInput = {
|
|
||||||
fields: Prisma.CheckListItemOrderByRelevanceFieldEnum | Prisma.CheckListItemOrderByRelevanceFieldEnum[]
|
|
||||||
sort: Prisma.SortOrder
|
|
||||||
search: string
|
|
||||||
}
|
|
||||||
|
|
||||||
export type CheckListItemCountOrderByAggregateInput = {
|
export type CheckListItemCountOrderByAggregateInput = {
|
||||||
id?: Prisma.SortOrder
|
id?: Prisma.SortOrder
|
||||||
listId?: Prisma.SortOrder
|
listId?: Prisma.SortOrder
|
||||||
@@ -627,7 +620,31 @@ export type CheckListItemSelect<ExtArgs extends runtime.Types.Extensions.Interna
|
|||||||
list?: boolean | Prisma.CheckListDefaultArgs<ExtArgs>
|
list?: boolean | Prisma.CheckListDefaultArgs<ExtArgs>
|
||||||
}, ExtArgs["result"]["checkListItem"]>
|
}, ExtArgs["result"]["checkListItem"]>
|
||||||
|
|
||||||
|
export type CheckListItemSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||||
|
id?: boolean
|
||||||
|
listId?: boolean
|
||||||
|
title?: boolean
|
||||||
|
note?: boolean
|
||||||
|
done?: boolean
|
||||||
|
doneAt?: boolean
|
||||||
|
sortOrder?: boolean
|
||||||
|
createdAt?: boolean
|
||||||
|
updatedAt?: boolean
|
||||||
|
list?: boolean | Prisma.CheckListDefaultArgs<ExtArgs>
|
||||||
|
}, ExtArgs["result"]["checkListItem"]>
|
||||||
|
|
||||||
|
export type CheckListItemSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||||
|
id?: boolean
|
||||||
|
listId?: boolean
|
||||||
|
title?: boolean
|
||||||
|
note?: boolean
|
||||||
|
done?: boolean
|
||||||
|
doneAt?: boolean
|
||||||
|
sortOrder?: boolean
|
||||||
|
createdAt?: boolean
|
||||||
|
updatedAt?: boolean
|
||||||
|
list?: boolean | Prisma.CheckListDefaultArgs<ExtArgs>
|
||||||
|
}, ExtArgs["result"]["checkListItem"]>
|
||||||
|
|
||||||
export type CheckListItemSelectScalar = {
|
export type CheckListItemSelectScalar = {
|
||||||
id?: boolean
|
id?: boolean
|
||||||
@@ -645,6 +662,12 @@ export type CheckListItemOmit<ExtArgs extends runtime.Types.Extensions.InternalA
|
|||||||
export type CheckListItemInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
export type CheckListItemInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
list?: boolean | Prisma.CheckListDefaultArgs<ExtArgs>
|
list?: boolean | Prisma.CheckListDefaultArgs<ExtArgs>
|
||||||
}
|
}
|
||||||
|
export type CheckListItemIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
|
list?: boolean | Prisma.CheckListDefaultArgs<ExtArgs>
|
||||||
|
}
|
||||||
|
export type CheckListItemIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
|
list?: boolean | Prisma.CheckListDefaultArgs<ExtArgs>
|
||||||
|
}
|
||||||
|
|
||||||
export type $CheckListItemPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
export type $CheckListItemPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
name: "CheckListItem"
|
name: "CheckListItem"
|
||||||
@@ -778,6 +801,30 @@ export interface CheckListItemDelegate<ExtArgs extends runtime.Types.Extensions.
|
|||||||
*/
|
*/
|
||||||
createMany<T extends CheckListItemCreateManyArgs>(args?: Prisma.SelectSubset<T, CheckListItemCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
createMany<T extends CheckListItemCreateManyArgs>(args?: Prisma.SelectSubset<T, CheckListItemCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create many CheckListItems and returns the data saved in the database.
|
||||||
|
* @param {CheckListItemCreateManyAndReturnArgs} args - Arguments to create many CheckListItems.
|
||||||
|
* @example
|
||||||
|
* // Create many CheckListItems
|
||||||
|
* const checkListItem = await prisma.checkListItem.createManyAndReturn({
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
*
|
||||||
|
* // Create many CheckListItems and only return the `id`
|
||||||
|
* const checkListItemWithIdOnly = await prisma.checkListItem.createManyAndReturn({
|
||||||
|
* select: { id: true },
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
* Note, that providing `undefined` is treated as the value not being there.
|
||||||
|
* Read more here: https://pris.ly/d/null-undefined
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
createManyAndReturn<T extends CheckListItemCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, CheckListItemCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CheckListItemPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Delete a CheckListItem.
|
* Delete a CheckListItem.
|
||||||
* @param {CheckListItemDeleteArgs} args - Arguments to delete one CheckListItem.
|
* @param {CheckListItemDeleteArgs} args - Arguments to delete one CheckListItem.
|
||||||
@@ -842,6 +889,36 @@ export interface CheckListItemDelegate<ExtArgs extends runtime.Types.Extensions.
|
|||||||
*/
|
*/
|
||||||
updateMany<T extends CheckListItemUpdateManyArgs>(args: Prisma.SelectSubset<T, CheckListItemUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
updateMany<T extends CheckListItemUpdateManyArgs>(args: Prisma.SelectSubset<T, CheckListItemUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Update zero or more CheckListItems and returns the data updated in the database.
|
||||||
|
* @param {CheckListItemUpdateManyAndReturnArgs} args - Arguments to update many CheckListItems.
|
||||||
|
* @example
|
||||||
|
* // Update many CheckListItems
|
||||||
|
* const checkListItem = await prisma.checkListItem.updateManyAndReturn({
|
||||||
|
* where: {
|
||||||
|
* // ... provide filter here
|
||||||
|
* },
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
*
|
||||||
|
* // Update zero or more CheckListItems and only return the `id`
|
||||||
|
* const checkListItemWithIdOnly = await prisma.checkListItem.updateManyAndReturn({
|
||||||
|
* select: { id: true },
|
||||||
|
* where: {
|
||||||
|
* // ... provide filter here
|
||||||
|
* },
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
* Note, that providing `undefined` is treated as the value not being there.
|
||||||
|
* Read more here: https://pris.ly/d/null-undefined
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
updateManyAndReturn<T extends CheckListItemUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, CheckListItemUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CheckListItemPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create or update one CheckListItem.
|
* Create or update one CheckListItem.
|
||||||
* @param {CheckListItemUpsertArgs} args - Arguments to update or create a CheckListItem.
|
* @param {CheckListItemUpsertArgs} args - Arguments to update or create a CheckListItem.
|
||||||
@@ -1277,6 +1354,29 @@ export type CheckListItemCreateManyArgs<ExtArgs extends runtime.Types.Extensions
|
|||||||
skipDuplicates?: boolean
|
skipDuplicates?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* CheckListItem createManyAndReturn
|
||||||
|
*/
|
||||||
|
export type CheckListItemCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
|
/**
|
||||||
|
* Select specific fields to fetch from the CheckListItem
|
||||||
|
*/
|
||||||
|
select?: Prisma.CheckListItemSelectCreateManyAndReturn<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* Omit specific fields from the CheckListItem
|
||||||
|
*/
|
||||||
|
omit?: Prisma.CheckListItemOmit<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* The data used to create many CheckListItems.
|
||||||
|
*/
|
||||||
|
data: Prisma.CheckListItemCreateManyInput | Prisma.CheckListItemCreateManyInput[]
|
||||||
|
skipDuplicates?: boolean
|
||||||
|
/**
|
||||||
|
* Choose, which related nodes to fetch as well
|
||||||
|
*/
|
||||||
|
include?: Prisma.CheckListItemIncludeCreateManyAndReturn<ExtArgs> | null
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CheckListItem update
|
* CheckListItem update
|
||||||
*/
|
*/
|
||||||
@@ -1321,6 +1421,36 @@ export type CheckListItemUpdateManyArgs<ExtArgs extends runtime.Types.Extensions
|
|||||||
limit?: number
|
limit?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* CheckListItem updateManyAndReturn
|
||||||
|
*/
|
||||||
|
export type CheckListItemUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
|
/**
|
||||||
|
* Select specific fields to fetch from the CheckListItem
|
||||||
|
*/
|
||||||
|
select?: Prisma.CheckListItemSelectUpdateManyAndReturn<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* Omit specific fields from the CheckListItem
|
||||||
|
*/
|
||||||
|
omit?: Prisma.CheckListItemOmit<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* The data used to update CheckListItems.
|
||||||
|
*/
|
||||||
|
data: Prisma.XOR<Prisma.CheckListItemUpdateManyMutationInput, Prisma.CheckListItemUncheckedUpdateManyInput>
|
||||||
|
/**
|
||||||
|
* Filter which CheckListItems to update
|
||||||
|
*/
|
||||||
|
where?: Prisma.CheckListItemWhereInput
|
||||||
|
/**
|
||||||
|
* Limit how many CheckListItems to update.
|
||||||
|
*/
|
||||||
|
limit?: number
|
||||||
|
/**
|
||||||
|
* Choose, which related nodes to fetch as well
|
||||||
|
*/
|
||||||
|
include?: Prisma.CheckListItemIncludeUpdateManyAndReturn<ExtArgs> | null
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CheckListItem upsert
|
* CheckListItem upsert
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -253,7 +253,6 @@ export type CheckListTemplateOrderByWithRelationInput = {
|
|||||||
createdAt?: Prisma.SortOrder
|
createdAt?: Prisma.SortOrder
|
||||||
updatedAt?: Prisma.SortOrder
|
updatedAt?: Prisma.SortOrder
|
||||||
user?: Prisma.UserOrderByWithRelationInput
|
user?: Prisma.UserOrderByWithRelationInput
|
||||||
_relevance?: Prisma.CheckListTemplateOrderByRelevanceInput
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type CheckListTemplateWhereUniqueInput = Prisma.AtLeast<{
|
export type CheckListTemplateWhereUniqueInput = Prisma.AtLeast<{
|
||||||
@@ -384,12 +383,6 @@ export type CheckListTemplateOrderByRelationAggregateInput = {
|
|||||||
_count?: Prisma.SortOrder
|
_count?: Prisma.SortOrder
|
||||||
}
|
}
|
||||||
|
|
||||||
export type CheckListTemplateOrderByRelevanceInput = {
|
|
||||||
fields: Prisma.CheckListTemplateOrderByRelevanceFieldEnum | Prisma.CheckListTemplateOrderByRelevanceFieldEnum[]
|
|
||||||
sort: Prisma.SortOrder
|
|
||||||
search: string
|
|
||||||
}
|
|
||||||
|
|
||||||
export type CheckListTemplateCountOrderByAggregateInput = {
|
export type CheckListTemplateCountOrderByAggregateInput = {
|
||||||
id?: Prisma.SortOrder
|
id?: Prisma.SortOrder
|
||||||
userId?: Prisma.SortOrder
|
userId?: Prisma.SortOrder
|
||||||
@@ -585,7 +578,29 @@ export type CheckListTemplateSelect<ExtArgs extends runtime.Types.Extensions.Int
|
|||||||
user?: boolean | Prisma.CheckListTemplate$userArgs<ExtArgs>
|
user?: boolean | Prisma.CheckListTemplate$userArgs<ExtArgs>
|
||||||
}, ExtArgs["result"]["checkListTemplate"]>
|
}, ExtArgs["result"]["checkListTemplate"]>
|
||||||
|
|
||||||
|
export type CheckListTemplateSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||||
|
id?: boolean
|
||||||
|
userId?: boolean
|
||||||
|
name?: boolean
|
||||||
|
scene?: boolean
|
||||||
|
items?: boolean
|
||||||
|
builtin?: boolean
|
||||||
|
createdAt?: boolean
|
||||||
|
updatedAt?: boolean
|
||||||
|
user?: boolean | Prisma.CheckListTemplate$userArgs<ExtArgs>
|
||||||
|
}, ExtArgs["result"]["checkListTemplate"]>
|
||||||
|
|
||||||
|
export type CheckListTemplateSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||||
|
id?: boolean
|
||||||
|
userId?: boolean
|
||||||
|
name?: boolean
|
||||||
|
scene?: boolean
|
||||||
|
items?: boolean
|
||||||
|
builtin?: boolean
|
||||||
|
createdAt?: boolean
|
||||||
|
updatedAt?: boolean
|
||||||
|
user?: boolean | Prisma.CheckListTemplate$userArgs<ExtArgs>
|
||||||
|
}, ExtArgs["result"]["checkListTemplate"]>
|
||||||
|
|
||||||
export type CheckListTemplateSelectScalar = {
|
export type CheckListTemplateSelectScalar = {
|
||||||
id?: boolean
|
id?: boolean
|
||||||
@@ -602,6 +617,12 @@ export type CheckListTemplateOmit<ExtArgs extends runtime.Types.Extensions.Inter
|
|||||||
export type CheckListTemplateInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
export type CheckListTemplateInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
user?: boolean | Prisma.CheckListTemplate$userArgs<ExtArgs>
|
user?: boolean | Prisma.CheckListTemplate$userArgs<ExtArgs>
|
||||||
}
|
}
|
||||||
|
export type CheckListTemplateIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
|
user?: boolean | Prisma.CheckListTemplate$userArgs<ExtArgs>
|
||||||
|
}
|
||||||
|
export type CheckListTemplateIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
|
user?: boolean | Prisma.CheckListTemplate$userArgs<ExtArgs>
|
||||||
|
}
|
||||||
|
|
||||||
export type $CheckListTemplatePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
export type $CheckListTemplatePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
name: "CheckListTemplate"
|
name: "CheckListTemplate"
|
||||||
@@ -734,6 +755,30 @@ export interface CheckListTemplateDelegate<ExtArgs extends runtime.Types.Extensi
|
|||||||
*/
|
*/
|
||||||
createMany<T extends CheckListTemplateCreateManyArgs>(args?: Prisma.SelectSubset<T, CheckListTemplateCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
createMany<T extends CheckListTemplateCreateManyArgs>(args?: Prisma.SelectSubset<T, CheckListTemplateCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create many CheckListTemplates and returns the data saved in the database.
|
||||||
|
* @param {CheckListTemplateCreateManyAndReturnArgs} args - Arguments to create many CheckListTemplates.
|
||||||
|
* @example
|
||||||
|
* // Create many CheckListTemplates
|
||||||
|
* const checkListTemplate = await prisma.checkListTemplate.createManyAndReturn({
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
*
|
||||||
|
* // Create many CheckListTemplates and only return the `id`
|
||||||
|
* const checkListTemplateWithIdOnly = await prisma.checkListTemplate.createManyAndReturn({
|
||||||
|
* select: { id: true },
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
* Note, that providing `undefined` is treated as the value not being there.
|
||||||
|
* Read more here: https://pris.ly/d/null-undefined
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
createManyAndReturn<T extends CheckListTemplateCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, CheckListTemplateCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CheckListTemplatePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Delete a CheckListTemplate.
|
* Delete a CheckListTemplate.
|
||||||
* @param {CheckListTemplateDeleteArgs} args - Arguments to delete one CheckListTemplate.
|
* @param {CheckListTemplateDeleteArgs} args - Arguments to delete one CheckListTemplate.
|
||||||
@@ -798,6 +843,36 @@ export interface CheckListTemplateDelegate<ExtArgs extends runtime.Types.Extensi
|
|||||||
*/
|
*/
|
||||||
updateMany<T extends CheckListTemplateUpdateManyArgs>(args: Prisma.SelectSubset<T, CheckListTemplateUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
updateMany<T extends CheckListTemplateUpdateManyArgs>(args: Prisma.SelectSubset<T, CheckListTemplateUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Update zero or more CheckListTemplates and returns the data updated in the database.
|
||||||
|
* @param {CheckListTemplateUpdateManyAndReturnArgs} args - Arguments to update many CheckListTemplates.
|
||||||
|
* @example
|
||||||
|
* // Update many CheckListTemplates
|
||||||
|
* const checkListTemplate = await prisma.checkListTemplate.updateManyAndReturn({
|
||||||
|
* where: {
|
||||||
|
* // ... provide filter here
|
||||||
|
* },
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
*
|
||||||
|
* // Update zero or more CheckListTemplates and only return the `id`
|
||||||
|
* const checkListTemplateWithIdOnly = await prisma.checkListTemplate.updateManyAndReturn({
|
||||||
|
* select: { id: true },
|
||||||
|
* where: {
|
||||||
|
* // ... provide filter here
|
||||||
|
* },
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
* Note, that providing `undefined` is treated as the value not being there.
|
||||||
|
* Read more here: https://pris.ly/d/null-undefined
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
updateManyAndReturn<T extends CheckListTemplateUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, CheckListTemplateUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CheckListTemplatePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create or update one CheckListTemplate.
|
* Create or update one CheckListTemplate.
|
||||||
* @param {CheckListTemplateUpsertArgs} args - Arguments to update or create a CheckListTemplate.
|
* @param {CheckListTemplateUpsertArgs} args - Arguments to update or create a CheckListTemplate.
|
||||||
@@ -1232,6 +1307,29 @@ export type CheckListTemplateCreateManyArgs<ExtArgs extends runtime.Types.Extens
|
|||||||
skipDuplicates?: boolean
|
skipDuplicates?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* CheckListTemplate createManyAndReturn
|
||||||
|
*/
|
||||||
|
export type CheckListTemplateCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
|
/**
|
||||||
|
* Select specific fields to fetch from the CheckListTemplate
|
||||||
|
*/
|
||||||
|
select?: Prisma.CheckListTemplateSelectCreateManyAndReturn<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* Omit specific fields from the CheckListTemplate
|
||||||
|
*/
|
||||||
|
omit?: Prisma.CheckListTemplateOmit<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* The data used to create many CheckListTemplates.
|
||||||
|
*/
|
||||||
|
data: Prisma.CheckListTemplateCreateManyInput | Prisma.CheckListTemplateCreateManyInput[]
|
||||||
|
skipDuplicates?: boolean
|
||||||
|
/**
|
||||||
|
* Choose, which related nodes to fetch as well
|
||||||
|
*/
|
||||||
|
include?: Prisma.CheckListTemplateIncludeCreateManyAndReturn<ExtArgs> | null
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CheckListTemplate update
|
* CheckListTemplate update
|
||||||
*/
|
*/
|
||||||
@@ -1276,6 +1374,36 @@ export type CheckListTemplateUpdateManyArgs<ExtArgs extends runtime.Types.Extens
|
|||||||
limit?: number
|
limit?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* CheckListTemplate updateManyAndReturn
|
||||||
|
*/
|
||||||
|
export type CheckListTemplateUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
|
/**
|
||||||
|
* Select specific fields to fetch from the CheckListTemplate
|
||||||
|
*/
|
||||||
|
select?: Prisma.CheckListTemplateSelectUpdateManyAndReturn<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* Omit specific fields from the CheckListTemplate
|
||||||
|
*/
|
||||||
|
omit?: Prisma.CheckListTemplateOmit<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* The data used to update CheckListTemplates.
|
||||||
|
*/
|
||||||
|
data: Prisma.XOR<Prisma.CheckListTemplateUpdateManyMutationInput, Prisma.CheckListTemplateUncheckedUpdateManyInput>
|
||||||
|
/**
|
||||||
|
* Filter which CheckListTemplates to update
|
||||||
|
*/
|
||||||
|
where?: Prisma.CheckListTemplateWhereInput
|
||||||
|
/**
|
||||||
|
* Limit how many CheckListTemplates to update.
|
||||||
|
*/
|
||||||
|
limit?: number
|
||||||
|
/**
|
||||||
|
* Choose, which related nodes to fetch as well
|
||||||
|
*/
|
||||||
|
include?: Prisma.CheckListTemplateIncludeUpdateManyAndReturn<ExtArgs> | null
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CheckListTemplate upsert
|
* CheckListTemplate upsert
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -228,7 +228,6 @@ export type Econ_SowInventoryOrderByWithRelationInput = {
|
|||||||
inventory?: Prisma.SortOrder
|
inventory?: Prisma.SortOrder
|
||||||
createdAt?: Prisma.SortOrder
|
createdAt?: Prisma.SortOrder
|
||||||
updatedAt?: Prisma.SortOrder
|
updatedAt?: Prisma.SortOrder
|
||||||
_relevance?: Prisma.Econ_SowInventoryOrderByRelevanceInput
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type Econ_SowInventoryWhereUniqueInput = Prisma.AtLeast<{
|
export type Econ_SowInventoryWhereUniqueInput = Prisma.AtLeast<{
|
||||||
@@ -319,12 +318,6 @@ export type Econ_SowInventoryUncheckedUpdateManyInput = {
|
|||||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type Econ_SowInventoryOrderByRelevanceInput = {
|
|
||||||
fields: Prisma.Econ_SowInventoryOrderByRelevanceFieldEnum | Prisma.Econ_SowInventoryOrderByRelevanceFieldEnum[]
|
|
||||||
sort: Prisma.SortOrder
|
|
||||||
search: string
|
|
||||||
}
|
|
||||||
|
|
||||||
export type Econ_SowInventoryCountOrderByAggregateInput = {
|
export type Econ_SowInventoryCountOrderByAggregateInput = {
|
||||||
id?: Prisma.SortOrder
|
id?: Prisma.SortOrder
|
||||||
month?: Prisma.SortOrder
|
month?: Prisma.SortOrder
|
||||||
@@ -369,7 +362,21 @@ export type Econ_SowInventorySelect<ExtArgs extends runtime.Types.Extensions.Int
|
|||||||
updatedAt?: boolean
|
updatedAt?: boolean
|
||||||
}, ExtArgs["result"]["econ_SowInventory"]>
|
}, ExtArgs["result"]["econ_SowInventory"]>
|
||||||
|
|
||||||
|
export type Econ_SowInventorySelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||||
|
id?: boolean
|
||||||
|
month?: boolean
|
||||||
|
inventory?: boolean
|
||||||
|
createdAt?: boolean
|
||||||
|
updatedAt?: boolean
|
||||||
|
}, ExtArgs["result"]["econ_SowInventory"]>
|
||||||
|
|
||||||
|
export type Econ_SowInventorySelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||||
|
id?: boolean
|
||||||
|
month?: boolean
|
||||||
|
inventory?: boolean
|
||||||
|
createdAt?: boolean
|
||||||
|
updatedAt?: boolean
|
||||||
|
}, ExtArgs["result"]["econ_SowInventory"]>
|
||||||
|
|
||||||
export type Econ_SowInventorySelectScalar = {
|
export type Econ_SowInventorySelectScalar = {
|
||||||
id?: boolean
|
id?: boolean
|
||||||
@@ -507,6 +514,30 @@ export interface Econ_SowInventoryDelegate<ExtArgs extends runtime.Types.Extensi
|
|||||||
*/
|
*/
|
||||||
createMany<T extends Econ_SowInventoryCreateManyArgs>(args?: Prisma.SelectSubset<T, Econ_SowInventoryCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
createMany<T extends Econ_SowInventoryCreateManyArgs>(args?: Prisma.SelectSubset<T, Econ_SowInventoryCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create many Econ_SowInventories and returns the data saved in the database.
|
||||||
|
* @param {Econ_SowInventoryCreateManyAndReturnArgs} args - Arguments to create many Econ_SowInventories.
|
||||||
|
* @example
|
||||||
|
* // Create many Econ_SowInventories
|
||||||
|
* const econ_SowInventory = await prisma.econ_SowInventory.createManyAndReturn({
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
*
|
||||||
|
* // Create many Econ_SowInventories and only return the `id`
|
||||||
|
* const econ_SowInventoryWithIdOnly = await prisma.econ_SowInventory.createManyAndReturn({
|
||||||
|
* select: { id: true },
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
* Note, that providing `undefined` is treated as the value not being there.
|
||||||
|
* Read more here: https://pris.ly/d/null-undefined
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
createManyAndReturn<T extends Econ_SowInventoryCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, Econ_SowInventoryCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$Econ_SowInventoryPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Delete a Econ_SowInventory.
|
* Delete a Econ_SowInventory.
|
||||||
* @param {Econ_SowInventoryDeleteArgs} args - Arguments to delete one Econ_SowInventory.
|
* @param {Econ_SowInventoryDeleteArgs} args - Arguments to delete one Econ_SowInventory.
|
||||||
@@ -571,6 +602,36 @@ export interface Econ_SowInventoryDelegate<ExtArgs extends runtime.Types.Extensi
|
|||||||
*/
|
*/
|
||||||
updateMany<T extends Econ_SowInventoryUpdateManyArgs>(args: Prisma.SelectSubset<T, Econ_SowInventoryUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
updateMany<T extends Econ_SowInventoryUpdateManyArgs>(args: Prisma.SelectSubset<T, Econ_SowInventoryUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Update zero or more Econ_SowInventories and returns the data updated in the database.
|
||||||
|
* @param {Econ_SowInventoryUpdateManyAndReturnArgs} args - Arguments to update many Econ_SowInventories.
|
||||||
|
* @example
|
||||||
|
* // Update many Econ_SowInventories
|
||||||
|
* const econ_SowInventory = await prisma.econ_SowInventory.updateManyAndReturn({
|
||||||
|
* where: {
|
||||||
|
* // ... provide filter here
|
||||||
|
* },
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
*
|
||||||
|
* // Update zero or more Econ_SowInventories and only return the `id`
|
||||||
|
* const econ_SowInventoryWithIdOnly = await prisma.econ_SowInventory.updateManyAndReturn({
|
||||||
|
* select: { id: true },
|
||||||
|
* where: {
|
||||||
|
* // ... provide filter here
|
||||||
|
* },
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
* Note, that providing `undefined` is treated as the value not being there.
|
||||||
|
* Read more here: https://pris.ly/d/null-undefined
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
updateManyAndReturn<T extends Econ_SowInventoryUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, Econ_SowInventoryUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$Econ_SowInventoryPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create or update one Econ_SowInventory.
|
* Create or update one Econ_SowInventory.
|
||||||
* @param {Econ_SowInventoryUpsertArgs} args - Arguments to update or create a Econ_SowInventory.
|
* @param {Econ_SowInventoryUpsertArgs} args - Arguments to update or create a Econ_SowInventory.
|
||||||
@@ -977,6 +1038,25 @@ export type Econ_SowInventoryCreateManyArgs<ExtArgs extends runtime.Types.Extens
|
|||||||
skipDuplicates?: boolean
|
skipDuplicates?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Econ_SowInventory createManyAndReturn
|
||||||
|
*/
|
||||||
|
export type Econ_SowInventoryCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
|
/**
|
||||||
|
* Select specific fields to fetch from the Econ_SowInventory
|
||||||
|
*/
|
||||||
|
select?: Prisma.Econ_SowInventorySelectCreateManyAndReturn<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* Omit specific fields from the Econ_SowInventory
|
||||||
|
*/
|
||||||
|
omit?: Prisma.Econ_SowInventoryOmit<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* The data used to create many Econ_SowInventories.
|
||||||
|
*/
|
||||||
|
data: Prisma.Econ_SowInventoryCreateManyInput | Prisma.Econ_SowInventoryCreateManyInput[]
|
||||||
|
skipDuplicates?: boolean
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Econ_SowInventory update
|
* Econ_SowInventory update
|
||||||
*/
|
*/
|
||||||
@@ -1017,6 +1097,32 @@ export type Econ_SowInventoryUpdateManyArgs<ExtArgs extends runtime.Types.Extens
|
|||||||
limit?: number
|
limit?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Econ_SowInventory updateManyAndReturn
|
||||||
|
*/
|
||||||
|
export type Econ_SowInventoryUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
|
/**
|
||||||
|
* Select specific fields to fetch from the Econ_SowInventory
|
||||||
|
*/
|
||||||
|
select?: Prisma.Econ_SowInventorySelectUpdateManyAndReturn<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* Omit specific fields from the Econ_SowInventory
|
||||||
|
*/
|
||||||
|
omit?: Prisma.Econ_SowInventoryOmit<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* The data used to update Econ_SowInventories.
|
||||||
|
*/
|
||||||
|
data: Prisma.XOR<Prisma.Econ_SowInventoryUpdateManyMutationInput, Prisma.Econ_SowInventoryUncheckedUpdateManyInput>
|
||||||
|
/**
|
||||||
|
* Filter which Econ_SowInventories to update
|
||||||
|
*/
|
||||||
|
where?: Prisma.Econ_SowInventoryWhereInput
|
||||||
|
/**
|
||||||
|
* Limit how many Econ_SowInventories to update.
|
||||||
|
*/
|
||||||
|
limit?: number
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Econ_SowInventory upsert
|
* Econ_SowInventory upsert
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -303,7 +303,6 @@ export type HabitOrderByWithRelationInput = {
|
|||||||
updatedAt?: Prisma.SortOrder
|
updatedAt?: Prisma.SortOrder
|
||||||
user?: Prisma.UserOrderByWithRelationInput
|
user?: Prisma.UserOrderByWithRelationInput
|
||||||
records?: Prisma.CheckInOrderByRelationAggregateInput
|
records?: Prisma.CheckInOrderByRelationAggregateInput
|
||||||
_relevance?: Prisma.HabitOrderByRelevanceInput
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type HabitWhereUniqueInput = Prisma.AtLeast<{
|
export type HabitWhereUniqueInput = Prisma.AtLeast<{
|
||||||
@@ -479,12 +478,6 @@ export type HabitOrderByRelationAggregateInput = {
|
|||||||
_count?: Prisma.SortOrder
|
_count?: Prisma.SortOrder
|
||||||
}
|
}
|
||||||
|
|
||||||
export type HabitOrderByRelevanceInput = {
|
|
||||||
fields: Prisma.HabitOrderByRelevanceFieldEnum | Prisma.HabitOrderByRelevanceFieldEnum[]
|
|
||||||
sort: Prisma.SortOrder
|
|
||||||
search: string
|
|
||||||
}
|
|
||||||
|
|
||||||
export type HabitCountOrderByAggregateInput = {
|
export type HabitCountOrderByAggregateInput = {
|
||||||
id?: Prisma.SortOrder
|
id?: Prisma.SortOrder
|
||||||
userId?: Prisma.SortOrder
|
userId?: Prisma.SortOrder
|
||||||
@@ -858,7 +851,37 @@ export type HabitSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs =
|
|||||||
_count?: boolean | Prisma.HabitCountOutputTypeDefaultArgs<ExtArgs>
|
_count?: boolean | Prisma.HabitCountOutputTypeDefaultArgs<ExtArgs>
|
||||||
}, ExtArgs["result"]["habit"]>
|
}, ExtArgs["result"]["habit"]>
|
||||||
|
|
||||||
|
export type HabitSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||||
|
id?: boolean
|
||||||
|
userId?: boolean
|
||||||
|
name?: boolean
|
||||||
|
period?: boolean
|
||||||
|
target?: boolean
|
||||||
|
color?: boolean
|
||||||
|
icon?: boolean
|
||||||
|
note?: boolean
|
||||||
|
archived?: boolean
|
||||||
|
sortOrder?: boolean
|
||||||
|
createdAt?: boolean
|
||||||
|
updatedAt?: boolean
|
||||||
|
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
||||||
|
}, ExtArgs["result"]["habit"]>
|
||||||
|
|
||||||
|
export type HabitSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||||
|
id?: boolean
|
||||||
|
userId?: boolean
|
||||||
|
name?: boolean
|
||||||
|
period?: boolean
|
||||||
|
target?: boolean
|
||||||
|
color?: boolean
|
||||||
|
icon?: boolean
|
||||||
|
note?: boolean
|
||||||
|
archived?: boolean
|
||||||
|
sortOrder?: boolean
|
||||||
|
createdAt?: boolean
|
||||||
|
updatedAt?: boolean
|
||||||
|
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
||||||
|
}, ExtArgs["result"]["habit"]>
|
||||||
|
|
||||||
export type HabitSelectScalar = {
|
export type HabitSelectScalar = {
|
||||||
id?: boolean
|
id?: boolean
|
||||||
@@ -881,6 +904,12 @@ export type HabitInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs =
|
|||||||
records?: boolean | Prisma.Habit$recordsArgs<ExtArgs>
|
records?: boolean | Prisma.Habit$recordsArgs<ExtArgs>
|
||||||
_count?: boolean | Prisma.HabitCountOutputTypeDefaultArgs<ExtArgs>
|
_count?: boolean | Prisma.HabitCountOutputTypeDefaultArgs<ExtArgs>
|
||||||
}
|
}
|
||||||
|
export type HabitIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
|
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
||||||
|
}
|
||||||
|
export type HabitIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
|
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
||||||
|
}
|
||||||
|
|
||||||
export type $HabitPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
export type $HabitPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
name: "Habit"
|
name: "Habit"
|
||||||
@@ -1018,6 +1047,30 @@ export interface HabitDelegate<ExtArgs extends runtime.Types.Extensions.Internal
|
|||||||
*/
|
*/
|
||||||
createMany<T extends HabitCreateManyArgs>(args?: Prisma.SelectSubset<T, HabitCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
createMany<T extends HabitCreateManyArgs>(args?: Prisma.SelectSubset<T, HabitCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create many Habits and returns the data saved in the database.
|
||||||
|
* @param {HabitCreateManyAndReturnArgs} args - Arguments to create many Habits.
|
||||||
|
* @example
|
||||||
|
* // Create many Habits
|
||||||
|
* const habit = await prisma.habit.createManyAndReturn({
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
*
|
||||||
|
* // Create many Habits and only return the `id`
|
||||||
|
* const habitWithIdOnly = await prisma.habit.createManyAndReturn({
|
||||||
|
* select: { id: true },
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
* Note, that providing `undefined` is treated as the value not being there.
|
||||||
|
* Read more here: https://pris.ly/d/null-undefined
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
createManyAndReturn<T extends HabitCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, HabitCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$HabitPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Delete a Habit.
|
* Delete a Habit.
|
||||||
* @param {HabitDeleteArgs} args - Arguments to delete one Habit.
|
* @param {HabitDeleteArgs} args - Arguments to delete one Habit.
|
||||||
@@ -1082,6 +1135,36 @@ export interface HabitDelegate<ExtArgs extends runtime.Types.Extensions.Internal
|
|||||||
*/
|
*/
|
||||||
updateMany<T extends HabitUpdateManyArgs>(args: Prisma.SelectSubset<T, HabitUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
updateMany<T extends HabitUpdateManyArgs>(args: Prisma.SelectSubset<T, HabitUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Update zero or more Habits and returns the data updated in the database.
|
||||||
|
* @param {HabitUpdateManyAndReturnArgs} args - Arguments to update many Habits.
|
||||||
|
* @example
|
||||||
|
* // Update many Habits
|
||||||
|
* const habit = await prisma.habit.updateManyAndReturn({
|
||||||
|
* where: {
|
||||||
|
* // ... provide filter here
|
||||||
|
* },
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
*
|
||||||
|
* // Update zero or more Habits and only return the `id`
|
||||||
|
* const habitWithIdOnly = await prisma.habit.updateManyAndReturn({
|
||||||
|
* select: { id: true },
|
||||||
|
* where: {
|
||||||
|
* // ... provide filter here
|
||||||
|
* },
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
* Note, that providing `undefined` is treated as the value not being there.
|
||||||
|
* Read more here: https://pris.ly/d/null-undefined
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
updateManyAndReturn<T extends HabitUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, HabitUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$HabitPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create or update one Habit.
|
* Create or update one Habit.
|
||||||
* @param {HabitUpsertArgs} args - Arguments to update or create a Habit.
|
* @param {HabitUpsertArgs} args - Arguments to update or create a Habit.
|
||||||
@@ -1521,6 +1604,29 @@ export type HabitCreateManyArgs<ExtArgs extends runtime.Types.Extensions.Interna
|
|||||||
skipDuplicates?: boolean
|
skipDuplicates?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Habit createManyAndReturn
|
||||||
|
*/
|
||||||
|
export type HabitCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
|
/**
|
||||||
|
* Select specific fields to fetch from the Habit
|
||||||
|
*/
|
||||||
|
select?: Prisma.HabitSelectCreateManyAndReturn<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* Omit specific fields from the Habit
|
||||||
|
*/
|
||||||
|
omit?: Prisma.HabitOmit<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* The data used to create many Habits.
|
||||||
|
*/
|
||||||
|
data: Prisma.HabitCreateManyInput | Prisma.HabitCreateManyInput[]
|
||||||
|
skipDuplicates?: boolean
|
||||||
|
/**
|
||||||
|
* Choose, which related nodes to fetch as well
|
||||||
|
*/
|
||||||
|
include?: Prisma.HabitIncludeCreateManyAndReturn<ExtArgs> | null
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Habit update
|
* Habit update
|
||||||
*/
|
*/
|
||||||
@@ -1565,6 +1671,36 @@ export type HabitUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.Interna
|
|||||||
limit?: number
|
limit?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Habit updateManyAndReturn
|
||||||
|
*/
|
||||||
|
export type HabitUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
|
/**
|
||||||
|
* Select specific fields to fetch from the Habit
|
||||||
|
*/
|
||||||
|
select?: Prisma.HabitSelectUpdateManyAndReturn<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* Omit specific fields from the Habit
|
||||||
|
*/
|
||||||
|
omit?: Prisma.HabitOmit<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* The data used to update Habits.
|
||||||
|
*/
|
||||||
|
data: Prisma.XOR<Prisma.HabitUpdateManyMutationInput, Prisma.HabitUncheckedUpdateManyInput>
|
||||||
|
/**
|
||||||
|
* Filter which Habits to update
|
||||||
|
*/
|
||||||
|
where?: Prisma.HabitWhereInput
|
||||||
|
/**
|
||||||
|
* Limit how many Habits to update.
|
||||||
|
*/
|
||||||
|
limit?: number
|
||||||
|
/**
|
||||||
|
* Choose, which related nodes to fetch as well
|
||||||
|
*/
|
||||||
|
include?: Prisma.HabitIncludeUpdateManyAndReturn<ExtArgs> | null
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Habit upsert
|
* Habit upsert
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -271,7 +271,6 @@ export type IndicatorOrderByWithRelationInput = {
|
|||||||
createdAt?: Prisma.SortOrder
|
createdAt?: Prisma.SortOrder
|
||||||
updatedAt?: Prisma.SortOrder
|
updatedAt?: Prisma.SortOrder
|
||||||
points?: Prisma.IndicatorPointOrderByRelationAggregateInput
|
points?: Prisma.IndicatorPointOrderByRelationAggregateInput
|
||||||
_relevance?: Prisma.IndicatorOrderByRelevanceInput
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type IndicatorWhereUniqueInput = Prisma.AtLeast<{
|
export type IndicatorWhereUniqueInput = Prisma.AtLeast<{
|
||||||
@@ -417,12 +416,6 @@ export type IndicatorUncheckedUpdateManyInput = {
|
|||||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type IndicatorOrderByRelevanceInput = {
|
|
||||||
fields: Prisma.IndicatorOrderByRelevanceFieldEnum | Prisma.IndicatorOrderByRelevanceFieldEnum[]
|
|
||||||
sort: Prisma.SortOrder
|
|
||||||
search: string
|
|
||||||
}
|
|
||||||
|
|
||||||
export type IndicatorCountOrderByAggregateInput = {
|
export type IndicatorCountOrderByAggregateInput = {
|
||||||
id?: Prisma.SortOrder
|
id?: Prisma.SortOrder
|
||||||
name?: Prisma.SortOrder
|
name?: Prisma.SortOrder
|
||||||
@@ -605,7 +598,31 @@ export type IndicatorSelect<ExtArgs extends runtime.Types.Extensions.InternalArg
|
|||||||
_count?: boolean | Prisma.IndicatorCountOutputTypeDefaultArgs<ExtArgs>
|
_count?: boolean | Prisma.IndicatorCountOutputTypeDefaultArgs<ExtArgs>
|
||||||
}, ExtArgs["result"]["indicator"]>
|
}, ExtArgs["result"]["indicator"]>
|
||||||
|
|
||||||
|
export type IndicatorSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||||
|
id?: boolean
|
||||||
|
name?: boolean
|
||||||
|
groupName?: boolean
|
||||||
|
title?: boolean
|
||||||
|
unit?: boolean
|
||||||
|
source?: boolean
|
||||||
|
frequency?: boolean
|
||||||
|
hidden?: boolean
|
||||||
|
createdAt?: boolean
|
||||||
|
updatedAt?: boolean
|
||||||
|
}, ExtArgs["result"]["indicator"]>
|
||||||
|
|
||||||
|
export type IndicatorSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||||
|
id?: boolean
|
||||||
|
name?: boolean
|
||||||
|
groupName?: boolean
|
||||||
|
title?: boolean
|
||||||
|
unit?: boolean
|
||||||
|
source?: boolean
|
||||||
|
frequency?: boolean
|
||||||
|
hidden?: boolean
|
||||||
|
createdAt?: boolean
|
||||||
|
updatedAt?: boolean
|
||||||
|
}, ExtArgs["result"]["indicator"]>
|
||||||
|
|
||||||
export type IndicatorSelectScalar = {
|
export type IndicatorSelectScalar = {
|
||||||
id?: boolean
|
id?: boolean
|
||||||
@@ -625,6 +642,8 @@ export type IndicatorInclude<ExtArgs extends runtime.Types.Extensions.InternalAr
|
|||||||
points?: boolean | Prisma.Indicator$pointsArgs<ExtArgs>
|
points?: boolean | Prisma.Indicator$pointsArgs<ExtArgs>
|
||||||
_count?: boolean | Prisma.IndicatorCountOutputTypeDefaultArgs<ExtArgs>
|
_count?: boolean | Prisma.IndicatorCountOutputTypeDefaultArgs<ExtArgs>
|
||||||
}
|
}
|
||||||
|
export type IndicatorIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
|
||||||
|
export type IndicatorIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
|
||||||
|
|
||||||
export type $IndicatorPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
export type $IndicatorPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
name: "Indicator"
|
name: "Indicator"
|
||||||
@@ -759,6 +778,30 @@ export interface IndicatorDelegate<ExtArgs extends runtime.Types.Extensions.Inte
|
|||||||
*/
|
*/
|
||||||
createMany<T extends IndicatorCreateManyArgs>(args?: Prisma.SelectSubset<T, IndicatorCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
createMany<T extends IndicatorCreateManyArgs>(args?: Prisma.SelectSubset<T, IndicatorCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create many Indicators and returns the data saved in the database.
|
||||||
|
* @param {IndicatorCreateManyAndReturnArgs} args - Arguments to create many Indicators.
|
||||||
|
* @example
|
||||||
|
* // Create many Indicators
|
||||||
|
* const indicator = await prisma.indicator.createManyAndReturn({
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
*
|
||||||
|
* // Create many Indicators and only return the `id`
|
||||||
|
* const indicatorWithIdOnly = await prisma.indicator.createManyAndReturn({
|
||||||
|
* select: { id: true },
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
* Note, that providing `undefined` is treated as the value not being there.
|
||||||
|
* Read more here: https://pris.ly/d/null-undefined
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
createManyAndReturn<T extends IndicatorCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, IndicatorCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$IndicatorPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Delete a Indicator.
|
* Delete a Indicator.
|
||||||
* @param {IndicatorDeleteArgs} args - Arguments to delete one Indicator.
|
* @param {IndicatorDeleteArgs} args - Arguments to delete one Indicator.
|
||||||
@@ -823,6 +866,36 @@ export interface IndicatorDelegate<ExtArgs extends runtime.Types.Extensions.Inte
|
|||||||
*/
|
*/
|
||||||
updateMany<T extends IndicatorUpdateManyArgs>(args: Prisma.SelectSubset<T, IndicatorUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
updateMany<T extends IndicatorUpdateManyArgs>(args: Prisma.SelectSubset<T, IndicatorUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Update zero or more Indicators and returns the data updated in the database.
|
||||||
|
* @param {IndicatorUpdateManyAndReturnArgs} args - Arguments to update many Indicators.
|
||||||
|
* @example
|
||||||
|
* // Update many Indicators
|
||||||
|
* const indicator = await prisma.indicator.updateManyAndReturn({
|
||||||
|
* where: {
|
||||||
|
* // ... provide filter here
|
||||||
|
* },
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
*
|
||||||
|
* // Update zero or more Indicators and only return the `id`
|
||||||
|
* const indicatorWithIdOnly = await prisma.indicator.updateManyAndReturn({
|
||||||
|
* select: { id: true },
|
||||||
|
* where: {
|
||||||
|
* // ... provide filter here
|
||||||
|
* },
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
* Note, that providing `undefined` is treated as the value not being there.
|
||||||
|
* Read more here: https://pris.ly/d/null-undefined
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
updateManyAndReturn<T extends IndicatorUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, IndicatorUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$IndicatorPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create or update one Indicator.
|
* Create or update one Indicator.
|
||||||
* @param {IndicatorUpsertArgs} args - Arguments to update or create a Indicator.
|
* @param {IndicatorUpsertArgs} args - Arguments to update or create a Indicator.
|
||||||
@@ -1259,6 +1332,25 @@ export type IndicatorCreateManyArgs<ExtArgs extends runtime.Types.Extensions.Int
|
|||||||
skipDuplicates?: boolean
|
skipDuplicates?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Indicator createManyAndReturn
|
||||||
|
*/
|
||||||
|
export type IndicatorCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
|
/**
|
||||||
|
* Select specific fields to fetch from the Indicator
|
||||||
|
*/
|
||||||
|
select?: Prisma.IndicatorSelectCreateManyAndReturn<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* Omit specific fields from the Indicator
|
||||||
|
*/
|
||||||
|
omit?: Prisma.IndicatorOmit<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* The data used to create many Indicators.
|
||||||
|
*/
|
||||||
|
data: Prisma.IndicatorCreateManyInput | Prisma.IndicatorCreateManyInput[]
|
||||||
|
skipDuplicates?: boolean
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Indicator update
|
* Indicator update
|
||||||
*/
|
*/
|
||||||
@@ -1303,6 +1395,32 @@ export type IndicatorUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.Int
|
|||||||
limit?: number
|
limit?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Indicator updateManyAndReturn
|
||||||
|
*/
|
||||||
|
export type IndicatorUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
|
/**
|
||||||
|
* Select specific fields to fetch from the Indicator
|
||||||
|
*/
|
||||||
|
select?: Prisma.IndicatorSelectUpdateManyAndReturn<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* Omit specific fields from the Indicator
|
||||||
|
*/
|
||||||
|
omit?: Prisma.IndicatorOmit<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* The data used to update Indicators.
|
||||||
|
*/
|
||||||
|
data: Prisma.XOR<Prisma.IndicatorUpdateManyMutationInput, Prisma.IndicatorUncheckedUpdateManyInput>
|
||||||
|
/**
|
||||||
|
* Filter which Indicators to update
|
||||||
|
*/
|
||||||
|
where?: Prisma.IndicatorWhereInput
|
||||||
|
/**
|
||||||
|
* Limit how many Indicators to update.
|
||||||
|
*/
|
||||||
|
limit?: number
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Indicator upsert
|
* Indicator upsert
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -243,7 +243,6 @@ export type IndicatorPointOrderByWithRelationInput = {
|
|||||||
createdAt?: Prisma.SortOrder
|
createdAt?: Prisma.SortOrder
|
||||||
updatedAt?: Prisma.SortOrder
|
updatedAt?: Prisma.SortOrder
|
||||||
indicator?: Prisma.IndicatorOrderByWithRelationInput
|
indicator?: Prisma.IndicatorOrderByWithRelationInput
|
||||||
_relevance?: Prisma.IndicatorPointOrderByRelevanceInput
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type IndicatorPointWhereUniqueInput = Prisma.AtLeast<{
|
export type IndicatorPointWhereUniqueInput = Prisma.AtLeast<{
|
||||||
@@ -355,12 +354,6 @@ export type IndicatorPointOrderByRelationAggregateInput = {
|
|||||||
_count?: Prisma.SortOrder
|
_count?: Prisma.SortOrder
|
||||||
}
|
}
|
||||||
|
|
||||||
export type IndicatorPointOrderByRelevanceInput = {
|
|
||||||
fields: Prisma.IndicatorPointOrderByRelevanceFieldEnum | Prisma.IndicatorPointOrderByRelevanceFieldEnum[]
|
|
||||||
sort: Prisma.SortOrder
|
|
||||||
search: string
|
|
||||||
}
|
|
||||||
|
|
||||||
export type IndicatorPointIndicatorIdPeriodCompoundUniqueInput = {
|
export type IndicatorPointIndicatorIdPeriodCompoundUniqueInput = {
|
||||||
indicatorId: number
|
indicatorId: number
|
||||||
period: string
|
period: string
|
||||||
@@ -551,7 +544,25 @@ export type IndicatorPointSelect<ExtArgs extends runtime.Types.Extensions.Intern
|
|||||||
indicator?: boolean | Prisma.IndicatorDefaultArgs<ExtArgs>
|
indicator?: boolean | Prisma.IndicatorDefaultArgs<ExtArgs>
|
||||||
}, ExtArgs["result"]["indicatorPoint"]>
|
}, ExtArgs["result"]["indicatorPoint"]>
|
||||||
|
|
||||||
|
export type IndicatorPointSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||||
|
id?: boolean
|
||||||
|
indicatorId?: boolean
|
||||||
|
period?: boolean
|
||||||
|
value?: boolean
|
||||||
|
createdAt?: boolean
|
||||||
|
updatedAt?: boolean
|
||||||
|
indicator?: boolean | Prisma.IndicatorDefaultArgs<ExtArgs>
|
||||||
|
}, ExtArgs["result"]["indicatorPoint"]>
|
||||||
|
|
||||||
|
export type IndicatorPointSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||||
|
id?: boolean
|
||||||
|
indicatorId?: boolean
|
||||||
|
period?: boolean
|
||||||
|
value?: boolean
|
||||||
|
createdAt?: boolean
|
||||||
|
updatedAt?: boolean
|
||||||
|
indicator?: boolean | Prisma.IndicatorDefaultArgs<ExtArgs>
|
||||||
|
}, ExtArgs["result"]["indicatorPoint"]>
|
||||||
|
|
||||||
export type IndicatorPointSelectScalar = {
|
export type IndicatorPointSelectScalar = {
|
||||||
id?: boolean
|
id?: boolean
|
||||||
@@ -566,6 +577,12 @@ export type IndicatorPointOmit<ExtArgs extends runtime.Types.Extensions.Internal
|
|||||||
export type IndicatorPointInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
export type IndicatorPointInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
indicator?: boolean | Prisma.IndicatorDefaultArgs<ExtArgs>
|
indicator?: boolean | Prisma.IndicatorDefaultArgs<ExtArgs>
|
||||||
}
|
}
|
||||||
|
export type IndicatorPointIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
|
indicator?: boolean | Prisma.IndicatorDefaultArgs<ExtArgs>
|
||||||
|
}
|
||||||
|
export type IndicatorPointIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
|
indicator?: boolean | Prisma.IndicatorDefaultArgs<ExtArgs>
|
||||||
|
}
|
||||||
|
|
||||||
export type $IndicatorPointPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
export type $IndicatorPointPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
name: "IndicatorPoint"
|
name: "IndicatorPoint"
|
||||||
@@ -696,6 +713,30 @@ export interface IndicatorPointDelegate<ExtArgs extends runtime.Types.Extensions
|
|||||||
*/
|
*/
|
||||||
createMany<T extends IndicatorPointCreateManyArgs>(args?: Prisma.SelectSubset<T, IndicatorPointCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
createMany<T extends IndicatorPointCreateManyArgs>(args?: Prisma.SelectSubset<T, IndicatorPointCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create many IndicatorPoints and returns the data saved in the database.
|
||||||
|
* @param {IndicatorPointCreateManyAndReturnArgs} args - Arguments to create many IndicatorPoints.
|
||||||
|
* @example
|
||||||
|
* // Create many IndicatorPoints
|
||||||
|
* const indicatorPoint = await prisma.indicatorPoint.createManyAndReturn({
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
*
|
||||||
|
* // Create many IndicatorPoints and only return the `id`
|
||||||
|
* const indicatorPointWithIdOnly = await prisma.indicatorPoint.createManyAndReturn({
|
||||||
|
* select: { id: true },
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
* Note, that providing `undefined` is treated as the value not being there.
|
||||||
|
* Read more here: https://pris.ly/d/null-undefined
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
createManyAndReturn<T extends IndicatorPointCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, IndicatorPointCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$IndicatorPointPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Delete a IndicatorPoint.
|
* Delete a IndicatorPoint.
|
||||||
* @param {IndicatorPointDeleteArgs} args - Arguments to delete one IndicatorPoint.
|
* @param {IndicatorPointDeleteArgs} args - Arguments to delete one IndicatorPoint.
|
||||||
@@ -760,6 +801,36 @@ export interface IndicatorPointDelegate<ExtArgs extends runtime.Types.Extensions
|
|||||||
*/
|
*/
|
||||||
updateMany<T extends IndicatorPointUpdateManyArgs>(args: Prisma.SelectSubset<T, IndicatorPointUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
updateMany<T extends IndicatorPointUpdateManyArgs>(args: Prisma.SelectSubset<T, IndicatorPointUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Update zero or more IndicatorPoints and returns the data updated in the database.
|
||||||
|
* @param {IndicatorPointUpdateManyAndReturnArgs} args - Arguments to update many IndicatorPoints.
|
||||||
|
* @example
|
||||||
|
* // Update many IndicatorPoints
|
||||||
|
* const indicatorPoint = await prisma.indicatorPoint.updateManyAndReturn({
|
||||||
|
* where: {
|
||||||
|
* // ... provide filter here
|
||||||
|
* },
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
*
|
||||||
|
* // Update zero or more IndicatorPoints and only return the `id`
|
||||||
|
* const indicatorPointWithIdOnly = await prisma.indicatorPoint.updateManyAndReturn({
|
||||||
|
* select: { id: true },
|
||||||
|
* where: {
|
||||||
|
* // ... provide filter here
|
||||||
|
* },
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
* Note, that providing `undefined` is treated as the value not being there.
|
||||||
|
* Read more here: https://pris.ly/d/null-undefined
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
updateManyAndReturn<T extends IndicatorPointUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, IndicatorPointUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$IndicatorPointPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create or update one IndicatorPoint.
|
* Create or update one IndicatorPoint.
|
||||||
* @param {IndicatorPointUpsertArgs} args - Arguments to update or create a IndicatorPoint.
|
* @param {IndicatorPointUpsertArgs} args - Arguments to update or create a IndicatorPoint.
|
||||||
@@ -1192,6 +1263,29 @@ export type IndicatorPointCreateManyArgs<ExtArgs extends runtime.Types.Extension
|
|||||||
skipDuplicates?: boolean
|
skipDuplicates?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* IndicatorPoint createManyAndReturn
|
||||||
|
*/
|
||||||
|
export type IndicatorPointCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
|
/**
|
||||||
|
* Select specific fields to fetch from the IndicatorPoint
|
||||||
|
*/
|
||||||
|
select?: Prisma.IndicatorPointSelectCreateManyAndReturn<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* Omit specific fields from the IndicatorPoint
|
||||||
|
*/
|
||||||
|
omit?: Prisma.IndicatorPointOmit<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* The data used to create many IndicatorPoints.
|
||||||
|
*/
|
||||||
|
data: Prisma.IndicatorPointCreateManyInput | Prisma.IndicatorPointCreateManyInput[]
|
||||||
|
skipDuplicates?: boolean
|
||||||
|
/**
|
||||||
|
* Choose, which related nodes to fetch as well
|
||||||
|
*/
|
||||||
|
include?: Prisma.IndicatorPointIncludeCreateManyAndReturn<ExtArgs> | null
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* IndicatorPoint update
|
* IndicatorPoint update
|
||||||
*/
|
*/
|
||||||
@@ -1236,6 +1330,36 @@ export type IndicatorPointUpdateManyArgs<ExtArgs extends runtime.Types.Extension
|
|||||||
limit?: number
|
limit?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* IndicatorPoint updateManyAndReturn
|
||||||
|
*/
|
||||||
|
export type IndicatorPointUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
|
/**
|
||||||
|
* Select specific fields to fetch from the IndicatorPoint
|
||||||
|
*/
|
||||||
|
select?: Prisma.IndicatorPointSelectUpdateManyAndReturn<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* Omit specific fields from the IndicatorPoint
|
||||||
|
*/
|
||||||
|
omit?: Prisma.IndicatorPointOmit<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* The data used to update IndicatorPoints.
|
||||||
|
*/
|
||||||
|
data: Prisma.XOR<Prisma.IndicatorPointUpdateManyMutationInput, Prisma.IndicatorPointUncheckedUpdateManyInput>
|
||||||
|
/**
|
||||||
|
* Filter which IndicatorPoints to update
|
||||||
|
*/
|
||||||
|
where?: Prisma.IndicatorPointWhereInput
|
||||||
|
/**
|
||||||
|
* Limit how many IndicatorPoints to update.
|
||||||
|
*/
|
||||||
|
limit?: number
|
||||||
|
/**
|
||||||
|
* Choose, which related nodes to fetch as well
|
||||||
|
*/
|
||||||
|
include?: Prisma.IndicatorPointIncludeUpdateManyAndReturn<ExtArgs> | null
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* IndicatorPoint upsert
|
* IndicatorPoint upsert
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -233,7 +233,6 @@ export type MihomeAccountOrderByWithRelationInput = {
|
|||||||
status?: Prisma.SortOrder
|
status?: Prisma.SortOrder
|
||||||
lastError?: Prisma.SortOrder
|
lastError?: Prisma.SortOrder
|
||||||
updatedAt?: Prisma.SortOrder
|
updatedAt?: Prisma.SortOrder
|
||||||
_relevance?: Prisma.MihomeAccountOrderByRelevanceInput
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type MihomeAccountWhereUniqueInput = Prisma.AtLeast<{
|
export type MihomeAccountWhereUniqueInput = Prisma.AtLeast<{
|
||||||
@@ -334,12 +333,6 @@ export type MihomeAccountUncheckedUpdateManyInput = {
|
|||||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type MihomeAccountOrderByRelevanceInput = {
|
|
||||||
fields: Prisma.MihomeAccountOrderByRelevanceFieldEnum | Prisma.MihomeAccountOrderByRelevanceFieldEnum[]
|
|
||||||
sort: Prisma.SortOrder
|
|
||||||
search: string
|
|
||||||
}
|
|
||||||
|
|
||||||
export type MihomeAccountCountOrderByAggregateInput = {
|
export type MihomeAccountCountOrderByAggregateInput = {
|
||||||
id?: Prisma.SortOrder
|
id?: Prisma.SortOrder
|
||||||
key?: Prisma.SortOrder
|
key?: Prisma.SortOrder
|
||||||
@@ -386,7 +379,23 @@ export type MihomeAccountSelect<ExtArgs extends runtime.Types.Extensions.Interna
|
|||||||
updatedAt?: boolean
|
updatedAt?: boolean
|
||||||
}, ExtArgs["result"]["mihomeAccount"]>
|
}, ExtArgs["result"]["mihomeAccount"]>
|
||||||
|
|
||||||
|
export type MihomeAccountSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||||
|
id?: boolean
|
||||||
|
key?: boolean
|
||||||
|
userId?: boolean
|
||||||
|
status?: boolean
|
||||||
|
lastError?: boolean
|
||||||
|
updatedAt?: boolean
|
||||||
|
}, ExtArgs["result"]["mihomeAccount"]>
|
||||||
|
|
||||||
|
export type MihomeAccountSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||||
|
id?: boolean
|
||||||
|
key?: boolean
|
||||||
|
userId?: boolean
|
||||||
|
status?: boolean
|
||||||
|
lastError?: boolean
|
||||||
|
updatedAt?: boolean
|
||||||
|
}, ExtArgs["result"]["mihomeAccount"]>
|
||||||
|
|
||||||
export type MihomeAccountSelectScalar = {
|
export type MihomeAccountSelectScalar = {
|
||||||
id?: boolean
|
id?: boolean
|
||||||
@@ -526,6 +535,30 @@ export interface MihomeAccountDelegate<ExtArgs extends runtime.Types.Extensions.
|
|||||||
*/
|
*/
|
||||||
createMany<T extends MihomeAccountCreateManyArgs>(args?: Prisma.SelectSubset<T, MihomeAccountCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
createMany<T extends MihomeAccountCreateManyArgs>(args?: Prisma.SelectSubset<T, MihomeAccountCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create many MihomeAccounts and returns the data saved in the database.
|
||||||
|
* @param {MihomeAccountCreateManyAndReturnArgs} args - Arguments to create many MihomeAccounts.
|
||||||
|
* @example
|
||||||
|
* // Create many MihomeAccounts
|
||||||
|
* const mihomeAccount = await prisma.mihomeAccount.createManyAndReturn({
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
*
|
||||||
|
* // Create many MihomeAccounts and only return the `id`
|
||||||
|
* const mihomeAccountWithIdOnly = await prisma.mihomeAccount.createManyAndReturn({
|
||||||
|
* select: { id: true },
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
* Note, that providing `undefined` is treated as the value not being there.
|
||||||
|
* Read more here: https://pris.ly/d/null-undefined
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
createManyAndReturn<T extends MihomeAccountCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, MihomeAccountCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MihomeAccountPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Delete a MihomeAccount.
|
* Delete a MihomeAccount.
|
||||||
* @param {MihomeAccountDeleteArgs} args - Arguments to delete one MihomeAccount.
|
* @param {MihomeAccountDeleteArgs} args - Arguments to delete one MihomeAccount.
|
||||||
@@ -590,6 +623,36 @@ export interface MihomeAccountDelegate<ExtArgs extends runtime.Types.Extensions.
|
|||||||
*/
|
*/
|
||||||
updateMany<T extends MihomeAccountUpdateManyArgs>(args: Prisma.SelectSubset<T, MihomeAccountUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
updateMany<T extends MihomeAccountUpdateManyArgs>(args: Prisma.SelectSubset<T, MihomeAccountUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Update zero or more MihomeAccounts and returns the data updated in the database.
|
||||||
|
* @param {MihomeAccountUpdateManyAndReturnArgs} args - Arguments to update many MihomeAccounts.
|
||||||
|
* @example
|
||||||
|
* // Update many MihomeAccounts
|
||||||
|
* const mihomeAccount = await prisma.mihomeAccount.updateManyAndReturn({
|
||||||
|
* where: {
|
||||||
|
* // ... provide filter here
|
||||||
|
* },
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
*
|
||||||
|
* // Update zero or more MihomeAccounts and only return the `id`
|
||||||
|
* const mihomeAccountWithIdOnly = await prisma.mihomeAccount.updateManyAndReturn({
|
||||||
|
* select: { id: true },
|
||||||
|
* where: {
|
||||||
|
* // ... provide filter here
|
||||||
|
* },
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
* Note, that providing `undefined` is treated as the value not being there.
|
||||||
|
* Read more here: https://pris.ly/d/null-undefined
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
updateManyAndReturn<T extends MihomeAccountUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, MihomeAccountUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MihomeAccountPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create or update one MihomeAccount.
|
* Create or update one MihomeAccount.
|
||||||
* @param {MihomeAccountUpsertArgs} args - Arguments to update or create a MihomeAccount.
|
* @param {MihomeAccountUpsertArgs} args - Arguments to update or create a MihomeAccount.
|
||||||
@@ -997,6 +1060,25 @@ export type MihomeAccountCreateManyArgs<ExtArgs extends runtime.Types.Extensions
|
|||||||
skipDuplicates?: boolean
|
skipDuplicates?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* MihomeAccount createManyAndReturn
|
||||||
|
*/
|
||||||
|
export type MihomeAccountCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
|
/**
|
||||||
|
* Select specific fields to fetch from the MihomeAccount
|
||||||
|
*/
|
||||||
|
select?: Prisma.MihomeAccountSelectCreateManyAndReturn<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* Omit specific fields from the MihomeAccount
|
||||||
|
*/
|
||||||
|
omit?: Prisma.MihomeAccountOmit<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* The data used to create many MihomeAccounts.
|
||||||
|
*/
|
||||||
|
data: Prisma.MihomeAccountCreateManyInput | Prisma.MihomeAccountCreateManyInput[]
|
||||||
|
skipDuplicates?: boolean
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* MihomeAccount update
|
* MihomeAccount update
|
||||||
*/
|
*/
|
||||||
@@ -1037,6 +1119,32 @@ export type MihomeAccountUpdateManyArgs<ExtArgs extends runtime.Types.Extensions
|
|||||||
limit?: number
|
limit?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* MihomeAccount updateManyAndReturn
|
||||||
|
*/
|
||||||
|
export type MihomeAccountUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
|
/**
|
||||||
|
* Select specific fields to fetch from the MihomeAccount
|
||||||
|
*/
|
||||||
|
select?: Prisma.MihomeAccountSelectUpdateManyAndReturn<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* Omit specific fields from the MihomeAccount
|
||||||
|
*/
|
||||||
|
omit?: Prisma.MihomeAccountOmit<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* The data used to update MihomeAccounts.
|
||||||
|
*/
|
||||||
|
data: Prisma.XOR<Prisma.MihomeAccountUpdateManyMutationInput, Prisma.MihomeAccountUncheckedUpdateManyInput>
|
||||||
|
/**
|
||||||
|
* Filter which MihomeAccounts to update
|
||||||
|
*/
|
||||||
|
where?: Prisma.MihomeAccountWhereInput
|
||||||
|
/**
|
||||||
|
* Limit how many MihomeAccounts to update.
|
||||||
|
*/
|
||||||
|
limit?: number
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* MihomeAccount upsert
|
* MihomeAccount upsert
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -366,7 +366,6 @@ export type MihomeDeviceOrderByWithRelationInput = {
|
|||||||
home?: Prisma.MihomeHomeOrderByWithRelationInput
|
home?: Prisma.MihomeHomeOrderByWithRelationInput
|
||||||
samples?: Prisma.MihomeEnvSampleOrderByRelationAggregateInput
|
samples?: Prisma.MihomeEnvSampleOrderByRelationAggregateInput
|
||||||
hours?: Prisma.MihomeEnvHourOrderByRelationAggregateInput
|
hours?: Prisma.MihomeEnvHourOrderByRelationAggregateInput
|
||||||
_relevance?: Prisma.MihomeDeviceOrderByRelevanceInput
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type MihomeDeviceWhereUniqueInput = Prisma.AtLeast<{
|
export type MihomeDeviceWhereUniqueInput = Prisma.AtLeast<{
|
||||||
@@ -597,12 +596,6 @@ export type MihomeDeviceOrderByRelationAggregateInput = {
|
|||||||
_count?: Prisma.SortOrder
|
_count?: Prisma.SortOrder
|
||||||
}
|
}
|
||||||
|
|
||||||
export type MihomeDeviceOrderByRelevanceInput = {
|
|
||||||
fields: Prisma.MihomeDeviceOrderByRelevanceFieldEnum | Prisma.MihomeDeviceOrderByRelevanceFieldEnum[]
|
|
||||||
sort: Prisma.SortOrder
|
|
||||||
search: string
|
|
||||||
}
|
|
||||||
|
|
||||||
export type MihomeDeviceCountOrderByAggregateInput = {
|
export type MihomeDeviceCountOrderByAggregateInput = {
|
||||||
id?: Prisma.SortOrder
|
id?: Prisma.SortOrder
|
||||||
did?: Prisma.SortOrder
|
did?: Prisma.SortOrder
|
||||||
@@ -1201,7 +1194,47 @@ export type MihomeDeviceSelect<ExtArgs extends runtime.Types.Extensions.Internal
|
|||||||
_count?: boolean | Prisma.MihomeDeviceCountOutputTypeDefaultArgs<ExtArgs>
|
_count?: boolean | Prisma.MihomeDeviceCountOutputTypeDefaultArgs<ExtArgs>
|
||||||
}, ExtArgs["result"]["mihomeDevice"]>
|
}, ExtArgs["result"]["mihomeDevice"]>
|
||||||
|
|
||||||
|
export type MihomeDeviceSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||||
|
id?: boolean
|
||||||
|
did?: boolean
|
||||||
|
homeId?: boolean
|
||||||
|
model?: boolean
|
||||||
|
name?: boolean
|
||||||
|
alias?: boolean
|
||||||
|
tempSiid?: boolean
|
||||||
|
tempPiid?: boolean
|
||||||
|
humSiid?: boolean
|
||||||
|
humPiid?: boolean
|
||||||
|
battSiid?: boolean
|
||||||
|
battPiid?: boolean
|
||||||
|
battery?: boolean
|
||||||
|
batteryAt?: boolean
|
||||||
|
enabled?: boolean
|
||||||
|
lastSyncAt?: boolean
|
||||||
|
createdAt?: boolean
|
||||||
|
home?: boolean | Prisma.MihomeHomeDefaultArgs<ExtArgs>
|
||||||
|
}, ExtArgs["result"]["mihomeDevice"]>
|
||||||
|
|
||||||
|
export type MihomeDeviceSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||||
|
id?: boolean
|
||||||
|
did?: boolean
|
||||||
|
homeId?: boolean
|
||||||
|
model?: boolean
|
||||||
|
name?: boolean
|
||||||
|
alias?: boolean
|
||||||
|
tempSiid?: boolean
|
||||||
|
tempPiid?: boolean
|
||||||
|
humSiid?: boolean
|
||||||
|
humPiid?: boolean
|
||||||
|
battSiid?: boolean
|
||||||
|
battPiid?: boolean
|
||||||
|
battery?: boolean
|
||||||
|
batteryAt?: boolean
|
||||||
|
enabled?: boolean
|
||||||
|
lastSyncAt?: boolean
|
||||||
|
createdAt?: boolean
|
||||||
|
home?: boolean | Prisma.MihomeHomeDefaultArgs<ExtArgs>
|
||||||
|
}, ExtArgs["result"]["mihomeDevice"]>
|
||||||
|
|
||||||
export type MihomeDeviceSelectScalar = {
|
export type MihomeDeviceSelectScalar = {
|
||||||
id?: boolean
|
id?: boolean
|
||||||
@@ -1230,6 +1263,12 @@ export type MihomeDeviceInclude<ExtArgs extends runtime.Types.Extensions.Interna
|
|||||||
hours?: boolean | Prisma.MihomeDevice$hoursArgs<ExtArgs>
|
hours?: boolean | Prisma.MihomeDevice$hoursArgs<ExtArgs>
|
||||||
_count?: boolean | Prisma.MihomeDeviceCountOutputTypeDefaultArgs<ExtArgs>
|
_count?: boolean | Prisma.MihomeDeviceCountOutputTypeDefaultArgs<ExtArgs>
|
||||||
}
|
}
|
||||||
|
export type MihomeDeviceIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
|
home?: boolean | Prisma.MihomeHomeDefaultArgs<ExtArgs>
|
||||||
|
}
|
||||||
|
export type MihomeDeviceIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
|
home?: boolean | Prisma.MihomeHomeDefaultArgs<ExtArgs>
|
||||||
|
}
|
||||||
|
|
||||||
export type $MihomeDevicePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
export type $MihomeDevicePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
name: "MihomeDevice"
|
name: "MihomeDevice"
|
||||||
@@ -1373,6 +1412,30 @@ export interface MihomeDeviceDelegate<ExtArgs extends runtime.Types.Extensions.I
|
|||||||
*/
|
*/
|
||||||
createMany<T extends MihomeDeviceCreateManyArgs>(args?: Prisma.SelectSubset<T, MihomeDeviceCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
createMany<T extends MihomeDeviceCreateManyArgs>(args?: Prisma.SelectSubset<T, MihomeDeviceCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create many MihomeDevices and returns the data saved in the database.
|
||||||
|
* @param {MihomeDeviceCreateManyAndReturnArgs} args - Arguments to create many MihomeDevices.
|
||||||
|
* @example
|
||||||
|
* // Create many MihomeDevices
|
||||||
|
* const mihomeDevice = await prisma.mihomeDevice.createManyAndReturn({
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
*
|
||||||
|
* // Create many MihomeDevices and only return the `id`
|
||||||
|
* const mihomeDeviceWithIdOnly = await prisma.mihomeDevice.createManyAndReturn({
|
||||||
|
* select: { id: true },
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
* Note, that providing `undefined` is treated as the value not being there.
|
||||||
|
* Read more here: https://pris.ly/d/null-undefined
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
createManyAndReturn<T extends MihomeDeviceCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, MihomeDeviceCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MihomeDevicePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Delete a MihomeDevice.
|
* Delete a MihomeDevice.
|
||||||
* @param {MihomeDeviceDeleteArgs} args - Arguments to delete one MihomeDevice.
|
* @param {MihomeDeviceDeleteArgs} args - Arguments to delete one MihomeDevice.
|
||||||
@@ -1437,6 +1500,36 @@ export interface MihomeDeviceDelegate<ExtArgs extends runtime.Types.Extensions.I
|
|||||||
*/
|
*/
|
||||||
updateMany<T extends MihomeDeviceUpdateManyArgs>(args: Prisma.SelectSubset<T, MihomeDeviceUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
updateMany<T extends MihomeDeviceUpdateManyArgs>(args: Prisma.SelectSubset<T, MihomeDeviceUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Update zero or more MihomeDevices and returns the data updated in the database.
|
||||||
|
* @param {MihomeDeviceUpdateManyAndReturnArgs} args - Arguments to update many MihomeDevices.
|
||||||
|
* @example
|
||||||
|
* // Update many MihomeDevices
|
||||||
|
* const mihomeDevice = await prisma.mihomeDevice.updateManyAndReturn({
|
||||||
|
* where: {
|
||||||
|
* // ... provide filter here
|
||||||
|
* },
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
*
|
||||||
|
* // Update zero or more MihomeDevices and only return the `id`
|
||||||
|
* const mihomeDeviceWithIdOnly = await prisma.mihomeDevice.updateManyAndReturn({
|
||||||
|
* select: { id: true },
|
||||||
|
* where: {
|
||||||
|
* // ... provide filter here
|
||||||
|
* },
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
* Note, that providing `undefined` is treated as the value not being there.
|
||||||
|
* Read more here: https://pris.ly/d/null-undefined
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
updateManyAndReturn<T extends MihomeDeviceUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, MihomeDeviceUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MihomeDevicePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create or update one MihomeDevice.
|
* Create or update one MihomeDevice.
|
||||||
* @param {MihomeDeviceUpsertArgs} args - Arguments to update or create a MihomeDevice.
|
* @param {MihomeDeviceUpsertArgs} args - Arguments to update or create a MihomeDevice.
|
||||||
@@ -1882,6 +1975,29 @@ export type MihomeDeviceCreateManyArgs<ExtArgs extends runtime.Types.Extensions.
|
|||||||
skipDuplicates?: boolean
|
skipDuplicates?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* MihomeDevice createManyAndReturn
|
||||||
|
*/
|
||||||
|
export type MihomeDeviceCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
|
/**
|
||||||
|
* Select specific fields to fetch from the MihomeDevice
|
||||||
|
*/
|
||||||
|
select?: Prisma.MihomeDeviceSelectCreateManyAndReturn<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* Omit specific fields from the MihomeDevice
|
||||||
|
*/
|
||||||
|
omit?: Prisma.MihomeDeviceOmit<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* The data used to create many MihomeDevices.
|
||||||
|
*/
|
||||||
|
data: Prisma.MihomeDeviceCreateManyInput | Prisma.MihomeDeviceCreateManyInput[]
|
||||||
|
skipDuplicates?: boolean
|
||||||
|
/**
|
||||||
|
* Choose, which related nodes to fetch as well
|
||||||
|
*/
|
||||||
|
include?: Prisma.MihomeDeviceIncludeCreateManyAndReturn<ExtArgs> | null
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* MihomeDevice update
|
* MihomeDevice update
|
||||||
*/
|
*/
|
||||||
@@ -1926,6 +2042,36 @@ export type MihomeDeviceUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.
|
|||||||
limit?: number
|
limit?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* MihomeDevice updateManyAndReturn
|
||||||
|
*/
|
||||||
|
export type MihomeDeviceUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
|
/**
|
||||||
|
* Select specific fields to fetch from the MihomeDevice
|
||||||
|
*/
|
||||||
|
select?: Prisma.MihomeDeviceSelectUpdateManyAndReturn<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* Omit specific fields from the MihomeDevice
|
||||||
|
*/
|
||||||
|
omit?: Prisma.MihomeDeviceOmit<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* The data used to update MihomeDevices.
|
||||||
|
*/
|
||||||
|
data: Prisma.XOR<Prisma.MihomeDeviceUpdateManyMutationInput, Prisma.MihomeDeviceUncheckedUpdateManyInput>
|
||||||
|
/**
|
||||||
|
* Filter which MihomeDevices to update
|
||||||
|
*/
|
||||||
|
where?: Prisma.MihomeDeviceWhereInput
|
||||||
|
/**
|
||||||
|
* Limit how many MihomeDevices to update.
|
||||||
|
*/
|
||||||
|
limit?: number
|
||||||
|
/**
|
||||||
|
* Choose, which related nodes to fetch as well
|
||||||
|
*/
|
||||||
|
include?: Prisma.MihomeDeviceIncludeUpdateManyAndReturn<ExtArgs> | null
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* MihomeDevice upsert
|
* MihomeDevice upsert
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -566,7 +566,27 @@ export type MihomeEnvHourSelect<ExtArgs extends runtime.Types.Extensions.Interna
|
|||||||
device?: boolean | Prisma.MihomeDeviceDefaultArgs<ExtArgs>
|
device?: boolean | Prisma.MihomeDeviceDefaultArgs<ExtArgs>
|
||||||
}, ExtArgs["result"]["mihomeEnvHour"]>
|
}, ExtArgs["result"]["mihomeEnvHour"]>
|
||||||
|
|
||||||
|
export type MihomeEnvHourSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||||
|
id?: boolean
|
||||||
|
deviceId?: boolean
|
||||||
|
hour?: boolean
|
||||||
|
temperatureAvg?: boolean
|
||||||
|
humidityAvg?: boolean
|
||||||
|
raw?: boolean
|
||||||
|
createdAt?: boolean
|
||||||
|
device?: boolean | Prisma.MihomeDeviceDefaultArgs<ExtArgs>
|
||||||
|
}, ExtArgs["result"]["mihomeEnvHour"]>
|
||||||
|
|
||||||
|
export type MihomeEnvHourSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||||
|
id?: boolean
|
||||||
|
deviceId?: boolean
|
||||||
|
hour?: boolean
|
||||||
|
temperatureAvg?: boolean
|
||||||
|
humidityAvg?: boolean
|
||||||
|
raw?: boolean
|
||||||
|
createdAt?: boolean
|
||||||
|
device?: boolean | Prisma.MihomeDeviceDefaultArgs<ExtArgs>
|
||||||
|
}, ExtArgs["result"]["mihomeEnvHour"]>
|
||||||
|
|
||||||
export type MihomeEnvHourSelectScalar = {
|
export type MihomeEnvHourSelectScalar = {
|
||||||
id?: boolean
|
id?: boolean
|
||||||
@@ -582,6 +602,12 @@ export type MihomeEnvHourOmit<ExtArgs extends runtime.Types.Extensions.InternalA
|
|||||||
export type MihomeEnvHourInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
export type MihomeEnvHourInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
device?: boolean | Prisma.MihomeDeviceDefaultArgs<ExtArgs>
|
device?: boolean | Prisma.MihomeDeviceDefaultArgs<ExtArgs>
|
||||||
}
|
}
|
||||||
|
export type MihomeEnvHourIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
|
device?: boolean | Prisma.MihomeDeviceDefaultArgs<ExtArgs>
|
||||||
|
}
|
||||||
|
export type MihomeEnvHourIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
|
device?: boolean | Prisma.MihomeDeviceDefaultArgs<ExtArgs>
|
||||||
|
}
|
||||||
|
|
||||||
export type $MihomeEnvHourPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
export type $MihomeEnvHourPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
name: "MihomeEnvHour"
|
name: "MihomeEnvHour"
|
||||||
@@ -713,6 +739,30 @@ export interface MihomeEnvHourDelegate<ExtArgs extends runtime.Types.Extensions.
|
|||||||
*/
|
*/
|
||||||
createMany<T extends MihomeEnvHourCreateManyArgs>(args?: Prisma.SelectSubset<T, MihomeEnvHourCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
createMany<T extends MihomeEnvHourCreateManyArgs>(args?: Prisma.SelectSubset<T, MihomeEnvHourCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create many MihomeEnvHours and returns the data saved in the database.
|
||||||
|
* @param {MihomeEnvHourCreateManyAndReturnArgs} args - Arguments to create many MihomeEnvHours.
|
||||||
|
* @example
|
||||||
|
* // Create many MihomeEnvHours
|
||||||
|
* const mihomeEnvHour = await prisma.mihomeEnvHour.createManyAndReturn({
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
*
|
||||||
|
* // Create many MihomeEnvHours and only return the `id`
|
||||||
|
* const mihomeEnvHourWithIdOnly = await prisma.mihomeEnvHour.createManyAndReturn({
|
||||||
|
* select: { id: true },
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
* Note, that providing `undefined` is treated as the value not being there.
|
||||||
|
* Read more here: https://pris.ly/d/null-undefined
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
createManyAndReturn<T extends MihomeEnvHourCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, MihomeEnvHourCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MihomeEnvHourPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Delete a MihomeEnvHour.
|
* Delete a MihomeEnvHour.
|
||||||
* @param {MihomeEnvHourDeleteArgs} args - Arguments to delete one MihomeEnvHour.
|
* @param {MihomeEnvHourDeleteArgs} args - Arguments to delete one MihomeEnvHour.
|
||||||
@@ -777,6 +827,36 @@ export interface MihomeEnvHourDelegate<ExtArgs extends runtime.Types.Extensions.
|
|||||||
*/
|
*/
|
||||||
updateMany<T extends MihomeEnvHourUpdateManyArgs>(args: Prisma.SelectSubset<T, MihomeEnvHourUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
updateMany<T extends MihomeEnvHourUpdateManyArgs>(args: Prisma.SelectSubset<T, MihomeEnvHourUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Update zero or more MihomeEnvHours and returns the data updated in the database.
|
||||||
|
* @param {MihomeEnvHourUpdateManyAndReturnArgs} args - Arguments to update many MihomeEnvHours.
|
||||||
|
* @example
|
||||||
|
* // Update many MihomeEnvHours
|
||||||
|
* const mihomeEnvHour = await prisma.mihomeEnvHour.updateManyAndReturn({
|
||||||
|
* where: {
|
||||||
|
* // ... provide filter here
|
||||||
|
* },
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
*
|
||||||
|
* // Update zero or more MihomeEnvHours and only return the `id`
|
||||||
|
* const mihomeEnvHourWithIdOnly = await prisma.mihomeEnvHour.updateManyAndReturn({
|
||||||
|
* select: { id: true },
|
||||||
|
* where: {
|
||||||
|
* // ... provide filter here
|
||||||
|
* },
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
* Note, that providing `undefined` is treated as the value not being there.
|
||||||
|
* Read more here: https://pris.ly/d/null-undefined
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
updateManyAndReturn<T extends MihomeEnvHourUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, MihomeEnvHourUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MihomeEnvHourPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create or update one MihomeEnvHour.
|
* Create or update one MihomeEnvHour.
|
||||||
* @param {MihomeEnvHourUpsertArgs} args - Arguments to update or create a MihomeEnvHour.
|
* @param {MihomeEnvHourUpsertArgs} args - Arguments to update or create a MihomeEnvHour.
|
||||||
@@ -1210,6 +1290,29 @@ export type MihomeEnvHourCreateManyArgs<ExtArgs extends runtime.Types.Extensions
|
|||||||
skipDuplicates?: boolean
|
skipDuplicates?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* MihomeEnvHour createManyAndReturn
|
||||||
|
*/
|
||||||
|
export type MihomeEnvHourCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
|
/**
|
||||||
|
* Select specific fields to fetch from the MihomeEnvHour
|
||||||
|
*/
|
||||||
|
select?: Prisma.MihomeEnvHourSelectCreateManyAndReturn<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* Omit specific fields from the MihomeEnvHour
|
||||||
|
*/
|
||||||
|
omit?: Prisma.MihomeEnvHourOmit<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* The data used to create many MihomeEnvHours.
|
||||||
|
*/
|
||||||
|
data: Prisma.MihomeEnvHourCreateManyInput | Prisma.MihomeEnvHourCreateManyInput[]
|
||||||
|
skipDuplicates?: boolean
|
||||||
|
/**
|
||||||
|
* Choose, which related nodes to fetch as well
|
||||||
|
*/
|
||||||
|
include?: Prisma.MihomeEnvHourIncludeCreateManyAndReturn<ExtArgs> | null
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* MihomeEnvHour update
|
* MihomeEnvHour update
|
||||||
*/
|
*/
|
||||||
@@ -1254,6 +1357,36 @@ export type MihomeEnvHourUpdateManyArgs<ExtArgs extends runtime.Types.Extensions
|
|||||||
limit?: number
|
limit?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* MihomeEnvHour updateManyAndReturn
|
||||||
|
*/
|
||||||
|
export type MihomeEnvHourUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
|
/**
|
||||||
|
* Select specific fields to fetch from the MihomeEnvHour
|
||||||
|
*/
|
||||||
|
select?: Prisma.MihomeEnvHourSelectUpdateManyAndReturn<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* Omit specific fields from the MihomeEnvHour
|
||||||
|
*/
|
||||||
|
omit?: Prisma.MihomeEnvHourOmit<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* The data used to update MihomeEnvHours.
|
||||||
|
*/
|
||||||
|
data: Prisma.XOR<Prisma.MihomeEnvHourUpdateManyMutationInput, Prisma.MihomeEnvHourUncheckedUpdateManyInput>
|
||||||
|
/**
|
||||||
|
* Filter which MihomeEnvHours to update
|
||||||
|
*/
|
||||||
|
where?: Prisma.MihomeEnvHourWhereInput
|
||||||
|
/**
|
||||||
|
* Limit how many MihomeEnvHours to update.
|
||||||
|
*/
|
||||||
|
limit?: number
|
||||||
|
/**
|
||||||
|
* Choose, which related nodes to fetch as well
|
||||||
|
*/
|
||||||
|
include?: Prisma.MihomeEnvHourIncludeUpdateManyAndReturn<ExtArgs> | null
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* MihomeEnvHour upsert
|
* MihomeEnvHour upsert
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -348,7 +348,6 @@ export type MihomeEnvSampleOrderByWithRelationInput = {
|
|||||||
raw?: Prisma.SortOrderInput | Prisma.SortOrder
|
raw?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||||
createdAt?: Prisma.SortOrder
|
createdAt?: Prisma.SortOrder
|
||||||
device?: Prisma.MihomeDeviceOrderByWithRelationInput
|
device?: Prisma.MihomeDeviceOrderByWithRelationInput
|
||||||
_relevance?: Prisma.MihomeEnvSampleOrderByRelevanceInput
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type MihomeEnvSampleWhereUniqueInput = Prisma.AtLeast<{
|
export type MihomeEnvSampleWhereUniqueInput = Prisma.AtLeast<{
|
||||||
@@ -550,12 +549,6 @@ export type MihomeEnvSampleOrderByRelationAggregateInput = {
|
|||||||
_count?: Prisma.SortOrder
|
_count?: Prisma.SortOrder
|
||||||
}
|
}
|
||||||
|
|
||||||
export type MihomeEnvSampleOrderByRelevanceInput = {
|
|
||||||
fields: Prisma.MihomeEnvSampleOrderByRelevanceFieldEnum | Prisma.MihomeEnvSampleOrderByRelevanceFieldEnum[]
|
|
||||||
sort: Prisma.SortOrder
|
|
||||||
search: string
|
|
||||||
}
|
|
||||||
|
|
||||||
export type MihomeEnvSampleDeviceIdDateCompoundUniqueInput = {
|
export type MihomeEnvSampleDeviceIdDateCompoundUniqueInput = {
|
||||||
deviceId: number
|
deviceId: number
|
||||||
date: Date | string
|
date: Date | string
|
||||||
@@ -857,7 +850,43 @@ export type MihomeEnvSampleSelect<ExtArgs extends runtime.Types.Extensions.Inter
|
|||||||
device?: boolean | Prisma.MihomeDeviceDefaultArgs<ExtArgs>
|
device?: boolean | Prisma.MihomeDeviceDefaultArgs<ExtArgs>
|
||||||
}, ExtArgs["result"]["mihomeEnvSample"]>
|
}, ExtArgs["result"]["mihomeEnvSample"]>
|
||||||
|
|
||||||
|
export type MihomeEnvSampleSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||||
|
id?: boolean
|
||||||
|
deviceId?: boolean
|
||||||
|
date?: boolean
|
||||||
|
temperature?: boolean
|
||||||
|
humidity?: boolean
|
||||||
|
temperatureAvg?: boolean
|
||||||
|
humidityAvg?: boolean
|
||||||
|
temperatureMin?: boolean
|
||||||
|
temperatureMax?: boolean
|
||||||
|
humidityMin?: boolean
|
||||||
|
humidityMax?: boolean
|
||||||
|
origin?: boolean
|
||||||
|
sampledAt?: boolean
|
||||||
|
raw?: boolean
|
||||||
|
createdAt?: boolean
|
||||||
|
device?: boolean | Prisma.MihomeDeviceDefaultArgs<ExtArgs>
|
||||||
|
}, ExtArgs["result"]["mihomeEnvSample"]>
|
||||||
|
|
||||||
|
export type MihomeEnvSampleSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||||
|
id?: boolean
|
||||||
|
deviceId?: boolean
|
||||||
|
date?: boolean
|
||||||
|
temperature?: boolean
|
||||||
|
humidity?: boolean
|
||||||
|
temperatureAvg?: boolean
|
||||||
|
humidityAvg?: boolean
|
||||||
|
temperatureMin?: boolean
|
||||||
|
temperatureMax?: boolean
|
||||||
|
humidityMin?: boolean
|
||||||
|
humidityMax?: boolean
|
||||||
|
origin?: boolean
|
||||||
|
sampledAt?: boolean
|
||||||
|
raw?: boolean
|
||||||
|
createdAt?: boolean
|
||||||
|
device?: boolean | Prisma.MihomeDeviceDefaultArgs<ExtArgs>
|
||||||
|
}, ExtArgs["result"]["mihomeEnvSample"]>
|
||||||
|
|
||||||
export type MihomeEnvSampleSelectScalar = {
|
export type MihomeEnvSampleSelectScalar = {
|
||||||
id?: boolean
|
id?: boolean
|
||||||
@@ -881,6 +910,12 @@ export type MihomeEnvSampleOmit<ExtArgs extends runtime.Types.Extensions.Interna
|
|||||||
export type MihomeEnvSampleInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
export type MihomeEnvSampleInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
device?: boolean | Prisma.MihomeDeviceDefaultArgs<ExtArgs>
|
device?: boolean | Prisma.MihomeDeviceDefaultArgs<ExtArgs>
|
||||||
}
|
}
|
||||||
|
export type MihomeEnvSampleIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
|
device?: boolean | Prisma.MihomeDeviceDefaultArgs<ExtArgs>
|
||||||
|
}
|
||||||
|
export type MihomeEnvSampleIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
|
device?: boolean | Prisma.MihomeDeviceDefaultArgs<ExtArgs>
|
||||||
|
}
|
||||||
|
|
||||||
export type $MihomeEnvSamplePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
export type $MihomeEnvSamplePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
name: "MihomeEnvSample"
|
name: "MihomeEnvSample"
|
||||||
@@ -1020,6 +1055,30 @@ export interface MihomeEnvSampleDelegate<ExtArgs extends runtime.Types.Extension
|
|||||||
*/
|
*/
|
||||||
createMany<T extends MihomeEnvSampleCreateManyArgs>(args?: Prisma.SelectSubset<T, MihomeEnvSampleCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
createMany<T extends MihomeEnvSampleCreateManyArgs>(args?: Prisma.SelectSubset<T, MihomeEnvSampleCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create many MihomeEnvSamples and returns the data saved in the database.
|
||||||
|
* @param {MihomeEnvSampleCreateManyAndReturnArgs} args - Arguments to create many MihomeEnvSamples.
|
||||||
|
* @example
|
||||||
|
* // Create many MihomeEnvSamples
|
||||||
|
* const mihomeEnvSample = await prisma.mihomeEnvSample.createManyAndReturn({
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
*
|
||||||
|
* // Create many MihomeEnvSamples and only return the `id`
|
||||||
|
* const mihomeEnvSampleWithIdOnly = await prisma.mihomeEnvSample.createManyAndReturn({
|
||||||
|
* select: { id: true },
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
* Note, that providing `undefined` is treated as the value not being there.
|
||||||
|
* Read more here: https://pris.ly/d/null-undefined
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
createManyAndReturn<T extends MihomeEnvSampleCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, MihomeEnvSampleCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MihomeEnvSamplePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Delete a MihomeEnvSample.
|
* Delete a MihomeEnvSample.
|
||||||
* @param {MihomeEnvSampleDeleteArgs} args - Arguments to delete one MihomeEnvSample.
|
* @param {MihomeEnvSampleDeleteArgs} args - Arguments to delete one MihomeEnvSample.
|
||||||
@@ -1084,6 +1143,36 @@ export interface MihomeEnvSampleDelegate<ExtArgs extends runtime.Types.Extension
|
|||||||
*/
|
*/
|
||||||
updateMany<T extends MihomeEnvSampleUpdateManyArgs>(args: Prisma.SelectSubset<T, MihomeEnvSampleUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
updateMany<T extends MihomeEnvSampleUpdateManyArgs>(args: Prisma.SelectSubset<T, MihomeEnvSampleUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Update zero or more MihomeEnvSamples and returns the data updated in the database.
|
||||||
|
* @param {MihomeEnvSampleUpdateManyAndReturnArgs} args - Arguments to update many MihomeEnvSamples.
|
||||||
|
* @example
|
||||||
|
* // Update many MihomeEnvSamples
|
||||||
|
* const mihomeEnvSample = await prisma.mihomeEnvSample.updateManyAndReturn({
|
||||||
|
* where: {
|
||||||
|
* // ... provide filter here
|
||||||
|
* },
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
*
|
||||||
|
* // Update zero or more MihomeEnvSamples and only return the `id`
|
||||||
|
* const mihomeEnvSampleWithIdOnly = await prisma.mihomeEnvSample.updateManyAndReturn({
|
||||||
|
* select: { id: true },
|
||||||
|
* where: {
|
||||||
|
* // ... provide filter here
|
||||||
|
* },
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
* Note, that providing `undefined` is treated as the value not being there.
|
||||||
|
* Read more here: https://pris.ly/d/null-undefined
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
updateManyAndReturn<T extends MihomeEnvSampleUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, MihomeEnvSampleUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MihomeEnvSamplePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create or update one MihomeEnvSample.
|
* Create or update one MihomeEnvSample.
|
||||||
* @param {MihomeEnvSampleUpsertArgs} args - Arguments to update or create a MihomeEnvSample.
|
* @param {MihomeEnvSampleUpsertArgs} args - Arguments to update or create a MihomeEnvSample.
|
||||||
@@ -1525,6 +1614,29 @@ export type MihomeEnvSampleCreateManyArgs<ExtArgs extends runtime.Types.Extensio
|
|||||||
skipDuplicates?: boolean
|
skipDuplicates?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* MihomeEnvSample createManyAndReturn
|
||||||
|
*/
|
||||||
|
export type MihomeEnvSampleCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
|
/**
|
||||||
|
* Select specific fields to fetch from the MihomeEnvSample
|
||||||
|
*/
|
||||||
|
select?: Prisma.MihomeEnvSampleSelectCreateManyAndReturn<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* Omit specific fields from the MihomeEnvSample
|
||||||
|
*/
|
||||||
|
omit?: Prisma.MihomeEnvSampleOmit<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* The data used to create many MihomeEnvSamples.
|
||||||
|
*/
|
||||||
|
data: Prisma.MihomeEnvSampleCreateManyInput | Prisma.MihomeEnvSampleCreateManyInput[]
|
||||||
|
skipDuplicates?: boolean
|
||||||
|
/**
|
||||||
|
* Choose, which related nodes to fetch as well
|
||||||
|
*/
|
||||||
|
include?: Prisma.MihomeEnvSampleIncludeCreateManyAndReturn<ExtArgs> | null
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* MihomeEnvSample update
|
* MihomeEnvSample update
|
||||||
*/
|
*/
|
||||||
@@ -1569,6 +1681,36 @@ export type MihomeEnvSampleUpdateManyArgs<ExtArgs extends runtime.Types.Extensio
|
|||||||
limit?: number
|
limit?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* MihomeEnvSample updateManyAndReturn
|
||||||
|
*/
|
||||||
|
export type MihomeEnvSampleUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
|
/**
|
||||||
|
* Select specific fields to fetch from the MihomeEnvSample
|
||||||
|
*/
|
||||||
|
select?: Prisma.MihomeEnvSampleSelectUpdateManyAndReturn<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* Omit specific fields from the MihomeEnvSample
|
||||||
|
*/
|
||||||
|
omit?: Prisma.MihomeEnvSampleOmit<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* The data used to update MihomeEnvSamples.
|
||||||
|
*/
|
||||||
|
data: Prisma.XOR<Prisma.MihomeEnvSampleUpdateManyMutationInput, Prisma.MihomeEnvSampleUncheckedUpdateManyInput>
|
||||||
|
/**
|
||||||
|
* Filter which MihomeEnvSamples to update
|
||||||
|
*/
|
||||||
|
where?: Prisma.MihomeEnvSampleWhereInput
|
||||||
|
/**
|
||||||
|
* Limit how many MihomeEnvSamples to update.
|
||||||
|
*/
|
||||||
|
limit?: number
|
||||||
|
/**
|
||||||
|
* Choose, which related nodes to fetch as well
|
||||||
|
*/
|
||||||
|
include?: Prisma.MihomeEnvSampleIncludeUpdateManyAndReturn<ExtArgs> | null
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* MihomeEnvSample upsert
|
* MihomeEnvSample upsert
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -217,7 +217,6 @@ export type MihomeHomeOrderByWithRelationInput = {
|
|||||||
name?: Prisma.SortOrder
|
name?: Prisma.SortOrder
|
||||||
createdAt?: Prisma.SortOrder
|
createdAt?: Prisma.SortOrder
|
||||||
devices?: Prisma.MihomeDeviceOrderByRelationAggregateInput
|
devices?: Prisma.MihomeDeviceOrderByRelationAggregateInput
|
||||||
_relevance?: Prisma.MihomeHomeOrderByRelevanceInput
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type MihomeHomeWhereUniqueInput = Prisma.AtLeast<{
|
export type MihomeHomeWhereUniqueInput = Prisma.AtLeast<{
|
||||||
@@ -303,12 +302,6 @@ export type MihomeHomeUncheckedUpdateManyInput = {
|
|||||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type MihomeHomeOrderByRelevanceInput = {
|
|
||||||
fields: Prisma.MihomeHomeOrderByRelevanceFieldEnum | Prisma.MihomeHomeOrderByRelevanceFieldEnum[]
|
|
||||||
sort: Prisma.SortOrder
|
|
||||||
search: string
|
|
||||||
}
|
|
||||||
|
|
||||||
export type MihomeHomeCountOrderByAggregateInput = {
|
export type MihomeHomeCountOrderByAggregateInput = {
|
||||||
id?: Prisma.SortOrder
|
id?: Prisma.SortOrder
|
||||||
homeId?: Prisma.SortOrder
|
homeId?: Prisma.SortOrder
|
||||||
@@ -439,7 +432,19 @@ export type MihomeHomeSelect<ExtArgs extends runtime.Types.Extensions.InternalAr
|
|||||||
_count?: boolean | Prisma.MihomeHomeCountOutputTypeDefaultArgs<ExtArgs>
|
_count?: boolean | Prisma.MihomeHomeCountOutputTypeDefaultArgs<ExtArgs>
|
||||||
}, ExtArgs["result"]["mihomeHome"]>
|
}, ExtArgs["result"]["mihomeHome"]>
|
||||||
|
|
||||||
|
export type MihomeHomeSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||||
|
id?: boolean
|
||||||
|
homeId?: boolean
|
||||||
|
name?: boolean
|
||||||
|
createdAt?: boolean
|
||||||
|
}, ExtArgs["result"]["mihomeHome"]>
|
||||||
|
|
||||||
|
export type MihomeHomeSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||||
|
id?: boolean
|
||||||
|
homeId?: boolean
|
||||||
|
name?: boolean
|
||||||
|
createdAt?: boolean
|
||||||
|
}, ExtArgs["result"]["mihomeHome"]>
|
||||||
|
|
||||||
export type MihomeHomeSelectScalar = {
|
export type MihomeHomeSelectScalar = {
|
||||||
id?: boolean
|
id?: boolean
|
||||||
@@ -453,6 +458,8 @@ export type MihomeHomeInclude<ExtArgs extends runtime.Types.Extensions.InternalA
|
|||||||
devices?: boolean | Prisma.MihomeHome$devicesArgs<ExtArgs>
|
devices?: boolean | Prisma.MihomeHome$devicesArgs<ExtArgs>
|
||||||
_count?: boolean | Prisma.MihomeHomeCountOutputTypeDefaultArgs<ExtArgs>
|
_count?: boolean | Prisma.MihomeHomeCountOutputTypeDefaultArgs<ExtArgs>
|
||||||
}
|
}
|
||||||
|
export type MihomeHomeIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
|
||||||
|
export type MihomeHomeIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
|
||||||
|
|
||||||
export type $MihomeHomePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
export type $MihomeHomePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
name: "MihomeHome"
|
name: "MihomeHome"
|
||||||
@@ -581,6 +588,30 @@ export interface MihomeHomeDelegate<ExtArgs extends runtime.Types.Extensions.Int
|
|||||||
*/
|
*/
|
||||||
createMany<T extends MihomeHomeCreateManyArgs>(args?: Prisma.SelectSubset<T, MihomeHomeCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
createMany<T extends MihomeHomeCreateManyArgs>(args?: Prisma.SelectSubset<T, MihomeHomeCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create many MihomeHomes and returns the data saved in the database.
|
||||||
|
* @param {MihomeHomeCreateManyAndReturnArgs} args - Arguments to create many MihomeHomes.
|
||||||
|
* @example
|
||||||
|
* // Create many MihomeHomes
|
||||||
|
* const mihomeHome = await prisma.mihomeHome.createManyAndReturn({
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
*
|
||||||
|
* // Create many MihomeHomes and only return the `id`
|
||||||
|
* const mihomeHomeWithIdOnly = await prisma.mihomeHome.createManyAndReturn({
|
||||||
|
* select: { id: true },
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
* Note, that providing `undefined` is treated as the value not being there.
|
||||||
|
* Read more here: https://pris.ly/d/null-undefined
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
createManyAndReturn<T extends MihomeHomeCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, MihomeHomeCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MihomeHomePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Delete a MihomeHome.
|
* Delete a MihomeHome.
|
||||||
* @param {MihomeHomeDeleteArgs} args - Arguments to delete one MihomeHome.
|
* @param {MihomeHomeDeleteArgs} args - Arguments to delete one MihomeHome.
|
||||||
@@ -645,6 +676,36 @@ export interface MihomeHomeDelegate<ExtArgs extends runtime.Types.Extensions.Int
|
|||||||
*/
|
*/
|
||||||
updateMany<T extends MihomeHomeUpdateManyArgs>(args: Prisma.SelectSubset<T, MihomeHomeUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
updateMany<T extends MihomeHomeUpdateManyArgs>(args: Prisma.SelectSubset<T, MihomeHomeUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Update zero or more MihomeHomes and returns the data updated in the database.
|
||||||
|
* @param {MihomeHomeUpdateManyAndReturnArgs} args - Arguments to update many MihomeHomes.
|
||||||
|
* @example
|
||||||
|
* // Update many MihomeHomes
|
||||||
|
* const mihomeHome = await prisma.mihomeHome.updateManyAndReturn({
|
||||||
|
* where: {
|
||||||
|
* // ... provide filter here
|
||||||
|
* },
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
*
|
||||||
|
* // Update zero or more MihomeHomes and only return the `id`
|
||||||
|
* const mihomeHomeWithIdOnly = await prisma.mihomeHome.updateManyAndReturn({
|
||||||
|
* select: { id: true },
|
||||||
|
* where: {
|
||||||
|
* // ... provide filter here
|
||||||
|
* },
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
* Note, that providing `undefined` is treated as the value not being there.
|
||||||
|
* Read more here: https://pris.ly/d/null-undefined
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
updateManyAndReturn<T extends MihomeHomeUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, MihomeHomeUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MihomeHomePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create or update one MihomeHome.
|
* Create or update one MihomeHome.
|
||||||
* @param {MihomeHomeUpsertArgs} args - Arguments to update or create a MihomeHome.
|
* @param {MihomeHomeUpsertArgs} args - Arguments to update or create a MihomeHome.
|
||||||
@@ -1075,6 +1136,25 @@ export type MihomeHomeCreateManyArgs<ExtArgs extends runtime.Types.Extensions.In
|
|||||||
skipDuplicates?: boolean
|
skipDuplicates?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* MihomeHome createManyAndReturn
|
||||||
|
*/
|
||||||
|
export type MihomeHomeCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
|
/**
|
||||||
|
* Select specific fields to fetch from the MihomeHome
|
||||||
|
*/
|
||||||
|
select?: Prisma.MihomeHomeSelectCreateManyAndReturn<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* Omit specific fields from the MihomeHome
|
||||||
|
*/
|
||||||
|
omit?: Prisma.MihomeHomeOmit<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* The data used to create many MihomeHomes.
|
||||||
|
*/
|
||||||
|
data: Prisma.MihomeHomeCreateManyInput | Prisma.MihomeHomeCreateManyInput[]
|
||||||
|
skipDuplicates?: boolean
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* MihomeHome update
|
* MihomeHome update
|
||||||
*/
|
*/
|
||||||
@@ -1119,6 +1199,32 @@ export type MihomeHomeUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.In
|
|||||||
limit?: number
|
limit?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* MihomeHome updateManyAndReturn
|
||||||
|
*/
|
||||||
|
export type MihomeHomeUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
|
/**
|
||||||
|
* Select specific fields to fetch from the MihomeHome
|
||||||
|
*/
|
||||||
|
select?: Prisma.MihomeHomeSelectUpdateManyAndReturn<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* Omit specific fields from the MihomeHome
|
||||||
|
*/
|
||||||
|
omit?: Prisma.MihomeHomeOmit<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* The data used to update MihomeHomes.
|
||||||
|
*/
|
||||||
|
data: Prisma.XOR<Prisma.MihomeHomeUpdateManyMutationInput, Prisma.MihomeHomeUncheckedUpdateManyInput>
|
||||||
|
/**
|
||||||
|
* Filter which MihomeHomes to update
|
||||||
|
*/
|
||||||
|
where?: Prisma.MihomeHomeWhereInput
|
||||||
|
/**
|
||||||
|
* Limit how many MihomeHomes to update.
|
||||||
|
*/
|
||||||
|
limit?: number
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* MihomeHome upsert
|
* MihomeHome upsert
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -264,7 +264,6 @@ export type NewsOrderByWithRelationInput = {
|
|||||||
publishedAt?: Prisma.SortOrder
|
publishedAt?: Prisma.SortOrder
|
||||||
impactRank?: Prisma.SortOrder
|
impactRank?: Prisma.SortOrder
|
||||||
createdAt?: Prisma.SortOrder
|
createdAt?: Prisma.SortOrder
|
||||||
_relevance?: Prisma.NewsOrderByRelevanceInput
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type NewsWhereUniqueInput = Prisma.AtLeast<{
|
export type NewsWhereUniqueInput = Prisma.AtLeast<{
|
||||||
@@ -396,12 +395,6 @@ export type NewsUncheckedUpdateManyInput = {
|
|||||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type NewsOrderByRelevanceInput = {
|
|
||||||
fields: Prisma.NewsOrderByRelevanceFieldEnum | Prisma.NewsOrderByRelevanceFieldEnum[]
|
|
||||||
sort: Prisma.SortOrder
|
|
||||||
search: string
|
|
||||||
}
|
|
||||||
|
|
||||||
export type NewsTitlePublishedAtCompoundUniqueInput = {
|
export type NewsTitlePublishedAtCompoundUniqueInput = {
|
||||||
title: string
|
title: string
|
||||||
publishedAt: Date | string
|
publishedAt: Date | string
|
||||||
@@ -471,7 +464,29 @@ export type NewsSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = r
|
|||||||
createdAt?: boolean
|
createdAt?: boolean
|
||||||
}, ExtArgs["result"]["news"]>
|
}, ExtArgs["result"]["news"]>
|
||||||
|
|
||||||
|
export type NewsSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||||
|
id?: boolean
|
||||||
|
title?: boolean
|
||||||
|
summary?: boolean
|
||||||
|
content?: boolean
|
||||||
|
source?: boolean
|
||||||
|
url?: boolean
|
||||||
|
publishedAt?: boolean
|
||||||
|
impactRank?: boolean
|
||||||
|
createdAt?: boolean
|
||||||
|
}, ExtArgs["result"]["news"]>
|
||||||
|
|
||||||
|
export type NewsSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||||
|
id?: boolean
|
||||||
|
title?: boolean
|
||||||
|
summary?: boolean
|
||||||
|
content?: boolean
|
||||||
|
source?: boolean
|
||||||
|
url?: boolean
|
||||||
|
publishedAt?: boolean
|
||||||
|
impactRank?: boolean
|
||||||
|
createdAt?: boolean
|
||||||
|
}, ExtArgs["result"]["news"]>
|
||||||
|
|
||||||
export type NewsSelectScalar = {
|
export type NewsSelectScalar = {
|
||||||
id?: boolean
|
id?: boolean
|
||||||
@@ -617,6 +632,30 @@ export interface NewsDelegate<ExtArgs extends runtime.Types.Extensions.InternalA
|
|||||||
*/
|
*/
|
||||||
createMany<T extends NewsCreateManyArgs>(args?: Prisma.SelectSubset<T, NewsCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
createMany<T extends NewsCreateManyArgs>(args?: Prisma.SelectSubset<T, NewsCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create many News and returns the data saved in the database.
|
||||||
|
* @param {NewsCreateManyAndReturnArgs} args - Arguments to create many News.
|
||||||
|
* @example
|
||||||
|
* // Create many News
|
||||||
|
* const news = await prisma.news.createManyAndReturn({
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
*
|
||||||
|
* // Create many News and only return the `id`
|
||||||
|
* const newsWithIdOnly = await prisma.news.createManyAndReturn({
|
||||||
|
* select: { id: true },
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
* Note, that providing `undefined` is treated as the value not being there.
|
||||||
|
* Read more here: https://pris.ly/d/null-undefined
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
createManyAndReturn<T extends NewsCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, NewsCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$NewsPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Delete a News.
|
* Delete a News.
|
||||||
* @param {NewsDeleteArgs} args - Arguments to delete one News.
|
* @param {NewsDeleteArgs} args - Arguments to delete one News.
|
||||||
@@ -681,6 +720,36 @@ export interface NewsDelegate<ExtArgs extends runtime.Types.Extensions.InternalA
|
|||||||
*/
|
*/
|
||||||
updateMany<T extends NewsUpdateManyArgs>(args: Prisma.SelectSubset<T, NewsUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
updateMany<T extends NewsUpdateManyArgs>(args: Prisma.SelectSubset<T, NewsUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Update zero or more News and returns the data updated in the database.
|
||||||
|
* @param {NewsUpdateManyAndReturnArgs} args - Arguments to update many News.
|
||||||
|
* @example
|
||||||
|
* // Update many News
|
||||||
|
* const news = await prisma.news.updateManyAndReturn({
|
||||||
|
* where: {
|
||||||
|
* // ... provide filter here
|
||||||
|
* },
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
*
|
||||||
|
* // Update zero or more News and only return the `id`
|
||||||
|
* const newsWithIdOnly = await prisma.news.updateManyAndReturn({
|
||||||
|
* select: { id: true },
|
||||||
|
* where: {
|
||||||
|
* // ... provide filter here
|
||||||
|
* },
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
* Note, that providing `undefined` is treated as the value not being there.
|
||||||
|
* Read more here: https://pris.ly/d/null-undefined
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
updateManyAndReturn<T extends NewsUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, NewsUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$NewsPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create or update one News.
|
* Create or update one News.
|
||||||
* @param {NewsUpsertArgs} args - Arguments to update or create a News.
|
* @param {NewsUpsertArgs} args - Arguments to update or create a News.
|
||||||
@@ -1091,6 +1160,25 @@ export type NewsCreateManyArgs<ExtArgs extends runtime.Types.Extensions.Internal
|
|||||||
skipDuplicates?: boolean
|
skipDuplicates?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* News createManyAndReturn
|
||||||
|
*/
|
||||||
|
export type NewsCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
|
/**
|
||||||
|
* Select specific fields to fetch from the News
|
||||||
|
*/
|
||||||
|
select?: Prisma.NewsSelectCreateManyAndReturn<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* Omit specific fields from the News
|
||||||
|
*/
|
||||||
|
omit?: Prisma.NewsOmit<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* The data used to create many News.
|
||||||
|
*/
|
||||||
|
data: Prisma.NewsCreateManyInput | Prisma.NewsCreateManyInput[]
|
||||||
|
skipDuplicates?: boolean
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* News update
|
* News update
|
||||||
*/
|
*/
|
||||||
@@ -1131,6 +1219,32 @@ export type NewsUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.Internal
|
|||||||
limit?: number
|
limit?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* News updateManyAndReturn
|
||||||
|
*/
|
||||||
|
export type NewsUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
|
/**
|
||||||
|
* Select specific fields to fetch from the News
|
||||||
|
*/
|
||||||
|
select?: Prisma.NewsSelectUpdateManyAndReturn<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* Omit specific fields from the News
|
||||||
|
*/
|
||||||
|
omit?: Prisma.NewsOmit<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* The data used to update News.
|
||||||
|
*/
|
||||||
|
data: Prisma.XOR<Prisma.NewsUpdateManyMutationInput, Prisma.NewsUncheckedUpdateManyInput>
|
||||||
|
/**
|
||||||
|
* Filter which News to update
|
||||||
|
*/
|
||||||
|
where?: Prisma.NewsWhereInput
|
||||||
|
/**
|
||||||
|
* Limit how many News to update.
|
||||||
|
*/
|
||||||
|
limit?: number
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* News upsert
|
* News upsert
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -246,7 +246,6 @@ export type OilPriceHistoryOrderByWithRelationInput = {
|
|||||||
price?: Prisma.SortOrder
|
price?: Prisma.SortOrder
|
||||||
source?: Prisma.SortOrder
|
source?: Prisma.SortOrder
|
||||||
createdAt?: Prisma.SortOrder
|
createdAt?: Prisma.SortOrder
|
||||||
_relevance?: Prisma.OilPriceHistoryOrderByRelevanceInput
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type OilPriceHistoryWhereUniqueInput = Prisma.AtLeast<{
|
export type OilPriceHistoryWhereUniqueInput = Prisma.AtLeast<{
|
||||||
@@ -358,12 +357,6 @@ export type OilPriceHistoryUncheckedUpdateManyInput = {
|
|||||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type OilPriceHistoryOrderByRelevanceInput = {
|
|
||||||
fields: Prisma.OilPriceHistoryOrderByRelevanceFieldEnum | Prisma.OilPriceHistoryOrderByRelevanceFieldEnum[]
|
|
||||||
sort: Prisma.SortOrder
|
|
||||||
search: string
|
|
||||||
}
|
|
||||||
|
|
||||||
export type OilPriceHistoryDateProvinceFuelCompoundUniqueInput = {
|
export type OilPriceHistoryDateProvinceFuelCompoundUniqueInput = {
|
||||||
date: Date | string
|
date: Date | string
|
||||||
province: string
|
province: string
|
||||||
@@ -422,7 +415,25 @@ export type OilPriceHistorySelect<ExtArgs extends runtime.Types.Extensions.Inter
|
|||||||
createdAt?: boolean
|
createdAt?: boolean
|
||||||
}, ExtArgs["result"]["oilPriceHistory"]>
|
}, ExtArgs["result"]["oilPriceHistory"]>
|
||||||
|
|
||||||
|
export type OilPriceHistorySelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||||
|
id?: boolean
|
||||||
|
date?: boolean
|
||||||
|
province?: boolean
|
||||||
|
fuel?: boolean
|
||||||
|
price?: boolean
|
||||||
|
source?: boolean
|
||||||
|
createdAt?: boolean
|
||||||
|
}, ExtArgs["result"]["oilPriceHistory"]>
|
||||||
|
|
||||||
|
export type OilPriceHistorySelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||||
|
id?: boolean
|
||||||
|
date?: boolean
|
||||||
|
province?: boolean
|
||||||
|
fuel?: boolean
|
||||||
|
price?: boolean
|
||||||
|
source?: boolean
|
||||||
|
createdAt?: boolean
|
||||||
|
}, ExtArgs["result"]["oilPriceHistory"]>
|
||||||
|
|
||||||
export type OilPriceHistorySelectScalar = {
|
export type OilPriceHistorySelectScalar = {
|
||||||
id?: boolean
|
id?: boolean
|
||||||
@@ -564,6 +575,30 @@ export interface OilPriceHistoryDelegate<ExtArgs extends runtime.Types.Extension
|
|||||||
*/
|
*/
|
||||||
createMany<T extends OilPriceHistoryCreateManyArgs>(args?: Prisma.SelectSubset<T, OilPriceHistoryCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
createMany<T extends OilPriceHistoryCreateManyArgs>(args?: Prisma.SelectSubset<T, OilPriceHistoryCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create many OilPriceHistories and returns the data saved in the database.
|
||||||
|
* @param {OilPriceHistoryCreateManyAndReturnArgs} args - Arguments to create many OilPriceHistories.
|
||||||
|
* @example
|
||||||
|
* // Create many OilPriceHistories
|
||||||
|
* const oilPriceHistory = await prisma.oilPriceHistory.createManyAndReturn({
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
*
|
||||||
|
* // Create many OilPriceHistories and only return the `id`
|
||||||
|
* const oilPriceHistoryWithIdOnly = await prisma.oilPriceHistory.createManyAndReturn({
|
||||||
|
* select: { id: true },
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
* Note, that providing `undefined` is treated as the value not being there.
|
||||||
|
* Read more here: https://pris.ly/d/null-undefined
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
createManyAndReturn<T extends OilPriceHistoryCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, OilPriceHistoryCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OilPriceHistoryPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Delete a OilPriceHistory.
|
* Delete a OilPriceHistory.
|
||||||
* @param {OilPriceHistoryDeleteArgs} args - Arguments to delete one OilPriceHistory.
|
* @param {OilPriceHistoryDeleteArgs} args - Arguments to delete one OilPriceHistory.
|
||||||
@@ -628,6 +663,36 @@ export interface OilPriceHistoryDelegate<ExtArgs extends runtime.Types.Extension
|
|||||||
*/
|
*/
|
||||||
updateMany<T extends OilPriceHistoryUpdateManyArgs>(args: Prisma.SelectSubset<T, OilPriceHistoryUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
updateMany<T extends OilPriceHistoryUpdateManyArgs>(args: Prisma.SelectSubset<T, OilPriceHistoryUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Update zero or more OilPriceHistories and returns the data updated in the database.
|
||||||
|
* @param {OilPriceHistoryUpdateManyAndReturnArgs} args - Arguments to update many OilPriceHistories.
|
||||||
|
* @example
|
||||||
|
* // Update many OilPriceHistories
|
||||||
|
* const oilPriceHistory = await prisma.oilPriceHistory.updateManyAndReturn({
|
||||||
|
* where: {
|
||||||
|
* // ... provide filter here
|
||||||
|
* },
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
*
|
||||||
|
* // Update zero or more OilPriceHistories and only return the `id`
|
||||||
|
* const oilPriceHistoryWithIdOnly = await prisma.oilPriceHistory.updateManyAndReturn({
|
||||||
|
* select: { id: true },
|
||||||
|
* where: {
|
||||||
|
* // ... provide filter here
|
||||||
|
* },
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
* Note, that providing `undefined` is treated as the value not being there.
|
||||||
|
* Read more here: https://pris.ly/d/null-undefined
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
updateManyAndReturn<T extends OilPriceHistoryUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, OilPriceHistoryUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OilPriceHistoryPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create or update one OilPriceHistory.
|
* Create or update one OilPriceHistory.
|
||||||
* @param {OilPriceHistoryUpsertArgs} args - Arguments to update or create a OilPriceHistory.
|
* @param {OilPriceHistoryUpsertArgs} args - Arguments to update or create a OilPriceHistory.
|
||||||
@@ -1036,6 +1101,25 @@ export type OilPriceHistoryCreateManyArgs<ExtArgs extends runtime.Types.Extensio
|
|||||||
skipDuplicates?: boolean
|
skipDuplicates?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* OilPriceHistory createManyAndReturn
|
||||||
|
*/
|
||||||
|
export type OilPriceHistoryCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
|
/**
|
||||||
|
* Select specific fields to fetch from the OilPriceHistory
|
||||||
|
*/
|
||||||
|
select?: Prisma.OilPriceHistorySelectCreateManyAndReturn<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* Omit specific fields from the OilPriceHistory
|
||||||
|
*/
|
||||||
|
omit?: Prisma.OilPriceHistoryOmit<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* The data used to create many OilPriceHistories.
|
||||||
|
*/
|
||||||
|
data: Prisma.OilPriceHistoryCreateManyInput | Prisma.OilPriceHistoryCreateManyInput[]
|
||||||
|
skipDuplicates?: boolean
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* OilPriceHistory update
|
* OilPriceHistory update
|
||||||
*/
|
*/
|
||||||
@@ -1076,6 +1160,32 @@ export type OilPriceHistoryUpdateManyArgs<ExtArgs extends runtime.Types.Extensio
|
|||||||
limit?: number
|
limit?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* OilPriceHistory updateManyAndReturn
|
||||||
|
*/
|
||||||
|
export type OilPriceHistoryUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
|
/**
|
||||||
|
* Select specific fields to fetch from the OilPriceHistory
|
||||||
|
*/
|
||||||
|
select?: Prisma.OilPriceHistorySelectUpdateManyAndReturn<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* Omit specific fields from the OilPriceHistory
|
||||||
|
*/
|
||||||
|
omit?: Prisma.OilPriceHistoryOmit<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* The data used to update OilPriceHistories.
|
||||||
|
*/
|
||||||
|
data: Prisma.XOR<Prisma.OilPriceHistoryUpdateManyMutationInput, Prisma.OilPriceHistoryUncheckedUpdateManyInput>
|
||||||
|
/**
|
||||||
|
* Filter which OilPriceHistories to update
|
||||||
|
*/
|
||||||
|
where?: Prisma.OilPriceHistoryWhereInput
|
||||||
|
/**
|
||||||
|
* Limit how many OilPriceHistories to update.
|
||||||
|
*/
|
||||||
|
limit?: number
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* OilPriceHistory upsert
|
* OilPriceHistory upsert
|
||||||
*/
|
*/
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -238,7 +238,6 @@ export type ScraperCacheOrderByWithRelationInput = {
|
|||||||
metadata?: Prisma.SortOrderInput | Prisma.SortOrder
|
metadata?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||||
createdAt?: Prisma.SortOrder
|
createdAt?: Prisma.SortOrder
|
||||||
updatedAt?: Prisma.SortOrder
|
updatedAt?: Prisma.SortOrder
|
||||||
_relevance?: Prisma.ScraperCacheOrderByRelevanceInput
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ScraperCacheWhereUniqueInput = Prisma.AtLeast<{
|
export type ScraperCacheWhereUniqueInput = Prisma.AtLeast<{
|
||||||
@@ -349,12 +348,6 @@ export type ScraperCacheUncheckedUpdateManyInput = {
|
|||||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ScraperCacheOrderByRelevanceInput = {
|
|
||||||
fields: Prisma.ScraperCacheOrderByRelevanceFieldEnum | Prisma.ScraperCacheOrderByRelevanceFieldEnum[]
|
|
||||||
sort: Prisma.SortOrder
|
|
||||||
search: string
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ScraperCacheCountOrderByAggregateInput = {
|
export type ScraperCacheCountOrderByAggregateInput = {
|
||||||
id?: Prisma.SortOrder
|
id?: Prisma.SortOrder
|
||||||
scraperName?: Prisma.SortOrder
|
scraperName?: Prisma.SortOrder
|
||||||
@@ -403,7 +396,25 @@ export type ScraperCacheSelect<ExtArgs extends runtime.Types.Extensions.Internal
|
|||||||
updatedAt?: boolean
|
updatedAt?: boolean
|
||||||
}, ExtArgs["result"]["scraperCache"]>
|
}, ExtArgs["result"]["scraperCache"]>
|
||||||
|
|
||||||
|
export type ScraperCacheSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||||
|
id?: boolean
|
||||||
|
scraperName?: boolean
|
||||||
|
lastDataHash?: boolean
|
||||||
|
lastUpdateAt?: boolean
|
||||||
|
metadata?: boolean
|
||||||
|
createdAt?: boolean
|
||||||
|
updatedAt?: boolean
|
||||||
|
}, ExtArgs["result"]["scraperCache"]>
|
||||||
|
|
||||||
|
export type ScraperCacheSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||||
|
id?: boolean
|
||||||
|
scraperName?: boolean
|
||||||
|
lastDataHash?: boolean
|
||||||
|
lastUpdateAt?: boolean
|
||||||
|
metadata?: boolean
|
||||||
|
createdAt?: boolean
|
||||||
|
updatedAt?: boolean
|
||||||
|
}, ExtArgs["result"]["scraperCache"]>
|
||||||
|
|
||||||
export type ScraperCacheSelectScalar = {
|
export type ScraperCacheSelectScalar = {
|
||||||
id?: boolean
|
id?: boolean
|
||||||
@@ -545,6 +556,30 @@ export interface ScraperCacheDelegate<ExtArgs extends runtime.Types.Extensions.I
|
|||||||
*/
|
*/
|
||||||
createMany<T extends ScraperCacheCreateManyArgs>(args?: Prisma.SelectSubset<T, ScraperCacheCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
createMany<T extends ScraperCacheCreateManyArgs>(args?: Prisma.SelectSubset<T, ScraperCacheCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create many ScraperCaches and returns the data saved in the database.
|
||||||
|
* @param {ScraperCacheCreateManyAndReturnArgs} args - Arguments to create many ScraperCaches.
|
||||||
|
* @example
|
||||||
|
* // Create many ScraperCaches
|
||||||
|
* const scraperCache = await prisma.scraperCache.createManyAndReturn({
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
*
|
||||||
|
* // Create many ScraperCaches and only return the `id`
|
||||||
|
* const scraperCacheWithIdOnly = await prisma.scraperCache.createManyAndReturn({
|
||||||
|
* select: { id: true },
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
* Note, that providing `undefined` is treated as the value not being there.
|
||||||
|
* Read more here: https://pris.ly/d/null-undefined
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
createManyAndReturn<T extends ScraperCacheCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ScraperCacheCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ScraperCachePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Delete a ScraperCache.
|
* Delete a ScraperCache.
|
||||||
* @param {ScraperCacheDeleteArgs} args - Arguments to delete one ScraperCache.
|
* @param {ScraperCacheDeleteArgs} args - Arguments to delete one ScraperCache.
|
||||||
@@ -609,6 +644,36 @@ export interface ScraperCacheDelegate<ExtArgs extends runtime.Types.Extensions.I
|
|||||||
*/
|
*/
|
||||||
updateMany<T extends ScraperCacheUpdateManyArgs>(args: Prisma.SelectSubset<T, ScraperCacheUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
updateMany<T extends ScraperCacheUpdateManyArgs>(args: Prisma.SelectSubset<T, ScraperCacheUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Update zero or more ScraperCaches and returns the data updated in the database.
|
||||||
|
* @param {ScraperCacheUpdateManyAndReturnArgs} args - Arguments to update many ScraperCaches.
|
||||||
|
* @example
|
||||||
|
* // Update many ScraperCaches
|
||||||
|
* const scraperCache = await prisma.scraperCache.updateManyAndReturn({
|
||||||
|
* where: {
|
||||||
|
* // ... provide filter here
|
||||||
|
* },
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
*
|
||||||
|
* // Update zero or more ScraperCaches and only return the `id`
|
||||||
|
* const scraperCacheWithIdOnly = await prisma.scraperCache.updateManyAndReturn({
|
||||||
|
* select: { id: true },
|
||||||
|
* where: {
|
||||||
|
* // ... provide filter here
|
||||||
|
* },
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
* Note, that providing `undefined` is treated as the value not being there.
|
||||||
|
* Read more here: https://pris.ly/d/null-undefined
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
updateManyAndReturn<T extends ScraperCacheUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ScraperCacheUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ScraperCachePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create or update one ScraperCache.
|
* Create or update one ScraperCache.
|
||||||
* @param {ScraperCacheUpsertArgs} args - Arguments to update or create a ScraperCache.
|
* @param {ScraperCacheUpsertArgs} args - Arguments to update or create a ScraperCache.
|
||||||
@@ -1017,6 +1082,25 @@ export type ScraperCacheCreateManyArgs<ExtArgs extends runtime.Types.Extensions.
|
|||||||
skipDuplicates?: boolean
|
skipDuplicates?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ScraperCache createManyAndReturn
|
||||||
|
*/
|
||||||
|
export type ScraperCacheCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
|
/**
|
||||||
|
* Select specific fields to fetch from the ScraperCache
|
||||||
|
*/
|
||||||
|
select?: Prisma.ScraperCacheSelectCreateManyAndReturn<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* Omit specific fields from the ScraperCache
|
||||||
|
*/
|
||||||
|
omit?: Prisma.ScraperCacheOmit<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* The data used to create many ScraperCaches.
|
||||||
|
*/
|
||||||
|
data: Prisma.ScraperCacheCreateManyInput | Prisma.ScraperCacheCreateManyInput[]
|
||||||
|
skipDuplicates?: boolean
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ScraperCache update
|
* ScraperCache update
|
||||||
*/
|
*/
|
||||||
@@ -1057,6 +1141,32 @@ export type ScraperCacheUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.
|
|||||||
limit?: number
|
limit?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ScraperCache updateManyAndReturn
|
||||||
|
*/
|
||||||
|
export type ScraperCacheUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
|
/**
|
||||||
|
* Select specific fields to fetch from the ScraperCache
|
||||||
|
*/
|
||||||
|
select?: Prisma.ScraperCacheSelectUpdateManyAndReturn<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* Omit specific fields from the ScraperCache
|
||||||
|
*/
|
||||||
|
omit?: Prisma.ScraperCacheOmit<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* The data used to update ScraperCaches.
|
||||||
|
*/
|
||||||
|
data: Prisma.XOR<Prisma.ScraperCacheUpdateManyMutationInput, Prisma.ScraperCacheUncheckedUpdateManyInput>
|
||||||
|
/**
|
||||||
|
* Filter which ScraperCaches to update
|
||||||
|
*/
|
||||||
|
where?: Prisma.ScraperCacheWhereInput
|
||||||
|
/**
|
||||||
|
* Limit how many ScraperCaches to update.
|
||||||
|
*/
|
||||||
|
limit?: number
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ScraperCache upsert
|
* ScraperCache upsert
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -464,7 +464,6 @@ export type ServerNodeOrderByWithRelationInput = {
|
|||||||
recordedAt?: Prisma.SortOrder
|
recordedAt?: Prisma.SortOrder
|
||||||
createdAt?: Prisma.SortOrder
|
createdAt?: Prisma.SortOrder
|
||||||
updatedAt?: Prisma.SortOrder
|
updatedAt?: Prisma.SortOrder
|
||||||
_relevance?: Prisma.ServerNodeOrderByRelevanceInput
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ServerNodeWhereUniqueInput = Prisma.AtLeast<{
|
export type ServerNodeWhereUniqueInput = Prisma.AtLeast<{
|
||||||
@@ -755,12 +754,6 @@ export type ServerNodeUncheckedUpdateManyInput = {
|
|||||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ServerNodeOrderByRelevanceInput = {
|
|
||||||
fields: Prisma.ServerNodeOrderByRelevanceFieldEnum | Prisma.ServerNodeOrderByRelevanceFieldEnum[]
|
|
||||||
sort: Prisma.SortOrder
|
|
||||||
search: string
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ServerNodeCountOrderByAggregateInput = {
|
export type ServerNodeCountOrderByAggregateInput = {
|
||||||
id?: Prisma.SortOrder
|
id?: Prisma.SortOrder
|
||||||
uuid?: Prisma.SortOrder
|
uuid?: Prisma.SortOrder
|
||||||
@@ -921,7 +914,61 @@ export type ServerNodeSelect<ExtArgs extends runtime.Types.Extensions.InternalAr
|
|||||||
updatedAt?: boolean
|
updatedAt?: boolean
|
||||||
}, ExtArgs["result"]["serverNode"]>
|
}, ExtArgs["result"]["serverNode"]>
|
||||||
|
|
||||||
|
export type ServerNodeSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||||
|
id?: boolean
|
||||||
|
uuid?: boolean
|
||||||
|
name?: boolean
|
||||||
|
cpuName?: boolean
|
||||||
|
os?: boolean
|
||||||
|
region?: boolean
|
||||||
|
memTotal?: boolean
|
||||||
|
diskTotal?: boolean
|
||||||
|
cpuCores?: boolean
|
||||||
|
cpuUsage?: boolean
|
||||||
|
ramUsed?: boolean
|
||||||
|
swapUsed?: boolean
|
||||||
|
load1?: boolean
|
||||||
|
load5?: boolean
|
||||||
|
load15?: boolean
|
||||||
|
diskUsed?: boolean
|
||||||
|
netIn?: boolean
|
||||||
|
netOut?: boolean
|
||||||
|
uptime?: boolean
|
||||||
|
process?: boolean
|
||||||
|
connections?: boolean
|
||||||
|
status?: boolean
|
||||||
|
recordedAt?: boolean
|
||||||
|
createdAt?: boolean
|
||||||
|
updatedAt?: boolean
|
||||||
|
}, ExtArgs["result"]["serverNode"]>
|
||||||
|
|
||||||
|
export type ServerNodeSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||||
|
id?: boolean
|
||||||
|
uuid?: boolean
|
||||||
|
name?: boolean
|
||||||
|
cpuName?: boolean
|
||||||
|
os?: boolean
|
||||||
|
region?: boolean
|
||||||
|
memTotal?: boolean
|
||||||
|
diskTotal?: boolean
|
||||||
|
cpuCores?: boolean
|
||||||
|
cpuUsage?: boolean
|
||||||
|
ramUsed?: boolean
|
||||||
|
swapUsed?: boolean
|
||||||
|
load1?: boolean
|
||||||
|
load5?: boolean
|
||||||
|
load15?: boolean
|
||||||
|
diskUsed?: boolean
|
||||||
|
netIn?: boolean
|
||||||
|
netOut?: boolean
|
||||||
|
uptime?: boolean
|
||||||
|
process?: boolean
|
||||||
|
connections?: boolean
|
||||||
|
status?: boolean
|
||||||
|
recordedAt?: boolean
|
||||||
|
createdAt?: boolean
|
||||||
|
updatedAt?: boolean
|
||||||
|
}, ExtArgs["result"]["serverNode"]>
|
||||||
|
|
||||||
export type ServerNodeSelectScalar = {
|
export type ServerNodeSelectScalar = {
|
||||||
id?: boolean
|
id?: boolean
|
||||||
@@ -1099,6 +1146,30 @@ export interface ServerNodeDelegate<ExtArgs extends runtime.Types.Extensions.Int
|
|||||||
*/
|
*/
|
||||||
createMany<T extends ServerNodeCreateManyArgs>(args?: Prisma.SelectSubset<T, ServerNodeCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
createMany<T extends ServerNodeCreateManyArgs>(args?: Prisma.SelectSubset<T, ServerNodeCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create many ServerNodes and returns the data saved in the database.
|
||||||
|
* @param {ServerNodeCreateManyAndReturnArgs} args - Arguments to create many ServerNodes.
|
||||||
|
* @example
|
||||||
|
* // Create many ServerNodes
|
||||||
|
* const serverNode = await prisma.serverNode.createManyAndReturn({
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
*
|
||||||
|
* // Create many ServerNodes and only return the `id`
|
||||||
|
* const serverNodeWithIdOnly = await prisma.serverNode.createManyAndReturn({
|
||||||
|
* select: { id: true },
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
* Note, that providing `undefined` is treated as the value not being there.
|
||||||
|
* Read more here: https://pris.ly/d/null-undefined
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
createManyAndReturn<T extends ServerNodeCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ServerNodeCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ServerNodePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Delete a ServerNode.
|
* Delete a ServerNode.
|
||||||
* @param {ServerNodeDeleteArgs} args - Arguments to delete one ServerNode.
|
* @param {ServerNodeDeleteArgs} args - Arguments to delete one ServerNode.
|
||||||
@@ -1163,6 +1234,36 @@ export interface ServerNodeDelegate<ExtArgs extends runtime.Types.Extensions.Int
|
|||||||
*/
|
*/
|
||||||
updateMany<T extends ServerNodeUpdateManyArgs>(args: Prisma.SelectSubset<T, ServerNodeUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
updateMany<T extends ServerNodeUpdateManyArgs>(args: Prisma.SelectSubset<T, ServerNodeUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Update zero or more ServerNodes and returns the data updated in the database.
|
||||||
|
* @param {ServerNodeUpdateManyAndReturnArgs} args - Arguments to update many ServerNodes.
|
||||||
|
* @example
|
||||||
|
* // Update many ServerNodes
|
||||||
|
* const serverNode = await prisma.serverNode.updateManyAndReturn({
|
||||||
|
* where: {
|
||||||
|
* // ... provide filter here
|
||||||
|
* },
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
*
|
||||||
|
* // Update zero or more ServerNodes and only return the `id`
|
||||||
|
* const serverNodeWithIdOnly = await prisma.serverNode.updateManyAndReturn({
|
||||||
|
* select: { id: true },
|
||||||
|
* where: {
|
||||||
|
* // ... provide filter here
|
||||||
|
* },
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
* Note, that providing `undefined` is treated as the value not being there.
|
||||||
|
* Read more here: https://pris.ly/d/null-undefined
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
updateManyAndReturn<T extends ServerNodeUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ServerNodeUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ServerNodePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create or update one ServerNode.
|
* Create or update one ServerNode.
|
||||||
* @param {ServerNodeUpsertArgs} args - Arguments to update or create a ServerNode.
|
* @param {ServerNodeUpsertArgs} args - Arguments to update or create a ServerNode.
|
||||||
@@ -1589,6 +1690,25 @@ export type ServerNodeCreateManyArgs<ExtArgs extends runtime.Types.Extensions.In
|
|||||||
skipDuplicates?: boolean
|
skipDuplicates?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ServerNode createManyAndReturn
|
||||||
|
*/
|
||||||
|
export type ServerNodeCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
|
/**
|
||||||
|
* Select specific fields to fetch from the ServerNode
|
||||||
|
*/
|
||||||
|
select?: Prisma.ServerNodeSelectCreateManyAndReturn<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* Omit specific fields from the ServerNode
|
||||||
|
*/
|
||||||
|
omit?: Prisma.ServerNodeOmit<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* The data used to create many ServerNodes.
|
||||||
|
*/
|
||||||
|
data: Prisma.ServerNodeCreateManyInput | Prisma.ServerNodeCreateManyInput[]
|
||||||
|
skipDuplicates?: boolean
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ServerNode update
|
* ServerNode update
|
||||||
*/
|
*/
|
||||||
@@ -1629,6 +1749,32 @@ export type ServerNodeUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.In
|
|||||||
limit?: number
|
limit?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ServerNode updateManyAndReturn
|
||||||
|
*/
|
||||||
|
export type ServerNodeUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
|
/**
|
||||||
|
* Select specific fields to fetch from the ServerNode
|
||||||
|
*/
|
||||||
|
select?: Prisma.ServerNodeSelectUpdateManyAndReturn<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* Omit specific fields from the ServerNode
|
||||||
|
*/
|
||||||
|
omit?: Prisma.ServerNodeOmit<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* The data used to update ServerNodes.
|
||||||
|
*/
|
||||||
|
data: Prisma.XOR<Prisma.ServerNodeUpdateManyMutationInput, Prisma.ServerNodeUncheckedUpdateManyInput>
|
||||||
|
/**
|
||||||
|
* Filter which ServerNodes to update
|
||||||
|
*/
|
||||||
|
where?: Prisma.ServerNodeWhereInput
|
||||||
|
/**
|
||||||
|
* Limit how many ServerNodes to update.
|
||||||
|
*/
|
||||||
|
limit?: number
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ServerNode upsert
|
* ServerNode upsert
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -319,7 +319,6 @@ export type ServerNodeHistoryOrderByWithRelationInput = {
|
|||||||
process?: Prisma.SortOrder
|
process?: Prisma.SortOrder
|
||||||
connections?: Prisma.SortOrder
|
connections?: Prisma.SortOrder
|
||||||
createdAt?: Prisma.SortOrder
|
createdAt?: Prisma.SortOrder
|
||||||
_relevance?: Prisma.ServerNodeHistoryOrderByRelevanceInput
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ServerNodeHistoryWhereUniqueInput = Prisma.AtLeast<{
|
export type ServerNodeHistoryWhereUniqueInput = Prisma.AtLeast<{
|
||||||
@@ -481,12 +480,6 @@ export type ServerNodeHistoryUncheckedUpdateManyInput = {
|
|||||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ServerNodeHistoryOrderByRelevanceInput = {
|
|
||||||
fields: Prisma.ServerNodeHistoryOrderByRelevanceFieldEnum | Prisma.ServerNodeHistoryOrderByRelevanceFieldEnum[]
|
|
||||||
sort: Prisma.SortOrder
|
|
||||||
search: string
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ServerNodeHistoryUuidPeriodCompoundUniqueInput = {
|
export type ServerNodeHistoryUuidPeriodCompoundUniqueInput = {
|
||||||
uuid: string
|
uuid: string
|
||||||
period: Date | string
|
period: Date | string
|
||||||
@@ -578,7 +571,35 @@ export type ServerNodeHistorySelect<ExtArgs extends runtime.Types.Extensions.Int
|
|||||||
createdAt?: boolean
|
createdAt?: boolean
|
||||||
}, ExtArgs["result"]["serverNodeHistory"]>
|
}, ExtArgs["result"]["serverNodeHistory"]>
|
||||||
|
|
||||||
|
export type ServerNodeHistorySelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||||
|
id?: boolean
|
||||||
|
uuid?: boolean
|
||||||
|
period?: boolean
|
||||||
|
cpu?: boolean
|
||||||
|
ram?: boolean
|
||||||
|
load?: boolean
|
||||||
|
disk?: boolean
|
||||||
|
netIn?: boolean
|
||||||
|
netOut?: boolean
|
||||||
|
process?: boolean
|
||||||
|
connections?: boolean
|
||||||
|
createdAt?: boolean
|
||||||
|
}, ExtArgs["result"]["serverNodeHistory"]>
|
||||||
|
|
||||||
|
export type ServerNodeHistorySelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||||
|
id?: boolean
|
||||||
|
uuid?: boolean
|
||||||
|
period?: boolean
|
||||||
|
cpu?: boolean
|
||||||
|
ram?: boolean
|
||||||
|
load?: boolean
|
||||||
|
disk?: boolean
|
||||||
|
netIn?: boolean
|
||||||
|
netOut?: boolean
|
||||||
|
process?: boolean
|
||||||
|
connections?: boolean
|
||||||
|
createdAt?: boolean
|
||||||
|
}, ExtArgs["result"]["serverNodeHistory"]>
|
||||||
|
|
||||||
export type ServerNodeHistorySelectScalar = {
|
export type ServerNodeHistorySelectScalar = {
|
||||||
id?: boolean
|
id?: boolean
|
||||||
@@ -730,6 +751,30 @@ export interface ServerNodeHistoryDelegate<ExtArgs extends runtime.Types.Extensi
|
|||||||
*/
|
*/
|
||||||
createMany<T extends ServerNodeHistoryCreateManyArgs>(args?: Prisma.SelectSubset<T, ServerNodeHistoryCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
createMany<T extends ServerNodeHistoryCreateManyArgs>(args?: Prisma.SelectSubset<T, ServerNodeHistoryCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create many ServerNodeHistories and returns the data saved in the database.
|
||||||
|
* @param {ServerNodeHistoryCreateManyAndReturnArgs} args - Arguments to create many ServerNodeHistories.
|
||||||
|
* @example
|
||||||
|
* // Create many ServerNodeHistories
|
||||||
|
* const serverNodeHistory = await prisma.serverNodeHistory.createManyAndReturn({
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
*
|
||||||
|
* // Create many ServerNodeHistories and only return the `id`
|
||||||
|
* const serverNodeHistoryWithIdOnly = await prisma.serverNodeHistory.createManyAndReturn({
|
||||||
|
* select: { id: true },
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
* Note, that providing `undefined` is treated as the value not being there.
|
||||||
|
* Read more here: https://pris.ly/d/null-undefined
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
createManyAndReturn<T extends ServerNodeHistoryCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ServerNodeHistoryCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ServerNodeHistoryPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Delete a ServerNodeHistory.
|
* Delete a ServerNodeHistory.
|
||||||
* @param {ServerNodeHistoryDeleteArgs} args - Arguments to delete one ServerNodeHistory.
|
* @param {ServerNodeHistoryDeleteArgs} args - Arguments to delete one ServerNodeHistory.
|
||||||
@@ -794,6 +839,36 @@ export interface ServerNodeHistoryDelegate<ExtArgs extends runtime.Types.Extensi
|
|||||||
*/
|
*/
|
||||||
updateMany<T extends ServerNodeHistoryUpdateManyArgs>(args: Prisma.SelectSubset<T, ServerNodeHistoryUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
updateMany<T extends ServerNodeHistoryUpdateManyArgs>(args: Prisma.SelectSubset<T, ServerNodeHistoryUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Update zero or more ServerNodeHistories and returns the data updated in the database.
|
||||||
|
* @param {ServerNodeHistoryUpdateManyAndReturnArgs} args - Arguments to update many ServerNodeHistories.
|
||||||
|
* @example
|
||||||
|
* // Update many ServerNodeHistories
|
||||||
|
* const serverNodeHistory = await prisma.serverNodeHistory.updateManyAndReturn({
|
||||||
|
* where: {
|
||||||
|
* // ... provide filter here
|
||||||
|
* },
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
*
|
||||||
|
* // Update zero or more ServerNodeHistories and only return the `id`
|
||||||
|
* const serverNodeHistoryWithIdOnly = await prisma.serverNodeHistory.updateManyAndReturn({
|
||||||
|
* select: { id: true },
|
||||||
|
* where: {
|
||||||
|
* // ... provide filter here
|
||||||
|
* },
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
* Note, that providing `undefined` is treated as the value not being there.
|
||||||
|
* Read more here: https://pris.ly/d/null-undefined
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
updateManyAndReturn<T extends ServerNodeHistoryUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ServerNodeHistoryUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ServerNodeHistoryPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create or update one ServerNodeHistory.
|
* Create or update one ServerNodeHistory.
|
||||||
* @param {ServerNodeHistoryUpsertArgs} args - Arguments to update or create a ServerNodeHistory.
|
* @param {ServerNodeHistoryUpsertArgs} args - Arguments to update or create a ServerNodeHistory.
|
||||||
@@ -1207,6 +1282,25 @@ export type ServerNodeHistoryCreateManyArgs<ExtArgs extends runtime.Types.Extens
|
|||||||
skipDuplicates?: boolean
|
skipDuplicates?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ServerNodeHistory createManyAndReturn
|
||||||
|
*/
|
||||||
|
export type ServerNodeHistoryCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
|
/**
|
||||||
|
* Select specific fields to fetch from the ServerNodeHistory
|
||||||
|
*/
|
||||||
|
select?: Prisma.ServerNodeHistorySelectCreateManyAndReturn<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* Omit specific fields from the ServerNodeHistory
|
||||||
|
*/
|
||||||
|
omit?: Prisma.ServerNodeHistoryOmit<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* The data used to create many ServerNodeHistories.
|
||||||
|
*/
|
||||||
|
data: Prisma.ServerNodeHistoryCreateManyInput | Prisma.ServerNodeHistoryCreateManyInput[]
|
||||||
|
skipDuplicates?: boolean
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ServerNodeHistory update
|
* ServerNodeHistory update
|
||||||
*/
|
*/
|
||||||
@@ -1247,6 +1341,32 @@ export type ServerNodeHistoryUpdateManyArgs<ExtArgs extends runtime.Types.Extens
|
|||||||
limit?: number
|
limit?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ServerNodeHistory updateManyAndReturn
|
||||||
|
*/
|
||||||
|
export type ServerNodeHistoryUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
|
/**
|
||||||
|
* Select specific fields to fetch from the ServerNodeHistory
|
||||||
|
*/
|
||||||
|
select?: Prisma.ServerNodeHistorySelectUpdateManyAndReturn<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* Omit specific fields from the ServerNodeHistory
|
||||||
|
*/
|
||||||
|
omit?: Prisma.ServerNodeHistoryOmit<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* The data used to update ServerNodeHistories.
|
||||||
|
*/
|
||||||
|
data: Prisma.XOR<Prisma.ServerNodeHistoryUpdateManyMutationInput, Prisma.ServerNodeHistoryUncheckedUpdateManyInput>
|
||||||
|
/**
|
||||||
|
* Filter which ServerNodeHistories to update
|
||||||
|
*/
|
||||||
|
where?: Prisma.ServerNodeHistoryWhereInput
|
||||||
|
/**
|
||||||
|
* Limit how many ServerNodeHistories to update.
|
||||||
|
*/
|
||||||
|
limit?: number
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ServerNodeHistory upsert
|
* ServerNodeHistory upsert
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -264,7 +264,6 @@ export type ServiceCheckOrderByWithRelationInput = {
|
|||||||
lastCheckAt?: Prisma.SortOrder
|
lastCheckAt?: Prisma.SortOrder
|
||||||
createdAt?: Prisma.SortOrder
|
createdAt?: Prisma.SortOrder
|
||||||
updatedAt?: Prisma.SortOrder
|
updatedAt?: Prisma.SortOrder
|
||||||
_relevance?: Prisma.ServiceCheckOrderByRelevanceInput
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ServiceCheckWhereUniqueInput = Prisma.AtLeast<{
|
export type ServiceCheckWhereUniqueInput = Prisma.AtLeast<{
|
||||||
@@ -395,12 +394,6 @@ export type ServiceCheckUncheckedUpdateManyInput = {
|
|||||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ServiceCheckOrderByRelevanceInput = {
|
|
||||||
fields: Prisma.ServiceCheckOrderByRelevanceFieldEnum | Prisma.ServiceCheckOrderByRelevanceFieldEnum[]
|
|
||||||
sort: Prisma.SortOrder
|
|
||||||
search: string
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ServiceCheckCountOrderByAggregateInput = {
|
export type ServiceCheckCountOrderByAggregateInput = {
|
||||||
id?: Prisma.SortOrder
|
id?: Prisma.SortOrder
|
||||||
name?: Prisma.SortOrder
|
name?: Prisma.SortOrder
|
||||||
@@ -461,7 +454,29 @@ export type ServiceCheckSelect<ExtArgs extends runtime.Types.Extensions.Internal
|
|||||||
updatedAt?: boolean
|
updatedAt?: boolean
|
||||||
}, ExtArgs["result"]["serviceCheck"]>
|
}, ExtArgs["result"]["serviceCheck"]>
|
||||||
|
|
||||||
|
export type ServiceCheckSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||||
|
id?: boolean
|
||||||
|
name?: boolean
|
||||||
|
url?: boolean
|
||||||
|
status?: boolean
|
||||||
|
latencyMs?: boolean
|
||||||
|
message?: boolean
|
||||||
|
lastCheckAt?: boolean
|
||||||
|
createdAt?: boolean
|
||||||
|
updatedAt?: boolean
|
||||||
|
}, ExtArgs["result"]["serviceCheck"]>
|
||||||
|
|
||||||
|
export type ServiceCheckSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||||
|
id?: boolean
|
||||||
|
name?: boolean
|
||||||
|
url?: boolean
|
||||||
|
status?: boolean
|
||||||
|
latencyMs?: boolean
|
||||||
|
message?: boolean
|
||||||
|
lastCheckAt?: boolean
|
||||||
|
createdAt?: boolean
|
||||||
|
updatedAt?: boolean
|
||||||
|
}, ExtArgs["result"]["serviceCheck"]>
|
||||||
|
|
||||||
export type ServiceCheckSelectScalar = {
|
export type ServiceCheckSelectScalar = {
|
||||||
id?: boolean
|
id?: boolean
|
||||||
@@ -607,6 +622,30 @@ export interface ServiceCheckDelegate<ExtArgs extends runtime.Types.Extensions.I
|
|||||||
*/
|
*/
|
||||||
createMany<T extends ServiceCheckCreateManyArgs>(args?: Prisma.SelectSubset<T, ServiceCheckCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
createMany<T extends ServiceCheckCreateManyArgs>(args?: Prisma.SelectSubset<T, ServiceCheckCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create many ServiceChecks and returns the data saved in the database.
|
||||||
|
* @param {ServiceCheckCreateManyAndReturnArgs} args - Arguments to create many ServiceChecks.
|
||||||
|
* @example
|
||||||
|
* // Create many ServiceChecks
|
||||||
|
* const serviceCheck = await prisma.serviceCheck.createManyAndReturn({
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
*
|
||||||
|
* // Create many ServiceChecks and only return the `id`
|
||||||
|
* const serviceCheckWithIdOnly = await prisma.serviceCheck.createManyAndReturn({
|
||||||
|
* select: { id: true },
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
* Note, that providing `undefined` is treated as the value not being there.
|
||||||
|
* Read more here: https://pris.ly/d/null-undefined
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
createManyAndReturn<T extends ServiceCheckCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ServiceCheckCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ServiceCheckPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Delete a ServiceCheck.
|
* Delete a ServiceCheck.
|
||||||
* @param {ServiceCheckDeleteArgs} args - Arguments to delete one ServiceCheck.
|
* @param {ServiceCheckDeleteArgs} args - Arguments to delete one ServiceCheck.
|
||||||
@@ -671,6 +710,36 @@ export interface ServiceCheckDelegate<ExtArgs extends runtime.Types.Extensions.I
|
|||||||
*/
|
*/
|
||||||
updateMany<T extends ServiceCheckUpdateManyArgs>(args: Prisma.SelectSubset<T, ServiceCheckUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
updateMany<T extends ServiceCheckUpdateManyArgs>(args: Prisma.SelectSubset<T, ServiceCheckUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Update zero or more ServiceChecks and returns the data updated in the database.
|
||||||
|
* @param {ServiceCheckUpdateManyAndReturnArgs} args - Arguments to update many ServiceChecks.
|
||||||
|
* @example
|
||||||
|
* // Update many ServiceChecks
|
||||||
|
* const serviceCheck = await prisma.serviceCheck.updateManyAndReturn({
|
||||||
|
* where: {
|
||||||
|
* // ... provide filter here
|
||||||
|
* },
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
*
|
||||||
|
* // Update zero or more ServiceChecks and only return the `id`
|
||||||
|
* const serviceCheckWithIdOnly = await prisma.serviceCheck.updateManyAndReturn({
|
||||||
|
* select: { id: true },
|
||||||
|
* where: {
|
||||||
|
* // ... provide filter here
|
||||||
|
* },
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
* Note, that providing `undefined` is treated as the value not being there.
|
||||||
|
* Read more here: https://pris.ly/d/null-undefined
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
updateManyAndReturn<T extends ServiceCheckUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ServiceCheckUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ServiceCheckPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create or update one ServiceCheck.
|
* Create or update one ServiceCheck.
|
||||||
* @param {ServiceCheckUpsertArgs} args - Arguments to update or create a ServiceCheck.
|
* @param {ServiceCheckUpsertArgs} args - Arguments to update or create a ServiceCheck.
|
||||||
@@ -1081,6 +1150,25 @@ export type ServiceCheckCreateManyArgs<ExtArgs extends runtime.Types.Extensions.
|
|||||||
skipDuplicates?: boolean
|
skipDuplicates?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ServiceCheck createManyAndReturn
|
||||||
|
*/
|
||||||
|
export type ServiceCheckCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
|
/**
|
||||||
|
* Select specific fields to fetch from the ServiceCheck
|
||||||
|
*/
|
||||||
|
select?: Prisma.ServiceCheckSelectCreateManyAndReturn<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* Omit specific fields from the ServiceCheck
|
||||||
|
*/
|
||||||
|
omit?: Prisma.ServiceCheckOmit<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* The data used to create many ServiceChecks.
|
||||||
|
*/
|
||||||
|
data: Prisma.ServiceCheckCreateManyInput | Prisma.ServiceCheckCreateManyInput[]
|
||||||
|
skipDuplicates?: boolean
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ServiceCheck update
|
* ServiceCheck update
|
||||||
*/
|
*/
|
||||||
@@ -1121,6 +1209,32 @@ export type ServiceCheckUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.
|
|||||||
limit?: number
|
limit?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ServiceCheck updateManyAndReturn
|
||||||
|
*/
|
||||||
|
export type ServiceCheckUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
|
/**
|
||||||
|
* Select specific fields to fetch from the ServiceCheck
|
||||||
|
*/
|
||||||
|
select?: Prisma.ServiceCheckSelectUpdateManyAndReturn<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* Omit specific fields from the ServiceCheck
|
||||||
|
*/
|
||||||
|
omit?: Prisma.ServiceCheckOmit<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* The data used to update ServiceChecks.
|
||||||
|
*/
|
||||||
|
data: Prisma.XOR<Prisma.ServiceCheckUpdateManyMutationInput, Prisma.ServiceCheckUncheckedUpdateManyInput>
|
||||||
|
/**
|
||||||
|
* Filter which ServiceChecks to update
|
||||||
|
*/
|
||||||
|
where?: Prisma.ServiceCheckWhereInput
|
||||||
|
/**
|
||||||
|
* Limit how many ServiceChecks to update.
|
||||||
|
*/
|
||||||
|
limit?: number
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ServiceCheck upsert
|
* ServiceCheck upsert
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -229,7 +229,6 @@ export type StrategyOrderByWithRelationInput = {
|
|||||||
data?: Prisma.SortOrder
|
data?: Prisma.SortOrder
|
||||||
createdAt?: Prisma.SortOrder
|
createdAt?: Prisma.SortOrder
|
||||||
updatedAt?: Prisma.SortOrder
|
updatedAt?: Prisma.SortOrder
|
||||||
_relevance?: Prisma.StrategyOrderByRelevanceInput
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type StrategyWhereUniqueInput = Prisma.AtLeast<{
|
export type StrategyWhereUniqueInput = Prisma.AtLeast<{
|
||||||
@@ -330,12 +329,6 @@ export type StrategyUncheckedUpdateManyInput = {
|
|||||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type StrategyOrderByRelevanceInput = {
|
|
||||||
fields: Prisma.StrategyOrderByRelevanceFieldEnum | Prisma.StrategyOrderByRelevanceFieldEnum[]
|
|
||||||
sort: Prisma.SortOrder
|
|
||||||
search: string
|
|
||||||
}
|
|
||||||
|
|
||||||
export type StrategyCountOrderByAggregateInput = {
|
export type StrategyCountOrderByAggregateInput = {
|
||||||
id?: Prisma.SortOrder
|
id?: Prisma.SortOrder
|
||||||
name?: Prisma.SortOrder
|
name?: Prisma.SortOrder
|
||||||
@@ -380,7 +373,23 @@ export type StrategySelect<ExtArgs extends runtime.Types.Extensions.InternalArgs
|
|||||||
updatedAt?: boolean
|
updatedAt?: boolean
|
||||||
}, ExtArgs["result"]["strategy"]>
|
}, ExtArgs["result"]["strategy"]>
|
||||||
|
|
||||||
|
export type StrategySelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||||
|
id?: boolean
|
||||||
|
name?: boolean
|
||||||
|
description?: boolean
|
||||||
|
data?: boolean
|
||||||
|
createdAt?: boolean
|
||||||
|
updatedAt?: boolean
|
||||||
|
}, ExtArgs["result"]["strategy"]>
|
||||||
|
|
||||||
|
export type StrategySelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||||
|
id?: boolean
|
||||||
|
name?: boolean
|
||||||
|
description?: boolean
|
||||||
|
data?: boolean
|
||||||
|
createdAt?: boolean
|
||||||
|
updatedAt?: boolean
|
||||||
|
}, ExtArgs["result"]["strategy"]>
|
||||||
|
|
||||||
export type StrategySelectScalar = {
|
export type StrategySelectScalar = {
|
||||||
id?: boolean
|
id?: boolean
|
||||||
@@ -520,6 +529,30 @@ export interface StrategyDelegate<ExtArgs extends runtime.Types.Extensions.Inter
|
|||||||
*/
|
*/
|
||||||
createMany<T extends StrategyCreateManyArgs>(args?: Prisma.SelectSubset<T, StrategyCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
createMany<T extends StrategyCreateManyArgs>(args?: Prisma.SelectSubset<T, StrategyCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create many Strategies and returns the data saved in the database.
|
||||||
|
* @param {StrategyCreateManyAndReturnArgs} args - Arguments to create many Strategies.
|
||||||
|
* @example
|
||||||
|
* // Create many Strategies
|
||||||
|
* const strategy = await prisma.strategy.createManyAndReturn({
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
*
|
||||||
|
* // Create many Strategies and only return the `id`
|
||||||
|
* const strategyWithIdOnly = await prisma.strategy.createManyAndReturn({
|
||||||
|
* select: { id: true },
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
* Note, that providing `undefined` is treated as the value not being there.
|
||||||
|
* Read more here: https://pris.ly/d/null-undefined
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
createManyAndReturn<T extends StrategyCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, StrategyCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$StrategyPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Delete a Strategy.
|
* Delete a Strategy.
|
||||||
* @param {StrategyDeleteArgs} args - Arguments to delete one Strategy.
|
* @param {StrategyDeleteArgs} args - Arguments to delete one Strategy.
|
||||||
@@ -584,6 +617,36 @@ export interface StrategyDelegate<ExtArgs extends runtime.Types.Extensions.Inter
|
|||||||
*/
|
*/
|
||||||
updateMany<T extends StrategyUpdateManyArgs>(args: Prisma.SelectSubset<T, StrategyUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
updateMany<T extends StrategyUpdateManyArgs>(args: Prisma.SelectSubset<T, StrategyUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Update zero or more Strategies and returns the data updated in the database.
|
||||||
|
* @param {StrategyUpdateManyAndReturnArgs} args - Arguments to update many Strategies.
|
||||||
|
* @example
|
||||||
|
* // Update many Strategies
|
||||||
|
* const strategy = await prisma.strategy.updateManyAndReturn({
|
||||||
|
* where: {
|
||||||
|
* // ... provide filter here
|
||||||
|
* },
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
*
|
||||||
|
* // Update zero or more Strategies and only return the `id`
|
||||||
|
* const strategyWithIdOnly = await prisma.strategy.updateManyAndReturn({
|
||||||
|
* select: { id: true },
|
||||||
|
* where: {
|
||||||
|
* // ... provide filter here
|
||||||
|
* },
|
||||||
|
* data: [
|
||||||
|
* // ... provide data here
|
||||||
|
* ]
|
||||||
|
* })
|
||||||
|
* Note, that providing `undefined` is treated as the value not being there.
|
||||||
|
* Read more here: https://pris.ly/d/null-undefined
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
updateManyAndReturn<T extends StrategyUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, StrategyUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$StrategyPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create or update one Strategy.
|
* Create or update one Strategy.
|
||||||
* @param {StrategyUpsertArgs} args - Arguments to update or create a Strategy.
|
* @param {StrategyUpsertArgs} args - Arguments to update or create a Strategy.
|
||||||
@@ -991,6 +1054,25 @@ export type StrategyCreateManyArgs<ExtArgs extends runtime.Types.Extensions.Inte
|
|||||||
skipDuplicates?: boolean
|
skipDuplicates?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Strategy createManyAndReturn
|
||||||
|
*/
|
||||||
|
export type StrategyCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
|
/**
|
||||||
|
* Select specific fields to fetch from the Strategy
|
||||||
|
*/
|
||||||
|
select?: Prisma.StrategySelectCreateManyAndReturn<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* Omit specific fields from the Strategy
|
||||||
|
*/
|
||||||
|
omit?: Prisma.StrategyOmit<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* The data used to create many Strategies.
|
||||||
|
*/
|
||||||
|
data: Prisma.StrategyCreateManyInput | Prisma.StrategyCreateManyInput[]
|
||||||
|
skipDuplicates?: boolean
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Strategy update
|
* Strategy update
|
||||||
*/
|
*/
|
||||||
@@ -1031,6 +1113,32 @@ export type StrategyUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.Inte
|
|||||||
limit?: number
|
limit?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Strategy updateManyAndReturn
|
||||||
|
*/
|
||||||
|
export type StrategyUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||||
|
/**
|
||||||
|
* Select specific fields to fetch from the Strategy
|
||||||
|
*/
|
||||||
|
select?: Prisma.StrategySelectUpdateManyAndReturn<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* Omit specific fields from the Strategy
|
||||||
|
*/
|
||||||
|
omit?: Prisma.StrategyOmit<ExtArgs> | null
|
||||||
|
/**
|
||||||
|
* The data used to update Strategies.
|
||||||
|
*/
|
||||||
|
data: Prisma.XOR<Prisma.StrategyUpdateManyMutationInput, Prisma.StrategyUncheckedUpdateManyInput>
|
||||||
|
/**
|
||||||
|
* Filter which Strategies to update
|
||||||
|
*/
|
||||||
|
where?: Prisma.StrategyWhereInput
|
||||||
|
/**
|
||||||
|
* Limit how many Strategies to update.
|
||||||
|
*/
|
||||||
|
limit?: number
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Strategy upsert
|
* Strategy upsert
|
||||||
*/
|
*/
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Generated
+189
-70
@@ -1,14 +1,14 @@
|
|||||||
{
|
{
|
||||||
"name": "iboard",
|
"name": "iboard",
|
||||||
"version": "1.0.0",
|
"version": "0.2.0",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "iboard",
|
"name": "iboard",
|
||||||
"version": "1.0.0",
|
"version": "0.2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@prisma/adapter-mariadb": "^7.9.1",
|
"@prisma/adapter-pg": "^7.9.1",
|
||||||
"@prisma/client": "^7.7.0",
|
"@prisma/client": "^7.7.0",
|
||||||
"@zythum02/mijia-api": "^0.1.4",
|
"@zythum02/mijia-api": "^0.1.4",
|
||||||
"antd-mobile": "^5.42.3",
|
"antd-mobile": "^5.42.3",
|
||||||
@@ -1615,65 +1615,33 @@
|
|||||||
"node": "^22.20 || ^24.12 || >=25"
|
"node": "^22.20 || ^24.12 || >=25"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@prisma/adapter-mariadb": {
|
"node_modules/@prisma/adapter-pg": {
|
||||||
"version": "7.9.1",
|
"version": "7.10.1",
|
||||||
"resolved": "https://registry.npmjs.org/@prisma/adapter-mariadb/-/adapter-mariadb-7.9.1.tgz",
|
"resolved": "https://registry.npmjs.org/@prisma/adapter-pg/-/adapter-pg-7.10.1.tgz",
|
||||||
"integrity": "sha512-4aZUbIg2av7XFSQyM9cQeAp9YP9HiPr8H7ehe2rDo375IZXILEzQrNXZ/zLetgRQ2ojlaUl/brArFdOVS3n1xA==",
|
"integrity": "sha512-EP9ruPYHjKP80WZlb5qVaEXKgZjJieBFjAxcBtQnDAHD6+16UN4keVmBh6L/RUpuDQT2FQRbvKNgq5d4Ix+IkQ==",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@prisma/driver-adapter-utils": "7.9.1",
|
"@prisma/driver-adapter-utils": "7.10.1",
|
||||||
"mariadb": "3.4.5"
|
"@types/pg": "^8.16.0",
|
||||||
|
"pg": "^8.16.3",
|
||||||
|
"postgres-array": "3.0.4"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@prisma/adapter-mariadb/node_modules/@types/node": {
|
"node_modules/@prisma/adapter-pg/node_modules/@prisma/debug": {
|
||||||
"version": "24.13.3",
|
"version": "7.10.1",
|
||||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-24.13.3.tgz",
|
"resolved": "https://registry.npmjs.org/@prisma/debug/-/debug-7.10.1.tgz",
|
||||||
"integrity": "sha512-Dh8vAsV36ig5wa9OX4pXvMc9D3Veibfw2wix0CUwYODLD8nkj9UsLjASr49nPg+2eKzxhBV+v7L8pXvT4e639Q==",
|
"integrity": "sha512-eFCAkGZ13D/qPg48JBlG5IWi9cSBBOC7oG3abDPcAkYioDWlIjh0YJJLK2J7qo5S+xWWD8I6egAN/8KbCaiMCA==",
|
||||||
"license": "MIT",
|
"license": "Apache-2.0"
|
||||||
|
},
|
||||||
|
"node_modules/@prisma/adapter-pg/node_modules/@prisma/driver-adapter-utils": {
|
||||||
|
"version": "7.10.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/@prisma/driver-adapter-utils/-/driver-adapter-utils-7.10.1.tgz",
|
||||||
|
"integrity": "sha512-DJ4c6xvVnm3s9ZUyql9nCUicADSqyvH+CjXRCM9L6m5zJxCNmebCElG6X4irICq3rosBwlX+S19Dxq/4IrZk3A==",
|
||||||
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"undici-types": "~7.18.0"
|
"@prisma/debug": "7.10.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@prisma/adapter-mariadb/node_modules/iconv-lite": {
|
|
||||||
"version": "0.6.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz",
|
|
||||||
"integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==",
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"safer-buffer": ">= 2.1.2 < 3.0.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=0.10.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@prisma/adapter-mariadb/node_modules/lru-cache": {
|
|
||||||
"version": "10.4.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz",
|
|
||||||
"integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==",
|
|
||||||
"license": "ISC"
|
|
||||||
},
|
|
||||||
"node_modules/@prisma/adapter-mariadb/node_modules/mariadb": {
|
|
||||||
"version": "3.4.5",
|
|
||||||
"resolved": "https://registry.npmjs.org/mariadb/-/mariadb-3.4.5.tgz",
|
|
||||||
"integrity": "sha512-gThTYkhIS5rRqkVr+Y0cIdzr+GRqJ9sA2Q34e0yzmyhMCwyApf3OKAC1jnF23aSlIOqJuyaUFUcj7O1qZslmmQ==",
|
|
||||||
"license": "LGPL-2.1-or-later",
|
|
||||||
"dependencies": {
|
|
||||||
"@types/geojson": "^7946.0.16",
|
|
||||||
"@types/node": "^24.0.13",
|
|
||||||
"denque": "^2.1.0",
|
|
||||||
"iconv-lite": "^0.6.3",
|
|
||||||
"lru-cache": "^10.4.3"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">= 14"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@prisma/adapter-mariadb/node_modules/undici-types": {
|
|
||||||
"version": "7.18.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.18.2.tgz",
|
|
||||||
"integrity": "sha512-AsuCzffGHJybSaRrmr5eHr81mwJU3kjw6M+uprWvCXiNeN9SOGwQ3Jn8jb8m3Z6izVgknn1R0FTCEAP2QrLY/w==",
|
|
||||||
"license": "MIT"
|
|
||||||
},
|
|
||||||
"node_modules/@prisma/client": {
|
"node_modules/@prisma/client": {
|
||||||
"version": "7.7.0",
|
"version": "7.7.0",
|
||||||
"resolved": "https://registry.npmjs.org/@prisma/client/-/client-7.7.0.tgz",
|
"resolved": "https://registry.npmjs.org/@prisma/client/-/client-7.7.0.tgz",
|
||||||
@@ -1747,21 +1715,6 @@
|
|||||||
"zeptomatch": "2.1.0"
|
"zeptomatch": "2.1.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@prisma/driver-adapter-utils": {
|
|
||||||
"version": "7.9.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/@prisma/driver-adapter-utils/-/driver-adapter-utils-7.9.1.tgz",
|
|
||||||
"integrity": "sha512-vmHehG7nn/heW32DXXpp13DxxAxVVe6n250oEt3dOL2E/4bt3olktKZN0mzSuxMMronyMSkbeW2uCOn3F4g8RQ==",
|
|
||||||
"license": "Apache-2.0",
|
|
||||||
"dependencies": {
|
|
||||||
"@prisma/debug": "7.9.1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@prisma/driver-adapter-utils/node_modules/@prisma/debug": {
|
|
||||||
"version": "7.9.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/@prisma/debug/-/debug-7.9.1.tgz",
|
|
||||||
"integrity": "sha512-/cpVZ4itxtcgB8GHBvZtcmuEjq+lWsLrRJxFMbwZrT1RIdtuKmUm7PPGo/wzfbYpBrk+9WmmBE8CHJw2rybKDQ==",
|
|
||||||
"license": "Apache-2.0"
|
|
||||||
},
|
|
||||||
"node_modules/@prisma/engines": {
|
"node_modules/@prisma/engines": {
|
||||||
"version": "7.7.0",
|
"version": "7.7.0",
|
||||||
"resolved": "https://registry.npmjs.org/@prisma/engines/-/engines-7.7.0.tgz",
|
"resolved": "https://registry.npmjs.org/@prisma/engines/-/engines-7.7.0.tgz",
|
||||||
@@ -2867,6 +2820,17 @@
|
|||||||
"undici-types": "~8.3.0"
|
"undici-types": "~8.3.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/@types/pg": {
|
||||||
|
"version": "8.23.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/@types/pg/-/pg-8.23.1.tgz",
|
||||||
|
"integrity": "sha512-fKVHpikPdg4GKks3JuLEhvwSyvwzF23hnabPy6DD8ljVbC7+6J5dQzdv4arV6jqq57djnMgs1HKBxX4P8aBI3A==",
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"@types/node": "*",
|
||||||
|
"pg-protocol": "*",
|
||||||
|
"pg-types": "^2.2.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/@types/react": {
|
"node_modules/@types/react": {
|
||||||
"version": "19.2.14",
|
"version": "19.2.14",
|
||||||
"resolved": "https://registry.npmjs.org/@types/react/-/react-19.2.14.tgz",
|
"resolved": "https://registry.npmjs.org/@types/react/-/react-19.2.14.tgz",
|
||||||
@@ -5579,6 +5543,104 @@
|
|||||||
"integrity": "sha512-xCy9V055GLEqoFaHoC1SoLIaLmWctgCUaBaWxDZ7/Zx4CTyX7cJQLJOok/orfjZAh9kEYpjJa4d0KcJmCbctZA==",
|
"integrity": "sha512-xCy9V055GLEqoFaHoC1SoLIaLmWctgCUaBaWxDZ7/Zx4CTyX7cJQLJOok/orfjZAh9kEYpjJa4d0KcJmCbctZA==",
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
|
"node_modules/pg": {
|
||||||
|
"version": "8.23.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/pg/-/pg-8.23.1.tgz",
|
||||||
|
"integrity": "sha512-aL96AHANtWjPLDOLqnhx+ngp9+UK7ETEU8VJrDCGvsSSi/mGLcWYsS6Herg7lmaBJe4uwrfqsa7gTEFaSizDoQ==",
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"pg-connection-string": "^2.14.1",
|
||||||
|
"pg-pool": "^3.14.0",
|
||||||
|
"pg-protocol": "^1.16.1",
|
||||||
|
"pg-types": "2.2.0",
|
||||||
|
"pgpass": "1.0.5"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 16.0.0"
|
||||||
|
},
|
||||||
|
"optionalDependencies": {
|
||||||
|
"pg-cloudflare": "^1.4.1"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"pg-native": ">=3.0.1"
|
||||||
|
},
|
||||||
|
"peerDependenciesMeta": {
|
||||||
|
"pg-native": {
|
||||||
|
"optional": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/pg-cloudflare": {
|
||||||
|
"version": "1.4.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/pg-cloudflare/-/pg-cloudflare-1.4.1.tgz",
|
||||||
|
"integrity": "sha512-6PQbsFWZcp9EmJEwy5cGQ2La+AMWpP46lgbb8X+U/XsHIUweYDNCpeuKck5RxL2MdVFi7krbbEi5nX4Zh7JhrQ==",
|
||||||
|
"license": "MIT",
|
||||||
|
"optional": true
|
||||||
|
},
|
||||||
|
"node_modules/pg-connection-string": {
|
||||||
|
"version": "2.14.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/pg-connection-string/-/pg-connection-string-2.14.1.tgz",
|
||||||
|
"integrity": "sha512-qR3kGNPBLpCNtz0evbKA0Y/MRFXwSSdT+pTJvYp/bXTcReZbvX1kzF0IyTc1QnxqF7AZbOeBhNL8R5mYQZV/MA==",
|
||||||
|
"license": "MIT"
|
||||||
|
},
|
||||||
|
"node_modules/pg-int8": {
|
||||||
|
"version": "1.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/pg-int8/-/pg-int8-1.0.1.tgz",
|
||||||
|
"integrity": "sha512-WCtabS6t3c8SkpDBUlb1kjOs7l66xsGdKpIPZsg4wR+B3+u9UAum2odSsF9tnvxg80h4ZxLWMy4pRjOsFIqQpw==",
|
||||||
|
"license": "ISC",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=4.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/pg-pool": {
|
||||||
|
"version": "3.14.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/pg-pool/-/pg-pool-3.14.0.tgz",
|
||||||
|
"integrity": "sha512-gKtPkFdQPU3DksooVLi9LsjZxrsBUZIpa+7aVx+LV5pNh0KzP4Zleud2po+ConrxbuXGBJ6Hfer6hdgpIBpBaw==",
|
||||||
|
"license": "MIT",
|
||||||
|
"peerDependencies": {
|
||||||
|
"pg": ">=8.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/pg-protocol": {
|
||||||
|
"version": "1.16.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/pg-protocol/-/pg-protocol-1.16.1.tgz",
|
||||||
|
"integrity": "sha512-p9VOFMiHB/ZbJATetbg+99PxssTVSQRnyuPSQ67mN1+1KBOjZaZ83ZQzltnxPhJwSsC3nwVjJ10DVJlerbFzLg==",
|
||||||
|
"license": "MIT"
|
||||||
|
},
|
||||||
|
"node_modules/pg-types": {
|
||||||
|
"version": "2.2.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/pg-types/-/pg-types-2.2.0.tgz",
|
||||||
|
"integrity": "sha512-qTAAlrEsl8s4OiEQY69wDvcMIdQN6wdz5ojQiOy6YRMuynxenON0O5oCpJI6lshc6scgAY8qvJ2On/p+CXY0GA==",
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"pg-int8": "1.0.1",
|
||||||
|
"postgres-array": "~2.0.0",
|
||||||
|
"postgres-bytea": "~1.0.0",
|
||||||
|
"postgres-date": "~1.0.4",
|
||||||
|
"postgres-interval": "^1.1.0"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=4"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/pg-types/node_modules/postgres-array": {
|
||||||
|
"version": "2.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/postgres-array/-/postgres-array-2.0.0.tgz",
|
||||||
|
"integrity": "sha512-VpZrUqU5A69eQyW2c5CA1jtLecCsN2U/bD6VilrFDWq5+5UIEVO7nazS3TEcHf1zuPYO/sqGvUvW62g86RXZuA==",
|
||||||
|
"license": "MIT",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=4"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/pgpass": {
|
||||||
|
"version": "1.0.5",
|
||||||
|
"resolved": "https://registry.npmjs.org/pgpass/-/pgpass-1.0.5.tgz",
|
||||||
|
"integrity": "sha512-FdW9r/jQZhSeohs1Z3sI1yxFQNFvMcnmfuj4WBMUTxOrAyLMaTcE1aAMBiTlbMNaXvBCQuVi0R7hd8udDSP7ug==",
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"split2": "^4.1.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/picocolors": {
|
"node_modules/picocolors": {
|
||||||
"version": "1.1.1",
|
"version": "1.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",
|
||||||
@@ -5619,6 +5681,45 @@
|
|||||||
"url": "https://github.com/sponsors/porsager"
|
"url": "https://github.com/sponsors/porsager"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/postgres-array": {
|
||||||
|
"version": "3.0.4",
|
||||||
|
"resolved": "https://registry.npmjs.org/postgres-array/-/postgres-array-3.0.4.tgz",
|
||||||
|
"integrity": "sha512-nAUSGfSDGOaOAEGwqsRY27GPOea7CNipJPOA7lPbdEpx5Kg3qzdP0AaWC5MlhTWV9s4hFX39nomVZ+C4tnGOJQ==",
|
||||||
|
"license": "MIT",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=12"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/postgres-bytea": {
|
||||||
|
"version": "1.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/postgres-bytea/-/postgres-bytea-1.0.1.tgz",
|
||||||
|
"integrity": "sha512-5+5HqXnsZPE65IJZSMkZtURARZelel2oXUEO8rH83VS/hxH5vv1uHquPg5wZs8yMAfdv971IU+kcPUczi7NVBQ==",
|
||||||
|
"license": "MIT",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=0.10.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/postgres-date": {
|
||||||
|
"version": "1.0.7",
|
||||||
|
"resolved": "https://registry.npmjs.org/postgres-date/-/postgres-date-1.0.7.tgz",
|
||||||
|
"integrity": "sha512-suDmjLVQg78nMK2UZ454hAG+OAW+HQPZ6n++TNDUX+L0+uUlLywnoxJKDou51Zm+zTCjrCl0Nq6J9C5hP9vK/Q==",
|
||||||
|
"license": "MIT",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=0.10.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/postgres-interval": {
|
||||||
|
"version": "1.2.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/postgres-interval/-/postgres-interval-1.2.0.tgz",
|
||||||
|
"integrity": "sha512-9ZhXKM/rw350N1ovuWHbGxnGh/SNJ4cnxHiM0rxE4VN41wsg8P8zWn9hv/buK00RP4WvlOyr/RBDiptyxVbkZQ==",
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"xtend": "^4.0.0"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=0.10.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/prisma": {
|
"node_modules/prisma": {
|
||||||
"version": "7.7.0",
|
"version": "7.7.0",
|
||||||
"resolved": "https://registry.npmjs.org/prisma/-/prisma-7.7.0.tgz",
|
"resolved": "https://registry.npmjs.org/prisma/-/prisma-7.7.0.tgz",
|
||||||
@@ -6470,6 +6571,15 @@
|
|||||||
"node": ">=0.10.0"
|
"node": ">=0.10.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/split2": {
|
||||||
|
"version": "4.2.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/split2/-/split2-4.2.0.tgz",
|
||||||
|
"integrity": "sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==",
|
||||||
|
"license": "ISC",
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 10.x"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/sprintf-js": {
|
"node_modules/sprintf-js": {
|
||||||
"version": "1.0.3",
|
"version": "1.0.3",
|
||||||
"resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz",
|
"resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz",
|
||||||
@@ -6938,6 +7048,15 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/xtend": {
|
||||||
|
"version": "4.0.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz",
|
||||||
|
"integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==",
|
||||||
|
"license": "MIT",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=0.4"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/y18n": {
|
"node_modules/y18n": {
|
||||||
"version": "5.0.8",
|
"version": "5.0.8",
|
||||||
"resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz",
|
"resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz",
|
||||||
|
|||||||
+1
-1
@@ -30,7 +30,7 @@
|
|||||||
"publish": "bash scripts/wsl/build-apk.sh release"
|
"publish": "bash scripts/wsl/build-apk.sh release"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@prisma/adapter-mariadb": "^7.9.1",
|
"@prisma/adapter-pg": "^7.9.1",
|
||||||
"@prisma/client": "^7.7.0",
|
"@prisma/client": "^7.7.0",
|
||||||
"@zythum02/mijia-api": "^0.1.4",
|
"@zythum02/mijia-api": "^0.1.4",
|
||||||
"antd-mobile": "^5.42.3",
|
"antd-mobile": "^5.42.3",
|
||||||
|
|||||||
@@ -1,62 +0,0 @@
|
|||||||
-- CreateTable
|
|
||||||
CREATE TABLE `User` (
|
|
||||||
`id` INTEGER NOT NULL AUTO_INCREMENT,
|
|
||||||
`name` VARCHAR(191) NOT NULL,
|
|
||||||
`email` VARCHAR(191) NOT NULL,
|
|
||||||
`password` VARCHAR(191) NOT NULL,
|
|
||||||
`createdAt` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
|
|
||||||
`updatedAt` DATETIME(3) NOT NULL,
|
|
||||||
|
|
||||||
UNIQUE INDEX `User_email_key`(`email`),
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
||||||
|
|
||||||
-- CreateTable
|
|
||||||
CREATE TABLE `Article` (
|
|
||||||
`id` INTEGER NOT NULL AUTO_INCREMENT,
|
|
||||||
`title` VARCHAR(191) NOT NULL,
|
|
||||||
`slug` VARCHAR(191) NOT NULL,
|
|
||||||
`content` VARCHAR(191) NOT NULL,
|
|
||||||
`date` VARCHAR(191) NOT NULL,
|
|
||||||
`createdAt` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
|
|
||||||
`updatedAt` DATETIME(3) NOT NULL,
|
|
||||||
|
|
||||||
UNIQUE INDEX `Article_slug_key`(`slug`),
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
||||||
|
|
||||||
-- CreateTable
|
|
||||||
CREATE TABLE `Strategy` (
|
|
||||||
`id` INTEGER NOT NULL AUTO_INCREMENT,
|
|
||||||
`name` VARCHAR(191) NOT NULL,
|
|
||||||
`description` VARCHAR(191) NOT NULL,
|
|
||||||
`data` JSON NOT NULL,
|
|
||||||
`createdAt` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
|
|
||||||
`updatedAt` DATETIME(3) NOT NULL,
|
|
||||||
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
||||||
|
|
||||||
-- CreateTable
|
|
||||||
CREATE TABLE `Indicator` (
|
|
||||||
`id` INTEGER NOT NULL AUTO_INCREMENT,
|
|
||||||
`name` VARCHAR(191) NOT NULL,
|
|
||||||
`groupName` VARCHAR(191) NOT NULL,
|
|
||||||
`data` JSON NOT NULL,
|
|
||||||
`createdAt` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
|
|
||||||
`updatedAt` DATETIME(3) NOT NULL,
|
|
||||||
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
||||||
|
|
||||||
-- CreateTable
|
|
||||||
CREATE TABLE `SowInventory` (
|
|
||||||
`id` INTEGER NOT NULL AUTO_INCREMENT,
|
|
||||||
`month` VARCHAR(191) NOT NULL,
|
|
||||||
`inventory` INTEGER NOT NULL,
|
|
||||||
`createdAt` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
|
|
||||||
`updatedAt` DATETIME(3) NOT NULL,
|
|
||||||
|
|
||||||
UNIQUE INDEX `SowInventory_month_key`(`month`),
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
/*
|
|
||||||
Warnings:
|
|
||||||
|
|
||||||
- You are about to drop the `SowInventory` table. If the table is not empty, all the data it contains will be lost.
|
|
||||||
|
|
||||||
*/
|
|
||||||
-- DropTable
|
|
||||||
DROP TABLE `SowInventory`;
|
|
||||||
|
|
||||||
-- CreateTable
|
|
||||||
CREATE TABLE `Econ_SowInventory` (
|
|
||||||
`id` INTEGER NOT NULL AUTO_INCREMENT,
|
|
||||||
`month` VARCHAR(191) NOT NULL,
|
|
||||||
`inventory` INTEGER NOT NULL,
|
|
||||||
`createdAt` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
|
|
||||||
`updatedAt` DATETIME(3) NOT NULL,
|
|
||||||
|
|
||||||
UNIQUE INDEX `Econ_SowInventory_month_key`(`month`),
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
-- CreateTable
|
|
||||||
CREATE TABLE `ScraperCache` (
|
|
||||||
`id` INTEGER NOT NULL AUTO_INCREMENT,
|
|
||||||
`scraperName` VARCHAR(191) NOT NULL,
|
|
||||||
`lastDataHash` VARCHAR(191) NULL,
|
|
||||||
`lastUpdateAt` DATETIME(3) NOT NULL,
|
|
||||||
`metadata` JSON NULL,
|
|
||||||
`createdAt` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
|
|
||||||
`updatedAt` DATETIME(3) NOT NULL,
|
|
||||||
|
|
||||||
UNIQUE INDEX `ScraperCache_scraperName_key`(`scraperName`),
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
-- Add unique constraint on Strategy.name to enable idempotent upsert in seed script
|
|
||||||
ALTER TABLE `Strategy` ADD UNIQUE INDEX `Strategy_name_key`(`name`);
|
|
||||||
|
|
||||||
-- Add unique constraint on Indicator.name to enable idempotent upsert in seed script
|
|
||||||
ALTER TABLE `Indicator` ADD UNIQUE INDEX `Indicator_name_key`(`name`);
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
-- 经济指标: 明细数据拆到独立表, 兼容年/季/月/日频率
|
|
||||||
-- 第一步: 建 IndicatorPoint 表 + Indicator 加元数据列 (data 列暂保留, 由迁移脚本搬运后删除)
|
|
||||||
|
|
||||||
-- CreateTable
|
|
||||||
CREATE TABLE `IndicatorPoint` (
|
|
||||||
`id` INTEGER NOT NULL AUTO_INCREMENT,
|
|
||||||
`indicatorId` INTEGER NOT NULL,
|
|
||||||
`period` VARCHAR(191) NOT NULL,
|
|
||||||
`value` DOUBLE NOT NULL,
|
|
||||||
`createdAt` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
|
|
||||||
`updatedAt` DATETIME(3) NOT NULL,
|
|
||||||
|
|
||||||
UNIQUE INDEX `IndicatorPoint_indicatorId_period_key`(`indicatorId`, `period`),
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
||||||
|
|
||||||
-- AlterTable: 元数据列 (data JSON 拆出)
|
|
||||||
ALTER TABLE `Indicator` ADD COLUMN `title` VARCHAR(191) NOT NULL DEFAULT '',
|
|
||||||
ADD COLUMN `unit` VARCHAR(191) NOT NULL DEFAULT '',
|
|
||||||
ADD COLUMN `source` VARCHAR(191) NOT NULL DEFAULT '',
|
|
||||||
ADD COLUMN `frequency` VARCHAR(191) NOT NULL DEFAULT 'month';
|
|
||||||
|
|
||||||
-- AddForeignKey
|
|
||||||
ALTER TABLE `IndicatorPoint` ADD CONSTRAINT `IndicatorPoint_indicatorId_fkey` FOREIGN KEY (`indicatorId`) REFERENCES `Indicator`(`id`) ON DELETE CASCADE ON UPDATE CASCADE;
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
-- 第二步: 明细数据已迁移到 IndicatorPoint, 删除 Indicator.data JSON 列
|
|
||||||
-- AlterTable
|
|
||||||
ALTER TABLE `Indicator` DROP COLUMN `data`;
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
-- 指标隐藏标记: 数据与获取脚本保留, 前端展示过滤 hidden=true
|
|
||||||
ALTER TABLE `Indicator` ADD COLUMN `hidden` BOOLEAN NOT NULL DEFAULT false;
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
-- CreateTable
|
|
||||||
CREATE TABLE `News` (
|
|
||||||
`id` INTEGER NOT NULL AUTO_INCREMENT,
|
|
||||||
`title` VARCHAR(191) NOT NULL,
|
|
||||||
`summary` VARCHAR(191) NOT NULL DEFAULT '',
|
|
||||||
`source` VARCHAR(191) NOT NULL DEFAULT '',
|
|
||||||
`url` VARCHAR(191) NOT NULL DEFAULT '',
|
|
||||||
`publishedAt` DATETIME(3) NOT NULL,
|
|
||||||
`impactRank` INTEGER NOT NULL,
|
|
||||||
`createdAt` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
|
|
||||||
|
|
||||||
UNIQUE INDEX `News_title_publishedAt_key`(`title`, `publishedAt`),
|
|
||||||
INDEX `News_publishedAt_idx`(`publishedAt`),
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
||||||
|
|
||||||
-- CreateTable
|
|
||||||
CREATE TABLE `Alert` (
|
|
||||||
`id` INTEGER NOT NULL AUTO_INCREMENT,
|
|
||||||
`indicatorName` VARCHAR(191) NOT NULL,
|
|
||||||
`period` VARCHAR(191) NOT NULL,
|
|
||||||
`valueA` DOUBLE NOT NULL,
|
|
||||||
`valueB` DOUBLE NOT NULL,
|
|
||||||
`sourceA` VARCHAR(191) NOT NULL,
|
|
||||||
`sourceB` VARCHAR(191) NOT NULL,
|
|
||||||
`diff` DOUBLE NOT NULL,
|
|
||||||
`diffRatio` DOUBLE NOT NULL,
|
|
||||||
`createdAt` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
|
|
||||||
|
|
||||||
INDEX `Alert_createdAt_idx`(`createdAt`),
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
||||||
@@ -1,68 +0,0 @@
|
|||||||
-- 服务器监控 + 服务健康检查
|
|
||||||
-- CreateTable
|
|
||||||
CREATE TABLE `ServerNode` (
|
|
||||||
`id` INTEGER NOT NULL AUTO_INCREMENT,
|
|
||||||
`uuid` VARCHAR(191) NOT NULL,
|
|
||||||
`name` VARCHAR(191) NOT NULL,
|
|
||||||
`cpuName` VARCHAR(191) NOT NULL DEFAULT '',
|
|
||||||
`os` VARCHAR(191) NOT NULL DEFAULT '',
|
|
||||||
`region` VARCHAR(191) NOT NULL DEFAULT '',
|
|
||||||
`memTotal` BIGINT NOT NULL DEFAULT 0,
|
|
||||||
`diskTotal` BIGINT NOT NULL DEFAULT 0,
|
|
||||||
`cpuCores` INTEGER NOT NULL DEFAULT 0,
|
|
||||||
`cpuUsage` DOUBLE NOT NULL DEFAULT 0,
|
|
||||||
`ramUsed` BIGINT NOT NULL DEFAULT 0,
|
|
||||||
`swapUsed` BIGINT NOT NULL DEFAULT 0,
|
|
||||||
`load1` DOUBLE NOT NULL DEFAULT 0,
|
|
||||||
`load5` DOUBLE NOT NULL DEFAULT 0,
|
|
||||||
`load15` DOUBLE NOT NULL DEFAULT 0,
|
|
||||||
`diskUsed` BIGINT NOT NULL DEFAULT 0,
|
|
||||||
`netIn` BIGINT NOT NULL DEFAULT 0,
|
|
||||||
`netOut` BIGINT NOT NULL DEFAULT 0,
|
|
||||||
`uptime` BIGINT NOT NULL DEFAULT 0,
|
|
||||||
`process` INTEGER NOT NULL DEFAULT 0,
|
|
||||||
`connections` INTEGER NOT NULL DEFAULT 0,
|
|
||||||
`status` VARCHAR(191) NOT NULL DEFAULT 'unknown',
|
|
||||||
`recordedAt` DATETIME(3) NOT NULL,
|
|
||||||
`createdAt` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
|
|
||||||
`updatedAt` DATETIME(3) NOT NULL,
|
|
||||||
|
|
||||||
UNIQUE INDEX `ServerNode_uuid_key`(`uuid`),
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
||||||
|
|
||||||
-- CreateTable
|
|
||||||
CREATE TABLE `ServerNodeHistory` (
|
|
||||||
`id` INTEGER NOT NULL AUTO_INCREMENT,
|
|
||||||
`uuid` VARCHAR(191) NOT NULL,
|
|
||||||
`period` DATETIME(3) NOT NULL,
|
|
||||||
`cpu` DOUBLE NOT NULL DEFAULT 0,
|
|
||||||
`ram` BIGINT NOT NULL DEFAULT 0,
|
|
||||||
`load` DOUBLE NOT NULL DEFAULT 0,
|
|
||||||
`disk` BIGINT NOT NULL DEFAULT 0,
|
|
||||||
`netIn` BIGINT NOT NULL DEFAULT 0,
|
|
||||||
`netOut` BIGINT NOT NULL DEFAULT 0,
|
|
||||||
`process` INTEGER NOT NULL DEFAULT 0,
|
|
||||||
`connections` INTEGER NOT NULL DEFAULT 0,
|
|
||||||
`createdAt` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
|
|
||||||
|
|
||||||
UNIQUE INDEX `ServerNodeHistory_uuid_period_key`(`uuid`, `period`),
|
|
||||||
INDEX `ServerNodeHistory_uuid_period_idx`(`uuid`, `period`),
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
||||||
|
|
||||||
-- CreateTable
|
|
||||||
CREATE TABLE `ServiceCheck` (
|
|
||||||
`id` INTEGER NOT NULL AUTO_INCREMENT,
|
|
||||||
`name` VARCHAR(191) NOT NULL,
|
|
||||||
`url` VARCHAR(191) NOT NULL,
|
|
||||||
`status` VARCHAR(191) NOT NULL DEFAULT 'unknown',
|
|
||||||
`latencyMs` INTEGER NOT NULL DEFAULT 0,
|
|
||||||
`message` VARCHAR(191) NOT NULL DEFAULT '',
|
|
||||||
`lastCheckAt` DATETIME(3) NOT NULL,
|
|
||||||
`createdAt` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
|
|
||||||
`updatedAt` DATETIME(3) NOT NULL,
|
|
||||||
|
|
||||||
UNIQUE INDEX `ServiceCheck_name_key`(`name`),
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
-- AlterTable (news.content 全文, 须在 news_and_alerts 建表之后执行)
|
|
||||||
ALTER TABLE `News` ADD COLUMN `content` TEXT NULL;
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
-- 浙江省油价历史表
|
|
||||||
-- - date: 调价日次日 (即数据实际抓取日, 便于按时间排序)
|
|
||||||
-- - province + fuel: 浙江 / 92/95/0
|
|
||||||
-- - unique (date, province, fuel): 防 cron 重复入库
|
|
||||||
-- - DOUBLE 容纳 999.999 元/升
|
|
||||||
CREATE TABLE OilPriceHistory (
|
|
||||||
id INT NOT NULL AUTO_INCREMENT,
|
|
||||||
date DATETIME(3) NOT NULL,
|
|
||||||
province VARCHAR(191) NOT NULL,
|
|
||||||
fuel VARCHAR(8) NOT NULL,
|
|
||||||
price DOUBLE NOT NULL,
|
|
||||||
source VARCHAR(191) NOT NULL DEFAULT 'apizero',
|
|
||||||
createdAt DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
|
|
||||||
PRIMARY KEY (id),
|
|
||||||
UNIQUE INDEX OilPriceHistory_date_province_fuel_key(date, province, fuel),
|
|
||||||
INDEX OilPriceHistory_province_fuel_date_idx(province, fuel, date)
|
|
||||||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
||||||
@@ -1,95 +0,0 @@
|
|||||||
-- CreateTable
|
|
||||||
CREATE TABLE `MihomeAccount` (
|
|
||||||
`id` INTEGER NOT NULL AUTO_INCREMENT,
|
|
||||||
`key` VARCHAR(191) NOT NULL DEFAULT 'default',
|
|
||||||
`userId` VARCHAR(191) NOT NULL DEFAULT '',
|
|
||||||
`status` VARCHAR(191) NOT NULL DEFAULT 'unknown',
|
|
||||||
`lastError` VARCHAR(191) NOT NULL DEFAULT '',
|
|
||||||
`updatedAt` DATETIME(3) NOT NULL,
|
|
||||||
|
|
||||||
UNIQUE INDEX `MihomeAccount_key_key`(`key`),
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
||||||
|
|
||||||
-- CreateTable
|
|
||||||
CREATE TABLE `MihomeHome` (
|
|
||||||
`id` INTEGER NOT NULL AUTO_INCREMENT,
|
|
||||||
`homeId` VARCHAR(191) NOT NULL,
|
|
||||||
`name` VARCHAR(191) NOT NULL,
|
|
||||||
`createdAt` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
|
|
||||||
|
|
||||||
UNIQUE INDEX `MihomeHome_homeId_key`(`homeId`),
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
||||||
|
|
||||||
-- CreateTable
|
|
||||||
CREATE TABLE `MihomeDevice` (
|
|
||||||
`id` INTEGER NOT NULL AUTO_INCREMENT,
|
|
||||||
`did` VARCHAR(191) NOT NULL,
|
|
||||||
`homeId` VARCHAR(191) NOT NULL,
|
|
||||||
`model` VARCHAR(191) NOT NULL,
|
|
||||||
`name` VARCHAR(191) NOT NULL,
|
|
||||||
`alias` VARCHAR(191) NULL,
|
|
||||||
`tempSiid` INTEGER NOT NULL,
|
|
||||||
`tempPiid` INTEGER NOT NULL,
|
|
||||||
`humSiid` INTEGER NOT NULL,
|
|
||||||
`humPiid` INTEGER NOT NULL,
|
|
||||||
`battSiid` INTEGER NOT NULL,
|
|
||||||
`battPiid` INTEGER NOT NULL,
|
|
||||||
`battery` INTEGER NULL,
|
|
||||||
`batteryAt` DATETIME(3) NULL,
|
|
||||||
`enabled` BOOLEAN NOT NULL DEFAULT true,
|
|
||||||
`lastSyncAt` DATETIME(3) NULL,
|
|
||||||
`createdAt` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
|
|
||||||
|
|
||||||
UNIQUE INDEX `MihomeDevice_did_key`(`did`),
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
||||||
|
|
||||||
-- CreateTable
|
|
||||||
CREATE TABLE `MihomeEnvSample` (
|
|
||||||
`id` INTEGER NOT NULL AUTO_INCREMENT,
|
|
||||||
`deviceId` INTEGER NOT NULL,
|
|
||||||
`date` DATETIME(3) NOT NULL,
|
|
||||||
`temperature` DOUBLE NULL,
|
|
||||||
`humidity` DOUBLE NULL,
|
|
||||||
`temperatureAvg` DOUBLE NULL,
|
|
||||||
`humidityAvg` DOUBLE NULL,
|
|
||||||
`temperatureMin` DOUBLE NULL,
|
|
||||||
`temperatureMax` DOUBLE NULL,
|
|
||||||
`humidityMin` DOUBLE NULL,
|
|
||||||
`humidityMax` DOUBLE NULL,
|
|
||||||
`origin` VARCHAR(191) NOT NULL DEFAULT 'live',
|
|
||||||
`sampledAt` DATETIME(3) NULL,
|
|
||||||
`raw` JSON NULL,
|
|
||||||
`createdAt` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
|
|
||||||
|
|
||||||
INDEX `MihomeEnvSample_deviceId_date_idx`(`deviceId`, `date`),
|
|
||||||
UNIQUE INDEX `MihomeEnvSample_deviceId_date_key`(`deviceId`, `date`),
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
||||||
|
|
||||||
-- CreateTable
|
|
||||||
CREATE TABLE `MihomeEnvHour` (
|
|
||||||
`id` INTEGER NOT NULL AUTO_INCREMENT,
|
|
||||||
`deviceId` INTEGER NOT NULL,
|
|
||||||
`hour` DATETIME(3) NOT NULL,
|
|
||||||
`temperatureAvg` DOUBLE NULL,
|
|
||||||
`humidityAvg` DOUBLE NULL,
|
|
||||||
`raw` JSON NULL,
|
|
||||||
`createdAt` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
|
|
||||||
|
|
||||||
INDEX `MihomeEnvHour_deviceId_hour_idx`(`deviceId`, `hour`),
|
|
||||||
UNIQUE INDEX `MihomeEnvHour_deviceId_hour_key`(`deviceId`, `hour`),
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
||||||
|
|
||||||
-- AddForeignKey
|
|
||||||
ALTER TABLE `MihomeDevice` ADD CONSTRAINT `MihomeDevice_homeId_fkey` FOREIGN KEY (`homeId`) REFERENCES `MihomeHome`(`homeId`) ON DELETE RESTRICT ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
-- AddForeignKey
|
|
||||||
ALTER TABLE `MihomeEnvSample` ADD CONSTRAINT `MihomeEnvSample_deviceId_fkey` FOREIGN KEY (`deviceId`) REFERENCES `MihomeDevice`(`id`) ON DELETE CASCADE ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
-- AddForeignKey
|
|
||||||
ALTER TABLE `MihomeEnvHour` ADD CONSTRAINT `MihomeEnvHour_deviceId_fkey` FOREIGN KEY (`deviceId`) REFERENCES `MihomeDevice`(`id`) ON DELETE CASCADE ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
@@ -1,99 +0,0 @@
|
|||||||
-- CreateTable
|
|
||||||
CREATE TABLE `Habit` (
|
|
||||||
`id` INTEGER NOT NULL AUTO_INCREMENT,
|
|
||||||
`userId` INTEGER NOT NULL,
|
|
||||||
`name` VARCHAR(191) NOT NULL,
|
|
||||||
`period` VARCHAR(191) NOT NULL DEFAULT 'day',
|
|
||||||
`target` INTEGER NOT NULL DEFAULT 1,
|
|
||||||
`color` VARCHAR(191) NOT NULL DEFAULT '#1677ff',
|
|
||||||
`icon` VARCHAR(191) NOT NULL DEFAULT '',
|
|
||||||
`note` VARCHAR(191) NOT NULL DEFAULT '',
|
|
||||||
`archived` BOOLEAN NOT NULL DEFAULT false,
|
|
||||||
`sortOrder` INTEGER NOT NULL DEFAULT 0,
|
|
||||||
`createdAt` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
|
|
||||||
`updatedAt` DATETIME(3) NOT NULL,
|
|
||||||
|
|
||||||
INDEX `Habit_userId_archived_sortOrder_idx`(`userId`, `archived`, `sortOrder`),
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
||||||
|
|
||||||
-- CreateTable
|
|
||||||
CREATE TABLE `CheckIn` (
|
|
||||||
`id` INTEGER NOT NULL AUTO_INCREMENT,
|
|
||||||
`habitId` INTEGER NOT NULL,
|
|
||||||
`userId` INTEGER NOT NULL,
|
|
||||||
`date` VARCHAR(10) NOT NULL,
|
|
||||||
`seq` INTEGER NOT NULL DEFAULT 1,
|
|
||||||
`note` VARCHAR(191) NOT NULL DEFAULT '',
|
|
||||||
`source` VARCHAR(191) NOT NULL DEFAULT 'user',
|
|
||||||
`createdAt` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
|
|
||||||
|
|
||||||
UNIQUE INDEX `CheckIn_habitId_date_seq_key`(`habitId`, `date`, `seq`),
|
|
||||||
INDEX `CheckIn_userId_date_idx`(`userId`, `date`),
|
|
||||||
INDEX `CheckIn_habitId_date_idx`(`habitId`, `date`),
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
||||||
|
|
||||||
-- CreateTable
|
|
||||||
CREATE TABLE `CheckList` (
|
|
||||||
`id` INTEGER NOT NULL AUTO_INCREMENT,
|
|
||||||
`userId` INTEGER NOT NULL,
|
|
||||||
`title` VARCHAR(191) NOT NULL,
|
|
||||||
`scene` VARCHAR(191) NOT NULL DEFAULT '',
|
|
||||||
`note` VARCHAR(191) NOT NULL DEFAULT '',
|
|
||||||
`archived` BOOLEAN NOT NULL DEFAULT false,
|
|
||||||
`createdAt` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
|
|
||||||
`updatedAt` DATETIME(3) NOT NULL,
|
|
||||||
|
|
||||||
INDEX `CheckList_userId_archived_idx`(`userId`, `archived`),
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
||||||
|
|
||||||
-- CreateTable
|
|
||||||
CREATE TABLE `CheckListItem` (
|
|
||||||
`id` INTEGER NOT NULL AUTO_INCREMENT,
|
|
||||||
`listId` INTEGER NOT NULL,
|
|
||||||
`title` VARCHAR(191) NOT NULL,
|
|
||||||
`note` VARCHAR(191) NOT NULL DEFAULT '',
|
|
||||||
`done` BOOLEAN NOT NULL DEFAULT false,
|
|
||||||
`doneAt` DATETIME(3) NULL,
|
|
||||||
`sortOrder` INTEGER NOT NULL DEFAULT 0,
|
|
||||||
`createdAt` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
|
|
||||||
`updatedAt` DATETIME(3) NOT NULL,
|
|
||||||
|
|
||||||
INDEX `CheckListItem_listId_sortOrder_idx`(`listId`, `sortOrder`),
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
||||||
|
|
||||||
-- CreateTable
|
|
||||||
CREATE TABLE `CheckListTemplate` (
|
|
||||||
`id` INTEGER NOT NULL AUTO_INCREMENT,
|
|
||||||
`userId` INTEGER NULL,
|
|
||||||
`name` VARCHAR(191) NOT NULL,
|
|
||||||
`scene` VARCHAR(191) NOT NULL DEFAULT '',
|
|
||||||
`items` JSON NOT NULL,
|
|
||||||
`builtin` BOOLEAN NOT NULL DEFAULT false,
|
|
||||||
`createdAt` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
|
|
||||||
`updatedAt` DATETIME(3) NOT NULL,
|
|
||||||
|
|
||||||
INDEX `CheckListTemplate_userId_builtin_idx`(`userId`, `builtin`),
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
||||||
|
|
||||||
-- AddForeignKey
|
|
||||||
ALTER TABLE `Habit` ADD CONSTRAINT `Habit_userId_fkey` FOREIGN KEY (`userId`) REFERENCES `User`(`id`) ON DELETE CASCADE ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
-- AddForeignKey
|
|
||||||
ALTER TABLE `CheckIn` ADD CONSTRAINT `CheckIn_habitId_fkey` FOREIGN KEY (`habitId`) REFERENCES `Habit`(`id`) ON DELETE CASCADE ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
-- AddForeignKey
|
|
||||||
ALTER TABLE `CheckIn` ADD CONSTRAINT `CheckIn_userId_fkey` FOREIGN KEY (`userId`) REFERENCES `User`(`id`) ON DELETE CASCADE ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
-- AddForeignKey
|
|
||||||
ALTER TABLE `CheckList` ADD CONSTRAINT `CheckList_userId_fkey` FOREIGN KEY (`userId`) REFERENCES `User`(`id`) ON DELETE CASCADE ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
-- AddForeignKey
|
|
||||||
ALTER TABLE `CheckListItem` ADD CONSTRAINT `CheckListItem_listId_fkey` FOREIGN KEY (`listId`) REFERENCES `CheckList`(`id`) ON DELETE CASCADE ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
-- AddForeignKey
|
|
||||||
ALTER TABLE `CheckListTemplate` ADD CONSTRAINT `CheckListTemplate_userId_fkey` FOREIGN KEY (`userId`) REFERENCES `User`(`id`) ON DELETE CASCADE ON UPDATE CASCADE;
|
|
||||||
@@ -1,126 +0,0 @@
|
|||||||
-- 任务模块 (V0.2): 项目 / 成员 / 看板列 / 任务 / 任务成员 / 标签
|
|
||||||
-- 设计口径见 docs/V0.2/任务模块/任务模块数据库设计文档.md
|
|
||||||
|
|
||||||
-- CreateTable
|
|
||||||
CREATE TABLE `Project` (
|
|
||||||
`id` INTEGER NOT NULL AUTO_INCREMENT,
|
|
||||||
`name` VARCHAR(50) NOT NULL,
|
|
||||||
`ownerId` INTEGER NOT NULL,
|
|
||||||
`isPersonal` BOOLEAN NOT NULL DEFAULT false,
|
|
||||||
`archived` BOOLEAN NOT NULL DEFAULT false,
|
|
||||||
`createdAt` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
|
|
||||||
`updatedAt` DATETIME(3) NOT NULL,
|
|
||||||
|
|
||||||
INDEX `Project_ownerId_idx`(`ownerId`),
|
|
||||||
INDEX `Project_archived_idx`(`archived`),
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
||||||
|
|
||||||
-- CreateTable
|
|
||||||
CREATE TABLE `ProjectMember` (
|
|
||||||
`id` INTEGER NOT NULL AUTO_INCREMENT,
|
|
||||||
`projectId` INTEGER NOT NULL,
|
|
||||||
`userId` INTEGER NOT NULL,
|
|
||||||
`permission` VARCHAR(191) NOT NULL DEFAULT 'member',
|
|
||||||
`createdAt` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
|
|
||||||
|
|
||||||
UNIQUE INDEX `ProjectMember_projectId_userId_key`(`projectId`, `userId`),
|
|
||||||
INDEX `ProjectMember_userId_idx`(`userId`),
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
||||||
|
|
||||||
-- CreateTable
|
|
||||||
CREATE TABLE `BoardColumn` (
|
|
||||||
`id` INTEGER NOT NULL AUTO_INCREMENT,
|
|
||||||
`projectId` INTEGER NOT NULL,
|
|
||||||
`name` VARCHAR(20) NOT NULL,
|
|
||||||
`sortOrder` INTEGER NOT NULL DEFAULT 0,
|
|
||||||
`boundStatus` VARCHAR(8) NULL,
|
|
||||||
`retention` VARCHAR(8) NOT NULL DEFAULT 'forever',
|
|
||||||
`createdAt` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
|
|
||||||
`updatedAt` DATETIME(3) NOT NULL,
|
|
||||||
|
|
||||||
UNIQUE INDEX `BoardColumn_projectId_name_key`(`projectId`, `name`),
|
|
||||||
INDEX `BoardColumn_projectId_sortOrder_idx`(`projectId`, `sortOrder`),
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
||||||
|
|
||||||
-- CreateTable
|
|
||||||
CREATE TABLE `Task` (
|
|
||||||
`id` INTEGER NOT NULL AUTO_INCREMENT,
|
|
||||||
`projectId` INTEGER NOT NULL,
|
|
||||||
`columnId` INTEGER NOT NULL,
|
|
||||||
`parentId` INTEGER NULL,
|
|
||||||
`title` VARCHAR(200) NOT NULL,
|
|
||||||
`description` TEXT NOT NULL,
|
|
||||||
`status` VARCHAR(8) NOT NULL DEFAULT 'todo',
|
|
||||||
`doneAt` DATETIME(3) NULL,
|
|
||||||
`assigneeId` INTEGER NULL,
|
|
||||||
`creatorId` INTEGER NOT NULL,
|
|
||||||
`extras` JSON NOT NULL,
|
|
||||||
`sortOrder` INTEGER NOT NULL DEFAULT 0,
|
|
||||||
`createdAt` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
|
|
||||||
`updatedAt` DATETIME(3) NOT NULL,
|
|
||||||
|
|
||||||
INDEX `Task_projectId_columnId_idx`(`projectId`, `columnId`),
|
|
||||||
INDEX `Task_projectId_status_idx`(`projectId`, `status`),
|
|
||||||
INDEX `Task_parentId_idx`(`parentId`),
|
|
||||||
INDEX `Task_projectId_doneAt_idx`(`projectId`, `doneAt`),
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
||||||
|
|
||||||
-- CreateTable
|
|
||||||
CREATE TABLE `TaskMember` (
|
|
||||||
`id` INTEGER NOT NULL AUTO_INCREMENT,
|
|
||||||
`taskId` INTEGER NOT NULL,
|
|
||||||
`userId` INTEGER NOT NULL,
|
|
||||||
|
|
||||||
UNIQUE INDEX `TaskMember_taskId_userId_key`(`taskId`, `userId`),
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
||||||
|
|
||||||
-- CreateTable
|
|
||||||
CREATE TABLE `TaskTag` (
|
|
||||||
`id` INTEGER NOT NULL AUTO_INCREMENT,
|
|
||||||
`taskId` INTEGER NOT NULL,
|
|
||||||
`name` VARCHAR(20) NOT NULL,
|
|
||||||
|
|
||||||
INDEX `TaskTag_taskId_idx`(`taskId`),
|
|
||||||
PRIMARY KEY (`id`)
|
|
||||||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
||||||
|
|
||||||
-- AddForeignKey
|
|
||||||
ALTER TABLE `Project` ADD CONSTRAINT `Project_ownerId_fkey` FOREIGN KEY (`ownerId`) REFERENCES `User`(`id`) ON DELETE CASCADE ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
-- AddForeignKey
|
|
||||||
ALTER TABLE `ProjectMember` ADD CONSTRAINT `ProjectMember_projectId_fkey` FOREIGN KEY (`projectId`) REFERENCES `Project`(`id`) ON DELETE CASCADE ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
-- AddForeignKey
|
|
||||||
ALTER TABLE `ProjectMember` ADD CONSTRAINT `ProjectMember_userId_fkey` FOREIGN KEY (`userId`) REFERENCES `User`(`id`) ON DELETE CASCADE ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
-- AddForeignKey
|
|
||||||
ALTER TABLE `BoardColumn` ADD CONSTRAINT `BoardColumn_projectId_fkey` FOREIGN KEY (`projectId`) REFERENCES `Project`(`id`) ON DELETE CASCADE ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
-- AddForeignKey
|
|
||||||
ALTER TABLE `Task` ADD CONSTRAINT `Task_projectId_fkey` FOREIGN KEY (`projectId`) REFERENCES `Project`(`id`) ON DELETE CASCADE ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
-- AddForeignKey
|
|
||||||
ALTER TABLE `Task` ADD CONSTRAINT `Task_columnId_fkey` FOREIGN KEY (`columnId`) REFERENCES `BoardColumn`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
-- AddForeignKey
|
|
||||||
ALTER TABLE `Task` ADD CONSTRAINT `Task_parentId_fkey` FOREIGN KEY (`parentId`) REFERENCES `Task`(`id`) ON DELETE CASCADE ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
-- AddForeignKey
|
|
||||||
ALTER TABLE `Task` ADD CONSTRAINT `Task_assigneeId_fkey` FOREIGN KEY (`assigneeId`) REFERENCES `User`(`id`) ON DELETE SET NULL ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
-- AddForeignKey
|
|
||||||
ALTER TABLE `Task` ADD CONSTRAINT `Task_creatorId_fkey` FOREIGN KEY (`creatorId`) REFERENCES `User`(`id`) ON DELETE CASCADE ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
-- AddForeignKey
|
|
||||||
ALTER TABLE `TaskMember` ADD CONSTRAINT `TaskMember_taskId_fkey` FOREIGN KEY (`taskId`) REFERENCES `Task`(`id`) ON DELETE CASCADE ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
-- AddForeignKey
|
|
||||||
ALTER TABLE `TaskMember` ADD CONSTRAINT `TaskMember_userId_fkey` FOREIGN KEY (`userId`) REFERENCES `User`(`id`) ON DELETE CASCADE ON UPDATE CASCADE;
|
|
||||||
|
|
||||||
-- AddForeignKey
|
|
||||||
ALTER TABLE `TaskTag` ADD CONSTRAINT `TaskTag_taskId_fkey` FOREIGN KEY (`taskId`) REFERENCES `Task`(`id`) ON DELETE CASCADE ON UPDATE CASCADE;
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
-- 项目信息块 (T-PJ-13): Project 增加 notes JSON, 存 [{ title, content }] 任意多个长文本块
|
|
||||||
-- 分三步保证存量行安全: 先可空加列 -> 回填 '[]' -> 收紧为 NOT NULL
|
|
||||||
ALTER TABLE `Project` ADD COLUMN `notes` JSON NULL;
|
|
||||||
|
|
||||||
UPDATE `Project` SET `notes` = '[]' WHERE `notes` IS NULL;
|
|
||||||
|
|
||||||
ALTER TABLE `Project` MODIFY `notes` JSON NOT NULL;
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
-- 任务类型标签: 项目级自定义列表 + 任务上的类型
|
|
||||||
ALTER TABLE `Project` ADD COLUMN `taskKinds` JSON NULL;
|
|
||||||
ALTER TABLE `Task` ADD COLUMN `kind` VARCHAR(20) NULL;
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
-- 任务时间标记: 完整日期存储, 前端展示 MM-dd
|
|
||||||
ALTER TABLE `Task` ADD COLUMN `markDate` DATETIME(3) NULL;
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
-- 项目图标: data URL (客户端裁剪 96x96 JPEG, 约 10-20KB)
|
|
||||||
ALTER TABLE `Project` ADD COLUMN `icon` TEXT NULL;
|
|
||||||
@@ -0,0 +1,655 @@
|
|||||||
|
-- CreateSchema
|
||||||
|
CREATE SCHEMA IF NOT EXISTS "public";
|
||||||
|
|
||||||
|
-- CreateTable
|
||||||
|
CREATE TABLE "User" (
|
||||||
|
"id" SERIAL NOT NULL,
|
||||||
|
"name" TEXT NOT NULL,
|
||||||
|
"email" TEXT NOT NULL,
|
||||||
|
"password" TEXT NOT NULL,
|
||||||
|
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
|
"updatedAt" TIMESTAMP(3) NOT NULL,
|
||||||
|
|
||||||
|
CONSTRAINT "User_pkey" PRIMARY KEY ("id")
|
||||||
|
);
|
||||||
|
|
||||||
|
-- CreateTable
|
||||||
|
CREATE TABLE "Article" (
|
||||||
|
"id" SERIAL NOT NULL,
|
||||||
|
"title" TEXT NOT NULL,
|
||||||
|
"slug" TEXT NOT NULL,
|
||||||
|
"content" TEXT NOT NULL,
|
||||||
|
"date" TEXT NOT NULL,
|
||||||
|
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
|
"updatedAt" TIMESTAMP(3) NOT NULL,
|
||||||
|
|
||||||
|
CONSTRAINT "Article_pkey" PRIMARY KEY ("id")
|
||||||
|
);
|
||||||
|
|
||||||
|
-- CreateTable
|
||||||
|
CREATE TABLE "Strategy" (
|
||||||
|
"id" SERIAL NOT NULL,
|
||||||
|
"name" TEXT NOT NULL,
|
||||||
|
"description" TEXT NOT NULL,
|
||||||
|
"data" JSONB NOT NULL,
|
||||||
|
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
|
"updatedAt" TIMESTAMP(3) NOT NULL,
|
||||||
|
|
||||||
|
CONSTRAINT "Strategy_pkey" PRIMARY KEY ("id")
|
||||||
|
);
|
||||||
|
|
||||||
|
-- CreateTable
|
||||||
|
CREATE TABLE "Indicator" (
|
||||||
|
"id" SERIAL NOT NULL,
|
||||||
|
"name" TEXT NOT NULL,
|
||||||
|
"groupName" TEXT NOT NULL,
|
||||||
|
"title" TEXT NOT NULL DEFAULT '',
|
||||||
|
"unit" TEXT NOT NULL DEFAULT '',
|
||||||
|
"source" TEXT NOT NULL DEFAULT '',
|
||||||
|
"frequency" TEXT NOT NULL DEFAULT 'month',
|
||||||
|
"hidden" BOOLEAN NOT NULL DEFAULT false,
|
||||||
|
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
|
"updatedAt" TIMESTAMP(3) NOT NULL,
|
||||||
|
|
||||||
|
CONSTRAINT "Indicator_pkey" PRIMARY KEY ("id")
|
||||||
|
);
|
||||||
|
|
||||||
|
-- CreateTable
|
||||||
|
CREATE TABLE "IndicatorPoint" (
|
||||||
|
"id" SERIAL NOT NULL,
|
||||||
|
"indicatorId" INTEGER NOT NULL,
|
||||||
|
"period" TEXT NOT NULL,
|
||||||
|
"value" DOUBLE PRECISION NOT NULL,
|
||||||
|
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
|
"updatedAt" TIMESTAMP(3) NOT NULL,
|
||||||
|
|
||||||
|
CONSTRAINT "IndicatorPoint_pkey" PRIMARY KEY ("id")
|
||||||
|
);
|
||||||
|
|
||||||
|
-- CreateTable
|
||||||
|
CREATE TABLE "News" (
|
||||||
|
"id" SERIAL NOT NULL,
|
||||||
|
"title" TEXT NOT NULL,
|
||||||
|
"summary" TEXT NOT NULL DEFAULT '',
|
||||||
|
"content" TEXT,
|
||||||
|
"source" TEXT NOT NULL DEFAULT '',
|
||||||
|
"url" TEXT NOT NULL DEFAULT '',
|
||||||
|
"publishedAt" TIMESTAMP(3) NOT NULL,
|
||||||
|
"impactRank" INTEGER NOT NULL,
|
||||||
|
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
|
|
||||||
|
CONSTRAINT "News_pkey" PRIMARY KEY ("id")
|
||||||
|
);
|
||||||
|
|
||||||
|
-- CreateTable
|
||||||
|
CREATE TABLE "Alert" (
|
||||||
|
"id" SERIAL NOT NULL,
|
||||||
|
"indicatorName" TEXT NOT NULL,
|
||||||
|
"period" TEXT NOT NULL,
|
||||||
|
"valueA" DOUBLE PRECISION NOT NULL,
|
||||||
|
"valueB" DOUBLE PRECISION NOT NULL,
|
||||||
|
"sourceA" TEXT NOT NULL,
|
||||||
|
"sourceB" TEXT NOT NULL,
|
||||||
|
"diff" DOUBLE PRECISION NOT NULL,
|
||||||
|
"diffRatio" DOUBLE PRECISION NOT NULL,
|
||||||
|
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
|
|
||||||
|
CONSTRAINT "Alert_pkey" PRIMARY KEY ("id")
|
||||||
|
);
|
||||||
|
|
||||||
|
-- CreateTable
|
||||||
|
CREATE TABLE "ServerNode" (
|
||||||
|
"id" SERIAL NOT NULL,
|
||||||
|
"uuid" TEXT NOT NULL,
|
||||||
|
"name" TEXT NOT NULL,
|
||||||
|
"cpuName" TEXT NOT NULL DEFAULT '',
|
||||||
|
"os" TEXT NOT NULL DEFAULT '',
|
||||||
|
"region" TEXT NOT NULL DEFAULT '',
|
||||||
|
"memTotal" BIGINT NOT NULL DEFAULT 0,
|
||||||
|
"diskTotal" BIGINT NOT NULL DEFAULT 0,
|
||||||
|
"cpuCores" INTEGER NOT NULL DEFAULT 0,
|
||||||
|
"cpuUsage" DOUBLE PRECISION NOT NULL DEFAULT 0,
|
||||||
|
"ramUsed" BIGINT NOT NULL DEFAULT 0,
|
||||||
|
"swapUsed" BIGINT NOT NULL DEFAULT 0,
|
||||||
|
"load1" DOUBLE PRECISION NOT NULL DEFAULT 0,
|
||||||
|
"load5" DOUBLE PRECISION NOT NULL DEFAULT 0,
|
||||||
|
"load15" DOUBLE PRECISION NOT NULL DEFAULT 0,
|
||||||
|
"diskUsed" BIGINT NOT NULL DEFAULT 0,
|
||||||
|
"netIn" BIGINT NOT NULL DEFAULT 0,
|
||||||
|
"netOut" BIGINT NOT NULL DEFAULT 0,
|
||||||
|
"uptime" BIGINT NOT NULL DEFAULT 0,
|
||||||
|
"process" INTEGER NOT NULL DEFAULT 0,
|
||||||
|
"connections" INTEGER NOT NULL DEFAULT 0,
|
||||||
|
"status" TEXT NOT NULL DEFAULT 'unknown',
|
||||||
|
"recordedAt" TIMESTAMP(3) NOT NULL,
|
||||||
|
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
|
"updatedAt" TIMESTAMP(3) NOT NULL,
|
||||||
|
|
||||||
|
CONSTRAINT "ServerNode_pkey" PRIMARY KEY ("id")
|
||||||
|
);
|
||||||
|
|
||||||
|
-- CreateTable
|
||||||
|
CREATE TABLE "ServerNodeHistory" (
|
||||||
|
"id" SERIAL NOT NULL,
|
||||||
|
"uuid" TEXT NOT NULL,
|
||||||
|
"period" TIMESTAMP(3) NOT NULL,
|
||||||
|
"cpu" DOUBLE PRECISION NOT NULL DEFAULT 0,
|
||||||
|
"ram" BIGINT NOT NULL DEFAULT 0,
|
||||||
|
"load" DOUBLE PRECISION NOT NULL DEFAULT 0,
|
||||||
|
"disk" BIGINT NOT NULL DEFAULT 0,
|
||||||
|
"netIn" BIGINT NOT NULL DEFAULT 0,
|
||||||
|
"netOut" BIGINT NOT NULL DEFAULT 0,
|
||||||
|
"process" INTEGER NOT NULL DEFAULT 0,
|
||||||
|
"connections" INTEGER NOT NULL DEFAULT 0,
|
||||||
|
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
|
|
||||||
|
CONSTRAINT "ServerNodeHistory_pkey" PRIMARY KEY ("id")
|
||||||
|
);
|
||||||
|
|
||||||
|
-- CreateTable
|
||||||
|
CREATE TABLE "ServiceCheck" (
|
||||||
|
"id" SERIAL NOT NULL,
|
||||||
|
"name" TEXT NOT NULL,
|
||||||
|
"url" TEXT NOT NULL,
|
||||||
|
"status" TEXT NOT NULL DEFAULT 'unknown',
|
||||||
|
"latencyMs" INTEGER NOT NULL DEFAULT 0,
|
||||||
|
"message" TEXT NOT NULL DEFAULT '',
|
||||||
|
"lastCheckAt" TIMESTAMP(3) NOT NULL,
|
||||||
|
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
|
"updatedAt" TIMESTAMP(3) NOT NULL,
|
||||||
|
|
||||||
|
CONSTRAINT "ServiceCheck_pkey" PRIMARY KEY ("id")
|
||||||
|
);
|
||||||
|
|
||||||
|
-- CreateTable
|
||||||
|
CREATE TABLE "Econ_SowInventory" (
|
||||||
|
"id" SERIAL NOT NULL,
|
||||||
|
"month" TEXT NOT NULL,
|
||||||
|
"inventory" INTEGER NOT NULL,
|
||||||
|
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
|
"updatedAt" TIMESTAMP(3) NOT NULL,
|
||||||
|
|
||||||
|
CONSTRAINT "Econ_SowInventory_pkey" PRIMARY KEY ("id")
|
||||||
|
);
|
||||||
|
|
||||||
|
-- CreateTable
|
||||||
|
CREATE TABLE "ScraperCache" (
|
||||||
|
"id" SERIAL NOT NULL,
|
||||||
|
"scraperName" TEXT NOT NULL,
|
||||||
|
"lastDataHash" TEXT,
|
||||||
|
"lastUpdateAt" TIMESTAMP(3) NOT NULL,
|
||||||
|
"metadata" JSONB,
|
||||||
|
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
|
"updatedAt" TIMESTAMP(3) NOT NULL,
|
||||||
|
|
||||||
|
CONSTRAINT "ScraperCache_pkey" PRIMARY KEY ("id")
|
||||||
|
);
|
||||||
|
|
||||||
|
-- CreateTable
|
||||||
|
CREATE TABLE "OilPriceHistory" (
|
||||||
|
"id" SERIAL NOT NULL,
|
||||||
|
"date" TIMESTAMP(3) NOT NULL,
|
||||||
|
"province" TEXT NOT NULL,
|
||||||
|
"fuel" TEXT NOT NULL,
|
||||||
|
"price" DOUBLE PRECISION NOT NULL,
|
||||||
|
"source" TEXT NOT NULL DEFAULT 'apizero',
|
||||||
|
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
|
|
||||||
|
CONSTRAINT "OilPriceHistory_pkey" PRIMARY KEY ("id")
|
||||||
|
);
|
||||||
|
|
||||||
|
-- CreateTable
|
||||||
|
CREATE TABLE "MihomeAccount" (
|
||||||
|
"id" SERIAL NOT NULL,
|
||||||
|
"key" TEXT NOT NULL DEFAULT 'default',
|
||||||
|
"userId" TEXT NOT NULL DEFAULT '',
|
||||||
|
"status" TEXT NOT NULL DEFAULT 'unknown',
|
||||||
|
"lastError" TEXT NOT NULL DEFAULT '',
|
||||||
|
"updatedAt" TIMESTAMP(3) NOT NULL,
|
||||||
|
|
||||||
|
CONSTRAINT "MihomeAccount_pkey" PRIMARY KEY ("id")
|
||||||
|
);
|
||||||
|
|
||||||
|
-- CreateTable
|
||||||
|
CREATE TABLE "MihomeHome" (
|
||||||
|
"id" SERIAL NOT NULL,
|
||||||
|
"homeId" TEXT NOT NULL,
|
||||||
|
"name" TEXT NOT NULL,
|
||||||
|
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
|
|
||||||
|
CONSTRAINT "MihomeHome_pkey" PRIMARY KEY ("id")
|
||||||
|
);
|
||||||
|
|
||||||
|
-- CreateTable
|
||||||
|
CREATE TABLE "MihomeDevice" (
|
||||||
|
"id" SERIAL NOT NULL,
|
||||||
|
"did" TEXT NOT NULL,
|
||||||
|
"homeId" TEXT NOT NULL,
|
||||||
|
"model" TEXT NOT NULL,
|
||||||
|
"name" TEXT NOT NULL,
|
||||||
|
"alias" TEXT,
|
||||||
|
"tempSiid" INTEGER NOT NULL,
|
||||||
|
"tempPiid" INTEGER NOT NULL,
|
||||||
|
"humSiid" INTEGER NOT NULL,
|
||||||
|
"humPiid" INTEGER NOT NULL,
|
||||||
|
"battSiid" INTEGER NOT NULL,
|
||||||
|
"battPiid" INTEGER NOT NULL,
|
||||||
|
"battery" INTEGER,
|
||||||
|
"batteryAt" TIMESTAMP(3),
|
||||||
|
"enabled" BOOLEAN NOT NULL DEFAULT true,
|
||||||
|
"lastSyncAt" TIMESTAMP(3),
|
||||||
|
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
|
|
||||||
|
CONSTRAINT "MihomeDevice_pkey" PRIMARY KEY ("id")
|
||||||
|
);
|
||||||
|
|
||||||
|
-- CreateTable
|
||||||
|
CREATE TABLE "MihomeEnvSample" (
|
||||||
|
"id" SERIAL NOT NULL,
|
||||||
|
"deviceId" INTEGER NOT NULL,
|
||||||
|
"date" TIMESTAMP(3) NOT NULL,
|
||||||
|
"temperature" DOUBLE PRECISION,
|
||||||
|
"humidity" DOUBLE PRECISION,
|
||||||
|
"temperatureAvg" DOUBLE PRECISION,
|
||||||
|
"humidityAvg" DOUBLE PRECISION,
|
||||||
|
"temperatureMin" DOUBLE PRECISION,
|
||||||
|
"temperatureMax" DOUBLE PRECISION,
|
||||||
|
"humidityMin" DOUBLE PRECISION,
|
||||||
|
"humidityMax" DOUBLE PRECISION,
|
||||||
|
"origin" TEXT NOT NULL DEFAULT 'live',
|
||||||
|
"sampledAt" TIMESTAMP(3),
|
||||||
|
"raw" JSONB,
|
||||||
|
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
|
|
||||||
|
CONSTRAINT "MihomeEnvSample_pkey" PRIMARY KEY ("id")
|
||||||
|
);
|
||||||
|
|
||||||
|
-- CreateTable
|
||||||
|
CREATE TABLE "MihomeEnvHour" (
|
||||||
|
"id" SERIAL NOT NULL,
|
||||||
|
"deviceId" INTEGER NOT NULL,
|
||||||
|
"hour" TIMESTAMP(3) NOT NULL,
|
||||||
|
"temperatureAvg" DOUBLE PRECISION,
|
||||||
|
"humidityAvg" DOUBLE PRECISION,
|
||||||
|
"raw" JSONB,
|
||||||
|
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
|
|
||||||
|
CONSTRAINT "MihomeEnvHour_pkey" PRIMARY KEY ("id")
|
||||||
|
);
|
||||||
|
|
||||||
|
-- CreateTable
|
||||||
|
CREATE TABLE "Habit" (
|
||||||
|
"id" SERIAL NOT NULL,
|
||||||
|
"userId" INTEGER NOT NULL,
|
||||||
|
"name" TEXT NOT NULL,
|
||||||
|
"period" TEXT NOT NULL DEFAULT 'day',
|
||||||
|
"target" INTEGER NOT NULL DEFAULT 1,
|
||||||
|
"color" TEXT NOT NULL DEFAULT '#1677ff',
|
||||||
|
"icon" TEXT NOT NULL DEFAULT '',
|
||||||
|
"note" TEXT NOT NULL DEFAULT '',
|
||||||
|
"archived" BOOLEAN NOT NULL DEFAULT false,
|
||||||
|
"sortOrder" INTEGER NOT NULL DEFAULT 0,
|
||||||
|
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
|
"updatedAt" TIMESTAMP(3) NOT NULL,
|
||||||
|
|
||||||
|
CONSTRAINT "Habit_pkey" PRIMARY KEY ("id")
|
||||||
|
);
|
||||||
|
|
||||||
|
-- CreateTable
|
||||||
|
CREATE TABLE "CheckIn" (
|
||||||
|
"id" SERIAL NOT NULL,
|
||||||
|
"habitId" INTEGER NOT NULL,
|
||||||
|
"userId" INTEGER NOT NULL,
|
||||||
|
"date" VARCHAR(10) NOT NULL,
|
||||||
|
"seq" INTEGER NOT NULL DEFAULT 1,
|
||||||
|
"note" TEXT NOT NULL DEFAULT '',
|
||||||
|
"source" TEXT NOT NULL DEFAULT 'user',
|
||||||
|
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
|
|
||||||
|
CONSTRAINT "CheckIn_pkey" PRIMARY KEY ("id")
|
||||||
|
);
|
||||||
|
|
||||||
|
-- CreateTable
|
||||||
|
CREATE TABLE "CheckList" (
|
||||||
|
"id" SERIAL NOT NULL,
|
||||||
|
"userId" INTEGER NOT NULL,
|
||||||
|
"title" TEXT NOT NULL,
|
||||||
|
"scene" TEXT NOT NULL DEFAULT '',
|
||||||
|
"note" TEXT NOT NULL DEFAULT '',
|
||||||
|
"archived" BOOLEAN NOT NULL DEFAULT false,
|
||||||
|
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
|
"updatedAt" TIMESTAMP(3) NOT NULL,
|
||||||
|
|
||||||
|
CONSTRAINT "CheckList_pkey" PRIMARY KEY ("id")
|
||||||
|
);
|
||||||
|
|
||||||
|
-- CreateTable
|
||||||
|
CREATE TABLE "CheckListItem" (
|
||||||
|
"id" SERIAL NOT NULL,
|
||||||
|
"listId" INTEGER NOT NULL,
|
||||||
|
"title" TEXT NOT NULL,
|
||||||
|
"note" TEXT NOT NULL DEFAULT '',
|
||||||
|
"done" BOOLEAN NOT NULL DEFAULT false,
|
||||||
|
"doneAt" TIMESTAMP(3),
|
||||||
|
"sortOrder" INTEGER NOT NULL DEFAULT 0,
|
||||||
|
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
|
"updatedAt" TIMESTAMP(3) NOT NULL,
|
||||||
|
|
||||||
|
CONSTRAINT "CheckListItem_pkey" PRIMARY KEY ("id")
|
||||||
|
);
|
||||||
|
|
||||||
|
-- CreateTable
|
||||||
|
CREATE TABLE "CheckListTemplate" (
|
||||||
|
"id" SERIAL NOT NULL,
|
||||||
|
"userId" INTEGER,
|
||||||
|
"name" TEXT NOT NULL,
|
||||||
|
"scene" TEXT NOT NULL DEFAULT '',
|
||||||
|
"items" JSONB NOT NULL,
|
||||||
|
"builtin" BOOLEAN NOT NULL DEFAULT false,
|
||||||
|
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
|
"updatedAt" TIMESTAMP(3) NOT NULL,
|
||||||
|
|
||||||
|
CONSTRAINT "CheckListTemplate_pkey" PRIMARY KEY ("id")
|
||||||
|
);
|
||||||
|
|
||||||
|
-- CreateTable
|
||||||
|
CREATE TABLE "Project" (
|
||||||
|
"id" SERIAL NOT NULL,
|
||||||
|
"uuid" VARCHAR(36) NOT NULL,
|
||||||
|
"code" VARCHAR(8) NOT NULL,
|
||||||
|
"name" VARCHAR(50) NOT NULL,
|
||||||
|
"ownerId" INTEGER NOT NULL,
|
||||||
|
"isPersonal" BOOLEAN NOT NULL DEFAULT false,
|
||||||
|
"archived" BOOLEAN NOT NULL DEFAULT false,
|
||||||
|
"notes" JSONB NOT NULL DEFAULT '[]',
|
||||||
|
"taskKinds" JSONB,
|
||||||
|
"icon" TEXT,
|
||||||
|
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
|
"updatedAt" TIMESTAMP(3) NOT NULL,
|
||||||
|
|
||||||
|
CONSTRAINT "Project_pkey" PRIMARY KEY ("id")
|
||||||
|
);
|
||||||
|
|
||||||
|
-- CreateTable
|
||||||
|
CREATE TABLE "ProjectMember" (
|
||||||
|
"id" SERIAL NOT NULL,
|
||||||
|
"uuid" VARCHAR(36) NOT NULL,
|
||||||
|
"projectId" INTEGER NOT NULL,
|
||||||
|
"userId" INTEGER NOT NULL,
|
||||||
|
"permission" TEXT NOT NULL DEFAULT 'member',
|
||||||
|
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
|
|
||||||
|
CONSTRAINT "ProjectMember_pkey" PRIMARY KEY ("id")
|
||||||
|
);
|
||||||
|
|
||||||
|
-- CreateTable
|
||||||
|
CREATE TABLE "BoardColumn" (
|
||||||
|
"id" SERIAL NOT NULL,
|
||||||
|
"uuid" VARCHAR(36) NOT NULL,
|
||||||
|
"projectId" INTEGER NOT NULL,
|
||||||
|
"name" VARCHAR(20) NOT NULL,
|
||||||
|
"sortOrder" INTEGER NOT NULL DEFAULT 0,
|
||||||
|
"boundStatus" VARCHAR(8),
|
||||||
|
"retention" VARCHAR(8) NOT NULL DEFAULT 'forever',
|
||||||
|
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
|
"updatedAt" TIMESTAMP(3) NOT NULL,
|
||||||
|
|
||||||
|
CONSTRAINT "BoardColumn_pkey" PRIMARY KEY ("id")
|
||||||
|
);
|
||||||
|
|
||||||
|
-- CreateTable
|
||||||
|
CREATE TABLE "Task" (
|
||||||
|
"id" SERIAL NOT NULL,
|
||||||
|
"uuid" VARCHAR(36) NOT NULL,
|
||||||
|
"projectId" INTEGER NOT NULL,
|
||||||
|
"columnId" INTEGER NOT NULL,
|
||||||
|
"parentId" INTEGER,
|
||||||
|
"title" VARCHAR(200) NOT NULL,
|
||||||
|
"description" TEXT NOT NULL DEFAULT '',
|
||||||
|
"kind" VARCHAR(20),
|
||||||
|
"markDate" TIMESTAMP(3),
|
||||||
|
"status" VARCHAR(8) NOT NULL DEFAULT 'todo',
|
||||||
|
"doneAt" TIMESTAMP(3),
|
||||||
|
"assigneeId" INTEGER,
|
||||||
|
"creatorId" INTEGER NOT NULL,
|
||||||
|
"extras" JSONB NOT NULL DEFAULT '[]',
|
||||||
|
"sortOrder" INTEGER NOT NULL DEFAULT 0,
|
||||||
|
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
|
"updatedAt" TIMESTAMP(3) NOT NULL,
|
||||||
|
"number" INTEGER,
|
||||||
|
|
||||||
|
CONSTRAINT "Task_pkey" PRIMARY KEY ("id")
|
||||||
|
);
|
||||||
|
|
||||||
|
-- CreateTable
|
||||||
|
CREATE TABLE "TaskMember" (
|
||||||
|
"id" SERIAL NOT NULL,
|
||||||
|
"uuid" VARCHAR(36) NOT NULL,
|
||||||
|
"taskId" INTEGER NOT NULL,
|
||||||
|
"userId" INTEGER NOT NULL,
|
||||||
|
|
||||||
|
CONSTRAINT "TaskMember_pkey" PRIMARY KEY ("id")
|
||||||
|
);
|
||||||
|
|
||||||
|
-- CreateTable
|
||||||
|
CREATE TABLE "TaskTag" (
|
||||||
|
"id" SERIAL NOT NULL,
|
||||||
|
"uuid" VARCHAR(36) NOT NULL,
|
||||||
|
"taskId" INTEGER NOT NULL,
|
||||||
|
"name" VARCHAR(20) NOT NULL,
|
||||||
|
|
||||||
|
CONSTRAINT "TaskTag_pkey" PRIMARY KEY ("id")
|
||||||
|
);
|
||||||
|
|
||||||
|
-- CreateIndex
|
||||||
|
CREATE UNIQUE INDEX "User_email_key" ON "User"("email");
|
||||||
|
|
||||||
|
-- CreateIndex
|
||||||
|
CREATE UNIQUE INDEX "Article_slug_key" ON "Article"("slug");
|
||||||
|
|
||||||
|
-- CreateIndex
|
||||||
|
CREATE UNIQUE INDEX "Indicator_name_key" ON "Indicator"("name");
|
||||||
|
|
||||||
|
-- CreateIndex
|
||||||
|
CREATE UNIQUE INDEX "IndicatorPoint_indicatorId_period_key" ON "IndicatorPoint"("indicatorId", "period");
|
||||||
|
|
||||||
|
-- CreateIndex
|
||||||
|
CREATE INDEX "News_publishedAt_idx" ON "News"("publishedAt");
|
||||||
|
|
||||||
|
-- CreateIndex
|
||||||
|
CREATE UNIQUE INDEX "News_title_publishedAt_key" ON "News"("title", "publishedAt");
|
||||||
|
|
||||||
|
-- CreateIndex
|
||||||
|
CREATE INDEX "Alert_createdAt_idx" ON "Alert"("createdAt");
|
||||||
|
|
||||||
|
-- CreateIndex
|
||||||
|
CREATE UNIQUE INDEX "ServerNode_uuid_key" ON "ServerNode"("uuid");
|
||||||
|
|
||||||
|
-- CreateIndex
|
||||||
|
CREATE INDEX "ServerNodeHistory_uuid_period_idx" ON "ServerNodeHistory"("uuid", "period");
|
||||||
|
|
||||||
|
-- CreateIndex
|
||||||
|
CREATE UNIQUE INDEX "ServerNodeHistory_uuid_period_key" ON "ServerNodeHistory"("uuid", "period");
|
||||||
|
|
||||||
|
-- CreateIndex
|
||||||
|
CREATE UNIQUE INDEX "ServiceCheck_name_key" ON "ServiceCheck"("name");
|
||||||
|
|
||||||
|
-- CreateIndex
|
||||||
|
CREATE UNIQUE INDEX "Econ_SowInventory_month_key" ON "Econ_SowInventory"("month");
|
||||||
|
|
||||||
|
-- CreateIndex
|
||||||
|
CREATE UNIQUE INDEX "ScraperCache_scraperName_key" ON "ScraperCache"("scraperName");
|
||||||
|
|
||||||
|
-- CreateIndex
|
||||||
|
CREATE INDEX "OilPriceHistory_province_fuel_date_idx" ON "OilPriceHistory"("province", "fuel", "date");
|
||||||
|
|
||||||
|
-- CreateIndex
|
||||||
|
CREATE UNIQUE INDEX "OilPriceHistory_date_province_fuel_key" ON "OilPriceHistory"("date", "province", "fuel");
|
||||||
|
|
||||||
|
-- CreateIndex
|
||||||
|
CREATE UNIQUE INDEX "MihomeAccount_key_key" ON "MihomeAccount"("key");
|
||||||
|
|
||||||
|
-- CreateIndex
|
||||||
|
CREATE UNIQUE INDEX "MihomeHome_homeId_key" ON "MihomeHome"("homeId");
|
||||||
|
|
||||||
|
-- CreateIndex
|
||||||
|
CREATE UNIQUE INDEX "MihomeDevice_did_key" ON "MihomeDevice"("did");
|
||||||
|
|
||||||
|
-- CreateIndex
|
||||||
|
CREATE INDEX "MihomeEnvSample_deviceId_date_idx" ON "MihomeEnvSample"("deviceId", "date");
|
||||||
|
|
||||||
|
-- CreateIndex
|
||||||
|
CREATE UNIQUE INDEX "MihomeEnvSample_deviceId_date_key" ON "MihomeEnvSample"("deviceId", "date");
|
||||||
|
|
||||||
|
-- CreateIndex
|
||||||
|
CREATE INDEX "MihomeEnvHour_deviceId_hour_idx" ON "MihomeEnvHour"("deviceId", "hour");
|
||||||
|
|
||||||
|
-- CreateIndex
|
||||||
|
CREATE UNIQUE INDEX "MihomeEnvHour_deviceId_hour_key" ON "MihomeEnvHour"("deviceId", "hour");
|
||||||
|
|
||||||
|
-- CreateIndex
|
||||||
|
CREATE INDEX "Habit_userId_archived_sortOrder_idx" ON "Habit"("userId", "archived", "sortOrder");
|
||||||
|
|
||||||
|
-- CreateIndex
|
||||||
|
CREATE INDEX "CheckIn_userId_date_idx" ON "CheckIn"("userId", "date");
|
||||||
|
|
||||||
|
-- CreateIndex
|
||||||
|
CREATE INDEX "CheckIn_habitId_date_idx" ON "CheckIn"("habitId", "date");
|
||||||
|
|
||||||
|
-- CreateIndex
|
||||||
|
CREATE UNIQUE INDEX "CheckIn_habitId_date_seq_key" ON "CheckIn"("habitId", "date", "seq");
|
||||||
|
|
||||||
|
-- CreateIndex
|
||||||
|
CREATE INDEX "CheckList_userId_archived_idx" ON "CheckList"("userId", "archived");
|
||||||
|
|
||||||
|
-- CreateIndex
|
||||||
|
CREATE INDEX "CheckListItem_listId_sortOrder_idx" ON "CheckListItem"("listId", "sortOrder");
|
||||||
|
|
||||||
|
-- CreateIndex
|
||||||
|
CREATE INDEX "CheckListTemplate_userId_builtin_idx" ON "CheckListTemplate"("userId", "builtin");
|
||||||
|
|
||||||
|
-- CreateIndex
|
||||||
|
CREATE UNIQUE INDEX "Project_uuid_key" ON "Project"("uuid");
|
||||||
|
|
||||||
|
-- CreateIndex
|
||||||
|
CREATE UNIQUE INDEX "Project_code_key" ON "Project"("code");
|
||||||
|
|
||||||
|
-- CreateIndex
|
||||||
|
CREATE INDEX "Project_ownerId_idx" ON "Project"("ownerId");
|
||||||
|
|
||||||
|
-- CreateIndex
|
||||||
|
CREATE INDEX "Project_archived_idx" ON "Project"("archived");
|
||||||
|
|
||||||
|
-- CreateIndex
|
||||||
|
CREATE UNIQUE INDEX "ProjectMember_uuid_key" ON "ProjectMember"("uuid");
|
||||||
|
|
||||||
|
-- CreateIndex
|
||||||
|
CREATE INDEX "ProjectMember_userId_idx" ON "ProjectMember"("userId");
|
||||||
|
|
||||||
|
-- CreateIndex
|
||||||
|
CREATE UNIQUE INDEX "ProjectMember_projectId_userId_key" ON "ProjectMember"("projectId", "userId");
|
||||||
|
|
||||||
|
-- CreateIndex
|
||||||
|
CREATE UNIQUE INDEX "BoardColumn_uuid_key" ON "BoardColumn"("uuid");
|
||||||
|
|
||||||
|
-- CreateIndex
|
||||||
|
CREATE INDEX "BoardColumn_projectId_sortOrder_idx" ON "BoardColumn"("projectId", "sortOrder");
|
||||||
|
|
||||||
|
-- CreateIndex
|
||||||
|
CREATE UNIQUE INDEX "BoardColumn_projectId_name_key" ON "BoardColumn"("projectId", "name");
|
||||||
|
|
||||||
|
-- CreateIndex
|
||||||
|
CREATE UNIQUE INDEX "Task_uuid_key" ON "Task"("uuid");
|
||||||
|
|
||||||
|
-- CreateIndex
|
||||||
|
CREATE INDEX "Task_projectId_columnId_idx" ON "Task"("projectId", "columnId");
|
||||||
|
|
||||||
|
-- CreateIndex
|
||||||
|
CREATE INDEX "Task_projectId_status_idx" ON "Task"("projectId", "status");
|
||||||
|
|
||||||
|
-- CreateIndex
|
||||||
|
CREATE INDEX "Task_parentId_idx" ON "Task"("parentId");
|
||||||
|
|
||||||
|
-- CreateIndex
|
||||||
|
CREATE INDEX "Task_projectId_doneAt_idx" ON "Task"("projectId", "doneAt");
|
||||||
|
|
||||||
|
-- CreateIndex
|
||||||
|
CREATE UNIQUE INDEX "Task_projectId_number_key" ON "Task"("projectId", "number");
|
||||||
|
|
||||||
|
-- CreateIndex
|
||||||
|
CREATE UNIQUE INDEX "TaskMember_uuid_key" ON "TaskMember"("uuid");
|
||||||
|
|
||||||
|
-- CreateIndex
|
||||||
|
CREATE UNIQUE INDEX "TaskMember_taskId_userId_key" ON "TaskMember"("taskId", "userId");
|
||||||
|
|
||||||
|
-- CreateIndex
|
||||||
|
CREATE UNIQUE INDEX "TaskTag_uuid_key" ON "TaskTag"("uuid");
|
||||||
|
|
||||||
|
-- CreateIndex
|
||||||
|
CREATE INDEX "TaskTag_taskId_idx" ON "TaskTag"("taskId");
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE "IndicatorPoint" ADD CONSTRAINT "IndicatorPoint_indicatorId_fkey" FOREIGN KEY ("indicatorId") REFERENCES "Indicator"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE "MihomeDevice" ADD CONSTRAINT "MihomeDevice_homeId_fkey" FOREIGN KEY ("homeId") REFERENCES "MihomeHome"("homeId") ON DELETE RESTRICT ON UPDATE CASCADE;
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE "MihomeEnvSample" ADD CONSTRAINT "MihomeEnvSample_deviceId_fkey" FOREIGN KEY ("deviceId") REFERENCES "MihomeDevice"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE "MihomeEnvHour" ADD CONSTRAINT "MihomeEnvHour_deviceId_fkey" FOREIGN KEY ("deviceId") REFERENCES "MihomeDevice"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE "Habit" ADD CONSTRAINT "Habit_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE "CheckIn" ADD CONSTRAINT "CheckIn_habitId_fkey" FOREIGN KEY ("habitId") REFERENCES "Habit"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE "CheckIn" ADD CONSTRAINT "CheckIn_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE "CheckList" ADD CONSTRAINT "CheckList_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE "CheckListItem" ADD CONSTRAINT "CheckListItem_listId_fkey" FOREIGN KEY ("listId") REFERENCES "CheckList"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE "CheckListTemplate" ADD CONSTRAINT "CheckListTemplate_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE "Project" ADD CONSTRAINT "Project_ownerId_fkey" FOREIGN KEY ("ownerId") REFERENCES "User"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE "ProjectMember" ADD CONSTRAINT "ProjectMember_projectId_fkey" FOREIGN KEY ("projectId") REFERENCES "Project"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE "ProjectMember" ADD CONSTRAINT "ProjectMember_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE "BoardColumn" ADD CONSTRAINT "BoardColumn_projectId_fkey" FOREIGN KEY ("projectId") REFERENCES "Project"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE "Task" ADD CONSTRAINT "Task_projectId_fkey" FOREIGN KEY ("projectId") REFERENCES "Project"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE "Task" ADD CONSTRAINT "Task_columnId_fkey" FOREIGN KEY ("columnId") REFERENCES "BoardColumn"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE "Task" ADD CONSTRAINT "Task_parentId_fkey" FOREIGN KEY ("parentId") REFERENCES "Task"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE "Task" ADD CONSTRAINT "Task_assigneeId_fkey" FOREIGN KEY ("assigneeId") REFERENCES "User"("id") ON DELETE SET NULL ON UPDATE CASCADE;
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE "Task" ADD CONSTRAINT "Task_creatorId_fkey" FOREIGN KEY ("creatorId") REFERENCES "User"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE "TaskMember" ADD CONSTRAINT "TaskMember_taskId_fkey" FOREIGN KEY ("taskId") REFERENCES "Task"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE "TaskMember" ADD CONSTRAINT "TaskMember_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
||||||
|
|
||||||
|
-- AddForeignKey
|
||||||
|
ALTER TABLE "TaskTag" ADD CONSTRAINT "TaskTag_taskId_fkey" FOREIGN KEY ("taskId") REFERENCES "Task"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
||||||
@@ -1,3 +1,3 @@
|
|||||||
# Please do not edit this file manually
|
# Please do not edit this file manually
|
||||||
# It should be added in your version-control system (e.g., Git)
|
# It should be added in your version-control system (e.g., Git)
|
||||||
provider = "mysql"
|
provider = "postgresql"
|
||||||
|
|||||||
+11
-1
@@ -9,7 +9,7 @@ generator client {
|
|||||||
}
|
}
|
||||||
|
|
||||||
datasource db {
|
datasource db {
|
||||||
provider = "mysql"
|
provider = "postgresql"
|
||||||
}
|
}
|
||||||
|
|
||||||
model User {
|
model User {
|
||||||
@@ -388,6 +388,8 @@ model CheckListTemplate {
|
|||||||
|
|
||||||
model Project {
|
model Project {
|
||||||
id Int @id @default(autoincrement())
|
id Int @id @default(autoincrement())
|
||||||
|
uuid String @unique @db.VarChar(36) // 同步标识: 客户端生成 (0.2.1 离线编辑, 见 docs/V0.2/离线编辑模块)
|
||||||
|
code String @unique @db.VarChar(8) // 项目短编号: 用户自拟 2~8 位前缀, 全局唯一, 服务端分配
|
||||||
name String @db.VarChar(50)
|
name String @db.VarChar(50)
|
||||||
ownerId Int
|
ownerId Int
|
||||||
owner User @relation("ProjectOwner", fields: [ownerId], references: [id], onDelete: Cascade)
|
owner User @relation("ProjectOwner", fields: [ownerId], references: [id], onDelete: Cascade)
|
||||||
@@ -409,6 +411,7 @@ model Project {
|
|||||||
|
|
||||||
model ProjectMember {
|
model ProjectMember {
|
||||||
id Int @id @default(autoincrement())
|
id Int @id @default(autoincrement())
|
||||||
|
uuid String @unique @db.VarChar(36) // 同步标识: 客户端生成 (0.2.1 离线编辑)
|
||||||
projectId Int
|
projectId Int
|
||||||
project Project @relation(fields: [projectId], references: [id], onDelete: Cascade)
|
project Project @relation(fields: [projectId], references: [id], onDelete: Cascade)
|
||||||
userId Int
|
userId Int
|
||||||
@@ -422,6 +425,7 @@ model ProjectMember {
|
|||||||
|
|
||||||
model BoardColumn {
|
model BoardColumn {
|
||||||
id Int @id @default(autoincrement())
|
id Int @id @default(autoincrement())
|
||||||
|
uuid String @unique @db.VarChar(36) // 同步标识: 客户端生成 (0.2.1 离线编辑)
|
||||||
projectId Int
|
projectId Int
|
||||||
project Project @relation(fields: [projectId], references: [id], onDelete: Cascade)
|
project Project @relation(fields: [projectId], references: [id], onDelete: Cascade)
|
||||||
name String @db.VarChar(20)
|
name String @db.VarChar(20)
|
||||||
@@ -439,6 +443,7 @@ model BoardColumn {
|
|||||||
|
|
||||||
model Task {
|
model Task {
|
||||||
id Int @id @default(autoincrement())
|
id Int @id @default(autoincrement())
|
||||||
|
uuid String @unique @db.VarChar(36) // 同步标识: 客户端生成 (0.2.1 离线编辑)
|
||||||
projectId Int
|
projectId Int
|
||||||
project Project @relation(fields: [projectId], references: [id], onDelete: Cascade)
|
project Project @relation(fields: [projectId], references: [id], onDelete: Cascade)
|
||||||
columnId Int
|
columnId Int
|
||||||
@@ -467,6 +472,9 @@ model Task {
|
|||||||
members TaskMember[]
|
members TaskMember[]
|
||||||
tags TaskTag[]
|
tags TaskTag[]
|
||||||
|
|
||||||
|
number Int? // 项目内自增编号 (服务端分配, 展示为 `code-number`); 本地未定号的离线新建任务为空
|
||||||
|
|
||||||
|
@@unique([projectId, number])
|
||||||
@@index([projectId, columnId])
|
@@index([projectId, columnId])
|
||||||
@@index([projectId, status])
|
@@index([projectId, status])
|
||||||
@@index([parentId])
|
@@index([parentId])
|
||||||
@@ -475,6 +483,7 @@ model Task {
|
|||||||
|
|
||||||
model TaskMember {
|
model TaskMember {
|
||||||
id Int @id @default(autoincrement())
|
id Int @id @default(autoincrement())
|
||||||
|
uuid String @unique @db.VarChar(36) // 同步标识: 客户端生成 (0.2.1 离线编辑)
|
||||||
taskId Int
|
taskId Int
|
||||||
task Task @relation(fields: [taskId], references: [id], onDelete: Cascade)
|
task Task @relation(fields: [taskId], references: [id], onDelete: Cascade)
|
||||||
userId Int
|
userId Int
|
||||||
@@ -485,6 +494,7 @@ model TaskMember {
|
|||||||
|
|
||||||
model TaskTag {
|
model TaskTag {
|
||||||
id Int @id @default(autoincrement())
|
id Int @id @default(autoincrement())
|
||||||
|
uuid String @unique @db.VarChar(36) // 同步标识: 客户端生成 (0.2.1 离线编辑)
|
||||||
taskId Int
|
taskId Int
|
||||||
task Task @relation(fields: [taskId], references: [id], onDelete: Cascade)
|
task Task @relation(fields: [taskId], references: [id], onDelete: Cascade)
|
||||||
name String @db.VarChar(20)
|
name String @db.VarChar(20)
|
||||||
|
|||||||
+4
-15
@@ -1,18 +1,7 @@
|
|||||||
// 服务端 Prisma 单例, 使用 mariadb 适配器
|
// 服务端 Prisma 单例, 使用 pg 适配器 (0.2.1: 数据库迁移到 PostgreSQL)
|
||||||
import 'dotenv/config'
|
import 'dotenv/config'
|
||||||
import { PrismaMariaDb } from '@prisma/adapter-mariadb'
|
import { PrismaPg } from '@prisma/adapter-pg'
|
||||||
import { PrismaClient } from '../generated/prisma/client.ts'
|
import { PrismaClient } from '../generated/prisma/client.ts'
|
||||||
|
|
||||||
function parseDatabaseUrl(url) {
|
const adapter = new PrismaPg({ connectionString: process.env.DATABASE_URL })
|
||||||
const u = new URL(url)
|
export const prisma = new PrismaClient({ adapter })
|
||||||
return {
|
|
||||||
host: u.hostname,
|
|
||||||
port: Number(u.port) || 3306,
|
|
||||||
user: decodeURIComponent(u.username),
|
|
||||||
password: decodeURIComponent(u.password),
|
|
||||||
database: u.pathname.replace(/^\//, ''),
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const adapter = new PrismaMariaDb(parseDatabaseUrl(process.env.DATABASE_URL))
|
|
||||||
export const prisma = new PrismaClient({ adapter })
|
|
||||||
|
|||||||
Reference in New Issue
Block a user