mirror of
https://github.com/xCyanGrizzly/DragonsStash.git
synced 2026-05-10 22:01:16 +00:00
Turbopack skips gitignored directories during module resolution in next build. Since src/generated/prisma was in .gitignore, the build on CI failed with "Module not found: Can't resolve '@/generated/prisma'" even though prisma generate created the files. Fix: commit the generated client and remove it from .gitignore. Run `npx prisma generate` after schema changes to update. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2915 lines
118 KiB
TypeScript
2915 lines
118 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 `User` 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"
|
|
import type * as Prisma from "../internal/prismaNamespace"
|
|
|
|
/**
|
|
* Model User
|
|
*
|
|
*/
|
|
export type UserModel = runtime.Types.Result.DefaultSelection<Prisma.$UserPayload>
|
|
|
|
export type AggregateUser = {
|
|
_count: UserCountAggregateOutputType | null
|
|
_min: UserMinAggregateOutputType | null
|
|
_max: UserMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type UserMinAggregateOutputType = {
|
|
id: string | null
|
|
name: string | null
|
|
email: string | null
|
|
emailVerified: Date | null
|
|
image: string | null
|
|
hashedPassword: string | null
|
|
role: $Enums.Role | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type UserMaxAggregateOutputType = {
|
|
id: string | null
|
|
name: string | null
|
|
email: string | null
|
|
emailVerified: Date | null
|
|
image: string | null
|
|
hashedPassword: string | null
|
|
role: $Enums.Role | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type UserCountAggregateOutputType = {
|
|
id: number
|
|
name: number
|
|
email: number
|
|
emailVerified: number
|
|
image: number
|
|
hashedPassword: number
|
|
role: number
|
|
createdAt: number
|
|
updatedAt: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type UserMinAggregateInputType = {
|
|
id?: true
|
|
name?: true
|
|
email?: true
|
|
emailVerified?: true
|
|
image?: true
|
|
hashedPassword?: true
|
|
role?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type UserMaxAggregateInputType = {
|
|
id?: true
|
|
name?: true
|
|
email?: true
|
|
emailVerified?: true
|
|
image?: true
|
|
hashedPassword?: true
|
|
role?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type UserCountAggregateInputType = {
|
|
id?: true
|
|
name?: true
|
|
email?: true
|
|
emailVerified?: true
|
|
image?: true
|
|
hashedPassword?: true
|
|
role?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type UserAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which User to aggregate.
|
|
*/
|
|
where?: Prisma.UserWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Users to fetch.
|
|
*/
|
|
orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.UserWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Users 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` Users.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned Users
|
|
**/
|
|
_count?: true | UserCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: UserMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: UserMaxAggregateInputType
|
|
}
|
|
|
|
export type GetUserAggregateType<T extends UserAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateUser]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateUser[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateUser[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type UserGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.UserWhereInput
|
|
orderBy?: Prisma.UserOrderByWithAggregationInput | Prisma.UserOrderByWithAggregationInput[]
|
|
by: Prisma.UserScalarFieldEnum[] | Prisma.UserScalarFieldEnum
|
|
having?: Prisma.UserScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: UserCountAggregateInputType | true
|
|
_min?: UserMinAggregateInputType
|
|
_max?: UserMaxAggregateInputType
|
|
}
|
|
|
|
export type UserGroupByOutputType = {
|
|
id: string
|
|
name: string | null
|
|
email: string | null
|
|
emailVerified: Date | null
|
|
image: string | null
|
|
hashedPassword: string | null
|
|
role: $Enums.Role
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
_count: UserCountAggregateOutputType | null
|
|
_min: UserMinAggregateOutputType | null
|
|
_max: UserMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetUserGroupByPayload<T extends UserGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<UserGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof UserGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], UserGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], UserGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type UserWhereInput = {
|
|
AND?: Prisma.UserWhereInput | Prisma.UserWhereInput[]
|
|
OR?: Prisma.UserWhereInput[]
|
|
NOT?: Prisma.UserWhereInput | Prisma.UserWhereInput[]
|
|
id?: Prisma.StringFilter<"User"> | string
|
|
name?: Prisma.StringNullableFilter<"User"> | string | null
|
|
email?: Prisma.StringNullableFilter<"User"> | string | null
|
|
emailVerified?: Prisma.DateTimeNullableFilter<"User"> | Date | string | null
|
|
image?: Prisma.StringNullableFilter<"User"> | string | null
|
|
hashedPassword?: Prisma.StringNullableFilter<"User"> | string | null
|
|
role?: Prisma.EnumRoleFilter<"User"> | $Enums.Role
|
|
createdAt?: Prisma.DateTimeFilter<"User"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"User"> | Date | string
|
|
accounts?: Prisma.AccountListRelationFilter
|
|
sessions?: Prisma.SessionListRelationFilter
|
|
filaments?: Prisma.FilamentListRelationFilter
|
|
resins?: Prisma.ResinListRelationFilter
|
|
paints?: Prisma.PaintListRelationFilter
|
|
vendors?: Prisma.VendorListRelationFilter
|
|
locations?: Prisma.LocationListRelationFilter
|
|
usageLogs?: Prisma.UsageLogListRelationFilter
|
|
tags?: Prisma.TagListRelationFilter
|
|
settings?: Prisma.XOR<Prisma.UserSettingsNullableScalarRelationFilter, Prisma.UserSettingsWhereInput> | null
|
|
}
|
|
|
|
export type UserOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
name?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
email?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
emailVerified?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
image?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
hashedPassword?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
role?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
accounts?: Prisma.AccountOrderByRelationAggregateInput
|
|
sessions?: Prisma.SessionOrderByRelationAggregateInput
|
|
filaments?: Prisma.FilamentOrderByRelationAggregateInput
|
|
resins?: Prisma.ResinOrderByRelationAggregateInput
|
|
paints?: Prisma.PaintOrderByRelationAggregateInput
|
|
vendors?: Prisma.VendorOrderByRelationAggregateInput
|
|
locations?: Prisma.LocationOrderByRelationAggregateInput
|
|
usageLogs?: Prisma.UsageLogOrderByRelationAggregateInput
|
|
tags?: Prisma.TagOrderByRelationAggregateInput
|
|
settings?: Prisma.UserSettingsOrderByWithRelationInput
|
|
}
|
|
|
|
export type UserWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
email?: string
|
|
AND?: Prisma.UserWhereInput | Prisma.UserWhereInput[]
|
|
OR?: Prisma.UserWhereInput[]
|
|
NOT?: Prisma.UserWhereInput | Prisma.UserWhereInput[]
|
|
name?: Prisma.StringNullableFilter<"User"> | string | null
|
|
emailVerified?: Prisma.DateTimeNullableFilter<"User"> | Date | string | null
|
|
image?: Prisma.StringNullableFilter<"User"> | string | null
|
|
hashedPassword?: Prisma.StringNullableFilter<"User"> | string | null
|
|
role?: Prisma.EnumRoleFilter<"User"> | $Enums.Role
|
|
createdAt?: Prisma.DateTimeFilter<"User"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"User"> | Date | string
|
|
accounts?: Prisma.AccountListRelationFilter
|
|
sessions?: Prisma.SessionListRelationFilter
|
|
filaments?: Prisma.FilamentListRelationFilter
|
|
resins?: Prisma.ResinListRelationFilter
|
|
paints?: Prisma.PaintListRelationFilter
|
|
vendors?: Prisma.VendorListRelationFilter
|
|
locations?: Prisma.LocationListRelationFilter
|
|
usageLogs?: Prisma.UsageLogListRelationFilter
|
|
tags?: Prisma.TagListRelationFilter
|
|
settings?: Prisma.XOR<Prisma.UserSettingsNullableScalarRelationFilter, Prisma.UserSettingsWhereInput> | null
|
|
}, "id" | "email">
|
|
|
|
export type UserOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
name?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
email?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
emailVerified?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
image?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
hashedPassword?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
role?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
_count?: Prisma.UserCountOrderByAggregateInput
|
|
_max?: Prisma.UserMaxOrderByAggregateInput
|
|
_min?: Prisma.UserMinOrderByAggregateInput
|
|
}
|
|
|
|
export type UserScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.UserScalarWhereWithAggregatesInput | Prisma.UserScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.UserScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.UserScalarWhereWithAggregatesInput | Prisma.UserScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.StringWithAggregatesFilter<"User"> | string
|
|
name?: Prisma.StringNullableWithAggregatesFilter<"User"> | string | null
|
|
email?: Prisma.StringNullableWithAggregatesFilter<"User"> | string | null
|
|
emailVerified?: Prisma.DateTimeNullableWithAggregatesFilter<"User"> | Date | string | null
|
|
image?: Prisma.StringNullableWithAggregatesFilter<"User"> | string | null
|
|
hashedPassword?: Prisma.StringNullableWithAggregatesFilter<"User"> | string | null
|
|
role?: Prisma.EnumRoleWithAggregatesFilter<"User"> | $Enums.Role
|
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"User"> | Date | string
|
|
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"User"> | Date | string
|
|
}
|
|
|
|
export type UserCreateInput = {
|
|
id?: string
|
|
name?: string | null
|
|
email?: string | null
|
|
emailVerified?: Date | string | null
|
|
image?: string | null
|
|
hashedPassword?: string | null
|
|
role?: $Enums.Role
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
accounts?: Prisma.AccountCreateNestedManyWithoutUserInput
|
|
sessions?: Prisma.SessionCreateNestedManyWithoutUserInput
|
|
filaments?: Prisma.FilamentCreateNestedManyWithoutUserInput
|
|
resins?: Prisma.ResinCreateNestedManyWithoutUserInput
|
|
paints?: Prisma.PaintCreateNestedManyWithoutUserInput
|
|
vendors?: Prisma.VendorCreateNestedManyWithoutUserInput
|
|
locations?: Prisma.LocationCreateNestedManyWithoutUserInput
|
|
usageLogs?: Prisma.UsageLogCreateNestedManyWithoutUserInput
|
|
tags?: Prisma.TagCreateNestedManyWithoutUserInput
|
|
settings?: Prisma.UserSettingsCreateNestedOneWithoutUserInput
|
|
}
|
|
|
|
export type UserUncheckedCreateInput = {
|
|
id?: string
|
|
name?: string | null
|
|
email?: string | null
|
|
emailVerified?: Date | string | null
|
|
image?: string | null
|
|
hashedPassword?: string | null
|
|
role?: $Enums.Role
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput
|
|
sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput
|
|
filaments?: Prisma.FilamentUncheckedCreateNestedManyWithoutUserInput
|
|
resins?: Prisma.ResinUncheckedCreateNestedManyWithoutUserInput
|
|
paints?: Prisma.PaintUncheckedCreateNestedManyWithoutUserInput
|
|
vendors?: Prisma.VendorUncheckedCreateNestedManyWithoutUserInput
|
|
locations?: Prisma.LocationUncheckedCreateNestedManyWithoutUserInput
|
|
usageLogs?: Prisma.UsageLogUncheckedCreateNestedManyWithoutUserInput
|
|
tags?: Prisma.TagUncheckedCreateNestedManyWithoutUserInput
|
|
settings?: Prisma.UserSettingsUncheckedCreateNestedOneWithoutUserInput
|
|
}
|
|
|
|
export type UserUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
emailVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
hashedPassword?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
role?: Prisma.EnumRoleFieldUpdateOperationsInput | $Enums.Role
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput
|
|
sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput
|
|
filaments?: Prisma.FilamentUpdateManyWithoutUserNestedInput
|
|
resins?: Prisma.ResinUpdateManyWithoutUserNestedInput
|
|
paints?: Prisma.PaintUpdateManyWithoutUserNestedInput
|
|
vendors?: Prisma.VendorUpdateManyWithoutUserNestedInput
|
|
locations?: Prisma.LocationUpdateManyWithoutUserNestedInput
|
|
usageLogs?: Prisma.UsageLogUpdateManyWithoutUserNestedInput
|
|
tags?: Prisma.TagUpdateManyWithoutUserNestedInput
|
|
settings?: Prisma.UserSettingsUpdateOneWithoutUserNestedInput
|
|
}
|
|
|
|
export type UserUncheckedUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
emailVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
hashedPassword?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
role?: Prisma.EnumRoleFieldUpdateOperationsInput | $Enums.Role
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput
|
|
sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput
|
|
filaments?: Prisma.FilamentUncheckedUpdateManyWithoutUserNestedInput
|
|
resins?: Prisma.ResinUncheckedUpdateManyWithoutUserNestedInput
|
|
paints?: Prisma.PaintUncheckedUpdateManyWithoutUserNestedInput
|
|
vendors?: Prisma.VendorUncheckedUpdateManyWithoutUserNestedInput
|
|
locations?: Prisma.LocationUncheckedUpdateManyWithoutUserNestedInput
|
|
usageLogs?: Prisma.UsageLogUncheckedUpdateManyWithoutUserNestedInput
|
|
tags?: Prisma.TagUncheckedUpdateManyWithoutUserNestedInput
|
|
settings?: Prisma.UserSettingsUncheckedUpdateOneWithoutUserNestedInput
|
|
}
|
|
|
|
export type UserCreateManyInput = {
|
|
id?: string
|
|
name?: string | null
|
|
email?: string | null
|
|
emailVerified?: Date | string | null
|
|
image?: string | null
|
|
hashedPassword?: string | null
|
|
role?: $Enums.Role
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type UserUpdateManyMutationInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
emailVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
hashedPassword?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
role?: Prisma.EnumRoleFieldUpdateOperationsInput | $Enums.Role
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type UserUncheckedUpdateManyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
emailVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
hashedPassword?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
role?: Prisma.EnumRoleFieldUpdateOperationsInput | $Enums.Role
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type UserCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
email?: Prisma.SortOrder
|
|
emailVerified?: Prisma.SortOrder
|
|
image?: Prisma.SortOrder
|
|
hashedPassword?: Prisma.SortOrder
|
|
role?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type UserMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
email?: Prisma.SortOrder
|
|
emailVerified?: Prisma.SortOrder
|
|
image?: Prisma.SortOrder
|
|
hashedPassword?: Prisma.SortOrder
|
|
role?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type UserMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
email?: Prisma.SortOrder
|
|
emailVerified?: Prisma.SortOrder
|
|
image?: Prisma.SortOrder
|
|
hashedPassword?: Prisma.SortOrder
|
|
role?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type UserScalarRelationFilter = {
|
|
is?: Prisma.UserWhereInput
|
|
isNot?: Prisma.UserWhereInput
|
|
}
|
|
|
|
export type StringFieldUpdateOperationsInput = {
|
|
set?: string
|
|
}
|
|
|
|
export type NullableStringFieldUpdateOperationsInput = {
|
|
set?: string | null
|
|
}
|
|
|
|
export type NullableDateTimeFieldUpdateOperationsInput = {
|
|
set?: Date | string | null
|
|
}
|
|
|
|
export type EnumRoleFieldUpdateOperationsInput = {
|
|
set?: $Enums.Role
|
|
}
|
|
|
|
export type DateTimeFieldUpdateOperationsInput = {
|
|
set?: Date | string
|
|
}
|
|
|
|
export type UserCreateNestedOneWithoutAccountsInput = {
|
|
create?: Prisma.XOR<Prisma.UserCreateWithoutAccountsInput, Prisma.UserUncheckedCreateWithoutAccountsInput>
|
|
connectOrCreate?: Prisma.UserCreateOrConnectWithoutAccountsInput
|
|
connect?: Prisma.UserWhereUniqueInput
|
|
}
|
|
|
|
export type UserUpdateOneRequiredWithoutAccountsNestedInput = {
|
|
create?: Prisma.XOR<Prisma.UserCreateWithoutAccountsInput, Prisma.UserUncheckedCreateWithoutAccountsInput>
|
|
connectOrCreate?: Prisma.UserCreateOrConnectWithoutAccountsInput
|
|
upsert?: Prisma.UserUpsertWithoutAccountsInput
|
|
connect?: Prisma.UserWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutAccountsInput, Prisma.UserUpdateWithoutAccountsInput>, Prisma.UserUncheckedUpdateWithoutAccountsInput>
|
|
}
|
|
|
|
export type UserCreateNestedOneWithoutSessionsInput = {
|
|
create?: Prisma.XOR<Prisma.UserCreateWithoutSessionsInput, Prisma.UserUncheckedCreateWithoutSessionsInput>
|
|
connectOrCreate?: Prisma.UserCreateOrConnectWithoutSessionsInput
|
|
connect?: Prisma.UserWhereUniqueInput
|
|
}
|
|
|
|
export type UserUpdateOneRequiredWithoutSessionsNestedInput = {
|
|
create?: Prisma.XOR<Prisma.UserCreateWithoutSessionsInput, Prisma.UserUncheckedCreateWithoutSessionsInput>
|
|
connectOrCreate?: Prisma.UserCreateOrConnectWithoutSessionsInput
|
|
upsert?: Prisma.UserUpsertWithoutSessionsInput
|
|
connect?: Prisma.UserWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutSessionsInput, Prisma.UserUpdateWithoutSessionsInput>, Prisma.UserUncheckedUpdateWithoutSessionsInput>
|
|
}
|
|
|
|
export type UserCreateNestedOneWithoutVendorsInput = {
|
|
create?: Prisma.XOR<Prisma.UserCreateWithoutVendorsInput, Prisma.UserUncheckedCreateWithoutVendorsInput>
|
|
connectOrCreate?: Prisma.UserCreateOrConnectWithoutVendorsInput
|
|
connect?: Prisma.UserWhereUniqueInput
|
|
}
|
|
|
|
export type UserUpdateOneRequiredWithoutVendorsNestedInput = {
|
|
create?: Prisma.XOR<Prisma.UserCreateWithoutVendorsInput, Prisma.UserUncheckedCreateWithoutVendorsInput>
|
|
connectOrCreate?: Prisma.UserCreateOrConnectWithoutVendorsInput
|
|
upsert?: Prisma.UserUpsertWithoutVendorsInput
|
|
connect?: Prisma.UserWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutVendorsInput, Prisma.UserUpdateWithoutVendorsInput>, Prisma.UserUncheckedUpdateWithoutVendorsInput>
|
|
}
|
|
|
|
export type UserCreateNestedOneWithoutLocationsInput = {
|
|
create?: Prisma.XOR<Prisma.UserCreateWithoutLocationsInput, Prisma.UserUncheckedCreateWithoutLocationsInput>
|
|
connectOrCreate?: Prisma.UserCreateOrConnectWithoutLocationsInput
|
|
connect?: Prisma.UserWhereUniqueInput
|
|
}
|
|
|
|
export type UserUpdateOneRequiredWithoutLocationsNestedInput = {
|
|
create?: Prisma.XOR<Prisma.UserCreateWithoutLocationsInput, Prisma.UserUncheckedCreateWithoutLocationsInput>
|
|
connectOrCreate?: Prisma.UserCreateOrConnectWithoutLocationsInput
|
|
upsert?: Prisma.UserUpsertWithoutLocationsInput
|
|
connect?: Prisma.UserWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutLocationsInput, Prisma.UserUpdateWithoutLocationsInput>, Prisma.UserUncheckedUpdateWithoutLocationsInput>
|
|
}
|
|
|
|
export type UserCreateNestedOneWithoutFilamentsInput = {
|
|
create?: Prisma.XOR<Prisma.UserCreateWithoutFilamentsInput, Prisma.UserUncheckedCreateWithoutFilamentsInput>
|
|
connectOrCreate?: Prisma.UserCreateOrConnectWithoutFilamentsInput
|
|
connect?: Prisma.UserWhereUniqueInput
|
|
}
|
|
|
|
export type UserUpdateOneRequiredWithoutFilamentsNestedInput = {
|
|
create?: Prisma.XOR<Prisma.UserCreateWithoutFilamentsInput, Prisma.UserUncheckedCreateWithoutFilamentsInput>
|
|
connectOrCreate?: Prisma.UserCreateOrConnectWithoutFilamentsInput
|
|
upsert?: Prisma.UserUpsertWithoutFilamentsInput
|
|
connect?: Prisma.UserWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutFilamentsInput, Prisma.UserUpdateWithoutFilamentsInput>, Prisma.UserUncheckedUpdateWithoutFilamentsInput>
|
|
}
|
|
|
|
export type UserCreateNestedOneWithoutResinsInput = {
|
|
create?: Prisma.XOR<Prisma.UserCreateWithoutResinsInput, Prisma.UserUncheckedCreateWithoutResinsInput>
|
|
connectOrCreate?: Prisma.UserCreateOrConnectWithoutResinsInput
|
|
connect?: Prisma.UserWhereUniqueInput
|
|
}
|
|
|
|
export type UserUpdateOneRequiredWithoutResinsNestedInput = {
|
|
create?: Prisma.XOR<Prisma.UserCreateWithoutResinsInput, Prisma.UserUncheckedCreateWithoutResinsInput>
|
|
connectOrCreate?: Prisma.UserCreateOrConnectWithoutResinsInput
|
|
upsert?: Prisma.UserUpsertWithoutResinsInput
|
|
connect?: Prisma.UserWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutResinsInput, Prisma.UserUpdateWithoutResinsInput>, Prisma.UserUncheckedUpdateWithoutResinsInput>
|
|
}
|
|
|
|
export type UserCreateNestedOneWithoutPaintsInput = {
|
|
create?: Prisma.XOR<Prisma.UserCreateWithoutPaintsInput, Prisma.UserUncheckedCreateWithoutPaintsInput>
|
|
connectOrCreate?: Prisma.UserCreateOrConnectWithoutPaintsInput
|
|
connect?: Prisma.UserWhereUniqueInput
|
|
}
|
|
|
|
export type UserUpdateOneRequiredWithoutPaintsNestedInput = {
|
|
create?: Prisma.XOR<Prisma.UserCreateWithoutPaintsInput, Prisma.UserUncheckedCreateWithoutPaintsInput>
|
|
connectOrCreate?: Prisma.UserCreateOrConnectWithoutPaintsInput
|
|
upsert?: Prisma.UserUpsertWithoutPaintsInput
|
|
connect?: Prisma.UserWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutPaintsInput, Prisma.UserUpdateWithoutPaintsInput>, Prisma.UserUncheckedUpdateWithoutPaintsInput>
|
|
}
|
|
|
|
export type UserCreateNestedOneWithoutTagsInput = {
|
|
create?: Prisma.XOR<Prisma.UserCreateWithoutTagsInput, Prisma.UserUncheckedCreateWithoutTagsInput>
|
|
connectOrCreate?: Prisma.UserCreateOrConnectWithoutTagsInput
|
|
connect?: Prisma.UserWhereUniqueInput
|
|
}
|
|
|
|
export type UserUpdateOneRequiredWithoutTagsNestedInput = {
|
|
create?: Prisma.XOR<Prisma.UserCreateWithoutTagsInput, Prisma.UserUncheckedCreateWithoutTagsInput>
|
|
connectOrCreate?: Prisma.UserCreateOrConnectWithoutTagsInput
|
|
upsert?: Prisma.UserUpsertWithoutTagsInput
|
|
connect?: Prisma.UserWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutTagsInput, Prisma.UserUpdateWithoutTagsInput>, Prisma.UserUncheckedUpdateWithoutTagsInput>
|
|
}
|
|
|
|
export type UserCreateNestedOneWithoutUsageLogsInput = {
|
|
create?: Prisma.XOR<Prisma.UserCreateWithoutUsageLogsInput, Prisma.UserUncheckedCreateWithoutUsageLogsInput>
|
|
connectOrCreate?: Prisma.UserCreateOrConnectWithoutUsageLogsInput
|
|
connect?: Prisma.UserWhereUniqueInput
|
|
}
|
|
|
|
export type UserUpdateOneRequiredWithoutUsageLogsNestedInput = {
|
|
create?: Prisma.XOR<Prisma.UserCreateWithoutUsageLogsInput, Prisma.UserUncheckedCreateWithoutUsageLogsInput>
|
|
connectOrCreate?: Prisma.UserCreateOrConnectWithoutUsageLogsInput
|
|
upsert?: Prisma.UserUpsertWithoutUsageLogsInput
|
|
connect?: Prisma.UserWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutUsageLogsInput, Prisma.UserUpdateWithoutUsageLogsInput>, Prisma.UserUncheckedUpdateWithoutUsageLogsInput>
|
|
}
|
|
|
|
export type UserCreateNestedOneWithoutSettingsInput = {
|
|
create?: Prisma.XOR<Prisma.UserCreateWithoutSettingsInput, Prisma.UserUncheckedCreateWithoutSettingsInput>
|
|
connectOrCreate?: Prisma.UserCreateOrConnectWithoutSettingsInput
|
|
connect?: Prisma.UserWhereUniqueInput
|
|
}
|
|
|
|
export type UserUpdateOneRequiredWithoutSettingsNestedInput = {
|
|
create?: Prisma.XOR<Prisma.UserCreateWithoutSettingsInput, Prisma.UserUncheckedCreateWithoutSettingsInput>
|
|
connectOrCreate?: Prisma.UserCreateOrConnectWithoutSettingsInput
|
|
upsert?: Prisma.UserUpsertWithoutSettingsInput
|
|
connect?: Prisma.UserWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutSettingsInput, Prisma.UserUpdateWithoutSettingsInput>, Prisma.UserUncheckedUpdateWithoutSettingsInput>
|
|
}
|
|
|
|
export type UserCreateWithoutAccountsInput = {
|
|
id?: string
|
|
name?: string | null
|
|
email?: string | null
|
|
emailVerified?: Date | string | null
|
|
image?: string | null
|
|
hashedPassword?: string | null
|
|
role?: $Enums.Role
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
sessions?: Prisma.SessionCreateNestedManyWithoutUserInput
|
|
filaments?: Prisma.FilamentCreateNestedManyWithoutUserInput
|
|
resins?: Prisma.ResinCreateNestedManyWithoutUserInput
|
|
paints?: Prisma.PaintCreateNestedManyWithoutUserInput
|
|
vendors?: Prisma.VendorCreateNestedManyWithoutUserInput
|
|
locations?: Prisma.LocationCreateNestedManyWithoutUserInput
|
|
usageLogs?: Prisma.UsageLogCreateNestedManyWithoutUserInput
|
|
tags?: Prisma.TagCreateNestedManyWithoutUserInput
|
|
settings?: Prisma.UserSettingsCreateNestedOneWithoutUserInput
|
|
}
|
|
|
|
export type UserUncheckedCreateWithoutAccountsInput = {
|
|
id?: string
|
|
name?: string | null
|
|
email?: string | null
|
|
emailVerified?: Date | string | null
|
|
image?: string | null
|
|
hashedPassword?: string | null
|
|
role?: $Enums.Role
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput
|
|
filaments?: Prisma.FilamentUncheckedCreateNestedManyWithoutUserInput
|
|
resins?: Prisma.ResinUncheckedCreateNestedManyWithoutUserInput
|
|
paints?: Prisma.PaintUncheckedCreateNestedManyWithoutUserInput
|
|
vendors?: Prisma.VendorUncheckedCreateNestedManyWithoutUserInput
|
|
locations?: Prisma.LocationUncheckedCreateNestedManyWithoutUserInput
|
|
usageLogs?: Prisma.UsageLogUncheckedCreateNestedManyWithoutUserInput
|
|
tags?: Prisma.TagUncheckedCreateNestedManyWithoutUserInput
|
|
settings?: Prisma.UserSettingsUncheckedCreateNestedOneWithoutUserInput
|
|
}
|
|
|
|
export type UserCreateOrConnectWithoutAccountsInput = {
|
|
where: Prisma.UserWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.UserCreateWithoutAccountsInput, Prisma.UserUncheckedCreateWithoutAccountsInput>
|
|
}
|
|
|
|
export type UserUpsertWithoutAccountsInput = {
|
|
update: Prisma.XOR<Prisma.UserUpdateWithoutAccountsInput, Prisma.UserUncheckedUpdateWithoutAccountsInput>
|
|
create: Prisma.XOR<Prisma.UserCreateWithoutAccountsInput, Prisma.UserUncheckedCreateWithoutAccountsInput>
|
|
where?: Prisma.UserWhereInput
|
|
}
|
|
|
|
export type UserUpdateToOneWithWhereWithoutAccountsInput = {
|
|
where?: Prisma.UserWhereInput
|
|
data: Prisma.XOR<Prisma.UserUpdateWithoutAccountsInput, Prisma.UserUncheckedUpdateWithoutAccountsInput>
|
|
}
|
|
|
|
export type UserUpdateWithoutAccountsInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
emailVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
hashedPassword?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
role?: Prisma.EnumRoleFieldUpdateOperationsInput | $Enums.Role
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput
|
|
filaments?: Prisma.FilamentUpdateManyWithoutUserNestedInput
|
|
resins?: Prisma.ResinUpdateManyWithoutUserNestedInput
|
|
paints?: Prisma.PaintUpdateManyWithoutUserNestedInput
|
|
vendors?: Prisma.VendorUpdateManyWithoutUserNestedInput
|
|
locations?: Prisma.LocationUpdateManyWithoutUserNestedInput
|
|
usageLogs?: Prisma.UsageLogUpdateManyWithoutUserNestedInput
|
|
tags?: Prisma.TagUpdateManyWithoutUserNestedInput
|
|
settings?: Prisma.UserSettingsUpdateOneWithoutUserNestedInput
|
|
}
|
|
|
|
export type UserUncheckedUpdateWithoutAccountsInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
emailVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
hashedPassword?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
role?: Prisma.EnumRoleFieldUpdateOperationsInput | $Enums.Role
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput
|
|
filaments?: Prisma.FilamentUncheckedUpdateManyWithoutUserNestedInput
|
|
resins?: Prisma.ResinUncheckedUpdateManyWithoutUserNestedInput
|
|
paints?: Prisma.PaintUncheckedUpdateManyWithoutUserNestedInput
|
|
vendors?: Prisma.VendorUncheckedUpdateManyWithoutUserNestedInput
|
|
locations?: Prisma.LocationUncheckedUpdateManyWithoutUserNestedInput
|
|
usageLogs?: Prisma.UsageLogUncheckedUpdateManyWithoutUserNestedInput
|
|
tags?: Prisma.TagUncheckedUpdateManyWithoutUserNestedInput
|
|
settings?: Prisma.UserSettingsUncheckedUpdateOneWithoutUserNestedInput
|
|
}
|
|
|
|
export type UserCreateWithoutSessionsInput = {
|
|
id?: string
|
|
name?: string | null
|
|
email?: string | null
|
|
emailVerified?: Date | string | null
|
|
image?: string | null
|
|
hashedPassword?: string | null
|
|
role?: $Enums.Role
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
accounts?: Prisma.AccountCreateNestedManyWithoutUserInput
|
|
filaments?: Prisma.FilamentCreateNestedManyWithoutUserInput
|
|
resins?: Prisma.ResinCreateNestedManyWithoutUserInput
|
|
paints?: Prisma.PaintCreateNestedManyWithoutUserInput
|
|
vendors?: Prisma.VendorCreateNestedManyWithoutUserInput
|
|
locations?: Prisma.LocationCreateNestedManyWithoutUserInput
|
|
usageLogs?: Prisma.UsageLogCreateNestedManyWithoutUserInput
|
|
tags?: Prisma.TagCreateNestedManyWithoutUserInput
|
|
settings?: Prisma.UserSettingsCreateNestedOneWithoutUserInput
|
|
}
|
|
|
|
export type UserUncheckedCreateWithoutSessionsInput = {
|
|
id?: string
|
|
name?: string | null
|
|
email?: string | null
|
|
emailVerified?: Date | string | null
|
|
image?: string | null
|
|
hashedPassword?: string | null
|
|
role?: $Enums.Role
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput
|
|
filaments?: Prisma.FilamentUncheckedCreateNestedManyWithoutUserInput
|
|
resins?: Prisma.ResinUncheckedCreateNestedManyWithoutUserInput
|
|
paints?: Prisma.PaintUncheckedCreateNestedManyWithoutUserInput
|
|
vendors?: Prisma.VendorUncheckedCreateNestedManyWithoutUserInput
|
|
locations?: Prisma.LocationUncheckedCreateNestedManyWithoutUserInput
|
|
usageLogs?: Prisma.UsageLogUncheckedCreateNestedManyWithoutUserInput
|
|
tags?: Prisma.TagUncheckedCreateNestedManyWithoutUserInput
|
|
settings?: Prisma.UserSettingsUncheckedCreateNestedOneWithoutUserInput
|
|
}
|
|
|
|
export type UserCreateOrConnectWithoutSessionsInput = {
|
|
where: Prisma.UserWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.UserCreateWithoutSessionsInput, Prisma.UserUncheckedCreateWithoutSessionsInput>
|
|
}
|
|
|
|
export type UserUpsertWithoutSessionsInput = {
|
|
update: Prisma.XOR<Prisma.UserUpdateWithoutSessionsInput, Prisma.UserUncheckedUpdateWithoutSessionsInput>
|
|
create: Prisma.XOR<Prisma.UserCreateWithoutSessionsInput, Prisma.UserUncheckedCreateWithoutSessionsInput>
|
|
where?: Prisma.UserWhereInput
|
|
}
|
|
|
|
export type UserUpdateToOneWithWhereWithoutSessionsInput = {
|
|
where?: Prisma.UserWhereInput
|
|
data: Prisma.XOR<Prisma.UserUpdateWithoutSessionsInput, Prisma.UserUncheckedUpdateWithoutSessionsInput>
|
|
}
|
|
|
|
export type UserUpdateWithoutSessionsInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
emailVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
hashedPassword?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
role?: Prisma.EnumRoleFieldUpdateOperationsInput | $Enums.Role
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput
|
|
filaments?: Prisma.FilamentUpdateManyWithoutUserNestedInput
|
|
resins?: Prisma.ResinUpdateManyWithoutUserNestedInput
|
|
paints?: Prisma.PaintUpdateManyWithoutUserNestedInput
|
|
vendors?: Prisma.VendorUpdateManyWithoutUserNestedInput
|
|
locations?: Prisma.LocationUpdateManyWithoutUserNestedInput
|
|
usageLogs?: Prisma.UsageLogUpdateManyWithoutUserNestedInput
|
|
tags?: Prisma.TagUpdateManyWithoutUserNestedInput
|
|
settings?: Prisma.UserSettingsUpdateOneWithoutUserNestedInput
|
|
}
|
|
|
|
export type UserUncheckedUpdateWithoutSessionsInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
emailVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
hashedPassword?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
role?: Prisma.EnumRoleFieldUpdateOperationsInput | $Enums.Role
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput
|
|
filaments?: Prisma.FilamentUncheckedUpdateManyWithoutUserNestedInput
|
|
resins?: Prisma.ResinUncheckedUpdateManyWithoutUserNestedInput
|
|
paints?: Prisma.PaintUncheckedUpdateManyWithoutUserNestedInput
|
|
vendors?: Prisma.VendorUncheckedUpdateManyWithoutUserNestedInput
|
|
locations?: Prisma.LocationUncheckedUpdateManyWithoutUserNestedInput
|
|
usageLogs?: Prisma.UsageLogUncheckedUpdateManyWithoutUserNestedInput
|
|
tags?: Prisma.TagUncheckedUpdateManyWithoutUserNestedInput
|
|
settings?: Prisma.UserSettingsUncheckedUpdateOneWithoutUserNestedInput
|
|
}
|
|
|
|
export type UserCreateWithoutVendorsInput = {
|
|
id?: string
|
|
name?: string | null
|
|
email?: string | null
|
|
emailVerified?: Date | string | null
|
|
image?: string | null
|
|
hashedPassword?: string | null
|
|
role?: $Enums.Role
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
accounts?: Prisma.AccountCreateNestedManyWithoutUserInput
|
|
sessions?: Prisma.SessionCreateNestedManyWithoutUserInput
|
|
filaments?: Prisma.FilamentCreateNestedManyWithoutUserInput
|
|
resins?: Prisma.ResinCreateNestedManyWithoutUserInput
|
|
paints?: Prisma.PaintCreateNestedManyWithoutUserInput
|
|
locations?: Prisma.LocationCreateNestedManyWithoutUserInput
|
|
usageLogs?: Prisma.UsageLogCreateNestedManyWithoutUserInput
|
|
tags?: Prisma.TagCreateNestedManyWithoutUserInput
|
|
settings?: Prisma.UserSettingsCreateNestedOneWithoutUserInput
|
|
}
|
|
|
|
export type UserUncheckedCreateWithoutVendorsInput = {
|
|
id?: string
|
|
name?: string | null
|
|
email?: string | null
|
|
emailVerified?: Date | string | null
|
|
image?: string | null
|
|
hashedPassword?: string | null
|
|
role?: $Enums.Role
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput
|
|
sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput
|
|
filaments?: Prisma.FilamentUncheckedCreateNestedManyWithoutUserInput
|
|
resins?: Prisma.ResinUncheckedCreateNestedManyWithoutUserInput
|
|
paints?: Prisma.PaintUncheckedCreateNestedManyWithoutUserInput
|
|
locations?: Prisma.LocationUncheckedCreateNestedManyWithoutUserInput
|
|
usageLogs?: Prisma.UsageLogUncheckedCreateNestedManyWithoutUserInput
|
|
tags?: Prisma.TagUncheckedCreateNestedManyWithoutUserInput
|
|
settings?: Prisma.UserSettingsUncheckedCreateNestedOneWithoutUserInput
|
|
}
|
|
|
|
export type UserCreateOrConnectWithoutVendorsInput = {
|
|
where: Prisma.UserWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.UserCreateWithoutVendorsInput, Prisma.UserUncheckedCreateWithoutVendorsInput>
|
|
}
|
|
|
|
export type UserUpsertWithoutVendorsInput = {
|
|
update: Prisma.XOR<Prisma.UserUpdateWithoutVendorsInput, Prisma.UserUncheckedUpdateWithoutVendorsInput>
|
|
create: Prisma.XOR<Prisma.UserCreateWithoutVendorsInput, Prisma.UserUncheckedCreateWithoutVendorsInput>
|
|
where?: Prisma.UserWhereInput
|
|
}
|
|
|
|
export type UserUpdateToOneWithWhereWithoutVendorsInput = {
|
|
where?: Prisma.UserWhereInput
|
|
data: Prisma.XOR<Prisma.UserUpdateWithoutVendorsInput, Prisma.UserUncheckedUpdateWithoutVendorsInput>
|
|
}
|
|
|
|
export type UserUpdateWithoutVendorsInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
emailVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
hashedPassword?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
role?: Prisma.EnumRoleFieldUpdateOperationsInput | $Enums.Role
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput
|
|
sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput
|
|
filaments?: Prisma.FilamentUpdateManyWithoutUserNestedInput
|
|
resins?: Prisma.ResinUpdateManyWithoutUserNestedInput
|
|
paints?: Prisma.PaintUpdateManyWithoutUserNestedInput
|
|
locations?: Prisma.LocationUpdateManyWithoutUserNestedInput
|
|
usageLogs?: Prisma.UsageLogUpdateManyWithoutUserNestedInput
|
|
tags?: Prisma.TagUpdateManyWithoutUserNestedInput
|
|
settings?: Prisma.UserSettingsUpdateOneWithoutUserNestedInput
|
|
}
|
|
|
|
export type UserUncheckedUpdateWithoutVendorsInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
emailVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
hashedPassword?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
role?: Prisma.EnumRoleFieldUpdateOperationsInput | $Enums.Role
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput
|
|
sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput
|
|
filaments?: Prisma.FilamentUncheckedUpdateManyWithoutUserNestedInput
|
|
resins?: Prisma.ResinUncheckedUpdateManyWithoutUserNestedInput
|
|
paints?: Prisma.PaintUncheckedUpdateManyWithoutUserNestedInput
|
|
locations?: Prisma.LocationUncheckedUpdateManyWithoutUserNestedInput
|
|
usageLogs?: Prisma.UsageLogUncheckedUpdateManyWithoutUserNestedInput
|
|
tags?: Prisma.TagUncheckedUpdateManyWithoutUserNestedInput
|
|
settings?: Prisma.UserSettingsUncheckedUpdateOneWithoutUserNestedInput
|
|
}
|
|
|
|
export type UserCreateWithoutLocationsInput = {
|
|
id?: string
|
|
name?: string | null
|
|
email?: string | null
|
|
emailVerified?: Date | string | null
|
|
image?: string | null
|
|
hashedPassword?: string | null
|
|
role?: $Enums.Role
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
accounts?: Prisma.AccountCreateNestedManyWithoutUserInput
|
|
sessions?: Prisma.SessionCreateNestedManyWithoutUserInput
|
|
filaments?: Prisma.FilamentCreateNestedManyWithoutUserInput
|
|
resins?: Prisma.ResinCreateNestedManyWithoutUserInput
|
|
paints?: Prisma.PaintCreateNestedManyWithoutUserInput
|
|
vendors?: Prisma.VendorCreateNestedManyWithoutUserInput
|
|
usageLogs?: Prisma.UsageLogCreateNestedManyWithoutUserInput
|
|
tags?: Prisma.TagCreateNestedManyWithoutUserInput
|
|
settings?: Prisma.UserSettingsCreateNestedOneWithoutUserInput
|
|
}
|
|
|
|
export type UserUncheckedCreateWithoutLocationsInput = {
|
|
id?: string
|
|
name?: string | null
|
|
email?: string | null
|
|
emailVerified?: Date | string | null
|
|
image?: string | null
|
|
hashedPassword?: string | null
|
|
role?: $Enums.Role
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput
|
|
sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput
|
|
filaments?: Prisma.FilamentUncheckedCreateNestedManyWithoutUserInput
|
|
resins?: Prisma.ResinUncheckedCreateNestedManyWithoutUserInput
|
|
paints?: Prisma.PaintUncheckedCreateNestedManyWithoutUserInput
|
|
vendors?: Prisma.VendorUncheckedCreateNestedManyWithoutUserInput
|
|
usageLogs?: Prisma.UsageLogUncheckedCreateNestedManyWithoutUserInput
|
|
tags?: Prisma.TagUncheckedCreateNestedManyWithoutUserInput
|
|
settings?: Prisma.UserSettingsUncheckedCreateNestedOneWithoutUserInput
|
|
}
|
|
|
|
export type UserCreateOrConnectWithoutLocationsInput = {
|
|
where: Prisma.UserWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.UserCreateWithoutLocationsInput, Prisma.UserUncheckedCreateWithoutLocationsInput>
|
|
}
|
|
|
|
export type UserUpsertWithoutLocationsInput = {
|
|
update: Prisma.XOR<Prisma.UserUpdateWithoutLocationsInput, Prisma.UserUncheckedUpdateWithoutLocationsInput>
|
|
create: Prisma.XOR<Prisma.UserCreateWithoutLocationsInput, Prisma.UserUncheckedCreateWithoutLocationsInput>
|
|
where?: Prisma.UserWhereInput
|
|
}
|
|
|
|
export type UserUpdateToOneWithWhereWithoutLocationsInput = {
|
|
where?: Prisma.UserWhereInput
|
|
data: Prisma.XOR<Prisma.UserUpdateWithoutLocationsInput, Prisma.UserUncheckedUpdateWithoutLocationsInput>
|
|
}
|
|
|
|
export type UserUpdateWithoutLocationsInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
emailVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
hashedPassword?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
role?: Prisma.EnumRoleFieldUpdateOperationsInput | $Enums.Role
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput
|
|
sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput
|
|
filaments?: Prisma.FilamentUpdateManyWithoutUserNestedInput
|
|
resins?: Prisma.ResinUpdateManyWithoutUserNestedInput
|
|
paints?: Prisma.PaintUpdateManyWithoutUserNestedInput
|
|
vendors?: Prisma.VendorUpdateManyWithoutUserNestedInput
|
|
usageLogs?: Prisma.UsageLogUpdateManyWithoutUserNestedInput
|
|
tags?: Prisma.TagUpdateManyWithoutUserNestedInput
|
|
settings?: Prisma.UserSettingsUpdateOneWithoutUserNestedInput
|
|
}
|
|
|
|
export type UserUncheckedUpdateWithoutLocationsInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
emailVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
hashedPassword?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
role?: Prisma.EnumRoleFieldUpdateOperationsInput | $Enums.Role
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput
|
|
sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput
|
|
filaments?: Prisma.FilamentUncheckedUpdateManyWithoutUserNestedInput
|
|
resins?: Prisma.ResinUncheckedUpdateManyWithoutUserNestedInput
|
|
paints?: Prisma.PaintUncheckedUpdateManyWithoutUserNestedInput
|
|
vendors?: Prisma.VendorUncheckedUpdateManyWithoutUserNestedInput
|
|
usageLogs?: Prisma.UsageLogUncheckedUpdateManyWithoutUserNestedInput
|
|
tags?: Prisma.TagUncheckedUpdateManyWithoutUserNestedInput
|
|
settings?: Prisma.UserSettingsUncheckedUpdateOneWithoutUserNestedInput
|
|
}
|
|
|
|
export type UserCreateWithoutFilamentsInput = {
|
|
id?: string
|
|
name?: string | null
|
|
email?: string | null
|
|
emailVerified?: Date | string | null
|
|
image?: string | null
|
|
hashedPassword?: string | null
|
|
role?: $Enums.Role
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
accounts?: Prisma.AccountCreateNestedManyWithoutUserInput
|
|
sessions?: Prisma.SessionCreateNestedManyWithoutUserInput
|
|
resins?: Prisma.ResinCreateNestedManyWithoutUserInput
|
|
paints?: Prisma.PaintCreateNestedManyWithoutUserInput
|
|
vendors?: Prisma.VendorCreateNestedManyWithoutUserInput
|
|
locations?: Prisma.LocationCreateNestedManyWithoutUserInput
|
|
usageLogs?: Prisma.UsageLogCreateNestedManyWithoutUserInput
|
|
tags?: Prisma.TagCreateNestedManyWithoutUserInput
|
|
settings?: Prisma.UserSettingsCreateNestedOneWithoutUserInput
|
|
}
|
|
|
|
export type UserUncheckedCreateWithoutFilamentsInput = {
|
|
id?: string
|
|
name?: string | null
|
|
email?: string | null
|
|
emailVerified?: Date | string | null
|
|
image?: string | null
|
|
hashedPassword?: string | null
|
|
role?: $Enums.Role
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput
|
|
sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput
|
|
resins?: Prisma.ResinUncheckedCreateNestedManyWithoutUserInput
|
|
paints?: Prisma.PaintUncheckedCreateNestedManyWithoutUserInput
|
|
vendors?: Prisma.VendorUncheckedCreateNestedManyWithoutUserInput
|
|
locations?: Prisma.LocationUncheckedCreateNestedManyWithoutUserInput
|
|
usageLogs?: Prisma.UsageLogUncheckedCreateNestedManyWithoutUserInput
|
|
tags?: Prisma.TagUncheckedCreateNestedManyWithoutUserInput
|
|
settings?: Prisma.UserSettingsUncheckedCreateNestedOneWithoutUserInput
|
|
}
|
|
|
|
export type UserCreateOrConnectWithoutFilamentsInput = {
|
|
where: Prisma.UserWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.UserCreateWithoutFilamentsInput, Prisma.UserUncheckedCreateWithoutFilamentsInput>
|
|
}
|
|
|
|
export type UserUpsertWithoutFilamentsInput = {
|
|
update: Prisma.XOR<Prisma.UserUpdateWithoutFilamentsInput, Prisma.UserUncheckedUpdateWithoutFilamentsInput>
|
|
create: Prisma.XOR<Prisma.UserCreateWithoutFilamentsInput, Prisma.UserUncheckedCreateWithoutFilamentsInput>
|
|
where?: Prisma.UserWhereInput
|
|
}
|
|
|
|
export type UserUpdateToOneWithWhereWithoutFilamentsInput = {
|
|
where?: Prisma.UserWhereInput
|
|
data: Prisma.XOR<Prisma.UserUpdateWithoutFilamentsInput, Prisma.UserUncheckedUpdateWithoutFilamentsInput>
|
|
}
|
|
|
|
export type UserUpdateWithoutFilamentsInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
emailVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
hashedPassword?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
role?: Prisma.EnumRoleFieldUpdateOperationsInput | $Enums.Role
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput
|
|
sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput
|
|
resins?: Prisma.ResinUpdateManyWithoutUserNestedInput
|
|
paints?: Prisma.PaintUpdateManyWithoutUserNestedInput
|
|
vendors?: Prisma.VendorUpdateManyWithoutUserNestedInput
|
|
locations?: Prisma.LocationUpdateManyWithoutUserNestedInput
|
|
usageLogs?: Prisma.UsageLogUpdateManyWithoutUserNestedInput
|
|
tags?: Prisma.TagUpdateManyWithoutUserNestedInput
|
|
settings?: Prisma.UserSettingsUpdateOneWithoutUserNestedInput
|
|
}
|
|
|
|
export type UserUncheckedUpdateWithoutFilamentsInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
emailVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
hashedPassword?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
role?: Prisma.EnumRoleFieldUpdateOperationsInput | $Enums.Role
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput
|
|
sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput
|
|
resins?: Prisma.ResinUncheckedUpdateManyWithoutUserNestedInput
|
|
paints?: Prisma.PaintUncheckedUpdateManyWithoutUserNestedInput
|
|
vendors?: Prisma.VendorUncheckedUpdateManyWithoutUserNestedInput
|
|
locations?: Prisma.LocationUncheckedUpdateManyWithoutUserNestedInput
|
|
usageLogs?: Prisma.UsageLogUncheckedUpdateManyWithoutUserNestedInput
|
|
tags?: Prisma.TagUncheckedUpdateManyWithoutUserNestedInput
|
|
settings?: Prisma.UserSettingsUncheckedUpdateOneWithoutUserNestedInput
|
|
}
|
|
|
|
export type UserCreateWithoutResinsInput = {
|
|
id?: string
|
|
name?: string | null
|
|
email?: string | null
|
|
emailVerified?: Date | string | null
|
|
image?: string | null
|
|
hashedPassword?: string | null
|
|
role?: $Enums.Role
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
accounts?: Prisma.AccountCreateNestedManyWithoutUserInput
|
|
sessions?: Prisma.SessionCreateNestedManyWithoutUserInput
|
|
filaments?: Prisma.FilamentCreateNestedManyWithoutUserInput
|
|
paints?: Prisma.PaintCreateNestedManyWithoutUserInput
|
|
vendors?: Prisma.VendorCreateNestedManyWithoutUserInput
|
|
locations?: Prisma.LocationCreateNestedManyWithoutUserInput
|
|
usageLogs?: Prisma.UsageLogCreateNestedManyWithoutUserInput
|
|
tags?: Prisma.TagCreateNestedManyWithoutUserInput
|
|
settings?: Prisma.UserSettingsCreateNestedOneWithoutUserInput
|
|
}
|
|
|
|
export type UserUncheckedCreateWithoutResinsInput = {
|
|
id?: string
|
|
name?: string | null
|
|
email?: string | null
|
|
emailVerified?: Date | string | null
|
|
image?: string | null
|
|
hashedPassword?: string | null
|
|
role?: $Enums.Role
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput
|
|
sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput
|
|
filaments?: Prisma.FilamentUncheckedCreateNestedManyWithoutUserInput
|
|
paints?: Prisma.PaintUncheckedCreateNestedManyWithoutUserInput
|
|
vendors?: Prisma.VendorUncheckedCreateNestedManyWithoutUserInput
|
|
locations?: Prisma.LocationUncheckedCreateNestedManyWithoutUserInput
|
|
usageLogs?: Prisma.UsageLogUncheckedCreateNestedManyWithoutUserInput
|
|
tags?: Prisma.TagUncheckedCreateNestedManyWithoutUserInput
|
|
settings?: Prisma.UserSettingsUncheckedCreateNestedOneWithoutUserInput
|
|
}
|
|
|
|
export type UserCreateOrConnectWithoutResinsInput = {
|
|
where: Prisma.UserWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.UserCreateWithoutResinsInput, Prisma.UserUncheckedCreateWithoutResinsInput>
|
|
}
|
|
|
|
export type UserUpsertWithoutResinsInput = {
|
|
update: Prisma.XOR<Prisma.UserUpdateWithoutResinsInput, Prisma.UserUncheckedUpdateWithoutResinsInput>
|
|
create: Prisma.XOR<Prisma.UserCreateWithoutResinsInput, Prisma.UserUncheckedCreateWithoutResinsInput>
|
|
where?: Prisma.UserWhereInput
|
|
}
|
|
|
|
export type UserUpdateToOneWithWhereWithoutResinsInput = {
|
|
where?: Prisma.UserWhereInput
|
|
data: Prisma.XOR<Prisma.UserUpdateWithoutResinsInput, Prisma.UserUncheckedUpdateWithoutResinsInput>
|
|
}
|
|
|
|
export type UserUpdateWithoutResinsInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
emailVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
hashedPassword?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
role?: Prisma.EnumRoleFieldUpdateOperationsInput | $Enums.Role
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput
|
|
sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput
|
|
filaments?: Prisma.FilamentUpdateManyWithoutUserNestedInput
|
|
paints?: Prisma.PaintUpdateManyWithoutUserNestedInput
|
|
vendors?: Prisma.VendorUpdateManyWithoutUserNestedInput
|
|
locations?: Prisma.LocationUpdateManyWithoutUserNestedInput
|
|
usageLogs?: Prisma.UsageLogUpdateManyWithoutUserNestedInput
|
|
tags?: Prisma.TagUpdateManyWithoutUserNestedInput
|
|
settings?: Prisma.UserSettingsUpdateOneWithoutUserNestedInput
|
|
}
|
|
|
|
export type UserUncheckedUpdateWithoutResinsInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
emailVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
hashedPassword?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
role?: Prisma.EnumRoleFieldUpdateOperationsInput | $Enums.Role
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput
|
|
sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput
|
|
filaments?: Prisma.FilamentUncheckedUpdateManyWithoutUserNestedInput
|
|
paints?: Prisma.PaintUncheckedUpdateManyWithoutUserNestedInput
|
|
vendors?: Prisma.VendorUncheckedUpdateManyWithoutUserNestedInput
|
|
locations?: Prisma.LocationUncheckedUpdateManyWithoutUserNestedInput
|
|
usageLogs?: Prisma.UsageLogUncheckedUpdateManyWithoutUserNestedInput
|
|
tags?: Prisma.TagUncheckedUpdateManyWithoutUserNestedInput
|
|
settings?: Prisma.UserSettingsUncheckedUpdateOneWithoutUserNestedInput
|
|
}
|
|
|
|
export type UserCreateWithoutPaintsInput = {
|
|
id?: string
|
|
name?: string | null
|
|
email?: string | null
|
|
emailVerified?: Date | string | null
|
|
image?: string | null
|
|
hashedPassword?: string | null
|
|
role?: $Enums.Role
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
accounts?: Prisma.AccountCreateNestedManyWithoutUserInput
|
|
sessions?: Prisma.SessionCreateNestedManyWithoutUserInput
|
|
filaments?: Prisma.FilamentCreateNestedManyWithoutUserInput
|
|
resins?: Prisma.ResinCreateNestedManyWithoutUserInput
|
|
vendors?: Prisma.VendorCreateNestedManyWithoutUserInput
|
|
locations?: Prisma.LocationCreateNestedManyWithoutUserInput
|
|
usageLogs?: Prisma.UsageLogCreateNestedManyWithoutUserInput
|
|
tags?: Prisma.TagCreateNestedManyWithoutUserInput
|
|
settings?: Prisma.UserSettingsCreateNestedOneWithoutUserInput
|
|
}
|
|
|
|
export type UserUncheckedCreateWithoutPaintsInput = {
|
|
id?: string
|
|
name?: string | null
|
|
email?: string | null
|
|
emailVerified?: Date | string | null
|
|
image?: string | null
|
|
hashedPassword?: string | null
|
|
role?: $Enums.Role
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput
|
|
sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput
|
|
filaments?: Prisma.FilamentUncheckedCreateNestedManyWithoutUserInput
|
|
resins?: Prisma.ResinUncheckedCreateNestedManyWithoutUserInput
|
|
vendors?: Prisma.VendorUncheckedCreateNestedManyWithoutUserInput
|
|
locations?: Prisma.LocationUncheckedCreateNestedManyWithoutUserInput
|
|
usageLogs?: Prisma.UsageLogUncheckedCreateNestedManyWithoutUserInput
|
|
tags?: Prisma.TagUncheckedCreateNestedManyWithoutUserInput
|
|
settings?: Prisma.UserSettingsUncheckedCreateNestedOneWithoutUserInput
|
|
}
|
|
|
|
export type UserCreateOrConnectWithoutPaintsInput = {
|
|
where: Prisma.UserWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.UserCreateWithoutPaintsInput, Prisma.UserUncheckedCreateWithoutPaintsInput>
|
|
}
|
|
|
|
export type UserUpsertWithoutPaintsInput = {
|
|
update: Prisma.XOR<Prisma.UserUpdateWithoutPaintsInput, Prisma.UserUncheckedUpdateWithoutPaintsInput>
|
|
create: Prisma.XOR<Prisma.UserCreateWithoutPaintsInput, Prisma.UserUncheckedCreateWithoutPaintsInput>
|
|
where?: Prisma.UserWhereInput
|
|
}
|
|
|
|
export type UserUpdateToOneWithWhereWithoutPaintsInput = {
|
|
where?: Prisma.UserWhereInput
|
|
data: Prisma.XOR<Prisma.UserUpdateWithoutPaintsInput, Prisma.UserUncheckedUpdateWithoutPaintsInput>
|
|
}
|
|
|
|
export type UserUpdateWithoutPaintsInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
emailVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
hashedPassword?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
role?: Prisma.EnumRoleFieldUpdateOperationsInput | $Enums.Role
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput
|
|
sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput
|
|
filaments?: Prisma.FilamentUpdateManyWithoutUserNestedInput
|
|
resins?: Prisma.ResinUpdateManyWithoutUserNestedInput
|
|
vendors?: Prisma.VendorUpdateManyWithoutUserNestedInput
|
|
locations?: Prisma.LocationUpdateManyWithoutUserNestedInput
|
|
usageLogs?: Prisma.UsageLogUpdateManyWithoutUserNestedInput
|
|
tags?: Prisma.TagUpdateManyWithoutUserNestedInput
|
|
settings?: Prisma.UserSettingsUpdateOneWithoutUserNestedInput
|
|
}
|
|
|
|
export type UserUncheckedUpdateWithoutPaintsInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
emailVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
hashedPassword?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
role?: Prisma.EnumRoleFieldUpdateOperationsInput | $Enums.Role
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput
|
|
sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput
|
|
filaments?: Prisma.FilamentUncheckedUpdateManyWithoutUserNestedInput
|
|
resins?: Prisma.ResinUncheckedUpdateManyWithoutUserNestedInput
|
|
vendors?: Prisma.VendorUncheckedUpdateManyWithoutUserNestedInput
|
|
locations?: Prisma.LocationUncheckedUpdateManyWithoutUserNestedInput
|
|
usageLogs?: Prisma.UsageLogUncheckedUpdateManyWithoutUserNestedInput
|
|
tags?: Prisma.TagUncheckedUpdateManyWithoutUserNestedInput
|
|
settings?: Prisma.UserSettingsUncheckedUpdateOneWithoutUserNestedInput
|
|
}
|
|
|
|
export type UserCreateWithoutTagsInput = {
|
|
id?: string
|
|
name?: string | null
|
|
email?: string | null
|
|
emailVerified?: Date | string | null
|
|
image?: string | null
|
|
hashedPassword?: string | null
|
|
role?: $Enums.Role
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
accounts?: Prisma.AccountCreateNestedManyWithoutUserInput
|
|
sessions?: Prisma.SessionCreateNestedManyWithoutUserInput
|
|
filaments?: Prisma.FilamentCreateNestedManyWithoutUserInput
|
|
resins?: Prisma.ResinCreateNestedManyWithoutUserInput
|
|
paints?: Prisma.PaintCreateNestedManyWithoutUserInput
|
|
vendors?: Prisma.VendorCreateNestedManyWithoutUserInput
|
|
locations?: Prisma.LocationCreateNestedManyWithoutUserInput
|
|
usageLogs?: Prisma.UsageLogCreateNestedManyWithoutUserInput
|
|
settings?: Prisma.UserSettingsCreateNestedOneWithoutUserInput
|
|
}
|
|
|
|
export type UserUncheckedCreateWithoutTagsInput = {
|
|
id?: string
|
|
name?: string | null
|
|
email?: string | null
|
|
emailVerified?: Date | string | null
|
|
image?: string | null
|
|
hashedPassword?: string | null
|
|
role?: $Enums.Role
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput
|
|
sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput
|
|
filaments?: Prisma.FilamentUncheckedCreateNestedManyWithoutUserInput
|
|
resins?: Prisma.ResinUncheckedCreateNestedManyWithoutUserInput
|
|
paints?: Prisma.PaintUncheckedCreateNestedManyWithoutUserInput
|
|
vendors?: Prisma.VendorUncheckedCreateNestedManyWithoutUserInput
|
|
locations?: Prisma.LocationUncheckedCreateNestedManyWithoutUserInput
|
|
usageLogs?: Prisma.UsageLogUncheckedCreateNestedManyWithoutUserInput
|
|
settings?: Prisma.UserSettingsUncheckedCreateNestedOneWithoutUserInput
|
|
}
|
|
|
|
export type UserCreateOrConnectWithoutTagsInput = {
|
|
where: Prisma.UserWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.UserCreateWithoutTagsInput, Prisma.UserUncheckedCreateWithoutTagsInput>
|
|
}
|
|
|
|
export type UserUpsertWithoutTagsInput = {
|
|
update: Prisma.XOR<Prisma.UserUpdateWithoutTagsInput, Prisma.UserUncheckedUpdateWithoutTagsInput>
|
|
create: Prisma.XOR<Prisma.UserCreateWithoutTagsInput, Prisma.UserUncheckedCreateWithoutTagsInput>
|
|
where?: Prisma.UserWhereInput
|
|
}
|
|
|
|
export type UserUpdateToOneWithWhereWithoutTagsInput = {
|
|
where?: Prisma.UserWhereInput
|
|
data: Prisma.XOR<Prisma.UserUpdateWithoutTagsInput, Prisma.UserUncheckedUpdateWithoutTagsInput>
|
|
}
|
|
|
|
export type UserUpdateWithoutTagsInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
emailVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
hashedPassword?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
role?: Prisma.EnumRoleFieldUpdateOperationsInput | $Enums.Role
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput
|
|
sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput
|
|
filaments?: Prisma.FilamentUpdateManyWithoutUserNestedInput
|
|
resins?: Prisma.ResinUpdateManyWithoutUserNestedInput
|
|
paints?: Prisma.PaintUpdateManyWithoutUserNestedInput
|
|
vendors?: Prisma.VendorUpdateManyWithoutUserNestedInput
|
|
locations?: Prisma.LocationUpdateManyWithoutUserNestedInput
|
|
usageLogs?: Prisma.UsageLogUpdateManyWithoutUserNestedInput
|
|
settings?: Prisma.UserSettingsUpdateOneWithoutUserNestedInput
|
|
}
|
|
|
|
export type UserUncheckedUpdateWithoutTagsInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
emailVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
hashedPassword?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
role?: Prisma.EnumRoleFieldUpdateOperationsInput | $Enums.Role
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput
|
|
sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput
|
|
filaments?: Prisma.FilamentUncheckedUpdateManyWithoutUserNestedInput
|
|
resins?: Prisma.ResinUncheckedUpdateManyWithoutUserNestedInput
|
|
paints?: Prisma.PaintUncheckedUpdateManyWithoutUserNestedInput
|
|
vendors?: Prisma.VendorUncheckedUpdateManyWithoutUserNestedInput
|
|
locations?: Prisma.LocationUncheckedUpdateManyWithoutUserNestedInput
|
|
usageLogs?: Prisma.UsageLogUncheckedUpdateManyWithoutUserNestedInput
|
|
settings?: Prisma.UserSettingsUncheckedUpdateOneWithoutUserNestedInput
|
|
}
|
|
|
|
export type UserCreateWithoutUsageLogsInput = {
|
|
id?: string
|
|
name?: string | null
|
|
email?: string | null
|
|
emailVerified?: Date | string | null
|
|
image?: string | null
|
|
hashedPassword?: string | null
|
|
role?: $Enums.Role
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
accounts?: Prisma.AccountCreateNestedManyWithoutUserInput
|
|
sessions?: Prisma.SessionCreateNestedManyWithoutUserInput
|
|
filaments?: Prisma.FilamentCreateNestedManyWithoutUserInput
|
|
resins?: Prisma.ResinCreateNestedManyWithoutUserInput
|
|
paints?: Prisma.PaintCreateNestedManyWithoutUserInput
|
|
vendors?: Prisma.VendorCreateNestedManyWithoutUserInput
|
|
locations?: Prisma.LocationCreateNestedManyWithoutUserInput
|
|
tags?: Prisma.TagCreateNestedManyWithoutUserInput
|
|
settings?: Prisma.UserSettingsCreateNestedOneWithoutUserInput
|
|
}
|
|
|
|
export type UserUncheckedCreateWithoutUsageLogsInput = {
|
|
id?: string
|
|
name?: string | null
|
|
email?: string | null
|
|
emailVerified?: Date | string | null
|
|
image?: string | null
|
|
hashedPassword?: string | null
|
|
role?: $Enums.Role
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput
|
|
sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput
|
|
filaments?: Prisma.FilamentUncheckedCreateNestedManyWithoutUserInput
|
|
resins?: Prisma.ResinUncheckedCreateNestedManyWithoutUserInput
|
|
paints?: Prisma.PaintUncheckedCreateNestedManyWithoutUserInput
|
|
vendors?: Prisma.VendorUncheckedCreateNestedManyWithoutUserInput
|
|
locations?: Prisma.LocationUncheckedCreateNestedManyWithoutUserInput
|
|
tags?: Prisma.TagUncheckedCreateNestedManyWithoutUserInput
|
|
settings?: Prisma.UserSettingsUncheckedCreateNestedOneWithoutUserInput
|
|
}
|
|
|
|
export type UserCreateOrConnectWithoutUsageLogsInput = {
|
|
where: Prisma.UserWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.UserCreateWithoutUsageLogsInput, Prisma.UserUncheckedCreateWithoutUsageLogsInput>
|
|
}
|
|
|
|
export type UserUpsertWithoutUsageLogsInput = {
|
|
update: Prisma.XOR<Prisma.UserUpdateWithoutUsageLogsInput, Prisma.UserUncheckedUpdateWithoutUsageLogsInput>
|
|
create: Prisma.XOR<Prisma.UserCreateWithoutUsageLogsInput, Prisma.UserUncheckedCreateWithoutUsageLogsInput>
|
|
where?: Prisma.UserWhereInput
|
|
}
|
|
|
|
export type UserUpdateToOneWithWhereWithoutUsageLogsInput = {
|
|
where?: Prisma.UserWhereInput
|
|
data: Prisma.XOR<Prisma.UserUpdateWithoutUsageLogsInput, Prisma.UserUncheckedUpdateWithoutUsageLogsInput>
|
|
}
|
|
|
|
export type UserUpdateWithoutUsageLogsInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
emailVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
hashedPassword?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
role?: Prisma.EnumRoleFieldUpdateOperationsInput | $Enums.Role
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput
|
|
sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput
|
|
filaments?: Prisma.FilamentUpdateManyWithoutUserNestedInput
|
|
resins?: Prisma.ResinUpdateManyWithoutUserNestedInput
|
|
paints?: Prisma.PaintUpdateManyWithoutUserNestedInput
|
|
vendors?: Prisma.VendorUpdateManyWithoutUserNestedInput
|
|
locations?: Prisma.LocationUpdateManyWithoutUserNestedInput
|
|
tags?: Prisma.TagUpdateManyWithoutUserNestedInput
|
|
settings?: Prisma.UserSettingsUpdateOneWithoutUserNestedInput
|
|
}
|
|
|
|
export type UserUncheckedUpdateWithoutUsageLogsInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
emailVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
hashedPassword?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
role?: Prisma.EnumRoleFieldUpdateOperationsInput | $Enums.Role
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput
|
|
sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput
|
|
filaments?: Prisma.FilamentUncheckedUpdateManyWithoutUserNestedInput
|
|
resins?: Prisma.ResinUncheckedUpdateManyWithoutUserNestedInput
|
|
paints?: Prisma.PaintUncheckedUpdateManyWithoutUserNestedInput
|
|
vendors?: Prisma.VendorUncheckedUpdateManyWithoutUserNestedInput
|
|
locations?: Prisma.LocationUncheckedUpdateManyWithoutUserNestedInput
|
|
tags?: Prisma.TagUncheckedUpdateManyWithoutUserNestedInput
|
|
settings?: Prisma.UserSettingsUncheckedUpdateOneWithoutUserNestedInput
|
|
}
|
|
|
|
export type UserCreateWithoutSettingsInput = {
|
|
id?: string
|
|
name?: string | null
|
|
email?: string | null
|
|
emailVerified?: Date | string | null
|
|
image?: string | null
|
|
hashedPassword?: string | null
|
|
role?: $Enums.Role
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
accounts?: Prisma.AccountCreateNestedManyWithoutUserInput
|
|
sessions?: Prisma.SessionCreateNestedManyWithoutUserInput
|
|
filaments?: Prisma.FilamentCreateNestedManyWithoutUserInput
|
|
resins?: Prisma.ResinCreateNestedManyWithoutUserInput
|
|
paints?: Prisma.PaintCreateNestedManyWithoutUserInput
|
|
vendors?: Prisma.VendorCreateNestedManyWithoutUserInput
|
|
locations?: Prisma.LocationCreateNestedManyWithoutUserInput
|
|
usageLogs?: Prisma.UsageLogCreateNestedManyWithoutUserInput
|
|
tags?: Prisma.TagCreateNestedManyWithoutUserInput
|
|
}
|
|
|
|
export type UserUncheckedCreateWithoutSettingsInput = {
|
|
id?: string
|
|
name?: string | null
|
|
email?: string | null
|
|
emailVerified?: Date | string | null
|
|
image?: string | null
|
|
hashedPassword?: string | null
|
|
role?: $Enums.Role
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput
|
|
sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput
|
|
filaments?: Prisma.FilamentUncheckedCreateNestedManyWithoutUserInput
|
|
resins?: Prisma.ResinUncheckedCreateNestedManyWithoutUserInput
|
|
paints?: Prisma.PaintUncheckedCreateNestedManyWithoutUserInput
|
|
vendors?: Prisma.VendorUncheckedCreateNestedManyWithoutUserInput
|
|
locations?: Prisma.LocationUncheckedCreateNestedManyWithoutUserInput
|
|
usageLogs?: Prisma.UsageLogUncheckedCreateNestedManyWithoutUserInput
|
|
tags?: Prisma.TagUncheckedCreateNestedManyWithoutUserInput
|
|
}
|
|
|
|
export type UserCreateOrConnectWithoutSettingsInput = {
|
|
where: Prisma.UserWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.UserCreateWithoutSettingsInput, Prisma.UserUncheckedCreateWithoutSettingsInput>
|
|
}
|
|
|
|
export type UserUpsertWithoutSettingsInput = {
|
|
update: Prisma.XOR<Prisma.UserUpdateWithoutSettingsInput, Prisma.UserUncheckedUpdateWithoutSettingsInput>
|
|
create: Prisma.XOR<Prisma.UserCreateWithoutSettingsInput, Prisma.UserUncheckedCreateWithoutSettingsInput>
|
|
where?: Prisma.UserWhereInput
|
|
}
|
|
|
|
export type UserUpdateToOneWithWhereWithoutSettingsInput = {
|
|
where?: Prisma.UserWhereInput
|
|
data: Prisma.XOR<Prisma.UserUpdateWithoutSettingsInput, Prisma.UserUncheckedUpdateWithoutSettingsInput>
|
|
}
|
|
|
|
export type UserUpdateWithoutSettingsInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
emailVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
hashedPassword?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
role?: Prisma.EnumRoleFieldUpdateOperationsInput | $Enums.Role
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput
|
|
sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput
|
|
filaments?: Prisma.FilamentUpdateManyWithoutUserNestedInput
|
|
resins?: Prisma.ResinUpdateManyWithoutUserNestedInput
|
|
paints?: Prisma.PaintUpdateManyWithoutUserNestedInput
|
|
vendors?: Prisma.VendorUpdateManyWithoutUserNestedInput
|
|
locations?: Prisma.LocationUpdateManyWithoutUserNestedInput
|
|
usageLogs?: Prisma.UsageLogUpdateManyWithoutUserNestedInput
|
|
tags?: Prisma.TagUpdateManyWithoutUserNestedInput
|
|
}
|
|
|
|
export type UserUncheckedUpdateWithoutSettingsInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
emailVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
hashedPassword?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
role?: Prisma.EnumRoleFieldUpdateOperationsInput | $Enums.Role
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput
|
|
sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput
|
|
filaments?: Prisma.FilamentUncheckedUpdateManyWithoutUserNestedInput
|
|
resins?: Prisma.ResinUncheckedUpdateManyWithoutUserNestedInput
|
|
paints?: Prisma.PaintUncheckedUpdateManyWithoutUserNestedInput
|
|
vendors?: Prisma.VendorUncheckedUpdateManyWithoutUserNestedInput
|
|
locations?: Prisma.LocationUncheckedUpdateManyWithoutUserNestedInput
|
|
usageLogs?: Prisma.UsageLogUncheckedUpdateManyWithoutUserNestedInput
|
|
tags?: Prisma.TagUncheckedUpdateManyWithoutUserNestedInput
|
|
}
|
|
|
|
|
|
/**
|
|
* Count Type UserCountOutputType
|
|
*/
|
|
|
|
export type UserCountOutputType = {
|
|
accounts: number
|
|
sessions: number
|
|
filaments: number
|
|
resins: number
|
|
paints: number
|
|
vendors: number
|
|
locations: number
|
|
usageLogs: number
|
|
tags: number
|
|
}
|
|
|
|
export type UserCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
accounts?: boolean | UserCountOutputTypeCountAccountsArgs
|
|
sessions?: boolean | UserCountOutputTypeCountSessionsArgs
|
|
filaments?: boolean | UserCountOutputTypeCountFilamentsArgs
|
|
resins?: boolean | UserCountOutputTypeCountResinsArgs
|
|
paints?: boolean | UserCountOutputTypeCountPaintsArgs
|
|
vendors?: boolean | UserCountOutputTypeCountVendorsArgs
|
|
locations?: boolean | UserCountOutputTypeCountLocationsArgs
|
|
usageLogs?: boolean | UserCountOutputTypeCountUsageLogsArgs
|
|
tags?: boolean | UserCountOutputTypeCountTagsArgs
|
|
}
|
|
|
|
/**
|
|
* UserCountOutputType without action
|
|
*/
|
|
export type UserCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the UserCountOutputType
|
|
*/
|
|
select?: Prisma.UserCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* UserCountOutputType without action
|
|
*/
|
|
export type UserCountOutputTypeCountAccountsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.AccountWhereInput
|
|
}
|
|
|
|
/**
|
|
* UserCountOutputType without action
|
|
*/
|
|
export type UserCountOutputTypeCountSessionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.SessionWhereInput
|
|
}
|
|
|
|
/**
|
|
* UserCountOutputType without action
|
|
*/
|
|
export type UserCountOutputTypeCountFilamentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.FilamentWhereInput
|
|
}
|
|
|
|
/**
|
|
* UserCountOutputType without action
|
|
*/
|
|
export type UserCountOutputTypeCountResinsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.ResinWhereInput
|
|
}
|
|
|
|
/**
|
|
* UserCountOutputType without action
|
|
*/
|
|
export type UserCountOutputTypeCountPaintsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.PaintWhereInput
|
|
}
|
|
|
|
/**
|
|
* UserCountOutputType without action
|
|
*/
|
|
export type UserCountOutputTypeCountVendorsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.VendorWhereInput
|
|
}
|
|
|
|
/**
|
|
* UserCountOutputType without action
|
|
*/
|
|
export type UserCountOutputTypeCountLocationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.LocationWhereInput
|
|
}
|
|
|
|
/**
|
|
* UserCountOutputType without action
|
|
*/
|
|
export type UserCountOutputTypeCountUsageLogsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.UsageLogWhereInput
|
|
}
|
|
|
|
/**
|
|
* UserCountOutputType without action
|
|
*/
|
|
export type UserCountOutputTypeCountTagsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.TagWhereInput
|
|
}
|
|
|
|
|
|
export type UserSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
name?: boolean
|
|
email?: boolean
|
|
emailVerified?: boolean
|
|
image?: boolean
|
|
hashedPassword?: boolean
|
|
role?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
accounts?: boolean | Prisma.User$accountsArgs<ExtArgs>
|
|
sessions?: boolean | Prisma.User$sessionsArgs<ExtArgs>
|
|
filaments?: boolean | Prisma.User$filamentsArgs<ExtArgs>
|
|
resins?: boolean | Prisma.User$resinsArgs<ExtArgs>
|
|
paints?: boolean | Prisma.User$paintsArgs<ExtArgs>
|
|
vendors?: boolean | Prisma.User$vendorsArgs<ExtArgs>
|
|
locations?: boolean | Prisma.User$locationsArgs<ExtArgs>
|
|
usageLogs?: boolean | Prisma.User$usageLogsArgs<ExtArgs>
|
|
tags?: boolean | Prisma.User$tagsArgs<ExtArgs>
|
|
settings?: boolean | Prisma.User$settingsArgs<ExtArgs>
|
|
_count?: boolean | Prisma.UserCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["user"]>
|
|
|
|
export type UserSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
name?: boolean
|
|
email?: boolean
|
|
emailVerified?: boolean
|
|
image?: boolean
|
|
hashedPassword?: boolean
|
|
role?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
}, ExtArgs["result"]["user"]>
|
|
|
|
export type UserSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
name?: boolean
|
|
email?: boolean
|
|
emailVerified?: boolean
|
|
image?: boolean
|
|
hashedPassword?: boolean
|
|
role?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
}, ExtArgs["result"]["user"]>
|
|
|
|
export type UserSelectScalar = {
|
|
id?: boolean
|
|
name?: boolean
|
|
email?: boolean
|
|
emailVerified?: boolean
|
|
image?: boolean
|
|
hashedPassword?: boolean
|
|
role?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
}
|
|
|
|
export type UserOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "email" | "emailVerified" | "image" | "hashedPassword" | "role" | "createdAt" | "updatedAt", ExtArgs["result"]["user"]>
|
|
export type UserInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
accounts?: boolean | Prisma.User$accountsArgs<ExtArgs>
|
|
sessions?: boolean | Prisma.User$sessionsArgs<ExtArgs>
|
|
filaments?: boolean | Prisma.User$filamentsArgs<ExtArgs>
|
|
resins?: boolean | Prisma.User$resinsArgs<ExtArgs>
|
|
paints?: boolean | Prisma.User$paintsArgs<ExtArgs>
|
|
vendors?: boolean | Prisma.User$vendorsArgs<ExtArgs>
|
|
locations?: boolean | Prisma.User$locationsArgs<ExtArgs>
|
|
usageLogs?: boolean | Prisma.User$usageLogsArgs<ExtArgs>
|
|
tags?: boolean | Prisma.User$tagsArgs<ExtArgs>
|
|
settings?: boolean | Prisma.User$settingsArgs<ExtArgs>
|
|
_count?: boolean | Prisma.UserCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
export type UserIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
|
|
export type UserIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
|
|
|
|
export type $UserPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "User"
|
|
objects: {
|
|
accounts: Prisma.$AccountPayload<ExtArgs>[]
|
|
sessions: Prisma.$SessionPayload<ExtArgs>[]
|
|
filaments: Prisma.$FilamentPayload<ExtArgs>[]
|
|
resins: Prisma.$ResinPayload<ExtArgs>[]
|
|
paints: Prisma.$PaintPayload<ExtArgs>[]
|
|
vendors: Prisma.$VendorPayload<ExtArgs>[]
|
|
locations: Prisma.$LocationPayload<ExtArgs>[]
|
|
usageLogs: Prisma.$UsageLogPayload<ExtArgs>[]
|
|
tags: Prisma.$TagPayload<ExtArgs>[]
|
|
settings: Prisma.$UserSettingsPayload<ExtArgs> | null
|
|
}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: string
|
|
name: string | null
|
|
email: string | null
|
|
emailVerified: Date | null
|
|
image: string | null
|
|
hashedPassword: string | null
|
|
role: $Enums.Role
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
}, ExtArgs["result"]["user"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type UserGetPayload<S extends boolean | null | undefined | UserDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$UserPayload, S>
|
|
|
|
export type UserCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<UserFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: UserCountAggregateInputType | true
|
|
}
|
|
|
|
export interface UserDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['User'], meta: { name: 'User' } }
|
|
/**
|
|
* Find zero or one User that matches the filter.
|
|
* @param {UserFindUniqueArgs} args - Arguments to find a User
|
|
* @example
|
|
* // Get one User
|
|
* const user = await prisma.user.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends UserFindUniqueArgs>(args: Prisma.SelectSubset<T, UserFindUniqueArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one User that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {UserFindUniqueOrThrowArgs} args - Arguments to find a User
|
|
* @example
|
|
* // Get one User
|
|
* const user = await prisma.user.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends UserFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, UserFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first User 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 {UserFindFirstArgs} args - Arguments to find a User
|
|
* @example
|
|
* // Get one User
|
|
* const user = await prisma.user.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends UserFindFirstArgs>(args?: Prisma.SelectSubset<T, UserFindFirstArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first User 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 {UserFindFirstOrThrowArgs} args - Arguments to find a User
|
|
* @example
|
|
* // Get one User
|
|
* const user = await prisma.user.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends UserFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, UserFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more Users 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 {UserFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all Users
|
|
* const users = await prisma.user.findMany()
|
|
*
|
|
* // Get first 10 Users
|
|
* const users = await prisma.user.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const userWithIdOnly = await prisma.user.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends UserFindManyArgs>(args?: Prisma.SelectSubset<T, UserFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a User.
|
|
* @param {UserCreateArgs} args - Arguments to create a User.
|
|
* @example
|
|
* // Create one User
|
|
* const User = await prisma.user.create({
|
|
* data: {
|
|
* // ... data to create a User
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends UserCreateArgs>(args: Prisma.SelectSubset<T, UserCreateArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many Users.
|
|
* @param {UserCreateManyArgs} args - Arguments to create many Users.
|
|
* @example
|
|
* // Create many Users
|
|
* const user = await prisma.user.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends UserCreateManyArgs>(args?: Prisma.SelectSubset<T, UserCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create many Users and returns the data saved in the database.
|
|
* @param {UserCreateManyAndReturnArgs} args - Arguments to create many Users.
|
|
* @example
|
|
* // Create many Users
|
|
* const user = await prisma.user.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many Users and only return the `id`
|
|
* const userWithIdOnly = await prisma.user.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 UserCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, UserCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a User.
|
|
* @param {UserDeleteArgs} args - Arguments to delete one User.
|
|
* @example
|
|
* // Delete one User
|
|
* const User = await prisma.user.delete({
|
|
* where: {
|
|
* // ... filter to delete one User
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends UserDeleteArgs>(args: Prisma.SelectSubset<T, UserDeleteArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one User.
|
|
* @param {UserUpdateArgs} args - Arguments to update one User.
|
|
* @example
|
|
* // Update one User
|
|
* const user = await prisma.user.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends UserUpdateArgs>(args: Prisma.SelectSubset<T, UserUpdateArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more Users.
|
|
* @param {UserDeleteManyArgs} args - Arguments to filter Users to delete.
|
|
* @example
|
|
* // Delete a few Users
|
|
* const { count } = await prisma.user.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends UserDeleteManyArgs>(args?: Prisma.SelectSubset<T, UserDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Users.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {UserUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many Users
|
|
* const user = await prisma.user.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends UserUpdateManyArgs>(args: Prisma.SelectSubset<T, UserUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Users and returns the data updated in the database.
|
|
* @param {UserUpdateManyAndReturnArgs} args - Arguments to update many Users.
|
|
* @example
|
|
* // Update many Users
|
|
* const user = await prisma.user.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more Users and only return the `id`
|
|
* const userWithIdOnly = await prisma.user.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 UserUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, UserUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one User.
|
|
* @param {UserUpsertArgs} args - Arguments to update or create a User.
|
|
* @example
|
|
* // Update or create a User
|
|
* const user = await prisma.user.upsert({
|
|
* create: {
|
|
* // ... data to create a User
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the User we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends UserUpsertArgs>(args: Prisma.SelectSubset<T, UserUpsertArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of Users.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {UserCountArgs} args - Arguments to filter Users to count.
|
|
* @example
|
|
* // Count the number of Users
|
|
* const count = await prisma.user.count({
|
|
* where: {
|
|
* // ... the filter for the Users we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends UserCountArgs>(
|
|
args?: Prisma.Subset<T, UserCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], UserCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a User.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {UserAggregateArgs} 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 UserAggregateArgs>(args: Prisma.Subset<T, UserAggregateArgs>): Prisma.PrismaPromise<GetUserAggregateType<T>>
|
|
|
|
/**
|
|
* Group by User.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {UserGroupByArgs} 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 UserGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: UserGroupByArgs['orderBy'] }
|
|
: { orderBy?: UserGroupByArgs['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, UserGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetUserGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the User model
|
|
*/
|
|
readonly fields: UserFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for User.
|
|
* 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__UserClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
accounts<T extends Prisma.User$accountsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$accountsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
sessions<T extends Prisma.User$sessionsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$sessionsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
filaments<T extends Prisma.User$filamentsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$filamentsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$FilamentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
resins<T extends Prisma.User$resinsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$resinsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ResinPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
paints<T extends Prisma.User$paintsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$paintsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PaintPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
vendors<T extends Prisma.User$vendorsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$vendorsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$VendorPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
locations<T extends Prisma.User$locationsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$locationsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$LocationPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
usageLogs<T extends Prisma.User$usageLogsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$usageLogsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UsageLogPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
tags<T extends Prisma.User$tagsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$tagsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TagPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
settings<T extends Prisma.User$settingsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$settingsArgs<ExtArgs>>): Prisma.Prisma__UserSettingsClient<runtime.Types.Result.GetResult<Prisma.$UserSettingsPayload<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 User model
|
|
*/
|
|
export interface UserFieldRefs {
|
|
readonly id: Prisma.FieldRef<"User", 'String'>
|
|
readonly name: Prisma.FieldRef<"User", 'String'>
|
|
readonly email: Prisma.FieldRef<"User", 'String'>
|
|
readonly emailVerified: Prisma.FieldRef<"User", 'DateTime'>
|
|
readonly image: Prisma.FieldRef<"User", 'String'>
|
|
readonly hashedPassword: Prisma.FieldRef<"User", 'String'>
|
|
readonly role: Prisma.FieldRef<"User", 'Role'>
|
|
readonly createdAt: Prisma.FieldRef<"User", 'DateTime'>
|
|
readonly updatedAt: Prisma.FieldRef<"User", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* User findUnique
|
|
*/
|
|
export type UserFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: Prisma.UserSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the User
|
|
*/
|
|
omit?: Prisma.UserOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.UserInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which User to fetch.
|
|
*/
|
|
where: Prisma.UserWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* User findUniqueOrThrow
|
|
*/
|
|
export type UserFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: Prisma.UserSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the User
|
|
*/
|
|
omit?: Prisma.UserOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.UserInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which User to fetch.
|
|
*/
|
|
where: Prisma.UserWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* User findFirst
|
|
*/
|
|
export type UserFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: Prisma.UserSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the User
|
|
*/
|
|
omit?: Prisma.UserOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.UserInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which User to fetch.
|
|
*/
|
|
where?: Prisma.UserWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Users to fetch.
|
|
*/
|
|
orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for Users.
|
|
*/
|
|
cursor?: Prisma.UserWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Users 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` Users.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Users.
|
|
*/
|
|
distinct?: Prisma.UserScalarFieldEnum | Prisma.UserScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* User findFirstOrThrow
|
|
*/
|
|
export type UserFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: Prisma.UserSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the User
|
|
*/
|
|
omit?: Prisma.UserOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.UserInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which User to fetch.
|
|
*/
|
|
where?: Prisma.UserWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Users to fetch.
|
|
*/
|
|
orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for Users.
|
|
*/
|
|
cursor?: Prisma.UserWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Users 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` Users.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Users.
|
|
*/
|
|
distinct?: Prisma.UserScalarFieldEnum | Prisma.UserScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* User findMany
|
|
*/
|
|
export type UserFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: Prisma.UserSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the User
|
|
*/
|
|
omit?: Prisma.UserOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.UserInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Users to fetch.
|
|
*/
|
|
where?: Prisma.UserWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Users to fetch.
|
|
*/
|
|
orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing Users.
|
|
*/
|
|
cursor?: Prisma.UserWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Users 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` Users.
|
|
*/
|
|
skip?: number
|
|
distinct?: Prisma.UserScalarFieldEnum | Prisma.UserScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* User create
|
|
*/
|
|
export type UserCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: Prisma.UserSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the User
|
|
*/
|
|
omit?: Prisma.UserOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.UserInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a User.
|
|
*/
|
|
data: Prisma.XOR<Prisma.UserCreateInput, Prisma.UserUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* User createMany
|
|
*/
|
|
export type UserCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many Users.
|
|
*/
|
|
data: Prisma.UserCreateManyInput | Prisma.UserCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* User createManyAndReturn
|
|
*/
|
|
export type UserCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: Prisma.UserSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the User
|
|
*/
|
|
omit?: Prisma.UserOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many Users.
|
|
*/
|
|
data: Prisma.UserCreateManyInput | Prisma.UserCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* User update
|
|
*/
|
|
export type UserUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: Prisma.UserSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the User
|
|
*/
|
|
omit?: Prisma.UserOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.UserInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a User.
|
|
*/
|
|
data: Prisma.XOR<Prisma.UserUpdateInput, Prisma.UserUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which User to update.
|
|
*/
|
|
where: Prisma.UserWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* User updateMany
|
|
*/
|
|
export type UserUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update Users.
|
|
*/
|
|
data: Prisma.XOR<Prisma.UserUpdateManyMutationInput, Prisma.UserUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which Users to update
|
|
*/
|
|
where?: Prisma.UserWhereInput
|
|
/**
|
|
* Limit how many Users to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* User updateManyAndReturn
|
|
*/
|
|
export type UserUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: Prisma.UserSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the User
|
|
*/
|
|
omit?: Prisma.UserOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update Users.
|
|
*/
|
|
data: Prisma.XOR<Prisma.UserUpdateManyMutationInput, Prisma.UserUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which Users to update
|
|
*/
|
|
where?: Prisma.UserWhereInput
|
|
/**
|
|
* Limit how many Users to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* User upsert
|
|
*/
|
|
export type UserUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: Prisma.UserSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the User
|
|
*/
|
|
omit?: Prisma.UserOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.UserInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the User to update in case it exists.
|
|
*/
|
|
where: Prisma.UserWhereUniqueInput
|
|
/**
|
|
* In case the User found by the `where` argument doesn't exist, create a new User with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.UserCreateInput, Prisma.UserUncheckedCreateInput>
|
|
/**
|
|
* In case the User was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.UserUpdateInput, Prisma.UserUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* User delete
|
|
*/
|
|
export type UserDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: Prisma.UserSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the User
|
|
*/
|
|
omit?: Prisma.UserOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.UserInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which User to delete.
|
|
*/
|
|
where: Prisma.UserWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* User deleteMany
|
|
*/
|
|
export type UserDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which Users to delete
|
|
*/
|
|
where?: Prisma.UserWhereInput
|
|
/**
|
|
* Limit how many Users to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* User.accounts
|
|
*/
|
|
export type User$accountsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Account
|
|
*/
|
|
select?: Prisma.AccountSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Account
|
|
*/
|
|
omit?: Prisma.AccountOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AccountInclude<ExtArgs> | null
|
|
where?: Prisma.AccountWhereInput
|
|
orderBy?: Prisma.AccountOrderByWithRelationInput | Prisma.AccountOrderByWithRelationInput[]
|
|
cursor?: Prisma.AccountWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: Prisma.AccountScalarFieldEnum | Prisma.AccountScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* User.sessions
|
|
*/
|
|
export type User$sessionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Session
|
|
*/
|
|
select?: Prisma.SessionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Session
|
|
*/
|
|
omit?: Prisma.SessionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SessionInclude<ExtArgs> | null
|
|
where?: Prisma.SessionWhereInput
|
|
orderBy?: Prisma.SessionOrderByWithRelationInput | Prisma.SessionOrderByWithRelationInput[]
|
|
cursor?: Prisma.SessionWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: Prisma.SessionScalarFieldEnum | Prisma.SessionScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* User.filaments
|
|
*/
|
|
export type User$filamentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Filament
|
|
*/
|
|
select?: Prisma.FilamentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Filament
|
|
*/
|
|
omit?: Prisma.FilamentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.FilamentInclude<ExtArgs> | null
|
|
where?: Prisma.FilamentWhereInput
|
|
orderBy?: Prisma.FilamentOrderByWithRelationInput | Prisma.FilamentOrderByWithRelationInput[]
|
|
cursor?: Prisma.FilamentWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: Prisma.FilamentScalarFieldEnum | Prisma.FilamentScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* User.resins
|
|
*/
|
|
export type User$resinsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Resin
|
|
*/
|
|
select?: Prisma.ResinSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Resin
|
|
*/
|
|
omit?: Prisma.ResinOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.ResinInclude<ExtArgs> | null
|
|
where?: Prisma.ResinWhereInput
|
|
orderBy?: Prisma.ResinOrderByWithRelationInput | Prisma.ResinOrderByWithRelationInput[]
|
|
cursor?: Prisma.ResinWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: Prisma.ResinScalarFieldEnum | Prisma.ResinScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* User.paints
|
|
*/
|
|
export type User$paintsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Paint
|
|
*/
|
|
select?: Prisma.PaintSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Paint
|
|
*/
|
|
omit?: Prisma.PaintOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.PaintInclude<ExtArgs> | null
|
|
where?: Prisma.PaintWhereInput
|
|
orderBy?: Prisma.PaintOrderByWithRelationInput | Prisma.PaintOrderByWithRelationInput[]
|
|
cursor?: Prisma.PaintWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: Prisma.PaintScalarFieldEnum | Prisma.PaintScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* User.vendors
|
|
*/
|
|
export type User$vendorsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Vendor
|
|
*/
|
|
select?: Prisma.VendorSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Vendor
|
|
*/
|
|
omit?: Prisma.VendorOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.VendorInclude<ExtArgs> | null
|
|
where?: Prisma.VendorWhereInput
|
|
orderBy?: Prisma.VendorOrderByWithRelationInput | Prisma.VendorOrderByWithRelationInput[]
|
|
cursor?: Prisma.VendorWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: Prisma.VendorScalarFieldEnum | Prisma.VendorScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* User.locations
|
|
*/
|
|
export type User$locationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Location
|
|
*/
|
|
select?: Prisma.LocationSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Location
|
|
*/
|
|
omit?: Prisma.LocationOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.LocationInclude<ExtArgs> | null
|
|
where?: Prisma.LocationWhereInput
|
|
orderBy?: Prisma.LocationOrderByWithRelationInput | Prisma.LocationOrderByWithRelationInput[]
|
|
cursor?: Prisma.LocationWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: Prisma.LocationScalarFieldEnum | Prisma.LocationScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* User.usageLogs
|
|
*/
|
|
export type User$usageLogsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the UsageLog
|
|
*/
|
|
select?: Prisma.UsageLogSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the UsageLog
|
|
*/
|
|
omit?: Prisma.UsageLogOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.UsageLogInclude<ExtArgs> | null
|
|
where?: Prisma.UsageLogWhereInput
|
|
orderBy?: Prisma.UsageLogOrderByWithRelationInput | Prisma.UsageLogOrderByWithRelationInput[]
|
|
cursor?: Prisma.UsageLogWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: Prisma.UsageLogScalarFieldEnum | Prisma.UsageLogScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* User.tags
|
|
*/
|
|
export type User$tagsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Tag
|
|
*/
|
|
select?: Prisma.TagSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Tag
|
|
*/
|
|
omit?: Prisma.TagOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TagInclude<ExtArgs> | null
|
|
where?: Prisma.TagWhereInput
|
|
orderBy?: Prisma.TagOrderByWithRelationInput | Prisma.TagOrderByWithRelationInput[]
|
|
cursor?: Prisma.TagWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: Prisma.TagScalarFieldEnum | Prisma.TagScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* User.settings
|
|
*/
|
|
export type User$settingsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the UserSettings
|
|
*/
|
|
select?: Prisma.UserSettingsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the UserSettings
|
|
*/
|
|
omit?: Prisma.UserSettingsOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.UserSettingsInclude<ExtArgs> | null
|
|
where?: Prisma.UserSettingsWhereInput
|
|
}
|
|
|
|
/**
|
|
* User without action
|
|
*/
|
|
export type UserDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the User
|
|
*/
|
|
select?: Prisma.UserSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the User
|
|
*/
|
|
omit?: Prisma.UserOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.UserInclude<ExtArgs> | null
|
|
}
|