Files
iboard/generated/prisma/models/CheckIn.ts
T
cheney 004f8c262d feat(V0.2): 打卡 / 日历 / 清单模块
- 数据: Habit/CheckIn/CheckList/CheckListItem/CheckListTemplate + 迁移 + 重新生成 client
- 后端: server/checkin/period.js 周期计算(日/周/月/年, 周一起始, Asia/Shanghai)
        /api/checkin/* 打卡项CRUD/打卡/撤销/补打/某日详情/月历
        /api/checklists/* 清单与检查项CRUD/勾选/全选/复制/模板(系统预置出差·回老家)
- 前端: 底部新增「打卡」Tab -> /checkin, 页内三视图
        环形进度 RingProgress + 完成特效(粒子/光晕/触感, 可关闭)
        打卡视图: 待办列表/乐观更新/撤销/新建编辑
        日历视图: 月历网格 + 今天·昨天·明天 + 日期标记/完成率
        清单视图: 场景清单/勾选进度条/模板生成/另存模板/归档
- 文档: docs/V0.2/需求文档.md 补充实现约定(附录B)与接口清单
2026-10-22 11:37:16 +08:00

1519 lines
54 KiB
TypeScript

/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck
/*
* This file exports the `CheckIn` model and its related types.
*
* 🟢 You can import this file directly.
*/
import type * as runtime from "@prisma/client/runtime/client"
import type * as $Enums from "../enums.ts"
import type * as Prisma from "../internal/prismaNamespace.ts"
/**
* Model CheckIn
*
*/
export type CheckInModel = runtime.Types.Result.DefaultSelection<Prisma.$CheckInPayload>
export type AggregateCheckIn = {
_count: CheckInCountAggregateOutputType | null
_avg: CheckInAvgAggregateOutputType | null
_sum: CheckInSumAggregateOutputType | null
_min: CheckInMinAggregateOutputType | null
_max: CheckInMaxAggregateOutputType | null
}
export type CheckInAvgAggregateOutputType = {
id: number | null
habitId: number | null
userId: number | null
seq: number | null
}
export type CheckInSumAggregateOutputType = {
id: number | null
habitId: number | null
userId: number | null
seq: number | null
}
export type CheckInMinAggregateOutputType = {
id: number | null
habitId: number | null
userId: number | null
date: string | null
seq: number | null
note: string | null
source: string | null
createdAt: Date | null
}
export type CheckInMaxAggregateOutputType = {
id: number | null
habitId: number | null
userId: number | null
date: string | null
seq: number | null
note: string | null
source: string | null
createdAt: Date | null
}
export type CheckInCountAggregateOutputType = {
id: number
habitId: number
userId: number
date: number
seq: number
note: number
source: number
createdAt: number
_all: number
}
export type CheckInAvgAggregateInputType = {
id?: true
habitId?: true
userId?: true
seq?: true
}
export type CheckInSumAggregateInputType = {
id?: true
habitId?: true
userId?: true
seq?: true
}
export type CheckInMinAggregateInputType = {
id?: true
habitId?: true
userId?: true
date?: true
seq?: true
note?: true
source?: true
createdAt?: true
}
export type CheckInMaxAggregateInputType = {
id?: true
habitId?: true
userId?: true
date?: true
seq?: true
note?: true
source?: true
createdAt?: true
}
export type CheckInCountAggregateInputType = {
id?: true
habitId?: true
userId?: true
date?: true
seq?: true
note?: true
source?: true
createdAt?: true
_all?: true
}
export type CheckInAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which CheckIn to aggregate.
*/
where?: Prisma.CheckInWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of CheckIns to fetch.
*/
orderBy?: Prisma.CheckInOrderByWithRelationInput | Prisma.CheckInOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.CheckInWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` CheckIns from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` CheckIns.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned CheckIns
**/
_count?: true | CheckInCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: CheckInAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: CheckInSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: CheckInMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: CheckInMaxAggregateInputType
}
export type GetCheckInAggregateType<T extends CheckInAggregateArgs> = {
[P in keyof T & keyof AggregateCheckIn]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateCheckIn[P]>
: Prisma.GetScalarType<T[P], AggregateCheckIn[P]>
}
export type CheckInGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.CheckInWhereInput
orderBy?: Prisma.CheckInOrderByWithAggregationInput | Prisma.CheckInOrderByWithAggregationInput[]
by: Prisma.CheckInScalarFieldEnum[] | Prisma.CheckInScalarFieldEnum
having?: Prisma.CheckInScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: CheckInCountAggregateInputType | true
_avg?: CheckInAvgAggregateInputType
_sum?: CheckInSumAggregateInputType
_min?: CheckInMinAggregateInputType
_max?: CheckInMaxAggregateInputType
}
export type CheckInGroupByOutputType = {
id: number
habitId: number
userId: number
date: string
seq: number
note: string
source: string
createdAt: Date
_count: CheckInCountAggregateOutputType | null
_avg: CheckInAvgAggregateOutputType | null
_sum: CheckInSumAggregateOutputType | null
_min: CheckInMinAggregateOutputType | null
_max: CheckInMaxAggregateOutputType | null
}
export type GetCheckInGroupByPayload<T extends CheckInGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<CheckInGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof CheckInGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], CheckInGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], CheckInGroupByOutputType[P]>
}
>
>
export type CheckInWhereInput = {
AND?: Prisma.CheckInWhereInput | Prisma.CheckInWhereInput[]
OR?: Prisma.CheckInWhereInput[]
NOT?: Prisma.CheckInWhereInput | Prisma.CheckInWhereInput[]
id?: Prisma.IntFilter<"CheckIn"> | number
habitId?: Prisma.IntFilter<"CheckIn"> | number
userId?: Prisma.IntFilter<"CheckIn"> | number
date?: Prisma.StringFilter<"CheckIn"> | string
seq?: Prisma.IntFilter<"CheckIn"> | number
note?: Prisma.StringFilter<"CheckIn"> | string
source?: Prisma.StringFilter<"CheckIn"> | string
createdAt?: Prisma.DateTimeFilter<"CheckIn"> | Date | string
habit?: Prisma.XOR<Prisma.HabitScalarRelationFilter, Prisma.HabitWhereInput>
user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
}
export type CheckInOrderByWithRelationInput = {
id?: Prisma.SortOrder
habitId?: Prisma.SortOrder
userId?: Prisma.SortOrder
date?: Prisma.SortOrder
seq?: Prisma.SortOrder
note?: Prisma.SortOrder
source?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
habit?: Prisma.HabitOrderByWithRelationInput
user?: Prisma.UserOrderByWithRelationInput
_relevance?: Prisma.CheckInOrderByRelevanceInput
}
export type CheckInWhereUniqueInput = Prisma.AtLeast<{
id?: number
habitId_date_seq?: Prisma.CheckInHabitIdDateSeqCompoundUniqueInput
AND?: Prisma.CheckInWhereInput | Prisma.CheckInWhereInput[]
OR?: Prisma.CheckInWhereInput[]
NOT?: Prisma.CheckInWhereInput | Prisma.CheckInWhereInput[]
habitId?: Prisma.IntFilter<"CheckIn"> | number
userId?: Prisma.IntFilter<"CheckIn"> | number
date?: Prisma.StringFilter<"CheckIn"> | string
seq?: Prisma.IntFilter<"CheckIn"> | number
note?: Prisma.StringFilter<"CheckIn"> | string
source?: Prisma.StringFilter<"CheckIn"> | string
createdAt?: Prisma.DateTimeFilter<"CheckIn"> | Date | string
habit?: Prisma.XOR<Prisma.HabitScalarRelationFilter, Prisma.HabitWhereInput>
user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
}, "id" | "habitId_date_seq">
export type CheckInOrderByWithAggregationInput = {
id?: Prisma.SortOrder
habitId?: Prisma.SortOrder
userId?: Prisma.SortOrder
date?: Prisma.SortOrder
seq?: Prisma.SortOrder
note?: Prisma.SortOrder
source?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
_count?: Prisma.CheckInCountOrderByAggregateInput
_avg?: Prisma.CheckInAvgOrderByAggregateInput
_max?: Prisma.CheckInMaxOrderByAggregateInput
_min?: Prisma.CheckInMinOrderByAggregateInput
_sum?: Prisma.CheckInSumOrderByAggregateInput
}
export type CheckInScalarWhereWithAggregatesInput = {
AND?: Prisma.CheckInScalarWhereWithAggregatesInput | Prisma.CheckInScalarWhereWithAggregatesInput[]
OR?: Prisma.CheckInScalarWhereWithAggregatesInput[]
NOT?: Prisma.CheckInScalarWhereWithAggregatesInput | Prisma.CheckInScalarWhereWithAggregatesInput[]
id?: Prisma.IntWithAggregatesFilter<"CheckIn"> | number
habitId?: Prisma.IntWithAggregatesFilter<"CheckIn"> | number
userId?: Prisma.IntWithAggregatesFilter<"CheckIn"> | number
date?: Prisma.StringWithAggregatesFilter<"CheckIn"> | string
seq?: Prisma.IntWithAggregatesFilter<"CheckIn"> | number
note?: Prisma.StringWithAggregatesFilter<"CheckIn"> | string
source?: Prisma.StringWithAggregatesFilter<"CheckIn"> | string
createdAt?: Prisma.DateTimeWithAggregatesFilter<"CheckIn"> | Date | string
}
export type CheckInCreateInput = {
date: string
seq?: number
note?: string
source?: string
createdAt?: Date | string
habit: Prisma.HabitCreateNestedOneWithoutRecordsInput
user: Prisma.UserCreateNestedOneWithoutCheckInsInput
}
export type CheckInUncheckedCreateInput = {
id?: number
habitId: number
userId: number
date: string
seq?: number
note?: string
source?: string
createdAt?: Date | string
}
export type CheckInUpdateInput = {
date?: Prisma.StringFieldUpdateOperationsInput | string
seq?: Prisma.IntFieldUpdateOperationsInput | number
note?: Prisma.StringFieldUpdateOperationsInput | string
source?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
habit?: Prisma.HabitUpdateOneRequiredWithoutRecordsNestedInput
user?: Prisma.UserUpdateOneRequiredWithoutCheckInsNestedInput
}
export type CheckInUncheckedUpdateInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
habitId?: Prisma.IntFieldUpdateOperationsInput | number
userId?: Prisma.IntFieldUpdateOperationsInput | number
date?: Prisma.StringFieldUpdateOperationsInput | string
seq?: Prisma.IntFieldUpdateOperationsInput | number
note?: Prisma.StringFieldUpdateOperationsInput | string
source?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type CheckInCreateManyInput = {
id?: number
habitId: number
userId: number
date: string
seq?: number
note?: string
source?: string
createdAt?: Date | string
}
export type CheckInUpdateManyMutationInput = {
date?: Prisma.StringFieldUpdateOperationsInput | string
seq?: Prisma.IntFieldUpdateOperationsInput | number
note?: Prisma.StringFieldUpdateOperationsInput | string
source?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type CheckInUncheckedUpdateManyInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
habitId?: Prisma.IntFieldUpdateOperationsInput | number
userId?: Prisma.IntFieldUpdateOperationsInput | number
date?: Prisma.StringFieldUpdateOperationsInput | string
seq?: Prisma.IntFieldUpdateOperationsInput | number
note?: Prisma.StringFieldUpdateOperationsInput | string
source?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type CheckInListRelationFilter = {
every?: Prisma.CheckInWhereInput
some?: Prisma.CheckInWhereInput
none?: Prisma.CheckInWhereInput
}
export type CheckInOrderByRelationAggregateInput = {
_count?: Prisma.SortOrder
}
export type CheckInOrderByRelevanceInput = {
fields: Prisma.CheckInOrderByRelevanceFieldEnum | Prisma.CheckInOrderByRelevanceFieldEnum[]
sort: Prisma.SortOrder
search: string
}
export type CheckInHabitIdDateSeqCompoundUniqueInput = {
habitId: number
date: string
seq: number
}
export type CheckInCountOrderByAggregateInput = {
id?: Prisma.SortOrder
habitId?: Prisma.SortOrder
userId?: Prisma.SortOrder
date?: Prisma.SortOrder
seq?: Prisma.SortOrder
note?: Prisma.SortOrder
source?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
}
export type CheckInAvgOrderByAggregateInput = {
id?: Prisma.SortOrder
habitId?: Prisma.SortOrder
userId?: Prisma.SortOrder
seq?: Prisma.SortOrder
}
export type CheckInMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
habitId?: Prisma.SortOrder
userId?: Prisma.SortOrder
date?: Prisma.SortOrder
seq?: Prisma.SortOrder
note?: Prisma.SortOrder
source?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
}
export type CheckInMinOrderByAggregateInput = {
id?: Prisma.SortOrder
habitId?: Prisma.SortOrder
userId?: Prisma.SortOrder
date?: Prisma.SortOrder
seq?: Prisma.SortOrder
note?: Prisma.SortOrder
source?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
}
export type CheckInSumOrderByAggregateInput = {
id?: Prisma.SortOrder
habitId?: Prisma.SortOrder
userId?: Prisma.SortOrder
seq?: Prisma.SortOrder
}
export type CheckInCreateNestedManyWithoutUserInput = {
create?: Prisma.XOR<Prisma.CheckInCreateWithoutUserInput, Prisma.CheckInUncheckedCreateWithoutUserInput> | Prisma.CheckInCreateWithoutUserInput[] | Prisma.CheckInUncheckedCreateWithoutUserInput[]
connectOrCreate?: Prisma.CheckInCreateOrConnectWithoutUserInput | Prisma.CheckInCreateOrConnectWithoutUserInput[]
createMany?: Prisma.CheckInCreateManyUserInputEnvelope
connect?: Prisma.CheckInWhereUniqueInput | Prisma.CheckInWhereUniqueInput[]
}
export type CheckInUncheckedCreateNestedManyWithoutUserInput = {
create?: Prisma.XOR<Prisma.CheckInCreateWithoutUserInput, Prisma.CheckInUncheckedCreateWithoutUserInput> | Prisma.CheckInCreateWithoutUserInput[] | Prisma.CheckInUncheckedCreateWithoutUserInput[]
connectOrCreate?: Prisma.CheckInCreateOrConnectWithoutUserInput | Prisma.CheckInCreateOrConnectWithoutUserInput[]
createMany?: Prisma.CheckInCreateManyUserInputEnvelope
connect?: Prisma.CheckInWhereUniqueInput | Prisma.CheckInWhereUniqueInput[]
}
export type CheckInUpdateManyWithoutUserNestedInput = {
create?: Prisma.XOR<Prisma.CheckInCreateWithoutUserInput, Prisma.CheckInUncheckedCreateWithoutUserInput> | Prisma.CheckInCreateWithoutUserInput[] | Prisma.CheckInUncheckedCreateWithoutUserInput[]
connectOrCreate?: Prisma.CheckInCreateOrConnectWithoutUserInput | Prisma.CheckInCreateOrConnectWithoutUserInput[]
upsert?: Prisma.CheckInUpsertWithWhereUniqueWithoutUserInput | Prisma.CheckInUpsertWithWhereUniqueWithoutUserInput[]
createMany?: Prisma.CheckInCreateManyUserInputEnvelope
set?: Prisma.CheckInWhereUniqueInput | Prisma.CheckInWhereUniqueInput[]
disconnect?: Prisma.CheckInWhereUniqueInput | Prisma.CheckInWhereUniqueInput[]
delete?: Prisma.CheckInWhereUniqueInput | Prisma.CheckInWhereUniqueInput[]
connect?: Prisma.CheckInWhereUniqueInput | Prisma.CheckInWhereUniqueInput[]
update?: Prisma.CheckInUpdateWithWhereUniqueWithoutUserInput | Prisma.CheckInUpdateWithWhereUniqueWithoutUserInput[]
updateMany?: Prisma.CheckInUpdateManyWithWhereWithoutUserInput | Prisma.CheckInUpdateManyWithWhereWithoutUserInput[]
deleteMany?: Prisma.CheckInScalarWhereInput | Prisma.CheckInScalarWhereInput[]
}
export type CheckInUncheckedUpdateManyWithoutUserNestedInput = {
create?: Prisma.XOR<Prisma.CheckInCreateWithoutUserInput, Prisma.CheckInUncheckedCreateWithoutUserInput> | Prisma.CheckInCreateWithoutUserInput[] | Prisma.CheckInUncheckedCreateWithoutUserInput[]
connectOrCreate?: Prisma.CheckInCreateOrConnectWithoutUserInput | Prisma.CheckInCreateOrConnectWithoutUserInput[]
upsert?: Prisma.CheckInUpsertWithWhereUniqueWithoutUserInput | Prisma.CheckInUpsertWithWhereUniqueWithoutUserInput[]
createMany?: Prisma.CheckInCreateManyUserInputEnvelope
set?: Prisma.CheckInWhereUniqueInput | Prisma.CheckInWhereUniqueInput[]
disconnect?: Prisma.CheckInWhereUniqueInput | Prisma.CheckInWhereUniqueInput[]
delete?: Prisma.CheckInWhereUniqueInput | Prisma.CheckInWhereUniqueInput[]
connect?: Prisma.CheckInWhereUniqueInput | Prisma.CheckInWhereUniqueInput[]
update?: Prisma.CheckInUpdateWithWhereUniqueWithoutUserInput | Prisma.CheckInUpdateWithWhereUniqueWithoutUserInput[]
updateMany?: Prisma.CheckInUpdateManyWithWhereWithoutUserInput | Prisma.CheckInUpdateManyWithWhereWithoutUserInput[]
deleteMany?: Prisma.CheckInScalarWhereInput | Prisma.CheckInScalarWhereInput[]
}
export type CheckInCreateNestedManyWithoutHabitInput = {
create?: Prisma.XOR<Prisma.CheckInCreateWithoutHabitInput, Prisma.CheckInUncheckedCreateWithoutHabitInput> | Prisma.CheckInCreateWithoutHabitInput[] | Prisma.CheckInUncheckedCreateWithoutHabitInput[]
connectOrCreate?: Prisma.CheckInCreateOrConnectWithoutHabitInput | Prisma.CheckInCreateOrConnectWithoutHabitInput[]
createMany?: Prisma.CheckInCreateManyHabitInputEnvelope
connect?: Prisma.CheckInWhereUniqueInput | Prisma.CheckInWhereUniqueInput[]
}
export type CheckInUncheckedCreateNestedManyWithoutHabitInput = {
create?: Prisma.XOR<Prisma.CheckInCreateWithoutHabitInput, Prisma.CheckInUncheckedCreateWithoutHabitInput> | Prisma.CheckInCreateWithoutHabitInput[] | Prisma.CheckInUncheckedCreateWithoutHabitInput[]
connectOrCreate?: Prisma.CheckInCreateOrConnectWithoutHabitInput | Prisma.CheckInCreateOrConnectWithoutHabitInput[]
createMany?: Prisma.CheckInCreateManyHabitInputEnvelope
connect?: Prisma.CheckInWhereUniqueInput | Prisma.CheckInWhereUniqueInput[]
}
export type CheckInUpdateManyWithoutHabitNestedInput = {
create?: Prisma.XOR<Prisma.CheckInCreateWithoutHabitInput, Prisma.CheckInUncheckedCreateWithoutHabitInput> | Prisma.CheckInCreateWithoutHabitInput[] | Prisma.CheckInUncheckedCreateWithoutHabitInput[]
connectOrCreate?: Prisma.CheckInCreateOrConnectWithoutHabitInput | Prisma.CheckInCreateOrConnectWithoutHabitInput[]
upsert?: Prisma.CheckInUpsertWithWhereUniqueWithoutHabitInput | Prisma.CheckInUpsertWithWhereUniqueWithoutHabitInput[]
createMany?: Prisma.CheckInCreateManyHabitInputEnvelope
set?: Prisma.CheckInWhereUniqueInput | Prisma.CheckInWhereUniqueInput[]
disconnect?: Prisma.CheckInWhereUniqueInput | Prisma.CheckInWhereUniqueInput[]
delete?: Prisma.CheckInWhereUniqueInput | Prisma.CheckInWhereUniqueInput[]
connect?: Prisma.CheckInWhereUniqueInput | Prisma.CheckInWhereUniqueInput[]
update?: Prisma.CheckInUpdateWithWhereUniqueWithoutHabitInput | Prisma.CheckInUpdateWithWhereUniqueWithoutHabitInput[]
updateMany?: Prisma.CheckInUpdateManyWithWhereWithoutHabitInput | Prisma.CheckInUpdateManyWithWhereWithoutHabitInput[]
deleteMany?: Prisma.CheckInScalarWhereInput | Prisma.CheckInScalarWhereInput[]
}
export type CheckInUncheckedUpdateManyWithoutHabitNestedInput = {
create?: Prisma.XOR<Prisma.CheckInCreateWithoutHabitInput, Prisma.CheckInUncheckedCreateWithoutHabitInput> | Prisma.CheckInCreateWithoutHabitInput[] | Prisma.CheckInUncheckedCreateWithoutHabitInput[]
connectOrCreate?: Prisma.CheckInCreateOrConnectWithoutHabitInput | Prisma.CheckInCreateOrConnectWithoutHabitInput[]
upsert?: Prisma.CheckInUpsertWithWhereUniqueWithoutHabitInput | Prisma.CheckInUpsertWithWhereUniqueWithoutHabitInput[]
createMany?: Prisma.CheckInCreateManyHabitInputEnvelope
set?: Prisma.CheckInWhereUniqueInput | Prisma.CheckInWhereUniqueInput[]
disconnect?: Prisma.CheckInWhereUniqueInput | Prisma.CheckInWhereUniqueInput[]
delete?: Prisma.CheckInWhereUniqueInput | Prisma.CheckInWhereUniqueInput[]
connect?: Prisma.CheckInWhereUniqueInput | Prisma.CheckInWhereUniqueInput[]
update?: Prisma.CheckInUpdateWithWhereUniqueWithoutHabitInput | Prisma.CheckInUpdateWithWhereUniqueWithoutHabitInput[]
updateMany?: Prisma.CheckInUpdateManyWithWhereWithoutHabitInput | Prisma.CheckInUpdateManyWithWhereWithoutHabitInput[]
deleteMany?: Prisma.CheckInScalarWhereInput | Prisma.CheckInScalarWhereInput[]
}
export type CheckInCreateWithoutUserInput = {
date: string
seq?: number
note?: string
source?: string
createdAt?: Date | string
habit: Prisma.HabitCreateNestedOneWithoutRecordsInput
}
export type CheckInUncheckedCreateWithoutUserInput = {
id?: number
habitId: number
date: string
seq?: number
note?: string
source?: string
createdAt?: Date | string
}
export type CheckInCreateOrConnectWithoutUserInput = {
where: Prisma.CheckInWhereUniqueInput
create: Prisma.XOR<Prisma.CheckInCreateWithoutUserInput, Prisma.CheckInUncheckedCreateWithoutUserInput>
}
export type CheckInCreateManyUserInputEnvelope = {
data: Prisma.CheckInCreateManyUserInput | Prisma.CheckInCreateManyUserInput[]
skipDuplicates?: boolean
}
export type CheckInUpsertWithWhereUniqueWithoutUserInput = {
where: Prisma.CheckInWhereUniqueInput
update: Prisma.XOR<Prisma.CheckInUpdateWithoutUserInput, Prisma.CheckInUncheckedUpdateWithoutUserInput>
create: Prisma.XOR<Prisma.CheckInCreateWithoutUserInput, Prisma.CheckInUncheckedCreateWithoutUserInput>
}
export type CheckInUpdateWithWhereUniqueWithoutUserInput = {
where: Prisma.CheckInWhereUniqueInput
data: Prisma.XOR<Prisma.CheckInUpdateWithoutUserInput, Prisma.CheckInUncheckedUpdateWithoutUserInput>
}
export type CheckInUpdateManyWithWhereWithoutUserInput = {
where: Prisma.CheckInScalarWhereInput
data: Prisma.XOR<Prisma.CheckInUpdateManyMutationInput, Prisma.CheckInUncheckedUpdateManyWithoutUserInput>
}
export type CheckInScalarWhereInput = {
AND?: Prisma.CheckInScalarWhereInput | Prisma.CheckInScalarWhereInput[]
OR?: Prisma.CheckInScalarWhereInput[]
NOT?: Prisma.CheckInScalarWhereInput | Prisma.CheckInScalarWhereInput[]
id?: Prisma.IntFilter<"CheckIn"> | number
habitId?: Prisma.IntFilter<"CheckIn"> | number
userId?: Prisma.IntFilter<"CheckIn"> | number
date?: Prisma.StringFilter<"CheckIn"> | string
seq?: Prisma.IntFilter<"CheckIn"> | number
note?: Prisma.StringFilter<"CheckIn"> | string
source?: Prisma.StringFilter<"CheckIn"> | string
createdAt?: Prisma.DateTimeFilter<"CheckIn"> | Date | string
}
export type CheckInCreateWithoutHabitInput = {
date: string
seq?: number
note?: string
source?: string
createdAt?: Date | string
user: Prisma.UserCreateNestedOneWithoutCheckInsInput
}
export type CheckInUncheckedCreateWithoutHabitInput = {
id?: number
userId: number
date: string
seq?: number
note?: string
source?: string
createdAt?: Date | string
}
export type CheckInCreateOrConnectWithoutHabitInput = {
where: Prisma.CheckInWhereUniqueInput
create: Prisma.XOR<Prisma.CheckInCreateWithoutHabitInput, Prisma.CheckInUncheckedCreateWithoutHabitInput>
}
export type CheckInCreateManyHabitInputEnvelope = {
data: Prisma.CheckInCreateManyHabitInput | Prisma.CheckInCreateManyHabitInput[]
skipDuplicates?: boolean
}
export type CheckInUpsertWithWhereUniqueWithoutHabitInput = {
where: Prisma.CheckInWhereUniqueInput
update: Prisma.XOR<Prisma.CheckInUpdateWithoutHabitInput, Prisma.CheckInUncheckedUpdateWithoutHabitInput>
create: Prisma.XOR<Prisma.CheckInCreateWithoutHabitInput, Prisma.CheckInUncheckedCreateWithoutHabitInput>
}
export type CheckInUpdateWithWhereUniqueWithoutHabitInput = {
where: Prisma.CheckInWhereUniqueInput
data: Prisma.XOR<Prisma.CheckInUpdateWithoutHabitInput, Prisma.CheckInUncheckedUpdateWithoutHabitInput>
}
export type CheckInUpdateManyWithWhereWithoutHabitInput = {
where: Prisma.CheckInScalarWhereInput
data: Prisma.XOR<Prisma.CheckInUpdateManyMutationInput, Prisma.CheckInUncheckedUpdateManyWithoutHabitInput>
}
export type CheckInCreateManyUserInput = {
id?: number
habitId: number
date: string
seq?: number
note?: string
source?: string
createdAt?: Date | string
}
export type CheckInUpdateWithoutUserInput = {
date?: Prisma.StringFieldUpdateOperationsInput | string
seq?: Prisma.IntFieldUpdateOperationsInput | number
note?: Prisma.StringFieldUpdateOperationsInput | string
source?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
habit?: Prisma.HabitUpdateOneRequiredWithoutRecordsNestedInput
}
export type CheckInUncheckedUpdateWithoutUserInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
habitId?: Prisma.IntFieldUpdateOperationsInput | number
date?: Prisma.StringFieldUpdateOperationsInput | string
seq?: Prisma.IntFieldUpdateOperationsInput | number
note?: Prisma.StringFieldUpdateOperationsInput | string
source?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type CheckInUncheckedUpdateManyWithoutUserInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
habitId?: Prisma.IntFieldUpdateOperationsInput | number
date?: Prisma.StringFieldUpdateOperationsInput | string
seq?: Prisma.IntFieldUpdateOperationsInput | number
note?: Prisma.StringFieldUpdateOperationsInput | string
source?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type CheckInCreateManyHabitInput = {
id?: number
userId: number
date: string
seq?: number
note?: string
source?: string
createdAt?: Date | string
}
export type CheckInUpdateWithoutHabitInput = {
date?: Prisma.StringFieldUpdateOperationsInput | string
seq?: Prisma.IntFieldUpdateOperationsInput | number
note?: Prisma.StringFieldUpdateOperationsInput | string
source?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
user?: Prisma.UserUpdateOneRequiredWithoutCheckInsNestedInput
}
export type CheckInUncheckedUpdateWithoutHabitInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
userId?: Prisma.IntFieldUpdateOperationsInput | number
date?: Prisma.StringFieldUpdateOperationsInput | string
seq?: Prisma.IntFieldUpdateOperationsInput | number
note?: Prisma.StringFieldUpdateOperationsInput | string
source?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type CheckInUncheckedUpdateManyWithoutHabitInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
userId?: Prisma.IntFieldUpdateOperationsInput | number
date?: Prisma.StringFieldUpdateOperationsInput | string
seq?: Prisma.IntFieldUpdateOperationsInput | number
note?: Prisma.StringFieldUpdateOperationsInput | string
source?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type CheckInSelect<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 = {
id?: boolean
habitId?: boolean
userId?: boolean
date?: boolean
seq?: boolean
note?: boolean
source?: boolean
createdAt?: boolean
}
export type CheckInOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "habitId" | "userId" | "date" | "seq" | "note" | "source" | "createdAt", ExtArgs["result"]["checkIn"]>
export type CheckInInclude<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> = {
name: "CheckIn"
objects: {
habit: Prisma.$HabitPayload<ExtArgs>
user: Prisma.$UserPayload<ExtArgs>
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: number
habitId: number
userId: number
date: string
seq: number
note: string
source: string
createdAt: Date
}, ExtArgs["result"]["checkIn"]>
composites: {}
}
export type CheckInGetPayload<S extends boolean | null | undefined | CheckInDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$CheckInPayload, S>
export type CheckInCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<CheckInFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: CheckInCountAggregateInputType | true
}
export interface CheckInDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['CheckIn'], meta: { name: 'CheckIn' } }
/**
* Find zero or one CheckIn that matches the filter.
* @param {CheckInFindUniqueArgs} args - Arguments to find a CheckIn
* @example
* // Get one CheckIn
* const checkIn = await prisma.checkIn.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends CheckInFindUniqueArgs>(args: Prisma.SelectSubset<T, CheckInFindUniqueArgs<ExtArgs>>): Prisma.Prisma__CheckInClient<runtime.Types.Result.GetResult<Prisma.$CheckInPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one CheckIn that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {CheckInFindUniqueOrThrowArgs} args - Arguments to find a CheckIn
* @example
* // Get one CheckIn
* const checkIn = await prisma.checkIn.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends CheckInFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, CheckInFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__CheckInClient<runtime.Types.Result.GetResult<Prisma.$CheckInPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first CheckIn that matches the filter.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {CheckInFindFirstArgs} args - Arguments to find a CheckIn
* @example
* // Get one CheckIn
* const checkIn = await prisma.checkIn.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends CheckInFindFirstArgs>(args?: Prisma.SelectSubset<T, CheckInFindFirstArgs<ExtArgs>>): Prisma.Prisma__CheckInClient<runtime.Types.Result.GetResult<Prisma.$CheckInPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first CheckIn that matches the filter or
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {CheckInFindFirstOrThrowArgs} args - Arguments to find a CheckIn
* @example
* // Get one CheckIn
* const checkIn = await prisma.checkIn.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends CheckInFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, CheckInFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__CheckInClient<runtime.Types.Result.GetResult<Prisma.$CheckInPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more CheckIns that matches the filter.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {CheckInFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all CheckIns
* const checkIns = await prisma.checkIn.findMany()
*
* // Get first 10 CheckIns
* const checkIns = await prisma.checkIn.findMany({ take: 10 })
*
* // Only select the `id`
* const checkInWithIdOnly = await prisma.checkIn.findMany({ select: { id: true } })
*
*/
findMany<T extends CheckInFindManyArgs>(args?: Prisma.SelectSubset<T, CheckInFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CheckInPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a CheckIn.
* @param {CheckInCreateArgs} args - Arguments to create a CheckIn.
* @example
* // Create one CheckIn
* const CheckIn = await prisma.checkIn.create({
* data: {
* // ... data to create a CheckIn
* }
* })
*
*/
create<T extends CheckInCreateArgs>(args: Prisma.SelectSubset<T, CheckInCreateArgs<ExtArgs>>): Prisma.Prisma__CheckInClient<runtime.Types.Result.GetResult<Prisma.$CheckInPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many CheckIns.
* @param {CheckInCreateManyArgs} args - Arguments to create many CheckIns.
* @example
* // Create many CheckIns
* const checkIn = await prisma.checkIn.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends CheckInCreateManyArgs>(args?: Prisma.SelectSubset<T, CheckInCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Delete a CheckIn.
* @param {CheckInDeleteArgs} args - Arguments to delete one CheckIn.
* @example
* // Delete one CheckIn
* const CheckIn = await prisma.checkIn.delete({
* where: {
* // ... filter to delete one CheckIn
* }
* })
*
*/
delete<T extends CheckInDeleteArgs>(args: Prisma.SelectSubset<T, CheckInDeleteArgs<ExtArgs>>): Prisma.Prisma__CheckInClient<runtime.Types.Result.GetResult<Prisma.$CheckInPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one CheckIn.
* @param {CheckInUpdateArgs} args - Arguments to update one CheckIn.
* @example
* // Update one CheckIn
* const checkIn = await prisma.checkIn.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends CheckInUpdateArgs>(args: Prisma.SelectSubset<T, CheckInUpdateArgs<ExtArgs>>): Prisma.Prisma__CheckInClient<runtime.Types.Result.GetResult<Prisma.$CheckInPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more CheckIns.
* @param {CheckInDeleteManyArgs} args - Arguments to filter CheckIns to delete.
* @example
* // Delete a few CheckIns
* const { count } = await prisma.checkIn.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends CheckInDeleteManyArgs>(args?: Prisma.SelectSubset<T, CheckInDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more CheckIns.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {CheckInUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many CheckIns
* const checkIn = await prisma.checkIn.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends CheckInUpdateManyArgs>(args: Prisma.SelectSubset<T, CheckInUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create or update one CheckIn.
* @param {CheckInUpsertArgs} args - Arguments to update or create a CheckIn.
* @example
* // Update or create a CheckIn
* const checkIn = await prisma.checkIn.upsert({
* create: {
* // ... data to create a CheckIn
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the CheckIn we want to update
* }
* })
*/
upsert<T extends CheckInUpsertArgs>(args: Prisma.SelectSubset<T, CheckInUpsertArgs<ExtArgs>>): Prisma.Prisma__CheckInClient<runtime.Types.Result.GetResult<Prisma.$CheckInPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of CheckIns.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {CheckInCountArgs} args - Arguments to filter CheckIns to count.
* @example
* // Count the number of CheckIns
* const count = await prisma.checkIn.count({
* where: {
* // ... the filter for the CheckIns we want to count
* }
* })
**/
count<T extends CheckInCountArgs>(
args?: Prisma.Subset<T, CheckInCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], CheckInCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a CheckIn.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {CheckInAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
* @example
* // Ordered by age ascending
* // Where email contains prisma.io
* // Limited to the 10 users
* const aggregations = await prisma.user.aggregate({
* _avg: {
* age: true,
* },
* where: {
* email: {
* contains: "prisma.io",
* },
* },
* orderBy: {
* age: "asc",
* },
* take: 10,
* })
**/
aggregate<T extends CheckInAggregateArgs>(args: Prisma.Subset<T, CheckInAggregateArgs>): Prisma.PrismaPromise<GetCheckInAggregateType<T>>
/**
* Group by CheckIn.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {CheckInGroupByArgs} args - Group by arguments.
* @example
* // Group by city, order by createdAt, get count
* const result = await prisma.user.groupBy({
* by: ['city', 'createdAt'],
* orderBy: {
* createdAt: true
* },
* _count: {
* _all: true
* },
* })
*
**/
groupBy<
T extends CheckInGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: CheckInGroupByArgs['orderBy'] }
: { orderBy?: CheckInGroupByArgs['orderBy'] },
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
ByValid extends Prisma.Has<ByFields, OrderFields>,
HavingFields extends Prisma.GetHavingFields<T['having']>,
HavingValid extends Prisma.Has<ByFields, HavingFields>,
ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
InputErrors extends ByEmpty extends Prisma.True
? `Error: "by" must not be empty.`
: HavingValid extends Prisma.False
? {
[P in HavingFields]: P extends ByFields
? never
: P extends string
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
: [
Error,
'Field ',
P,
` in "having" needs to be provided in "by"`,
]
}[HavingFields]
: 'take' extends Prisma.Keys<T>
? 'orderBy' extends Prisma.Keys<T>
? ByValid extends Prisma.True
? {}
: {
[P in OrderFields]: P extends ByFields
? never
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
}[OrderFields]
: 'Error: If you provide "take", you also need to provide "orderBy"'
: 'skip' extends Prisma.Keys<T>
? 'orderBy' extends Prisma.Keys<T>
? ByValid extends Prisma.True
? {}
: {
[P in OrderFields]: P extends ByFields
? never
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
}[OrderFields]
: 'Error: If you provide "skip", you also need to provide "orderBy"'
: ByValid extends Prisma.True
? {}
: {
[P in OrderFields]: P extends ByFields
? never
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
}[OrderFields]
>(args: Prisma.SubsetIntersection<T, CheckInGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetCheckInGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the CheckIn model
*/
readonly fields: CheckInFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for CheckIn.
* Why is this prefixed with `Prisma__`?
* Because we want to prevent naming conflicts as mentioned in
* https://github.com/prisma/prisma-client-js/issues/707
*/
export interface Prisma__CheckInClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
habit<T extends Prisma.HabitDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.HabitDefaultArgs<ExtArgs>>): Prisma.Prisma__HabitClient<runtime.Types.Result.GetResult<Prisma.$HabitPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
user<T extends Prisma.UserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserDefaultArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
}
/**
* Fields of the CheckIn model
*/
export interface CheckInFieldRefs {
readonly id: Prisma.FieldRef<"CheckIn", 'Int'>
readonly habitId: Prisma.FieldRef<"CheckIn", 'Int'>
readonly userId: Prisma.FieldRef<"CheckIn", 'Int'>
readonly date: Prisma.FieldRef<"CheckIn", 'String'>
readonly seq: Prisma.FieldRef<"CheckIn", 'Int'>
readonly note: Prisma.FieldRef<"CheckIn", 'String'>
readonly source: Prisma.FieldRef<"CheckIn", 'String'>
readonly createdAt: Prisma.FieldRef<"CheckIn", 'DateTime'>
}
// Custom InputTypes
/**
* CheckIn findUnique
*/
export type CheckInFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the CheckIn
*/
select?: Prisma.CheckInSelect<ExtArgs> | null
/**
* Omit specific fields from the CheckIn
*/
omit?: Prisma.CheckInOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.CheckInInclude<ExtArgs> | null
/**
* Filter, which CheckIn to fetch.
*/
where: Prisma.CheckInWhereUniqueInput
}
/**
* CheckIn findUniqueOrThrow
*/
export type CheckInFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the CheckIn
*/
select?: Prisma.CheckInSelect<ExtArgs> | null
/**
* Omit specific fields from the CheckIn
*/
omit?: Prisma.CheckInOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.CheckInInclude<ExtArgs> | null
/**
* Filter, which CheckIn to fetch.
*/
where: Prisma.CheckInWhereUniqueInput
}
/**
* CheckIn findFirst
*/
export type CheckInFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the CheckIn
*/
select?: Prisma.CheckInSelect<ExtArgs> | null
/**
* Omit specific fields from the CheckIn
*/
omit?: Prisma.CheckInOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.CheckInInclude<ExtArgs> | null
/**
* Filter, which CheckIn to fetch.
*/
where?: Prisma.CheckInWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of CheckIns to fetch.
*/
orderBy?: Prisma.CheckInOrderByWithRelationInput | Prisma.CheckInOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for CheckIns.
*/
cursor?: Prisma.CheckInWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` CheckIns from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` CheckIns.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of CheckIns.
*/
distinct?: Prisma.CheckInScalarFieldEnum | Prisma.CheckInScalarFieldEnum[]
}
/**
* CheckIn findFirstOrThrow
*/
export type CheckInFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the CheckIn
*/
select?: Prisma.CheckInSelect<ExtArgs> | null
/**
* Omit specific fields from the CheckIn
*/
omit?: Prisma.CheckInOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.CheckInInclude<ExtArgs> | null
/**
* Filter, which CheckIn to fetch.
*/
where?: Prisma.CheckInWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of CheckIns to fetch.
*/
orderBy?: Prisma.CheckInOrderByWithRelationInput | Prisma.CheckInOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for CheckIns.
*/
cursor?: Prisma.CheckInWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` CheckIns from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` CheckIns.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of CheckIns.
*/
distinct?: Prisma.CheckInScalarFieldEnum | Prisma.CheckInScalarFieldEnum[]
}
/**
* CheckIn findMany
*/
export type CheckInFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the CheckIn
*/
select?: Prisma.CheckInSelect<ExtArgs> | null
/**
* Omit specific fields from the CheckIn
*/
omit?: Prisma.CheckInOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.CheckInInclude<ExtArgs> | null
/**
* Filter, which CheckIns to fetch.
*/
where?: Prisma.CheckInWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of CheckIns to fetch.
*/
orderBy?: Prisma.CheckInOrderByWithRelationInput | Prisma.CheckInOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing CheckIns.
*/
cursor?: Prisma.CheckInWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` CheckIns from the position of the cursor.
*/
take?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Skip the first `n` CheckIns.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of CheckIns.
*/
distinct?: Prisma.CheckInScalarFieldEnum | Prisma.CheckInScalarFieldEnum[]
}
/**
* CheckIn create
*/
export type CheckInCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the CheckIn
*/
select?: Prisma.CheckInSelect<ExtArgs> | null
/**
* Omit specific fields from the CheckIn
*/
omit?: Prisma.CheckInOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.CheckInInclude<ExtArgs> | null
/**
* The data needed to create a CheckIn.
*/
data: Prisma.XOR<Prisma.CheckInCreateInput, Prisma.CheckInUncheckedCreateInput>
}
/**
* CheckIn createMany
*/
export type CheckInCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many CheckIns.
*/
data: Prisma.CheckInCreateManyInput | Prisma.CheckInCreateManyInput[]
skipDuplicates?: boolean
}
/**
* CheckIn update
*/
export type CheckInUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the CheckIn
*/
select?: Prisma.CheckInSelect<ExtArgs> | null
/**
* Omit specific fields from the CheckIn
*/
omit?: Prisma.CheckInOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.CheckInInclude<ExtArgs> | null
/**
* The data needed to update a CheckIn.
*/
data: Prisma.XOR<Prisma.CheckInUpdateInput, Prisma.CheckInUncheckedUpdateInput>
/**
* Choose, which CheckIn to update.
*/
where: Prisma.CheckInWhereUniqueInput
}
/**
* CheckIn updateMany
*/
export type CheckInUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* 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
}
/**
* CheckIn upsert
*/
export type CheckInUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the CheckIn
*/
select?: Prisma.CheckInSelect<ExtArgs> | null
/**
* Omit specific fields from the CheckIn
*/
omit?: Prisma.CheckInOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.CheckInInclude<ExtArgs> | null
/**
* The filter to search for the CheckIn to update in case it exists.
*/
where: Prisma.CheckInWhereUniqueInput
/**
* In case the CheckIn found by the `where` argument doesn't exist, create a new CheckIn with this data.
*/
create: Prisma.XOR<Prisma.CheckInCreateInput, Prisma.CheckInUncheckedCreateInput>
/**
* In case the CheckIn was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.CheckInUpdateInput, Prisma.CheckInUncheckedUpdateInput>
}
/**
* CheckIn delete
*/
export type CheckInDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the CheckIn
*/
select?: Prisma.CheckInSelect<ExtArgs> | null
/**
* Omit specific fields from the CheckIn
*/
omit?: Prisma.CheckInOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.CheckInInclude<ExtArgs> | null
/**
* Filter which CheckIn to delete.
*/
where: Prisma.CheckInWhereUniqueInput
}
/**
* CheckIn deleteMany
*/
export type CheckInDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which CheckIns to delete
*/
where?: Prisma.CheckInWhereInput
/**
* Limit how many CheckIns to delete.
*/
limit?: number
}
/**
* CheckIn without action
*/
export type CheckInDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the CheckIn
*/
select?: Prisma.CheckInSelect<ExtArgs> | null
/**
* Omit specific fields from the CheckIn
*/
omit?: Prisma.CheckInOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.CheckInInclude<ExtArgs> | null
}